storybook 9.0.0-alpha.5 → 9.0.0-alpha.7
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 +63 -63
- package/dist/bin/index.js +63 -63
- package/dist/builder-manager/index.cjs +253 -280
- package/dist/builder-manager/index.js +305 -332
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +63 -63
- package/dist/common/index.js +63 -63
- package/dist/components/index.cjs +2102 -2069
- package/dist/components/index.js +2311 -2278
- package/dist/core-server/index.cjs +10816 -10501
- package/dist/core-server/index.d.ts +260 -2
- package/dist/core-server/index.js +10920 -10611
- package/dist/core-server/presets/common-preset.cjs +59 -59
- package/dist/core-server/presets/common-preset.js +57 -57
- package/dist/csf/index.d.ts +1 -1
- package/dist/instrumenter/index.cjs +1784 -1546
- package/dist/instrumenter/index.js +2220 -2054
- package/dist/manager/globals-module-info.cjs +22 -8
- package/dist/manager/globals-module-info.js +20 -6
- package/dist/manager/globals-runtime.js +22673 -23887
- package/dist/manager/runtime.js +3286 -3200
- package/dist/manager-api/index.cjs +3506 -3179
- package/dist/manager-api/index.d.ts +325 -24
- package/dist/manager-api/index.js +3245 -2957
- package/dist/manager-errors.d.ts +25 -1
- package/dist/manager-errors.js +42 -26
- package/dist/preview/runtime.js +15216 -16734
- package/dist/preview-api/index.cjs +1234 -1683
- package/dist/preview-api/index.d.ts +3 -309
- package/dist/preview-api/index.js +1360 -1785
- package/dist/preview-errors.cjs +98 -81
- package/dist/preview-errors.d.ts +25 -1
- package/dist/preview-errors.js +109 -93
- package/dist/server-errors.cjs +92 -75
- package/dist/server-errors.d.ts +25 -1
- package/dist/server-errors.js +83 -66
- package/dist/test/index.cjs +12779 -11872
- package/dist/test/index.js +12417 -11582
- package/dist/test/preview.cjs +1466 -1467
- package/dist/test/preview.js +4 -5
- package/dist/test/spy.cjs +11 -12
- package/dist/test/spy.js +14 -15
- package/dist/types/index.d.ts +271 -13
- package/package.json +9 -9
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var c = (t, e) =>
|
|
7
|
-
var
|
|
2
|
+
var Pt = Object.defineProperty;
|
|
3
|
+
var gr = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var hr = Object.getOwnPropertyNames;
|
|
5
|
+
var yr = Object.prototype.hasOwnProperty;
|
|
6
|
+
var c = (t, e) => Pt(t, "name", { value: e, configurable: !0 });
|
|
7
|
+
var dr = (t, e) => {
|
|
8
8
|
for (var n in e)
|
|
9
|
-
|
|
10
|
-
},
|
|
9
|
+
Pt(t, n, { get: e[n], enumerable: !0 });
|
|
10
|
+
}, br = (t, e, n, r) => {
|
|
11
11
|
if (e && typeof e == "object" || typeof e == "function")
|
|
12
|
-
for (let o of
|
|
13
|
-
!
|
|
12
|
+
for (let o of hr(e))
|
|
13
|
+
!yr.call(t, o) && o !== n && Pt(t, o, { get: () => e[o], enumerable: !(r = gr(e, o)) || r.enumerable });
|
|
14
14
|
return t;
|
|
15
15
|
};
|
|
16
|
-
var
|
|
16
|
+
var Sr = (t) => br(Pt({}, "__esModule", { value: !0 }), t);
|
|
17
17
|
|
|
18
18
|
// src/instrumenter/index.ts
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
CallStates: () =>
|
|
22
|
-
EVENTS: () =>
|
|
23
|
-
instrument: () =>
|
|
19
|
+
var ii = {};
|
|
20
|
+
dr(ii, {
|
|
21
|
+
CallStates: () => cr,
|
|
22
|
+
EVENTS: () => ot,
|
|
23
|
+
instrument: () => mr
|
|
24
24
|
});
|
|
25
|
-
module.exports =
|
|
25
|
+
module.exports = Sr(ii);
|
|
26
26
|
|
|
27
27
|
// src/instrumenter/instrumenter.ts
|
|
28
|
-
var
|
|
28
|
+
var fr = require("storybook/internal/client-logger"), yt = require("storybook/internal/core-events"), W = require("@storybook/global");
|
|
29
29
|
|
|
30
|
-
// ../node_modules
|
|
31
|
-
var
|
|
30
|
+
// ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
31
|
+
var Er = {
|
|
32
32
|
reset: [0, 0],
|
|
33
33
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
34
34
|
dim: [2, 22, "\x1B[22m\x1B[2m"],
|
|
@@ -70,147 +70,165 @@ var ar = {
|
|
|
70
70
|
bgMagentaBright: [105, 49],
|
|
71
71
|
bgCyanBright: [106, 49],
|
|
72
72
|
bgWhiteBright: [107, 49]
|
|
73
|
-
},
|
|
74
|
-
function
|
|
73
|
+
}, _r = Object.entries(Er);
|
|
74
|
+
function vt(t) {
|
|
75
75
|
return String(t);
|
|
76
76
|
}
|
|
77
|
-
c(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
function
|
|
77
|
+
c(vt, "a");
|
|
78
|
+
vt.open = "";
|
|
79
|
+
vt.close = "";
|
|
80
|
+
function xe(t = !1) {
|
|
81
81
|
let e = typeof process < "u" ? process : void 0, n = e?.env || {}, r = e?.argv || [];
|
|
82
82
|
return !("NO_COLOR" in n || r.includes("--no-color")) && ("FORCE_COLOR" in n || r.includes("--color") || e?.platform === "win32" || t && n.
|
|
83
83
|
TERM !== "dumb" || "CI" in n) || typeof window < "u" && !!window.chrome;
|
|
84
84
|
}
|
|
85
|
-
c(
|
|
86
|
-
function
|
|
87
|
-
let e =
|
|
88
|
-
let
|
|
85
|
+
c(xe, "C");
|
|
86
|
+
function Fe(t = !1) {
|
|
87
|
+
let e = xe(t), n = /* @__PURE__ */ c((i, a, l, m) => {
|
|
88
|
+
let p = "", f = 0;
|
|
89
89
|
do
|
|
90
|
-
|
|
91
|
-
while (~
|
|
92
|
-
return
|
|
93
|
-
}, "i"), r = /* @__PURE__ */ c((i,
|
|
94
|
-
let
|
|
95
|
-
let
|
|
96
|
-
return ~S ? i + n(a, l,
|
|
90
|
+
p += i.substring(f, m) + l, f = m + a.length, m = i.indexOf(a, f);
|
|
91
|
+
while (~m);
|
|
92
|
+
return p + i.substring(f);
|
|
93
|
+
}, "i"), r = /* @__PURE__ */ c((i, a, l = i) => {
|
|
94
|
+
let m = /* @__PURE__ */ c((p) => {
|
|
95
|
+
let f = String(p), S = f.indexOf(a, i.length);
|
|
96
|
+
return ~S ? i + n(f, a, l, S) + a : i + f + a;
|
|
97
97
|
}, "o");
|
|
98
|
-
return
|
|
98
|
+
return m.open = i, m.close = a, m;
|
|
99
99
|
}, "g"), o = {
|
|
100
100
|
isColorSupported: e
|
|
101
101
|
}, s = /* @__PURE__ */ c((i) => `\x1B[${i}m`, "d");
|
|
102
|
-
for (let [i,
|
|
102
|
+
for (let [i, a] of _r)
|
|
103
103
|
o[i] = e ? r(
|
|
104
|
-
s(
|
|
105
|
-
s(
|
|
106
|
-
|
|
107
|
-
) :
|
|
104
|
+
s(a[0]),
|
|
105
|
+
s(a[1]),
|
|
106
|
+
a[2]
|
|
107
|
+
) : vt;
|
|
108
108
|
return o;
|
|
109
109
|
}
|
|
110
|
-
c(
|
|
110
|
+
c(Fe, "p");
|
|
111
111
|
|
|
112
|
-
// ../node_modules
|
|
113
|
-
var
|
|
112
|
+
// ../node_modules/tinyrainbow/dist/node.js
|
|
113
|
+
var De = require("tty");
|
|
114
|
+
var Cr = process.env.FORCE_TTY !== void 0 || (0, De.isatty)(1);
|
|
115
|
+
var et = Fe(Cr);
|
|
114
116
|
|
|
115
|
-
// ../node_modules/@vitest/
|
|
116
|
-
function
|
|
117
|
+
// ../node_modules/@vitest/pretty-format/dist/index.js
|
|
118
|
+
function Ze(t, e) {
|
|
119
|
+
return e.forEach(function(n) {
|
|
120
|
+
n && typeof n != "string" && !Array.isArray(n) && Object.keys(n).forEach(function(r) {
|
|
121
|
+
if (r !== "default" && !(r in t)) {
|
|
122
|
+
var o = Object.getOwnPropertyDescriptor(n, r);
|
|
123
|
+
Object.defineProperty(t, r, o.get ? o : {
|
|
124
|
+
enumerable: !0,
|
|
125
|
+
get: /* @__PURE__ */ c(function() {
|
|
126
|
+
return n[r];
|
|
127
|
+
}, "get")
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}), Object.freeze(t);
|
|
132
|
+
}
|
|
133
|
+
c(Ze, "_mergeNamespaces");
|
|
134
|
+
function Tr(t, e) {
|
|
117
135
|
let n = Object.keys(t), r = e === null ? n : n.sort(e);
|
|
118
136
|
if (Object.getOwnPropertySymbols)
|
|
119
137
|
for (let o of Object.getOwnPropertySymbols(t))
|
|
120
138
|
Object.getOwnPropertyDescriptor(t, o).enumerable && r.push(o);
|
|
121
139
|
return r;
|
|
122
140
|
}
|
|
123
|
-
c(
|
|
124
|
-
function
|
|
125
|
-
let
|
|
126
|
-
if (!
|
|
127
|
-
|
|
128
|
-
let
|
|
129
|
-
for (; !
|
|
130
|
-
if (
|
|
131
|
-
|
|
141
|
+
c(Tr, "getKeysOfEnumerableProperties");
|
|
142
|
+
function Ot(t, e, n, r, o, s, i = ": ") {
|
|
143
|
+
let a = "", l = 0, m = t.next();
|
|
144
|
+
if (!m.done) {
|
|
145
|
+
a += e.spacingOuter;
|
|
146
|
+
let p = n + e.indent;
|
|
147
|
+
for (; !m.done; ) {
|
|
148
|
+
if (a += p, l++ === e.maxWidth) {
|
|
149
|
+
a += "\u2026";
|
|
132
150
|
break;
|
|
133
151
|
}
|
|
134
|
-
let
|
|
135
|
-
|
|
152
|
+
let f = s(
|
|
153
|
+
m.value[0],
|
|
136
154
|
e,
|
|
137
|
-
|
|
155
|
+
p,
|
|
138
156
|
r,
|
|
139
157
|
o
|
|
140
158
|
), S = s(
|
|
141
|
-
|
|
159
|
+
m.value[1],
|
|
142
160
|
e,
|
|
143
|
-
|
|
161
|
+
p,
|
|
144
162
|
r,
|
|
145
163
|
o
|
|
146
164
|
);
|
|
147
|
-
|
|
165
|
+
a += f + i + S, m = t.next(), m.done ? e.min || (a += ",") : a += `,${e.spacingInner}`;
|
|
148
166
|
}
|
|
149
|
-
|
|
167
|
+
a += e.spacingOuter + n;
|
|
150
168
|
}
|
|
151
|
-
return
|
|
169
|
+
return a;
|
|
152
170
|
}
|
|
153
|
-
c(
|
|
154
|
-
function
|
|
155
|
-
let i = "",
|
|
156
|
-
if (!
|
|
171
|
+
c(Ot, "printIteratorEntries");
|
|
172
|
+
function ne(t, e, n, r, o, s) {
|
|
173
|
+
let i = "", a = 0, l = t.next();
|
|
174
|
+
if (!l.done) {
|
|
157
175
|
i += e.spacingOuter;
|
|
158
|
-
let
|
|
159
|
-
for (; !
|
|
160
|
-
if (i +=
|
|
176
|
+
let m = n + e.indent;
|
|
177
|
+
for (; !l.done; ) {
|
|
178
|
+
if (i += m, a++ === e.maxWidth) {
|
|
161
179
|
i += "\u2026";
|
|
162
180
|
break;
|
|
163
181
|
}
|
|
164
|
-
i += s(
|
|
182
|
+
i += s(l.value, e, m, r, o), l = t.next(), l.done ? e.min || (i += ",") : i += `,${e.spacingInner}`;
|
|
165
183
|
}
|
|
166
184
|
i += e.spacingOuter + n;
|
|
167
185
|
}
|
|
168
186
|
return i;
|
|
169
187
|
}
|
|
170
|
-
c(
|
|
171
|
-
function
|
|
188
|
+
c(ne, "printIteratorValues");
|
|
189
|
+
function Ft(t, e, n, r, o, s) {
|
|
172
190
|
let i = "";
|
|
173
191
|
t = t instanceof ArrayBuffer ? new DataView(t) : t;
|
|
174
|
-
let
|
|
175
|
-
if (
|
|
192
|
+
let a = /* @__PURE__ */ c((m) => m instanceof DataView, "isDataView"), l = a(t) ? t.byteLength : t.length;
|
|
193
|
+
if (l > 0) {
|
|
176
194
|
i += e.spacingOuter;
|
|
177
|
-
let
|
|
178
|
-
for (let
|
|
179
|
-
if (i +=
|
|
195
|
+
let m = n + e.indent;
|
|
196
|
+
for (let p = 0; p < l; p++) {
|
|
197
|
+
if (i += m, p === e.maxWidth) {
|
|
180
198
|
i += "\u2026";
|
|
181
199
|
break;
|
|
182
200
|
}
|
|
183
|
-
(
|
|
184
|
-
|
|
201
|
+
(a(t) || p in t) && (i += s(
|
|
202
|
+
a(t) ? t.getInt8(p) : t[p],
|
|
185
203
|
e,
|
|
186
|
-
|
|
204
|
+
m,
|
|
187
205
|
r,
|
|
188
206
|
o
|
|
189
|
-
)),
|
|
207
|
+
)), p < l - 1 ? i += `,${e.spacingInner}` : e.min || (i += ",");
|
|
190
208
|
}
|
|
191
209
|
i += e.spacingOuter + n;
|
|
192
210
|
}
|
|
193
211
|
return i;
|
|
194
212
|
}
|
|
195
|
-
c(
|
|
196
|
-
function
|
|
197
|
-
let i = "",
|
|
198
|
-
if (
|
|
213
|
+
c(Ft, "printListItems");
|
|
214
|
+
function re(t, e, n, r, o, s) {
|
|
215
|
+
let i = "", a = Tr(t, e.compareKeys);
|
|
216
|
+
if (a.length > 0) {
|
|
199
217
|
i += e.spacingOuter;
|
|
200
|
-
let
|
|
201
|
-
for (let
|
|
202
|
-
let
|
|
203
|
-
i += `${
|
|
218
|
+
let l = n + e.indent;
|
|
219
|
+
for (let m = 0; m < a.length; m++) {
|
|
220
|
+
let p = a[m], f = s(p, e, l, r, o), S = s(t[p], e, l, r, o);
|
|
221
|
+
i += `${l + f}: ${S}`, m < a.length - 1 ? i += `,${e.spacingInner}` : e.min || (i += ",");
|
|
204
222
|
}
|
|
205
223
|
i += e.spacingOuter + n;
|
|
206
224
|
}
|
|
207
225
|
return i;
|
|
208
226
|
}
|
|
209
|
-
c(
|
|
210
|
-
var
|
|
227
|
+
c(re, "printObjectProperties");
|
|
228
|
+
var Or = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, It = " ", $r = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
211
229
|
let i = t.toString();
|
|
212
230
|
if (i === "ArrayContaining" || i === "ArrayNotContaining")
|
|
213
|
-
return ++r > e.maxDepth ? `[${i}]` : `${i +
|
|
231
|
+
return ++r > e.maxDepth ? `[${i}]` : `${i + It}[${Ft(
|
|
214
232
|
t.sample,
|
|
215
233
|
e,
|
|
216
234
|
n,
|
|
@@ -219,7 +237,7 @@ var pr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetric
|
|
|
219
237
|
s
|
|
220
238
|
)}]`;
|
|
221
239
|
if (i === "ObjectContaining" || i === "ObjectNotContaining")
|
|
222
|
-
return ++r > e.maxDepth ? `[${i}]` : `${i +
|
|
240
|
+
return ++r > e.maxDepth ? `[${i}]` : `${i + It}{${re(
|
|
223
241
|
t.sample,
|
|
224
242
|
e,
|
|
225
243
|
n,
|
|
@@ -228,28 +246,28 @@ var pr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetric
|
|
|
228
246
|
s
|
|
229
247
|
)}}`;
|
|
230
248
|
if (i === "StringMatching" || i === "StringNotMatching" || i === "StringContaining" || i === "StringNotContaining")
|
|
231
|
-
return i +
|
|
249
|
+
return i + It + s(t.sample, e, n, r, o);
|
|
232
250
|
if (typeof t.toAsymmetricMatcher != "function")
|
|
233
251
|
throw new TypeError(
|
|
234
252
|
`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`
|
|
235
253
|
);
|
|
236
254
|
return t.toAsymmetricMatcher();
|
|
237
|
-
}, "serialize$5"),
|
|
238
|
-
["DOMStringMap", "NamedNodeMap"]),
|
|
239
|
-
function
|
|
240
|
-
return
|
|
241
|
-
}
|
|
242
|
-
c(
|
|
243
|
-
var
|
|
244
|
-
function
|
|
255
|
+
}, "serialize$5"), wr = /* @__PURE__ */ c((t) => t && t.$$typeof === Or, "test$5"), Ar = { serialize: $r, test: wr }, Rr = " ", Qe = /* @__PURE__ */ new Set(
|
|
256
|
+
["DOMStringMap", "NamedNodeMap"]), Nr = /^(?:HTML\w*Collection|NodeList)$/;
|
|
257
|
+
function Pr(t) {
|
|
258
|
+
return Qe.has(t) || Nr.test(t);
|
|
259
|
+
}
|
|
260
|
+
c(Pr, "testName");
|
|
261
|
+
var Ir = /* @__PURE__ */ c((t) => t && t.constructor && !!t.constructor.name && Pr(t.constructor.name), "test$4");
|
|
262
|
+
function Mr(t) {
|
|
245
263
|
return t.constructor.name === "NamedNodeMap";
|
|
246
264
|
}
|
|
247
|
-
c(
|
|
248
|
-
var
|
|
265
|
+
c(Mr, "isNamedNodeMap");
|
|
266
|
+
var Lr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
249
267
|
let i = t.constructor.name;
|
|
250
|
-
return ++r > e.maxDepth ? `[${i}]` : (e.min ? "" : i +
|
|
251
|
-
|
|
252
|
-
(
|
|
268
|
+
return ++r > e.maxDepth ? `[${i}]` : (e.min ? "" : i + Rr) + (Qe.has(i) ? `{${re(
|
|
269
|
+
Mr(t) ? [...t].reduce(
|
|
270
|
+
(a, l) => (a[l.name] = l.value, a),
|
|
253
271
|
{}
|
|
254
272
|
) : { ...t },
|
|
255
273
|
e,
|
|
@@ -257,7 +275,7 @@ var Or = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
257
275
|
r,
|
|
258
276
|
o,
|
|
259
277
|
s
|
|
260
|
-
)}}` : `[${
|
|
278
|
+
)}}` : `[${Ft(
|
|
261
279
|
[...t],
|
|
262
280
|
e,
|
|
263
281
|
n,
|
|
@@ -265,90 +283,90 @@ var Or = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
265
283
|
o,
|
|
266
284
|
s
|
|
267
285
|
)}]`);
|
|
268
|
-
}, "serialize$4"),
|
|
269
|
-
function
|
|
286
|
+
}, "serialize$4"), xr = { serialize: Lr, test: Ir };
|
|
287
|
+
function ve(t) {
|
|
270
288
|
return t.replaceAll("<", "<").replaceAll(">", ">");
|
|
271
289
|
}
|
|
272
|
-
c(
|
|
273
|
-
function
|
|
274
|
-
let
|
|
275
|
-
return t.map((
|
|
276
|
-
let
|
|
277
|
-
return typeof
|
|
278
|
-
`) && (
|
|
290
|
+
c(ve, "escapeHTML");
|
|
291
|
+
function oe(t, e, n, r, o, s, i) {
|
|
292
|
+
let a = r + n.indent, l = n.colors;
|
|
293
|
+
return t.map((m) => {
|
|
294
|
+
let p = e[m], f = i(p, n, a, o, s);
|
|
295
|
+
return typeof p != "string" && (f.includes(`
|
|
296
|
+
`) && (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.
|
|
279
297
|
value.close}`;
|
|
280
298
|
}).join("");
|
|
281
299
|
}
|
|
282
|
-
c(
|
|
283
|
-
function
|
|
300
|
+
c(oe, "printProps");
|
|
301
|
+
function se(t, e, n, r, o, s) {
|
|
284
302
|
return t.map(
|
|
285
|
-
(i) => e.spacingOuter + n + (typeof i == "string" ?
|
|
303
|
+
(i) => e.spacingOuter + n + (typeof i == "string" ? tn(i, e) : s(i, e, n, r, o))
|
|
286
304
|
).join("");
|
|
287
305
|
}
|
|
288
|
-
c(
|
|
289
|
-
function
|
|
306
|
+
c(se, "printChildren");
|
|
307
|
+
function tn(t, e) {
|
|
290
308
|
let n = e.colors.content;
|
|
291
|
-
return n.open +
|
|
309
|
+
return n.open + ve(t) + n.close;
|
|
292
310
|
}
|
|
293
|
-
c(
|
|
294
|
-
function
|
|
311
|
+
c(tn, "printText");
|
|
312
|
+
function Fr(t, e) {
|
|
295
313
|
let n = e.colors.comment;
|
|
296
|
-
return `${n.open}<!--${
|
|
314
|
+
return `${n.open}<!--${ve(t)}-->${n.close}`;
|
|
297
315
|
}
|
|
298
|
-
c(
|
|
299
|
-
function
|
|
316
|
+
c(Fr, "printComment");
|
|
317
|
+
function ie(t, e, n, r, o) {
|
|
300
318
|
let s = r.colors.tag;
|
|
301
319
|
return `${s.open}<${t}${e && s.close + e + r.spacingOuter + o + s.open}${n ? `>${s.close}${n}${r.spacingOuter}${o}${s.open}</${t}` : `${e &&
|
|
302
320
|
!r.min ? "" : " "}/`}>${s.close}`;
|
|
303
321
|
}
|
|
304
|
-
c(
|
|
305
|
-
function
|
|
322
|
+
c(ie, "printElement");
|
|
323
|
+
function ce(t, e) {
|
|
306
324
|
let n = e.colors.tag;
|
|
307
325
|
return `${n.open}<${t}${n.close} \u2026${n.open} />${n.close}`;
|
|
308
326
|
}
|
|
309
|
-
c(
|
|
310
|
-
var
|
|
311
|
-
function
|
|
327
|
+
c(ce, "printElementAsLeaf");
|
|
328
|
+
var Dr = 1, en = 3, nn = 8, rn = 11, jr = /^(?:(?:HTML|SVG)\w*)?Element$/;
|
|
329
|
+
function Br(t) {
|
|
312
330
|
try {
|
|
313
331
|
return typeof t.hasAttribute == "function" && t.hasAttribute("is");
|
|
314
332
|
} catch {
|
|
315
333
|
return !1;
|
|
316
334
|
}
|
|
317
335
|
}
|
|
318
|
-
c(
|
|
319
|
-
function
|
|
320
|
-
let e = t.constructor.name, { nodeType: n, tagName: r } = t, o = typeof r == "string" && r.includes("-") ||
|
|
321
|
-
return n ===
|
|
336
|
+
c(Br, "testHasAttribute");
|
|
337
|
+
function kr(t) {
|
|
338
|
+
let e = t.constructor.name, { nodeType: n, tagName: r } = t, o = typeof r == "string" && r.includes("-") || Br(t);
|
|
339
|
+
return n === Dr && (jr.test(e) || o) || n === en && e === "Text" || n === nn && e === "Comment" || n === rn && e === "DocumentFragment";
|
|
322
340
|
}
|
|
323
|
-
c(
|
|
324
|
-
var
|
|
341
|
+
c(kr, "testNode");
|
|
342
|
+
var zr = /* @__PURE__ */ c((t) => {
|
|
325
343
|
var e;
|
|
326
|
-
return ((e = t?.constructor) == null ? void 0 : e.name) &&
|
|
344
|
+
return ((e = t?.constructor) == null ? void 0 : e.name) && kr(t);
|
|
327
345
|
}, "test$3");
|
|
328
|
-
function
|
|
329
|
-
return t.nodeType ===
|
|
330
|
-
}
|
|
331
|
-
c(
|
|
332
|
-
function
|
|
333
|
-
return t.nodeType ===
|
|
334
|
-
}
|
|
335
|
-
c(
|
|
336
|
-
function
|
|
337
|
-
return t.nodeType ===
|
|
338
|
-
}
|
|
339
|
-
c(
|
|
340
|
-
var
|
|
341
|
-
if (
|
|
342
|
-
return
|
|
343
|
-
if (
|
|
344
|
-
return
|
|
345
|
-
let i =
|
|
346
|
-
return ++r > e.maxDepth ?
|
|
346
|
+
function Yr(t) {
|
|
347
|
+
return t.nodeType === en;
|
|
348
|
+
}
|
|
349
|
+
c(Yr, "nodeIsText");
|
|
350
|
+
function Ur(t) {
|
|
351
|
+
return t.nodeType === nn;
|
|
352
|
+
}
|
|
353
|
+
c(Ur, "nodeIsComment");
|
|
354
|
+
function te(t) {
|
|
355
|
+
return t.nodeType === rn;
|
|
356
|
+
}
|
|
357
|
+
c(te, "nodeIsFragment");
|
|
358
|
+
var Wr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
359
|
+
if (Yr(t))
|
|
360
|
+
return tn(t.data, e);
|
|
361
|
+
if (Ur(t))
|
|
362
|
+
return Fr(t.data, e);
|
|
363
|
+
let i = te(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
364
|
+
return ++r > e.maxDepth ? ce(i, e) : ie(
|
|
347
365
|
i,
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
(
|
|
366
|
+
oe(
|
|
367
|
+
te(t) ? [] : Array.from(t.attributes, (a) => a.name).sort(),
|
|
368
|
+
te(t) ? {} : [...t.attributes].reduce(
|
|
369
|
+
(a, l) => (a[l.name] = l.value, a),
|
|
352
370
|
{}
|
|
353
371
|
),
|
|
354
372
|
e,
|
|
@@ -357,7 +375,7 @@ var Mr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
357
375
|
o,
|
|
358
376
|
s
|
|
359
377
|
),
|
|
360
|
-
|
|
378
|
+
se(
|
|
361
379
|
Array.prototype.slice.call(t.childNodes || t.children),
|
|
362
380
|
e,
|
|
363
381
|
n + e.indent,
|
|
@@ -368,12 +386,12 @@ var Mr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
368
386
|
e,
|
|
369
387
|
n
|
|
370
388
|
);
|
|
371
|
-
}, "serialize$3"),
|
|
372
|
-
EYED__@@",
|
|
373
|
-
@@__IMMUTABLE_SET__@@",
|
|
374
|
-
(t) => `[${t}]`, "printAsLeaf"),
|
|
375
|
-
function
|
|
376
|
-
return ++r > e.maxDepth ?
|
|
389
|
+
}, "serialize$3"), Vr = { serialize: Wr, test: zr }, qr = "@@__IMMUTABLE_ITERABLE__@@", Kr = "@@__IMMUTABLE_LIST__@@", Gr = "@@__IMMUTABLE_K\
|
|
390
|
+
EYED__@@", Hr = "@@__IMMUTABLE_MAP__@@", je = "@@__IMMUTABLE_ORDERED__@@", Jr = "@@__IMMUTABLE_RECORD__@@", Xr = "@@__IMMUTABLE_SEQ__@@", Zr = "\
|
|
391
|
+
@@__IMMUTABLE_SET__@@", Qr = "@@__IMMUTABLE_STACK__@@", bt = /* @__PURE__ */ c((t) => `Immutable.${t}`, "getImmutableName"), jt = /* @__PURE__ */ c(
|
|
392
|
+
(t) => `[${t}]`, "printAsLeaf"), Tt = " ", Be = "\u2026";
|
|
393
|
+
function vr(t, e, n, r, o, s, i) {
|
|
394
|
+
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Tt}{${Ot(
|
|
377
395
|
t.entries(),
|
|
378
396
|
e,
|
|
379
397
|
n,
|
|
@@ -382,8 +400,8 @@ function Yr(t, e, n, r, o, s, i) {
|
|
|
382
400
|
s
|
|
383
401
|
)}}`;
|
|
384
402
|
}
|
|
385
|
-
c(
|
|
386
|
-
function
|
|
403
|
+
c(vr, "printImmutableEntries");
|
|
404
|
+
function to(t) {
|
|
387
405
|
let e = 0;
|
|
388
406
|
return {
|
|
389
407
|
next() {
|
|
@@ -395,11 +413,11 @@ function Wr(t) {
|
|
|
395
413
|
}
|
|
396
414
|
};
|
|
397
415
|
}
|
|
398
|
-
c(
|
|
399
|
-
function
|
|
400
|
-
let i =
|
|
401
|
-
return ++r > e.maxDepth ?
|
|
402
|
-
|
|
416
|
+
c(to, "getRecordEntries");
|
|
417
|
+
function eo(t, e, n, r, o, s) {
|
|
418
|
+
let i = bt(t._name || "Record");
|
|
419
|
+
return ++r > e.maxDepth ? jt(i) : `${i + Tt}{${Ot(
|
|
420
|
+
to(t),
|
|
403
421
|
e,
|
|
404
422
|
n,
|
|
405
423
|
r,
|
|
@@ -407,29 +425,29 @@ function Vr(t, e, n, r, o, s) {
|
|
|
407
425
|
s
|
|
408
426
|
)}}`;
|
|
409
427
|
}
|
|
410
|
-
c(
|
|
411
|
-
function
|
|
412
|
-
let i =
|
|
413
|
-
return ++r > e.maxDepth ?
|
|
414
|
-
t._iter || t._object ?
|
|
428
|
+
c(eo, "printImmutableRecord");
|
|
429
|
+
function no(t, e, n, r, o, s) {
|
|
430
|
+
let i = bt("Seq");
|
|
431
|
+
return ++r > e.maxDepth ? jt(i) : t[Gr] ? `${i + Tt}{${// from Immutable collection of entries or from ECMAScript object
|
|
432
|
+
t._iter || t._object ? Ot(
|
|
415
433
|
t.entries(),
|
|
416
434
|
e,
|
|
417
435
|
n,
|
|
418
436
|
r,
|
|
419
437
|
o,
|
|
420
438
|
s
|
|
421
|
-
) :
|
|
439
|
+
) : Be}}` : `${i + Tt}[${t._iter || t._array || t._collection || t._iterable ? ne(
|
|
422
440
|
t.values(),
|
|
423
441
|
e,
|
|
424
442
|
n,
|
|
425
443
|
r,
|
|
426
444
|
o,
|
|
427
445
|
s
|
|
428
|
-
) :
|
|
446
|
+
) : Be}]`;
|
|
429
447
|
}
|
|
430
|
-
c(
|
|
431
|
-
function
|
|
432
|
-
return ++r > e.maxDepth ?
|
|
448
|
+
c(no, "printImmutableSeq");
|
|
449
|
+
function ee(t, e, n, r, o, s, i) {
|
|
450
|
+
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Tt}[${ne(
|
|
433
451
|
t.values(),
|
|
434
452
|
e,
|
|
435
453
|
n,
|
|
@@ -438,16 +456,16 @@ function Zt(t, e, n, r, o, s, i) {
|
|
|
438
456
|
s
|
|
439
457
|
)}]`;
|
|
440
458
|
}
|
|
441
|
-
c(
|
|
442
|
-
var
|
|
459
|
+
c(ee, "printImmutableValues");
|
|
460
|
+
var ro = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Hr] ? vr(
|
|
443
461
|
t,
|
|
444
462
|
e,
|
|
445
463
|
n,
|
|
446
464
|
r,
|
|
447
465
|
o,
|
|
448
466
|
s,
|
|
449
|
-
t[
|
|
450
|
-
) : t[
|
|
467
|
+
t[je] ? "OrderedMap" : "Map"
|
|
468
|
+
) : t[Kr] ? ee(
|
|
451
469
|
t,
|
|
452
470
|
e,
|
|
453
471
|
n,
|
|
@@ -455,15 +473,15 @@ var qr = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Fr] ? Yr(
|
|
|
455
473
|
o,
|
|
456
474
|
s,
|
|
457
475
|
"List"
|
|
458
|
-
) : t[
|
|
476
|
+
) : t[Zr] ? ee(
|
|
459
477
|
t,
|
|
460
478
|
e,
|
|
461
479
|
n,
|
|
462
480
|
r,
|
|
463
481
|
o,
|
|
464
482
|
s,
|
|
465
|
-
t[
|
|
466
|
-
) : t[
|
|
483
|
+
t[je] ? "OrderedSet" : "Set"
|
|
484
|
+
) : t[Qr] ? ee(
|
|
467
485
|
t,
|
|
468
486
|
e,
|
|
469
487
|
n,
|
|
@@ -471,38 +489,194 @@ var qr = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Fr] ? Yr(
|
|
|
471
489
|
o,
|
|
472
490
|
s,
|
|
473
491
|
"Stack"
|
|
474
|
-
) : t[
|
|
475
|
-
test$2"),
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
492
|
+
) : t[Xr] ? no(t, e, n, r, o, s) : eo(t, e, n, r, o, s), "serialize$2"), oo = /* @__PURE__ */ c((t) => t && (t[qr] === !0 || t[Jr] === !0), "\
|
|
493
|
+
test$2"), so = { serialize: ro, test: oo };
|
|
494
|
+
function on(t) {
|
|
495
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
496
|
+
}
|
|
497
|
+
c(on, "getDefaultExportFromCjs");
|
|
498
|
+
var Mt = { exports: {} }, N = {};
|
|
499
|
+
var ke;
|
|
500
|
+
function io() {
|
|
501
|
+
if (ke) return N;
|
|
502
|
+
ke = 1;
|
|
503
|
+
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.\
|
|
504
|
+
strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), i = Symbol.for("react.context"), a = Symbol.for("react.fo\
|
|
505
|
+
rward_ref"), l = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.la\
|
|
506
|
+
zy"), S = Symbol.for("react.offscreen"), y = Symbol.for("react.client.reference");
|
|
507
|
+
function g(u) {
|
|
508
|
+
if (typeof u == "object" && u !== null) {
|
|
509
|
+
var h = u.$$typeof;
|
|
510
|
+
switch (h) {
|
|
511
|
+
case t:
|
|
512
|
+
switch (u = u.type, u) {
|
|
513
|
+
case n:
|
|
514
|
+
case o:
|
|
515
|
+
case r:
|
|
516
|
+
case l:
|
|
517
|
+
case m:
|
|
518
|
+
return u;
|
|
519
|
+
default:
|
|
520
|
+
switch (u = u && u.$$typeof, u) {
|
|
521
|
+
case i:
|
|
522
|
+
case a:
|
|
523
|
+
case f:
|
|
524
|
+
case p:
|
|
525
|
+
return u;
|
|
526
|
+
case s:
|
|
527
|
+
return u;
|
|
528
|
+
default:
|
|
529
|
+
return h;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
case e:
|
|
533
|
+
return h;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return c(g, "typeOf"), N.ContextConsumer = s, N.ContextProvider = i, N.Element = t, N.ForwardRef = a, N.Fragment = n, N.Lazy = f, N.Memo =
|
|
538
|
+
p, N.Portal = e, N.Profiler = o, N.StrictMode = r, N.Suspense = l, N.SuspenseList = m, N.isContextConsumer = function(u) {
|
|
539
|
+
return g(u) === s;
|
|
540
|
+
}, N.isContextProvider = function(u) {
|
|
541
|
+
return g(u) === i;
|
|
542
|
+
}, N.isElement = function(u) {
|
|
543
|
+
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
544
|
+
}, N.isForwardRef = function(u) {
|
|
545
|
+
return g(u) === a;
|
|
546
|
+
}, N.isFragment = function(u) {
|
|
547
|
+
return g(u) === n;
|
|
548
|
+
}, N.isLazy = function(u) {
|
|
549
|
+
return g(u) === f;
|
|
550
|
+
}, N.isMemo = function(u) {
|
|
551
|
+
return g(u) === p;
|
|
552
|
+
}, N.isPortal = function(u) {
|
|
553
|
+
return g(u) === e;
|
|
554
|
+
}, N.isProfiler = function(u) {
|
|
555
|
+
return g(u) === o;
|
|
556
|
+
}, N.isStrictMode = function(u) {
|
|
557
|
+
return g(u) === r;
|
|
558
|
+
}, N.isSuspense = function(u) {
|
|
559
|
+
return g(u) === l;
|
|
560
|
+
}, N.isSuspenseList = function(u) {
|
|
561
|
+
return g(u) === m;
|
|
562
|
+
}, N.isValidElementType = function(u) {
|
|
563
|
+
return typeof u == "string" || typeof u == "function" || u === n || u === o || u === r || u === l || u === m || u === S || typeof u == "\
|
|
564
|
+
object" && u !== null && (u.$$typeof === f || u.$$typeof === p || u.$$typeof === i || u.$$typeof === s || u.$$typeof === a || u.$$typeof ===
|
|
565
|
+
y || u.getModuleId !== void 0);
|
|
566
|
+
}, N.typeOf = g, N;
|
|
567
|
+
}
|
|
568
|
+
c(io, "requireReactIs_production");
|
|
569
|
+
var P = {};
|
|
570
|
+
var ze;
|
|
571
|
+
function co() {
|
|
572
|
+
return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
573
|
+
function t(u) {
|
|
574
|
+
if (typeof u == "object" && u !== null) {
|
|
575
|
+
var h = u.$$typeof;
|
|
576
|
+
switch (h) {
|
|
577
|
+
case e:
|
|
578
|
+
switch (u = u.type, u) {
|
|
579
|
+
case r:
|
|
580
|
+
case s:
|
|
581
|
+
case o:
|
|
582
|
+
case m:
|
|
583
|
+
case p:
|
|
584
|
+
return u;
|
|
585
|
+
default:
|
|
586
|
+
switch (u = u && u.$$typeof, u) {
|
|
587
|
+
case a:
|
|
588
|
+
case l:
|
|
589
|
+
case S:
|
|
590
|
+
case f:
|
|
591
|
+
return u;
|
|
592
|
+
case i:
|
|
593
|
+
return u;
|
|
594
|
+
default:
|
|
595
|
+
return h;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
case n:
|
|
599
|
+
return h;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
c(t, "typeOf");
|
|
604
|
+
var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("reac\
|
|
605
|
+
t.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.\
|
|
606
|
+
forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), S = Symbol.for("react.\
|
|
607
|
+
lazy"), y = Symbol.for("react.offscreen"), g = Symbol.for("react.client.reference");
|
|
608
|
+
P.ContextConsumer = i, P.ContextProvider = a, P.Element = e, P.ForwardRef = l, P.Fragment = r, P.Lazy = S, P.Memo = f, P.Portal = n, P.Profiler =
|
|
609
|
+
s, P.StrictMode = o, P.Suspense = m, P.SuspenseList = p, P.isContextConsumer = function(u) {
|
|
610
|
+
return t(u) === i;
|
|
611
|
+
}, P.isContextProvider = function(u) {
|
|
612
|
+
return t(u) === a;
|
|
613
|
+
}, P.isElement = function(u) {
|
|
614
|
+
return typeof u == "object" && u !== null && u.$$typeof === e;
|
|
615
|
+
}, P.isForwardRef = function(u) {
|
|
616
|
+
return t(u) === l;
|
|
617
|
+
}, P.isFragment = function(u) {
|
|
618
|
+
return t(u) === r;
|
|
619
|
+
}, P.isLazy = function(u) {
|
|
620
|
+
return t(u) === S;
|
|
621
|
+
}, P.isMemo = function(u) {
|
|
622
|
+
return t(u) === f;
|
|
623
|
+
}, P.isPortal = function(u) {
|
|
624
|
+
return t(u) === n;
|
|
625
|
+
}, P.isProfiler = function(u) {
|
|
626
|
+
return t(u) === s;
|
|
627
|
+
}, P.isStrictMode = function(u) {
|
|
628
|
+
return t(u) === o;
|
|
629
|
+
}, P.isSuspense = function(u) {
|
|
630
|
+
return t(u) === m;
|
|
631
|
+
}, P.isSuspenseList = function(u) {
|
|
632
|
+
return t(u) === p;
|
|
633
|
+
}, P.isValidElementType = function(u) {
|
|
634
|
+
return typeof u == "string" || typeof u == "function" || u === r || u === s || u === o || u === m || u === p || u === y || typeof u ==
|
|
635
|
+
"object" && u !== null && (u.$$typeof === S || u.$$typeof === f || u.$$typeof === a || u.$$typeof === i || u.$$typeof === l || u.$$typeof ===
|
|
636
|
+
g || u.getModuleId !== void 0);
|
|
637
|
+
}, P.typeOf = t;
|
|
638
|
+
}()), P;
|
|
639
|
+
}
|
|
640
|
+
c(co, "requireReactIs_development$1");
|
|
641
|
+
var Ye;
|
|
642
|
+
function uo() {
|
|
643
|
+
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Mt.exports = io() : Mt.exports = co()), Mt.exports;
|
|
644
|
+
}
|
|
645
|
+
c(uo, "requireReactIs$1");
|
|
646
|
+
var sn = /* @__PURE__ */ uo(), lo = /* @__PURE__ */ on(sn), ao = /* @__PURE__ */ Ze({
|
|
647
|
+
__proto__: null,
|
|
648
|
+
default: lo
|
|
649
|
+
}, [sn]), Lt = { exports: {} }, w = {};
|
|
650
|
+
var Ue;
|
|
651
|
+
function fo() {
|
|
652
|
+
if (Ue) return w;
|
|
653
|
+
Ue = 1;
|
|
480
654
|
var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
481
|
-
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"),
|
|
482
|
-
|
|
483
|
-
S = Symbol.for("react.lazy"),
|
|
484
|
-
|
|
485
|
-
function
|
|
486
|
-
if (typeof
|
|
487
|
-
var b =
|
|
655
|
+
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_context"),
|
|
656
|
+
l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"),
|
|
657
|
+
S = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g;
|
|
658
|
+
g = Symbol.for("react.module.reference");
|
|
659
|
+
function u(h) {
|
|
660
|
+
if (typeof h == "object" && h !== null) {
|
|
661
|
+
var b = h.$$typeof;
|
|
488
662
|
switch (b) {
|
|
489
663
|
case t:
|
|
490
|
-
switch (
|
|
664
|
+
switch (h = h.type, h) {
|
|
491
665
|
case n:
|
|
492
666
|
case o:
|
|
493
667
|
case r:
|
|
494
|
-
case f:
|
|
495
668
|
case m:
|
|
496
|
-
|
|
669
|
+
case p:
|
|
670
|
+
return h;
|
|
497
671
|
default:
|
|
498
|
-
switch (
|
|
499
|
-
case
|
|
672
|
+
switch (h = h && h.$$typeof, h) {
|
|
673
|
+
case a:
|
|
500
674
|
case i:
|
|
501
|
-
case
|
|
675
|
+
case l:
|
|
502
676
|
case S:
|
|
503
|
-
case
|
|
677
|
+
case f:
|
|
504
678
|
case s:
|
|
505
|
-
return
|
|
679
|
+
return h;
|
|
506
680
|
default:
|
|
507
681
|
return b;
|
|
508
682
|
}
|
|
@@ -512,209 +686,230 @@ function Jr() {
|
|
|
512
686
|
}
|
|
513
687
|
}
|
|
514
688
|
}
|
|
515
|
-
return c(
|
|
516
|
-
Portal = e,
|
|
689
|
+
return c(u, "v"), w.ContextConsumer = i, w.ContextProvider = s, w.Element = t, w.ForwardRef = l, w.Fragment = n, w.Lazy = S, w.Memo = f, w.
|
|
690
|
+
Portal = e, w.Profiler = o, w.StrictMode = r, w.Suspense = m, w.SuspenseList = p, w.isAsyncMode = function() {
|
|
517
691
|
return !1;
|
|
518
|
-
},
|
|
692
|
+
}, w.isConcurrentMode = function() {
|
|
519
693
|
return !1;
|
|
520
|
-
},
|
|
521
|
-
return
|
|
522
|
-
},
|
|
523
|
-
return
|
|
524
|
-
},
|
|
525
|
-
return typeof
|
|
526
|
-
},
|
|
527
|
-
return
|
|
528
|
-
},
|
|
529
|
-
return
|
|
530
|
-
},
|
|
531
|
-
return
|
|
532
|
-
},
|
|
533
|
-
return
|
|
534
|
-
},
|
|
535
|
-
return
|
|
536
|
-
},
|
|
537
|
-
return
|
|
538
|
-
},
|
|
539
|
-
return
|
|
540
|
-
},
|
|
541
|
-
return
|
|
542
|
-
},
|
|
543
|
-
return
|
|
544
|
-
},
|
|
545
|
-
return typeof
|
|
546
|
-
object" &&
|
|
547
|
-
|
|
548
|
-
},
|
|
549
|
-
}
|
|
550
|
-
c(
|
|
694
|
+
}, w.isContextConsumer = function(h) {
|
|
695
|
+
return u(h) === i;
|
|
696
|
+
}, w.isContextProvider = function(h) {
|
|
697
|
+
return u(h) === s;
|
|
698
|
+
}, w.isElement = function(h) {
|
|
699
|
+
return typeof h == "object" && h !== null && h.$$typeof === t;
|
|
700
|
+
}, w.isForwardRef = function(h) {
|
|
701
|
+
return u(h) === l;
|
|
702
|
+
}, w.isFragment = function(h) {
|
|
703
|
+
return u(h) === n;
|
|
704
|
+
}, w.isLazy = function(h) {
|
|
705
|
+
return u(h) === S;
|
|
706
|
+
}, w.isMemo = function(h) {
|
|
707
|
+
return u(h) === f;
|
|
708
|
+
}, w.isPortal = function(h) {
|
|
709
|
+
return u(h) === e;
|
|
710
|
+
}, w.isProfiler = function(h) {
|
|
711
|
+
return u(h) === o;
|
|
712
|
+
}, w.isStrictMode = function(h) {
|
|
713
|
+
return u(h) === r;
|
|
714
|
+
}, w.isSuspense = function(h) {
|
|
715
|
+
return u(h) === m;
|
|
716
|
+
}, w.isSuspenseList = function(h) {
|
|
717
|
+
return u(h) === p;
|
|
718
|
+
}, w.isValidElementType = function(h) {
|
|
719
|
+
return typeof h == "string" || typeof h == "function" || h === n || h === o || h === r || h === m || h === p || h === y || typeof h == "\
|
|
720
|
+
object" && h !== null && (h.$$typeof === S || h.$$typeof === f || h.$$typeof === s || h.$$typeof === i || h.$$typeof === l || h.$$typeof ===
|
|
721
|
+
g || h.getModuleId !== void 0);
|
|
722
|
+
}, w.typeOf = u, w;
|
|
723
|
+
}
|
|
724
|
+
c(fo, "requireReactIs_production_min");
|
|
551
725
|
var A = {};
|
|
552
|
-
var
|
|
553
|
-
function
|
|
554
|
-
return
|
|
726
|
+
var We;
|
|
727
|
+
function mo() {
|
|
728
|
+
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
|
555
729
|
var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
556
|
-
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"),
|
|
557
|
-
t"),
|
|
558
|
-
o"), S = Symbol.for("react.lazy"),
|
|
559
|
-
|
|
560
|
-
function d(
|
|
561
|
-
return !!(typeof
|
|
562
|
-
|
|
563
|
-
$$typeof ===
|
|
730
|
+
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_contex\
|
|
731
|
+
t"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.mem\
|
|
732
|
+
o"), S = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, u = !1, h = !1, b = !1, _ = !1, O;
|
|
733
|
+
O = Symbol.for("react.module.reference");
|
|
734
|
+
function d(T) {
|
|
735
|
+
return !!(typeof T == "string" || typeof T == "function" || T === n || T === o || _ || T === r || T === m || T === p || b || T === y ||
|
|
736
|
+
g || u || h || typeof T == "object" && T !== null && (T.$$typeof === S || T.$$typeof === f || T.$$typeof === s || T.$$typeof === i || T.
|
|
737
|
+
$$typeof === l || // This needs to include all possible module reference object
|
|
564
738
|
// types supported by any Flight configuration anywhere since
|
|
565
739
|
// we don't know which Flight build this will end up being used
|
|
566
740
|
// with.
|
|
567
|
-
|
|
741
|
+
T.$$typeof === O || T.getModuleId !== void 0));
|
|
568
742
|
}
|
|
569
743
|
c(d, "isValidElementType");
|
|
570
|
-
function
|
|
571
|
-
if (typeof
|
|
572
|
-
var
|
|
573
|
-
switch (
|
|
744
|
+
function E(T) {
|
|
745
|
+
if (typeof T == "object" && T !== null) {
|
|
746
|
+
var Qt = T.$$typeof;
|
|
747
|
+
switch (Qt) {
|
|
574
748
|
case t:
|
|
575
|
-
var
|
|
576
|
-
switch (
|
|
749
|
+
var Nt = T.type;
|
|
750
|
+
switch (Nt) {
|
|
577
751
|
case n:
|
|
578
752
|
case o:
|
|
579
753
|
case r:
|
|
580
|
-
case f:
|
|
581
754
|
case m:
|
|
582
|
-
|
|
755
|
+
case p:
|
|
756
|
+
return Nt;
|
|
583
757
|
default:
|
|
584
|
-
var
|
|
585
|
-
switch (
|
|
586
|
-
case
|
|
758
|
+
var Le = Nt && Nt.$$typeof;
|
|
759
|
+
switch (Le) {
|
|
760
|
+
case a:
|
|
587
761
|
case i:
|
|
588
|
-
case
|
|
762
|
+
case l:
|
|
589
763
|
case S:
|
|
590
|
-
case
|
|
764
|
+
case f:
|
|
591
765
|
case s:
|
|
592
|
-
return
|
|
766
|
+
return Le;
|
|
593
767
|
default:
|
|
594
|
-
return
|
|
768
|
+
return Qt;
|
|
595
769
|
}
|
|
596
770
|
}
|
|
597
771
|
case e:
|
|
598
|
-
return
|
|
772
|
+
return Qt;
|
|
599
773
|
}
|
|
600
774
|
}
|
|
601
775
|
}
|
|
602
|
-
c(
|
|
603
|
-
var
|
|
604
|
-
function
|
|
605
|
-
return
|
|
776
|
+
c(E, "typeOf");
|
|
777
|
+
var $ = i, C = s, R = t, J = l, tt = n, L = S, z = f, X = e, V = o, M = r, F = m, D = p, Z = !1, B = !1;
|
|
778
|
+
function K(T) {
|
|
779
|
+
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
606
780
|
}
|
|
607
|
-
c(
|
|
608
|
-
function
|
|
609
|
-
return
|
|
781
|
+
c(K, "isAsyncMode");
|
|
782
|
+
function st(T) {
|
|
783
|
+
return B || (B = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
610
784
|
}
|
|
611
|
-
c(
|
|
612
|
-
function
|
|
613
|
-
return
|
|
785
|
+
c(st, "isConcurrentMode");
|
|
786
|
+
function G(T) {
|
|
787
|
+
return E(T) === i;
|
|
614
788
|
}
|
|
615
|
-
c(
|
|
616
|
-
function
|
|
617
|
-
return
|
|
789
|
+
c(G, "isContextConsumer");
|
|
790
|
+
function H(T) {
|
|
791
|
+
return E(T) === s;
|
|
618
792
|
}
|
|
619
|
-
c(
|
|
620
|
-
function
|
|
621
|
-
return typeof
|
|
793
|
+
c(H, "isContextProvider");
|
|
794
|
+
function ct(T) {
|
|
795
|
+
return typeof T == "object" && T !== null && T.$$typeof === t;
|
|
622
796
|
}
|
|
623
|
-
c(
|
|
624
|
-
function
|
|
625
|
-
return
|
|
797
|
+
c(ct, "isElement");
|
|
798
|
+
function Q(T) {
|
|
799
|
+
return E(T) === l;
|
|
626
800
|
}
|
|
627
|
-
c(
|
|
628
|
-
function
|
|
629
|
-
return
|
|
801
|
+
c(Q, "isForwardRef");
|
|
802
|
+
function q(T) {
|
|
803
|
+
return E(T) === n;
|
|
630
804
|
}
|
|
631
|
-
c(
|
|
632
|
-
function
|
|
633
|
-
return
|
|
805
|
+
c(q, "isFragment");
|
|
806
|
+
function it(T) {
|
|
807
|
+
return E(T) === S;
|
|
634
808
|
}
|
|
635
|
-
c(
|
|
636
|
-
function
|
|
637
|
-
return
|
|
809
|
+
c(it, "isLazy");
|
|
810
|
+
function dt(T) {
|
|
811
|
+
return E(T) === f;
|
|
638
812
|
}
|
|
639
|
-
c(
|
|
640
|
-
function
|
|
641
|
-
return
|
|
813
|
+
c(dt, "isMemo");
|
|
814
|
+
function at(T) {
|
|
815
|
+
return E(T) === e;
|
|
642
816
|
}
|
|
643
|
-
c(
|
|
644
|
-
function
|
|
645
|
-
return
|
|
817
|
+
c(at, "isPortal");
|
|
818
|
+
function Ct(T) {
|
|
819
|
+
return E(T) === o;
|
|
646
820
|
}
|
|
647
|
-
c(
|
|
648
|
-
function
|
|
649
|
-
return
|
|
821
|
+
c(Ct, "isProfiler");
|
|
822
|
+
function At(T) {
|
|
823
|
+
return E(T) === r;
|
|
650
824
|
}
|
|
651
|
-
c(
|
|
652
|
-
function
|
|
653
|
-
return
|
|
825
|
+
c(At, "isStrictMode");
|
|
826
|
+
function Rt(T) {
|
|
827
|
+
return E(T) === m;
|
|
654
828
|
}
|
|
655
|
-
c(
|
|
656
|
-
function
|
|
657
|
-
return
|
|
829
|
+
c(Rt, "isSuspense");
|
|
830
|
+
function pr(T) {
|
|
831
|
+
return E(T) === p;
|
|
658
832
|
}
|
|
659
|
-
c(
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
833
|
+
c(pr, "isSuspenseList"), A.ContextConsumer = $, A.ContextProvider = C, A.Element = R, A.ForwardRef = J, A.Fragment = tt, A.Lazy = L, A.Memo =
|
|
834
|
+
z, A.Portal = X, A.Profiler = V, A.StrictMode = M, A.Suspense = F, A.SuspenseList = D, A.isAsyncMode = K, A.isConcurrentMode = st, A.isContextConsumer =
|
|
835
|
+
G, A.isContextProvider = H, A.isElement = ct, A.isForwardRef = Q, A.isFragment = q, A.isLazy = it, A.isMemo = dt, A.isPortal = at, A.isProfiler =
|
|
836
|
+
Ct, A.isStrictMode = At, A.isSuspense = Rt, A.isSuspenseList = pr, A.isValidElementType = d, A.typeOf = E;
|
|
663
837
|
}()), A;
|
|
664
838
|
}
|
|
665
|
-
c(
|
|
666
|
-
var
|
|
667
|
-
function
|
|
668
|
-
return
|
|
669
|
-
}
|
|
670
|
-
c(
|
|
671
|
-
var
|
|
672
|
-
|
|
839
|
+
c(mo, "requireReactIs_development");
|
|
840
|
+
var Ve;
|
|
841
|
+
function po() {
|
|
842
|
+
return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? Lt.exports = fo() : Lt.exports = mo()), Lt.exports;
|
|
843
|
+
}
|
|
844
|
+
c(po, "requireReactIs");
|
|
845
|
+
var cn = po(), go = /* @__PURE__ */ on(cn), ho = /* @__PURE__ */ Ze({
|
|
846
|
+
__proto__: null,
|
|
847
|
+
default: go
|
|
848
|
+
}, [cn]), yo = [
|
|
849
|
+
"isAsyncMode",
|
|
850
|
+
"isConcurrentMode",
|
|
851
|
+
"isContextConsumer",
|
|
852
|
+
"isContextProvider",
|
|
853
|
+
"isElement",
|
|
854
|
+
"isForwardRef",
|
|
855
|
+
"isFragment",
|
|
856
|
+
"isLazy",
|
|
857
|
+
"isMemo",
|
|
858
|
+
"isPortal",
|
|
859
|
+
"isProfiler",
|
|
860
|
+
"isStrictMode",
|
|
861
|
+
"isSuspense",
|
|
862
|
+
"isSuspenseList",
|
|
863
|
+
"isValidElementType"
|
|
864
|
+
], mt = Object.fromEntries(
|
|
865
|
+
yo.map((t) => [t, (e) => ho[t](e) || ao[t](e)])
|
|
866
|
+
);
|
|
867
|
+
function un(t, e = []) {
|
|
673
868
|
if (Array.isArray(t))
|
|
674
869
|
for (let n of t)
|
|
675
|
-
|
|
870
|
+
un(n, e);
|
|
676
871
|
else t != null && t !== !1 && t !== "" && e.push(t);
|
|
677
872
|
return e;
|
|
678
873
|
}
|
|
679
|
-
c(
|
|
680
|
-
function
|
|
874
|
+
c(un, "getChildren");
|
|
875
|
+
function qe(t) {
|
|
681
876
|
let e = t.type;
|
|
682
877
|
if (typeof e == "string")
|
|
683
878
|
return e;
|
|
684
879
|
if (typeof e == "function")
|
|
685
880
|
return e.displayName || e.name || "Unknown";
|
|
686
|
-
if (
|
|
881
|
+
if (mt.isFragment(t))
|
|
687
882
|
return "React.Fragment";
|
|
688
|
-
if (
|
|
883
|
+
if (mt.isSuspense(t))
|
|
689
884
|
return "React.Suspense";
|
|
690
885
|
if (typeof e == "object" && e !== null) {
|
|
691
|
-
if (
|
|
886
|
+
if (mt.isContextProvider(t))
|
|
692
887
|
return "Context.Provider";
|
|
693
|
-
if (
|
|
888
|
+
if (mt.isContextConsumer(t))
|
|
694
889
|
return "Context.Consumer";
|
|
695
|
-
if (
|
|
890
|
+
if (mt.isForwardRef(t)) {
|
|
696
891
|
if (e.displayName)
|
|
697
892
|
return e.displayName;
|
|
698
893
|
let n = e.render.displayName || e.render.name || "";
|
|
699
894
|
return n === "" ? "ForwardRef" : `ForwardRef(${n})`;
|
|
700
895
|
}
|
|
701
|
-
if (
|
|
896
|
+
if (mt.isMemo(t)) {
|
|
702
897
|
let n = e.displayName || e.type.displayName || e.type.name || "";
|
|
703
898
|
return n === "" ? "Memo" : `Memo(${n})`;
|
|
704
899
|
}
|
|
705
900
|
}
|
|
706
901
|
return "UNDEFINED";
|
|
707
902
|
}
|
|
708
|
-
c(
|
|
709
|
-
function
|
|
903
|
+
c(qe, "getType");
|
|
904
|
+
function bo(t) {
|
|
710
905
|
let { props: e } = t;
|
|
711
906
|
return Object.keys(e).filter((n) => n !== "children" && e[n] !== void 0).sort();
|
|
712
907
|
}
|
|
713
|
-
c(
|
|
714
|
-
var
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
908
|
+
c(bo, "getPropKeys$1");
|
|
909
|
+
var So = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(qe(t), e) : ie(
|
|
910
|
+
qe(t),
|
|
911
|
+
oe(
|
|
912
|
+
bo(t),
|
|
718
913
|
t.props,
|
|
719
914
|
e,
|
|
720
915
|
n + e.indent,
|
|
@@ -722,8 +917,8 @@ var vr = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(Be(t), e)
|
|
|
722
917
|
o,
|
|
723
918
|
s
|
|
724
919
|
),
|
|
725
|
-
|
|
726
|
-
|
|
920
|
+
se(
|
|
921
|
+
un(t.props.children),
|
|
727
922
|
e,
|
|
728
923
|
n + e.indent,
|
|
729
924
|
r,
|
|
@@ -732,17 +927,17 @@ var vr = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(Be(t), e)
|
|
|
732
927
|
),
|
|
733
928
|
e,
|
|
734
929
|
n
|
|
735
|
-
), "serialize$1"),
|
|
930
|
+
), "serialize$1"), Eo = /* @__PURE__ */ c((t) => t != null && mt.isElement(t), "test$1"), _o = { serialize: So, test: Eo }, Co = typeof Symbol ==
|
|
736
931
|
"function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
737
|
-
function
|
|
932
|
+
function To(t) {
|
|
738
933
|
let { props: e } = t;
|
|
739
934
|
return e ? Object.keys(e).filter((n) => e[n] !== void 0).sort() : [];
|
|
740
935
|
}
|
|
741
|
-
c(
|
|
742
|
-
var
|
|
936
|
+
c(To, "getPropKeys");
|
|
937
|
+
var Oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(t.type, e) : ie(
|
|
743
938
|
t.type,
|
|
744
|
-
t.props ?
|
|
745
|
-
|
|
939
|
+
t.props ? oe(
|
|
940
|
+
To(t),
|
|
746
941
|
t.props,
|
|
747
942
|
e,
|
|
748
943
|
n + e.indent,
|
|
@@ -750,7 +945,7 @@ var oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(t.type, e
|
|
|
750
945
|
o,
|
|
751
946
|
s
|
|
752
947
|
) : "",
|
|
753
|
-
t.children ?
|
|
948
|
+
t.children ? se(
|
|
754
949
|
t.children,
|
|
755
950
|
e,
|
|
756
951
|
n + e.indent,
|
|
@@ -760,17 +955,17 @@ var oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? oe(t.type, e
|
|
|
760
955
|
) : "",
|
|
761
956
|
e,
|
|
762
957
|
n
|
|
763
|
-
), "serialize"),
|
|
764
|
-
|
|
765
|
-
function
|
|
958
|
+
), "serialize"), $o = /* @__PURE__ */ c((t) => t && t.$$typeof === Co, "test"), wo = { serialize: Oo, test: $o }, ln = Object.prototype.toString,
|
|
959
|
+
Ao = Date.prototype.toISOString, Ro = Error.prototype.toString, Ke = RegExp.prototype.toString;
|
|
960
|
+
function xt(t) {
|
|
766
961
|
return typeof t.constructor == "function" && t.constructor.name || "Object";
|
|
767
962
|
}
|
|
768
|
-
c(
|
|
769
|
-
function
|
|
963
|
+
c(xt, "getConstructorName");
|
|
964
|
+
function No(t) {
|
|
770
965
|
return typeof window < "u" && t === window;
|
|
771
966
|
}
|
|
772
|
-
c(
|
|
773
|
-
var
|
|
967
|
+
c(No, "isWindow");
|
|
968
|
+
var Po = /^Symbol\((.*)\)(.*)$/, Io = /\n/g, Dt = class extends Error {
|
|
774
969
|
static {
|
|
775
970
|
c(this, "PrettyFormatPluginError");
|
|
776
971
|
}
|
|
@@ -778,33 +973,33 @@ var ao = /^Symbol\((.*)\)(.*)$/, fo = /\n/g, Rt = class extends Error {
|
|
|
778
973
|
super(e), this.stack = n, this.name = this.constructor.name;
|
|
779
974
|
}
|
|
780
975
|
};
|
|
781
|
-
function
|
|
976
|
+
function Mo(t) {
|
|
782
977
|
return t === "[object Array]" || t === "[object ArrayBuffer]" || t === "[object DataView]" || t === "[object Float32Array]" || t === "[obj\
|
|
783
978
|
ect Float64Array]" || t === "[object Int8Array]" || t === "[object Int16Array]" || t === "[object Int32Array]" || t === "[object Uint8Array]" ||
|
|
784
979
|
t === "[object Uint8ClampedArray]" || t === "[object Uint16Array]" || t === "[object Uint32Array]";
|
|
785
980
|
}
|
|
786
|
-
c(
|
|
787
|
-
function
|
|
981
|
+
c(Mo, "isToStringedArrayType");
|
|
982
|
+
function Lo(t) {
|
|
788
983
|
return Object.is(t, -0) ? "-0" : String(t);
|
|
789
984
|
}
|
|
790
|
-
c(
|
|
791
|
-
function
|
|
985
|
+
c(Lo, "printNumber");
|
|
986
|
+
function xo(t) {
|
|
792
987
|
return `${t}n`;
|
|
793
988
|
}
|
|
794
|
-
c(
|
|
795
|
-
function
|
|
989
|
+
c(xo, "printBigInt");
|
|
990
|
+
function Ge(t, e) {
|
|
796
991
|
return e ? `[Function ${t.name || "anonymous"}]` : "[Function]";
|
|
797
992
|
}
|
|
798
|
-
c(
|
|
799
|
-
function
|
|
800
|
-
return String(t).replace(
|
|
993
|
+
c(Ge, "printFunction");
|
|
994
|
+
function He(t) {
|
|
995
|
+
return String(t).replace(Po, "Symbol($1)");
|
|
801
996
|
}
|
|
802
|
-
c(
|
|
803
|
-
function
|
|
804
|
-
return `[${
|
|
997
|
+
c(He, "printSymbol");
|
|
998
|
+
function Je(t) {
|
|
999
|
+
return `[${Ro.call(t)}]`;
|
|
805
1000
|
}
|
|
806
|
-
c(
|
|
807
|
-
function
|
|
1001
|
+
c(Je, "printError");
|
|
1002
|
+
function an(t, e, n, r) {
|
|
808
1003
|
if (t === !0 || t === !1)
|
|
809
1004
|
return `${t}`;
|
|
810
1005
|
if (t === void 0)
|
|
@@ -813,77 +1008,99 @@ function ve(t, e, n, r) {
|
|
|
813
1008
|
return "null";
|
|
814
1009
|
let o = typeof t;
|
|
815
1010
|
if (o === "number")
|
|
816
|
-
return
|
|
1011
|
+
return Lo(t);
|
|
817
1012
|
if (o === "bigint")
|
|
818
|
-
return
|
|
1013
|
+
return xo(t);
|
|
819
1014
|
if (o === "string")
|
|
820
1015
|
return r ? `"${t.replaceAll(/"|\\/g, "\\$&")}"` : `"${t}"`;
|
|
821
1016
|
if (o === "function")
|
|
822
|
-
return
|
|
1017
|
+
return Ge(t, e);
|
|
823
1018
|
if (o === "symbol")
|
|
824
|
-
return
|
|
825
|
-
let s =
|
|
1019
|
+
return He(t);
|
|
1020
|
+
let s = ln.call(t);
|
|
826
1021
|
return s === "[object WeakMap]" ? "WeakMap {}" : s === "[object WeakSet]" ? "WeakSet {}" : s === "[object Function]" || s === "[object Gen\
|
|
827
|
-
eratorFunction]" ?
|
|
828
|
-
"[object Error]" ?
|
|
829
|
-
|
|
1022
|
+
eratorFunction]" ? Ge(t, e) : s === "[object Symbol]" ? He(t) : s === "[object Date]" ? Number.isNaN(+t) ? "Date { NaN }" : Ao.call(t) : s ===
|
|
1023
|
+
"[object Error]" ? Je(t) : s === "[object RegExp]" ? n ? Ke.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Ke.call(t) : t instanceof Error ?
|
|
1024
|
+
Je(t) : null;
|
|
830
1025
|
}
|
|
831
|
-
c(
|
|
832
|
-
function
|
|
1026
|
+
c(an, "printBasicValue");
|
|
1027
|
+
function fn(t, e, n, r, o, s) {
|
|
833
1028
|
if (o.includes(t))
|
|
834
1029
|
return "[Circular]";
|
|
835
1030
|
o = [...o], o.push(t);
|
|
836
|
-
let i = ++r > e.maxDepth,
|
|
1031
|
+
let i = ++r > e.maxDepth, a = e.min;
|
|
837
1032
|
if (e.callToJSON && !i && t.toJSON && typeof t.toJSON == "function" && !s)
|
|
838
|
-
return
|
|
839
|
-
let
|
|
840
|
-
return
|
|
1033
|
+
return ft(t.toJSON(), e, n, r, o, !0);
|
|
1034
|
+
let l = ln.call(t);
|
|
1035
|
+
return l === "[object Arguments]" ? i ? "[Arguments]" : `${a ? "" : "Arguments "}[${Ft(
|
|
841
1036
|
t,
|
|
842
1037
|
e,
|
|
843
1038
|
n,
|
|
844
1039
|
r,
|
|
845
1040
|
o,
|
|
846
|
-
|
|
847
|
-
)}]` :
|
|
848
|
-
`}[${
|
|
1041
|
+
ft
|
|
1042
|
+
)}]` : Mo(l) ? i ? `[${t.constructor.name}]` : `${a || !e.printBasicPrototype && t.constructor.name === "Array" ? "" : `${t.constructor.name}\
|
|
1043
|
+
`}[${Ft(t, e, n, r, o, ft)}]` : l === "[object Map]" ? i ? "[Map]" : `Map {${Ot(
|
|
849
1044
|
t.entries(),
|
|
850
1045
|
e,
|
|
851
1046
|
n,
|
|
852
1047
|
r,
|
|
853
1048
|
o,
|
|
854
|
-
|
|
1049
|
+
ft,
|
|
855
1050
|
" => "
|
|
856
|
-
)}}` :
|
|
1051
|
+
)}}` : l === "[object Set]" ? i ? "[Set]" : `Set {${ne(
|
|
857
1052
|
t.values(),
|
|
858
1053
|
e,
|
|
859
1054
|
n,
|
|
860
1055
|
r,
|
|
861
1056
|
o,
|
|
862
|
-
|
|
863
|
-
)}}` : i ||
|
|
1057
|
+
ft
|
|
1058
|
+
)}}` : i || No(t) ? `[${xt(t)}]` : `${a || !e.printBasicPrototype && xt(t) === "Object" ? "" : `${xt(t)} `}{${re(
|
|
864
1059
|
t,
|
|
865
1060
|
e,
|
|
866
1061
|
n,
|
|
867
1062
|
r,
|
|
868
1063
|
o,
|
|
869
|
-
|
|
1064
|
+
ft
|
|
870
1065
|
)}}`;
|
|
871
1066
|
}
|
|
872
|
-
c(
|
|
873
|
-
|
|
1067
|
+
c(fn, "printComplexValue");
|
|
1068
|
+
var Fo = {
|
|
1069
|
+
test: /* @__PURE__ */ c((t) => t && t instanceof Error, "test"),
|
|
1070
|
+
serialize(t, e, n, r, o, s) {
|
|
1071
|
+
if (o.includes(t))
|
|
1072
|
+
return "[Circular]";
|
|
1073
|
+
o = [...o, t];
|
|
1074
|
+
let i = ++r > e.maxDepth, { message: a, cause: l, ...m } = t, p = {
|
|
1075
|
+
message: a,
|
|
1076
|
+
...typeof l < "u" ? { cause: l } : {},
|
|
1077
|
+
...t instanceof AggregateError ? { errors: t.errors } : {},
|
|
1078
|
+
...m
|
|
1079
|
+
}, f = t.name !== "Error" ? t.name : xt(t);
|
|
1080
|
+
return i ? `[${f}]` : `${f} {${Ot(
|
|
1081
|
+
Object.entries(p).values(),
|
|
1082
|
+
e,
|
|
1083
|
+
n,
|
|
1084
|
+
r,
|
|
1085
|
+
o,
|
|
1086
|
+
s
|
|
1087
|
+
)}}`;
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1090
|
+
function Do(t) {
|
|
874
1091
|
return t.serialize != null;
|
|
875
1092
|
}
|
|
876
|
-
c(
|
|
877
|
-
function
|
|
1093
|
+
c(Do, "isNewPlugin");
|
|
1094
|
+
function mn(t, e, n, r, o, s) {
|
|
878
1095
|
let i;
|
|
879
1096
|
try {
|
|
880
|
-
i =
|
|
1097
|
+
i = Do(t) ? t.serialize(e, n, r, o, s, ft) : t.print(
|
|
881
1098
|
e,
|
|
882
|
-
(
|
|
883
|
-
(
|
|
884
|
-
let
|
|
885
|
-
return
|
|
886
|
-
${
|
|
1099
|
+
(a) => ft(a, n, r, o, s),
|
|
1100
|
+
(a) => {
|
|
1101
|
+
let l = r + n.indent;
|
|
1102
|
+
return l + a.replaceAll(Io, `
|
|
1103
|
+
${l}`);
|
|
887
1104
|
},
|
|
888
1105
|
{
|
|
889
1106
|
edgeSpacing: n.spacingOuter,
|
|
@@ -892,8 +1109,8 @@ ${u}`);
|
|
|
892
1109
|
},
|
|
893
1110
|
n.colors
|
|
894
1111
|
);
|
|
895
|
-
} catch (
|
|
896
|
-
throw new
|
|
1112
|
+
} catch (a) {
|
|
1113
|
+
throw new Dt(a.message, a.stack);
|
|
897
1114
|
}
|
|
898
1115
|
if (typeof i != "string")
|
|
899
1116
|
throw new TypeError(
|
|
@@ -901,29 +1118,29 @@ ${u}`);
|
|
|
901
1118
|
);
|
|
902
1119
|
return i;
|
|
903
1120
|
}
|
|
904
|
-
c(
|
|
905
|
-
function
|
|
1121
|
+
c(mn, "printPlugin");
|
|
1122
|
+
function pn(t, e) {
|
|
906
1123
|
for (let n of t)
|
|
907
1124
|
try {
|
|
908
1125
|
if (n.test(e))
|
|
909
1126
|
return n;
|
|
910
1127
|
} catch (r) {
|
|
911
|
-
throw new
|
|
1128
|
+
throw new Dt(r.message, r.stack);
|
|
912
1129
|
}
|
|
913
1130
|
return null;
|
|
914
1131
|
}
|
|
915
|
-
c(
|
|
916
|
-
function
|
|
917
|
-
let i =
|
|
1132
|
+
c(pn, "findPlugin");
|
|
1133
|
+
function ft(t, e, n, r, o, s) {
|
|
1134
|
+
let i = pn(e.plugins, t);
|
|
918
1135
|
if (i !== null)
|
|
919
|
-
return
|
|
920
|
-
let
|
|
1136
|
+
return mn(i, t, e, n, r, o);
|
|
1137
|
+
let a = an(
|
|
921
1138
|
t,
|
|
922
1139
|
e.printFunctionName,
|
|
923
1140
|
e.escapeRegex,
|
|
924
1141
|
e.escapeString
|
|
925
1142
|
);
|
|
926
|
-
return
|
|
1143
|
+
return a !== null ? a : fn(
|
|
927
1144
|
t,
|
|
928
1145
|
e,
|
|
929
1146
|
n,
|
|
@@ -932,14 +1149,14 @@ function lt(t, e, n, r, o, s) {
|
|
|
932
1149
|
s
|
|
933
1150
|
);
|
|
934
1151
|
}
|
|
935
|
-
c(
|
|
936
|
-
var
|
|
1152
|
+
c(ft, "printer");
|
|
1153
|
+
var ue = {
|
|
937
1154
|
comment: "gray",
|
|
938
1155
|
content: "reset",
|
|
939
1156
|
prop: "yellow",
|
|
940
1157
|
tag: "cyan",
|
|
941
1158
|
value: "green"
|
|
942
|
-
},
|
|
1159
|
+
}, gn = Object.keys(ue), nt = {
|
|
943
1160
|
callToJSON: !0,
|
|
944
1161
|
compareKeys: void 0,
|
|
945
1162
|
escapeRegex: !1,
|
|
@@ -952,21 +1169,21 @@ var se = {
|
|
|
952
1169
|
plugins: [],
|
|
953
1170
|
printBasicPrototype: !0,
|
|
954
1171
|
printFunctionName: !0,
|
|
955
|
-
theme:
|
|
1172
|
+
theme: ue
|
|
956
1173
|
};
|
|
957
|
-
function
|
|
1174
|
+
function jo(t) {
|
|
958
1175
|
for (let e of Object.keys(t))
|
|
959
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
1176
|
+
if (!Object.prototype.hasOwnProperty.call(nt, e))
|
|
960
1177
|
throw new Error(`pretty-format: Unknown option "${e}".`);
|
|
961
1178
|
if (t.min && t.indent !== void 0 && t.indent !== 0)
|
|
962
1179
|
throw new Error(
|
|
963
1180
|
'pretty-format: Options "min" and "indent" cannot be used together.'
|
|
964
1181
|
);
|
|
965
1182
|
}
|
|
966
|
-
c(
|
|
967
|
-
function
|
|
968
|
-
return
|
|
969
|
-
let n =
|
|
1183
|
+
c(jo, "validateOptions");
|
|
1184
|
+
function Bo() {
|
|
1185
|
+
return gn.reduce((t, e) => {
|
|
1186
|
+
let n = ue[e], r = n && et[n];
|
|
970
1187
|
if (r && typeof r.close == "string" && typeof r.open == "string")
|
|
971
1188
|
t[e] = r;
|
|
972
1189
|
else
|
|
@@ -976,74 +1193,75 @@ function bo() {
|
|
|
976
1193
|
return t;
|
|
977
1194
|
}, /* @__PURE__ */ Object.create(null));
|
|
978
1195
|
}
|
|
979
|
-
c(
|
|
980
|
-
function
|
|
981
|
-
return
|
|
1196
|
+
c(Bo, "getColorsHighlight");
|
|
1197
|
+
function ko() {
|
|
1198
|
+
return gn.reduce((t, e) => (t[e] = { close: "", open: "" }, t), /* @__PURE__ */ Object.create(null));
|
|
982
1199
|
}
|
|
983
|
-
c(
|
|
984
|
-
function
|
|
985
|
-
return t?.printFunctionName ??
|
|
1200
|
+
c(ko, "getColorsEmpty");
|
|
1201
|
+
function hn(t) {
|
|
1202
|
+
return t?.printFunctionName ?? nt.printFunctionName;
|
|
986
1203
|
}
|
|
987
|
-
c(
|
|
988
|
-
function
|
|
989
|
-
return t?.escapeRegex ??
|
|
1204
|
+
c(hn, "getPrintFunctionName");
|
|
1205
|
+
function yn(t) {
|
|
1206
|
+
return t?.escapeRegex ?? nt.escapeRegex;
|
|
990
1207
|
}
|
|
991
|
-
c(
|
|
992
|
-
function
|
|
993
|
-
return t?.escapeString ??
|
|
1208
|
+
c(yn, "getEscapeRegex");
|
|
1209
|
+
function dn(t) {
|
|
1210
|
+
return t?.escapeString ?? nt.escapeString;
|
|
994
1211
|
}
|
|
995
|
-
c(
|
|
996
|
-
function
|
|
1212
|
+
c(dn, "getEscapeString");
|
|
1213
|
+
function Xe(t) {
|
|
997
1214
|
return {
|
|
998
|
-
callToJSON: t?.callToJSON ??
|
|
999
|
-
colors: t?.highlight ?
|
|
1000
|
-
compareKeys: typeof t?.compareKeys == "function" || t?.compareKeys === null ? t.compareKeys :
|
|
1001
|
-
escapeRegex:
|
|
1002
|
-
escapeString:
|
|
1003
|
-
indent: t?.min ? "" :
|
|
1004
|
-
maxDepth: t?.maxDepth ??
|
|
1005
|
-
maxWidth: t?.maxWidth ??
|
|
1006
|
-
min: t?.min ??
|
|
1007
|
-
plugins: t?.plugins ??
|
|
1215
|
+
callToJSON: t?.callToJSON ?? nt.callToJSON,
|
|
1216
|
+
colors: t?.highlight ? Bo() : ko(),
|
|
1217
|
+
compareKeys: typeof t?.compareKeys == "function" || t?.compareKeys === null ? t.compareKeys : nt.compareKeys,
|
|
1218
|
+
escapeRegex: yn(t),
|
|
1219
|
+
escapeString: dn(t),
|
|
1220
|
+
indent: t?.min ? "" : zo(t?.indent ?? nt.indent),
|
|
1221
|
+
maxDepth: t?.maxDepth ?? nt.maxDepth,
|
|
1222
|
+
maxWidth: t?.maxWidth ?? nt.maxWidth,
|
|
1223
|
+
min: t?.min ?? nt.min,
|
|
1224
|
+
plugins: t?.plugins ?? nt.plugins,
|
|
1008
1225
|
printBasicPrototype: t?.printBasicPrototype ?? !0,
|
|
1009
|
-
printFunctionName:
|
|
1226
|
+
printFunctionName: hn(t),
|
|
1010
1227
|
spacingInner: t?.min ? " " : `
|
|
1011
1228
|
`,
|
|
1012
1229
|
spacingOuter: t?.min ? "" : `
|
|
1013
1230
|
`
|
|
1014
1231
|
};
|
|
1015
1232
|
}
|
|
1016
|
-
c(
|
|
1017
|
-
function
|
|
1233
|
+
c(Xe, "getConfig");
|
|
1234
|
+
function zo(t) {
|
|
1018
1235
|
return Array.from({ length: t + 1 }).join(" ");
|
|
1019
1236
|
}
|
|
1020
|
-
c(
|
|
1021
|
-
function
|
|
1022
|
-
if (e && (
|
|
1023
|
-
let r =
|
|
1237
|
+
c(zo, "createIndent");
|
|
1238
|
+
function v(t, e) {
|
|
1239
|
+
if (e && (jo(e), e.plugins)) {
|
|
1240
|
+
let r = pn(e.plugins, t);
|
|
1024
1241
|
if (r !== null)
|
|
1025
|
-
return
|
|
1242
|
+
return mn(r, t, Xe(e), "", 0, []);
|
|
1026
1243
|
}
|
|
1027
|
-
let n =
|
|
1244
|
+
let n = an(
|
|
1028
1245
|
t,
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1246
|
+
hn(e),
|
|
1247
|
+
yn(e),
|
|
1248
|
+
dn(e)
|
|
1032
1249
|
);
|
|
1033
|
-
return n !== null ? n :
|
|
1034
|
-
}
|
|
1035
|
-
c(
|
|
1036
|
-
var
|
|
1037
|
-
AsymmetricMatcher:
|
|
1038
|
-
DOMCollection:
|
|
1039
|
-
DOMElement:
|
|
1040
|
-
Immutable:
|
|
1041
|
-
ReactElement:
|
|
1042
|
-
ReactTestComponent:
|
|
1250
|
+
return n !== null ? n : fn(t, Xe(e), "", 0, []);
|
|
1251
|
+
}
|
|
1252
|
+
c(v, "format");
|
|
1253
|
+
var $t = {
|
|
1254
|
+
AsymmetricMatcher: Ar,
|
|
1255
|
+
DOMCollection: xr,
|
|
1256
|
+
DOMElement: Vr,
|
|
1257
|
+
Immutable: so,
|
|
1258
|
+
ReactElement: _o,
|
|
1259
|
+
ReactTestComponent: wo,
|
|
1260
|
+
Error: Fo
|
|
1043
1261
|
};
|
|
1044
1262
|
|
|
1045
1263
|
// ../node_modules/loupe/lib/helpers.js
|
|
1046
|
-
var
|
|
1264
|
+
var bn = {
|
|
1047
1265
|
bold: ["1", "22"],
|
|
1048
1266
|
dim: ["2", "22"],
|
|
1049
1267
|
italic: ["3", "23"],
|
|
@@ -1071,7 +1289,7 @@ var un = {
|
|
|
1071
1289
|
brightcyan: ["36;1", "39"],
|
|
1072
1290
|
brightwhite: ["37;1", "39"],
|
|
1073
1291
|
grey: ["90", "39"]
|
|
1074
|
-
},
|
|
1292
|
+
}, Yo = {
|
|
1075
1293
|
special: "cyan",
|
|
1076
1294
|
number: "yellow",
|
|
1077
1295
|
bigint: "yellow",
|
|
@@ -1082,13 +1300,13 @@ var un = {
|
|
|
1082
1300
|
symbol: "green",
|
|
1083
1301
|
date: "magenta",
|
|
1084
1302
|
regexp: "red"
|
|
1085
|
-
},
|
|
1086
|
-
function
|
|
1087
|
-
let n =
|
|
1303
|
+
}, ut = "\u2026";
|
|
1304
|
+
function Uo(t, e) {
|
|
1305
|
+
let n = bn[Yo[e]] || bn[e] || "";
|
|
1088
1306
|
return n ? `\x1B[${n[0]}m${String(t)}\x1B[${n[1]}m` : String(t);
|
|
1089
1307
|
}
|
|
1090
|
-
c(
|
|
1091
|
-
function
|
|
1308
|
+
c(Uo, "colorise");
|
|
1309
|
+
function Sn({
|
|
1092
1310
|
showHidden: t = !1,
|
|
1093
1311
|
depth: e = 2,
|
|
1094
1312
|
colors: n = !1,
|
|
@@ -1096,12 +1314,12 @@ function ln({
|
|
|
1096
1314
|
showProxy: o = !1,
|
|
1097
1315
|
maxArrayLength: s = 1 / 0,
|
|
1098
1316
|
breakLength: i = 1 / 0,
|
|
1099
|
-
seen:
|
|
1317
|
+
seen: a = [],
|
|
1100
1318
|
// eslint-disable-next-line no-shadow
|
|
1101
|
-
truncate:
|
|
1102
|
-
stylize:
|
|
1103
|
-
} = {},
|
|
1104
|
-
let
|
|
1319
|
+
truncate: l = 1 / 0,
|
|
1320
|
+
stylize: m = String
|
|
1321
|
+
} = {}, p) {
|
|
1322
|
+
let f = {
|
|
1105
1323
|
showHidden: !!t,
|
|
1106
1324
|
depth: Number(e),
|
|
1107
1325
|
colors: !!n,
|
|
@@ -1109,66 +1327,66 @@ function ln({
|
|
|
1109
1327
|
showProxy: !!o,
|
|
1110
1328
|
maxArrayLength: Number(s),
|
|
1111
1329
|
breakLength: Number(i),
|
|
1112
|
-
truncate: Number(
|
|
1113
|
-
seen:
|
|
1114
|
-
inspect:
|
|
1115
|
-
stylize:
|
|
1330
|
+
truncate: Number(l),
|
|
1331
|
+
seen: a,
|
|
1332
|
+
inspect: p,
|
|
1333
|
+
stylize: m
|
|
1116
1334
|
};
|
|
1117
|
-
return
|
|
1335
|
+
return f.colors && (f.stylize = Uo), f;
|
|
1118
1336
|
}
|
|
1119
|
-
c(
|
|
1120
|
-
function
|
|
1337
|
+
c(Sn, "normaliseOptions");
|
|
1338
|
+
function Wo(t) {
|
|
1121
1339
|
return t >= "\uD800" && t <= "\uDBFF";
|
|
1122
1340
|
}
|
|
1123
|
-
c(
|
|
1124
|
-
function
|
|
1341
|
+
c(Wo, "isHighSurrogate");
|
|
1342
|
+
function Y(t, e, n = ut) {
|
|
1125
1343
|
t = String(t);
|
|
1126
1344
|
let r = n.length, o = t.length;
|
|
1127
1345
|
if (r > e && o > r)
|
|
1128
1346
|
return n;
|
|
1129
1347
|
if (o > e && o > r) {
|
|
1130
1348
|
let s = e - r;
|
|
1131
|
-
return s > 0 &&
|
|
1349
|
+
return s > 0 && Wo(t[s - 1]) && (s = s - 1), `${t.slice(0, s)}${n}`;
|
|
1132
1350
|
}
|
|
1133
1351
|
return t;
|
|
1134
1352
|
}
|
|
1135
|
-
c(
|
|
1353
|
+
c(Y, "truncate");
|
|
1136
1354
|
function j(t, e, n, r = ", ") {
|
|
1137
1355
|
n = n || e.inspect;
|
|
1138
1356
|
let o = t.length;
|
|
1139
1357
|
if (o === 0)
|
|
1140
1358
|
return "";
|
|
1141
|
-
let s = e.truncate, i = "",
|
|
1142
|
-
for (let
|
|
1143
|
-
let
|
|
1144
|
-
|
|
1145
|
-
let S = t[
|
|
1146
|
-
e.truncate = s - i.length - (
|
|
1147
|
-
let
|
|
1148
|
-
if (
|
|
1359
|
+
let s = e.truncate, i = "", a = "", l = "";
|
|
1360
|
+
for (let m = 0; m < o; m += 1) {
|
|
1361
|
+
let p = m + 1 === t.length, f = m + 2 === t.length;
|
|
1362
|
+
l = `${ut}(${t.length - m})`;
|
|
1363
|
+
let S = t[m];
|
|
1364
|
+
e.truncate = s - i.length - (p ? 0 : r.length);
|
|
1365
|
+
let y = a || n(S, e) + (p ? "" : r), g = i.length + y.length, u = g + l.length;
|
|
1366
|
+
if (p && g > s && i.length + l.length <= s || !p && !f && u > s || (a = p ? "" : n(t[m + 1], e) + (f ? "" : r), !p && f && u > s && g + a.
|
|
1149
1367
|
length > s))
|
|
1150
1368
|
break;
|
|
1151
|
-
if (i +=
|
|
1152
|
-
|
|
1369
|
+
if (i += y, !p && !f && g + a.length >= s) {
|
|
1370
|
+
l = `${ut}(${t.length - m - 1})`;
|
|
1153
1371
|
break;
|
|
1154
1372
|
}
|
|
1155
|
-
|
|
1373
|
+
l = "";
|
|
1156
1374
|
}
|
|
1157
|
-
return `${i}${
|
|
1375
|
+
return `${i}${l}`;
|
|
1158
1376
|
}
|
|
1159
1377
|
c(j, "inspectList");
|
|
1160
|
-
function
|
|
1378
|
+
function Vo(t) {
|
|
1161
1379
|
return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? t : JSON.stringify(t).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
1162
1380
|
}
|
|
1163
|
-
c(
|
|
1164
|
-
function
|
|
1165
|
-
return n.truncate -= 2, typeof t == "string" ? t =
|
|
1381
|
+
c(Vo, "quoteComplexKey");
|
|
1382
|
+
function lt([t, e], n) {
|
|
1383
|
+
return n.truncate -= 2, typeof t == "string" ? t = Vo(t) : typeof t != "number" && (t = `[${n.inspect(t, n)}]`), n.truncate -= t.length, e =
|
|
1166
1384
|
n.inspect(e, n), `${t}: ${e}`;
|
|
1167
1385
|
}
|
|
1168
|
-
c(
|
|
1386
|
+
c(lt, "inspectProperty");
|
|
1169
1387
|
|
|
1170
1388
|
// ../node_modules/loupe/lib/array.js
|
|
1171
|
-
function
|
|
1389
|
+
function le(t, e) {
|
|
1172
1390
|
let n = Object.keys(t).slice(t.length);
|
|
1173
1391
|
if (!t.length && !n.length)
|
|
1174
1392
|
return "[]";
|
|
@@ -1176,105 +1394,105 @@ function ie(t, e) {
|
|
|
1176
1394
|
let r = j(t, e);
|
|
1177
1395
|
e.truncate -= r.length;
|
|
1178
1396
|
let o = "";
|
|
1179
|
-
return n.length && (o = j(n.map((s) => [s, t[s]]), e,
|
|
1397
|
+
return n.length && (o = j(n.map((s) => [s, t[s]]), e, lt)), `[ ${r}${o ? `, ${o}` : ""} ]`;
|
|
1180
1398
|
}
|
|
1181
|
-
c(
|
|
1399
|
+
c(le, "inspectArray");
|
|
1182
1400
|
|
|
1183
1401
|
// ../node_modules/loupe/lib/typedarray.js
|
|
1184
|
-
var
|
|
1402
|
+
var qo = /* @__PURE__ */ c((t) => typeof Buffer == "function" && t instanceof Buffer ? "Buffer" : t[Symbol.toStringTag] ? t[Symbol.toStringTag] :
|
|
1185
1403
|
t.constructor.name, "getArrayName");
|
|
1186
|
-
function
|
|
1187
|
-
let n =
|
|
1404
|
+
function rt(t, e) {
|
|
1405
|
+
let n = qo(t);
|
|
1188
1406
|
e.truncate -= n.length + 4;
|
|
1189
1407
|
let r = Object.keys(t).slice(t.length);
|
|
1190
1408
|
if (!t.length && !r.length)
|
|
1191
1409
|
return `${n}[]`;
|
|
1192
1410
|
let o = "";
|
|
1193
1411
|
for (let i = 0; i < t.length; i++) {
|
|
1194
|
-
let
|
|
1195
|
-
if (e.truncate -=
|
|
1196
|
-
o += `${
|
|
1412
|
+
let a = `${e.stylize(Y(t[i], e.truncate), "number")}${i === t.length - 1 ? "" : ", "}`;
|
|
1413
|
+
if (e.truncate -= a.length, t[i] !== t.length && e.truncate <= 3) {
|
|
1414
|
+
o += `${ut}(${t.length - t[i] + 1})`;
|
|
1197
1415
|
break;
|
|
1198
1416
|
}
|
|
1199
|
-
o +=
|
|
1417
|
+
o += a;
|
|
1200
1418
|
}
|
|
1201
1419
|
let s = "";
|
|
1202
|
-
return r.length && (s = j(r.map((i) => [i, t[i]]), e,
|
|
1420
|
+
return r.length && (s = j(r.map((i) => [i, t[i]]), e, lt)), `${n}[ ${o}${s ? `, ${s}` : ""} ]`;
|
|
1203
1421
|
}
|
|
1204
|
-
c(
|
|
1422
|
+
c(rt, "inspectTypedArray");
|
|
1205
1423
|
|
|
1206
1424
|
// ../node_modules/loupe/lib/date.js
|
|
1207
|
-
function
|
|
1425
|
+
function ae(t, e) {
|
|
1208
1426
|
let n = t.toJSON();
|
|
1209
1427
|
if (n === null)
|
|
1210
1428
|
return "Invalid Date";
|
|
1211
1429
|
let r = n.split("T"), o = r[0];
|
|
1212
|
-
return e.stylize(`${o}T${
|
|
1430
|
+
return e.stylize(`${o}T${Y(r[1], e.truncate - o.length - 1)}`, "date");
|
|
1213
1431
|
}
|
|
1214
|
-
c(
|
|
1432
|
+
c(ae, "inspectDate");
|
|
1215
1433
|
|
|
1216
1434
|
// ../node_modules/loupe/lib/function.js
|
|
1217
|
-
function
|
|
1435
|
+
function Bt(t, e) {
|
|
1218
1436
|
let n = t[Symbol.toStringTag] || "Function", r = t.name;
|
|
1219
|
-
return r ? e.stylize(`[${n} ${
|
|
1437
|
+
return r ? e.stylize(`[${n} ${Y(r, e.truncate - 11)}]`, "special") : e.stylize(`[${n}]`, "special");
|
|
1220
1438
|
}
|
|
1221
|
-
c(
|
|
1439
|
+
c(Bt, "inspectFunction");
|
|
1222
1440
|
|
|
1223
1441
|
// ../node_modules/loupe/lib/map.js
|
|
1224
|
-
function
|
|
1442
|
+
function Ko([t, e], n) {
|
|
1225
1443
|
return n.truncate -= 4, t = n.inspect(t, n), n.truncate -= t.length, e = n.inspect(e, n), `${t} => ${e}`;
|
|
1226
1444
|
}
|
|
1227
|
-
c(
|
|
1228
|
-
function
|
|
1445
|
+
c(Ko, "inspectMapEntry");
|
|
1446
|
+
function Go(t) {
|
|
1229
1447
|
let e = [];
|
|
1230
1448
|
return t.forEach((n, r) => {
|
|
1231
1449
|
e.push([r, n]);
|
|
1232
1450
|
}), e;
|
|
1233
1451
|
}
|
|
1234
|
-
c(
|
|
1235
|
-
function
|
|
1236
|
-
return t.size
|
|
1452
|
+
c(Go, "mapToEntries");
|
|
1453
|
+
function fe(t, e) {
|
|
1454
|
+
return t.size === 0 ? "Map{}" : (e.truncate -= 7, `Map{ ${j(Go(t), e, Ko)} }`);
|
|
1237
1455
|
}
|
|
1238
|
-
c(
|
|
1456
|
+
c(fe, "inspectMap");
|
|
1239
1457
|
|
|
1240
1458
|
// ../node_modules/loupe/lib/number.js
|
|
1241
|
-
var
|
|
1242
|
-
function
|
|
1243
|
-
return
|
|
1244
|
-
t === 0 ? e.stylize(1 / t === 1 / 0 ? "+0" : "-0", "number") : e.stylize(
|
|
1459
|
+
var Ho = Number.isNaN || ((t) => t !== t);
|
|
1460
|
+
function kt(t, e) {
|
|
1461
|
+
return Ho(t) ? e.stylize("NaN", "number") : t === 1 / 0 ? e.stylize("Infinity", "number") : t === -1 / 0 ? e.stylize("-Infinity", "number") :
|
|
1462
|
+
t === 0 ? e.stylize(1 / t === 1 / 0 ? "+0" : "-0", "number") : e.stylize(Y(String(t), e.truncate), "number");
|
|
1245
1463
|
}
|
|
1246
|
-
c(
|
|
1464
|
+
c(kt, "inspectNumber");
|
|
1247
1465
|
|
|
1248
1466
|
// ../node_modules/loupe/lib/bigint.js
|
|
1249
|
-
function
|
|
1250
|
-
let n =
|
|
1251
|
-
return n !==
|
|
1467
|
+
function zt(t, e) {
|
|
1468
|
+
let n = Y(t.toString(), e.truncate - 1);
|
|
1469
|
+
return n !== ut && (n += "n"), e.stylize(n, "bigint");
|
|
1252
1470
|
}
|
|
1253
|
-
c(
|
|
1471
|
+
c(zt, "inspectBigInt");
|
|
1254
1472
|
|
|
1255
1473
|
// ../node_modules/loupe/lib/regexp.js
|
|
1256
|
-
function
|
|
1474
|
+
function me(t, e) {
|
|
1257
1475
|
let n = t.toString().split("/")[2], r = e.truncate - (2 + n.length), o = t.source;
|
|
1258
|
-
return e.stylize(`/${
|
|
1476
|
+
return e.stylize(`/${Y(o, r)}/${n}`, "regexp");
|
|
1259
1477
|
}
|
|
1260
|
-
c(
|
|
1478
|
+
c(me, "inspectRegExp");
|
|
1261
1479
|
|
|
1262
1480
|
// ../node_modules/loupe/lib/set.js
|
|
1263
|
-
function
|
|
1481
|
+
function Jo(t) {
|
|
1264
1482
|
let e = [];
|
|
1265
1483
|
return t.forEach((n) => {
|
|
1266
1484
|
e.push(n);
|
|
1267
1485
|
}), e;
|
|
1268
1486
|
}
|
|
1269
|
-
c(
|
|
1270
|
-
function
|
|
1271
|
-
return t.size === 0 ? "Set{}" : (e.truncate -= 7, `Set{ ${j(
|
|
1487
|
+
c(Jo, "arrayFromSet");
|
|
1488
|
+
function pe(t, e) {
|
|
1489
|
+
return t.size === 0 ? "Set{}" : (e.truncate -= 7, `Set{ ${j(Jo(t), e)} }`);
|
|
1272
1490
|
}
|
|
1273
|
-
c(
|
|
1491
|
+
c(pe, "inspectSet");
|
|
1274
1492
|
|
|
1275
1493
|
// ../node_modules/loupe/lib/string.js
|
|
1276
|
-
var
|
|
1277
|
-
ffff]", "g"),
|
|
1494
|
+
var En = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
|
|
1495
|
+
ffff]", "g"), Xo = {
|
|
1278
1496
|
"\b": "\\b",
|
|
1279
1497
|
" ": "\\t",
|
|
1280
1498
|
"\n": "\\n",
|
|
@@ -1282,66 +1500,66 @@ ffff]", "g"), Ro = {
|
|
|
1282
1500
|
"\r": "\\r",
|
|
1283
1501
|
"'": "\\'",
|
|
1284
1502
|
"\\": "\\\\"
|
|
1285
|
-
},
|
|
1286
|
-
function
|
|
1287
|
-
return
|
|
1503
|
+
}, Zo = 16, Qo = 4;
|
|
1504
|
+
function vo(t) {
|
|
1505
|
+
return Xo[t] || `\\u${`0000${t.charCodeAt(0).toString(Zo)}`.slice(-Qo)}`;
|
|
1288
1506
|
}
|
|
1289
|
-
c(
|
|
1290
|
-
function
|
|
1291
|
-
return
|
|
1507
|
+
c(vo, "escape");
|
|
1508
|
+
function Yt(t, e) {
|
|
1509
|
+
return En.test(t) && (t = t.replace(En, vo)), e.stylize(`'${Y(t, e.truncate - 2)}'`, "string");
|
|
1292
1510
|
}
|
|
1293
|
-
c(
|
|
1511
|
+
c(Yt, "inspectString");
|
|
1294
1512
|
|
|
1295
1513
|
// ../node_modules/loupe/lib/symbol.js
|
|
1296
|
-
function
|
|
1514
|
+
function Ut(t) {
|
|
1297
1515
|
return "description" in Symbol.prototype ? t.description ? `Symbol(${t.description})` : "Symbol()" : t.toString();
|
|
1298
1516
|
}
|
|
1299
|
-
c(
|
|
1517
|
+
c(Ut, "inspectSymbol");
|
|
1300
1518
|
|
|
1301
1519
|
// ../node_modules/loupe/lib/promise.js
|
|
1302
|
-
var
|
|
1520
|
+
var _n = /* @__PURE__ */ c(() => "Promise{\u2026}", "getPromiseValue");
|
|
1303
1521
|
try {
|
|
1304
1522
|
let { getPromiseDetails: t, kPending: e, kRejected: n } = process.binding("util");
|
|
1305
|
-
Array.isArray(t(Promise.resolve())) && (
|
|
1523
|
+
Array.isArray(t(Promise.resolve())) && (_n = /* @__PURE__ */ c((r, o) => {
|
|
1306
1524
|
let [s, i] = t(r);
|
|
1307
1525
|
return s === e ? "Promise{<pending>}" : `Promise${s === n ? "!" : ""}{${o.inspect(i, o)}}`;
|
|
1308
1526
|
}, "getPromiseValue"));
|
|
1309
1527
|
} catch {
|
|
1310
1528
|
}
|
|
1311
|
-
var
|
|
1529
|
+
var Cn = _n;
|
|
1312
1530
|
|
|
1313
1531
|
// ../node_modules/loupe/lib/object.js
|
|
1314
|
-
function
|
|
1532
|
+
function pt(t, e) {
|
|
1315
1533
|
let n = Object.getOwnPropertyNames(t), r = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t) : [];
|
|
1316
1534
|
if (n.length === 0 && r.length === 0)
|
|
1317
1535
|
return "{}";
|
|
1318
1536
|
if (e.truncate -= 4, e.seen = e.seen || [], e.seen.includes(t))
|
|
1319
1537
|
return "[Circular]";
|
|
1320
1538
|
e.seen.push(t);
|
|
1321
|
-
let o = j(n.map((
|
|
1539
|
+
let o = j(n.map((a) => [a, t[a]]), e, lt), s = j(r.map((a) => [a, t[a]]), e, lt);
|
|
1322
1540
|
e.seen.pop();
|
|
1323
1541
|
let i = "";
|
|
1324
1542
|
return o && s && (i = ", "), `{ ${o}${i}${s} }`;
|
|
1325
1543
|
}
|
|
1326
|
-
c(
|
|
1544
|
+
c(pt, "inspectObject");
|
|
1327
1545
|
|
|
1328
1546
|
// ../node_modules/loupe/lib/class.js
|
|
1329
|
-
var
|
|
1330
|
-
function
|
|
1547
|
+
var ge = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
|
|
1548
|
+
function he(t, e) {
|
|
1331
1549
|
let n = "";
|
|
1332
|
-
return
|
|
1333
|
-
`${n}${
|
|
1550
|
+
return ge && ge in t && (n = t[ge]), n = n || t.constructor.name, (!n || n === "_class") && (n = "<Anonymous Class>"), e.truncate -= n.length,
|
|
1551
|
+
`${n}${pt(t, e)}`;
|
|
1334
1552
|
}
|
|
1335
|
-
c(
|
|
1553
|
+
c(he, "inspectClass");
|
|
1336
1554
|
|
|
1337
1555
|
// ../node_modules/loupe/lib/arguments.js
|
|
1338
|
-
function
|
|
1556
|
+
function ye(t, e) {
|
|
1339
1557
|
return t.length === 0 ? "Arguments[]" : (e.truncate -= 13, `Arguments[ ${j(t, e)} ]`);
|
|
1340
1558
|
}
|
|
1341
|
-
c(
|
|
1559
|
+
c(ye, "inspectArguments");
|
|
1342
1560
|
|
|
1343
1561
|
// ../node_modules/loupe/lib/error.js
|
|
1344
|
-
var
|
|
1562
|
+
var ts = [
|
|
1345
1563
|
"stack",
|
|
1346
1564
|
"line",
|
|
1347
1565
|
"column",
|
|
@@ -1354,155 +1572,155 @@ var xo = [
|
|
|
1354
1572
|
"description",
|
|
1355
1573
|
"cause"
|
|
1356
1574
|
];
|
|
1357
|
-
function
|
|
1358
|
-
let n = Object.getOwnPropertyNames(t).filter((i) =>
|
|
1575
|
+
function de(t, e) {
|
|
1576
|
+
let n = Object.getOwnPropertyNames(t).filter((i) => ts.indexOf(i) === -1), r = t.name;
|
|
1359
1577
|
e.truncate -= r.length;
|
|
1360
1578
|
let o = "";
|
|
1361
|
-
if (typeof t.message == "string" ? o =
|
|
1579
|
+
if (typeof t.message == "string" ? o = Y(t.message, e.truncate) : n.unshift("message"), o = o ? `: ${o}` : "", e.truncate -= o.length + 5,
|
|
1362
1580
|
e.seen = e.seen || [], e.seen.includes(t))
|
|
1363
1581
|
return "[Circular]";
|
|
1364
1582
|
e.seen.push(t);
|
|
1365
|
-
let s = j(n.map((i) => [i, t[i]]), e,
|
|
1583
|
+
let s = j(n.map((i) => [i, t[i]]), e, lt);
|
|
1366
1584
|
return `${r}${o}${s ? ` { ${s} }` : ""}`;
|
|
1367
1585
|
}
|
|
1368
|
-
c(
|
|
1586
|
+
c(de, "inspectObject");
|
|
1369
1587
|
|
|
1370
1588
|
// ../node_modules/loupe/lib/html.js
|
|
1371
|
-
function
|
|
1589
|
+
function es([t, e], n) {
|
|
1372
1590
|
return n.truncate -= 3, e ? `${n.stylize(String(t), "yellow")}=${n.stylize(`"${e}"`, "string")}` : `${n.stylize(String(t), "yellow")}`;
|
|
1373
1591
|
}
|
|
1374
|
-
c(
|
|
1375
|
-
function
|
|
1376
|
-
return j(t, e,
|
|
1592
|
+
c(es, "inspectAttribute");
|
|
1593
|
+
function Wt(t, e) {
|
|
1594
|
+
return j(t, e, Vt, `
|
|
1377
1595
|
`);
|
|
1378
1596
|
}
|
|
1379
|
-
c(
|
|
1380
|
-
function
|
|
1597
|
+
c(Wt, "inspectHTMLCollection");
|
|
1598
|
+
function Vt(t, e) {
|
|
1381
1599
|
let n = t.getAttributeNames(), r = t.tagName.toLowerCase(), o = e.stylize(`<${r}`, "special"), s = e.stylize(">", "special"), i = e.stylize(
|
|
1382
1600
|
`</${r}>`, "special");
|
|
1383
1601
|
e.truncate -= r.length * 2 + 5;
|
|
1384
|
-
let
|
|
1385
|
-
n.length > 0 && (
|
|
1386
|
-
let
|
|
1387
|
-
return
|
|
1602
|
+
let a = "";
|
|
1603
|
+
n.length > 0 && (a += " ", a += j(n.map((p) => [p, t.getAttribute(p)]), e, es, " ")), e.truncate -= a.length;
|
|
1604
|
+
let l = e.truncate, m = Wt(t.children, e);
|
|
1605
|
+
return m && m.length > l && (m = `${ut}(${t.children.length})`), `${o}${a}${s}${m}${i}`;
|
|
1388
1606
|
}
|
|
1389
|
-
c(
|
|
1607
|
+
c(Vt, "inspectHTML");
|
|
1390
1608
|
|
|
1391
1609
|
// ../node_modules/loupe/lib/index.js
|
|
1392
|
-
var
|
|
1610
|
+
var ns = typeof Symbol == "function" && typeof Symbol.for == "function", be = ns ? Symbol.for("chai/inspect") : "@@chai/inspect", St = !1;
|
|
1393
1611
|
try {
|
|
1394
1612
|
let t = require("util");
|
|
1395
|
-
|
|
1613
|
+
St = t.inspect ? t.inspect.custom : !1;
|
|
1396
1614
|
} catch {
|
|
1397
|
-
|
|
1615
|
+
St = !1;
|
|
1398
1616
|
}
|
|
1399
|
-
var
|
|
1617
|
+
var Tn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
1400
1618
|
undefined: /* @__PURE__ */ c((t, e) => e.stylize("undefined", "undefined"), "undefined"),
|
|
1401
1619
|
null: /* @__PURE__ */ c((t, e) => e.stylize("null", "null"), "null"),
|
|
1402
1620
|
boolean: /* @__PURE__ */ c((t, e) => e.stylize(String(t), "boolean"), "boolean"),
|
|
1403
1621
|
Boolean: /* @__PURE__ */ c((t, e) => e.stylize(String(t), "boolean"), "Boolean"),
|
|
1404
|
-
number:
|
|
1405
|
-
Number:
|
|
1406
|
-
bigint:
|
|
1407
|
-
BigInt:
|
|
1408
|
-
string:
|
|
1409
|
-
String:
|
|
1410
|
-
function:
|
|
1411
|
-
Function:
|
|
1412
|
-
symbol:
|
|
1622
|
+
number: kt,
|
|
1623
|
+
Number: kt,
|
|
1624
|
+
bigint: zt,
|
|
1625
|
+
BigInt: zt,
|
|
1626
|
+
string: Yt,
|
|
1627
|
+
String: Yt,
|
|
1628
|
+
function: Bt,
|
|
1629
|
+
Function: Bt,
|
|
1630
|
+
symbol: Ut,
|
|
1413
1631
|
// A Symbol polyfill will return `Symbol` not `symbol` from typedetect
|
|
1414
|
-
Symbol:
|
|
1415
|
-
Array:
|
|
1416
|
-
Date:
|
|
1417
|
-
Map:
|
|
1418
|
-
Set:
|
|
1419
|
-
RegExp:
|
|
1420
|
-
Promise:
|
|
1632
|
+
Symbol: Ut,
|
|
1633
|
+
Array: le,
|
|
1634
|
+
Date: ae,
|
|
1635
|
+
Map: fe,
|
|
1636
|
+
Set: pe,
|
|
1637
|
+
RegExp: me,
|
|
1638
|
+
Promise: Cn,
|
|
1421
1639
|
// WeakSet, WeakMap are totally opaque to us
|
|
1422
1640
|
WeakSet: /* @__PURE__ */ c((t, e) => e.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
|
|
1423
1641
|
WeakMap: /* @__PURE__ */ c((t, e) => e.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
|
|
1424
|
-
Arguments:
|
|
1425
|
-
Int8Array:
|
|
1426
|
-
Uint8Array:
|
|
1427
|
-
Uint8ClampedArray:
|
|
1428
|
-
Int16Array:
|
|
1429
|
-
Uint16Array:
|
|
1430
|
-
Int32Array:
|
|
1431
|
-
Uint32Array:
|
|
1432
|
-
Float32Array:
|
|
1433
|
-
Float64Array:
|
|
1642
|
+
Arguments: ye,
|
|
1643
|
+
Int8Array: rt,
|
|
1644
|
+
Uint8Array: rt,
|
|
1645
|
+
Uint8ClampedArray: rt,
|
|
1646
|
+
Int16Array: rt,
|
|
1647
|
+
Uint16Array: rt,
|
|
1648
|
+
Int32Array: rt,
|
|
1649
|
+
Uint32Array: rt,
|
|
1650
|
+
Float32Array: rt,
|
|
1651
|
+
Float64Array: rt,
|
|
1434
1652
|
Generator: /* @__PURE__ */ c(() => "", "Generator"),
|
|
1435
1653
|
DataView: /* @__PURE__ */ c(() => "", "DataView"),
|
|
1436
1654
|
ArrayBuffer: /* @__PURE__ */ c(() => "", "ArrayBuffer"),
|
|
1437
|
-
Error:
|
|
1438
|
-
HTMLCollection:
|
|
1439
|
-
NodeList:
|
|
1440
|
-
},
|
|
1441
|
-
e.depth, e) : "inspect" in t && typeof t.inspect == "function" ? t.inspect(e.depth, e) : "constructor" in t &&
|
|
1442
|
-
t.constructor)(t, e) :
|
|
1443
|
-
function
|
|
1444
|
-
let n =
|
|
1445
|
-
if (o === "object" && (o =
|
|
1446
|
-
return
|
|
1655
|
+
Error: de,
|
|
1656
|
+
HTMLCollection: Wt,
|
|
1657
|
+
NodeList: Wt
|
|
1658
|
+
}, rs = /* @__PURE__ */ c((t, e, n) => be in t && typeof t[be] == "function" ? t[be](e) : St && St in t && typeof t[St] == "function" ? t[St](
|
|
1659
|
+
e.depth, e) : "inspect" in t && typeof t.inspect == "function" ? t.inspect(e.depth, e) : "constructor" in t && Tn.has(t.constructor) ? Tn.get(
|
|
1660
|
+
t.constructor)(t, e) : On[n] ? On[n](t, e) : "", "inspectCustom"), os = Object.prototype.toString;
|
|
1661
|
+
function qt(t, e = {}) {
|
|
1662
|
+
let n = Sn(e, qt), { customInspect: r } = n, o = t === null ? "null" : typeof t;
|
|
1663
|
+
if (o === "object" && (o = os.call(t).slice(8, -1)), o in $n)
|
|
1664
|
+
return $n[o](t, n);
|
|
1447
1665
|
if (r && t) {
|
|
1448
|
-
let i =
|
|
1666
|
+
let i = rs(t, n, o);
|
|
1449
1667
|
if (i)
|
|
1450
|
-
return typeof i == "string" ? i :
|
|
1668
|
+
return typeof i == "string" ? i : qt(i, n);
|
|
1451
1669
|
}
|
|
1452
1670
|
let s = t ? Object.getPrototypeOf(t) : !1;
|
|
1453
|
-
return s === Object.prototype || s === null ?
|
|
1454
|
-
onstructor" in t ? t.constructor !== Object ?
|
|
1671
|
+
return s === Object.prototype || s === null ? pt(t, n) : t && typeof HTMLElement == "function" && t instanceof HTMLElement ? Vt(t, n) : "c\
|
|
1672
|
+
onstructor" in t ? t.constructor !== Object ? he(t, n) : pt(t, n) : t === Object(t) ? pt(t, n) : n.stylize(String(t), o);
|
|
1455
1673
|
}
|
|
1456
|
-
c(
|
|
1674
|
+
c(qt, "inspect");
|
|
1457
1675
|
|
|
1458
1676
|
// ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
1459
1677
|
var {
|
|
1460
|
-
AsymmetricMatcher:
|
|
1461
|
-
DOMCollection:
|
|
1462
|
-
DOMElement:
|
|
1463
|
-
Immutable:
|
|
1464
|
-
ReactElement:
|
|
1465
|
-
ReactTestComponent:
|
|
1466
|
-
} =
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1678
|
+
AsymmetricMatcher: is,
|
|
1679
|
+
DOMCollection: cs,
|
|
1680
|
+
DOMElement: us,
|
|
1681
|
+
Immutable: ls,
|
|
1682
|
+
ReactElement: as,
|
|
1683
|
+
ReactTestComponent: fs
|
|
1684
|
+
} = $t, wn = [
|
|
1685
|
+
fs,
|
|
1686
|
+
as,
|
|
1687
|
+
us,
|
|
1688
|
+
cs,
|
|
1689
|
+
ls,
|
|
1690
|
+
is
|
|
1473
1691
|
];
|
|
1474
|
-
function
|
|
1692
|
+
function gt(t, e = 10, { maxLength: n, ...r } = {}) {
|
|
1475
1693
|
let o = n ?? 1e4, s;
|
|
1476
1694
|
try {
|
|
1477
|
-
s =
|
|
1695
|
+
s = v(t, {
|
|
1478
1696
|
maxDepth: e,
|
|
1479
1697
|
escapeString: !1,
|
|
1480
1698
|
// min: true,
|
|
1481
|
-
plugins:
|
|
1699
|
+
plugins: wn,
|
|
1482
1700
|
...r
|
|
1483
1701
|
});
|
|
1484
1702
|
} catch {
|
|
1485
|
-
s =
|
|
1703
|
+
s = v(t, {
|
|
1486
1704
|
callToJSON: !1,
|
|
1487
1705
|
maxDepth: e,
|
|
1488
1706
|
escapeString: !1,
|
|
1489
1707
|
// min: true,
|
|
1490
|
-
plugins:
|
|
1708
|
+
plugins: wn,
|
|
1491
1709
|
...r
|
|
1492
1710
|
});
|
|
1493
1711
|
}
|
|
1494
|
-
return s.length >= o && e > 1 ?
|
|
1712
|
+
return s.length >= o && e > 1 ? gt(t, Math.floor(Math.min(e, Number.MAX_SAFE_INTEGER) / 2), { maxLength: n, ...r }) : s;
|
|
1495
1713
|
}
|
|
1496
|
-
c(
|
|
1497
|
-
var
|
|
1498
|
-
function
|
|
1714
|
+
c(gt, "stringify");
|
|
1715
|
+
var ms = /%[sdjifoOc%]/g;
|
|
1716
|
+
function An(...t) {
|
|
1499
1717
|
if (typeof t[0] != "string") {
|
|
1500
1718
|
let s = [];
|
|
1501
1719
|
for (let i = 0; i < t.length; i++)
|
|
1502
|
-
s.push(
|
|
1720
|
+
s.push(wt(t[i], { depth: 0, colors: !1 }));
|
|
1503
1721
|
return s.join(" ");
|
|
1504
1722
|
}
|
|
1505
|
-
let e = t.length, n = 1, r = t[0], o = String(r).replace(
|
|
1723
|
+
let e = t.length, n = 1, r = t[0], o = String(r).replace(ms, (s) => {
|
|
1506
1724
|
if (s === "%%")
|
|
1507
1725
|
return "%";
|
|
1508
1726
|
if (n >= e)
|
|
@@ -1511,7 +1729,8 @@ function dn(...t) {
|
|
|
1511
1729
|
case "%s": {
|
|
1512
1730
|
let i = t[n++];
|
|
1513
1731
|
return typeof i == "bigint" ? `${i.toString()}n` : typeof i == "number" && i === 0 && 1 / i < 0 ? "-0" : typeof i == "object" && i !==
|
|
1514
|
-
null ?
|
|
1732
|
+
null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() : wt(i, { depth: 0, colors: !1 }) :
|
|
1733
|
+
String(i);
|
|
1515
1734
|
}
|
|
1516
1735
|
case "%d": {
|
|
1517
1736
|
let i = t[n++];
|
|
@@ -1524,19 +1743,19 @@ function dn(...t) {
|
|
|
1524
1743
|
case "%f":
|
|
1525
1744
|
return Number.parseFloat(String(t[n++])).toString();
|
|
1526
1745
|
case "%o":
|
|
1527
|
-
return
|
|
1746
|
+
return wt(t[n++], { showHidden: !0, showProxy: !0 });
|
|
1528
1747
|
case "%O":
|
|
1529
|
-
return
|
|
1748
|
+
return wt(t[n++]);
|
|
1530
1749
|
case "%c":
|
|
1531
1750
|
return n++, "";
|
|
1532
1751
|
case "%j":
|
|
1533
1752
|
try {
|
|
1534
1753
|
return JSON.stringify(t[n++]);
|
|
1535
1754
|
} catch (i) {
|
|
1536
|
-
let
|
|
1755
|
+
let a = i.message;
|
|
1537
1756
|
if (
|
|
1538
1757
|
// chromium
|
|
1539
|
-
|
|
1758
|
+
a.includes("circular structure") || a.includes("cyclic structures") || a.includes("cyclic object")
|
|
1540
1759
|
)
|
|
1541
1760
|
return "[Circular]";
|
|
1542
1761
|
throw i;
|
|
@@ -1546,117 +1765,83 @@ function dn(...t) {
|
|
|
1546
1765
|
}
|
|
1547
1766
|
});
|
|
1548
1767
|
for (let s = t[n]; n < e; s = t[++n])
|
|
1549
|
-
s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${
|
|
1768
|
+
s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${wt(s)}`;
|
|
1550
1769
|
return o;
|
|
1551
1770
|
}
|
|
1552
|
-
c(
|
|
1553
|
-
function
|
|
1554
|
-
return e.truncate === 0 && (e.truncate = Number.POSITIVE_INFINITY),
|
|
1771
|
+
c(An, "format");
|
|
1772
|
+
function wt(t, e = {}) {
|
|
1773
|
+
return e.truncate === 0 && (e.truncate = Number.POSITIVE_INFINITY), qt(t, e);
|
|
1555
1774
|
}
|
|
1556
|
-
c(
|
|
1557
|
-
function
|
|
1775
|
+
c(wt, "inspect");
|
|
1776
|
+
function Rn(t) {
|
|
1558
1777
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1559
1778
|
}
|
|
1560
|
-
c(
|
|
1779
|
+
c(Rn, "getDefaultExportFromCjs");
|
|
1561
1780
|
|
|
1562
1781
|
// ../node_modules/@vitest/utils/dist/helpers.js
|
|
1563
|
-
function
|
|
1782
|
+
function ps(t) {
|
|
1564
1783
|
return t === Object.prototype || t === Function.prototype || t === RegExp.prototype;
|
|
1565
1784
|
}
|
|
1566
|
-
c(
|
|
1567
|
-
function
|
|
1785
|
+
c(ps, "isFinalObj");
|
|
1786
|
+
function Kt(t) {
|
|
1568
1787
|
return Object.prototype.toString.apply(t).slice(8, -1);
|
|
1569
1788
|
}
|
|
1570
|
-
c(
|
|
1571
|
-
function
|
|
1789
|
+
c(Kt, "getType");
|
|
1790
|
+
function gs(t, e) {
|
|
1572
1791
|
let n = typeof e == "function" ? e : (r) => e.add(r);
|
|
1573
1792
|
Object.getOwnPropertyNames(t).forEach(n), Object.getOwnPropertySymbols(t).forEach(n);
|
|
1574
1793
|
}
|
|
1575
|
-
c(
|
|
1576
|
-
function
|
|
1794
|
+
c(gs, "collectOwnProperties");
|
|
1795
|
+
function Ee(t) {
|
|
1577
1796
|
let e = /* @__PURE__ */ new Set();
|
|
1578
|
-
return
|
|
1797
|
+
return ps(t) ? [] : (gs(t, e), Array.from(e));
|
|
1579
1798
|
}
|
|
1580
|
-
c(
|
|
1581
|
-
var
|
|
1582
|
-
function
|
|
1583
|
-
return
|
|
1799
|
+
c(Ee, "getOwnProperties");
|
|
1800
|
+
var Nn = { forceWritable: !1 };
|
|
1801
|
+
function _e(t, e = Nn) {
|
|
1802
|
+
return Se(t, /* @__PURE__ */ new WeakMap(), e);
|
|
1584
1803
|
}
|
|
1585
|
-
c(
|
|
1586
|
-
function
|
|
1804
|
+
c(_e, "deepClone");
|
|
1805
|
+
function Se(t, e, n = Nn) {
|
|
1587
1806
|
let r, o;
|
|
1588
1807
|
if (e.has(t))
|
|
1589
1808
|
return e.get(t);
|
|
1590
1809
|
if (Array.isArray(t)) {
|
|
1591
1810
|
for (o = Array.from({ length: r = t.length }), e.set(t, o); r--; )
|
|
1592
|
-
o[r] =
|
|
1811
|
+
o[r] = Se(t[r], e, n);
|
|
1593
1812
|
return o;
|
|
1594
1813
|
}
|
|
1595
1814
|
if (Object.prototype.toString.call(t) === "[object Object]") {
|
|
1596
1815
|
o = Object.create(Object.getPrototypeOf(t)), e.set(t, o);
|
|
1597
|
-
let s =
|
|
1816
|
+
let s = Ee(t);
|
|
1598
1817
|
for (let i of s) {
|
|
1599
|
-
let
|
|
1600
|
-
if (!
|
|
1818
|
+
let a = Object.getOwnPropertyDescriptor(t, i);
|
|
1819
|
+
if (!a)
|
|
1601
1820
|
continue;
|
|
1602
|
-
let
|
|
1821
|
+
let l = Se(t[i], e, n);
|
|
1603
1822
|
n.forceWritable ? Object.defineProperty(o, i, {
|
|
1604
|
-
enumerable:
|
|
1823
|
+
enumerable: a.enumerable,
|
|
1605
1824
|
configurable: !0,
|
|
1606
1825
|
writable: !0,
|
|
1607
|
-
value:
|
|
1608
|
-
}) : "get" in
|
|
1609
|
-
...
|
|
1826
|
+
value: l
|
|
1827
|
+
}) : "get" in a ? Object.defineProperty(o, i, {
|
|
1828
|
+
...a,
|
|
1610
1829
|
get() {
|
|
1611
|
-
return
|
|
1830
|
+
return l;
|
|
1612
1831
|
}
|
|
1613
1832
|
}) : Object.defineProperty(o, i, {
|
|
1614
|
-
...
|
|
1615
|
-
value:
|
|
1833
|
+
...a,
|
|
1834
|
+
value: l
|
|
1616
1835
|
});
|
|
1617
1836
|
}
|
|
1618
1837
|
return o;
|
|
1619
1838
|
}
|
|
1620
1839
|
return t;
|
|
1621
1840
|
}
|
|
1622
|
-
c(
|
|
1841
|
+
c(Se, "clone");
|
|
1623
1842
|
|
|
1624
1843
|
// ../node_modules/@vitest/utils/dist/diff.js
|
|
1625
|
-
|
|
1626
|
-
if (t === void 0)
|
|
1627
|
-
return "undefined";
|
|
1628
|
-
if (t === null)
|
|
1629
|
-
return "null";
|
|
1630
|
-
if (Array.isArray(t))
|
|
1631
|
-
return "array";
|
|
1632
|
-
if (typeof t == "boolean")
|
|
1633
|
-
return "boolean";
|
|
1634
|
-
if (typeof t == "function")
|
|
1635
|
-
return "function";
|
|
1636
|
-
if (typeof t == "number")
|
|
1637
|
-
return "number";
|
|
1638
|
-
if (typeof t == "string")
|
|
1639
|
-
return "string";
|
|
1640
|
-
if (typeof t == "bigint")
|
|
1641
|
-
return "bigint";
|
|
1642
|
-
if (typeof t == "object") {
|
|
1643
|
-
if (t != null) {
|
|
1644
|
-
if (t.constructor === RegExp)
|
|
1645
|
-
return "regexp";
|
|
1646
|
-
if (t.constructor === Map)
|
|
1647
|
-
return "map";
|
|
1648
|
-
if (t.constructor === Set)
|
|
1649
|
-
return "set";
|
|
1650
|
-
if (t.constructor === Date)
|
|
1651
|
-
return "date";
|
|
1652
|
-
}
|
|
1653
|
-
return "object";
|
|
1654
|
-
} else if (typeof t == "symbol")
|
|
1655
|
-
return "symbol";
|
|
1656
|
-
throw new Error(`value of unknown type: ${t}`);
|
|
1657
|
-
}
|
|
1658
|
-
c(_n, "getType");
|
|
1659
|
-
var z = -1, F = 1, M = 0, I = class {
|
|
1844
|
+
var U = -1, k = 1, x = 0, I = class {
|
|
1660
1845
|
static {
|
|
1661
1846
|
c(this, "Diff");
|
|
1662
1847
|
}
|
|
@@ -1665,14 +1850,17 @@ var z = -1, F = 1, M = 0, I = class {
|
|
|
1665
1850
|
constructor(e, n) {
|
|
1666
1851
|
this[0] = e, this[1] = n;
|
|
1667
1852
|
}
|
|
1668
|
-
}
|
|
1853
|
+
};
|
|
1854
|
+
function hs(t, e) {
|
|
1669
1855
|
if (!t || !e || t.charAt(0) !== e.charAt(0))
|
|
1670
1856
|
return 0;
|
|
1671
1857
|
let n = 0, r = Math.min(t.length, e.length), o = r, s = 0;
|
|
1672
1858
|
for (; n < o; )
|
|
1673
1859
|
t.substring(s, o) === e.substring(s, o) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 + n);
|
|
1674
1860
|
return o;
|
|
1675
|
-
}
|
|
1861
|
+
}
|
|
1862
|
+
c(hs, "diff_commonPrefix");
|
|
1863
|
+
function qn(t, e) {
|
|
1676
1864
|
if (!t || !e || t.charAt(t.length - 1) !== e.charAt(e.length - 1))
|
|
1677
1865
|
return 0;
|
|
1678
1866
|
let n = 0, r = Math.min(t.length, e.length), o = r, s = 0;
|
|
@@ -1680,7 +1868,9 @@ var z = -1, F = 1, M = 0, I = class {
|
|
|
1680
1868
|
t.substring(t.length - o, t.length - s) === e.substring(e.length - o, e.length - s) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 +
|
|
1681
1869
|
n);
|
|
1682
1870
|
return o;
|
|
1683
|
-
}
|
|
1871
|
+
}
|
|
1872
|
+
c(qn, "diff_commonSuffix");
|
|
1873
|
+
function Pn(t, e) {
|
|
1684
1874
|
let n = t.length, r = e.length;
|
|
1685
1875
|
if (n === 0 || r === 0)
|
|
1686
1876
|
return 0;
|
|
@@ -1690,391 +1880,395 @@ var z = -1, F = 1, M = 0, I = class {
|
|
|
1690
1880
|
return o;
|
|
1691
1881
|
let s = 0, i = 1;
|
|
1692
1882
|
for (; ; ) {
|
|
1693
|
-
let
|
|
1694
|
-
if (
|
|
1883
|
+
let a = t.substring(o - i), l = e.indexOf(a);
|
|
1884
|
+
if (l === -1)
|
|
1695
1885
|
return s;
|
|
1696
|
-
i +=
|
|
1886
|
+
i += l, (l === 0 || t.substring(o - i) === e.substring(0, i)) && (s = i, i++);
|
|
1697
1887
|
}
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1888
|
+
}
|
|
1889
|
+
c(Pn, "diff_commonOverlap_");
|
|
1890
|
+
function ys(t) {
|
|
1891
|
+
let e = !1, n = [], r = 0, o = null, s = 0, i = 0, a = 0, l = 0, m = 0;
|
|
1700
1892
|
for (; s < t.length; )
|
|
1701
|
-
t[s][0] ===
|
|
1702
|
-
o.length <= Math.max(i,
|
|
1893
|
+
t[s][0] === x ? (n[r++] = s, i = l, a = m, l = 0, m = 0, o = t[s][1]) : (t[s][0] === k ? l += t[s][1].length : m += t[s][1].length, o &&
|
|
1894
|
+
o.length <= Math.max(i, a) && o.length <= Math.max(l, m) && (t.splice(
|
|
1703
1895
|
n[r - 1],
|
|
1704
1896
|
0,
|
|
1705
|
-
new I(
|
|
1706
|
-
), t[n[r - 1] + 1][0] =
|
|
1707
|
-
for (e &&
|
|
1708
|
-
if (t[s - 1][0] ===
|
|
1709
|
-
let
|
|
1710
|
-
S >=
|
|
1897
|
+
new I(U, o)
|
|
1898
|
+
), t[n[r - 1] + 1][0] = k, r--, r--, s = r > 0 ? n[r - 1] : -1, i = 0, a = 0, l = 0, m = 0, o = null, e = !0)), s++;
|
|
1899
|
+
for (e && Kn(t), Ss(t), s = 1; s < t.length; ) {
|
|
1900
|
+
if (t[s - 1][0] === U && t[s][0] === k) {
|
|
1901
|
+
let p = t[s - 1][1], f = t[s][1], S = Pn(p, f), y = Pn(f, p);
|
|
1902
|
+
S >= y ? (S >= p.length / 2 || S >= f.length / 2) && (t.splice(
|
|
1711
1903
|
s,
|
|
1712
1904
|
0,
|
|
1713
|
-
new I(
|
|
1714
|
-
), t[s - 1][1] =
|
|
1905
|
+
new I(x, f.substring(0, S))
|
|
1906
|
+
), t[s - 1][1] = p.substring(
|
|
1715
1907
|
0,
|
|
1716
|
-
|
|
1717
|
-
), t[s + 1][1] =
|
|
1908
|
+
p.length - S
|
|
1909
|
+
), t[s + 1][1] = f.substring(S), s++) : (y >= p.length / 2 || y >= f.length / 2) && (t.splice(
|
|
1718
1910
|
s,
|
|
1719
1911
|
0,
|
|
1720
|
-
new I(
|
|
1721
|
-
), t[s - 1][0] =
|
|
1912
|
+
new I(x, p.substring(0, y))
|
|
1913
|
+
), t[s - 1][0] = k, t[s - 1][1] = f.substring(
|
|
1722
1914
|
0,
|
|
1723
|
-
|
|
1724
|
-
), t[s + 1][0] =
|
|
1915
|
+
f.length - y
|
|
1916
|
+
), t[s + 1][0] = U, t[s + 1][1] = p.substring(y), s++), s++;
|
|
1725
1917
|
}
|
|
1726
1918
|
s++;
|
|
1727
1919
|
}
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1920
|
+
}
|
|
1921
|
+
c(ys, "diff_cleanupSemantic");
|
|
1922
|
+
var In = /[^a-z0-9]/i, Mn = /\s/, Ln = /[\r\n]/, ds = /\n\r?\n$/, bs = /^\r?\n\r?\n/;
|
|
1923
|
+
function Ss(t) {
|
|
1730
1924
|
let e = 1;
|
|
1731
1925
|
for (; e < t.length - 1; ) {
|
|
1732
|
-
if (t[e - 1][0] ===
|
|
1733
|
-
let n = t[e - 1][1], r = t[e][1], o = t[e + 1][1], s =
|
|
1926
|
+
if (t[e - 1][0] === x && t[e + 1][0] === x) {
|
|
1927
|
+
let n = t[e - 1][1], r = t[e][1], o = t[e + 1][1], s = qn(n, r);
|
|
1734
1928
|
if (s) {
|
|
1735
|
-
let
|
|
1736
|
-
n = n.substring(0, n.length - s), r =
|
|
1929
|
+
let p = r.substring(r.length - s);
|
|
1930
|
+
n = n.substring(0, n.length - s), r = p + r.substring(0, r.length - s), o = p + o;
|
|
1737
1931
|
}
|
|
1738
|
-
let i = n,
|
|
1932
|
+
let i = n, a = r, l = o, m = Gt(n, r) + Gt(r, o);
|
|
1739
1933
|
for (; r.charAt(0) === o.charAt(0); ) {
|
|
1740
1934
|
n += r.charAt(0), r = r.substring(1) + o.charAt(0), o = o.substring(1);
|
|
1741
|
-
let
|
|
1742
|
-
|
|
1935
|
+
let p = Gt(n, r) + Gt(r, o);
|
|
1936
|
+
p >= m && (m = p, i = n, a = r, l = o);
|
|
1743
1937
|
}
|
|
1744
|
-
t[e - 1][1] !== i && (i ? t[e - 1][1] = i : (t.splice(e - 1, 1), e--), t[e][1] =
|
|
1938
|
+
t[e - 1][1] !== i && (i ? t[e - 1][1] = i : (t.splice(e - 1, 1), e--), t[e][1] = a, l ? t[e + 1][1] = l : (t.splice(e + 1, 1), e--));
|
|
1745
1939
|
}
|
|
1746
1940
|
e++;
|
|
1747
1941
|
}
|
|
1748
1942
|
}
|
|
1749
|
-
c(
|
|
1750
|
-
function
|
|
1751
|
-
t.push(new I(
|
|
1943
|
+
c(Ss, "diff_cleanupSemanticLossless");
|
|
1944
|
+
function Kn(t) {
|
|
1945
|
+
t.push(new I(x, ""));
|
|
1752
1946
|
let e = 0, n = 0, r = 0, o = "", s = "", i;
|
|
1753
1947
|
for (; e < t.length; )
|
|
1754
1948
|
switch (t[e][0]) {
|
|
1755
|
-
case
|
|
1949
|
+
case k:
|
|
1756
1950
|
r++, s += t[e][1], e++;
|
|
1757
1951
|
break;
|
|
1758
|
-
case
|
|
1952
|
+
case U:
|
|
1759
1953
|
n++, o += t[e][1], e++;
|
|
1760
1954
|
break;
|
|
1761
|
-
case
|
|
1762
|
-
n + r > 1 ? (n !== 0 && r !== 0 && (i =
|
|
1955
|
+
case x:
|
|
1956
|
+
n + r > 1 ? (n !== 0 && r !== 0 && (i = hs(s, o), i !== 0 && (e - n - r > 0 && t[e - n - r - 1][0] === x ? t[e - n - r - 1][1] += s.
|
|
1763
1957
|
substring(0, i) : (t.splice(
|
|
1764
1958
|
0,
|
|
1765
1959
|
0,
|
|
1766
|
-
new I(
|
|
1767
|
-
), e++), s = s.substring(i), o = o.substring(i)), i =
|
|
1960
|
+
new I(x, s.substring(0, i))
|
|
1961
|
+
), e++), s = s.substring(i), o = o.substring(i)), i = qn(s, o), i !== 0 && (t[e][1] = s.substring(s.length - i) + t[e][1], s = s.substring(
|
|
1768
1962
|
0,
|
|
1769
1963
|
s.length - i
|
|
1770
1964
|
), o = o.substring(
|
|
1771
1965
|
0,
|
|
1772
1966
|
o.length - i
|
|
1773
|
-
))), e -= n + r, t.splice(e, n + r), o.length && (t.splice(e, 0, new I(
|
|
1774
|
-
e++) : e !== 0 && t[e - 1][0] ===
|
|
1967
|
+
))), e -= n + r, t.splice(e, n + r), o.length && (t.splice(e, 0, new I(U, o)), e++), s.length && (t.splice(e, 0, new I(k, s)), e++),
|
|
1968
|
+
e++) : e !== 0 && t[e - 1][0] === x ? (t[e - 1][1] += t[e][1], t.splice(e, 1)) : e++, r = 0, n = 0, o = "", s = "";
|
|
1775
1969
|
break;
|
|
1776
1970
|
}
|
|
1777
1971
|
t[t.length - 1][1] === "" && t.pop();
|
|
1778
|
-
let
|
|
1972
|
+
let a = !1;
|
|
1779
1973
|
for (e = 1; e < t.length - 1; )
|
|
1780
|
-
t[e - 1][0] ===
|
|
1974
|
+
t[e - 1][0] === x && t[e + 1][0] === x && (t[e][1].substring(
|
|
1781
1975
|
t[e][1].length - t[e - 1][1].length
|
|
1782
1976
|
) === t[e - 1][1] ? (t[e][1] = t[e - 1][1] + t[e][1].substring(
|
|
1783
1977
|
0,
|
|
1784
1978
|
t[e][1].length - t[e - 1][1].length
|
|
1785
|
-
), t[e + 1][1] = t[e - 1][1] + t[e + 1][1], t.splice(e - 1, 1),
|
|
1786
|
-
1][1] += t[e + 1][1], t[e][1] = t[e][1].substring(t[e + 1][1].length) + t[e + 1][1], t.splice(e + 1, 1),
|
|
1787
|
-
|
|
1979
|
+
), t[e + 1][1] = t[e - 1][1] + t[e + 1][1], t.splice(e - 1, 1), a = !0) : t[e][1].substring(0, t[e + 1][1].length) === t[e + 1][1] && (t[e -
|
|
1980
|
+
1][1] += t[e + 1][1], t[e][1] = t[e][1].substring(t[e + 1][1].length) + t[e + 1][1], t.splice(e + 1, 1), a = !0)), e++;
|
|
1981
|
+
a && Kn(t);
|
|
1788
1982
|
}
|
|
1789
|
-
c(
|
|
1790
|
-
function
|
|
1983
|
+
c(Kn, "diff_cleanupMerge");
|
|
1984
|
+
function Gt(t, e) {
|
|
1791
1985
|
if (!t || !e)
|
|
1792
1986
|
return 6;
|
|
1793
|
-
let n = t.charAt(t.length - 1), r = e.charAt(0), o = n.match(
|
|
1794
|
-
match(
|
|
1795
|
-
return
|
|
1796
|
-
}
|
|
1797
|
-
c(
|
|
1798
|
-
var
|
|
1799
|
-
ture without calling `toJSON` instead.",
|
|
1800
|
-
function
|
|
1801
|
-
if (
|
|
1802
|
-
|
|
1987
|
+
let n = t.charAt(t.length - 1), r = e.charAt(0), o = n.match(In), s = r.match(In), i = o && n.match(Mn), a = s && r.match(Mn), l = i && n.
|
|
1988
|
+
match(Ln), m = a && r.match(Ln), p = l && t.match(ds), f = m && e.match(bs);
|
|
1989
|
+
return p || f ? 5 : l || m ? 4 : o && !i && a ? 3 : i || a ? 2 : o || s ? 1 : 0;
|
|
1990
|
+
}
|
|
1991
|
+
c(Gt, "diff_cleanupSemanticScore_");
|
|
1992
|
+
var Gn = "Compared values have no visual difference.", Es = "Compared values serialize to the same structure.\nPrinting internal object struc\
|
|
1993
|
+
ture without calling `toJSON` instead.", Ht = {}, xn;
|
|
1994
|
+
function _s() {
|
|
1995
|
+
if (xn) return Ht;
|
|
1996
|
+
xn = 1, Object.defineProperty(Ht, "__esModule", {
|
|
1803
1997
|
value: !0
|
|
1804
|
-
}),
|
|
1805
|
-
let t = "diff-sequences", e = 0, n = /* @__PURE__ */ c((
|
|
1806
|
-
let
|
|
1807
|
-
for (;
|
|
1808
|
-
|
|
1809
|
-
return
|
|
1810
|
-
}, "countCommonItemsF"), r = /* @__PURE__ */ c((
|
|
1811
|
-
let
|
|
1812
|
-
for (;
|
|
1813
|
-
|
|
1814
|
-
return
|
|
1815
|
-
}, "countCommonItemsR"), o = /* @__PURE__ */ c((
|
|
1816
|
-
let d = 0,
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1998
|
+
}), Ht.default = S;
|
|
1999
|
+
let t = "diff-sequences", e = 0, n = /* @__PURE__ */ c((y, g, u, h, b) => {
|
|
2000
|
+
let _ = 0;
|
|
2001
|
+
for (; y < g && u < h && b(y, u); )
|
|
2002
|
+
y += 1, u += 1, _ += 1;
|
|
2003
|
+
return _;
|
|
2004
|
+
}, "countCommonItemsF"), r = /* @__PURE__ */ c((y, g, u, h, b) => {
|
|
2005
|
+
let _ = 0;
|
|
2006
|
+
for (; y <= g && u <= h && b(g, h); )
|
|
2007
|
+
g -= 1, h -= 1, _ += 1;
|
|
2008
|
+
return _;
|
|
2009
|
+
}, "countCommonItemsR"), o = /* @__PURE__ */ c((y, g, u, h, b, _, O) => {
|
|
2010
|
+
let d = 0, E = -y, $ = _[d], C = $;
|
|
2011
|
+
_[d] += n(
|
|
2012
|
+
$ + 1,
|
|
2013
|
+
g,
|
|
2014
|
+
h + $ - E + 1,
|
|
2015
|
+
u,
|
|
1822
2016
|
b
|
|
1823
2017
|
);
|
|
1824
|
-
let
|
|
1825
|
-
for (d += 1,
|
|
1826
|
-
if (d !==
|
|
1827
|
-
|
|
1828
|
-
else if (
|
|
2018
|
+
let R = y < O ? y : O;
|
|
2019
|
+
for (d += 1, E += 2; d <= R; d += 1, E += 2) {
|
|
2020
|
+
if (d !== y && C < _[d])
|
|
2021
|
+
$ = _[d];
|
|
2022
|
+
else if ($ = C + 1, g <= $)
|
|
1829
2023
|
return d - 1;
|
|
1830
|
-
|
|
2024
|
+
C = _[d], _[d] = $ + n($ + 1, g, h + $ - E + 1, u, b);
|
|
1831
2025
|
}
|
|
1832
|
-
return
|
|
1833
|
-
}, "extendPathsF"), s = /* @__PURE__ */ c((
|
|
1834
|
-
let d = 0,
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
2026
|
+
return O;
|
|
2027
|
+
}, "extendPathsF"), s = /* @__PURE__ */ c((y, g, u, h, b, _, O) => {
|
|
2028
|
+
let d = 0, E = y, $ = _[d], C = $;
|
|
2029
|
+
_[d] -= r(
|
|
2030
|
+
g,
|
|
2031
|
+
$ - 1,
|
|
2032
|
+
u,
|
|
2033
|
+
h + $ - E - 1,
|
|
1840
2034
|
b
|
|
1841
2035
|
);
|
|
1842
|
-
let
|
|
1843
|
-
for (d += 1,
|
|
1844
|
-
if (d !==
|
|
1845
|
-
|
|
1846
|
-
else if (
|
|
2036
|
+
let R = y < O ? y : O;
|
|
2037
|
+
for (d += 1, E -= 2; d <= R; d += 1, E -= 2) {
|
|
2038
|
+
if (d !== y && _[d] < C)
|
|
2039
|
+
$ = _[d];
|
|
2040
|
+
else if ($ = C - 1, $ < g)
|
|
1847
2041
|
return d - 1;
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
2042
|
+
C = _[d], _[d] = $ - r(
|
|
2043
|
+
g,
|
|
2044
|
+
$ - 1,
|
|
2045
|
+
u,
|
|
2046
|
+
h + $ - E - 1,
|
|
1853
2047
|
b
|
|
1854
2048
|
);
|
|
1855
2049
|
}
|
|
1856
|
-
return
|
|
1857
|
-
}, "extendPathsR"), i = /* @__PURE__ */ c((
|
|
1858
|
-
let
|
|
1859
|
-
for (let
|
|
1860
|
-
let
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
2050
|
+
return O;
|
|
2051
|
+
}, "extendPathsR"), i = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $, C) => {
|
|
2052
|
+
let R = h - g, J = u - g, L = b - h - J, z = -L - (y - 1), X = -L + (y - 1), V = e, M = y < d ? y : d;
|
|
2053
|
+
for (let F = 0, D = -y; F <= M; F += 1, D += 2) {
|
|
2054
|
+
let Z = F === 0 || F !== y && V < O[F], B = Z ? O[F] : V, K = Z ? B : B + 1, st = R + K - D, G = n(
|
|
2055
|
+
K + 1,
|
|
2056
|
+
u,
|
|
2057
|
+
st + 1,
|
|
1864
2058
|
b,
|
|
1865
|
-
|
|
1866
|
-
),
|
|
1867
|
-
if (
|
|
1868
|
-
let
|
|
1869
|
-
if (
|
|
1870
|
-
let
|
|
2059
|
+
_
|
|
2060
|
+
), H = K + G;
|
|
2061
|
+
if (V = O[F], O[F] = H, z <= D && D <= X) {
|
|
2062
|
+
let ct = (y - 1 - (D + L)) / 2;
|
|
2063
|
+
if (ct <= $ && E[ct] - 1 <= H) {
|
|
2064
|
+
let Q = R + B - (Z ? D + 1 : D - 1), q = r(
|
|
2065
|
+
g,
|
|
2066
|
+
B,
|
|
1871
2067
|
h,
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
),
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
return O.nChangeFollowing = g - 1, g - 1 === y + b - Ct - wt ? (O.aStartFollowing = y, O.bStartFollowing = b) : (O.aStartFollowing =
|
|
1882
|
-
Ct, O.bStartFollowing = wt), !0;
|
|
2068
|
+
Q,
|
|
2069
|
+
_
|
|
2070
|
+
), it = B - q, dt = Q - q, at = it + 1, Ct = dt + 1;
|
|
2071
|
+
C.nChangePreceding = y - 1, y - 1 === at + Ct - g - h ? (C.aEndPreceding = g, C.bEndPreceding = h) : (C.aEndPreceding = at, C.bEndPreceding =
|
|
2072
|
+
Ct), C.nCommonPreceding = q, q !== 0 && (C.aCommonPreceding = at, C.bCommonPreceding = Ct), C.nCommonFollowing = G, G !== 0 && (C.
|
|
2073
|
+
aCommonFollowing = K + 1, C.bCommonFollowing = st + 1);
|
|
2074
|
+
let At = H + 1, Rt = st + G + 1;
|
|
2075
|
+
return C.nChangeFollowing = y - 1, y - 1 === u + b - At - Rt ? (C.aStartFollowing = u, C.bStartFollowing = b) : (C.aStartFollowing =
|
|
2076
|
+
At, C.bStartFollowing = Rt), !0;
|
|
1883
2077
|
}
|
|
1884
2078
|
}
|
|
1885
2079
|
}
|
|
1886
2080
|
return !1;
|
|
1887
|
-
}, "extendOverlappablePathsF"),
|
|
1888
|
-
let
|
|
1889
|
-
for (let
|
|
1890
|
-
let
|
|
2081
|
+
}, "extendOverlappablePathsF"), a = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $, C) => {
|
|
2082
|
+
let R = b - u, J = u - g, L = b - h - J, z = L - y, X = L + y, V = e, M = y < $ ? y : $;
|
|
2083
|
+
for (let F = 0, D = y; F <= M; F += 1, D -= 2) {
|
|
2084
|
+
let Z = F === 0 || F !== y && E[F] < V, B = Z ? E[F] : V, K = Z ? B : B - 1, st = R + K - D, G = r(
|
|
2085
|
+
g,
|
|
2086
|
+
K - 1,
|
|
1891
2087
|
h,
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
X), O.nCommonPreceding = K, K !== 0 && (O.aCommonPreceding = q, O.bCommonPreceding = X), O.nChangeFollowing = g - 1, g === 1)
|
|
1903
|
-
O.nCommonFollowing = 0, O.aStartFollowing = y, O.bStartFollowing = b;
|
|
2088
|
+
st - 1,
|
|
2089
|
+
_
|
|
2090
|
+
), H = K - G;
|
|
2091
|
+
if (V = E[F], E[F] = H, z <= D && D <= X) {
|
|
2092
|
+
let ct = (y + (D - L)) / 2;
|
|
2093
|
+
if (ct <= d && H - 1 <= O[ct]) {
|
|
2094
|
+
let Q = st - G;
|
|
2095
|
+
if (C.nChangePreceding = y, y === H + Q - g - h ? (C.aEndPreceding = g, C.bEndPreceding = h) : (C.aEndPreceding = H, C.bEndPreceding =
|
|
2096
|
+
Q), C.nCommonPreceding = G, G !== 0 && (C.aCommonPreceding = H, C.bCommonPreceding = Q), C.nChangeFollowing = y - 1, y === 1)
|
|
2097
|
+
C.nCommonFollowing = 0, C.aStartFollowing = u, C.bStartFollowing = b;
|
|
1904
2098
|
else {
|
|
1905
|
-
let
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
2099
|
+
let q = R + B - (Z ? D - 1 : D + 1), it = n(
|
|
2100
|
+
B,
|
|
2101
|
+
u,
|
|
2102
|
+
q,
|
|
1909
2103
|
b,
|
|
1910
|
-
|
|
2104
|
+
_
|
|
1911
2105
|
);
|
|
1912
|
-
|
|
1913
|
-
let
|
|
1914
|
-
|
|
2106
|
+
C.nCommonFollowing = it, it !== 0 && (C.aCommonFollowing = B, C.bCommonFollowing = q);
|
|
2107
|
+
let dt = B + it, at = q + it;
|
|
2108
|
+
y - 1 === u + b - dt - at ? (C.aStartFollowing = u, C.bStartFollowing = b) : (C.aStartFollowing = dt, C.bStartFollowing = at);
|
|
1915
2109
|
}
|
|
1916
2110
|
return !0;
|
|
1917
2111
|
}
|
|
1918
2112
|
}
|
|
1919
2113
|
}
|
|
1920
2114
|
return !1;
|
|
1921
|
-
}, "extendOverlappablePathsR"),
|
|
1922
|
-
let
|
|
1923
|
-
if (
|
|
1924
|
-
let
|
|
1925
|
-
for (let
|
|
1926
|
-
if (
|
|
1927
|
-
|
|
2115
|
+
}, "extendOverlappablePathsR"), l = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E) => {
|
|
2116
|
+
let $ = h - g, C = b - u, R = u - g, J = b - h, tt = J - R, L = R, z = R;
|
|
2117
|
+
if (O[0] = g - 1, d[0] = u, tt % 2 === 0) {
|
|
2118
|
+
let X = (y || tt) / 2, V = (R + J) / 2;
|
|
2119
|
+
for (let M = 1; M <= V; M += 1)
|
|
2120
|
+
if (L = o(M, u, b, $, _, O, L), M < X)
|
|
2121
|
+
z = s(M, g, h, C, _, d, z);
|
|
1928
2122
|
else if (
|
|
1929
2123
|
// If a reverse path overlaps a forward path in the same diagonal,
|
|
1930
2124
|
// return a division of the index intervals at the middle change.
|
|
1931
|
-
|
|
1932
|
-
|
|
2125
|
+
a(
|
|
2126
|
+
M,
|
|
2127
|
+
g,
|
|
2128
|
+
u,
|
|
1933
2129
|
h,
|
|
1934
|
-
y,
|
|
1935
|
-
p,
|
|
1936
2130
|
b,
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
2131
|
+
_,
|
|
2132
|
+
O,
|
|
2133
|
+
L,
|
|
1940
2134
|
d,
|
|
1941
|
-
|
|
1942
|
-
|
|
2135
|
+
z,
|
|
2136
|
+
E
|
|
1943
2137
|
)
|
|
1944
2138
|
)
|
|
1945
2139
|
return;
|
|
1946
2140
|
} else {
|
|
1947
|
-
let
|
|
1948
|
-
for (
|
|
1949
|
-
if (
|
|
1950
|
-
|
|
2141
|
+
let X = ((y || tt) + 1) / 2, V = (R + J + 1) / 2, M = 1;
|
|
2142
|
+
for (L = o(M, u, b, $, _, O, L), M += 1; M <= V; M += 1)
|
|
2143
|
+
if (z = s(
|
|
2144
|
+
M - 1,
|
|
2145
|
+
g,
|
|
1951
2146
|
h,
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
E,
|
|
2147
|
+
C,
|
|
2148
|
+
_,
|
|
1955
2149
|
d,
|
|
1956
|
-
|
|
1957
|
-
),
|
|
1958
|
-
|
|
2150
|
+
z
|
|
2151
|
+
), M < X)
|
|
2152
|
+
L = o(M, u, b, $, _, O, L);
|
|
1959
2153
|
else if (
|
|
1960
2154
|
// If a forward path overlaps a reverse path in the same diagonal,
|
|
1961
2155
|
// return a division of the index intervals at the middle change.
|
|
1962
2156
|
i(
|
|
1963
|
-
|
|
2157
|
+
M,
|
|
2158
|
+
g,
|
|
2159
|
+
u,
|
|
1964
2160
|
h,
|
|
1965
|
-
y,
|
|
1966
|
-
p,
|
|
1967
2161
|
b,
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
2162
|
+
_,
|
|
2163
|
+
O,
|
|
2164
|
+
L,
|
|
1971
2165
|
d,
|
|
1972
|
-
|
|
1973
|
-
|
|
2166
|
+
z,
|
|
2167
|
+
E
|
|
1974
2168
|
)
|
|
1975
2169
|
)
|
|
1976
2170
|
return;
|
|
1977
2171
|
}
|
|
1978
2172
|
throw new Error(
|
|
1979
|
-
`${t}: no overlap aStart=${
|
|
2173
|
+
`${t}: no overlap aStart=${g} aEnd=${u} bStart=${h} bEnd=${b}`
|
|
1980
2174
|
);
|
|
1981
|
-
}, "divide"),
|
|
1982
|
-
if (b -
|
|
1983
|
-
if (
|
|
1984
|
-
let { foundSubsequence:
|
|
1985
|
-
|
|
1986
|
-
foundSubsequence: /* @__PURE__ */ c((
|
|
1987
|
-
|
|
2175
|
+
}, "divide"), m = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $) => {
|
|
2176
|
+
if (b - h < u - g) {
|
|
2177
|
+
if (_ = !_, _ && O.length === 1) {
|
|
2178
|
+
let { foundSubsequence: H, isCommon: ct } = O[0];
|
|
2179
|
+
O[1] = {
|
|
2180
|
+
foundSubsequence: /* @__PURE__ */ c((Q, q, it) => {
|
|
2181
|
+
H(Q, it, q);
|
|
1988
2182
|
}, "foundSubsequence"),
|
|
1989
|
-
isCommon: /* @__PURE__ */ c((
|
|
2183
|
+
isCommon: /* @__PURE__ */ c((Q, q) => ct(q, Q), "isCommon")
|
|
1990
2184
|
};
|
|
1991
2185
|
}
|
|
1992
|
-
let
|
|
1993
|
-
|
|
2186
|
+
let st = g, G = u;
|
|
2187
|
+
g = h, u = b, h = st, b = G;
|
|
1994
2188
|
}
|
|
1995
|
-
let { foundSubsequence:
|
|
1996
|
-
|
|
2189
|
+
let { foundSubsequence: C, isCommon: R } = O[_ ? 1 : 0];
|
|
2190
|
+
l(
|
|
2191
|
+
y,
|
|
1997
2192
|
g,
|
|
2193
|
+
u,
|
|
1998
2194
|
h,
|
|
1999
|
-
y,
|
|
2000
|
-
p,
|
|
2001
2195
|
b,
|
|
2002
|
-
|
|
2196
|
+
R,
|
|
2003
2197
|
d,
|
|
2004
|
-
|
|
2005
|
-
|
|
2198
|
+
E,
|
|
2199
|
+
$
|
|
2006
2200
|
);
|
|
2007
2201
|
let {
|
|
2008
|
-
nChangePreceding:
|
|
2009
|
-
aEndPreceding:
|
|
2010
|
-
bEndPreceding:
|
|
2011
|
-
nCommonPreceding:
|
|
2012
|
-
aCommonPreceding:
|
|
2013
|
-
bCommonPreceding:
|
|
2014
|
-
nCommonFollowing:
|
|
2015
|
-
aCommonFollowing:
|
|
2016
|
-
bCommonFollowing:
|
|
2017
|
-
nChangeFollowing:
|
|
2018
|
-
aStartFollowing:
|
|
2019
|
-
bStartFollowing:
|
|
2020
|
-
} =
|
|
2021
|
-
|
|
2022
|
-
|
|
2202
|
+
nChangePreceding: J,
|
|
2203
|
+
aEndPreceding: tt,
|
|
2204
|
+
bEndPreceding: L,
|
|
2205
|
+
nCommonPreceding: z,
|
|
2206
|
+
aCommonPreceding: X,
|
|
2207
|
+
bCommonPreceding: V,
|
|
2208
|
+
nCommonFollowing: M,
|
|
2209
|
+
aCommonFollowing: F,
|
|
2210
|
+
bCommonFollowing: D,
|
|
2211
|
+
nChangeFollowing: Z,
|
|
2212
|
+
aStartFollowing: B,
|
|
2213
|
+
bStartFollowing: K
|
|
2214
|
+
} = $;
|
|
2215
|
+
g < tt && h < L && m(
|
|
2216
|
+
J,
|
|
2217
|
+
g,
|
|
2218
|
+
tt,
|
|
2023
2219
|
h,
|
|
2024
|
-
|
|
2025
|
-
p,
|
|
2026
|
-
P,
|
|
2027
|
-
E,
|
|
2028
|
-
$,
|
|
2029
|
-
d,
|
|
2220
|
+
L,
|
|
2030
2221
|
_,
|
|
2031
|
-
|
|
2032
|
-
), k !== 0 && O(k, H, Y), R !== 0 && O(R, L, x), D < y && V < b && f(
|
|
2033
|
-
J,
|
|
2034
|
-
D,
|
|
2035
|
-
y,
|
|
2036
|
-
V,
|
|
2037
|
-
b,
|
|
2038
|
-
E,
|
|
2039
|
-
$,
|
|
2222
|
+
O,
|
|
2040
2223
|
d,
|
|
2224
|
+
E,
|
|
2225
|
+
$
|
|
2226
|
+
), z !== 0 && C(z, X, V), M !== 0 && C(M, F, D), B < u && K < b && m(
|
|
2227
|
+
Z,
|
|
2228
|
+
B,
|
|
2229
|
+
u,
|
|
2230
|
+
K,
|
|
2231
|
+
b,
|
|
2041
2232
|
_,
|
|
2042
|
-
|
|
2233
|
+
O,
|
|
2234
|
+
d,
|
|
2235
|
+
E,
|
|
2236
|
+
$
|
|
2043
2237
|
);
|
|
2044
|
-
}, "findSubsequences"),
|
|
2045
|
-
if (typeof
|
|
2046
|
-
throw new TypeError(`${t}: ${
|
|
2047
|
-
if (!Number.isSafeInteger(
|
|
2048
|
-
throw new RangeError(`${t}: ${
|
|
2049
|
-
if (
|
|
2050
|
-
throw new RangeError(`${t}: ${
|
|
2051
|
-
}, "validateLength"),
|
|
2052
|
-
let
|
|
2053
|
-
if (
|
|
2054
|
-
throw new TypeError(`${t}: ${
|
|
2238
|
+
}, "findSubsequences"), p = /* @__PURE__ */ c((y, g) => {
|
|
2239
|
+
if (typeof g != "number")
|
|
2240
|
+
throw new TypeError(`${t}: ${y} typeof ${typeof g} is not a number`);
|
|
2241
|
+
if (!Number.isSafeInteger(g))
|
|
2242
|
+
throw new RangeError(`${t}: ${y} value ${g} is not a safe integer`);
|
|
2243
|
+
if (g < 0)
|
|
2244
|
+
throw new RangeError(`${t}: ${y} value ${g} is a negative integer`);
|
|
2245
|
+
}, "validateLength"), f = /* @__PURE__ */ c((y, g) => {
|
|
2246
|
+
let u = typeof g;
|
|
2247
|
+
if (u !== "function")
|
|
2248
|
+
throw new TypeError(`${t}: ${y} typeof ${u} is not a function`);
|
|
2055
2249
|
}, "validateCallback");
|
|
2056
|
-
function S(
|
|
2057
|
-
|
|
2058
|
-
let b = n(0,
|
|
2059
|
-
if (b !== 0 &&
|
|
2060
|
-
let
|
|
2061
|
-
|
|
2250
|
+
function S(y, g, u, h) {
|
|
2251
|
+
p("aLength", y), p("bLength", g), f("isCommon", u), f("foundSubsequence", h);
|
|
2252
|
+
let b = n(0, y, 0, g, u);
|
|
2253
|
+
if (b !== 0 && h(b, 0, 0), y !== b || g !== b) {
|
|
2254
|
+
let _ = b, O = b, d = r(
|
|
2255
|
+
_,
|
|
2256
|
+
y - 1,
|
|
2257
|
+
O,
|
|
2062
2258
|
g - 1,
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
), _ = g - d, w = h - d, O = b + d;
|
|
2067
|
-
g !== O && h !== O && f(
|
|
2259
|
+
u
|
|
2260
|
+
), E = y - d, $ = g - d, C = b + d;
|
|
2261
|
+
y !== C && g !== C && m(
|
|
2068
2262
|
0,
|
|
2069
|
-
E,
|
|
2070
2263
|
_,
|
|
2264
|
+
E,
|
|
2265
|
+
O,
|
|
2071
2266
|
$,
|
|
2072
|
-
w,
|
|
2073
2267
|
!1,
|
|
2074
2268
|
[
|
|
2075
2269
|
{
|
|
2076
|
-
foundSubsequence:
|
|
2077
|
-
isCommon:
|
|
2270
|
+
foundSubsequence: h,
|
|
2271
|
+
isCommon: u
|
|
2078
2272
|
}
|
|
2079
2273
|
],
|
|
2080
2274
|
[e],
|
|
@@ -2093,30 +2287,30 @@ function es() {
|
|
|
2093
2287
|
nCommonFollowing: e,
|
|
2094
2288
|
nCommonPreceding: e
|
|
2095
2289
|
}
|
|
2096
|
-
), d !== 0 &&
|
|
2290
|
+
), d !== 0 && h(d, E, $);
|
|
2097
2291
|
}
|
|
2098
2292
|
}
|
|
2099
|
-
return c(S, "diffSequence"),
|
|
2293
|
+
return c(S, "diffSequence"), Ht;
|
|
2100
2294
|
}
|
|
2101
|
-
c(
|
|
2102
|
-
var
|
|
2103
|
-
function
|
|
2295
|
+
c(_s, "requireBuild");
|
|
2296
|
+
var Cs = _s(), Hn = /* @__PURE__ */ Rn(Cs);
|
|
2297
|
+
function Ts(t, e) {
|
|
2104
2298
|
return t.replace(/\s+$/, (n) => e(n));
|
|
2105
2299
|
}
|
|
2106
|
-
c(
|
|
2107
|
-
function
|
|
2300
|
+
c(Ts, "formatTrailingSpaces");
|
|
2301
|
+
function Re(t, e, n, r, o, s) {
|
|
2108
2302
|
return t.length !== 0 ? n(
|
|
2109
|
-
`${r} ${
|
|
2303
|
+
`${r} ${Ts(t, o)}`
|
|
2110
2304
|
) : r !== " " ? n(r) : e && s.length !== 0 ? n(`${r} ${s}`) : "";
|
|
2111
2305
|
}
|
|
2112
|
-
c(
|
|
2113
|
-
function
|
|
2306
|
+
c(Re, "printDiffLine");
|
|
2307
|
+
function Jn(t, e, {
|
|
2114
2308
|
aColor: n,
|
|
2115
2309
|
aIndicator: r,
|
|
2116
2310
|
changeLineTrailingSpaceColor: o,
|
|
2117
2311
|
emptyFirstOrLastLinePlaceholder: s
|
|
2118
2312
|
}) {
|
|
2119
|
-
return
|
|
2313
|
+
return Re(
|
|
2120
2314
|
t,
|
|
2121
2315
|
e,
|
|
2122
2316
|
n,
|
|
@@ -2125,14 +2319,14 @@ function Bn(t, e, {
|
|
|
2125
2319
|
s
|
|
2126
2320
|
);
|
|
2127
2321
|
}
|
|
2128
|
-
c(
|
|
2129
|
-
function
|
|
2322
|
+
c(Jn, "printDeleteLine");
|
|
2323
|
+
function Xn(t, e, {
|
|
2130
2324
|
bColor: n,
|
|
2131
2325
|
bIndicator: r,
|
|
2132
2326
|
changeLineTrailingSpaceColor: o,
|
|
2133
2327
|
emptyFirstOrLastLinePlaceholder: s
|
|
2134
2328
|
}) {
|
|
2135
|
-
return
|
|
2329
|
+
return Re(
|
|
2136
2330
|
t,
|
|
2137
2331
|
e,
|
|
2138
2332
|
n,
|
|
@@ -2141,14 +2335,14 @@ function zn(t, e, {
|
|
|
2141
2335
|
s
|
|
2142
2336
|
);
|
|
2143
2337
|
}
|
|
2144
|
-
c(
|
|
2145
|
-
function
|
|
2338
|
+
c(Xn, "printInsertLine");
|
|
2339
|
+
function Zn(t, e, {
|
|
2146
2340
|
commonColor: n,
|
|
2147
2341
|
commonIndicator: r,
|
|
2148
2342
|
commonLineTrailingSpaceColor: o,
|
|
2149
2343
|
emptyFirstOrLastLinePlaceholder: s
|
|
2150
2344
|
}) {
|
|
2151
|
-
return
|
|
2345
|
+
return Re(
|
|
2152
2346
|
t,
|
|
2153
2347
|
e,
|
|
2154
2348
|
n,
|
|
@@ -2157,167 +2351,168 @@ function Un(t, e, {
|
|
|
2157
2351
|
s
|
|
2158
2352
|
);
|
|
2159
2353
|
}
|
|
2160
|
-
c(
|
|
2161
|
-
function
|
|
2354
|
+
c(Zn, "printCommonLine");
|
|
2355
|
+
function Fn(t, e, n, r, { patchColor: o }) {
|
|
2162
2356
|
return o(
|
|
2163
2357
|
`@@ -${t + 1},${e - t} +${n + 1},${r - n} @@`
|
|
2164
2358
|
);
|
|
2165
2359
|
}
|
|
2166
|
-
c(
|
|
2167
|
-
function
|
|
2168
|
-
let n = t.length, r = e.contextLines, o = r + r, s = n, i = !1,
|
|
2169
|
-
for (;
|
|
2170
|
-
let d =
|
|
2171
|
-
for (;
|
|
2172
|
-
|
|
2173
|
-
if (d !==
|
|
2360
|
+
c(Fn, "createPatchMark");
|
|
2361
|
+
function Os(t, e) {
|
|
2362
|
+
let n = t.length, r = e.contextLines, o = r + r, s = n, i = !1, a = 0, l = 0;
|
|
2363
|
+
for (; l !== n; ) {
|
|
2364
|
+
let d = l;
|
|
2365
|
+
for (; l !== n && t[l][0] === x; )
|
|
2366
|
+
l += 1;
|
|
2367
|
+
if (d !== l)
|
|
2174
2368
|
if (d === 0)
|
|
2175
|
-
|
|
2176
|
-
else if (
|
|
2177
|
-
let
|
|
2178
|
-
|
|
2369
|
+
l > r && (s -= l - r, i = !0);
|
|
2370
|
+
else if (l === n) {
|
|
2371
|
+
let E = l - d;
|
|
2372
|
+
E > r && (s -= E - r, i = !0);
|
|
2179
2373
|
} else {
|
|
2180
|
-
let
|
|
2181
|
-
|
|
2374
|
+
let E = l - d;
|
|
2375
|
+
E > o && (s -= E - o, a += 1);
|
|
2182
2376
|
}
|
|
2183
|
-
for (;
|
|
2184
|
-
|
|
2185
|
-
}
|
|
2186
|
-
let
|
|
2187
|
-
|
|
2188
|
-
let
|
|
2189
|
-
|
|
2190
|
-
let
|
|
2191
|
-
let
|
|
2192
|
-
|
|
2193
|
-
}, "pushCommonLine"),
|
|
2194
|
-
let
|
|
2195
|
-
|
|
2196
|
-
}, "pushDeleteLine"),
|
|
2197
|
-
let
|
|
2198
|
-
|
|
2377
|
+
for (; l !== n && t[l][0] !== x; )
|
|
2378
|
+
l += 1;
|
|
2379
|
+
}
|
|
2380
|
+
let m = a !== 0 || i;
|
|
2381
|
+
a !== 0 ? s += a + 1 : i && (s += 1);
|
|
2382
|
+
let p = s - 1, f = [], S = 0;
|
|
2383
|
+
m && f.push("");
|
|
2384
|
+
let y = 0, g = 0, u = 0, h = 0, b = /* @__PURE__ */ c((d) => {
|
|
2385
|
+
let E = f.length;
|
|
2386
|
+
f.push(Zn(d, E === 0 || E === p, e)), u += 1, h += 1;
|
|
2387
|
+
}, "pushCommonLine"), _ = /* @__PURE__ */ c((d) => {
|
|
2388
|
+
let E = f.length;
|
|
2389
|
+
f.push(Jn(d, E === 0 || E === p, e)), u += 1;
|
|
2390
|
+
}, "pushDeleteLine"), O = /* @__PURE__ */ c((d) => {
|
|
2391
|
+
let E = f.length;
|
|
2392
|
+
f.push(Xn(d, E === 0 || E === p, e)), h += 1;
|
|
2199
2393
|
}, "pushInsertLine");
|
|
2200
|
-
for (
|
|
2201
|
-
let d =
|
|
2202
|
-
for (;
|
|
2203
|
-
|
|
2204
|
-
if (d !==
|
|
2394
|
+
for (l = 0; l !== n; ) {
|
|
2395
|
+
let d = l;
|
|
2396
|
+
for (; l !== n && t[l][0] === x; )
|
|
2397
|
+
l += 1;
|
|
2398
|
+
if (d !== l)
|
|
2205
2399
|
if (d === 0) {
|
|
2206
|
-
|
|
2207
|
-
for (let
|
|
2208
|
-
b(t[
|
|
2209
|
-
} else if (
|
|
2210
|
-
let
|
|
2211
|
-
for (let
|
|
2212
|
-
b(t[
|
|
2400
|
+
l > r && (d = l - r, y = d, g = d, u = y, h = g);
|
|
2401
|
+
for (let E = d; E !== l; E += 1)
|
|
2402
|
+
b(t[E][1]);
|
|
2403
|
+
} else if (l === n) {
|
|
2404
|
+
let E = l - d > r ? d + r : l;
|
|
2405
|
+
for (let $ = d; $ !== E; $ += 1)
|
|
2406
|
+
b(t[$][1]);
|
|
2213
2407
|
} else {
|
|
2214
|
-
let
|
|
2215
|
-
if (
|
|
2216
|
-
let
|
|
2217
|
-
for (let
|
|
2218
|
-
b(t[
|
|
2219
|
-
|
|
2220
|
-
g,
|
|
2408
|
+
let E = l - d;
|
|
2409
|
+
if (E > o) {
|
|
2410
|
+
let $ = d + r;
|
|
2411
|
+
for (let R = d; R !== $; R += 1)
|
|
2412
|
+
b(t[R][1]);
|
|
2413
|
+
f[S] = Fn(
|
|
2221
2414
|
y,
|
|
2415
|
+
u,
|
|
2416
|
+
g,
|
|
2222
2417
|
h,
|
|
2223
|
-
p,
|
|
2224
2418
|
e
|
|
2225
|
-
), S =
|
|
2226
|
-
let
|
|
2227
|
-
|
|
2228
|
-
for (let
|
|
2229
|
-
b(t[
|
|
2419
|
+
), S = f.length, f.push("");
|
|
2420
|
+
let C = E - o;
|
|
2421
|
+
y = u + C, g = h + C, u = y, h = g;
|
|
2422
|
+
for (let R = l - r; R !== l; R += 1)
|
|
2423
|
+
b(t[R][1]);
|
|
2230
2424
|
} else
|
|
2231
|
-
for (let
|
|
2232
|
-
b(t[
|
|
2425
|
+
for (let $ = d; $ !== l; $ += 1)
|
|
2426
|
+
b(t[$][1]);
|
|
2233
2427
|
}
|
|
2234
|
-
for (;
|
|
2235
|
-
|
|
2236
|
-
for (;
|
|
2237
|
-
|
|
2428
|
+
for (; l !== n && t[l][0] === U; )
|
|
2429
|
+
_(t[l][1]), l += 1;
|
|
2430
|
+
for (; l !== n && t[l][0] === k; )
|
|
2431
|
+
O(t[l][1]), l += 1;
|
|
2238
2432
|
}
|
|
2239
|
-
return
|
|
2433
|
+
return m && (f[S] = Fn(y, u, g, h, e)), f.join(`
|
|
2240
2434
|
`);
|
|
2241
2435
|
}
|
|
2242
|
-
c(
|
|
2243
|
-
function
|
|
2436
|
+
c(Os, "joinAlignedDiffsNoExpand");
|
|
2437
|
+
function $s(t, e) {
|
|
2244
2438
|
return t.map((n, r, o) => {
|
|
2245
2439
|
let s = n[1], i = r === 0 || r === o.length - 1;
|
|
2246
2440
|
switch (n[0]) {
|
|
2247
|
-
case
|
|
2248
|
-
return
|
|
2249
|
-
case
|
|
2250
|
-
return
|
|
2441
|
+
case U:
|
|
2442
|
+
return Jn(s, i, e);
|
|
2443
|
+
case k:
|
|
2444
|
+
return Xn(s, i, e);
|
|
2251
2445
|
default:
|
|
2252
|
-
return
|
|
2446
|
+
return Zn(s, i, e);
|
|
2253
2447
|
}
|
|
2254
2448
|
}).join(`
|
|
2255
2449
|
`);
|
|
2256
2450
|
}
|
|
2257
|
-
c(
|
|
2258
|
-
var
|
|
2259
|
-
function
|
|
2451
|
+
c($s, "joinAlignedDiffsExpand");
|
|
2452
|
+
var Ce = /* @__PURE__ */ c((t) => t, "noColor"), Qn = 5, ws = 0;
|
|
2453
|
+
function As() {
|
|
2260
2454
|
return {
|
|
2261
2455
|
aAnnotation: "Expected",
|
|
2262
|
-
aColor:
|
|
2456
|
+
aColor: et.green,
|
|
2263
2457
|
aIndicator: "-",
|
|
2264
2458
|
bAnnotation: "Received",
|
|
2265
|
-
bColor:
|
|
2459
|
+
bColor: et.red,
|
|
2266
2460
|
bIndicator: "+",
|
|
2267
|
-
changeColor:
|
|
2268
|
-
changeLineTrailingSpaceColor:
|
|
2269
|
-
commonColor:
|
|
2461
|
+
changeColor: et.inverse,
|
|
2462
|
+
changeLineTrailingSpaceColor: Ce,
|
|
2463
|
+
commonColor: et.dim,
|
|
2270
2464
|
commonIndicator: " ",
|
|
2271
|
-
commonLineTrailingSpaceColor:
|
|
2465
|
+
commonLineTrailingSpaceColor: Ce,
|
|
2272
2466
|
compareKeys: void 0,
|
|
2273
|
-
contextLines:
|
|
2467
|
+
contextLines: Qn,
|
|
2274
2468
|
emptyFirstOrLastLinePlaceholder: "",
|
|
2275
2469
|
expand: !0,
|
|
2276
2470
|
includeChangeCounts: !1,
|
|
2277
2471
|
omitAnnotationLines: !1,
|
|
2278
|
-
patchColor:
|
|
2279
|
-
|
|
2472
|
+
patchColor: et.yellow,
|
|
2473
|
+
printBasicPrototype: !1,
|
|
2474
|
+
truncateThreshold: ws,
|
|
2280
2475
|
truncateAnnotation: "... Diff result is truncated",
|
|
2281
|
-
truncateAnnotationColor:
|
|
2476
|
+
truncateAnnotationColor: Ce
|
|
2282
2477
|
};
|
|
2283
2478
|
}
|
|
2284
|
-
c(
|
|
2285
|
-
function
|
|
2479
|
+
c(As, "getDefaultOptions");
|
|
2480
|
+
function Rs(t) {
|
|
2286
2481
|
return t && typeof t == "function" ? t : void 0;
|
|
2287
2482
|
}
|
|
2288
|
-
c(
|
|
2289
|
-
function
|
|
2290
|
-
return typeof t == "number" && Number.isSafeInteger(t) && t >= 0 ? t :
|
|
2483
|
+
c(Rs, "getCompareKeys");
|
|
2484
|
+
function Ns(t) {
|
|
2485
|
+
return typeof t == "number" && Number.isSafeInteger(t) && t >= 0 ? t : Qn;
|
|
2291
2486
|
}
|
|
2292
|
-
c(
|
|
2293
|
-
function
|
|
2487
|
+
c(Ns, "getContextLines");
|
|
2488
|
+
function ht(t = {}) {
|
|
2294
2489
|
return {
|
|
2295
|
-
...
|
|
2490
|
+
...As(),
|
|
2296
2491
|
...t,
|
|
2297
|
-
compareKeys:
|
|
2298
|
-
contextLines:
|
|
2492
|
+
compareKeys: Rs(t.compareKeys),
|
|
2493
|
+
contextLines: Ns(t.contextLines)
|
|
2299
2494
|
};
|
|
2300
2495
|
}
|
|
2301
|
-
c(
|
|
2302
|
-
function
|
|
2496
|
+
c(ht, "normalizeDiffOptions");
|
|
2497
|
+
function Et(t) {
|
|
2303
2498
|
return t.length === 1 && t[0].length === 0;
|
|
2304
2499
|
}
|
|
2305
|
-
c(
|
|
2306
|
-
function
|
|
2500
|
+
c(Et, "isEmptyString");
|
|
2501
|
+
function Ps(t) {
|
|
2307
2502
|
let e = 0, n = 0;
|
|
2308
2503
|
return t.forEach((r) => {
|
|
2309
2504
|
switch (r[0]) {
|
|
2310
|
-
case
|
|
2505
|
+
case U:
|
|
2311
2506
|
e += 1;
|
|
2312
2507
|
break;
|
|
2313
|
-
case
|
|
2508
|
+
case k:
|
|
2314
2509
|
n += 1;
|
|
2315
2510
|
break;
|
|
2316
2511
|
}
|
|
2317
2512
|
}), { a: e, b: n };
|
|
2318
2513
|
}
|
|
2319
|
-
c(
|
|
2320
|
-
function
|
|
2514
|
+
c(Ps, "countChanges");
|
|
2515
|
+
function Is({
|
|
2321
2516
|
aAnnotation: t,
|
|
2322
2517
|
aColor: e,
|
|
2323
2518
|
aIndicator: n,
|
|
@@ -2325,114 +2520,148 @@ function fs({
|
|
|
2325
2520
|
bColor: o,
|
|
2326
2521
|
bIndicator: s,
|
|
2327
2522
|
includeChangeCounts: i,
|
|
2328
|
-
omitAnnotationLines:
|
|
2329
|
-
},
|
|
2330
|
-
if (
|
|
2523
|
+
omitAnnotationLines: a
|
|
2524
|
+
}, l) {
|
|
2525
|
+
if (a)
|
|
2331
2526
|
return "";
|
|
2332
|
-
let
|
|
2527
|
+
let m = "", p = "";
|
|
2333
2528
|
if (i) {
|
|
2334
|
-
let
|
|
2335
|
-
|
|
2336
|
-
|
|
2529
|
+
let y = String(l.a), g = String(l.b), u = r.length - t.length, h = " ".repeat(Math.max(0, u)), b = " ".repeat(Math.max(0, -u)), _ = g.length -
|
|
2530
|
+
y.length, O = " ".repeat(Math.max(0, _)), d = " ".repeat(Math.max(0, -_));
|
|
2531
|
+
m = `${h} ${n} ${O}${y}`, p = `${b} ${s} ${d}${g}`;
|
|
2337
2532
|
}
|
|
2338
|
-
let
|
|
2339
|
-
return `${e(
|
|
2533
|
+
let f = `${n} ${t}${m}`, S = `${s} ${r}${p}`;
|
|
2534
|
+
return `${e(f)}
|
|
2340
2535
|
${o(S)}
|
|
2341
2536
|
|
|
2342
2537
|
`;
|
|
2343
2538
|
}
|
|
2344
|
-
c(
|
|
2345
|
-
function
|
|
2346
|
-
return
|
|
2539
|
+
c(Is, "printAnnotation");
|
|
2540
|
+
function Ne(t, e, n) {
|
|
2541
|
+
return Is(n, Ps(t)) + (n.expand ? $s(t, n) : Os(t, n)) + (e ? n.truncateAnnotationColor(`
|
|
2347
2542
|
${n.truncateAnnotation}`) : "");
|
|
2348
2543
|
}
|
|
2349
|
-
c(
|
|
2350
|
-
function
|
|
2351
|
-
let r =
|
|
2352
|
-
|
|
2353
|
-
|
|
2544
|
+
c(Ne, "printDiffLines");
|
|
2545
|
+
function Xt(t, e, n) {
|
|
2546
|
+
let r = ht(n), [o, s] = vn(
|
|
2547
|
+
Et(t) ? [] : t,
|
|
2548
|
+
Et(e) ? [] : e,
|
|
2354
2549
|
r
|
|
2355
2550
|
);
|
|
2356
|
-
return
|
|
2551
|
+
return Ne(o, s, r);
|
|
2357
2552
|
}
|
|
2358
|
-
c(
|
|
2359
|
-
function
|
|
2360
|
-
if (
|
|
2361
|
-
return
|
|
2362
|
-
let [s, i] =
|
|
2553
|
+
c(Xt, "diffLinesUnified");
|
|
2554
|
+
function Ms(t, e, n, r, o) {
|
|
2555
|
+
if (Et(t) && Et(n) && (t = [], n = []), Et(e) && Et(r) && (e = [], r = []), t.length !== n.length || e.length !== r.length)
|
|
2556
|
+
return Xt(t, e, o);
|
|
2557
|
+
let [s, i] = vn(
|
|
2363
2558
|
n,
|
|
2364
2559
|
r,
|
|
2365
2560
|
o
|
|
2366
|
-
),
|
|
2367
|
-
return s.forEach((
|
|
2368
|
-
switch (
|
|
2369
|
-
case
|
|
2370
|
-
|
|
2561
|
+
), a = 0, l = 0;
|
|
2562
|
+
return s.forEach((m) => {
|
|
2563
|
+
switch (m[0]) {
|
|
2564
|
+
case U:
|
|
2565
|
+
m[1] = t[a], a += 1;
|
|
2371
2566
|
break;
|
|
2372
|
-
case
|
|
2373
|
-
|
|
2567
|
+
case k:
|
|
2568
|
+
m[1] = e[l], l += 1;
|
|
2374
2569
|
break;
|
|
2375
2570
|
default:
|
|
2376
|
-
|
|
2571
|
+
m[1] = e[l], a += 1, l += 1;
|
|
2377
2572
|
}
|
|
2378
|
-
}),
|
|
2573
|
+
}), Ne(s, i, ht(o));
|
|
2379
2574
|
}
|
|
2380
|
-
c(
|
|
2381
|
-
function
|
|
2575
|
+
c(Ms, "diffLinesUnified2");
|
|
2576
|
+
function vn(t, e, n) {
|
|
2382
2577
|
let r = n?.truncateThreshold ?? !1, o = Math.max(
|
|
2383
2578
|
Math.floor(n?.truncateThreshold ?? 0),
|
|
2384
2579
|
0
|
|
2385
|
-
), s = r ? Math.min(t.length, o) : t.length, i = r ? Math.min(e.length, o) : e.length,
|
|
2386
|
-
(
|
|
2387
|
-
for (
|
|
2388
|
-
for (;
|
|
2389
|
-
|
|
2390
|
-
for (;
|
|
2391
|
-
|
|
2392
|
-
for (;
|
|
2393
|
-
|
|
2394
|
-
}, "foundSubsequence"));
|
|
2395
|
-
|
|
2396
|
-
for (;
|
|
2397
|
-
|
|
2398
|
-
return [
|
|
2399
|
-
}
|
|
2400
|
-
c(
|
|
2401
|
-
function
|
|
2580
|
+
), s = r ? Math.min(t.length, o) : t.length, i = r ? Math.min(e.length, o) : e.length, a = s !== t.length || i !== e.length, l = /* @__PURE__ */ c(
|
|
2581
|
+
(y, g) => t[y] === e[g], "isCommon"), m = [], p = 0, f = 0;
|
|
2582
|
+
for (Hn(s, i, l, /* @__PURE__ */ c((y, g, u) => {
|
|
2583
|
+
for (; p !== g; p += 1)
|
|
2584
|
+
m.push(new I(U, t[p]));
|
|
2585
|
+
for (; f !== u; f += 1)
|
|
2586
|
+
m.push(new I(k, e[f]));
|
|
2587
|
+
for (; y !== 0; y -= 1, p += 1, f += 1)
|
|
2588
|
+
m.push(new I(x, e[f]));
|
|
2589
|
+
}, "foundSubsequence")); p !== s; p += 1)
|
|
2590
|
+
m.push(new I(U, t[p]));
|
|
2591
|
+
for (; f !== i; f += 1)
|
|
2592
|
+
m.push(new I(k, e[f]));
|
|
2593
|
+
return [m, a];
|
|
2594
|
+
}
|
|
2595
|
+
c(vn, "diffLinesRaw");
|
|
2596
|
+
function Dn(t) {
|
|
2597
|
+
if (t === void 0)
|
|
2598
|
+
return "undefined";
|
|
2599
|
+
if (t === null)
|
|
2600
|
+
return "null";
|
|
2601
|
+
if (Array.isArray(t))
|
|
2602
|
+
return "array";
|
|
2603
|
+
if (typeof t == "boolean")
|
|
2604
|
+
return "boolean";
|
|
2605
|
+
if (typeof t == "function")
|
|
2606
|
+
return "function";
|
|
2607
|
+
if (typeof t == "number")
|
|
2608
|
+
return "number";
|
|
2609
|
+
if (typeof t == "string")
|
|
2610
|
+
return "string";
|
|
2611
|
+
if (typeof t == "bigint")
|
|
2612
|
+
return "bigint";
|
|
2613
|
+
if (typeof t == "object") {
|
|
2614
|
+
if (t != null) {
|
|
2615
|
+
if (t.constructor === RegExp)
|
|
2616
|
+
return "regexp";
|
|
2617
|
+
if (t.constructor === Map)
|
|
2618
|
+
return "map";
|
|
2619
|
+
if (t.constructor === Set)
|
|
2620
|
+
return "set";
|
|
2621
|
+
if (t.constructor === Date)
|
|
2622
|
+
return "date";
|
|
2623
|
+
}
|
|
2624
|
+
return "object";
|
|
2625
|
+
} else if (typeof t == "symbol")
|
|
2626
|
+
return "symbol";
|
|
2627
|
+
throw new Error(`value of unknown type: ${t}`);
|
|
2628
|
+
}
|
|
2629
|
+
c(Dn, "getType");
|
|
2630
|
+
function jn(t) {
|
|
2402
2631
|
return t.includes(`\r
|
|
2403
2632
|
`) ? `\r
|
|
2404
2633
|
` : `
|
|
2405
2634
|
`;
|
|
2406
2635
|
}
|
|
2407
|
-
c(
|
|
2408
|
-
function
|
|
2636
|
+
c(jn, "getNewLineSymbol");
|
|
2637
|
+
function Ls(t, e, n) {
|
|
2409
2638
|
let r = n?.truncateThreshold ?? !1, o = Math.max(
|
|
2410
2639
|
Math.floor(n?.truncateThreshold ?? 0),
|
|
2411
2640
|
0
|
|
2412
2641
|
), s = t.length, i = e.length;
|
|
2413
2642
|
if (r) {
|
|
2414
|
-
let
|
|
2415
|
-
`),
|
|
2416
|
-
`),
|
|
2417
|
-
` : t,
|
|
2643
|
+
let y = t.includes(`
|
|
2644
|
+
`), g = e.includes(`
|
|
2645
|
+
`), u = jn(t), h = jn(e), b = y ? `${t.split(u, o).join(u)}
|
|
2646
|
+
` : t, _ = g ? `${e.split(h, o).join(h)}
|
|
2418
2647
|
` : e;
|
|
2419
|
-
s = b.length, i =
|
|
2648
|
+
s = b.length, i = _.length;
|
|
2420
2649
|
}
|
|
2421
|
-
let
|
|
2422
|
-
return
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
}, "foundSubsequence")),
|
|
2650
|
+
let a = s !== t.length || i !== e.length, l = /* @__PURE__ */ c((y, g) => t[y] === e[g], "isCommon"), m = 0, p = 0, f = [];
|
|
2651
|
+
return Hn(s, i, l, /* @__PURE__ */ c((y, g, u) => {
|
|
2652
|
+
m !== g && f.push(new I(U, t.slice(m, g))), p !== u && f.push(new I(k, e.slice(p, u))), m = g + y, p = u + y, f.push(new I(x, e.slice(u,
|
|
2653
|
+
p)));
|
|
2654
|
+
}, "foundSubsequence")), m !== s && f.push(new I(U, t.slice(m))), p !== i && f.push(new I(k, e.slice(p))), [f, a];
|
|
2426
2655
|
}
|
|
2427
|
-
c(
|
|
2428
|
-
function
|
|
2656
|
+
c(Ls, "diffStrings");
|
|
2657
|
+
function xs(t, e, n) {
|
|
2429
2658
|
return e.reduce(
|
|
2430
|
-
(r, o) => r + (o[0] ===
|
|
2659
|
+
(r, o) => r + (o[0] === x ? o[1] : o[0] === t && o[1].length !== 0 ? n(o[1]) : ""),
|
|
2431
2660
|
""
|
|
2432
2661
|
);
|
|
2433
2662
|
}
|
|
2434
|
-
c(
|
|
2435
|
-
var
|
|
2663
|
+
c(xs, "concatenateRelevantDiffs");
|
|
2664
|
+
var Jt = class {
|
|
2436
2665
|
static {
|
|
2437
2666
|
c(this, "ChangeBuffer");
|
|
2438
2667
|
}
|
|
@@ -2452,7 +2681,7 @@ var Kt = class {
|
|
|
2452
2681
|
this.lines.push(
|
|
2453
2682
|
this.line.length !== 1 ? new I(
|
|
2454
2683
|
this.op,
|
|
2455
|
-
|
|
2684
|
+
xs(this.op, this.line, this.changeColor)
|
|
2456
2685
|
) : this.line[0][0] === this.op ? this.line[0] : new I(this.op, this.line[0][1])
|
|
2457
2686
|
// was common diff
|
|
2458
2687
|
), this.line.length = 0;
|
|
@@ -2481,7 +2710,7 @@ var Kt = class {
|
|
|
2481
2710
|
moveLinesTo(e) {
|
|
2482
2711
|
this.isLineEmpty() || this.pushLine(), e.push(...this.lines), this.lines.length = 0;
|
|
2483
2712
|
}
|
|
2484
|
-
},
|
|
2713
|
+
}, Oe = class {
|
|
2485
2714
|
static {
|
|
2486
2715
|
c(this, "CommonBuffer");
|
|
2487
2716
|
}
|
|
@@ -2509,12 +2738,12 @@ var Kt = class {
|
|
|
2509
2738
|
`)) {
|
|
2510
2739
|
let o = r.split(`
|
|
2511
2740
|
`), s = o.length - 1;
|
|
2512
|
-
o.forEach((i,
|
|
2513
|
-
if (
|
|
2514
|
-
let
|
|
2515
|
-
this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(
|
|
2516
|
-
pushDiffChangeLines(
|
|
2517
|
-
} else
|
|
2741
|
+
o.forEach((i, a) => {
|
|
2742
|
+
if (a === 0) {
|
|
2743
|
+
let l = new I(n, i);
|
|
2744
|
+
this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(l)) : (this.
|
|
2745
|
+
pushDiffChangeLines(l), this.flushChangeLines());
|
|
2746
|
+
} else a < s ? this.pushDiffCommonLine(new I(n, i)) : i.length !== 0 && this.pushDiffChangeLines(new I(n, i));
|
|
2518
2747
|
});
|
|
2519
2748
|
} else
|
|
2520
2749
|
this.pushDiffChangeLines(e);
|
|
@@ -2524,14 +2753,14 @@ var Kt = class {
|
|
|
2524
2753
|
return this.flushChangeLines(), this.lines;
|
|
2525
2754
|
}
|
|
2526
2755
|
};
|
|
2527
|
-
function
|
|
2528
|
-
let n = new
|
|
2756
|
+
function Fs(t, e) {
|
|
2757
|
+
let n = new Jt(U, e), r = new Jt(k, e), o = new Oe(n, r);
|
|
2529
2758
|
return t.forEach((s) => {
|
|
2530
2759
|
switch (s[0]) {
|
|
2531
|
-
case
|
|
2760
|
+
case U:
|
|
2532
2761
|
n.align(s);
|
|
2533
2762
|
break;
|
|
2534
|
-
case
|
|
2763
|
+
case k:
|
|
2535
2764
|
r.align(s);
|
|
2536
2765
|
break;
|
|
2537
2766
|
default:
|
|
@@ -2539,23 +2768,23 @@ function hs(t, e) {
|
|
|
2539
2768
|
}
|
|
2540
2769
|
}), o.getLines();
|
|
2541
2770
|
}
|
|
2542
|
-
c(
|
|
2543
|
-
function
|
|
2771
|
+
c(Fs, "getAlignedDiffs");
|
|
2772
|
+
function Ds(t, e) {
|
|
2544
2773
|
if (e) {
|
|
2545
2774
|
let n = t.length - 1;
|
|
2546
2775
|
return t.some(
|
|
2547
|
-
(r, o) => r[0] ===
|
|
2776
|
+
(r, o) => r[0] === x && (o !== n || r[1] !== `
|
|
2548
2777
|
`)
|
|
2549
2778
|
);
|
|
2550
2779
|
}
|
|
2551
|
-
return t.some((n) => n[0] ===
|
|
2780
|
+
return t.some((n) => n[0] === x);
|
|
2552
2781
|
}
|
|
2553
|
-
c(
|
|
2554
|
-
function
|
|
2782
|
+
c(Ds, "hasCommonDiff");
|
|
2783
|
+
function js(t, e, n) {
|
|
2555
2784
|
if (t !== e && t.length !== 0 && e.length !== 0) {
|
|
2556
2785
|
let r = t.includes(`
|
|
2557
2786
|
`) || e.includes(`
|
|
2558
|
-
`), [o, s] =
|
|
2787
|
+
`), [o, s] = tr(
|
|
2559
2788
|
r ? `${t}
|
|
2560
2789
|
` : t,
|
|
2561
2790
|
r ? `${e}
|
|
@@ -2564,111 +2793,116 @@ function ds(t, e, n) {
|
|
|
2564
2793
|
// cleanupSemantic
|
|
2565
2794
|
n
|
|
2566
2795
|
);
|
|
2567
|
-
if (
|
|
2568
|
-
let i =
|
|
2569
|
-
return
|
|
2796
|
+
if (Ds(o, r)) {
|
|
2797
|
+
let i = ht(n), a = Fs(o, i.changeColor);
|
|
2798
|
+
return Ne(a, s, i);
|
|
2570
2799
|
}
|
|
2571
2800
|
}
|
|
2572
|
-
return
|
|
2801
|
+
return Xt(t.split(`
|
|
2573
2802
|
`), e.split(`
|
|
2574
2803
|
`), n);
|
|
2575
2804
|
}
|
|
2576
|
-
c(
|
|
2577
|
-
function
|
|
2578
|
-
let [o, s] =
|
|
2579
|
-
return n &&
|
|
2805
|
+
c(js, "diffStringsUnified");
|
|
2806
|
+
function tr(t, e, n, r) {
|
|
2807
|
+
let [o, s] = Ls(t, e, r);
|
|
2808
|
+
return n && ys(o), [o, s];
|
|
2580
2809
|
}
|
|
2581
|
-
c(
|
|
2582
|
-
function
|
|
2583
|
-
let { commonColor: n } =
|
|
2810
|
+
c(tr, "diffStringsRaw");
|
|
2811
|
+
function $e(t, e) {
|
|
2812
|
+
let { commonColor: n } = ht(e);
|
|
2584
2813
|
return n(t);
|
|
2585
2814
|
}
|
|
2586
|
-
c(
|
|
2815
|
+
c($e, "getCommonMessage");
|
|
2587
2816
|
var {
|
|
2588
|
-
AsymmetricMatcher:
|
|
2589
|
-
DOMCollection:
|
|
2590
|
-
DOMElement:
|
|
2591
|
-
Immutable:
|
|
2592
|
-
ReactElement:
|
|
2593
|
-
ReactTestComponent:
|
|
2594
|
-
} =
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2817
|
+
AsymmetricMatcher: Bs,
|
|
2818
|
+
DOMCollection: ks,
|
|
2819
|
+
DOMElement: zs,
|
|
2820
|
+
Immutable: Ys,
|
|
2821
|
+
ReactElement: Us,
|
|
2822
|
+
ReactTestComponent: Ws
|
|
2823
|
+
} = $t, er = [
|
|
2824
|
+
Ws,
|
|
2825
|
+
Us,
|
|
2826
|
+
zs,
|
|
2827
|
+
ks,
|
|
2828
|
+
Ys,
|
|
2829
|
+
Bs,
|
|
2830
|
+
$t.Error
|
|
2831
|
+
], we = {
|
|
2832
|
+
plugins: er
|
|
2833
|
+
}, nr = {
|
|
2604
2834
|
callToJSON: !1,
|
|
2605
|
-
maxDepth:
|
|
2606
|
-
plugins:
|
|
2835
|
+
maxDepth: 8,
|
|
2836
|
+
plugins: er
|
|
2607
2837
|
};
|
|
2608
|
-
function
|
|
2838
|
+
function Vs(t, e, n) {
|
|
2609
2839
|
if (Object.is(t, e))
|
|
2610
2840
|
return "";
|
|
2611
|
-
let r =
|
|
2841
|
+
let r = Dn(t), o = r, s = !1;
|
|
2612
2842
|
if (r === "object" && typeof t.asymmetricMatch == "function") {
|
|
2613
2843
|
if (t.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof t.getExpectedType != "function")
|
|
2614
2844
|
return;
|
|
2615
2845
|
o = t.getExpectedType(), s = o === "string";
|
|
2616
2846
|
}
|
|
2617
|
-
if (o !==
|
|
2618
|
-
let
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2847
|
+
if (o !== Dn(e)) {
|
|
2848
|
+
let i = /* @__PURE__ */ c(function(O) {
|
|
2849
|
+
return O.length <= h ? O : `${O.slice(0, h)}...`;
|
|
2850
|
+
}, "truncate2"), { aAnnotation: a, aColor: l, aIndicator: m, bAnnotation: p, bColor: f, bIndicator: S } = ht(n), y = Ae(nr, n), g = v(t,
|
|
2851
|
+
y), u = v(e, y), h = 1e5;
|
|
2852
|
+
g = i(g), u = i(u);
|
|
2853
|
+
let b = `${l(`${m} ${a}:`)}
|
|
2854
|
+
${g}`, _ = `${f(`${S} ${p}:`)}
|
|
2855
|
+
${u}`;
|
|
2856
|
+
return `${b}
|
|
2623
2857
|
|
|
2624
|
-
${
|
|
2858
|
+
${_}`;
|
|
2625
2859
|
}
|
|
2626
2860
|
if (!s)
|
|
2627
2861
|
switch (r) {
|
|
2628
2862
|
case "string":
|
|
2629
|
-
return
|
|
2863
|
+
return Xt(t.split(`
|
|
2630
2864
|
`), e.split(`
|
|
2631
2865
|
`), n);
|
|
2632
2866
|
case "boolean":
|
|
2633
2867
|
case "number":
|
|
2634
|
-
return
|
|
2868
|
+
return qs(t, e, n);
|
|
2635
2869
|
case "map":
|
|
2636
|
-
return
|
|
2870
|
+
return Te(Bn(t), Bn(e), n);
|
|
2637
2871
|
case "set":
|
|
2638
|
-
return
|
|
2872
|
+
return Te(kn(t), kn(e), n);
|
|
2639
2873
|
default:
|
|
2640
|
-
return
|
|
2874
|
+
return Te(t, e, n);
|
|
2641
2875
|
}
|
|
2642
2876
|
}
|
|
2643
|
-
c(
|
|
2644
|
-
function
|
|
2645
|
-
let r =
|
|
2646
|
-
return r === o ? "" :
|
|
2877
|
+
c(Vs, "diff");
|
|
2878
|
+
function qs(t, e, n) {
|
|
2879
|
+
let r = v(t, we), o = v(e, we);
|
|
2880
|
+
return r === o ? "" : Xt(r.split(`
|
|
2647
2881
|
`), o.split(`
|
|
2648
2882
|
`), n);
|
|
2649
2883
|
}
|
|
2650
|
-
c(
|
|
2651
|
-
function
|
|
2884
|
+
c(qs, "comparePrimitive");
|
|
2885
|
+
function Bn(t) {
|
|
2652
2886
|
return new Map(Array.from(t.entries()).sort());
|
|
2653
2887
|
}
|
|
2654
|
-
c(
|
|
2655
|
-
function
|
|
2888
|
+
c(Bn, "sortMap");
|
|
2889
|
+
function kn(t) {
|
|
2656
2890
|
return new Set(Array.from(t.values()).sort());
|
|
2657
2891
|
}
|
|
2658
|
-
c(
|
|
2659
|
-
function
|
|
2892
|
+
c(kn, "sortSet");
|
|
2893
|
+
function Te(t, e, n) {
|
|
2660
2894
|
let r, o = !1;
|
|
2661
2895
|
try {
|
|
2662
|
-
let i = we
|
|
2663
|
-
r =
|
|
2896
|
+
let i = Ae(we, n);
|
|
2897
|
+
r = zn(t, e, i, n);
|
|
2664
2898
|
} catch {
|
|
2665
2899
|
o = !0;
|
|
2666
2900
|
}
|
|
2667
|
-
let s =
|
|
2901
|
+
let s = $e(Gn, n);
|
|
2668
2902
|
if (r === void 0 || r === s) {
|
|
2669
|
-
let i =
|
|
2670
|
-
r =
|
|
2671
|
-
|
|
2903
|
+
let i = Ae(nr, n);
|
|
2904
|
+
r = zn(t, e, i, n), r !== s && !o && (r = `${$e(
|
|
2905
|
+
Es,
|
|
2672
2906
|
n
|
|
2673
2907
|
)}
|
|
2674
2908
|
|
|
@@ -2676,25 +2910,26 @@ ${r}`);
|
|
|
2676
2910
|
}
|
|
2677
2911
|
return r;
|
|
2678
2912
|
}
|
|
2679
|
-
c(
|
|
2680
|
-
function
|
|
2681
|
-
let { compareKeys: n } =
|
|
2913
|
+
c(Te, "compareObjects");
|
|
2914
|
+
function Ae(t, e) {
|
|
2915
|
+
let { compareKeys: n, printBasicPrototype: r } = ht(e);
|
|
2682
2916
|
return {
|
|
2683
2917
|
...t,
|
|
2684
|
-
compareKeys: n
|
|
2918
|
+
compareKeys: n,
|
|
2919
|
+
printBasicPrototype: r
|
|
2685
2920
|
};
|
|
2686
2921
|
}
|
|
2687
|
-
c(
|
|
2688
|
-
function
|
|
2689
|
-
let o = { ...n, indent: 0 }, s =
|
|
2922
|
+
c(Ae, "getFormatOptions");
|
|
2923
|
+
function zn(t, e, n, r) {
|
|
2924
|
+
let o = { ...n, indent: 0 }, s = v(t, o), i = v(e, o);
|
|
2690
2925
|
if (s === i)
|
|
2691
|
-
return
|
|
2926
|
+
return $e(Gn, r);
|
|
2692
2927
|
{
|
|
2693
|
-
let
|
|
2694
|
-
return
|
|
2695
|
-
|
|
2928
|
+
let a = v(t, n), l = v(e, n);
|
|
2929
|
+
return Ms(
|
|
2930
|
+
a.split(`
|
|
2696
2931
|
`),
|
|
2697
|
-
|
|
2932
|
+
l.split(`
|
|
2698
2933
|
`),
|
|
2699
2934
|
s.split(`
|
|
2700
2935
|
`),
|
|
@@ -2704,99 +2939,102 @@ function Rn(t, e, n, r) {
|
|
|
2704
2939
|
);
|
|
2705
2940
|
}
|
|
2706
2941
|
}
|
|
2707
|
-
c(
|
|
2708
|
-
var
|
|
2709
|
-
function
|
|
2710
|
-
return
|
|
2942
|
+
c(zn, "getObjectsDifference");
|
|
2943
|
+
var Yn = 2e4;
|
|
2944
|
+
function Un(t) {
|
|
2945
|
+
return Kt(t) === "Object" && typeof t.asymmetricMatch == "function";
|
|
2711
2946
|
}
|
|
2712
|
-
c(
|
|
2713
|
-
function
|
|
2714
|
-
let n =
|
|
2947
|
+
c(Un, "isAsymmetricMatcher");
|
|
2948
|
+
function Wn(t, e) {
|
|
2949
|
+
let n = Kt(t), r = Kt(e);
|
|
2715
2950
|
return n === r && (n === "Object" || n === "Array");
|
|
2716
2951
|
}
|
|
2717
|
-
c(
|
|
2718
|
-
function
|
|
2719
|
-
let { aAnnotation: r, bAnnotation: o } =
|
|
2720
|
-
if (typeof
|
|
2721
|
-
if (
|
|
2722
|
-
`) ||
|
|
2952
|
+
c(Wn, "isReplaceable");
|
|
2953
|
+
function rr(t, e, n) {
|
|
2954
|
+
let { aAnnotation: r, bAnnotation: o } = ht(n);
|
|
2955
|
+
if (typeof e == "string" && typeof t == "string" && e.length > 0 && t.length > 0 && e.length <= Yn && t.length <= Yn && e !== t) {
|
|
2956
|
+
if (e.includes(`
|
|
2957
|
+
`) || t.includes(`
|
|
2723
2958
|
`))
|
|
2724
|
-
return
|
|
2725
|
-
let [
|
|
2726
|
-
|
|
2727
|
-
),
|
|
2728
|
-
|
|
2959
|
+
return js(e, t, n);
|
|
2960
|
+
let [p] = tr(e, t, !0), f = p.some((u) => u[0] === x), S = Ks(r, o), y = S(r) + Js(
|
|
2961
|
+
Vn(p, U, f)
|
|
2962
|
+
), g = S(o) + Hs(
|
|
2963
|
+
Vn(p, k, f)
|
|
2729
2964
|
);
|
|
2730
|
-
return `${
|
|
2731
|
-
${
|
|
2965
|
+
return `${y}
|
|
2966
|
+
${g}`;
|
|
2732
2967
|
}
|
|
2733
|
-
let s =
|
|
2734
|
-
return
|
|
2968
|
+
let s = _e(e, { forceWritable: !0 }), i = _e(t, { forceWritable: !0 }), { replacedExpected: a, replacedActual: l } = or(i, s);
|
|
2969
|
+
return Vs(a, l, n);
|
|
2735
2970
|
}
|
|
2736
|
-
c(
|
|
2737
|
-
function
|
|
2738
|
-
return
|
|
2971
|
+
c(rr, "printDiffOrStringify");
|
|
2972
|
+
function or(t, e, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet()) {
|
|
2973
|
+
return t instanceof Error && e instanceof Error && typeof t.cause < "u" && typeof e.cause > "u" ? (delete t.cause, {
|
|
2974
|
+
replacedActual: t,
|
|
2975
|
+
replacedExpected: e
|
|
2976
|
+
}) : Wn(t, e) ? n.has(t) || r.has(e) ? { replacedActual: t, replacedExpected: e } : (n.add(t), r.add(e), Ee(e).forEach((o) => {
|
|
2739
2977
|
let s = e[o], i = t[o];
|
|
2740
|
-
if (
|
|
2978
|
+
if (Un(s))
|
|
2741
2979
|
s.asymmetricMatch(i) && (t[o] = s);
|
|
2742
|
-
else if (
|
|
2980
|
+
else if (Un(i))
|
|
2743
2981
|
i.asymmetricMatch(s) && (e[o] = i);
|
|
2744
|
-
else if (
|
|
2745
|
-
let
|
|
2982
|
+
else if (Wn(i, s)) {
|
|
2983
|
+
let a = or(
|
|
2746
2984
|
i,
|
|
2747
2985
|
s,
|
|
2748
2986
|
n,
|
|
2749
2987
|
r
|
|
2750
2988
|
);
|
|
2751
|
-
t[o] =
|
|
2989
|
+
t[o] = a.replacedActual, e[o] = a.replacedExpected;
|
|
2752
2990
|
}
|
|
2753
2991
|
}), {
|
|
2754
2992
|
replacedActual: t,
|
|
2755
2993
|
replacedExpected: e
|
|
2756
2994
|
}) : { replacedActual: t, replacedExpected: e };
|
|
2757
2995
|
}
|
|
2758
|
-
c(
|
|
2759
|
-
function
|
|
2996
|
+
c(or, "replaceAsymmetricMatcher");
|
|
2997
|
+
function Ks(...t) {
|
|
2760
2998
|
let e = t.reduce(
|
|
2761
2999
|
(n, r) => r.length > n ? r.length : n,
|
|
2762
3000
|
0
|
|
2763
3001
|
);
|
|
2764
3002
|
return (n) => `${n}: ${" ".repeat(e - n.length)}`;
|
|
2765
3003
|
}
|
|
2766
|
-
c(
|
|
2767
|
-
var
|
|
2768
|
-
function
|
|
2769
|
-
return t.replace(/\s+$/gm, (e) =>
|
|
3004
|
+
c(Ks, "getLabelPrinter");
|
|
3005
|
+
var Gs = "\xB7";
|
|
3006
|
+
function sr(t) {
|
|
3007
|
+
return t.replace(/\s+$/gm, (e) => Gs.repeat(e.length));
|
|
2770
3008
|
}
|
|
2771
|
-
c(
|
|
2772
|
-
function
|
|
2773
|
-
return
|
|
3009
|
+
c(sr, "replaceTrailingSpaces");
|
|
3010
|
+
function Hs(t) {
|
|
3011
|
+
return et.red(sr(gt(t)));
|
|
2774
3012
|
}
|
|
2775
|
-
c(
|
|
2776
|
-
function
|
|
2777
|
-
return
|
|
3013
|
+
c(Hs, "printReceived");
|
|
3014
|
+
function Js(t) {
|
|
3015
|
+
return et.green(sr(gt(t)));
|
|
2778
3016
|
}
|
|
2779
|
-
c(
|
|
2780
|
-
function
|
|
3017
|
+
c(Js, "printExpected");
|
|
3018
|
+
function Vn(t, e, n) {
|
|
2781
3019
|
return t.reduce(
|
|
2782
|
-
(r, o) => r + (o[0] ===
|
|
3020
|
+
(r, o) => r + (o[0] === x ? o[1] : o[0] === e ? n ? et.inverse(o[1]) : o[1] : ""),
|
|
2783
3021
|
""
|
|
2784
3022
|
);
|
|
2785
3023
|
}
|
|
2786
|
-
c(
|
|
3024
|
+
c(Vn, "getCommonAndChangedSubstrings");
|
|
2787
3025
|
|
|
2788
3026
|
// ../node_modules/@vitest/utils/dist/error.js
|
|
2789
|
-
var
|
|
2790
|
-
function
|
|
2791
|
-
return t && (t[
|
|
3027
|
+
var Xs = "@@__IMMUTABLE_RECORD__@@", Zs = "@@__IMMUTABLE_ITERABLE__@@";
|
|
3028
|
+
function Qs(t) {
|
|
3029
|
+
return t && (t[Zs] || t[Xs]);
|
|
2792
3030
|
}
|
|
2793
|
-
c(
|
|
2794
|
-
var
|
|
2795
|
-
function
|
|
3031
|
+
c(Qs, "isImmutable");
|
|
3032
|
+
var vs = Object.getPrototypeOf({});
|
|
3033
|
+
function ir(t) {
|
|
2796
3034
|
return t instanceof Error ? `<unserializable>: ${t.message}` : typeof t == "string" ? `<unserializable>: ${t}` : "<unserializable>";
|
|
2797
3035
|
}
|
|
2798
|
-
c(
|
|
2799
|
-
function
|
|
3036
|
+
c(ir, "getUnserializableMessage");
|
|
3037
|
+
function _t(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
2800
3038
|
if (!t || typeof t == "string")
|
|
2801
3039
|
return t;
|
|
2802
3040
|
if (typeof t == "function")
|
|
@@ -2805,69 +3043,69 @@ function St(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
|
2805
3043
|
return t.toString();
|
|
2806
3044
|
if (typeof t != "object")
|
|
2807
3045
|
return t;
|
|
2808
|
-
if (
|
|
2809
|
-
return
|
|
3046
|
+
if (Qs(t))
|
|
3047
|
+
return _t(t.toJSON(), e);
|
|
2810
3048
|
if (t instanceof Promise || t.constructor && t.constructor.prototype === "AsyncFunction")
|
|
2811
3049
|
return "Promise";
|
|
2812
3050
|
if (typeof Element < "u" && t instanceof Element)
|
|
2813
3051
|
return t.tagName;
|
|
2814
3052
|
if (typeof t.asymmetricMatch == "function")
|
|
2815
|
-
return `${t.toString()} ${
|
|
3053
|
+
return `${t.toString()} ${An(t.sample)}`;
|
|
2816
3054
|
if (typeof t.toJSON == "function")
|
|
2817
|
-
return
|
|
3055
|
+
return _t(t.toJSON(), e);
|
|
2818
3056
|
if (e.has(t))
|
|
2819
3057
|
return e.get(t);
|
|
2820
3058
|
if (Array.isArray(t)) {
|
|
2821
3059
|
let n = new Array(t.length);
|
|
2822
3060
|
return e.set(t, n), t.forEach((r, o) => {
|
|
2823
3061
|
try {
|
|
2824
|
-
n[o] =
|
|
3062
|
+
n[o] = _t(r, e);
|
|
2825
3063
|
} catch (s) {
|
|
2826
|
-
n[o] =
|
|
3064
|
+
n[o] = ir(s);
|
|
2827
3065
|
}
|
|
2828
3066
|
}), n;
|
|
2829
3067
|
} else {
|
|
2830
3068
|
let n = /* @__PURE__ */ Object.create(null);
|
|
2831
3069
|
e.set(t, n);
|
|
2832
3070
|
let r = t;
|
|
2833
|
-
for (; r && r !==
|
|
3071
|
+
for (; r && r !== vs; )
|
|
2834
3072
|
Object.getOwnPropertyNames(r).forEach((o) => {
|
|
2835
3073
|
if (!(o in n))
|
|
2836
3074
|
try {
|
|
2837
|
-
n[o] =
|
|
3075
|
+
n[o] = _t(t[o], e);
|
|
2838
3076
|
} catch (s) {
|
|
2839
|
-
delete n[o], n[o] =
|
|
3077
|
+
delete n[o], n[o] = ir(s);
|
|
2840
3078
|
}
|
|
2841
3079
|
}), r = Object.getPrototypeOf(r);
|
|
2842
3080
|
return n;
|
|
2843
3081
|
}
|
|
2844
3082
|
}
|
|
2845
|
-
c(
|
|
2846
|
-
function
|
|
3083
|
+
c(_t, "serializeValue");
|
|
3084
|
+
function ti(t) {
|
|
2847
3085
|
return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
|
|
2848
3086
|
}
|
|
2849
|
-
c(
|
|
2850
|
-
function
|
|
3087
|
+
c(ti, "normalizeErrorMessage");
|
|
3088
|
+
function Pe(t, e, n = /* @__PURE__ */ new WeakSet()) {
|
|
2851
3089
|
if (!t || typeof t != "object")
|
|
2852
3090
|
return { message: String(t) };
|
|
2853
3091
|
let r = t;
|
|
2854
3092
|
r.stack && (r.stackStr = String(r.stack)), r.name && (r.nameStr = String(r.name)), (r.showDiff || r.showDiff === void 0 && r.expected !== void 0 &&
|
|
2855
|
-
r.actual !== void 0) && (r.diff =
|
|
3093
|
+
r.actual !== void 0) && (r.diff = rr(r.actual, r.expected, {
|
|
2856
3094
|
...e,
|
|
2857
3095
|
...r.diffOptions
|
|
2858
|
-
})), typeof r.expected != "string" && (r.expected =
|
|
3096
|
+
})), typeof r.expected != "string" && (r.expected = gt(r.expected, 10)), typeof r.actual != "string" && (r.actual = gt(r.actual, 10));
|
|
2859
3097
|
try {
|
|
2860
|
-
typeof r.message == "string" && (r.message =
|
|
3098
|
+
typeof r.message == "string" && (r.message = ti(r.message));
|
|
2861
3099
|
} catch {
|
|
2862
3100
|
}
|
|
2863
3101
|
try {
|
|
2864
|
-
!n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause =
|
|
3102
|
+
!n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause = Pe(r.cause, e, n));
|
|
2865
3103
|
} catch {
|
|
2866
3104
|
}
|
|
2867
3105
|
try {
|
|
2868
|
-
return
|
|
3106
|
+
return _t(r);
|
|
2869
3107
|
} catch (o) {
|
|
2870
|
-
return
|
|
3108
|
+
return _t(
|
|
2871
3109
|
new Error(
|
|
2872
3110
|
`Failed to fully serialize error: ${o?.message}
|
|
2873
3111
|
Inner error message: ${r?.message}`
|
|
@@ -2875,16 +3113,16 @@ Inner error message: ${r?.message}`
|
|
|
2875
3113
|
);
|
|
2876
3114
|
}
|
|
2877
3115
|
}
|
|
2878
|
-
c(
|
|
3116
|
+
c(Pe, "processError");
|
|
2879
3117
|
|
|
2880
3118
|
// src/instrumenter/instrumenter.ts
|
|
2881
|
-
var
|
|
3119
|
+
var Zt = require("storybook/preview-api");
|
|
2882
3120
|
|
|
2883
3121
|
// src/instrumenter/types.ts
|
|
2884
|
-
var
|
|
3122
|
+
var cr = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(cr || {});
|
|
2885
3123
|
|
|
2886
3124
|
// src/instrumenter/instrumenter.ts
|
|
2887
|
-
var
|
|
3125
|
+
var ot = {
|
|
2888
3126
|
CALL: "storybook/instrumenter/call",
|
|
2889
3127
|
SYNC: "storybook/instrumenter/sync",
|
|
2890
3128
|
START: "storybook/instrumenter/start",
|
|
@@ -2892,29 +3130,29 @@ var nt = {
|
|
|
2892
3130
|
GOTO: "storybook/instrumenter/goto",
|
|
2893
3131
|
NEXT: "storybook/instrumenter/next",
|
|
2894
3132
|
END: "storybook/instrumenter/end"
|
|
2895
|
-
},
|
|
3133
|
+
}, ur = {
|
|
2896
3134
|
start: !1,
|
|
2897
3135
|
back: !1,
|
|
2898
3136
|
goto: !1,
|
|
2899
3137
|
next: !1,
|
|
2900
3138
|
end: !1
|
|
2901
|
-
},
|
|
3139
|
+
}, ei = new Error(
|
|
2902
3140
|
"This function ran after the play function completed. Did you forget to `await` it?"
|
|
2903
|
-
),
|
|
2904
|
-
prototype.toString.call(t) === "[object Module]", "isModule"),
|
|
2905
|
-
if (!
|
|
3141
|
+
), lr = /* @__PURE__ */ c((t) => Object.prototype.toString.call(t) === "[object Object]", "isObject"), ni = /* @__PURE__ */ c((t) => Object.
|
|
3142
|
+
prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__ */ c((t) => {
|
|
3143
|
+
if (!lr(t) && !ni(t))
|
|
2906
3144
|
return !1;
|
|
2907
3145
|
if (t.constructor === void 0)
|
|
2908
3146
|
return !0;
|
|
2909
3147
|
let e = t.constructor.prototype;
|
|
2910
|
-
return !!
|
|
2911
|
-
}, "isInstrumentable"),
|
|
3148
|
+
return !!lr(e);
|
|
3149
|
+
}, "isInstrumentable"), oi = /* @__PURE__ */ c((t) => {
|
|
2912
3150
|
try {
|
|
2913
3151
|
return new t.constructor();
|
|
2914
3152
|
} catch {
|
|
2915
3153
|
return {};
|
|
2916
3154
|
}
|
|
2917
|
-
}, "construct"),
|
|
3155
|
+
}, "construct"), Ie = /* @__PURE__ */ c(() => ({
|
|
2918
3156
|
renderPhase: void 0,
|
|
2919
3157
|
isDebugging: !1,
|
|
2920
3158
|
isPlaying: !1,
|
|
@@ -2928,7 +3166,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), Fs = /* @__PURE__
|
|
|
2928
3166
|
playUntil: void 0,
|
|
2929
3167
|
resolvers: {},
|
|
2930
3168
|
syncTimeout: void 0
|
|
2931
|
-
}), "getInitialState"),
|
|
3169
|
+
}), "getInitialState"), ar = /* @__PURE__ */ c((t, e = !1) => {
|
|
2932
3170
|
let n = (e ? t.shadowCalls : t.calls).filter((o) => o.retain);
|
|
2933
3171
|
if (!n.length)
|
|
2934
3172
|
return;
|
|
@@ -2936,256 +3174,256 @@ prototype.toString.call(t) === "[object Module]", "isModule"), Fs = /* @__PURE__
|
|
|
2936
3174
|
Array.from(t.callRefsByResult.entries()).filter(([, o]) => o.retain)
|
|
2937
3175
|
);
|
|
2938
3176
|
return { cursor: n.length, calls: n, callRefsByResult: r };
|
|
2939
|
-
}, "getRetainedState"),
|
|
3177
|
+
}, "getRetainedState"), Me = class {
|
|
2940
3178
|
constructor() {
|
|
2941
3179
|
this.initialized = !1;
|
|
2942
|
-
this.state =
|
|
3180
|
+
this.state = W.global.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
|
|
2943
3181
|
let e = /* @__PURE__ */ c(({
|
|
2944
|
-
storyId:
|
|
2945
|
-
isPlaying:
|
|
2946
|
-
isDebugging:
|
|
3182
|
+
storyId: l,
|
|
3183
|
+
isPlaying: m = !0,
|
|
3184
|
+
isDebugging: p = !1
|
|
2947
3185
|
}) => {
|
|
2948
|
-
let
|
|
2949
|
-
this.setState(
|
|
2950
|
-
...
|
|
2951
|
-
...
|
|
2952
|
-
shadowCalls:
|
|
2953
|
-
chainedCallIds:
|
|
2954
|
-
playUntil:
|
|
2955
|
-
isPlaying:
|
|
2956
|
-
isDebugging:
|
|
2957
|
-
}), this.sync(
|
|
2958
|
-
}, "resetState"), n = /* @__PURE__ */ c((
|
|
2959
|
-
this.getState(
|
|
3186
|
+
let f = this.getState(l);
|
|
3187
|
+
this.setState(l, {
|
|
3188
|
+
...Ie(),
|
|
3189
|
+
...ar(f, p),
|
|
3190
|
+
shadowCalls: p ? f.shadowCalls : [],
|
|
3191
|
+
chainedCallIds: p ? f.chainedCallIds : /* @__PURE__ */ new Set(),
|
|
3192
|
+
playUntil: p ? f.playUntil : void 0,
|
|
3193
|
+
isPlaying: m,
|
|
3194
|
+
isDebugging: p
|
|
3195
|
+
}), this.sync(l);
|
|
3196
|
+
}, "resetState"), n = /* @__PURE__ */ c((l) => ({ storyId: m, playUntil: p }) => {
|
|
3197
|
+
this.getState(m).isDebugging || this.setState(m, ({ calls: S }) => ({
|
|
2960
3198
|
calls: [],
|
|
2961
|
-
shadowCalls: S.map((
|
|
3199
|
+
shadowCalls: S.map((y) => ({ ...y, status: "waiting" })),
|
|
2962
3200
|
isDebugging: !0
|
|
2963
3201
|
}));
|
|
2964
|
-
let
|
|
2965
|
-
this.setState(
|
|
2966
|
-
if (
|
|
2967
|
-
return { playUntil:
|
|
2968
|
-
let
|
|
3202
|
+
let f = this.getLog(m);
|
|
3203
|
+
this.setState(m, ({ shadowCalls: S }) => {
|
|
3204
|
+
if (p || !f.length)
|
|
3205
|
+
return { playUntil: p };
|
|
3206
|
+
let y = S.findIndex((g) => g.id === f[0].callId);
|
|
2969
3207
|
return {
|
|
2970
|
-
playUntil: S.slice(0,
|
|
3208
|
+
playUntil: S.slice(0, y).filter((g) => g.interceptable && !g.ancestors?.length).slice(-1)[0]?.id
|
|
2971
3209
|
};
|
|
2972
|
-
}),
|
|
2973
|
-
}, "start"), r = /* @__PURE__ */ c((
|
|
2974
|
-
let
|
|
2975
|
-
n(
|
|
2976
|
-
}, "back"), o = /* @__PURE__ */ c((
|
|
2977
|
-
let { calls:
|
|
2978
|
-
|
|
2979
|
-
if (!
|
|
2980
|
-
let
|
|
2981
|
-
|
|
3210
|
+
}), l.emit(yt.FORCE_REMOUNT, { storyId: m, isDebugging: !0 });
|
|
3211
|
+
}, "start"), r = /* @__PURE__ */ c((l) => ({ storyId: m }) => {
|
|
3212
|
+
let p = this.getLog(m).filter((S) => !S.ancestors?.length), f = p.reduceRight((S, y, g) => S >= 0 || y.status === "waiting" ? S : g, -1);
|
|
3213
|
+
n(l)({ storyId: m, playUntil: p[f - 1]?.callId });
|
|
3214
|
+
}, "back"), o = /* @__PURE__ */ c((l) => ({ storyId: m, callId: p }) => {
|
|
3215
|
+
let { calls: f, shadowCalls: S, resolvers: y } = this.getState(m), g = f.find(({ id: h }) => h === p), u = S.find(({ id: h }) => h ===
|
|
3216
|
+
p);
|
|
3217
|
+
if (!g && u && Object.values(y).length > 0) {
|
|
3218
|
+
let h = this.getLog(m).find((b) => b.status === "waiting")?.callId;
|
|
3219
|
+
u.id !== h && this.setState(m, { playUntil: u.id }), Object.values(y).forEach((b) => b());
|
|
2982
3220
|
} else
|
|
2983
|
-
n(
|
|
2984
|
-
}, "goto"), s = /* @__PURE__ */ c((
|
|
2985
|
-
let { resolvers:
|
|
2986
|
-
if (Object.values(
|
|
2987
|
-
Object.values(
|
|
3221
|
+
n(l)({ storyId: m, playUntil: p });
|
|
3222
|
+
}, "goto"), s = /* @__PURE__ */ c((l) => ({ storyId: m }) => {
|
|
3223
|
+
let { resolvers: p } = this.getState(m);
|
|
3224
|
+
if (Object.values(p).length > 0)
|
|
3225
|
+
Object.values(p).forEach((f) => f());
|
|
2988
3226
|
else {
|
|
2989
|
-
let
|
|
2990
|
-
|
|
3227
|
+
let f = this.getLog(m).find((S) => S.status === "waiting")?.callId;
|
|
3228
|
+
f ? n(l)({ storyId: m, playUntil: f }) : i({ storyId: m });
|
|
2991
3229
|
}
|
|
2992
|
-
}, "next"), i = /* @__PURE__ */ c(({ storyId:
|
|
2993
|
-
this.setState(
|
|
2994
|
-
}, "end"),
|
|
2995
|
-
let { isDebugging:
|
|
2996
|
-
this.setState(
|
|
2997
|
-
|
|
3230
|
+
}, "next"), i = /* @__PURE__ */ c(({ storyId: l }) => {
|
|
3231
|
+
this.setState(l, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(l).resolvers).forEach((m) => m());
|
|
3232
|
+
}, "end"), a = /* @__PURE__ */ c(({ storyId: l, newPhase: m }) => {
|
|
3233
|
+
let { isDebugging: p } = this.getState(l);
|
|
3234
|
+
this.setState(l, { renderPhase: m }), m === "preparing" && p && e({ storyId: l }), m === "playing" && e({ storyId: l, isDebugging: p }),
|
|
3235
|
+
m === "played" && this.setState(l, {
|
|
2998
3236
|
isLocked: !1,
|
|
2999
3237
|
isPlaying: !1,
|
|
3000
3238
|
isDebugging: !1
|
|
3001
|
-
}),
|
|
3239
|
+
}), m === "errored" && this.setState(l, {
|
|
3002
3240
|
isLocked: !1,
|
|
3003
3241
|
isPlaying: !1
|
|
3004
3242
|
});
|
|
3005
3243
|
}, "renderPhaseChanged");
|
|
3006
|
-
(
|
|
3007
|
-
this.channel =
|
|
3008
|
-
on(
|
|
3244
|
+
(Zt.addons ? Zt.addons.ready() : Promise.resolve()).then(() => {
|
|
3245
|
+
this.channel = Zt.addons.getChannel(), this.channel.on(yt.FORCE_REMOUNT, e), this.channel.on(yt.STORY_RENDER_PHASE_CHANGED, a), this.channel.
|
|
3246
|
+
on(yt.SET_CURRENT_STORY, () => {
|
|
3009
3247
|
this.initialized ? this.cleanup() : this.initialized = !0;
|
|
3010
|
-
}), this.channel.on(
|
|
3011
|
-
channel.on(
|
|
3248
|
+
}), this.channel.on(ot.START, n(this.channel)), this.channel.on(ot.BACK, r(this.channel)), this.channel.on(ot.GOTO, o(this.channel)), this.
|
|
3249
|
+
channel.on(ot.NEXT, s(this.channel)), this.channel.on(ot.END, i);
|
|
3012
3250
|
});
|
|
3013
3251
|
}
|
|
3014
3252
|
static {
|
|
3015
3253
|
c(this, "Instrumenter");
|
|
3016
3254
|
}
|
|
3017
3255
|
getState(e) {
|
|
3018
|
-
return this.state[e] ||
|
|
3256
|
+
return this.state[e] || Ie();
|
|
3019
3257
|
}
|
|
3020
3258
|
setState(e, n) {
|
|
3021
3259
|
let r = this.getState(e), o = typeof n == "function" ? n(r) : n;
|
|
3022
|
-
this.state = { ...this.state, [e]: { ...r, ...o } },
|
|
3260
|
+
this.state = { ...this.state, [e]: { ...r, ...o } }, W.global.window?.parent && (W.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
|
|
3023
3261
|
this.state);
|
|
3024
3262
|
}
|
|
3025
3263
|
cleanup() {
|
|
3026
3264
|
this.state = Object.entries(this.state).reduce(
|
|
3027
3265
|
(n, [r, o]) => {
|
|
3028
|
-
let s =
|
|
3029
|
-
return s && (n[r] = Object.assign(
|
|
3266
|
+
let s = ar(o);
|
|
3267
|
+
return s && (n[r] = Object.assign(Ie(), s)), n;
|
|
3030
3268
|
},
|
|
3031
3269
|
{}
|
|
3032
3270
|
);
|
|
3033
|
-
let e = { controlStates:
|
|
3034
|
-
this.channel?.emit(
|
|
3271
|
+
let e = { controlStates: ur, logItems: [] };
|
|
3272
|
+
this.channel?.emit(ot.SYNC, e), W.global.window?.parent && (W.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
|
|
3035
3273
|
this.state);
|
|
3036
3274
|
}
|
|
3037
3275
|
getLog(e) {
|
|
3038
3276
|
let { calls: n, shadowCalls: r } = this.getState(e), o = [...r];
|
|
3039
|
-
n.forEach((i,
|
|
3040
|
-
o[
|
|
3277
|
+
n.forEach((i, a) => {
|
|
3278
|
+
o[a] = i;
|
|
3041
3279
|
});
|
|
3042
3280
|
let s = /* @__PURE__ */ new Set();
|
|
3043
|
-
return o.reduceRight((i,
|
|
3044
|
-
|
|
3045
|
-
}),
|
|
3046
|
-
|
|
3047
|
-
}), (
|
|
3281
|
+
return o.reduceRight((i, a) => (a.args.forEach((l) => {
|
|
3282
|
+
l?.__callId__ && s.add(l.__callId__);
|
|
3283
|
+
}), a.path.forEach((l) => {
|
|
3284
|
+
l.__callId__ && s.add(l.__callId__);
|
|
3285
|
+
}), (a.interceptable || a.exception) && !s.has(a.id) && (i.unshift({ callId: a.id, status: a.status, ancestors: a.ancestors }), s.add(a.
|
|
3048
3286
|
id)), i), []);
|
|
3049
3287
|
}
|
|
3050
3288
|
// Traverses the object structure to recursively patch all function properties.
|
|
3051
3289
|
// Returns the original object, or a new object with the same constructor,
|
|
3052
3290
|
// depending on whether it should mutate.
|
|
3053
3291
|
instrument(e, n, r = 0) {
|
|
3054
|
-
if (!
|
|
3292
|
+
if (!ri(e))
|
|
3055
3293
|
return e;
|
|
3056
3294
|
let { mutate: o = !1, path: s = [] } = n, i = n.getKeys ? n.getKeys(e, r) : Object.keys(e);
|
|
3057
3295
|
return r += 1, i.reduce(
|
|
3058
|
-
(
|
|
3059
|
-
let
|
|
3060
|
-
if (typeof
|
|
3061
|
-
let
|
|
3062
|
-
return Object.defineProperty(
|
|
3063
|
-
get: /* @__PURE__ */ c(() => this.instrument(
|
|
3064
|
-
}),
|
|
3296
|
+
(a, l) => {
|
|
3297
|
+
let m = si(e, l);
|
|
3298
|
+
if (typeof m?.get == "function") {
|
|
3299
|
+
let f = /* @__PURE__ */ c(() => m?.get?.bind(e)?.(), "getter");
|
|
3300
|
+
return Object.defineProperty(a, l, {
|
|
3301
|
+
get: /* @__PURE__ */ c(() => this.instrument(f(), { ...n, path: s.concat(l) }, r), "get")
|
|
3302
|
+
}), a;
|
|
3065
3303
|
}
|
|
3066
|
-
let
|
|
3067
|
-
return typeof
|
|
3068
|
-
"function" ? (l
|
|
3069
|
-
{ value:
|
|
3070
|
-
l
|
|
3071
|
-
this.instrument({ ...
|
|
3072
|
-
),
|
|
3304
|
+
let p = e[l];
|
|
3305
|
+
return typeof p != "function" ? (a[l] = this.instrument(p, { ...n, path: s.concat(l) }, r), a) : "__originalFn__" in p && typeof p.__originalFn__ ==
|
|
3306
|
+
"function" ? (a[l] = p, a) : (a[l] = (...f) => this.track(l, p, e, f, n), a[l].__originalFn__ = p, Object.defineProperty(a[l], "name",
|
|
3307
|
+
{ value: l, writable: !1 }), Object.keys(p).length > 0 && Object.assign(
|
|
3308
|
+
a[l],
|
|
3309
|
+
this.instrument({ ...p }, { ...n, path: s.concat(l) }, r)
|
|
3310
|
+
), a);
|
|
3073
3311
|
},
|
|
3074
|
-
o ? e :
|
|
3312
|
+
o ? e : oi(e)
|
|
3075
3313
|
);
|
|
3076
3314
|
}
|
|
3077
3315
|
// Monkey patch an object method to record calls.
|
|
3078
3316
|
// Returns a function that invokes the original function, records the invocation ("call") and
|
|
3079
3317
|
// returns the original result.
|
|
3080
3318
|
track(e, n, r, o, s) {
|
|
3081
|
-
let i = o?.[0]?.__storyId__ ||
|
|
3319
|
+
let i = o?.[0]?.__storyId__ || W.global.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: a, ancestors: l } = this.getState(
|
|
3082
3320
|
i);
|
|
3083
|
-
this.setState(i, { cursor:
|
|
3084
|
-
let
|
|
3085
|
-
|
|
3086
|
-
this.intercept : this.invoke).call(this, n, r,
|
|
3087
|
-
return this.instrument(
|
|
3321
|
+
this.setState(i, { cursor: a + 1 });
|
|
3322
|
+
let m = `${l.slice(-1)[0] || i} [${a}] ${e}`, { path: p = [], intercept: f = !1, retain: S = !1 } = s, y = typeof f == "function" ? f(e,
|
|
3323
|
+
p) : f, g = { id: m, cursor: a, storyId: i, ancestors: l, path: p, method: e, args: o, interceptable: y, retain: S }, h = (y && !l.length ?
|
|
3324
|
+
this.intercept : this.invoke).call(this, n, r, g, s);
|
|
3325
|
+
return this.instrument(h, { ...s, mutate: !0, path: [{ __callId__: g.id }] });
|
|
3088
3326
|
}
|
|
3089
3327
|
intercept(e, n, r, o) {
|
|
3090
|
-
let { chainedCallIds: s, isDebugging: i, playUntil:
|
|
3091
|
-
return !i ||
|
|
3092
|
-
this.setState(r.storyId, ({ resolvers:
|
|
3328
|
+
let { chainedCallIds: s, isDebugging: i, playUntil: a } = this.getState(r.storyId), l = s.has(r.id);
|
|
3329
|
+
return !i || l || a ? (a === r.id && this.setState(r.storyId, { playUntil: void 0 }), this.invoke(e, n, r, o)) : new Promise((m) => {
|
|
3330
|
+
this.setState(r.storyId, ({ resolvers: p }) => ({
|
|
3093
3331
|
isLocked: !1,
|
|
3094
|
-
resolvers: { ...
|
|
3332
|
+
resolvers: { ...p, [r.id]: m }
|
|
3095
3333
|
}));
|
|
3096
|
-
}).then(() => (this.setState(r.storyId, (
|
|
3097
|
-
let { [r.id]:
|
|
3098
|
-
return { isLocked: !0, resolvers:
|
|
3334
|
+
}).then(() => (this.setState(r.storyId, (m) => {
|
|
3335
|
+
let { [r.id]: p, ...f } = m.resolvers;
|
|
3336
|
+
return { isLocked: !0, resolvers: f };
|
|
3099
3337
|
}), this.invoke(e, n, r, o)));
|
|
3100
3338
|
}
|
|
3101
3339
|
invoke(e, n, r, o) {
|
|
3102
|
-
let { callRefsByResult: s, renderPhase: i } = this.getState(r.storyId),
|
|
3103
|
-
if (
|
|
3340
|
+
let { callRefsByResult: s, renderPhase: i } = this.getState(r.storyId), a = 25, l = /* @__PURE__ */ c((f, S, y) => {
|
|
3341
|
+
if (y.includes(f))
|
|
3104
3342
|
return "[Circular]";
|
|
3105
|
-
if (
|
|
3343
|
+
if (y = [...y, f], S > a)
|
|
3106
3344
|
return "...";
|
|
3107
|
-
if (s.has(
|
|
3108
|
-
return s.get(
|
|
3109
|
-
if (
|
|
3110
|
-
return
|
|
3111
|
-
if (
|
|
3112
|
-
return { __date__: { value:
|
|
3113
|
-
if (
|
|
3114
|
-
let { name:
|
|
3115
|
-
return { __error__: { name:
|
|
3345
|
+
if (s.has(f))
|
|
3346
|
+
return s.get(f);
|
|
3347
|
+
if (f instanceof Array)
|
|
3348
|
+
return f.map((g) => l(g, ++S, y));
|
|
3349
|
+
if (f instanceof Date)
|
|
3350
|
+
return { __date__: { value: f.toISOString() } };
|
|
3351
|
+
if (f instanceof Error) {
|
|
3352
|
+
let { name: g, message: u, stack: h } = f;
|
|
3353
|
+
return { __error__: { name: g, message: u, stack: h } };
|
|
3116
3354
|
}
|
|
3117
|
-
if (
|
|
3118
|
-
let { flags:
|
|
3119
|
-
return { __regexp__: { flags:
|
|
3355
|
+
if (f instanceof RegExp) {
|
|
3356
|
+
let { flags: g, source: u } = f;
|
|
3357
|
+
return { __regexp__: { flags: g, source: u } };
|
|
3120
3358
|
}
|
|
3121
|
-
if (
|
|
3122
|
-
let { prefix:
|
|
3123
|
-
return { __element__: { prefix:
|
|
3359
|
+
if (f instanceof W.global.window?.HTMLElement) {
|
|
3360
|
+
let { prefix: g, localName: u, id: h, classList: b, innerText: _ } = f, O = Array.from(b);
|
|
3361
|
+
return { __element__: { prefix: g, localName: u, id: h, classNames: O, innerText: _ } };
|
|
3124
3362
|
}
|
|
3125
|
-
return typeof
|
|
3126
|
-
__function__: { name: "getMockName" in
|
|
3127
|
-
} : typeof
|
|
3128
|
-
name !== "Object" ? { __class__: { name:
|
|
3129
|
-
Object.entries(
|
|
3130
|
-
) :
|
|
3131
|
-
}, "serializeValues"),
|
|
3363
|
+
return typeof f == "function" ? {
|
|
3364
|
+
__function__: { name: "getMockName" in f ? f.getMockName() : f.name }
|
|
3365
|
+
} : typeof f == "symbol" ? { __symbol__: { description: f.description } } : typeof f == "object" && f?.constructor?.name && f?.constructor?.
|
|
3366
|
+
name !== "Object" ? { __class__: { name: f.constructor.name } } : Object.prototype.toString.call(f) === "[object Object]" ? Object.fromEntries(
|
|
3367
|
+
Object.entries(f).map(([g, u]) => [g, l(u, ++S, y)])
|
|
3368
|
+
) : f;
|
|
3369
|
+
}, "serializeValues"), m = {
|
|
3132
3370
|
...r,
|
|
3133
|
-
args: r.args.map((
|
|
3371
|
+
args: r.args.map((f) => l(f, 0, []))
|
|
3134
3372
|
};
|
|
3135
|
-
r.path.forEach((
|
|
3136
|
-
|
|
3137
|
-
chainedCallIds: new Set(Array.from(S).concat(
|
|
3373
|
+
r.path.forEach((f) => {
|
|
3374
|
+
f?.__callId__ && this.setState(r.storyId, ({ chainedCallIds: S }) => ({
|
|
3375
|
+
chainedCallIds: new Set(Array.from(S).concat(f.__callId__))
|
|
3138
3376
|
}));
|
|
3139
3377
|
});
|
|
3140
|
-
let
|
|
3141
|
-
if (
|
|
3142
|
-
let { name: S, message:
|
|
3143
|
-
showDiff:
|
|
3378
|
+
let p = /* @__PURE__ */ c((f) => {
|
|
3379
|
+
if (f instanceof Error) {
|
|
3380
|
+
let { name: S, message: y, stack: g, callId: u = r.id } = f, {
|
|
3381
|
+
showDiff: h = void 0,
|
|
3144
3382
|
diff: b = void 0,
|
|
3145
|
-
actual:
|
|
3146
|
-
expected:
|
|
3147
|
-
} =
|
|
3148
|
-
if (this.update({ ...
|
|
3383
|
+
actual: _ = void 0,
|
|
3384
|
+
expected: O = void 0
|
|
3385
|
+
} = f.name === "AssertionError" ? Pe(f) : f, d = { name: S, message: y, stack: g, callId: u, showDiff: h, diff: b, actual: _, expected: O };
|
|
3386
|
+
if (this.update({ ...m, status: "error", exception: d }), this.setState(r.storyId, (E) => ({
|
|
3149
3387
|
callRefsByResult: new Map([
|
|
3150
|
-
...Array.from(
|
|
3151
|
-
[
|
|
3388
|
+
...Array.from(E.callRefsByResult.entries()),
|
|
3389
|
+
[f, { __callId__: r.id, retain: r.retain }]
|
|
3152
3390
|
])
|
|
3153
3391
|
})), r.ancestors?.length)
|
|
3154
|
-
throw Object.prototype.hasOwnProperty.call(
|
|
3392
|
+
throw Object.prototype.hasOwnProperty.call(f, "callId") || Object.defineProperty(f, "callId", { value: r.id }), f;
|
|
3155
3393
|
}
|
|
3156
|
-
throw
|
|
3394
|
+
throw f;
|
|
3157
3395
|
}, "handleException");
|
|
3158
3396
|
try {
|
|
3159
3397
|
if (i === "played" && !r.retain)
|
|
3160
|
-
throw
|
|
3161
|
-
let S = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((
|
|
3162
|
-
(...
|
|
3163
|
-
let { cursor:
|
|
3398
|
+
throw ei;
|
|
3399
|
+
let S = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((g) => typeof g != "function" || Object.keys(g).length ? g :
|
|
3400
|
+
(...u) => {
|
|
3401
|
+
let { cursor: h, ancestors: b } = this.getState(r.storyId);
|
|
3164
3402
|
this.setState(r.storyId, { cursor: 0, ancestors: [...b, r.id] });
|
|
3165
|
-
let
|
|
3403
|
+
let _ = /* @__PURE__ */ c(() => this.setState(r.storyId, { cursor: h, ancestors: b }), "restore"), O = !1;
|
|
3166
3404
|
try {
|
|
3167
|
-
let d =
|
|
3168
|
-
return d instanceof Promise ? (
|
|
3405
|
+
let d = g(...u);
|
|
3406
|
+
return d instanceof Promise ? (O = !0, d.finally(_)) : d;
|
|
3169
3407
|
} finally {
|
|
3170
|
-
|
|
3408
|
+
O || _();
|
|
3171
3409
|
}
|
|
3172
|
-
}),
|
|
3173
|
-
return
|
|
3410
|
+
}), y = e.apply(n, S);
|
|
3411
|
+
return y && ["object", "function", "symbol"].includes(typeof y) && this.setState(r.storyId, (g) => ({
|
|
3174
3412
|
callRefsByResult: new Map([
|
|
3175
|
-
...Array.from(
|
|
3176
|
-
[
|
|
3413
|
+
...Array.from(g.callRefsByResult.entries()),
|
|
3414
|
+
[y, { __callId__: r.id, retain: r.retain }]
|
|
3177
3415
|
])
|
|
3178
3416
|
})), this.update({
|
|
3179
|
-
...
|
|
3180
|
-
status:
|
|
3181
|
-
}),
|
|
3182
|
-
} catch (
|
|
3183
|
-
return
|
|
3417
|
+
...m,
|
|
3418
|
+
status: y instanceof Promise ? "active" : "done"
|
|
3419
|
+
}), y instanceof Promise ? y.then((g) => (this.update({ ...m, status: "done" }), g), p) : y;
|
|
3420
|
+
} catch (f) {
|
|
3421
|
+
return p(f);
|
|
3184
3422
|
}
|
|
3185
3423
|
}
|
|
3186
3424
|
// Sends the call info to the manager and synchronizes the log.
|
|
3187
3425
|
update(e) {
|
|
3188
|
-
this.channel?.emit(
|
|
3426
|
+
this.channel?.emit(ot.CALL, e), this.setState(e.storyId, ({ calls: n }) => {
|
|
3189
3427
|
let r = n.concat(e).reduce((o, s) => Object.assign(o, { [s.id]: s }), {});
|
|
3190
3428
|
return {
|
|
3191
3429
|
// Calls are sorted to ensure parent calls always come before calls in their callback.
|
|
@@ -3199,40 +3437,40 @@ prototype.toString.call(t) === "[object Module]", "isModule"), Fs = /* @__PURE__
|
|
|
3199
3437
|
// Uses a 0ms debounce because this might get called many times in one tick.
|
|
3200
3438
|
sync(e) {
|
|
3201
3439
|
let n = /* @__PURE__ */ c(() => {
|
|
3202
|
-
let { isLocked: r, isPlaying: o } = this.getState(e), s = this.getLog(e), i = s.filter(({ ancestors:
|
|
3203
|
-
status === "waiting")?.callId,
|
|
3204
|
-
if (r ||
|
|
3205
|
-
let
|
|
3206
|
-
this.channel?.emit(
|
|
3440
|
+
let { isLocked: r, isPlaying: o } = this.getState(e), s = this.getLog(e), i = s.filter(({ ancestors: f }) => !f.length).find((f) => f.
|
|
3441
|
+
status === "waiting")?.callId, a = s.some((f) => f.status === "active");
|
|
3442
|
+
if (r || a || s.length === 0) {
|
|
3443
|
+
let f = { controlStates: ur, logItems: s };
|
|
3444
|
+
this.channel?.emit(ot.SYNC, f);
|
|
3207
3445
|
return;
|
|
3208
3446
|
}
|
|
3209
|
-
let
|
|
3210
|
-
(
|
|
3211
|
-
),
|
|
3212
|
-
start:
|
|
3213
|
-
back:
|
|
3447
|
+
let l = s.some(
|
|
3448
|
+
(f) => f.status === "done" || f.status === "error"
|
|
3449
|
+
), p = { controlStates: {
|
|
3450
|
+
start: l,
|
|
3451
|
+
back: l,
|
|
3214
3452
|
goto: !0,
|
|
3215
3453
|
next: o,
|
|
3216
3454
|
end: o
|
|
3217
3455
|
}, logItems: s, pausedAt: i };
|
|
3218
|
-
this.channel?.emit(
|
|
3456
|
+
this.channel?.emit(ot.SYNC, p);
|
|
3219
3457
|
}, "synchronize");
|
|
3220
3458
|
this.setState(e, ({ syncTimeout: r }) => (clearTimeout(r), { syncTimeout: setTimeout(n, 0) }));
|
|
3221
3459
|
}
|
|
3222
3460
|
};
|
|
3223
|
-
function
|
|
3461
|
+
function mr(t, e = {}) {
|
|
3224
3462
|
try {
|
|
3225
3463
|
let n = !1, r = !1;
|
|
3226
|
-
return
|
|
3227
|
-
=false") && (r = !0),
|
|
3228
|
-
(
|
|
3464
|
+
return W.global.window?.location?.search?.includes("instrument=true") ? n = !0 : W.global.window?.location?.search?.includes("instrument\
|
|
3465
|
+
=false") && (r = !0), W.global.window?.parent === W.global.window && !n || r ? t : (W.global.window && !W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ &&
|
|
3466
|
+
(W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Me()), (W.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).
|
|
3229
3467
|
instrument(t, e));
|
|
3230
3468
|
} catch (n) {
|
|
3231
|
-
return
|
|
3469
|
+
return fr.once.warn(n), t;
|
|
3232
3470
|
}
|
|
3233
3471
|
}
|
|
3234
|
-
c(
|
|
3235
|
-
function
|
|
3472
|
+
c(mr, "instrument");
|
|
3473
|
+
function si(t, e) {
|
|
3236
3474
|
let n = t;
|
|
3237
3475
|
for (; n != null; ) {
|
|
3238
3476
|
let r = Object.getOwnPropertyDescriptor(n, e);
|
|
@@ -3241,4 +3479,4 @@ function Bs(t, e) {
|
|
|
3241
3479
|
n = Object.getPrototypeOf(n);
|
|
3242
3480
|
}
|
|
3243
3481
|
}
|
|
3244
|
-
c(
|
|
3482
|
+
c(si, "getPropertyDescriptor");
|