storybook 10.0.7 → 10.0.8
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/_browser-chunks/{chunk-RW5PKMWM.js → chunk-HERDX7MO.js} +2 -2
- package/dist/_browser-chunks/{chunk-UTNZYD2N.js → chunk-KHNISLMN.js} +81 -37
- package/dist/_browser-chunks/{chunk-B4A3ADP3.js → chunk-U2JWIJRX.js} +1 -1
- package/dist/_browser-chunks/{chunk-SYS437NN.js → chunk-VQJJDUCI.js} +1 -1
- package/dist/_node-chunks/{builder-manager-IMGYSQ6C.js → builder-manager-32BKVJNY.js} +12 -12
- package/dist/_node-chunks/camelcase-A6XPJDW2.js +18 -0
- package/dist/_node-chunks/{chunk-WEXHDPHI.js → chunk-2JVDNALC.js} +7 -7
- package/dist/_node-chunks/{chunk-PVBMWXLV.js → chunk-2YHAMJAY.js} +7 -7
- package/dist/_node-chunks/{chunk-ODTNT22I.js → chunk-425EMBPZ.js} +297 -768
- package/dist/_node-chunks/{chunk-SQJQNNLJ.js → chunk-4UOXOBHK.js} +22 -16
- package/dist/_node-chunks/{chunk-X52AL5YW.js → chunk-4WKJYHSS.js} +7 -7
- package/dist/_node-chunks/{chunk-MD57HJIM.js → chunk-5VYG646K.js} +7 -7
- package/dist/_node-chunks/chunk-A3KNZ5FW.js +18 -0
- package/dist/_node-chunks/{chunk-24QJCCAD.js → chunk-C4ROO6RE.js} +7 -7
- package/dist/_node-chunks/{chunk-UMPQ4E76.js → chunk-CWWI6A7W.js} +8 -8
- package/dist/_node-chunks/{chunk-V3HQ6KQZ.js → chunk-DPKZQ6YX.js} +7 -7
- package/dist/_node-chunks/{chunk-QJE3V7EA.js → chunk-EGWLH7SG.js} +10 -10
- package/dist/_node-chunks/{chunk-76Y6LEGH.js → chunk-F6NUZ463.js} +9 -9
- package/dist/_node-chunks/{chunk-QWKN7XKO.js → chunk-FYLSDVSH.js} +21 -21
- package/dist/_node-chunks/{chunk-WB52FWVJ.js → chunk-HUKSE3QZ.js} +7 -7
- package/dist/_node-chunks/{chunk-LL7YW7JI.js → chunk-IR6AN3RK.js} +8 -8
- package/dist/_node-chunks/{chunk-WRVTNG75.js → chunk-J5R55OCP.js} +7 -7
- package/dist/_node-chunks/{chunk-H6EU5XDR.js → chunk-JBW3FROT.js} +6 -6
- package/dist/_node-chunks/{chunk-QHZ7UVRT.js → chunk-JFMDUYER.js} +7 -7
- package/dist/_node-chunks/{chunk-ZTMF3ZLU.js → chunk-JVUHT63V.js} +8 -8
- package/dist/_node-chunks/{chunk-2JHMFGYJ.js → chunk-K373EZTP.js} +12 -12
- package/dist/_node-chunks/{chunk-5I4UHD7U.js → chunk-KVR64UU2.js} +529 -284
- package/dist/_node-chunks/chunk-NEOS45YA.js +61 -0
- package/dist/_node-chunks/{chunk-RDC6YPRK.js → chunk-OVJEF4RI.js} +9 -9
- package/dist/_node-chunks/{chunk-I3VS3SZG.js → chunk-PK3UILX6.js} +7 -7
- package/dist/_node-chunks/{chunk-63N4MMRO.js → chunk-QHYQ5G5G.js} +7 -7
- package/dist/_node-chunks/{chunk-R5RWAUHB.js → chunk-TKXE3RQ5.js} +12 -12
- package/dist/_node-chunks/{chunk-CEKA7D2C.js → chunk-UOLIYXDF.js} +7 -7
- package/dist/_node-chunks/{chunk-RCEDZ5SF.js → chunk-V4MKEKP7.js} +7 -7
- package/dist/_node-chunks/{chunk-ZA2S75S7.js → chunk-V7ZKSK5R.js} +7 -7
- package/dist/_node-chunks/{chunk-LX7DNOAF.js → chunk-VTD5TIUC.js} +8 -8
- package/dist/_node-chunks/{chunk-3QRUKHNZ.js → chunk-VWYF3SCI.js} +7 -7
- package/dist/_node-chunks/{chunk-RQQ26RE6.js → chunk-YUFML7ZZ.js} +7 -7
- package/dist/_node-chunks/{chunk-5Y7ADYYI.js → chunk-ZDZQHU26.js} +6 -6
- package/dist/_node-chunks/{dist-64XMYCKL.js → dist-SD7YZH5A.js} +9 -9
- package/dist/_node-chunks/{globby-VVSMFUOS.js → globby-FODEQLAP.js} +9 -9
- package/dist/_node-chunks/{lib-3737YTFI.js → lib-G6JECM5H.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-MMTNLXDP.js → mdx-N42X6CFJ-MK2KTUH7.js} +8 -8
- package/dist/_node-chunks/{p-limit-JUZ6J4TE.js → p-limit-IJ5D4B4L.js} +10 -7
- package/dist/_node-chunks/{plugin-53K4FV2S.js → plugin-NXD266M2.js} +10 -10
- package/dist/_node-chunks/{plugin-J57WYAS6.js → plugin-SAVMZDUL.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-TSBFN4GA.js → webpack-inject-mocker-runtime-plugin-2PG2OIHX.js} +30 -24
- package/dist/_node-chunks/{webpack-mock-plugin-FFF3YTJU.js → webpack-mock-plugin-CQH72GQV.js} +9 -9
- package/dist/babel/index.d.ts +671 -335
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +77 -82
- package/dist/common/index.js +20 -20
- package/dist/components/index.js +394 -176
- package/dist/core-server/index.js +55 -44
- package/dist/core-server/presets/common-manager.js +238 -230
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +24 -23
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.js +3 -3
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +2 -2
- package/dist/manager/globals-runtime.js +4291 -4116
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.js +3 -3
- package/dist/node-logger/index.js +576 -531
- package/dist/preview/runtime.js +953 -891
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/preview-api/index.js +3 -3
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +609 -547
- package/dist/theming/index.d.ts +3363 -2597
- package/package.json +2 -2
- package/dist/_node-chunks/camelcase-IT57EA7A.js +0 -18
- package/dist/_node-chunks/chunk-W3ZTHPZN.js +0 -18
- package/dist/_node-chunks/chunk-X5UKDYKW.js +0 -61
package/dist/preview/runtime.js
CHANGED
|
@@ -5,11 +5,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
-
var __require = /* @__PURE__ */ ((
|
|
9
|
-
get: (a2,
|
|
10
|
-
}) :
|
|
8
|
+
var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
|
|
9
|
+
get: (a2, b2) => (typeof require !== "undefined" ? require : a2)[b2]
|
|
10
|
+
}) : x2)(function(x2) {
|
|
11
11
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
-
throw Error('Dynamic require of "' +
|
|
12
|
+
throw Error('Dynamic require of "' + x2 + '" is not supported');
|
|
13
13
|
});
|
|
14
14
|
var __commonJS = (cb, mod) => function __require2() {
|
|
15
15
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -43,14 +43,14 @@ var require_tiny_isequal = __commonJS({
|
|
|
43
43
|
return Object.keys(e3).concat(Object.getOwnPropertySymbols(e3));
|
|
44
44
|
} : Object.keys;
|
|
45
45
|
return function(n2, a2) {
|
|
46
|
-
return (/* @__PURE__ */ __name(function n3(a3, c2,
|
|
47
|
-
var i2, s3,
|
|
46
|
+
return (/* @__PURE__ */ __name(function n3(a3, c2, u3) {
|
|
47
|
+
var i2, s3, l2, o2 = e2.call(a3), f4 = e2.call(c2);
|
|
48
48
|
if (a3 === c2) return true;
|
|
49
49
|
if (null == a3 || null == c2) return false;
|
|
50
|
-
if (
|
|
51
|
-
if (
|
|
50
|
+
if (u3.indexOf(a3) > -1 && u3.indexOf(c2) > -1) return true;
|
|
51
|
+
if (u3.push(a3, c2), o2 != f4) return false;
|
|
52
52
|
if (i2 = t2(a3), s3 = t2(c2), i2.length != s3.length || i2.some(function(e3) {
|
|
53
|
-
return !n3(a3[e3], c2[e3],
|
|
53
|
+
return !n3(a3[e3], c2[e3], u3);
|
|
54
54
|
})) return false;
|
|
55
55
|
switch (o2.slice(8, -1)) {
|
|
56
56
|
case "Symbol":
|
|
@@ -67,8 +67,8 @@ var require_tiny_isequal = __commonJS({
|
|
|
67
67
|
case "Map":
|
|
68
68
|
i2 = a3.entries(), s3 = c2.entries();
|
|
69
69
|
do {
|
|
70
|
-
if (!n3((
|
|
71
|
-
} while (!
|
|
70
|
+
if (!n3((l2 = i2.next()).value, s3.next().value, u3)) return false;
|
|
71
|
+
} while (!l2.done);
|
|
72
72
|
return true;
|
|
73
73
|
case "ArrayBuffer":
|
|
74
74
|
a3 = new Uint8Array(a3), c2 = new Uint8Array(c2);
|
|
@@ -86,10 +86,10 @@ var require_tiny_isequal = __commonJS({
|
|
|
86
86
|
case "Arguments":
|
|
87
87
|
case "Array":
|
|
88
88
|
if (a3.length != c2.length) return false;
|
|
89
|
-
for (
|
|
89
|
+
for (l2 = 0; l2 < a3.length; l2++) if ((l2 in a3 || l2 in c2) && (l2 in a3 != l2 in c2 || !n3(a3[l2], c2[l2], u3))) return false;
|
|
90
90
|
return true;
|
|
91
91
|
case "Object":
|
|
92
|
-
return n3(r2(a3), r2(c2),
|
|
92
|
+
return n3(r2(a3), r2(c2), u3);
|
|
93
93
|
default:
|
|
94
94
|
return false;
|
|
95
95
|
}
|
|
@@ -279,20 +279,20 @@ var require_ariaPropsMap = __commonJS({
|
|
|
279
279
|
return n2;
|
|
280
280
|
}
|
|
281
281
|
__name(_arrayLikeToArray, "_arrayLikeToArray");
|
|
282
|
-
function _iterableToArrayLimit(r2,
|
|
282
|
+
function _iterableToArrayLimit(r2, l2) {
|
|
283
283
|
var t2 = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
284
284
|
if (null != t2) {
|
|
285
|
-
var e2, n2, i2,
|
|
285
|
+
var e2, n2, i2, u3, a2 = [], f4 = true, o2 = false;
|
|
286
286
|
try {
|
|
287
|
-
if (i2 = (t2 = t2.call(r2)).next, 0 ===
|
|
287
|
+
if (i2 = (t2 = t2.call(r2)).next, 0 === l2) {
|
|
288
288
|
if (Object(t2) !== t2) return;
|
|
289
|
-
|
|
290
|
-
} else for (; !(
|
|
289
|
+
f4 = false;
|
|
290
|
+
} else for (; !(f4 = (e2 = i2.call(t2)).done) && (a2.push(e2.value), a2.length !== l2); f4 = true) ;
|
|
291
291
|
} catch (r3) {
|
|
292
292
|
o2 = true, n2 = r3;
|
|
293
293
|
} finally {
|
|
294
294
|
try {
|
|
295
|
-
if (!
|
|
295
|
+
if (!f4 && null != t2.return && (u3 = t2.return(), Object(u3) !== u3)) return;
|
|
296
296
|
} finally {
|
|
297
297
|
if (o2) throw n2;
|
|
298
298
|
}
|
|
@@ -493,20 +493,20 @@ var require_domMap = __commonJS({
|
|
|
493
493
|
return n2;
|
|
494
494
|
}
|
|
495
495
|
__name(_arrayLikeToArray, "_arrayLikeToArray");
|
|
496
|
-
function _iterableToArrayLimit(r2,
|
|
496
|
+
function _iterableToArrayLimit(r2, l2) {
|
|
497
497
|
var t2 = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
498
498
|
if (null != t2) {
|
|
499
|
-
var e2, n2, i2,
|
|
499
|
+
var e2, n2, i2, u3, a2 = [], f4 = true, o2 = false;
|
|
500
500
|
try {
|
|
501
|
-
if (i2 = (t2 = t2.call(r2)).next, 0 ===
|
|
501
|
+
if (i2 = (t2 = t2.call(r2)).next, 0 === l2) {
|
|
502
502
|
if (Object(t2) !== t2) return;
|
|
503
|
-
|
|
504
|
-
} else for (; !(
|
|
503
|
+
f4 = false;
|
|
504
|
+
} else for (; !(f4 = (e2 = i2.call(t2)).done) && (a2.push(e2.value), a2.length !== l2); f4 = true) ;
|
|
505
505
|
} catch (r3) {
|
|
506
506
|
o2 = true, n2 = r3;
|
|
507
507
|
} finally {
|
|
508
508
|
try {
|
|
509
|
-
if (!
|
|
509
|
+
if (!f4 && null != t2.return && (u3 = t2.return(), Object(u3) !== u3)) return;
|
|
510
510
|
} finally {
|
|
511
511
|
if (o2) throw n2;
|
|
512
512
|
}
|
|
@@ -6480,19 +6480,19 @@ var require_rolesMap = __commonJS({
|
|
|
6480
6480
|
}
|
|
6481
6481
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6482
6482
|
}
|
|
6483
|
-
var o2, a2 = true,
|
|
6483
|
+
var o2, a2 = true, u3 = false;
|
|
6484
6484
|
return { s: /* @__PURE__ */ __name(function s3() {
|
|
6485
6485
|
t2 = t2.call(r2);
|
|
6486
6486
|
}, "s"), n: /* @__PURE__ */ __name(function n2() {
|
|
6487
6487
|
var r3 = t2.next();
|
|
6488
6488
|
return a2 = r3.done, r3;
|
|
6489
6489
|
}, "n"), e: /* @__PURE__ */ __name(function e3(r3) {
|
|
6490
|
-
|
|
6491
|
-
}, "e"), f: /* @__PURE__ */ __name(function
|
|
6490
|
+
u3 = true, o2 = r3;
|
|
6491
|
+
}, "e"), f: /* @__PURE__ */ __name(function f4() {
|
|
6492
6492
|
try {
|
|
6493
6493
|
a2 || null == t2.return || t2.return();
|
|
6494
6494
|
} finally {
|
|
6495
|
-
if (
|
|
6495
|
+
if (u3) throw o2;
|
|
6496
6496
|
}
|
|
6497
6497
|
}, "f") };
|
|
6498
6498
|
}
|
|
@@ -6519,20 +6519,20 @@ var require_rolesMap = __commonJS({
|
|
|
6519
6519
|
return n2;
|
|
6520
6520
|
}
|
|
6521
6521
|
__name(_arrayLikeToArray, "_arrayLikeToArray");
|
|
6522
|
-
function _iterableToArrayLimit(r2,
|
|
6522
|
+
function _iterableToArrayLimit(r2, l2) {
|
|
6523
6523
|
var t2 = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
6524
6524
|
if (null != t2) {
|
|
6525
|
-
var e2, n2, i2,
|
|
6525
|
+
var e2, n2, i2, u3, a2 = [], f4 = true, o2 = false;
|
|
6526
6526
|
try {
|
|
6527
|
-
if (i2 = (t2 = t2.call(r2)).next, 0 ===
|
|
6527
|
+
if (i2 = (t2 = t2.call(r2)).next, 0 === l2) {
|
|
6528
6528
|
if (Object(t2) !== t2) return;
|
|
6529
|
-
|
|
6530
|
-
} else for (; !(
|
|
6529
|
+
f4 = false;
|
|
6530
|
+
} else for (; !(f4 = (e2 = i2.call(t2)).done) && (a2.push(e2.value), a2.length !== l2); f4 = true) ;
|
|
6531
6531
|
} catch (r3) {
|
|
6532
6532
|
o2 = true, n2 = r3;
|
|
6533
6533
|
} finally {
|
|
6534
6534
|
try {
|
|
6535
|
-
if (!
|
|
6535
|
+
if (!f4 && null != t2.return && (u3 = t2.return(), Object(u3) !== u3)) return;
|
|
6536
6536
|
} finally {
|
|
6537
6537
|
if (o2) throw n2;
|
|
6538
6538
|
}
|
|
@@ -6668,20 +6668,20 @@ var require_elementRoleMap = __commonJS({
|
|
|
6668
6668
|
return n2;
|
|
6669
6669
|
}
|
|
6670
6670
|
__name(_arrayLikeToArray, "_arrayLikeToArray");
|
|
6671
|
-
function _iterableToArrayLimit(r2,
|
|
6671
|
+
function _iterableToArrayLimit(r2, l2) {
|
|
6672
6672
|
var t2 = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
6673
6673
|
if (null != t2) {
|
|
6674
|
-
var e2, n2, i3,
|
|
6674
|
+
var e2, n2, i3, u3, a2 = [], f4 = true, o2 = false;
|
|
6675
6675
|
try {
|
|
6676
|
-
if (i3 = (t2 = t2.call(r2)).next, 0 ===
|
|
6676
|
+
if (i3 = (t2 = t2.call(r2)).next, 0 === l2) {
|
|
6677
6677
|
if (Object(t2) !== t2) return;
|
|
6678
|
-
|
|
6679
|
-
} else for (; !(
|
|
6678
|
+
f4 = false;
|
|
6679
|
+
} else for (; !(f4 = (e2 = i3.call(t2)).done) && (a2.push(e2.value), a2.length !== l2); f4 = true) ;
|
|
6680
6680
|
} catch (r3) {
|
|
6681
6681
|
o2 = true, n2 = r3;
|
|
6682
6682
|
} finally {
|
|
6683
6683
|
try {
|
|
6684
|
-
if (!
|
|
6684
|
+
if (!f4 && null != t2.return && (u3 = t2.return(), Object(u3) !== u3)) return;
|
|
6685
6685
|
} finally {
|
|
6686
6686
|
if (o2) throw n2;
|
|
6687
6687
|
}
|
|
@@ -6702,7 +6702,7 @@ var require_elementRoleMap = __commonJS({
|
|
|
6702
6702
|
if (role) {
|
|
6703
6703
|
concepts = [].concat(role.baseConcepts, role.relatedConcepts);
|
|
6704
6704
|
_loop = /* @__PURE__ */ __name(function _loop2() {
|
|
6705
|
-
var relation = concepts[
|
|
6705
|
+
var relation = concepts[k2];
|
|
6706
6706
|
if (relation.module === "HTML") {
|
|
6707
6707
|
var concept = relation.concept;
|
|
6708
6708
|
if (concept) {
|
|
@@ -6731,7 +6731,7 @@ var require_elementRoleMap = __commonJS({
|
|
|
6731
6731
|
}
|
|
6732
6732
|
}
|
|
6733
6733
|
}, "_loop");
|
|
6734
|
-
for (
|
|
6734
|
+
for (k2 = 0; k2 < concepts.length; k2++) {
|
|
6735
6735
|
_loop();
|
|
6736
6736
|
}
|
|
6737
6737
|
}
|
|
@@ -6740,7 +6740,7 @@ var require_elementRoleMap = __commonJS({
|
|
|
6740
6740
|
var role;
|
|
6741
6741
|
var concepts;
|
|
6742
6742
|
var _loop;
|
|
6743
|
-
var
|
|
6743
|
+
var k2;
|
|
6744
6744
|
var i2;
|
|
6745
6745
|
var elementRoleMap = {
|
|
6746
6746
|
entries: /* @__PURE__ */ __name(function entries() {
|
|
@@ -6775,23 +6775,23 @@ var require_elementRoleMap = __commonJS({
|
|
|
6775
6775
|
});
|
|
6776
6776
|
}, "values")
|
|
6777
6777
|
};
|
|
6778
|
-
function ariaRoleRelationConceptEquals(a2,
|
|
6779
|
-
return a2.name ===
|
|
6778
|
+
function ariaRoleRelationConceptEquals(a2, b2) {
|
|
6779
|
+
return a2.name === b2.name && ariaRoleRelationConstraintsEquals(a2.constraints, b2.constraints) && ariaRoleRelationConceptAttributeEquals(a2.attributes, b2.attributes);
|
|
6780
6780
|
}
|
|
6781
6781
|
__name(ariaRoleRelationConceptEquals, "ariaRoleRelationConceptEquals");
|
|
6782
|
-
function ariaRoleRelationConstraintsEquals(a2,
|
|
6783
|
-
if (a2 === void 0 &&
|
|
6782
|
+
function ariaRoleRelationConstraintsEquals(a2, b2) {
|
|
6783
|
+
if (a2 === void 0 && b2 !== void 0) {
|
|
6784
6784
|
return false;
|
|
6785
6785
|
}
|
|
6786
|
-
if (a2 !== void 0 &&
|
|
6786
|
+
if (a2 !== void 0 && b2 === void 0) {
|
|
6787
6787
|
return false;
|
|
6788
6788
|
}
|
|
6789
|
-
if (a2 !== void 0 &&
|
|
6790
|
-
if (a2.length !==
|
|
6789
|
+
if (a2 !== void 0 && b2 !== void 0) {
|
|
6790
|
+
if (a2.length !== b2.length) {
|
|
6791
6791
|
return false;
|
|
6792
6792
|
}
|
|
6793
6793
|
for (var _i3 = 0; _i3 < a2.length; _i3++) {
|
|
6794
|
-
if (a2[_i3] !==
|
|
6794
|
+
if (a2[_i3] !== b2[_i3]) {
|
|
6795
6795
|
return false;
|
|
6796
6796
|
}
|
|
6797
6797
|
}
|
|
@@ -6799,33 +6799,33 @@ var require_elementRoleMap = __commonJS({
|
|
|
6799
6799
|
return true;
|
|
6800
6800
|
}
|
|
6801
6801
|
__name(ariaRoleRelationConstraintsEquals, "ariaRoleRelationConstraintsEquals");
|
|
6802
|
-
function ariaRoleRelationConceptAttributeEquals(a2,
|
|
6803
|
-
if (a2 === void 0 &&
|
|
6802
|
+
function ariaRoleRelationConceptAttributeEquals(a2, b2) {
|
|
6803
|
+
if (a2 === void 0 && b2 !== void 0) {
|
|
6804
6804
|
return false;
|
|
6805
6805
|
}
|
|
6806
|
-
if (a2 !== void 0 &&
|
|
6806
|
+
if (a2 !== void 0 && b2 === void 0) {
|
|
6807
6807
|
return false;
|
|
6808
6808
|
}
|
|
6809
|
-
if (a2 !== void 0 &&
|
|
6810
|
-
if (a2.length !==
|
|
6809
|
+
if (a2 !== void 0 && b2 !== void 0) {
|
|
6810
|
+
if (a2.length !== b2.length) {
|
|
6811
6811
|
return false;
|
|
6812
6812
|
}
|
|
6813
6813
|
for (var _i4 = 0; _i4 < a2.length; _i4++) {
|
|
6814
|
-
if (a2[_i4].name !==
|
|
6814
|
+
if (a2[_i4].name !== b2[_i4].name || a2[_i4].value !== b2[_i4].value) {
|
|
6815
6815
|
return false;
|
|
6816
6816
|
}
|
|
6817
|
-
if (a2[_i4].constraints === void 0 &&
|
|
6817
|
+
if (a2[_i4].constraints === void 0 && b2[_i4].constraints !== void 0) {
|
|
6818
6818
|
return false;
|
|
6819
6819
|
}
|
|
6820
|
-
if (a2[_i4].constraints !== void 0 &&
|
|
6820
|
+
if (a2[_i4].constraints !== void 0 && b2[_i4].constraints === void 0) {
|
|
6821
6821
|
return false;
|
|
6822
6822
|
}
|
|
6823
|
-
if (a2[_i4].constraints !== void 0 &&
|
|
6824
|
-
if (a2[_i4].constraints.length !==
|
|
6823
|
+
if (a2[_i4].constraints !== void 0 && b2[_i4].constraints !== void 0) {
|
|
6824
|
+
if (a2[_i4].constraints.length !== b2[_i4].constraints.length) {
|
|
6825
6825
|
return false;
|
|
6826
6826
|
}
|
|
6827
|
-
for (var
|
|
6828
|
-
if (a2[_i4].constraints[
|
|
6827
|
+
for (var j2 = 0; j2 < a2[_i4].constraints.length; j2++) {
|
|
6828
|
+
if (a2[_i4].constraints[j2] !== b2[_i4].constraints[j2]) {
|
|
6829
6829
|
return false;
|
|
6830
6830
|
}
|
|
6831
6831
|
}
|
|
@@ -6875,20 +6875,20 @@ var require_roleElementMap = __commonJS({
|
|
|
6875
6875
|
return n2;
|
|
6876
6876
|
}
|
|
6877
6877
|
__name(_arrayLikeToArray, "_arrayLikeToArray");
|
|
6878
|
-
function _iterableToArrayLimit(r2,
|
|
6878
|
+
function _iterableToArrayLimit(r2, l2) {
|
|
6879
6879
|
var t2 = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
6880
6880
|
if (null != t2) {
|
|
6881
|
-
var e2, n2, i3,
|
|
6881
|
+
var e2, n2, i3, u3, a2 = [], f4 = true, o2 = false;
|
|
6882
6882
|
try {
|
|
6883
|
-
if (i3 = (t2 = t2.call(r2)).next, 0 ===
|
|
6883
|
+
if (i3 = (t2 = t2.call(r2)).next, 0 === l2) {
|
|
6884
6884
|
if (Object(t2) !== t2) return;
|
|
6885
|
-
|
|
6886
|
-
} else for (; !(
|
|
6885
|
+
f4 = false;
|
|
6886
|
+
} else for (; !(f4 = (e2 = i3.call(t2)).done) && (a2.push(e2.value), a2.length !== l2); f4 = true) ;
|
|
6887
6887
|
} catch (r3) {
|
|
6888
6888
|
o2 = true, n2 = r3;
|
|
6889
6889
|
} finally {
|
|
6890
6890
|
try {
|
|
6891
|
-
if (!
|
|
6891
|
+
if (!f4 && null != t2.return && (u3 = t2.return(), Object(u3) !== u3)) return;
|
|
6892
6892
|
} finally {
|
|
6893
6893
|
if (o2) throw n2;
|
|
6894
6894
|
}
|
|
@@ -6909,8 +6909,8 @@ var require_roleElementMap = __commonJS({
|
|
|
6909
6909
|
relationConcepts = [];
|
|
6910
6910
|
if (role) {
|
|
6911
6911
|
concepts = [].concat(role.baseConcepts, role.relatedConcepts);
|
|
6912
|
-
for (
|
|
6913
|
-
relation = concepts[
|
|
6912
|
+
for (k2 = 0; k2 < concepts.length; k2++) {
|
|
6913
|
+
relation = concepts[k2];
|
|
6914
6914
|
if (relation.module === "HTML") {
|
|
6915
6915
|
concept = relation.concept;
|
|
6916
6916
|
if (concept != null) {
|
|
@@ -6929,7 +6929,7 @@ var require_roleElementMap = __commonJS({
|
|
|
6929
6929
|
var concepts;
|
|
6930
6930
|
var relation;
|
|
6931
6931
|
var concept;
|
|
6932
|
-
var
|
|
6932
|
+
var k2;
|
|
6933
6933
|
var i2;
|
|
6934
6934
|
var roleElementMap = {
|
|
6935
6935
|
entries: /* @__PURE__ */ __name(function entries() {
|
|
@@ -6996,9 +6996,9 @@ var require_lib = __commonJS({
|
|
|
6996
6996
|
// ../node_modules/picocolors/picocolors.browser.js
|
|
6997
6997
|
var require_picocolors_browser = __commonJS({
|
|
6998
6998
|
"../node_modules/picocolors/picocolors.browser.js"(exports, module2) {
|
|
6999
|
-
var
|
|
6999
|
+
var x2 = String;
|
|
7000
7000
|
var create = /* @__PURE__ */ __name(function() {
|
|
7001
|
-
return { isColorSupported: false, reset:
|
|
7001
|
+
return { isColorSupported: false, reset: x2, bold: x2, dim: x2, italic: x2, underline: x2, inverse: x2, hidden: x2, strikethrough: x2, black: x2, red: x2, green: x2, yellow: x2, blue: x2, magenta: x2, cyan: x2, white: x2, gray: x2, bgBlack: x2, bgRed: x2, bgGreen: x2, bgYellow: x2, bgBlue: x2, bgMagenta: x2, bgCyan: x2, bgWhite: x2, blackBright: x2, redBright: x2, greenBright: x2, yellowBright: x2, blueBright: x2, magentaBright: x2, cyanBright: x2, whiteBright: x2, bgBlackBright: x2, bgRedBright: x2, bgGreenBright: x2, bgYellowBright: x2, bgBlueBright: x2, bgMagentaBright: x2, bgCyanBright: x2, bgWhiteBright: x2 };
|
|
7002
7002
|
}, "create");
|
|
7003
7003
|
module2.exports = create();
|
|
7004
7004
|
module2.exports.createColors = create;
|
|
@@ -7867,60 +7867,60 @@ var require_Immutable = __commonJS({
|
|
|
7867
7867
|
var require_react_is_production_min = __commonJS({
|
|
7868
7868
|
"../node_modules/pretty-format/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
7869
7869
|
"use strict";
|
|
7870
|
-
var
|
|
7870
|
+
var b2 = 60103;
|
|
7871
7871
|
var c2 = 60106;
|
|
7872
7872
|
var d = 60107;
|
|
7873
7873
|
var e2 = 60108;
|
|
7874
|
-
var
|
|
7874
|
+
var f4 = 60114;
|
|
7875
7875
|
var g2 = 60109;
|
|
7876
|
-
var
|
|
7877
|
-
var
|
|
7878
|
-
var
|
|
7876
|
+
var h3 = 60110;
|
|
7877
|
+
var k2 = 60112;
|
|
7878
|
+
var l2 = 60113;
|
|
7879
7879
|
var m3 = 60120;
|
|
7880
7880
|
var n2 = 60115;
|
|
7881
7881
|
var p2 = 60116;
|
|
7882
7882
|
var q = 60121;
|
|
7883
7883
|
var r2 = 60122;
|
|
7884
|
-
var
|
|
7885
|
-
var
|
|
7886
|
-
var
|
|
7884
|
+
var u3 = 60117;
|
|
7885
|
+
var v2 = 60129;
|
|
7886
|
+
var w2 = 60131;
|
|
7887
7887
|
if ("function" === typeof Symbol && Symbol.for) {
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
c2 =
|
|
7891
|
-
d =
|
|
7892
|
-
e2 =
|
|
7893
|
-
|
|
7894
|
-
g2 =
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
m3 =
|
|
7899
|
-
n2 =
|
|
7900
|
-
p2 =
|
|
7901
|
-
q =
|
|
7902
|
-
r2 =
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
}
|
|
7907
|
-
var
|
|
7908
|
-
function
|
|
7888
|
+
x2 = Symbol.for;
|
|
7889
|
+
b2 = x2("react.element");
|
|
7890
|
+
c2 = x2("react.portal");
|
|
7891
|
+
d = x2("react.fragment");
|
|
7892
|
+
e2 = x2("react.strict_mode");
|
|
7893
|
+
f4 = x2("react.profiler");
|
|
7894
|
+
g2 = x2("react.provider");
|
|
7895
|
+
h3 = x2("react.context");
|
|
7896
|
+
k2 = x2("react.forward_ref");
|
|
7897
|
+
l2 = x2("react.suspense");
|
|
7898
|
+
m3 = x2("react.suspense_list");
|
|
7899
|
+
n2 = x2("react.memo");
|
|
7900
|
+
p2 = x2("react.lazy");
|
|
7901
|
+
q = x2("react.block");
|
|
7902
|
+
r2 = x2("react.server.block");
|
|
7903
|
+
u3 = x2("react.fundamental");
|
|
7904
|
+
v2 = x2("react.debug_trace_mode");
|
|
7905
|
+
w2 = x2("react.legacy_hidden");
|
|
7906
|
+
}
|
|
7907
|
+
var x2;
|
|
7908
|
+
function y2(a2) {
|
|
7909
7909
|
if ("object" === typeof a2 && null !== a2) {
|
|
7910
7910
|
var t2 = a2.$$typeof;
|
|
7911
7911
|
switch (t2) {
|
|
7912
|
-
case
|
|
7912
|
+
case b2:
|
|
7913
7913
|
switch (a2 = a2.type, a2) {
|
|
7914
7914
|
case d:
|
|
7915
|
-
case
|
|
7915
|
+
case f4:
|
|
7916
7916
|
case e2:
|
|
7917
|
-
case
|
|
7917
|
+
case l2:
|
|
7918
7918
|
case m3:
|
|
7919
7919
|
return a2;
|
|
7920
7920
|
default:
|
|
7921
7921
|
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
7922
|
-
case
|
|
7923
|
-
case
|
|
7922
|
+
case h3:
|
|
7923
|
+
case k2:
|
|
7924
7924
|
case p2:
|
|
7925
7925
|
case n2:
|
|
7926
7926
|
case g2:
|
|
@@ -7934,24 +7934,24 @@ var require_react_is_production_min = __commonJS({
|
|
|
7934
7934
|
}
|
|
7935
7935
|
}
|
|
7936
7936
|
}
|
|
7937
|
-
__name(
|
|
7937
|
+
__name(y2, "y");
|
|
7938
7938
|
var z = g2;
|
|
7939
|
-
var A =
|
|
7940
|
-
var B2 =
|
|
7939
|
+
var A = b2;
|
|
7940
|
+
var B2 = k2;
|
|
7941
7941
|
var C2 = d;
|
|
7942
|
-
var
|
|
7943
|
-
var
|
|
7942
|
+
var D2 = p2;
|
|
7943
|
+
var E2 = n2;
|
|
7944
7944
|
var F = c2;
|
|
7945
|
-
var G =
|
|
7945
|
+
var G = f4;
|
|
7946
7946
|
var H = e2;
|
|
7947
|
-
var I =
|
|
7948
|
-
exports.ContextConsumer =
|
|
7947
|
+
var I = l2;
|
|
7948
|
+
exports.ContextConsumer = h3;
|
|
7949
7949
|
exports.ContextProvider = z;
|
|
7950
7950
|
exports.Element = A;
|
|
7951
7951
|
exports.ForwardRef = B2;
|
|
7952
7952
|
exports.Fragment = C2;
|
|
7953
|
-
exports.Lazy =
|
|
7954
|
-
exports.Memo =
|
|
7953
|
+
exports.Lazy = D2;
|
|
7954
|
+
exports.Memo = E2;
|
|
7955
7955
|
exports.Portal = F;
|
|
7956
7956
|
exports.Profiler = G;
|
|
7957
7957
|
exports.StrictMode = H;
|
|
@@ -7963,42 +7963,42 @@ var require_react_is_production_min = __commonJS({
|
|
|
7963
7963
|
return false;
|
|
7964
7964
|
};
|
|
7965
7965
|
exports.isContextConsumer = function(a2) {
|
|
7966
|
-
return
|
|
7966
|
+
return y2(a2) === h3;
|
|
7967
7967
|
};
|
|
7968
7968
|
exports.isContextProvider = function(a2) {
|
|
7969
|
-
return
|
|
7969
|
+
return y2(a2) === g2;
|
|
7970
7970
|
};
|
|
7971
7971
|
exports.isElement = function(a2) {
|
|
7972
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof ===
|
|
7972
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === b2;
|
|
7973
7973
|
};
|
|
7974
7974
|
exports.isForwardRef = function(a2) {
|
|
7975
|
-
return
|
|
7975
|
+
return y2(a2) === k2;
|
|
7976
7976
|
};
|
|
7977
7977
|
exports.isFragment = function(a2) {
|
|
7978
|
-
return
|
|
7978
|
+
return y2(a2) === d;
|
|
7979
7979
|
};
|
|
7980
7980
|
exports.isLazy = function(a2) {
|
|
7981
|
-
return
|
|
7981
|
+
return y2(a2) === p2;
|
|
7982
7982
|
};
|
|
7983
7983
|
exports.isMemo = function(a2) {
|
|
7984
|
-
return
|
|
7984
|
+
return y2(a2) === n2;
|
|
7985
7985
|
};
|
|
7986
7986
|
exports.isPortal = function(a2) {
|
|
7987
|
-
return
|
|
7987
|
+
return y2(a2) === c2;
|
|
7988
7988
|
};
|
|
7989
7989
|
exports.isProfiler = function(a2) {
|
|
7990
|
-
return
|
|
7990
|
+
return y2(a2) === f4;
|
|
7991
7991
|
};
|
|
7992
7992
|
exports.isStrictMode = function(a2) {
|
|
7993
|
-
return
|
|
7993
|
+
return y2(a2) === e2;
|
|
7994
7994
|
};
|
|
7995
7995
|
exports.isSuspense = function(a2) {
|
|
7996
|
-
return
|
|
7996
|
+
return y2(a2) === l2;
|
|
7997
7997
|
};
|
|
7998
7998
|
exports.isValidElementType = function(a2) {
|
|
7999
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === d || a2 ===
|
|
7999
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === d || a2 === f4 || a2 === v2 || a2 === e2 || a2 === l2 || a2 === m3 || a2 === w2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === p2 || a2.$$typeof === n2 || a2.$$typeof === g2 || a2.$$typeof === h3 || a2.$$typeof === k2 || a2.$$typeof === u3 || a2.$$typeof === q || a2[0] === r2) ? true : false;
|
|
8000
8000
|
};
|
|
8001
|
-
exports.typeOf =
|
|
8001
|
+
exports.typeOf = y2;
|
|
8002
8002
|
}
|
|
8003
8003
|
});
|
|
8004
8004
|
|
|
@@ -8604,7 +8604,7 @@ var require_build = __commonJS({
|
|
|
8604
8604
|
var require_lz_string = __commonJS({
|
|
8605
8605
|
"../node_modules/lz-string/libs/lz-string.js"(exports, module2) {
|
|
8606
8606
|
var LZString = function() {
|
|
8607
|
-
var
|
|
8607
|
+
var f4 = String.fromCharCode;
|
|
8608
8608
|
var keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
8609
8609
|
var keyStrUriSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$";
|
|
8610
8610
|
var baseReverseDic = {};
|
|
@@ -8648,7 +8648,7 @@ var require_lz_string = __commonJS({
|
|
|
8648
8648
|
compressToUTF16: /* @__PURE__ */ __name(function(input2) {
|
|
8649
8649
|
if (input2 == null) return "";
|
|
8650
8650
|
return LZString2._compress(input2, 15, function(a2) {
|
|
8651
|
-
return
|
|
8651
|
+
return f4(a2 + 32);
|
|
8652
8652
|
}) + " ";
|
|
8653
8653
|
}, "compressToUTF16"),
|
|
8654
8654
|
decompressFromUTF16: /* @__PURE__ */ __name(function(compressed) {
|
|
@@ -8680,7 +8680,7 @@ var require_lz_string = __commonJS({
|
|
|
8680
8680
|
}
|
|
8681
8681
|
var result = [];
|
|
8682
8682
|
buf.forEach(function(c2) {
|
|
8683
|
-
result.push(
|
|
8683
|
+
result.push(f4(c2));
|
|
8684
8684
|
});
|
|
8685
8685
|
return LZString2.decompress(result.join(""));
|
|
8686
8686
|
}
|
|
@@ -8703,7 +8703,7 @@ var require_lz_string = __commonJS({
|
|
|
8703
8703
|
}, "decompressFromEncodedURIComponent"),
|
|
8704
8704
|
compress: /* @__PURE__ */ __name(function(uncompressed) {
|
|
8705
8705
|
return LZString2._compress(uncompressed, 16, function(a2) {
|
|
8706
|
-
return
|
|
8706
|
+
return f4(a2);
|
|
8707
8707
|
});
|
|
8708
8708
|
}, "compress"),
|
|
8709
8709
|
_compress: /* @__PURE__ */ __name(function(uncompressed, bitsPerChar, getCharFromInt) {
|
|
@@ -8904,7 +8904,7 @@ var require_lz_string = __commonJS({
|
|
|
8904
8904
|
});
|
|
8905
8905
|
}, "decompress"),
|
|
8906
8906
|
_decompress: /* @__PURE__ */ __name(function(length, resetValue, getNextValue) {
|
|
8907
|
-
var dictionary = [], next, enlargeIn = 4, dictSize = 4, numBits = 3, entry = "", result = [], i2,
|
|
8907
|
+
var dictionary = [], next, enlargeIn = 4, dictSize = 4, numBits = 3, entry = "", result = [], i2, w2, bits, resb, maxpower, power, c2, data = { val: getNextValue(0), position: resetValue, index: 1 };
|
|
8908
8908
|
for (i2 = 0; i2 < 3; i2 += 1) {
|
|
8909
8909
|
dictionary[i2] = i2;
|
|
8910
8910
|
}
|
|
@@ -8936,7 +8936,7 @@ var require_lz_string = __commonJS({
|
|
|
8936
8936
|
bits |= (resb > 0 ? 1 : 0) * power;
|
|
8937
8937
|
power <<= 1;
|
|
8938
8938
|
}
|
|
8939
|
-
c2 =
|
|
8939
|
+
c2 = f4(bits);
|
|
8940
8940
|
break;
|
|
8941
8941
|
case 1:
|
|
8942
8942
|
bits = 0;
|
|
@@ -8952,13 +8952,13 @@ var require_lz_string = __commonJS({
|
|
|
8952
8952
|
bits |= (resb > 0 ? 1 : 0) * power;
|
|
8953
8953
|
power <<= 1;
|
|
8954
8954
|
}
|
|
8955
|
-
c2 =
|
|
8955
|
+
c2 = f4(bits);
|
|
8956
8956
|
break;
|
|
8957
8957
|
case 2:
|
|
8958
8958
|
return "";
|
|
8959
8959
|
}
|
|
8960
8960
|
dictionary[3] = c2;
|
|
8961
|
-
|
|
8961
|
+
w2 = c2;
|
|
8962
8962
|
result.push(c2);
|
|
8963
8963
|
while (true) {
|
|
8964
8964
|
if (data.index > length) {
|
|
@@ -8992,7 +8992,7 @@ var require_lz_string = __commonJS({
|
|
|
8992
8992
|
bits |= (resb > 0 ? 1 : 0) * power;
|
|
8993
8993
|
power <<= 1;
|
|
8994
8994
|
}
|
|
8995
|
-
dictionary[dictSize++] =
|
|
8995
|
+
dictionary[dictSize++] = f4(bits);
|
|
8996
8996
|
c2 = dictSize - 1;
|
|
8997
8997
|
enlargeIn--;
|
|
8998
8998
|
break;
|
|
@@ -9010,7 +9010,7 @@ var require_lz_string = __commonJS({
|
|
|
9010
9010
|
bits |= (resb > 0 ? 1 : 0) * power;
|
|
9011
9011
|
power <<= 1;
|
|
9012
9012
|
}
|
|
9013
|
-
dictionary[dictSize++] =
|
|
9013
|
+
dictionary[dictSize++] = f4(bits);
|
|
9014
9014
|
c2 = dictSize - 1;
|
|
9015
9015
|
enlargeIn--;
|
|
9016
9016
|
break;
|
|
@@ -9025,15 +9025,15 @@ var require_lz_string = __commonJS({
|
|
|
9025
9025
|
entry = dictionary[c2];
|
|
9026
9026
|
} else {
|
|
9027
9027
|
if (c2 === dictSize) {
|
|
9028
|
-
entry =
|
|
9028
|
+
entry = w2 + w2.charAt(0);
|
|
9029
9029
|
} else {
|
|
9030
9030
|
return null;
|
|
9031
9031
|
}
|
|
9032
9032
|
}
|
|
9033
9033
|
result.push(entry);
|
|
9034
|
-
dictionary[dictSize++] =
|
|
9034
|
+
dictionary[dictSize++] = w2 + entry.charAt(0);
|
|
9035
9035
|
enlargeIn--;
|
|
9036
|
-
|
|
9036
|
+
w2 = entry;
|
|
9037
9037
|
if (enlargeIn == 0) {
|
|
9038
9038
|
enlargeIn = Math.pow(2, numBits);
|
|
9039
9039
|
numBits++;
|
|
@@ -9060,11 +9060,11 @@ var require_lz_string = __commonJS({
|
|
|
9060
9060
|
// ../node_modules/memoizerific/memoizerific.js
|
|
9061
9061
|
var require_memoizerific = __commonJS({
|
|
9062
9062
|
"../node_modules/memoizerific/memoizerific.js"(exports, module2) {
|
|
9063
|
-
(function(
|
|
9063
|
+
(function(f4) {
|
|
9064
9064
|
if (typeof exports === "object" && typeof module2 !== "undefined") {
|
|
9065
|
-
module2.exports =
|
|
9065
|
+
module2.exports = f4();
|
|
9066
9066
|
} else if (typeof define === "function" && define.amd) {
|
|
9067
|
-
define([],
|
|
9067
|
+
define([], f4);
|
|
9068
9068
|
} else {
|
|
9069
9069
|
var g2;
|
|
9070
9070
|
if (typeof window !== "undefined") {
|
|
@@ -9076,25 +9076,25 @@ var require_memoizerific = __commonJS({
|
|
|
9076
9076
|
} else {
|
|
9077
9077
|
g2 = this;
|
|
9078
9078
|
}
|
|
9079
|
-
g2.memoizerific =
|
|
9079
|
+
g2.memoizerific = f4();
|
|
9080
9080
|
}
|
|
9081
9081
|
})(function() {
|
|
9082
|
-
var
|
|
9082
|
+
var define2, module3, exports2;
|
|
9083
9083
|
return (/* @__PURE__ */ __name(function e2(t2, n2, r2) {
|
|
9084
|
-
function s3(o3,
|
|
9084
|
+
function s3(o3, u3) {
|
|
9085
9085
|
if (!n2[o3]) {
|
|
9086
9086
|
if (!t2[o3]) {
|
|
9087
9087
|
var a2 = typeof __require == "function" && __require;
|
|
9088
|
-
if (!
|
|
9088
|
+
if (!u3 && a2) return a2(o3, true);
|
|
9089
9089
|
if (i2) return i2(o3, true);
|
|
9090
|
-
var
|
|
9091
|
-
throw
|
|
9090
|
+
var f4 = new Error("Cannot find module '" + o3 + "'");
|
|
9091
|
+
throw f4.code = "MODULE_NOT_FOUND", f4;
|
|
9092
9092
|
}
|
|
9093
|
-
var
|
|
9094
|
-
t2[o3][0].call(
|
|
9093
|
+
var l2 = n2[o3] = { exports: {} };
|
|
9094
|
+
t2[o3][0].call(l2.exports, function(e3) {
|
|
9095
9095
|
var n3 = t2[o3][1][e3];
|
|
9096
9096
|
return s3(n3 ? n3 : e3);
|
|
9097
|
-
},
|
|
9097
|
+
}, l2, l2.exports, e2, t2, n2, r2);
|
|
9098
9098
|
}
|
|
9099
9099
|
return n2[o3].exports;
|
|
9100
9100
|
}
|
|
@@ -9510,7 +9510,7 @@ var require_shared = __commonJS({
|
|
|
9510
9510
|
return val instanceof Date;
|
|
9511
9511
|
}, "defaultShouldSerializeObject");
|
|
9512
9512
|
exports.defaultShouldSerializeObject = defaultShouldSerializeObject;
|
|
9513
|
-
var identityFunc = /* @__PURE__ */ __name((
|
|
9513
|
+
var identityFunc = /* @__PURE__ */ __name((v2) => v2, "identityFunc");
|
|
9514
9514
|
exports.defaultOptions = {
|
|
9515
9515
|
nesting: true,
|
|
9516
9516
|
nestingSyntax: "dot",
|
|
@@ -10294,18 +10294,18 @@ var require_stringify = __commonJS({
|
|
|
10294
10294
|
var require_main = __commonJS({
|
|
10295
10295
|
"../node_modules/picoquery/lib/main.js"(exports) {
|
|
10296
10296
|
"use strict";
|
|
10297
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3,
|
|
10298
|
-
if (
|
|
10299
|
-
var desc = Object.getOwnPropertyDescriptor(m3,
|
|
10297
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m3, k2, k22) {
|
|
10298
|
+
if (k22 === void 0) k22 = k2;
|
|
10299
|
+
var desc = Object.getOwnPropertyDescriptor(m3, k2);
|
|
10300
10300
|
if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) {
|
|
10301
10301
|
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
10302
|
-
return m3[
|
|
10302
|
+
return m3[k2];
|
|
10303
10303
|
}, "get") };
|
|
10304
10304
|
}
|
|
10305
|
-
Object.defineProperty(o2,
|
|
10306
|
-
} : function(o2, m3,
|
|
10307
|
-
if (
|
|
10308
|
-
o2[
|
|
10305
|
+
Object.defineProperty(o2, k22, desc);
|
|
10306
|
+
} : function(o2, m3, k2, k22) {
|
|
10307
|
+
if (k22 === void 0) k22 = k2;
|
|
10308
|
+
o2[k22] = m3[k2];
|
|
10309
10309
|
});
|
|
10310
10310
|
var __exportStar = exports && exports.__exportStar || function(m3, exports2) {
|
|
10311
10311
|
for (var p2 in m3) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2)) __createBinding(exports2, m3, p2);
|
|
@@ -10411,16 +10411,16 @@ var require_decode2 = __commonJS({
|
|
|
10411
10411
|
};
|
|
10412
10412
|
}
|
|
10413
10413
|
__name(getStrictDecoder, "getStrictDecoder");
|
|
10414
|
-
var sorter = /* @__PURE__ */ __name(function(a2,
|
|
10415
|
-
return a2 <
|
|
10414
|
+
var sorter = /* @__PURE__ */ __name(function(a2, b2) {
|
|
10415
|
+
return a2 < b2 ? 1 : -1;
|
|
10416
10416
|
}, "sorter");
|
|
10417
10417
|
exports.decodeHTML = function() {
|
|
10418
10418
|
var legacy = Object.keys(legacy_json_1.default).sort(sorter);
|
|
10419
10419
|
var keys2 = Object.keys(entities_json_1.default).sort(sorter);
|
|
10420
|
-
for (var i2 = 0,
|
|
10421
|
-
if (legacy[
|
|
10420
|
+
for (var i2 = 0, j2 = 0; i2 < keys2.length; i2++) {
|
|
10421
|
+
if (legacy[j2] === keys2[i2]) {
|
|
10422
10422
|
keys2[i2] += ";?";
|
|
10423
|
-
|
|
10423
|
+
j2++;
|
|
10424
10424
|
} else {
|
|
10425
10425
|
keys2[i2] += ";";
|
|
10426
10426
|
}
|
|
@@ -10482,11 +10482,11 @@ var require_encode = __commonJS({
|
|
|
10482
10482
|
var single = [];
|
|
10483
10483
|
var multiple = [];
|
|
10484
10484
|
for (var _i = 0, _a3 = Object.keys(inverse); _i < _a3.length; _i++) {
|
|
10485
|
-
var
|
|
10486
|
-
if (
|
|
10487
|
-
single.push("\\" +
|
|
10485
|
+
var k2 = _a3[_i];
|
|
10486
|
+
if (k2.length === 1) {
|
|
10487
|
+
single.push("\\" + k2);
|
|
10488
10488
|
} else {
|
|
10489
|
-
multiple.push(
|
|
10489
|
+
multiple.push(k2);
|
|
10490
10490
|
}
|
|
10491
10491
|
}
|
|
10492
10492
|
single.sort();
|
|
@@ -10679,7 +10679,7 @@ var require_ansi_to_html = __commonJS({
|
|
|
10679
10679
|
}, "n"), e: /* @__PURE__ */ __name(function e2(_e2) {
|
|
10680
10680
|
didErr = true;
|
|
10681
10681
|
err = _e2;
|
|
10682
|
-
}, "e"), f: /* @__PURE__ */ __name(function
|
|
10682
|
+
}, "e"), f: /* @__PURE__ */ __name(function f4() {
|
|
10683
10683
|
try {
|
|
10684
10684
|
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
10685
10685
|
} finally {
|
|
@@ -10742,8 +10742,8 @@ var require_ansi_to_html = __commonJS({
|
|
|
10742
10742
|
});
|
|
10743
10743
|
range(0, 23).forEach(function(gray) {
|
|
10744
10744
|
var c2 = gray + 232;
|
|
10745
|
-
var
|
|
10746
|
-
colors3[c2] = "#" +
|
|
10745
|
+
var l2 = toHexString(gray * 10 + 8);
|
|
10746
|
+
colors3[c2] = "#" + l2 + l2 + l2;
|
|
10747
10747
|
});
|
|
10748
10748
|
return colors3;
|
|
10749
10749
|
}
|
|
@@ -10752,8 +10752,8 @@ var require_ansi_to_html = __commonJS({
|
|
|
10752
10752
|
var c2 = 16 + red * 36 + green * 6 + blue;
|
|
10753
10753
|
var r2 = red > 0 ? red * 40 + 55 : 0;
|
|
10754
10754
|
var g2 = green > 0 ? green * 40 + 55 : 0;
|
|
10755
|
-
var
|
|
10756
|
-
colors3[c2] = toColorHexString([r2, g2,
|
|
10755
|
+
var b2 = blue > 0 ? blue * 40 + 55 : 0;
|
|
10756
|
+
colors3[c2] = toColorHexString([r2, g2, b2]);
|
|
10757
10757
|
}
|
|
10758
10758
|
__name(setStyleColor, "setStyleColor");
|
|
10759
10759
|
function toHexString(num) {
|
|
@@ -10876,8 +10876,8 @@ var require_ansi_to_html = __commonJS({
|
|
|
10876
10876
|
__name(resetStyles, "resetStyles");
|
|
10877
10877
|
function range(low, high) {
|
|
10878
10878
|
var results = [];
|
|
10879
|
-
for (var
|
|
10880
|
-
results.push(
|
|
10879
|
+
for (var j2 = low; j2 <= high; j2++) {
|
|
10880
|
+
results.push(j2);
|
|
10881
10881
|
}
|
|
10882
10882
|
return results;
|
|
10883
10883
|
}
|
|
@@ -13792,18 +13792,18 @@ var require_browser_dtector_umd_min = __commonJS({
|
|
|
13792
13792
|
}(this, t3), this.userAgent = e3 || (null === (o3 = i2()) || void 0 === o3 ? void 0 : o3.userAgent) || null;
|
|
13793
13793
|
}
|
|
13794
13794
|
__name(t3, "t");
|
|
13795
|
-
var a2,
|
|
13796
|
-
return a2 = t3,
|
|
13797
|
-
var t4, a3,
|
|
13798
|
-
"chrome" === p2 && "function" == typeof (null ==
|
|
13799
|
-
var
|
|
13800
|
-
return { name: null !== (a3 = o2[p2]) && void 0 !== a3 ? a3 : null, platform: null !== (
|
|
13795
|
+
var a2, l2, s3;
|
|
13796
|
+
return a2 = t3, l2 = [{ key: "parseUserAgent", value: /* @__PURE__ */ __name(function(e3) {
|
|
13797
|
+
var t4, a3, l3, s4 = {}, c2 = e3 || this.userAgent || "", d = c2.toLowerCase().replace(/\s\s+/g, " "), u3 = /(edge)\/([\w.]+)/.exec(d) || /(edg)[/]([\w.]+)/.exec(d) || /(opr)[/]([\w.]+)/.exec(d) || /(opt)[/]([\w.]+)/.exec(d) || /(fxios)[/]([\w.]+)/.exec(d) || /(edgios)[/]([\w.]+)/.exec(d) || /(jsdom)[/]([\w.]+)/.exec(d) || /(samsungbrowser)[/]([\w.]+)/.exec(d) || /(electron)[/]([\w.]+)/.exec(d) || /(chrome)[/]([\w.]+)/.exec(d) || /(crios)[/]([\w.]+)/.exec(d) || /(opios)[/]([\w.]+)/.exec(d) || /(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(d) || /(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(d) || /(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(d) || /(webkit)[/]([\w.]+)/.exec(d) || /(opera)(?:.*version|)[/]([\w.]+)/.exec(d) || /(msie) ([\w.]+)/.exec(d) || /(fennec)[/]([\w.]+)/.exec(d) || d.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec(d) || d.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(d) || [], f4 = /(ipad)/.exec(d) || /(ipod)/.exec(d) || /(iphone)/.exec(d) || /(jsdom)/.exec(d) || /(windows phone)/.exec(d) || /(xbox)/.exec(d) || /(win)/.exec(d) || /(tablet)/.exec(d) || /(android)/.test(d) && false === /(mobile)/.test(d) && ["androidTablet"] || /(android)/.exec(d) || /(mac)/.exec(d) || /(linux)/.exec(d) || /(cros)/.exec(d) || [], p2 = u3[5] || u3[3] || u3[1] || null, w2 = f4[0] || null, x2 = u3[4] || u3[2] || null, b2 = i2();
|
|
13798
|
+
"chrome" === p2 && "function" == typeof (null == b2 || null === (t4 = b2.brave) || void 0 === t4 ? void 0 : t4.isBrave) && (p2 = "brave"), p2 && (s4[p2] = true), w2 && (s4[w2] = true);
|
|
13799
|
+
var v2 = Boolean(s4.tablet || s4.android || s4.androidTablet), m3 = Boolean(s4.ipad || s4.tablet || s4.androidTablet), g2 = Boolean(s4.android || s4.androidTablet || s4.tablet || s4.ipad || s4.ipod || s4.iphone || s4["windows phone"]), h3 = Boolean(s4.cros || s4.mac || s4.linux || s4.win), y2 = Boolean(s4.brave || s4.chrome || s4.crios || s4.opr || s4.safari || s4.edg || s4.electron), A = Boolean(s4.msie || s4.rv);
|
|
13800
|
+
return { name: null !== (a3 = o2[p2]) && void 0 !== a3 ? a3 : null, platform: null !== (l3 = r2[w2]) && void 0 !== l3 ? l3 : null, userAgent: c2, version: x2, shortVersion: x2 ? n2(parseFloat(x2), 2) : null, isAndroid: v2, isTablet: m3, isMobile: g2, isDesktop: h3, isWebkit: y2, isIE: A };
|
|
13801
13801
|
}, "value") }, { key: "getBrowserInfo", value: /* @__PURE__ */ __name(function() {
|
|
13802
13802
|
var e3 = this.parseUserAgent();
|
|
13803
13803
|
return { name: e3.name, platform: e3.platform, userAgent: e3.userAgent, version: e3.version, shortVersion: e3.shortVersion };
|
|
13804
13804
|
}, "value") }], s3 = [{ key: "VERSION", get: /* @__PURE__ */ __name(function() {
|
|
13805
13805
|
return "3.4.0";
|
|
13806
|
-
}, "get") }],
|
|
13806
|
+
}, "get") }], l2 && e2(a2.prototype, l2), s3 && e2(a2, s3), Object.defineProperty(a2, "prototype", { writable: false }), t3;
|
|
13807
13807
|
}();
|
|
13808
13808
|
return t2;
|
|
13809
13809
|
});
|
|
@@ -14651,7 +14651,7 @@ var _Channel = class _Channel {
|
|
|
14651
14651
|
removeListener(eventName, listener) {
|
|
14652
14652
|
const listeners3 = this.listeners(eventName);
|
|
14653
14653
|
if (listeners3) {
|
|
14654
|
-
this.events[eventName] = listeners3.filter((
|
|
14654
|
+
this.events[eventName] = listeners3.filter((l2) => l2 !== listener);
|
|
14655
14655
|
}
|
|
14656
14656
|
}
|
|
14657
14657
|
on(eventName, listener) {
|
|
@@ -14758,8 +14758,8 @@ var pretty = /* @__PURE__ */ __name((type5) => (...args) => {
|
|
|
14758
14758
|
argArray.push(reResultArray[2]);
|
|
14759
14759
|
argArray.push("");
|
|
14760
14760
|
}
|
|
14761
|
-
for (let
|
|
14762
|
-
argArray.push(args[
|
|
14761
|
+
for (let j2 = 1; j2 < args.length; j2++) {
|
|
14762
|
+
argArray.push(args[j2]);
|
|
14763
14763
|
}
|
|
14764
14764
|
}
|
|
14765
14765
|
logger[type5].apply(logger, argArray);
|
|
@@ -15062,20 +15062,20 @@ var require_implementation = __commonJS2({
|
|
|
15062
15062
|
var toStr3 = Object.prototype.toString;
|
|
15063
15063
|
var max = Math.max;
|
|
15064
15064
|
var funcType = "[object Function]";
|
|
15065
|
-
var concatty = /* @__PURE__ */ __name(function concatty2(a2,
|
|
15065
|
+
var concatty = /* @__PURE__ */ __name(function concatty2(a2, b2) {
|
|
15066
15066
|
var arr = [];
|
|
15067
15067
|
for (var i2 = 0; i2 < a2.length; i2 += 1) {
|
|
15068
15068
|
arr[i2] = a2[i2];
|
|
15069
15069
|
}
|
|
15070
|
-
for (var
|
|
15071
|
-
arr[
|
|
15070
|
+
for (var j2 = 0; j2 < b2.length; j2 += 1) {
|
|
15071
|
+
arr[j2 + a2.length] = b2[j2];
|
|
15072
15072
|
}
|
|
15073
15073
|
return arr;
|
|
15074
15074
|
}, "concatty2");
|
|
15075
15075
|
var slicy = /* @__PURE__ */ __name(function slicy2(arrLike, offset2) {
|
|
15076
15076
|
var arr = [];
|
|
15077
|
-
for (var i2 = offset2 || 0,
|
|
15078
|
-
arr[
|
|
15077
|
+
for (var i2 = offset2 || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
15078
|
+
arr[j2] = arrLike[i2];
|
|
15079
15079
|
}
|
|
15080
15080
|
return arr;
|
|
15081
15081
|
}, "slicy2");
|
|
@@ -16445,23 +16445,23 @@ var mutator = /* @__PURE__ */ __name(() => {
|
|
|
16445
16445
|
const mutated = /* @__PURE__ */ new Map();
|
|
16446
16446
|
return /* @__PURE__ */ __name(function mutateUndefined(value) {
|
|
16447
16447
|
if (isObject3(value)) {
|
|
16448
|
-
Object.entries(value).forEach(([
|
|
16449
|
-
if (
|
|
16450
|
-
value[
|
|
16451
|
-
} else if (!mutated.get(
|
|
16452
|
-
mutated.set(
|
|
16453
|
-
mutateUndefined(
|
|
16448
|
+
Object.entries(value).forEach(([k2, v2]) => {
|
|
16449
|
+
if (v2 === "_undefined_") {
|
|
16450
|
+
value[k2] = void 0;
|
|
16451
|
+
} else if (!mutated.get(v2)) {
|
|
16452
|
+
mutated.set(v2, true);
|
|
16453
|
+
mutateUndefined(v2);
|
|
16454
16454
|
}
|
|
16455
16455
|
});
|
|
16456
16456
|
}
|
|
16457
16457
|
if (Array.isArray(value)) {
|
|
16458
|
-
value.forEach((
|
|
16459
|
-
if (
|
|
16460
|
-
mutated.set(
|
|
16458
|
+
value.forEach((v2, index2) => {
|
|
16459
|
+
if (v2 === "_undefined_") {
|
|
16460
|
+
mutated.set(v2, true);
|
|
16461
16461
|
value[index2] = void 0;
|
|
16462
|
-
} else if (!mutated.get(
|
|
16463
|
-
mutated.set(
|
|
16464
|
-
mutateUndefined(
|
|
16462
|
+
} else if (!mutated.get(v2)) {
|
|
16463
|
+
mutated.set(v2, true);
|
|
16464
|
+
mutateUndefined(v2);
|
|
16465
16465
|
}
|
|
16466
16466
|
});
|
|
16467
16467
|
}
|
|
@@ -16579,7 +16579,7 @@ var _PostMessageTransport = class _PostMessageTransport {
|
|
|
16579
16579
|
allowUndefined,
|
|
16580
16580
|
maxDepth,
|
|
16581
16581
|
space
|
|
16582
|
-
}).filter(([
|
|
16582
|
+
}).filter(([k2, v2]) => typeof v2 !== "undefined")
|
|
16583
16583
|
);
|
|
16584
16584
|
const stringifyOptions = {
|
|
16585
16585
|
...defaultEventOptions,
|
|
@@ -16604,9 +16604,9 @@ var _PostMessageTransport = class _PostMessageTransport {
|
|
|
16604
16604
|
if (this.buffer.length) {
|
|
16605
16605
|
this.flush();
|
|
16606
16606
|
}
|
|
16607
|
-
frames.forEach((
|
|
16607
|
+
frames.forEach((f4) => {
|
|
16608
16608
|
try {
|
|
16609
|
-
|
|
16609
|
+
f4.postMessage(data, "*");
|
|
16610
16610
|
} catch (e2) {
|
|
16611
16611
|
logger.error("sending over postmessage fail");
|
|
16612
16612
|
}
|
|
@@ -17799,7 +17799,7 @@ __name(toStartCaseStr, "toStartCaseStr");
|
|
|
17799
17799
|
|
|
17800
17800
|
// src/csf/includeConditionalArg.ts
|
|
17801
17801
|
var import_tiny_isequal = __toESM(require_tiny_isequal(), 1);
|
|
17802
|
-
var count = /* @__PURE__ */ __name((vals) => vals.map((
|
|
17802
|
+
var count = /* @__PURE__ */ __name((vals) => vals.map((v2) => typeof v2 !== "undefined").filter(Boolean).length, "count");
|
|
17803
17803
|
var testValue = /* @__PURE__ */ __name((cond, value) => {
|
|
17804
17804
|
const { exists, eq: eq4, neq, truthy } = cond;
|
|
17805
17805
|
if (count([exists, eq4, neq, truthy]) > 1) {
|
|
@@ -17988,7 +17988,7 @@ __export(test_exports, {
|
|
|
17988
17988
|
getRoles: () => getRoles2,
|
|
17989
17989
|
getSuggestedQuery: () => getSuggestedQuery2,
|
|
17990
17990
|
isInaccessible: () => isInaccessible2,
|
|
17991
|
-
isMockFunction: () =>
|
|
17991
|
+
isMockFunction: () => isMockFunction,
|
|
17992
17992
|
logDOM: () => logDOM2,
|
|
17993
17993
|
logRoles: () => logRoles2,
|
|
17994
17994
|
mocked: () => mocked,
|
|
@@ -18090,27 +18090,27 @@ function C(n2 = false) {
|
|
|
18090
18090
|
__name(C, "C");
|
|
18091
18091
|
function p(n2 = false) {
|
|
18092
18092
|
let e2 = C(n2), i2 = /* @__PURE__ */ __name((r2, t2, c2, o2) => {
|
|
18093
|
-
let
|
|
18093
|
+
let l2 = "", s3 = 0;
|
|
18094
18094
|
do
|
|
18095
|
-
|
|
18095
|
+
l2 += r2.substring(s3, o2) + c2, s3 = o2 + t2.length, o2 = r2.indexOf(t2, s3);
|
|
18096
18096
|
while (~o2);
|
|
18097
|
-
return
|
|
18097
|
+
return l2 + r2.substring(s3);
|
|
18098
18098
|
}, "i"), g2 = /* @__PURE__ */ __name((r2, t2, c2 = r2) => {
|
|
18099
|
-
let o2 = /* @__PURE__ */ __name((
|
|
18100
|
-
let s3 = String(
|
|
18101
|
-
return ~
|
|
18099
|
+
let o2 = /* @__PURE__ */ __name((l2) => {
|
|
18100
|
+
let s3 = String(l2), b2 = s3.indexOf(t2, r2.length);
|
|
18101
|
+
return ~b2 ? r2 + i2(s3, t2, c2, b2) + t2 : r2 + s3 + t2;
|
|
18102
18102
|
}, "o");
|
|
18103
18103
|
return o2.open = r2, o2.close = t2, o2;
|
|
18104
|
-
}, "g"),
|
|
18104
|
+
}, "g"), u3 = {
|
|
18105
18105
|
isColorSupported: e2
|
|
18106
18106
|
}, d = /* @__PURE__ */ __name((r2) => `\x1B[${r2}m`, "d");
|
|
18107
18107
|
for (let [r2, t2] of h)
|
|
18108
|
-
|
|
18108
|
+
u3[r2] = e2 ? g2(
|
|
18109
18109
|
d(t2[0]),
|
|
18110
18110
|
d(t2[1]),
|
|
18111
18111
|
t2[2]
|
|
18112
18112
|
) : a;
|
|
18113
|
-
return
|
|
18113
|
+
return u3;
|
|
18114
18114
|
}
|
|
18115
18115
|
__name(p, "p");
|
|
18116
18116
|
|
|
@@ -18120,13 +18120,13 @@ var s = p();
|
|
|
18120
18120
|
// ../node_modules/@vitest/pretty-format/dist/index.js
|
|
18121
18121
|
function _mergeNamespaces(n2, m3) {
|
|
18122
18122
|
m3.forEach(function(e2) {
|
|
18123
|
-
e2 && typeof e2 !== "string" && !Array.isArray(e2) && Object.keys(e2).forEach(function(
|
|
18124
|
-
if (
|
|
18125
|
-
var d = Object.getOwnPropertyDescriptor(e2,
|
|
18126
|
-
Object.defineProperty(n2,
|
|
18123
|
+
e2 && typeof e2 !== "string" && !Array.isArray(e2) && Object.keys(e2).forEach(function(k2) {
|
|
18124
|
+
if (k2 !== "default" && !(k2 in n2)) {
|
|
18125
|
+
var d = Object.getOwnPropertyDescriptor(e2, k2);
|
|
18126
|
+
Object.defineProperty(n2, k2, d.get ? d : {
|
|
18127
18127
|
enumerable: true,
|
|
18128
18128
|
get: /* @__PURE__ */ __name(function() {
|
|
18129
|
-
return e2[
|
|
18129
|
+
return e2[k2];
|
|
18130
18130
|
}, "get")
|
|
18131
18131
|
});
|
|
18132
18132
|
}
|
|
@@ -18205,7 +18205,7 @@ __name(printIteratorValues, "printIteratorValues");
|
|
|
18205
18205
|
function printListItems(list, config4, indentation, depth, refs, printer2) {
|
|
18206
18206
|
let result = "";
|
|
18207
18207
|
list = list instanceof ArrayBuffer ? new DataView(list) : list;
|
|
18208
|
-
const isDataView = /* @__PURE__ */ __name((
|
|
18208
|
+
const isDataView = /* @__PURE__ */ __name((l2) => l2 instanceof DataView, "isDataView");
|
|
18209
18209
|
const length = isDataView(list) ? list.byteLength : list.length;
|
|
18210
18210
|
if (length > 0) {
|
|
18211
18211
|
result += config4.spacingOuter;
|
|
@@ -18487,8 +18487,8 @@ var plugin$2 = {
|
|
|
18487
18487
|
serialize: serialize$2,
|
|
18488
18488
|
test: test$2
|
|
18489
18489
|
};
|
|
18490
|
-
function getDefaultExportFromCjs(
|
|
18491
|
-
return
|
|
18490
|
+
function getDefaultExportFromCjs(x2) {
|
|
18491
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
18492
18492
|
}
|
|
18493
18493
|
__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
|
18494
18494
|
var reactIs$1 = { exports: {} };
|
|
@@ -18610,25 +18610,25 @@ var hasRequiredReactIs_production_min;
|
|
|
18610
18610
|
function requireReactIs_production_min() {
|
|
18611
18611
|
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
18612
18612
|
hasRequiredReactIs_production_min = 1;
|
|
18613
|
-
var
|
|
18614
|
-
|
|
18615
|
-
function
|
|
18613
|
+
var b2 = Symbol.for("react.element"), c2 = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e2 = Symbol.for("react.strict_mode"), f4 = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l2 = Symbol.for("react.forward_ref"), m3 = Symbol.for("react.suspense"), n2 = Symbol.for("react.suspense_list"), p2 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t2 = Symbol.for("react.offscreen"), u3;
|
|
18614
|
+
u3 = Symbol.for("react.module.reference");
|
|
18615
|
+
function v2(a2) {
|
|
18616
18616
|
if ("object" === typeof a2 && null !== a2) {
|
|
18617
18617
|
var r2 = a2.$$typeof;
|
|
18618
18618
|
switch (r2) {
|
|
18619
|
-
case
|
|
18619
|
+
case b2:
|
|
18620
18620
|
switch (a2 = a2.type, a2) {
|
|
18621
18621
|
case d:
|
|
18622
|
-
case
|
|
18622
|
+
case f4:
|
|
18623
18623
|
case e2:
|
|
18624
18624
|
case m3:
|
|
18625
18625
|
case n2:
|
|
18626
18626
|
return a2;
|
|
18627
18627
|
default:
|
|
18628
18628
|
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
18629
|
-
case
|
|
18630
|
-
case
|
|
18631
|
-
case
|
|
18629
|
+
case k2:
|
|
18630
|
+
case h3:
|
|
18631
|
+
case l2:
|
|
18632
18632
|
case q:
|
|
18633
18633
|
case p2:
|
|
18634
18634
|
case g2:
|
|
@@ -18642,16 +18642,16 @@ function requireReactIs_production_min() {
|
|
|
18642
18642
|
}
|
|
18643
18643
|
}
|
|
18644
18644
|
}
|
|
18645
|
-
__name(
|
|
18646
|
-
reactIs_production_min.ContextConsumer =
|
|
18645
|
+
__name(v2, "v");
|
|
18646
|
+
reactIs_production_min.ContextConsumer = h3;
|
|
18647
18647
|
reactIs_production_min.ContextProvider = g2;
|
|
18648
|
-
reactIs_production_min.Element =
|
|
18649
|
-
reactIs_production_min.ForwardRef =
|
|
18648
|
+
reactIs_production_min.Element = b2;
|
|
18649
|
+
reactIs_production_min.ForwardRef = l2;
|
|
18650
18650
|
reactIs_production_min.Fragment = d;
|
|
18651
18651
|
reactIs_production_min.Lazy = q;
|
|
18652
18652
|
reactIs_production_min.Memo = p2;
|
|
18653
18653
|
reactIs_production_min.Portal = c2;
|
|
18654
|
-
reactIs_production_min.Profiler =
|
|
18654
|
+
reactIs_production_min.Profiler = f4;
|
|
18655
18655
|
reactIs_production_min.StrictMode = e2;
|
|
18656
18656
|
reactIs_production_min.Suspense = m3;
|
|
18657
18657
|
reactIs_production_min.SuspenseList = n2;
|
|
@@ -18662,45 +18662,45 @@ function requireReactIs_production_min() {
|
|
|
18662
18662
|
return false;
|
|
18663
18663
|
};
|
|
18664
18664
|
reactIs_production_min.isContextConsumer = function(a2) {
|
|
18665
|
-
return
|
|
18665
|
+
return v2(a2) === h3;
|
|
18666
18666
|
};
|
|
18667
18667
|
reactIs_production_min.isContextProvider = function(a2) {
|
|
18668
|
-
return
|
|
18668
|
+
return v2(a2) === g2;
|
|
18669
18669
|
};
|
|
18670
18670
|
reactIs_production_min.isElement = function(a2) {
|
|
18671
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof ===
|
|
18671
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === b2;
|
|
18672
18672
|
};
|
|
18673
18673
|
reactIs_production_min.isForwardRef = function(a2) {
|
|
18674
|
-
return
|
|
18674
|
+
return v2(a2) === l2;
|
|
18675
18675
|
};
|
|
18676
18676
|
reactIs_production_min.isFragment = function(a2) {
|
|
18677
|
-
return
|
|
18677
|
+
return v2(a2) === d;
|
|
18678
18678
|
};
|
|
18679
18679
|
reactIs_production_min.isLazy = function(a2) {
|
|
18680
|
-
return
|
|
18680
|
+
return v2(a2) === q;
|
|
18681
18681
|
};
|
|
18682
18682
|
reactIs_production_min.isMemo = function(a2) {
|
|
18683
|
-
return
|
|
18683
|
+
return v2(a2) === p2;
|
|
18684
18684
|
};
|
|
18685
18685
|
reactIs_production_min.isPortal = function(a2) {
|
|
18686
|
-
return
|
|
18686
|
+
return v2(a2) === c2;
|
|
18687
18687
|
};
|
|
18688
18688
|
reactIs_production_min.isProfiler = function(a2) {
|
|
18689
|
-
return
|
|
18689
|
+
return v2(a2) === f4;
|
|
18690
18690
|
};
|
|
18691
18691
|
reactIs_production_min.isStrictMode = function(a2) {
|
|
18692
|
-
return
|
|
18692
|
+
return v2(a2) === e2;
|
|
18693
18693
|
};
|
|
18694
18694
|
reactIs_production_min.isSuspense = function(a2) {
|
|
18695
|
-
return
|
|
18695
|
+
return v2(a2) === m3;
|
|
18696
18696
|
};
|
|
18697
18697
|
reactIs_production_min.isSuspenseList = function(a2) {
|
|
18698
|
-
return
|
|
18698
|
+
return v2(a2) === n2;
|
|
18699
18699
|
};
|
|
18700
18700
|
reactIs_production_min.isValidElementType = function(a2) {
|
|
18701
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === d || a2 ===
|
|
18701
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === d || a2 === f4 || a2 === e2 || a2 === m3 || a2 === n2 || a2 === t2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === q || a2.$$typeof === p2 || a2.$$typeof === g2 || a2.$$typeof === h3 || a2.$$typeof === l2 || a2.$$typeof === u3 || void 0 !== a2.getModuleId) ? true : false;
|
|
18702
18702
|
};
|
|
18703
|
-
reactIs_production_min.typeOf =
|
|
18703
|
+
reactIs_production_min.typeOf = v2;
|
|
18704
18704
|
return reactIs_production_min;
|
|
18705
18705
|
}
|
|
18706
18706
|
__name(requireReactIs_production_min, "requireReactIs_production_min");
|
|
@@ -18739,7 +18739,7 @@ var reactIsMethods = [
|
|
|
18739
18739
|
"isSuspenseList",
|
|
18740
18740
|
"isValidElementType"
|
|
18741
18741
|
];
|
|
18742
|
-
var ReactIs = Object.fromEntries(reactIsMethods.map((m3) => [m3, (
|
|
18742
|
+
var ReactIs = Object.fromEntries(reactIsMethods.map((m3) => [m3, (v2) => ReactIs18[m3](v2) || ReactIs19[m3](v2)]));
|
|
18743
18743
|
function getChildren(arg, children = []) {
|
|
18744
18744
|
if (Array.isArray(arg)) {
|
|
18745
18745
|
for (const item of arg) {
|
|
@@ -19773,14 +19773,14 @@ function format2(...args) {
|
|
|
19773
19773
|
const len = args.length;
|
|
19774
19774
|
let i2 = 1;
|
|
19775
19775
|
const template = args[0];
|
|
19776
|
-
let str2 = String(template).replace(formatRegExp, (
|
|
19777
|
-
if (
|
|
19776
|
+
let str2 = String(template).replace(formatRegExp, (x2) => {
|
|
19777
|
+
if (x2 === "%%") {
|
|
19778
19778
|
return "%";
|
|
19779
19779
|
}
|
|
19780
19780
|
if (i2 >= len) {
|
|
19781
|
-
return
|
|
19781
|
+
return x2;
|
|
19782
19782
|
}
|
|
19783
|
-
switch (
|
|
19783
|
+
switch (x2) {
|
|
19784
19784
|
case "%s": {
|
|
19785
19785
|
const value = args[i2++];
|
|
19786
19786
|
if (typeof value === "bigint") {
|
|
@@ -19838,14 +19838,14 @@ function format2(...args) {
|
|
|
19838
19838
|
throw err;
|
|
19839
19839
|
}
|
|
19840
19840
|
default:
|
|
19841
|
-
return
|
|
19841
|
+
return x2;
|
|
19842
19842
|
}
|
|
19843
19843
|
});
|
|
19844
|
-
for (let
|
|
19845
|
-
if (
|
|
19846
|
-
str2 += ` ${
|
|
19844
|
+
for (let x2 = args[i2]; i2 < len; x2 = args[++i2]) {
|
|
19845
|
+
if (x2 === null || typeof x2 !== "object") {
|
|
19846
|
+
str2 += ` ${x2}`;
|
|
19847
19847
|
} else {
|
|
19848
|
-
str2 += ` ${inspect2(
|
|
19848
|
+
str2 += ` ${inspect2(x2)}`;
|
|
19849
19849
|
}
|
|
19850
19850
|
}
|
|
19851
19851
|
return str2;
|
|
@@ -19858,8 +19858,8 @@ function inspect2(obj, options = {}) {
|
|
|
19858
19858
|
return inspect(obj, options);
|
|
19859
19859
|
}
|
|
19860
19860
|
__name(inspect2, "inspect");
|
|
19861
|
-
function getDefaultExportFromCjs2(
|
|
19862
|
-
return
|
|
19861
|
+
function getDefaultExportFromCjs2(x2) {
|
|
19862
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
19863
19863
|
}
|
|
19864
19864
|
__name(getDefaultExportFromCjs2, "getDefaultExportFromCjs");
|
|
19865
19865
|
|
|
@@ -19906,15 +19906,15 @@ function deepClone(val, options = defaultCloneOptions) {
|
|
|
19906
19906
|
}
|
|
19907
19907
|
__name(deepClone, "deepClone");
|
|
19908
19908
|
function clone(val, seen, options = defaultCloneOptions) {
|
|
19909
|
-
let
|
|
19909
|
+
let k2, out;
|
|
19910
19910
|
if (seen.has(val)) {
|
|
19911
19911
|
return seen.get(val);
|
|
19912
19912
|
}
|
|
19913
19913
|
if (Array.isArray(val)) {
|
|
19914
|
-
out = Array.from({ length:
|
|
19914
|
+
out = Array.from({ length: k2 = val.length });
|
|
19915
19915
|
seen.set(val, out);
|
|
19916
|
-
while (
|
|
19917
|
-
out[
|
|
19916
|
+
while (k2--) {
|
|
19917
|
+
out[k2] = clone(val[k2], seen, options);
|
|
19918
19918
|
}
|
|
19919
19919
|
return out;
|
|
19920
19920
|
}
|
|
@@ -19922,28 +19922,28 @@ function clone(val, seen, options = defaultCloneOptions) {
|
|
|
19922
19922
|
out = Object.create(Object.getPrototypeOf(val));
|
|
19923
19923
|
seen.set(val, out);
|
|
19924
19924
|
const props = getOwnProperties(val);
|
|
19925
|
-
for (const
|
|
19926
|
-
const descriptor = Object.getOwnPropertyDescriptor(val,
|
|
19925
|
+
for (const k3 of props) {
|
|
19926
|
+
const descriptor = Object.getOwnPropertyDescriptor(val, k3);
|
|
19927
19927
|
if (!descriptor) {
|
|
19928
19928
|
continue;
|
|
19929
19929
|
}
|
|
19930
|
-
const cloned = clone(val[
|
|
19930
|
+
const cloned = clone(val[k3], seen, options);
|
|
19931
19931
|
if (options.forceWritable) {
|
|
19932
|
-
Object.defineProperty(out,
|
|
19932
|
+
Object.defineProperty(out, k3, {
|
|
19933
19933
|
enumerable: descriptor.enumerable,
|
|
19934
19934
|
configurable: true,
|
|
19935
19935
|
writable: true,
|
|
19936
19936
|
value: cloned
|
|
19937
19937
|
});
|
|
19938
19938
|
} else if ("get" in descriptor) {
|
|
19939
|
-
Object.defineProperty(out,
|
|
19939
|
+
Object.defineProperty(out, k3, {
|
|
19940
19940
|
...descriptor,
|
|
19941
19941
|
get() {
|
|
19942
19942
|
return cloned;
|
|
19943
19943
|
}
|
|
19944
19944
|
});
|
|
19945
19945
|
} else {
|
|
19946
|
-
Object.defineProperty(out,
|
|
19946
|
+
Object.defineProperty(out, k3, {
|
|
19947
19947
|
...descriptor,
|
|
19948
19948
|
value: cloned
|
|
19949
19949
|
});
|
|
@@ -20856,19 +20856,19 @@ function joinAlignedDiffsNoExpand(diffs, options) {
|
|
|
20856
20856
|
let aEnd = 0;
|
|
20857
20857
|
let bEnd = 0;
|
|
20858
20858
|
const pushCommonLine = /* @__PURE__ */ __name((line) => {
|
|
20859
|
-
const
|
|
20860
|
-
lines.push(printCommonLine(line,
|
|
20859
|
+
const j2 = lines.length;
|
|
20860
|
+
lines.push(printCommonLine(line, j2 === 0 || j2 === jLast, options));
|
|
20861
20861
|
aEnd += 1;
|
|
20862
20862
|
bEnd += 1;
|
|
20863
20863
|
}, "pushCommonLine");
|
|
20864
20864
|
const pushDeleteLine = /* @__PURE__ */ __name((line) => {
|
|
20865
|
-
const
|
|
20866
|
-
lines.push(printDeleteLine(line,
|
|
20865
|
+
const j2 = lines.length;
|
|
20866
|
+
lines.push(printDeleteLine(line, j2 === 0 || j2 === jLast, options));
|
|
20867
20867
|
aEnd += 1;
|
|
20868
20868
|
}, "pushDeleteLine");
|
|
20869
20869
|
const pushInsertLine = /* @__PURE__ */ __name((line) => {
|
|
20870
|
-
const
|
|
20871
|
-
lines.push(printInsertLine(line,
|
|
20870
|
+
const j2 = lines.length;
|
|
20871
|
+
lines.push(printInsertLine(line, j2 === 0 || j2 === jLast, options));
|
|
20872
20872
|
bEnd += 1;
|
|
20873
20873
|
}, "pushInsertLine");
|
|
20874
20874
|
i2 = 0;
|
|
@@ -21002,20 +21002,20 @@ function isEmptyString(lines) {
|
|
|
21002
21002
|
__name(isEmptyString, "isEmptyString");
|
|
21003
21003
|
function countChanges(diffs) {
|
|
21004
21004
|
let a2 = 0;
|
|
21005
|
-
let
|
|
21005
|
+
let b2 = 0;
|
|
21006
21006
|
diffs.forEach((diff2) => {
|
|
21007
21007
|
switch (diff2[0]) {
|
|
21008
21008
|
case DIFF_DELETE:
|
|
21009
21009
|
a2 += 1;
|
|
21010
21010
|
break;
|
|
21011
21011
|
case DIFF_INSERT:
|
|
21012
|
-
|
|
21012
|
+
b2 += 1;
|
|
21013
21013
|
break;
|
|
21014
21014
|
}
|
|
21015
21015
|
});
|
|
21016
21016
|
return {
|
|
21017
21017
|
a: a2,
|
|
21018
|
-
b
|
|
21018
|
+
b: b2
|
|
21019
21019
|
};
|
|
21020
21020
|
}
|
|
21021
21021
|
__name(countChanges, "countChanges");
|
|
@@ -21038,9 +21038,9 @@ function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor,
|
|
|
21038
21038
|
bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
|
|
21039
21039
|
}
|
|
21040
21040
|
const a2 = `${aIndicator} ${aAnnotation}${aRest}`;
|
|
21041
|
-
const
|
|
21041
|
+
const b2 = `${bIndicator} ${bAnnotation}${bRest}`;
|
|
21042
21042
|
return `${aColor(a2)}
|
|
21043
|
-
${bColor(
|
|
21043
|
+
${bColor(b2)}
|
|
21044
21044
|
|
|
21045
21045
|
`;
|
|
21046
21046
|
}
|
|
@@ -21161,25 +21161,25 @@ function getNewLineSymbol(string) {
|
|
|
21161
21161
|
return string.includes("\r\n") ? "\r\n" : "\n";
|
|
21162
21162
|
}
|
|
21163
21163
|
__name(getNewLineSymbol, "getNewLineSymbol");
|
|
21164
|
-
function diffStrings(a2,
|
|
21164
|
+
function diffStrings(a2, b2, options) {
|
|
21165
21165
|
const truncate3 = (options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? false;
|
|
21166
21166
|
const truncateThreshold = Math.max(Math.floor((options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? 0), 0);
|
|
21167
21167
|
let aLength = a2.length;
|
|
21168
|
-
let bLength =
|
|
21168
|
+
let bLength = b2.length;
|
|
21169
21169
|
if (truncate3) {
|
|
21170
21170
|
const aMultipleLines = a2.includes("\n");
|
|
21171
|
-
const bMultipleLines =
|
|
21171
|
+
const bMultipleLines = b2.includes("\n");
|
|
21172
21172
|
const aNewLineSymbol = getNewLineSymbol(a2);
|
|
21173
|
-
const bNewLineSymbol = getNewLineSymbol(
|
|
21173
|
+
const bNewLineSymbol = getNewLineSymbol(b2);
|
|
21174
21174
|
const _a3 = aMultipleLines ? `${a2.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)}
|
|
21175
21175
|
` : a2;
|
|
21176
|
-
const _b = bMultipleLines ? `${
|
|
21177
|
-
` :
|
|
21176
|
+
const _b = bMultipleLines ? `${b2.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}
|
|
21177
|
+
` : b2;
|
|
21178
21178
|
aLength = _a3.length;
|
|
21179
21179
|
bLength = _b.length;
|
|
21180
21180
|
}
|
|
21181
|
-
const truncated = aLength !== a2.length || bLength !==
|
|
21182
|
-
const isCommon = /* @__PURE__ */ __name((aIndex2, bIndex2) => a2[aIndex2] ===
|
|
21181
|
+
const truncated = aLength !== a2.length || bLength !== b2.length;
|
|
21182
|
+
const isCommon = /* @__PURE__ */ __name((aIndex2, bIndex2) => a2[aIndex2] === b2[bIndex2], "isCommon");
|
|
21183
21183
|
let aIndex = 0;
|
|
21184
21184
|
let bIndex = 0;
|
|
21185
21185
|
const diffs = [];
|
|
@@ -21188,18 +21188,18 @@ function diffStrings(a2, b, options) {
|
|
|
21188
21188
|
diffs.push(new Diff(DIFF_DELETE, a2.slice(aIndex, aCommon)));
|
|
21189
21189
|
}
|
|
21190
21190
|
if (bIndex !== bCommon) {
|
|
21191
|
-
diffs.push(new Diff(DIFF_INSERT,
|
|
21191
|
+
diffs.push(new Diff(DIFF_INSERT, b2.slice(bIndex, bCommon)));
|
|
21192
21192
|
}
|
|
21193
21193
|
aIndex = aCommon + nCommon;
|
|
21194
21194
|
bIndex = bCommon + nCommon;
|
|
21195
|
-
diffs.push(new Diff(DIFF_EQUAL,
|
|
21195
|
+
diffs.push(new Diff(DIFF_EQUAL, b2.slice(bCommon, bIndex)));
|
|
21196
21196
|
}, "foundSubsequence");
|
|
21197
21197
|
diffSequences(aLength, bLength, isCommon, foundSubsequence);
|
|
21198
21198
|
if (aIndex !== aLength) {
|
|
21199
21199
|
diffs.push(new Diff(DIFF_DELETE, a2.slice(aIndex)));
|
|
21200
21200
|
}
|
|
21201
21201
|
if (bIndex !== bLength) {
|
|
21202
|
-
diffs.push(new Diff(DIFF_INSERT,
|
|
21202
|
+
diffs.push(new Diff(DIFF_INSERT, b2.slice(bIndex)));
|
|
21203
21203
|
}
|
|
21204
21204
|
return [diffs, truncated];
|
|
21205
21205
|
}
|
|
@@ -21349,23 +21349,23 @@ function hasCommonDiff(diffs, isMultiline) {
|
|
|
21349
21349
|
return diffs.some((diff2) => diff2[0] === DIFF_EQUAL);
|
|
21350
21350
|
}
|
|
21351
21351
|
__name(hasCommonDiff, "hasCommonDiff");
|
|
21352
|
-
function diffStringsUnified(a2,
|
|
21353
|
-
if (a2 !==
|
|
21354
|
-
const isMultiline = a2.includes("\n") ||
|
|
21352
|
+
function diffStringsUnified(a2, b2, options) {
|
|
21353
|
+
if (a2 !== b2 && a2.length !== 0 && b2.length !== 0) {
|
|
21354
|
+
const isMultiline = a2.includes("\n") || b2.includes("\n");
|
|
21355
21355
|
const [diffs, truncated] = diffStringsRaw(isMultiline ? `${a2}
|
|
21356
|
-
` : a2, isMultiline ? `${
|
|
21357
|
-
` :
|
|
21356
|
+
` : a2, isMultiline ? `${b2}
|
|
21357
|
+
` : b2, true, options);
|
|
21358
21358
|
if (hasCommonDiff(diffs, isMultiline)) {
|
|
21359
21359
|
const optionsNormalized = normalizeDiffOptions(options);
|
|
21360
21360
|
const lines = getAlignedDiffs(diffs, optionsNormalized.changeColor);
|
|
21361
21361
|
return printDiffLines(lines, truncated, optionsNormalized);
|
|
21362
21362
|
}
|
|
21363
21363
|
}
|
|
21364
|
-
return diffLinesUnified(a2.split("\n"),
|
|
21364
|
+
return diffLinesUnified(a2.split("\n"), b2.split("\n"), options);
|
|
21365
21365
|
}
|
|
21366
21366
|
__name(diffStringsUnified, "diffStringsUnified");
|
|
21367
|
-
function diffStringsRaw(a2,
|
|
21368
|
-
const [diffs, truncated] = diffStrings(a2,
|
|
21367
|
+
function diffStringsRaw(a2, b2, cleanup, options) {
|
|
21368
|
+
const [diffs, truncated] = diffStrings(a2, b2, options);
|
|
21369
21369
|
if (cleanup) {
|
|
21370
21370
|
diff_cleanupSemantic(diffs);
|
|
21371
21371
|
}
|
|
@@ -21396,8 +21396,8 @@ var FALLBACK_FORMAT_OPTIONS = {
|
|
|
21396
21396
|
maxDepth: 8,
|
|
21397
21397
|
plugins: PLUGINS2
|
|
21398
21398
|
};
|
|
21399
|
-
function diff(a2,
|
|
21400
|
-
if (Object.is(a2,
|
|
21399
|
+
function diff(a2, b2, options) {
|
|
21400
|
+
if (Object.is(a2, b2)) {
|
|
21401
21401
|
return "";
|
|
21402
21402
|
}
|
|
21403
21403
|
const aType = getType3(a2);
|
|
@@ -21413,7 +21413,7 @@ function diff(a2, b, options) {
|
|
|
21413
21413
|
expectedType = a2.getExpectedType();
|
|
21414
21414
|
omitDifference = expectedType === "string";
|
|
21415
21415
|
}
|
|
21416
|
-
if (expectedType !== getType3(
|
|
21416
|
+
if (expectedType !== getType3(b2)) {
|
|
21417
21417
|
let truncate3 = function(s3) {
|
|
21418
21418
|
return s3.length <= MAX_LENGTH ? s3 : `${s3.slice(0, MAX_LENGTH)}...`;
|
|
21419
21419
|
};
|
|
@@ -21421,7 +21421,7 @@ function diff(a2, b, options) {
|
|
|
21421
21421
|
const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);
|
|
21422
21422
|
const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
|
|
21423
21423
|
let aDisplay = format(a2, formatOptions);
|
|
21424
|
-
let bDisplay = format(
|
|
21424
|
+
let bDisplay = format(b2, formatOptions);
|
|
21425
21425
|
const MAX_LENGTH = 1e5;
|
|
21426
21426
|
aDisplay = truncate3(aDisplay);
|
|
21427
21427
|
bDisplay = truncate3(bDisplay);
|
|
@@ -21438,22 +21438,22 @@ ${bDiff}`;
|
|
|
21438
21438
|
}
|
|
21439
21439
|
switch (aType) {
|
|
21440
21440
|
case "string":
|
|
21441
|
-
return diffLinesUnified(a2.split("\n"),
|
|
21441
|
+
return diffLinesUnified(a2.split("\n"), b2.split("\n"), options);
|
|
21442
21442
|
case "boolean":
|
|
21443
21443
|
case "number":
|
|
21444
|
-
return comparePrimitive(a2,
|
|
21444
|
+
return comparePrimitive(a2, b2, options);
|
|
21445
21445
|
case "map":
|
|
21446
|
-
return compareObjects(sortMap(a2), sortMap(
|
|
21446
|
+
return compareObjects(sortMap(a2), sortMap(b2), options);
|
|
21447
21447
|
case "set":
|
|
21448
|
-
return compareObjects(sortSet(a2), sortSet(
|
|
21448
|
+
return compareObjects(sortSet(a2), sortSet(b2), options);
|
|
21449
21449
|
default:
|
|
21450
|
-
return compareObjects(a2,
|
|
21450
|
+
return compareObjects(a2, b2, options);
|
|
21451
21451
|
}
|
|
21452
21452
|
}
|
|
21453
21453
|
__name(diff, "diff");
|
|
21454
|
-
function comparePrimitive(a2,
|
|
21454
|
+
function comparePrimitive(a2, b2, options) {
|
|
21455
21455
|
const aFormat = format(a2, FORMAT_OPTIONS);
|
|
21456
|
-
const bFormat = format(
|
|
21456
|
+
const bFormat = format(b2, FORMAT_OPTIONS);
|
|
21457
21457
|
return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split("\n"), bFormat.split("\n"), options);
|
|
21458
21458
|
}
|
|
21459
21459
|
__name(comparePrimitive, "comparePrimitive");
|
|
@@ -21465,19 +21465,19 @@ function sortSet(set2) {
|
|
|
21465
21465
|
return new Set(Array.from(set2.values()).sort());
|
|
21466
21466
|
}
|
|
21467
21467
|
__name(sortSet, "sortSet");
|
|
21468
|
-
function compareObjects(a2,
|
|
21468
|
+
function compareObjects(a2, b2, options) {
|
|
21469
21469
|
let difference;
|
|
21470
21470
|
let hasThrown = false;
|
|
21471
21471
|
try {
|
|
21472
21472
|
const formatOptions = getFormatOptions(FORMAT_OPTIONS, options);
|
|
21473
|
-
difference = getObjectsDifference(a2,
|
|
21473
|
+
difference = getObjectsDifference(a2, b2, formatOptions, options);
|
|
21474
21474
|
} catch {
|
|
21475
21475
|
hasThrown = true;
|
|
21476
21476
|
}
|
|
21477
21477
|
const noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);
|
|
21478
21478
|
if (difference === void 0 || difference === noDiffMessage) {
|
|
21479
21479
|
const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
|
|
21480
|
-
difference = getObjectsDifference(a2,
|
|
21480
|
+
difference = getObjectsDifference(a2, b2, formatOptions, options);
|
|
21481
21481
|
if (difference !== noDiffMessage && !hasThrown) {
|
|
21482
21482
|
difference = `${getCommonMessage(SIMILAR_MESSAGE, options)}
|
|
21483
21483
|
|
|
@@ -21497,18 +21497,18 @@ function getFormatOptions(formatOptions, options) {
|
|
|
21497
21497
|
};
|
|
21498
21498
|
}
|
|
21499
21499
|
__name(getFormatOptions, "getFormatOptions");
|
|
21500
|
-
function getObjectsDifference(a2,
|
|
21500
|
+
function getObjectsDifference(a2, b2, formatOptions, options) {
|
|
21501
21501
|
const formatOptionsZeroIndent = {
|
|
21502
21502
|
...formatOptions,
|
|
21503
21503
|
indent: 0
|
|
21504
21504
|
};
|
|
21505
21505
|
const aCompare = format(a2, formatOptionsZeroIndent);
|
|
21506
|
-
const bCompare = format(
|
|
21506
|
+
const bCompare = format(b2, formatOptionsZeroIndent);
|
|
21507
21507
|
if (aCompare === bCompare) {
|
|
21508
21508
|
return getCommonMessage(NO_DIFF_MESSAGE, options);
|
|
21509
21509
|
} else {
|
|
21510
21510
|
const aDisplay = format(a2, formatOptions);
|
|
21511
|
-
const bDisplay = format(
|
|
21511
|
+
const bDisplay = format(b2, formatOptions);
|
|
21512
21512
|
return diffLinesUnified2(aDisplay.split("\n"), bDisplay.split("\n"), aCompare.split("\n"), bCompare.split("\n"), options);
|
|
21513
21513
|
}
|
|
21514
21514
|
}
|
|
@@ -21617,8 +21617,8 @@ __name(getCommonAndChangedSubstrings, "getCommonAndChangedSubstrings");
|
|
|
21617
21617
|
// ../node_modules/@vitest/utils/dist/error.js
|
|
21618
21618
|
var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
|
|
21619
21619
|
var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
21620
|
-
function isImmutable(
|
|
21621
|
-
return
|
|
21620
|
+
function isImmutable(v2) {
|
|
21621
|
+
return v2 && (v2[IS_COLLECTION_SYMBOL] || v2[IS_RECORD_SYMBOL]);
|
|
21622
21622
|
}
|
|
21623
21623
|
__name(isImmutable, "isImmutable");
|
|
21624
21624
|
var OBJECT_PROTO = Object.getPrototypeOf({});
|
|
@@ -22284,7 +22284,7 @@ var _Instrumenter = class _Instrumenter {
|
|
|
22284
22284
|
return {
|
|
22285
22285
|
// Calls are sorted to ensure parent calls always come before calls in their callback.
|
|
22286
22286
|
calls: Object.values(callsById).sort(
|
|
22287
|
-
(a2,
|
|
22287
|
+
(a2, b2) => a2.id.localeCompare(b2.id, void 0, { numeric: true })
|
|
22288
22288
|
)
|
|
22289
22289
|
};
|
|
22290
22290
|
});
|
|
@@ -24033,20 +24033,20 @@ function stringDistanceCapped(strA, strB, cap) {
|
|
|
24033
24033
|
memo[i2] = Array(strB.length + 1).fill(0);
|
|
24034
24034
|
memo[i2][0] = i2;
|
|
24035
24035
|
}
|
|
24036
|
-
for (let
|
|
24037
|
-
memo[0][
|
|
24036
|
+
for (let j2 = 0; j2 < strB.length; j2++) {
|
|
24037
|
+
memo[0][j2] = j2;
|
|
24038
24038
|
}
|
|
24039
24039
|
for (let i2 = 1; i2 <= strA.length; i2++) {
|
|
24040
24040
|
let ch = strA.charCodeAt(i2 - 1);
|
|
24041
|
-
for (let
|
|
24042
|
-
if (Math.abs(i2 -
|
|
24043
|
-
memo[i2][
|
|
24041
|
+
for (let j2 = 1; j2 <= strB.length; j2++) {
|
|
24042
|
+
if (Math.abs(i2 - j2) >= cap) {
|
|
24043
|
+
memo[i2][j2] = cap;
|
|
24044
24044
|
continue;
|
|
24045
24045
|
}
|
|
24046
|
-
memo[i2][
|
|
24047
|
-
memo[i2 - 1][
|
|
24048
|
-
memo[i2][
|
|
24049
|
-
memo[i2 - 1][
|
|
24046
|
+
memo[i2][j2] = Math.min(
|
|
24047
|
+
memo[i2 - 1][j2] + 1,
|
|
24048
|
+
memo[i2][j2 - 1] + 1,
|
|
24049
|
+
memo[i2 - 1][j2 - 1] + (ch === strB.charCodeAt(j2 - 1) ? 0 : 1)
|
|
24050
24050
|
);
|
|
24051
24051
|
}
|
|
24052
24052
|
}
|
|
@@ -24207,8 +24207,8 @@ function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
24207
24207
|
}
|
|
24208
24208
|
__name(overwriteChainableMethod, "overwriteChainableMethod");
|
|
24209
24209
|
__name2(overwriteChainableMethod, "overwriteChainableMethod");
|
|
24210
|
-
function compareByInspect(a2,
|
|
24211
|
-
return inspect22(a2) < inspect22(
|
|
24210
|
+
function compareByInspect(a2, b2) {
|
|
24211
|
+
return inspect22(a2) < inspect22(b2) ? -1 : 1;
|
|
24212
24212
|
}
|
|
24213
24213
|
__name(compareByInspect, "compareByInspect");
|
|
24214
24214
|
__name2(compareByInspect, "compareByInspect");
|
|
@@ -24351,8 +24351,8 @@ __name(an, "an");
|
|
|
24351
24351
|
__name2(an, "an");
|
|
24352
24352
|
Assertion.addChainableMethod("an", an);
|
|
24353
24353
|
Assertion.addChainableMethod("a", an);
|
|
24354
|
-
function SameValueZero(a2,
|
|
24355
|
-
return isNaN22(a2) && isNaN22(
|
|
24354
|
+
function SameValueZero(a2, b2) {
|
|
24355
|
+
return isNaN22(a2) && isNaN22(b2) || a2 === b2;
|
|
24356
24356
|
}
|
|
24357
24357
|
__name(SameValueZero, "SameValueZero");
|
|
24358
24358
|
__name2(SameValueZero, "SameValueZero");
|
|
@@ -25317,7 +25317,7 @@ function closeTo(expected, delta, msg) {
|
|
|
25317
25317
|
);
|
|
25318
25318
|
}
|
|
25319
25319
|
new Assertion(expected, flagMsg, ssfi, true).is.numeric;
|
|
25320
|
-
const abs = __name2((
|
|
25320
|
+
const abs = __name2((x2) => x2 < 0n ? -x2 : x2, "abs");
|
|
25321
25321
|
const strip = __name2((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip");
|
|
25322
25322
|
this.assert(
|
|
25323
25323
|
strip(abs(obj - expected)) <= delta,
|
|
@@ -26528,6 +26528,8 @@ __name2(use, "use");
|
|
|
26528
26528
|
// ../node_modules/@testing-library/jest-dom/dist/matchers.mjs
|
|
26529
26529
|
var matchers_exports = {};
|
|
26530
26530
|
__export(matchers_exports, {
|
|
26531
|
+
toAppearAfter: () => toAppearAfter,
|
|
26532
|
+
toAppearBefore: () => toAppearBefore,
|
|
26531
26533
|
toBeChecked: () => toBeChecked,
|
|
26532
26534
|
toBeDisabled: () => toBeDisabled,
|
|
26533
26535
|
toBeEmpty: () => toBeEmpty,
|
|
@@ -26561,7 +26563,7 @@ __export(matchers_exports, {
|
|
|
26561
26563
|
toHaveValue: () => toHaveValue
|
|
26562
26564
|
});
|
|
26563
26565
|
|
|
26564
|
-
// ../node_modules/@testing-library/jest-dom/dist/matchers-
|
|
26566
|
+
// ../node_modules/@testing-library/jest-dom/dist/matchers-35e4d3bd.mjs
|
|
26565
26567
|
var import_redent = __toESM(require_redent(), 1);
|
|
26566
26568
|
|
|
26567
26569
|
// ../node_modules/@adobe/css-tools/dist/esm/adobe-css-tools.mjs
|
|
@@ -26662,43 +26664,43 @@ function c(t2, e2) {
|
|
|
26662
26664
|
__name(c, "c");
|
|
26663
26665
|
var m2 = /* @__PURE__ */ __name((s3, a2) => {
|
|
26664
26666
|
a2 = a2 || {};
|
|
26665
|
-
let m3 = 1,
|
|
26666
|
-
function
|
|
26667
|
-
const t2 = { line: m3, column:
|
|
26668
|
-
return (i2) => (i2.position = new e(t2, { line: m3, column:
|
|
26667
|
+
let m3 = 1, h3 = 1;
|
|
26668
|
+
function u3() {
|
|
26669
|
+
const t2 = { line: m3, column: h3 };
|
|
26670
|
+
return (i2) => (i2.position = new e(t2, { line: m3, column: h3 }, a2?.source || ""), $(), i2);
|
|
26669
26671
|
}
|
|
26670
|
-
__name(
|
|
26672
|
+
__name(u3, "u");
|
|
26671
26673
|
const p2 = [];
|
|
26672
|
-
function
|
|
26673
|
-
const i2 = new t(a2?.source || "", e2, m3,
|
|
26674
|
+
function l2(e2) {
|
|
26675
|
+
const i2 = new t(a2?.source || "", e2, m3, h3, s3);
|
|
26674
26676
|
if (!a2?.silent) throw i2;
|
|
26675
26677
|
p2.push(i2);
|
|
26676
26678
|
}
|
|
26677
|
-
__name(
|
|
26678
|
-
function
|
|
26679
|
+
__name(l2, "l");
|
|
26680
|
+
function f4() {
|
|
26679
26681
|
const t2 = /^{\s*/.exec(s3);
|
|
26680
26682
|
return !!t2 && (g2(t2), true);
|
|
26681
26683
|
}
|
|
26682
|
-
__name(
|
|
26684
|
+
__name(f4, "f");
|
|
26683
26685
|
function d() {
|
|
26684
26686
|
const t2 = /^}/.exec(s3);
|
|
26685
26687
|
return !!t2 && (g2(t2), true);
|
|
26686
26688
|
}
|
|
26687
26689
|
__name(d, "d");
|
|
26688
|
-
function
|
|
26690
|
+
function y2() {
|
|
26689
26691
|
let t2;
|
|
26690
26692
|
const e2 = [];
|
|
26691
|
-
for ($(),
|
|
26693
|
+
for ($(), x2(e2); s3.length && "}" !== s3.charAt(0) && (t2 = A() || S2(), t2); ) e2.push(t2), x2(e2);
|
|
26692
26694
|
return e2;
|
|
26693
26695
|
}
|
|
26694
|
-
__name(
|
|
26696
|
+
__name(y2, "y");
|
|
26695
26697
|
function g2(t2) {
|
|
26696
26698
|
const e2 = t2[0];
|
|
26697
26699
|
return function(t3) {
|
|
26698
26700
|
const e3 = t3.match(/\n/g);
|
|
26699
26701
|
e3 && (m3 += e3.length);
|
|
26700
26702
|
const i2 = t3.lastIndexOf("\n");
|
|
26701
|
-
|
|
26703
|
+
h3 = ~i2 ? t3.length - i2 : h3 + t3.length;
|
|
26702
26704
|
}(e2), s3 = s3.slice(e2.length), t2;
|
|
26703
26705
|
}
|
|
26704
26706
|
__name(g2, "g");
|
|
@@ -26707,21 +26709,21 @@ var m2 = /* @__PURE__ */ __name((s3, a2) => {
|
|
|
26707
26709
|
t2 && g2(t2);
|
|
26708
26710
|
}
|
|
26709
26711
|
__name($, "$");
|
|
26710
|
-
function
|
|
26712
|
+
function x2(t2) {
|
|
26711
26713
|
t2 = t2 || [];
|
|
26712
26714
|
let e2 = V();
|
|
26713
26715
|
for (; e2; ) t2.push(e2), e2 = V();
|
|
26714
26716
|
return t2;
|
|
26715
26717
|
}
|
|
26716
|
-
__name(
|
|
26718
|
+
__name(x2, "x");
|
|
26717
26719
|
function V() {
|
|
26718
|
-
const t2 =
|
|
26720
|
+
const t2 = u3();
|
|
26719
26721
|
if ("/" !== s3.charAt(0) || "*" !== s3.charAt(1)) return;
|
|
26720
26722
|
const e2 = /^\/\*[^]*?\*\//.exec(s3);
|
|
26721
|
-
return e2 ? (g2(e2), t2({ type: i.comment, comment: e2[0].slice(2, -2) })) :
|
|
26723
|
+
return e2 ? (g2(e2), t2({ type: i.comment, comment: e2[0].slice(2, -2) })) : l2("End of comment missing");
|
|
26722
26724
|
}
|
|
26723
26725
|
__name(V, "V");
|
|
26724
|
-
function
|
|
26726
|
+
function k2() {
|
|
26725
26727
|
const t2 = /^([^{]+)/.exec(s3);
|
|
26726
26728
|
if (!t2) return;
|
|
26727
26729
|
g2(t2);
|
|
@@ -26736,35 +26738,35 @@ var m2 = /* @__PURE__ */ __name((s3, a2) => {
|
|
|
26736
26738
|
return i2;
|
|
26737
26739
|
})(o(t2[0]).replace(r, ""), [","]).map((t3) => o(t3));
|
|
26738
26740
|
}
|
|
26739
|
-
__name(
|
|
26740
|
-
function
|
|
26741
|
-
const t2 =
|
|
26741
|
+
__name(k2, "k");
|
|
26742
|
+
function v2() {
|
|
26743
|
+
const t2 = u3(), e2 = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(s3);
|
|
26742
26744
|
if (!e2) return;
|
|
26743
26745
|
g2(e2);
|
|
26744
26746
|
const c2 = o(e2[0]), a3 = /^:\s*/.exec(s3);
|
|
26745
|
-
if (!a3) return
|
|
26747
|
+
if (!a3) return l2("property missing ':'");
|
|
26746
26748
|
g2(a3);
|
|
26747
26749
|
let m4 = "";
|
|
26748
|
-
const
|
|
26749
|
-
if (-1 !==
|
|
26750
|
-
m4 = s3.substring(0,
|
|
26750
|
+
const h4 = n(s3, [";", "}"]);
|
|
26751
|
+
if (-1 !== h4) {
|
|
26752
|
+
m4 = s3.substring(0, h4);
|
|
26751
26753
|
g2([m4]), m4 = o(m4).replace(r, "");
|
|
26752
26754
|
}
|
|
26753
|
-
const p3 = t2({ type: i.declaration, property: c2.replace(r, ""), value: m4 }),
|
|
26754
|
-
return
|
|
26755
|
+
const p3 = t2({ type: i.declaration, property: c2.replace(r, ""), value: m4 }), f5 = /^[;\s]*/.exec(s3);
|
|
26756
|
+
return f5 && g2(f5), p3;
|
|
26755
26757
|
}
|
|
26756
|
-
__name(
|
|
26757
|
-
function
|
|
26758
|
+
__name(v2, "v");
|
|
26759
|
+
function w2() {
|
|
26758
26760
|
const t2 = [];
|
|
26759
|
-
if (!
|
|
26760
|
-
|
|
26761
|
-
let e2 =
|
|
26762
|
-
for (; e2; ) t2.push(e2),
|
|
26763
|
-
return d() ? t2 :
|
|
26764
|
-
}
|
|
26765
|
-
__name(
|
|
26766
|
-
function
|
|
26767
|
-
const t2 = [], e2 =
|
|
26761
|
+
if (!f4()) return l2("missing '{'");
|
|
26762
|
+
x2(t2);
|
|
26763
|
+
let e2 = v2();
|
|
26764
|
+
for (; e2; ) t2.push(e2), x2(t2), e2 = v2();
|
|
26765
|
+
return d() ? t2 : l2("missing '}'");
|
|
26766
|
+
}
|
|
26767
|
+
__name(w2, "w");
|
|
26768
|
+
function b2() {
|
|
26769
|
+
const t2 = [], e2 = u3();
|
|
26768
26770
|
let n2 = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(s3);
|
|
26769
26771
|
for (; n2; ) {
|
|
26770
26772
|
const e3 = g2(n2);
|
|
@@ -26772,112 +26774,112 @@ var m2 = /* @__PURE__ */ __name((s3, a2) => {
|
|
|
26772
26774
|
const i2 = /^,\s*/.exec(s3);
|
|
26773
26775
|
i2 && g2(i2), n2 = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(s3);
|
|
26774
26776
|
}
|
|
26775
|
-
if (t2.length) return e2({ type: i.keyframe, values: t2, declarations:
|
|
26777
|
+
if (t2.length) return e2({ type: i.keyframe, values: t2, declarations: w2() || [] });
|
|
26776
26778
|
}
|
|
26777
|
-
__name(
|
|
26778
|
-
const
|
|
26779
|
-
function
|
|
26779
|
+
__name(b2, "b");
|
|
26780
|
+
const j2 = M2("import"), O = M2("charset"), E2 = M2("namespace");
|
|
26781
|
+
function M2(t2) {
|
|
26780
26782
|
const e2 = new RegExp("^@" + t2 + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);
|
|
26781
26783
|
return () => {
|
|
26782
|
-
const i2 =
|
|
26784
|
+
const i2 = u3(), n2 = e2.exec(s3);
|
|
26783
26785
|
if (!n2) return;
|
|
26784
26786
|
const r2 = g2(n2), o2 = { type: t2 };
|
|
26785
26787
|
return o2[t2] = r2[1].trim(), i2(o2);
|
|
26786
26788
|
};
|
|
26787
26789
|
}
|
|
26788
|
-
__name(
|
|
26790
|
+
__name(M2, "M");
|
|
26789
26791
|
function A() {
|
|
26790
26792
|
if ("@" === s3[0]) return function() {
|
|
26791
|
-
const t2 =
|
|
26793
|
+
const t2 = u3(), e2 = /^@([-\w]+)?keyframes\s*/.exec(s3);
|
|
26792
26794
|
if (!e2) return;
|
|
26793
26795
|
const n2 = g2(e2)[1], r2 = /^([-\w]+)\s*/.exec(s3);
|
|
26794
|
-
if (!r2) return
|
|
26796
|
+
if (!r2) return l2("@keyframes missing name");
|
|
26795
26797
|
const o2 = g2(r2)[1];
|
|
26796
|
-
if (!
|
|
26797
|
-
let c2 =
|
|
26798
|
-
for (; a3; ) c2.push(a3), c2 = c2.concat(
|
|
26799
|
-
return d() ? t2({ type: i.keyframes, name: o2, vendor: n2, keyframes: c2 }) :
|
|
26798
|
+
if (!f4()) return l2("@keyframes missing '{'");
|
|
26799
|
+
let c2 = x2(), a3 = b2();
|
|
26800
|
+
for (; a3; ) c2.push(a3), c2 = c2.concat(x2()), a3 = b2();
|
|
26801
|
+
return d() ? t2({ type: i.keyframes, name: o2, vendor: n2, keyframes: c2 }) : l2("@keyframes missing '}'");
|
|
26800
26802
|
}() || function() {
|
|
26801
|
-
const t2 =
|
|
26803
|
+
const t2 = u3(), e2 = /^@media *([^{]+)/.exec(s3);
|
|
26802
26804
|
if (!e2) return;
|
|
26803
26805
|
const n2 = o(g2(e2)[1]);
|
|
26804
|
-
if (!
|
|
26805
|
-
const r2 =
|
|
26806
|
-
return d() ? t2({ type: i.media, media: n2, rules: r2 }) :
|
|
26806
|
+
if (!f4()) return l2("@media missing '{'");
|
|
26807
|
+
const r2 = x2().concat(y2());
|
|
26808
|
+
return d() ? t2({ type: i.media, media: n2, rules: r2 }) : l2("@media missing '}'");
|
|
26807
26809
|
}() || function() {
|
|
26808
|
-
const t2 =
|
|
26810
|
+
const t2 = u3(), e2 = /^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(s3);
|
|
26809
26811
|
if (!e2) return;
|
|
26810
26812
|
const n2 = g2(e2);
|
|
26811
26813
|
return t2({ type: i.customMedia, name: o(n2[1]), media: o(n2[2]) });
|
|
26812
26814
|
}() || function() {
|
|
26813
|
-
const t2 =
|
|
26815
|
+
const t2 = u3(), e2 = /^@supports *([^{]+)/.exec(s3);
|
|
26814
26816
|
if (!e2) return;
|
|
26815
26817
|
const n2 = o(g2(e2)[1]);
|
|
26816
|
-
if (!
|
|
26817
|
-
const r2 =
|
|
26818
|
-
return d() ? t2({ type: i.supports, supports: n2, rules: r2 }) :
|
|
26819
|
-
}() ||
|
|
26820
|
-
const t2 =
|
|
26818
|
+
if (!f4()) return l2("@supports missing '{'");
|
|
26819
|
+
const r2 = x2().concat(y2());
|
|
26820
|
+
return d() ? t2({ type: i.supports, supports: n2, rules: r2 }) : l2("@supports missing '}'");
|
|
26821
|
+
}() || j2() || O() || E2() || function() {
|
|
26822
|
+
const t2 = u3(), e2 = /^@([-\w]+)?document *([^{]+)/.exec(s3);
|
|
26821
26823
|
if (!e2) return;
|
|
26822
26824
|
const n2 = g2(e2), r2 = o(n2[1]), c2 = o(n2[2]);
|
|
26823
|
-
if (!
|
|
26824
|
-
const a3 =
|
|
26825
|
-
return d() ? t2({ type: i.document, document: c2, vendor: r2, rules: a3 }) :
|
|
26825
|
+
if (!f4()) return l2("@document missing '{'");
|
|
26826
|
+
const a3 = x2().concat(y2());
|
|
26827
|
+
return d() ? t2({ type: i.document, document: c2, vendor: r2, rules: a3 }) : l2("@document missing '}'");
|
|
26826
26828
|
}() || function() {
|
|
26827
|
-
const t2 =
|
|
26829
|
+
const t2 = u3(), e2 = /^@page */.exec(s3);
|
|
26828
26830
|
if (!e2) return;
|
|
26829
26831
|
g2(e2);
|
|
26830
|
-
const n2 =
|
|
26831
|
-
if (!
|
|
26832
|
-
let r2 =
|
|
26833
|
-
for (; o2; ) r2.push(o2), r2 = r2.concat(
|
|
26834
|
-
return d() ? t2({ type: i.page, selectors: n2, declarations: r2 }) :
|
|
26832
|
+
const n2 = k2() || [];
|
|
26833
|
+
if (!f4()) return l2("@page missing '{'");
|
|
26834
|
+
let r2 = x2(), o2 = v2();
|
|
26835
|
+
for (; o2; ) r2.push(o2), r2 = r2.concat(x2()), o2 = v2();
|
|
26836
|
+
return d() ? t2({ type: i.page, selectors: n2, declarations: r2 }) : l2("@page missing '}'");
|
|
26835
26837
|
}() || function() {
|
|
26836
|
-
const t2 =
|
|
26838
|
+
const t2 = u3(), e2 = /^@host\s*/.exec(s3);
|
|
26837
26839
|
if (!e2) return;
|
|
26838
|
-
if (g2(e2), !
|
|
26839
|
-
const n2 =
|
|
26840
|
-
return d() ? t2({ type: i.host, rules: n2 }) :
|
|
26840
|
+
if (g2(e2), !f4()) return l2("@host missing '{'");
|
|
26841
|
+
const n2 = x2().concat(y2());
|
|
26842
|
+
return d() ? t2({ type: i.host, rules: n2 }) : l2("@host missing '}'");
|
|
26841
26843
|
}() || function() {
|
|
26842
|
-
const t2 =
|
|
26844
|
+
const t2 = u3(), e2 = /^@font-face\s*/.exec(s3);
|
|
26843
26845
|
if (!e2) return;
|
|
26844
|
-
if (g2(e2), !
|
|
26845
|
-
let n2 =
|
|
26846
|
-
for (; r2; ) n2.push(r2), n2 = n2.concat(
|
|
26847
|
-
return d() ? t2({ type: i.fontFace, declarations: n2 }) :
|
|
26846
|
+
if (g2(e2), !f4()) return l2("@font-face missing '{'");
|
|
26847
|
+
let n2 = x2(), r2 = v2();
|
|
26848
|
+
for (; r2; ) n2.push(r2), n2 = n2.concat(x2()), r2 = v2();
|
|
26849
|
+
return d() ? t2({ type: i.fontFace, declarations: n2 }) : l2("@font-face missing '}'");
|
|
26848
26850
|
}() || function() {
|
|
26849
|
-
const t2 =
|
|
26851
|
+
const t2 = u3(), e2 = /^@container *([^{]+)/.exec(s3);
|
|
26850
26852
|
if (!e2) return;
|
|
26851
26853
|
const n2 = o(g2(e2)[1]);
|
|
26852
|
-
if (!
|
|
26853
|
-
const r2 =
|
|
26854
|
-
return d() ? t2({ type: i.container, container: n2, rules: r2 }) :
|
|
26854
|
+
if (!f4()) return l2("@container missing '{'");
|
|
26855
|
+
const r2 = x2().concat(y2());
|
|
26856
|
+
return d() ? t2({ type: i.container, container: n2, rules: r2 }) : l2("@container missing '}'");
|
|
26855
26857
|
}() || function() {
|
|
26856
|
-
const t2 =
|
|
26858
|
+
const t2 = u3(), e2 = /^@starting-style\s*/.exec(s3);
|
|
26857
26859
|
if (!e2) return;
|
|
26858
|
-
if (g2(e2), !
|
|
26859
|
-
const n2 =
|
|
26860
|
-
return d() ? t2({ type: i.startingStyle, rules: n2 }) :
|
|
26860
|
+
if (g2(e2), !f4()) return l2("@starting-style missing '{'");
|
|
26861
|
+
const n2 = x2().concat(y2());
|
|
26862
|
+
return d() ? t2({ type: i.startingStyle, rules: n2 }) : l2("@starting-style missing '}'");
|
|
26861
26863
|
}() || function() {
|
|
26862
|
-
const t2 =
|
|
26864
|
+
const t2 = u3(), e2 = /^@layer *([^{;@]+)/.exec(s3);
|
|
26863
26865
|
if (!e2) return;
|
|
26864
26866
|
const n2 = o(g2(e2)[1]);
|
|
26865
|
-
if (!
|
|
26867
|
+
if (!f4()) {
|
|
26866
26868
|
const e3 = /^[;\s]*/.exec(s3);
|
|
26867
26869
|
return e3 && g2(e3), t2({ type: i.layer, layer: n2 });
|
|
26868
26870
|
}
|
|
26869
|
-
const r2 =
|
|
26870
|
-
return d() ? t2({ type: i.layer, layer: n2, rules: r2 }) :
|
|
26871
|
+
const r2 = x2().concat(y2());
|
|
26872
|
+
return d() ? t2({ type: i.layer, layer: n2, rules: r2 }) : l2("@layer missing '}'");
|
|
26871
26873
|
}();
|
|
26872
26874
|
}
|
|
26873
26875
|
__name(A, "A");
|
|
26874
|
-
function
|
|
26875
|
-
const t2 =
|
|
26876
|
-
return e2 ? (
|
|
26876
|
+
function S2() {
|
|
26877
|
+
const t2 = u3(), e2 = k2();
|
|
26878
|
+
return e2 ? (x2(), t2({ type: i.rule, selectors: e2, declarations: w2() || [] })) : l2("selector missing");
|
|
26877
26879
|
}
|
|
26878
|
-
__name(
|
|
26880
|
+
__name(S2, "S");
|
|
26879
26881
|
return c(function() {
|
|
26880
|
-
const t2 =
|
|
26882
|
+
const t2 = y2();
|
|
26881
26883
|
return { type: i.stylesheet, stylesheet: { source: a2?.source, rules: t2, parsingErrors: p2 } };
|
|
26882
26884
|
}());
|
|
26883
26885
|
}, "m");
|
|
@@ -26918,16 +26920,16 @@ function arrayFrom(arrayLike, mapFn) {
|
|
|
26918
26920
|
}
|
|
26919
26921
|
var len = toLength(items.length);
|
|
26920
26922
|
var A = isCallable(C2) ? Object(new C2(len)) : new Array(len);
|
|
26921
|
-
var
|
|
26923
|
+
var k2 = 0;
|
|
26922
26924
|
var kValue;
|
|
26923
|
-
while (
|
|
26924
|
-
kValue = items[
|
|
26925
|
+
while (k2 < len) {
|
|
26926
|
+
kValue = items[k2];
|
|
26925
26927
|
if (mapFn) {
|
|
26926
|
-
A[
|
|
26928
|
+
A[k2] = mapFn(kValue, k2);
|
|
26927
26929
|
} else {
|
|
26928
|
-
A[
|
|
26930
|
+
A[k2] = kValue;
|
|
26929
26931
|
}
|
|
26930
|
-
|
|
26932
|
+
k2 += 1;
|
|
26931
26933
|
}
|
|
26932
26934
|
A.length = len;
|
|
26933
26935
|
return A;
|
|
@@ -27807,7 +27809,7 @@ function computeAccessibleName(root2) {
|
|
|
27807
27809
|
}
|
|
27808
27810
|
__name(computeAccessibleName, "computeAccessibleName");
|
|
27809
27811
|
|
|
27810
|
-
// ../node_modules/@testing-library/jest-dom/dist/matchers-
|
|
27812
|
+
// ../node_modules/@testing-library/jest-dom/dist/matchers-35e4d3bd.mjs
|
|
27811
27813
|
var import_aria_query = __toESM(require_lib(), 1);
|
|
27812
27814
|
var import_picocolors = __toESM(require_picocolors_browser(), 1);
|
|
27813
27815
|
var import_css = __toESM(require_css_escape(), 1);
|
|
@@ -28013,7 +28015,7 @@ function toSentence(array, { wordConnector = ", ", lastWordConnector = " and " }
|
|
|
28013
28015
|
__name(toSentence, "toSentence");
|
|
28014
28016
|
function compareAsSet(val1, val2) {
|
|
28015
28017
|
if (Array.isArray(val1) && Array.isArray(val2)) {
|
|
28016
|
-
return [...new Set(val1)].every((
|
|
28018
|
+
return [...new Set(val1)].every((v2) => new Set(val2).has(v2));
|
|
28017
28019
|
}
|
|
28018
28020
|
return val1 === val2;
|
|
28019
28021
|
}
|
|
@@ -29344,8 +29346,68 @@ function toBePartiallyPressed(element) {
|
|
|
29344
29346
|
};
|
|
29345
29347
|
}
|
|
29346
29348
|
__name(toBePartiallyPressed, "toBePartiallyPressed");
|
|
29349
|
+
var DOCUMENT_POSITION_DISCONNECTED = 1;
|
|
29350
|
+
var DOCUMENT_POSITION_PRECEDING = 2;
|
|
29351
|
+
var DOCUMENT_POSITION_FOLLOWING = 4;
|
|
29352
|
+
var DOCUMENT_POSITION_CONTAINS = 8;
|
|
29353
|
+
var DOCUMENT_POSITION_CONTAINED_BY = 16;
|
|
29354
|
+
var DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32;
|
|
29355
|
+
var DOCUMENT_POSITIONS_STRINGS = {
|
|
29356
|
+
[DOCUMENT_POSITION_DISCONNECTED]: "Node.DOCUMENT_POSITION_DISCONNECTED",
|
|
29357
|
+
[DOCUMENT_POSITION_PRECEDING]: "Node.DOCUMENT_POSITION_PRECEDING",
|
|
29358
|
+
[DOCUMENT_POSITION_FOLLOWING]: "Node.DOCUMENT_POSITION_FOLLOWING",
|
|
29359
|
+
[DOCUMENT_POSITION_CONTAINS]: "Node.DOCUMENT_POSITION_CONTAINS",
|
|
29360
|
+
[DOCUMENT_POSITION_CONTAINED_BY]: "Node.DOCUMENT_POSITION_CONTAINED_BY",
|
|
29361
|
+
[DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"
|
|
29362
|
+
};
|
|
29363
|
+
function makeDocumentPositionErrorString(documentPosition) {
|
|
29364
|
+
if (documentPosition in DOCUMENT_POSITIONS_STRINGS) {
|
|
29365
|
+
return `${DOCUMENT_POSITIONS_STRINGS[documentPosition]} (${documentPosition})`;
|
|
29366
|
+
}
|
|
29367
|
+
return `Unknown document position (${documentPosition})`;
|
|
29368
|
+
}
|
|
29369
|
+
__name(makeDocumentPositionErrorString, "makeDocumentPositionErrorString");
|
|
29370
|
+
function checkToAppear(methodName, targetDocumentPosition) {
|
|
29371
|
+
return function(element, secondElement) {
|
|
29372
|
+
checkHtmlElement(element, toAppearBefore, this);
|
|
29373
|
+
checkHtmlElement(secondElement, toAppearBefore, this);
|
|
29374
|
+
const documentPosition = element.compareDocumentPosition(secondElement);
|
|
29375
|
+
const pass = documentPosition === targetDocumentPosition;
|
|
29376
|
+
return {
|
|
29377
|
+
pass,
|
|
29378
|
+
message: /* @__PURE__ */ __name(() => {
|
|
29379
|
+
return [
|
|
29380
|
+
this.utils.matcherHint(
|
|
29381
|
+
`${this.isNot ? ".not" : ""}.${methodName}`,
|
|
29382
|
+
"element",
|
|
29383
|
+
"secondElement"
|
|
29384
|
+
),
|
|
29385
|
+
"",
|
|
29386
|
+
`Received: ${makeDocumentPositionErrorString(documentPosition)}`
|
|
29387
|
+
].join("\n");
|
|
29388
|
+
}, "message")
|
|
29389
|
+
};
|
|
29390
|
+
};
|
|
29391
|
+
}
|
|
29392
|
+
__name(checkToAppear, "checkToAppear");
|
|
29393
|
+
function toAppearBefore(element, secondElement) {
|
|
29394
|
+
return checkToAppear("toAppearBefore", DOCUMENT_POSITION_FOLLOWING).apply(
|
|
29395
|
+
this,
|
|
29396
|
+
[element, secondElement]
|
|
29397
|
+
);
|
|
29398
|
+
}
|
|
29399
|
+
__name(toAppearBefore, "toAppearBefore");
|
|
29400
|
+
function toAppearAfter(element, secondElement) {
|
|
29401
|
+
return checkToAppear("toAppearAfter", DOCUMENT_POSITION_PRECEDING).apply(
|
|
29402
|
+
this,
|
|
29403
|
+
[element, secondElement]
|
|
29404
|
+
);
|
|
29405
|
+
}
|
|
29406
|
+
__name(toAppearAfter, "toAppearAfter");
|
|
29347
29407
|
var extensions = Object.freeze({
|
|
29348
29408
|
__proto__: null,
|
|
29409
|
+
toAppearAfter,
|
|
29410
|
+
toAppearBefore,
|
|
29349
29411
|
toBeChecked,
|
|
29350
29412
|
toBeDisabled,
|
|
29351
29413
|
toBeEmpty,
|
|
@@ -29837,179 +29899,179 @@ var reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
|
29837
29899
|
var SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
|
|
29838
29900
|
|
|
29839
29901
|
// ../node_modules/@vitest/spy/node_modules/tinyspy/dist/index.js
|
|
29840
|
-
function
|
|
29841
|
-
if (!
|
|
29842
|
-
throw new Error(
|
|
29843
|
-
}
|
|
29844
|
-
__name(
|
|
29845
|
-
function
|
|
29846
|
-
return typeof
|
|
29847
|
-
}
|
|
29848
|
-
__name(
|
|
29849
|
-
function
|
|
29850
|
-
return
|
|
29851
|
-
}
|
|
29852
|
-
__name(
|
|
29853
|
-
function
|
|
29854
|
-
Object.defineProperty(
|
|
29855
|
-
}
|
|
29856
|
-
__name(
|
|
29857
|
-
function
|
|
29858
|
-
|
|
29859
|
-
}
|
|
29860
|
-
__name(
|
|
29861
|
-
var
|
|
29862
|
-
var
|
|
29863
|
-
var
|
|
29864
|
-
|
|
29865
|
-
}, "
|
|
29866
|
-
var
|
|
29867
|
-
value: { reset: /* @__PURE__ */ __name(() =>
|
|
29868
|
-
}),
|
|
29869
|
-
var
|
|
29870
|
-
function
|
|
29871
|
-
|
|
29872
|
-
|
|
29902
|
+
function S(e2, t2) {
|
|
29903
|
+
if (!e2)
|
|
29904
|
+
throw new Error(t2);
|
|
29905
|
+
}
|
|
29906
|
+
__name(S, "S");
|
|
29907
|
+
function f2(e2, t2) {
|
|
29908
|
+
return typeof t2 === e2;
|
|
29909
|
+
}
|
|
29910
|
+
__name(f2, "f");
|
|
29911
|
+
function w(e2) {
|
|
29912
|
+
return e2 instanceof Promise;
|
|
29913
|
+
}
|
|
29914
|
+
__name(w, "w");
|
|
29915
|
+
function u(e2, t2, r2) {
|
|
29916
|
+
Object.defineProperty(e2, t2, r2);
|
|
29917
|
+
}
|
|
29918
|
+
__name(u, "u");
|
|
29919
|
+
function l(e2, t2, r2) {
|
|
29920
|
+
u(e2, t2, { value: r2, configurable: true, writable: true });
|
|
29921
|
+
}
|
|
29922
|
+
__name(l, "l");
|
|
29923
|
+
var y = Symbol.for("tinyspy:spy");
|
|
29924
|
+
var x = /* @__PURE__ */ new Set();
|
|
29925
|
+
var h2 = /* @__PURE__ */ __name((e2) => {
|
|
29926
|
+
e2.called = false, e2.callCount = 0, e2.calls = [], e2.results = [], e2.resolves = [], e2.next = [];
|
|
29927
|
+
}, "h");
|
|
29928
|
+
var k = /* @__PURE__ */ __name((e2) => (u(e2, y, {
|
|
29929
|
+
value: { reset: /* @__PURE__ */ __name(() => h2(e2[y]), "reset") }
|
|
29930
|
+
}), e2[y]), "k");
|
|
29931
|
+
var T = /* @__PURE__ */ __name((e2) => e2[y] || k(e2), "T");
|
|
29932
|
+
function R(e2) {
|
|
29933
|
+
S(
|
|
29934
|
+
f2("function", e2) || f2("undefined", e2),
|
|
29873
29935
|
"cannot spy on a non-function value"
|
|
29874
29936
|
);
|
|
29875
|
-
let
|
|
29876
|
-
let
|
|
29877
|
-
|
|
29878
|
-
let
|
|
29879
|
-
if (
|
|
29880
|
-
|
|
29881
|
-
let [
|
|
29882
|
-
if (
|
|
29883
|
-
return
|
|
29884
|
-
throw
|
|
29885
|
-
}
|
|
29886
|
-
let
|
|
29887
|
-
if (
|
|
29937
|
+
let t2 = /* @__PURE__ */ __name(function(...s3) {
|
|
29938
|
+
let n2 = T(t2);
|
|
29939
|
+
n2.called = true, n2.callCount++, n2.calls.push(s3);
|
|
29940
|
+
let d = n2.next.shift();
|
|
29941
|
+
if (d) {
|
|
29942
|
+
n2.results.push(d);
|
|
29943
|
+
let [a2, i2] = d;
|
|
29944
|
+
if (a2 === "ok")
|
|
29945
|
+
return i2;
|
|
29946
|
+
throw i2;
|
|
29947
|
+
}
|
|
29948
|
+
let o2, c2 = "ok", p2 = n2.results.length;
|
|
29949
|
+
if (n2.impl)
|
|
29888
29950
|
try {
|
|
29889
|
-
new.target ?
|
|
29890
|
-
} catch (
|
|
29891
|
-
throw
|
|
29892
|
-
}
|
|
29893
|
-
let
|
|
29894
|
-
return
|
|
29895
|
-
(
|
|
29896
|
-
(
|
|
29897
|
-
),
|
|
29898
|
-
}, "
|
|
29899
|
-
|
|
29900
|
-
let
|
|
29901
|
-
return
|
|
29902
|
-
}
|
|
29903
|
-
__name(
|
|
29904
|
-
function
|
|
29905
|
-
return !!
|
|
29906
|
-
}
|
|
29907
|
-
__name(
|
|
29908
|
-
var
|
|
29909
|
-
let
|
|
29910
|
-
if (
|
|
29911
|
-
return [
|
|
29912
|
-
let
|
|
29913
|
-
for (;
|
|
29914
|
-
let
|
|
29915
|
-
if (
|
|
29916
|
-
return [
|
|
29917
|
-
|
|
29918
|
-
}
|
|
29919
|
-
}, "
|
|
29920
|
-
var
|
|
29921
|
-
|
|
29922
|
-
}, "
|
|
29923
|
-
function
|
|
29924
|
-
|
|
29925
|
-
!
|
|
29951
|
+
new.target ? o2 = Reflect.construct(n2.impl, s3, new.target) : o2 = n2.impl.apply(this, s3), c2 = "ok";
|
|
29952
|
+
} catch (a2) {
|
|
29953
|
+
throw o2 = a2, c2 = "error", n2.results.push([c2, a2]), a2;
|
|
29954
|
+
}
|
|
29955
|
+
let g2 = [c2, o2];
|
|
29956
|
+
return w(o2) && o2.then(
|
|
29957
|
+
(a2) => n2.resolves[p2] = ["ok", a2],
|
|
29958
|
+
(a2) => n2.resolves[p2] = ["error", a2]
|
|
29959
|
+
), n2.results.push(g2), o2;
|
|
29960
|
+
}, "t");
|
|
29961
|
+
l(t2, "_isMockFunction", true), l(t2, "length", e2 ? e2.length : 0), l(t2, "name", e2 && e2.name || "spy");
|
|
29962
|
+
let r2 = T(t2);
|
|
29963
|
+
return r2.reset(), r2.impl = e2, t2;
|
|
29964
|
+
}
|
|
29965
|
+
__name(R, "R");
|
|
29966
|
+
function v(e2) {
|
|
29967
|
+
return !!e2 && e2._isMockFunction === true;
|
|
29968
|
+
}
|
|
29969
|
+
__name(v, "v");
|
|
29970
|
+
var b = /* @__PURE__ */ __name((e2, t2) => {
|
|
29971
|
+
let r2 = Object.getOwnPropertyDescriptor(e2, t2);
|
|
29972
|
+
if (r2)
|
|
29973
|
+
return [e2, r2];
|
|
29974
|
+
let s3 = Object.getPrototypeOf(e2);
|
|
29975
|
+
for (; s3 !== null; ) {
|
|
29976
|
+
let n2 = Object.getOwnPropertyDescriptor(s3, t2);
|
|
29977
|
+
if (n2)
|
|
29978
|
+
return [s3, n2];
|
|
29979
|
+
s3 = Object.getPrototypeOf(s3);
|
|
29980
|
+
}
|
|
29981
|
+
}, "b");
|
|
29982
|
+
var P = /* @__PURE__ */ __name((e2, t2) => {
|
|
29983
|
+
t2 != null && typeof t2 == "function" && t2.prototype != null && Object.setPrototypeOf(e2.prototype, t2.prototype);
|
|
29984
|
+
}, "P");
|
|
29985
|
+
function M(e2, t2, r2) {
|
|
29986
|
+
S(
|
|
29987
|
+
!f2("undefined", e2),
|
|
29926
29988
|
"spyOn could not find an object to spy upon"
|
|
29927
|
-
),
|
|
29928
|
-
|
|
29989
|
+
), S(
|
|
29990
|
+
f2("object", e2) || f2("function", e2),
|
|
29929
29991
|
"cannot spyOn on a primitive value"
|
|
29930
29992
|
);
|
|
29931
|
-
let [
|
|
29932
|
-
if (!
|
|
29933
|
-
return [
|
|
29934
|
-
if ("getter" in
|
|
29993
|
+
let [s3, n2] = (() => {
|
|
29994
|
+
if (!f2("object", t2))
|
|
29995
|
+
return [t2, "value"];
|
|
29996
|
+
if ("getter" in t2 && "setter" in t2)
|
|
29935
29997
|
throw new Error("cannot spy on both getter and setter");
|
|
29936
|
-
if ("getter" in
|
|
29937
|
-
return [
|
|
29938
|
-
if ("setter" in
|
|
29939
|
-
return [
|
|
29998
|
+
if ("getter" in t2)
|
|
29999
|
+
return [t2.getter, "get"];
|
|
30000
|
+
if ("setter" in t2)
|
|
30001
|
+
return [t2.setter, "set"];
|
|
29940
30002
|
throw new Error("specify getter or setter to spy on");
|
|
29941
|
-
})(), [
|
|
29942
|
-
|
|
29943
|
-
|
|
29944
|
-
`${String(
|
|
30003
|
+
})(), [d, o2] = b(e2, s3) || [];
|
|
30004
|
+
S(
|
|
30005
|
+
o2 || s3 in e2,
|
|
30006
|
+
`${String(s3)} does not exist`
|
|
29945
30007
|
);
|
|
29946
|
-
let
|
|
29947
|
-
|
|
29948
|
-
let
|
|
29949
|
-
|
|
29950
|
-
let
|
|
29951
|
-
let { value, ...
|
|
30008
|
+
let c2 = false;
|
|
30009
|
+
n2 === "value" && o2 && !o2.value && o2.get && (n2 = "get", c2 = true, r2 = o2.get());
|
|
30010
|
+
let p2;
|
|
30011
|
+
o2 ? p2 = o2[n2] : n2 !== "value" ? p2 = /* @__PURE__ */ __name(() => e2[s3], "p") : p2 = e2[s3], p2 && j(p2) && (p2 = p2[y].getOriginal());
|
|
30012
|
+
let g2 = /* @__PURE__ */ __name((I) => {
|
|
30013
|
+
let { value: F, ...O } = o2 || {
|
|
29952
30014
|
configurable: true,
|
|
29953
30015
|
writable: true
|
|
29954
30016
|
};
|
|
29955
|
-
|
|
29956
|
-
}, "
|
|
29957
|
-
|
|
29958
|
-
}, "
|
|
29959
|
-
|
|
29960
|
-
let
|
|
29961
|
-
|
|
29962
|
-
let
|
|
29963
|
-
return
|
|
29964
|
-
|
|
29965
|
-
),
|
|
29966
|
-
}
|
|
29967
|
-
__name(
|
|
29968
|
-
var
|
|
30017
|
+
n2 !== "value" && delete O.writable, O[n2] = I, u(e2, s3, O);
|
|
30018
|
+
}, "g"), a2 = /* @__PURE__ */ __name(() => {
|
|
30019
|
+
d !== e2 ? Reflect.deleteProperty(e2, s3) : o2 && !p2 ? u(e2, s3, o2) : g2(p2);
|
|
30020
|
+
}, "a");
|
|
30021
|
+
r2 || (r2 = p2);
|
|
30022
|
+
let i2 = E(R(r2), r2);
|
|
30023
|
+
n2 === "value" && P(i2, p2);
|
|
30024
|
+
let m3 = i2[y];
|
|
30025
|
+
return l(m3, "restore", a2), l(m3, "getOriginal", () => c2 ? p2() : p2), l(m3, "willCall", (I) => (m3.impl = I, i2)), g2(
|
|
30026
|
+
c2 ? () => (P(i2, r2), i2) : i2
|
|
30027
|
+
), x.add(i2), i2;
|
|
30028
|
+
}
|
|
30029
|
+
__name(M, "M");
|
|
30030
|
+
var K = /* @__PURE__ */ new Set([
|
|
29969
30031
|
"length",
|
|
29970
30032
|
"name",
|
|
29971
30033
|
"prototype"
|
|
29972
30034
|
]);
|
|
29973
|
-
function
|
|
29974
|
-
let
|
|
29975
|
-
for (;
|
|
29976
|
-
let
|
|
29977
|
-
...Object.getOwnPropertyNames(
|
|
29978
|
-
...Object.getOwnPropertySymbols(
|
|
30035
|
+
function D(e2) {
|
|
30036
|
+
let t2 = /* @__PURE__ */ new Set(), r2 = {};
|
|
30037
|
+
for (; e2 && e2 !== Object.prototype && e2 !== Function.prototype; ) {
|
|
30038
|
+
let s3 = [
|
|
30039
|
+
...Object.getOwnPropertyNames(e2),
|
|
30040
|
+
...Object.getOwnPropertySymbols(e2)
|
|
29979
30041
|
];
|
|
29980
|
-
for (let
|
|
29981
|
-
|
|
29982
|
-
|
|
30042
|
+
for (let n2 of s3)
|
|
30043
|
+
r2[n2] || K.has(n2) || (t2.add(n2), r2[n2] = Object.getOwnPropertyDescriptor(e2, n2));
|
|
30044
|
+
e2 = Object.getPrototypeOf(e2);
|
|
29983
30045
|
}
|
|
29984
30046
|
return {
|
|
29985
|
-
properties,
|
|
29986
|
-
descriptors:
|
|
30047
|
+
properties: t2,
|
|
30048
|
+
descriptors: r2
|
|
29987
30049
|
};
|
|
29988
30050
|
}
|
|
29989
|
-
__name(
|
|
29990
|
-
function
|
|
29991
|
-
if (!
|
|
29992
|
-
|
|
29993
|
-
return
|
|
29994
|
-
let { properties, descriptors:
|
|
29995
|
-
for (let
|
|
29996
|
-
let
|
|
29997
|
-
|
|
30051
|
+
__name(D, "D");
|
|
30052
|
+
function E(e2, t2) {
|
|
30053
|
+
if (!t2 || // the original is already a spy, so it has all the properties
|
|
30054
|
+
y in t2)
|
|
30055
|
+
return e2;
|
|
30056
|
+
let { properties: r2, descriptors: s3 } = D(t2);
|
|
30057
|
+
for (let n2 of r2) {
|
|
30058
|
+
let d = s3[n2];
|
|
30059
|
+
b(e2, n2) || u(e2, n2, d);
|
|
29998
30060
|
}
|
|
29999
|
-
return
|
|
30061
|
+
return e2;
|
|
30000
30062
|
}
|
|
30001
|
-
__name(
|
|
30002
|
-
function
|
|
30003
|
-
return
|
|
30063
|
+
__name(E, "E");
|
|
30064
|
+
function j(e2) {
|
|
30065
|
+
return v(e2) && "getOriginal" in e2[y];
|
|
30004
30066
|
}
|
|
30005
|
-
__name(
|
|
30067
|
+
__name(j, "j");
|
|
30006
30068
|
|
|
30007
30069
|
// ../node_modules/@vitest/spy/dist/index.js
|
|
30008
30070
|
var mocks = /* @__PURE__ */ new Set();
|
|
30009
|
-
function
|
|
30071
|
+
function isMockFunction(fn3) {
|
|
30010
30072
|
return typeof fn3 === "function" && "_isMockFunction" in fn3 && fn3._isMockFunction;
|
|
30011
30073
|
}
|
|
30012
|
-
__name(
|
|
30074
|
+
__name(isMockFunction, "isMockFunction");
|
|
30013
30075
|
function spyOn(obj, method, accessType) {
|
|
30014
30076
|
const dictionary = {
|
|
30015
30077
|
get: "getter",
|
|
@@ -30017,13 +30079,13 @@ function spyOn(obj, method, accessType) {
|
|
|
30017
30079
|
};
|
|
30018
30080
|
const objMethod = accessType ? { [dictionary[accessType]]: method } : method;
|
|
30019
30081
|
let state3;
|
|
30020
|
-
const descriptor =
|
|
30082
|
+
const descriptor = getDescriptor(obj, method);
|
|
30021
30083
|
const fn3 = descriptor && descriptor[accessType || "value"];
|
|
30022
|
-
if (
|
|
30084
|
+
if (isMockFunction(fn3)) {
|
|
30023
30085
|
state3 = fn3.mock._state();
|
|
30024
30086
|
}
|
|
30025
30087
|
try {
|
|
30026
|
-
const stub =
|
|
30088
|
+
const stub = M(obj, objMethod);
|
|
30027
30089
|
const spy = enhanceSpy(stub);
|
|
30028
30090
|
if (state3) {
|
|
30029
30091
|
spy.mock._state(state3);
|
|
@@ -30046,7 +30108,7 @@ function enhanceSpy(spy) {
|
|
|
30046
30108
|
let instances2 = [];
|
|
30047
30109
|
let contexts = [];
|
|
30048
30110
|
let invocations = [];
|
|
30049
|
-
const state3 =
|
|
30111
|
+
const state3 = T(spy);
|
|
30050
30112
|
const mockContext = {
|
|
30051
30113
|
get calls() {
|
|
30052
30114
|
return state3.calls;
|
|
@@ -30145,18 +30207,18 @@ function enhanceSpy(spy) {
|
|
|
30145
30207
|
implementation = fn3;
|
|
30146
30208
|
state3.willCall(mockCall);
|
|
30147
30209
|
implementationChangedTemporarily = true;
|
|
30148
|
-
const
|
|
30210
|
+
const reset = /* @__PURE__ */ __name(() => {
|
|
30149
30211
|
implementation = originalImplementation;
|
|
30150
30212
|
implementationChangedTemporarily = false;
|
|
30151
30213
|
}, "reset");
|
|
30152
30214
|
const result = cb();
|
|
30153
30215
|
if (typeof result === "object" && result && typeof result.then === "function") {
|
|
30154
30216
|
return result.then(() => {
|
|
30155
|
-
|
|
30217
|
+
reset();
|
|
30156
30218
|
return stub;
|
|
30157
30219
|
});
|
|
30158
30220
|
}
|
|
30159
|
-
|
|
30221
|
+
reset();
|
|
30160
30222
|
return stub;
|
|
30161
30223
|
}
|
|
30162
30224
|
__name(withImplementation, "withImplementation");
|
|
@@ -30177,7 +30239,7 @@ function enhanceSpy(spy) {
|
|
|
30177
30239
|
}
|
|
30178
30240
|
__name(enhanceSpy, "enhanceSpy");
|
|
30179
30241
|
function fn(implementation) {
|
|
30180
|
-
const enhancedSpy = enhanceSpy(
|
|
30242
|
+
const enhancedSpy = enhanceSpy(M({ spy: implementation || function() {
|
|
30181
30243
|
} }, "spy"));
|
|
30182
30244
|
if (implementation) {
|
|
30183
30245
|
enhancedSpy.mockImplementation(implementation);
|
|
@@ -30185,7 +30247,7 @@ function fn(implementation) {
|
|
|
30185
30247
|
return enhancedSpy;
|
|
30186
30248
|
}
|
|
30187
30249
|
__name(fn, "fn");
|
|
30188
|
-
function
|
|
30250
|
+
function getDescriptor(obj, method) {
|
|
30189
30251
|
const objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
|
|
30190
30252
|
if (objDescriptor) {
|
|
30191
30253
|
return objDescriptor;
|
|
@@ -30199,7 +30261,7 @@ function getDescriptor2(obj, method) {
|
|
|
30199
30261
|
currentProto = Object.getPrototypeOf(currentProto);
|
|
30200
30262
|
}
|
|
30201
30263
|
}
|
|
30202
|
-
__name(
|
|
30264
|
+
__name(getDescriptor, "getDescriptor");
|
|
30203
30265
|
|
|
30204
30266
|
// ../node_modules/@vitest/expect/dist/index.js
|
|
30205
30267
|
var MATCHERS_OBJECT = Symbol.for("matchers-object");
|
|
@@ -30336,9 +30398,9 @@ function getCustomEqualityTesters() {
|
|
|
30336
30398
|
return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;
|
|
30337
30399
|
}
|
|
30338
30400
|
__name(getCustomEqualityTesters, "getCustomEqualityTesters");
|
|
30339
|
-
function equals(a2,
|
|
30401
|
+
function equals(a2, b2, customTesters, strictCheck) {
|
|
30340
30402
|
customTesters = customTesters || [];
|
|
30341
|
-
return eq2(a2,
|
|
30403
|
+
return eq2(a2, b2, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
|
|
30342
30404
|
}
|
|
30343
30405
|
__name(equals, "equals");
|
|
30344
30406
|
var functionToString = Function.prototype.toString;
|
|
@@ -30346,64 +30408,64 @@ function isAsymmetric(obj) {
|
|
|
30346
30408
|
return !!obj && typeof obj === "object" && "asymmetricMatch" in obj && isA("Function", obj.asymmetricMatch);
|
|
30347
30409
|
}
|
|
30348
30410
|
__name(isAsymmetric, "isAsymmetric");
|
|
30349
|
-
function asymmetricMatch(a2,
|
|
30411
|
+
function asymmetricMatch(a2, b2) {
|
|
30350
30412
|
const asymmetricA = isAsymmetric(a2);
|
|
30351
|
-
const asymmetricB = isAsymmetric(
|
|
30413
|
+
const asymmetricB = isAsymmetric(b2);
|
|
30352
30414
|
if (asymmetricA && asymmetricB) {
|
|
30353
30415
|
return void 0;
|
|
30354
30416
|
}
|
|
30355
30417
|
if (asymmetricA) {
|
|
30356
|
-
return a2.asymmetricMatch(
|
|
30418
|
+
return a2.asymmetricMatch(b2);
|
|
30357
30419
|
}
|
|
30358
30420
|
if (asymmetricB) {
|
|
30359
|
-
return
|
|
30421
|
+
return b2.asymmetricMatch(a2);
|
|
30360
30422
|
}
|
|
30361
30423
|
}
|
|
30362
30424
|
__name(asymmetricMatch, "asymmetricMatch");
|
|
30363
|
-
function eq2(a2,
|
|
30425
|
+
function eq2(a2, b2, aStack, bStack, customTesters, hasKey2) {
|
|
30364
30426
|
let result = true;
|
|
30365
|
-
const asymmetricResult = asymmetricMatch(a2,
|
|
30427
|
+
const asymmetricResult = asymmetricMatch(a2, b2);
|
|
30366
30428
|
if (asymmetricResult !== void 0) {
|
|
30367
30429
|
return asymmetricResult;
|
|
30368
30430
|
}
|
|
30369
30431
|
const testerContext = { equals };
|
|
30370
30432
|
for (let i2 = 0; i2 < customTesters.length; i2++) {
|
|
30371
|
-
const customTesterResult = customTesters[i2].call(testerContext, a2,
|
|
30433
|
+
const customTesterResult = customTesters[i2].call(testerContext, a2, b2, customTesters);
|
|
30372
30434
|
if (customTesterResult !== void 0) {
|
|
30373
30435
|
return customTesterResult;
|
|
30374
30436
|
}
|
|
30375
30437
|
}
|
|
30376
|
-
if (typeof URL === "function" && a2 instanceof URL &&
|
|
30377
|
-
return a2.href ===
|
|
30438
|
+
if (typeof URL === "function" && a2 instanceof URL && b2 instanceof URL) {
|
|
30439
|
+
return a2.href === b2.href;
|
|
30378
30440
|
}
|
|
30379
|
-
if (Object.is(a2,
|
|
30441
|
+
if (Object.is(a2, b2)) {
|
|
30380
30442
|
return true;
|
|
30381
30443
|
}
|
|
30382
|
-
if (a2 === null ||
|
|
30383
|
-
return a2 ===
|
|
30444
|
+
if (a2 === null || b2 === null) {
|
|
30445
|
+
return a2 === b2;
|
|
30384
30446
|
}
|
|
30385
30447
|
const className = Object.prototype.toString.call(a2);
|
|
30386
|
-
if (className !== Object.prototype.toString.call(
|
|
30448
|
+
if (className !== Object.prototype.toString.call(b2)) {
|
|
30387
30449
|
return false;
|
|
30388
30450
|
}
|
|
30389
30451
|
switch (className) {
|
|
30390
30452
|
case "[object Boolean]":
|
|
30391
30453
|
case "[object String]":
|
|
30392
30454
|
case "[object Number]":
|
|
30393
|
-
if (typeof a2 !== typeof
|
|
30455
|
+
if (typeof a2 !== typeof b2) {
|
|
30394
30456
|
return false;
|
|
30395
|
-
} else if (typeof a2 !== "object" && typeof
|
|
30396
|
-
return Object.is(a2,
|
|
30457
|
+
} else if (typeof a2 !== "object" && typeof b2 !== "object") {
|
|
30458
|
+
return Object.is(a2, b2);
|
|
30397
30459
|
} else {
|
|
30398
|
-
return Object.is(a2.valueOf(),
|
|
30460
|
+
return Object.is(a2.valueOf(), b2.valueOf());
|
|
30399
30461
|
}
|
|
30400
30462
|
case "[object Date]": {
|
|
30401
30463
|
const numA = +a2;
|
|
30402
|
-
const numB = +
|
|
30464
|
+
const numB = +b2;
|
|
30403
30465
|
return numA === numB || Number.isNaN(numA) && Number.isNaN(numB);
|
|
30404
30466
|
}
|
|
30405
30467
|
case "[object RegExp]":
|
|
30406
|
-
return a2.source ===
|
|
30468
|
+
return a2.source === b2.source && a2.flags === b2.flags;
|
|
30407
30469
|
case "[object Temporal.Instant]":
|
|
30408
30470
|
case "[object Temporal.ZonedDateTime]":
|
|
30409
30471
|
case "[object Temporal.PlainDateTime]":
|
|
@@ -30411,32 +30473,32 @@ function eq2(a2, b, aStack, bStack, customTesters, hasKey2) {
|
|
|
30411
30473
|
case "[object Temporal.PlainTime]":
|
|
30412
30474
|
case "[object Temporal.PlainYearMonth]":
|
|
30413
30475
|
case "[object Temporal.PlainMonthDay]":
|
|
30414
|
-
return a2.equals(
|
|
30476
|
+
return a2.equals(b2);
|
|
30415
30477
|
case "[object Temporal.Duration]":
|
|
30416
|
-
return a2.toString() ===
|
|
30478
|
+
return a2.toString() === b2.toString();
|
|
30417
30479
|
}
|
|
30418
|
-
if (typeof a2 !== "object" || typeof
|
|
30480
|
+
if (typeof a2 !== "object" || typeof b2 !== "object") {
|
|
30419
30481
|
return false;
|
|
30420
30482
|
}
|
|
30421
|
-
if (isDomNode(a2) && isDomNode(
|
|
30422
|
-
return a2.isEqualNode(
|
|
30483
|
+
if (isDomNode(a2) && isDomNode(b2)) {
|
|
30484
|
+
return a2.isEqualNode(b2);
|
|
30423
30485
|
}
|
|
30424
30486
|
let length = aStack.length;
|
|
30425
30487
|
while (length--) {
|
|
30426
30488
|
if (aStack[length] === a2) {
|
|
30427
|
-
return bStack[length] ===
|
|
30428
|
-
} else if (bStack[length] ===
|
|
30489
|
+
return bStack[length] === b2;
|
|
30490
|
+
} else if (bStack[length] === b2) {
|
|
30429
30491
|
return false;
|
|
30430
30492
|
}
|
|
30431
30493
|
}
|
|
30432
30494
|
aStack.push(a2);
|
|
30433
|
-
bStack.push(
|
|
30434
|
-
if (className === "[object Array]" && a2.length !==
|
|
30495
|
+
bStack.push(b2);
|
|
30496
|
+
if (className === "[object Array]" && a2.length !== b2.length) {
|
|
30435
30497
|
return false;
|
|
30436
30498
|
}
|
|
30437
|
-
if (a2 instanceof Error &&
|
|
30499
|
+
if (a2 instanceof Error && b2 instanceof Error) {
|
|
30438
30500
|
try {
|
|
30439
|
-
return isErrorEqual(a2,
|
|
30501
|
+
return isErrorEqual(a2, b2, aStack, bStack, customTesters, hasKey2);
|
|
30440
30502
|
} finally {
|
|
30441
30503
|
aStack.pop();
|
|
30442
30504
|
bStack.pop();
|
|
@@ -30445,12 +30507,12 @@ function eq2(a2, b, aStack, bStack, customTesters, hasKey2) {
|
|
|
30445
30507
|
const aKeys = keys(a2, hasKey2);
|
|
30446
30508
|
let key;
|
|
30447
30509
|
let size = aKeys.length;
|
|
30448
|
-
if (keys(
|
|
30510
|
+
if (keys(b2, hasKey2).length !== size) {
|
|
30449
30511
|
return false;
|
|
30450
30512
|
}
|
|
30451
30513
|
while (size--) {
|
|
30452
30514
|
key = aKeys[size];
|
|
30453
|
-
result = hasKey2(
|
|
30515
|
+
result = hasKey2(b2, key) && eq2(a2[key], b2[key], aStack, bStack, customTesters, hasKey2);
|
|
30454
30516
|
if (!result) {
|
|
30455
30517
|
return false;
|
|
30456
30518
|
}
|
|
@@ -30460,15 +30522,15 @@ function eq2(a2, b, aStack, bStack, customTesters, hasKey2) {
|
|
|
30460
30522
|
return result;
|
|
30461
30523
|
}
|
|
30462
30524
|
__name(eq2, "eq");
|
|
30463
|
-
function isErrorEqual(a2,
|
|
30464
|
-
let result = Object.getPrototypeOf(a2) === Object.getPrototypeOf(
|
|
30465
|
-
if (typeof
|
|
30466
|
-
result && (result = eq2(a2.cause,
|
|
30525
|
+
function isErrorEqual(a2, b2, aStack, bStack, customTesters, hasKey2) {
|
|
30526
|
+
let result = Object.getPrototypeOf(a2) === Object.getPrototypeOf(b2) && a2.name === b2.name && a2.message === b2.message;
|
|
30527
|
+
if (typeof b2.cause !== "undefined") {
|
|
30528
|
+
result && (result = eq2(a2.cause, b2.cause, aStack, bStack, customTesters, hasKey2));
|
|
30467
30529
|
}
|
|
30468
|
-
if (a2 instanceof AggregateError &&
|
|
30469
|
-
result && (result = eq2(a2.errors,
|
|
30530
|
+
if (a2 instanceof AggregateError && b2 instanceof AggregateError) {
|
|
30531
|
+
result && (result = eq2(a2.errors, b2.errors, aStack, bStack, customTesters, hasKey2));
|
|
30470
30532
|
}
|
|
30471
|
-
result && (result = eq2({ ...a2 }, { ...
|
|
30533
|
+
result && (result = eq2({ ...a2 }, { ...b2 }, aStack, bStack, customTesters, hasKey2));
|
|
30472
30534
|
return result;
|
|
30473
30535
|
}
|
|
30474
30536
|
__name(isErrorEqual, "isErrorEqual");
|
|
@@ -30536,35 +30598,35 @@ function hasIterator(object) {
|
|
|
30536
30598
|
return !!(object != null && object[IteratorSymbol]);
|
|
30537
30599
|
}
|
|
30538
30600
|
__name(hasIterator, "hasIterator");
|
|
30539
|
-
function iterableEquality(a2,
|
|
30540
|
-
if (typeof a2 !== "object" || typeof
|
|
30601
|
+
function iterableEquality(a2, b2, customTesters = [], aStack = [], bStack = []) {
|
|
30602
|
+
if (typeof a2 !== "object" || typeof b2 !== "object" || Array.isArray(a2) || Array.isArray(b2) || !hasIterator(a2) || !hasIterator(b2)) {
|
|
30541
30603
|
return void 0;
|
|
30542
30604
|
}
|
|
30543
|
-
if (a2.constructor !==
|
|
30605
|
+
if (a2.constructor !== b2.constructor) {
|
|
30544
30606
|
return false;
|
|
30545
30607
|
}
|
|
30546
30608
|
let length = aStack.length;
|
|
30547
30609
|
while (length--) {
|
|
30548
30610
|
if (aStack[length] === a2) {
|
|
30549
|
-
return bStack[length] ===
|
|
30611
|
+
return bStack[length] === b2;
|
|
30550
30612
|
}
|
|
30551
30613
|
}
|
|
30552
30614
|
aStack.push(a2);
|
|
30553
|
-
bStack.push(
|
|
30615
|
+
bStack.push(b2);
|
|
30554
30616
|
const filteredCustomTesters = [...customTesters.filter((t2) => t2 !== iterableEquality), iterableEqualityWithStack];
|
|
30555
|
-
function iterableEqualityWithStack(a3,
|
|
30556
|
-
return iterableEquality(a3,
|
|
30617
|
+
function iterableEqualityWithStack(a3, b3) {
|
|
30618
|
+
return iterableEquality(a3, b3, [...customTesters], [...aStack], [...bStack]);
|
|
30557
30619
|
}
|
|
30558
30620
|
__name(iterableEqualityWithStack, "iterableEqualityWithStack");
|
|
30559
30621
|
if (a2.size !== void 0) {
|
|
30560
|
-
if (a2.size !==
|
|
30622
|
+
if (a2.size !== b2.size) {
|
|
30561
30623
|
return false;
|
|
30562
30624
|
} else if (isA("Set", a2) || isImmutableUnorderedSet(a2)) {
|
|
30563
30625
|
let allFound = true;
|
|
30564
30626
|
for (const aValue of a2) {
|
|
30565
|
-
if (!
|
|
30627
|
+
if (!b2.has(aValue)) {
|
|
30566
30628
|
let has = false;
|
|
30567
|
-
for (const bValue of
|
|
30629
|
+
for (const bValue of b2) {
|
|
30568
30630
|
const isEqual3 = equals(aValue, bValue, filteredCustomTesters);
|
|
30569
30631
|
if (isEqual3 === true) {
|
|
30570
30632
|
has = true;
|
|
@@ -30582,9 +30644,9 @@ function iterableEquality(a2, b, customTesters = [], aStack = [], bStack = []) {
|
|
|
30582
30644
|
} else if (isA("Map", a2) || isImmutableUnorderedKeyed(a2)) {
|
|
30583
30645
|
let allFound = true;
|
|
30584
30646
|
for (const aEntry of a2) {
|
|
30585
|
-
if (!
|
|
30647
|
+
if (!b2.has(aEntry[0]) || !equals(aEntry[1], b2.get(aEntry[0]), filteredCustomTesters)) {
|
|
30586
30648
|
let has = false;
|
|
30587
|
-
for (const bEntry of
|
|
30649
|
+
for (const bEntry of b2) {
|
|
30588
30650
|
const matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters);
|
|
30589
30651
|
let matchedValue = false;
|
|
30590
30652
|
if (matchedKey === true) {
|
|
@@ -30605,7 +30667,7 @@ function iterableEquality(a2, b, customTesters = [], aStack = [], bStack = []) {
|
|
|
30605
30667
|
return allFound;
|
|
30606
30668
|
}
|
|
30607
30669
|
}
|
|
30608
|
-
const bIterator =
|
|
30670
|
+
const bIterator = b2[IteratorSymbol]();
|
|
30609
30671
|
for (const aValue of a2) {
|
|
30610
30672
|
const nextB = bIterator.next();
|
|
30611
30673
|
if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) {
|
|
@@ -30617,7 +30679,7 @@ function iterableEquality(a2, b, customTesters = [], aStack = [], bStack = []) {
|
|
|
30617
30679
|
}
|
|
30618
30680
|
if (!isImmutableList(a2) && !isImmutableOrderedKeyed(a2) && !isImmutableOrderedSet(a2) && !isImmutableRecord(a2)) {
|
|
30619
30681
|
const aEntries = Object.entries(a2);
|
|
30620
|
-
const bEntries = Object.entries(
|
|
30682
|
+
const bEntries = Object.entries(b2);
|
|
30621
30683
|
if (!equals(aEntries, bEntries, filteredCustomTesters)) {
|
|
30622
30684
|
return false;
|
|
30623
30685
|
}
|
|
@@ -30660,23 +30722,23 @@ function subsetEquality(object, subset, customTesters = []) {
|
|
|
30660
30722
|
return subsetEqualityWithContext()(object, subset);
|
|
30661
30723
|
}
|
|
30662
30724
|
__name(subsetEquality, "subsetEquality");
|
|
30663
|
-
function typeEquality(a2,
|
|
30664
|
-
if (a2 == null ||
|
|
30725
|
+
function typeEquality(a2, b2) {
|
|
30726
|
+
if (a2 == null || b2 == null || a2.constructor === b2.constructor) {
|
|
30665
30727
|
return void 0;
|
|
30666
30728
|
}
|
|
30667
30729
|
return false;
|
|
30668
30730
|
}
|
|
30669
30731
|
__name(typeEquality, "typeEquality");
|
|
30670
|
-
function arrayBufferEquality(a2,
|
|
30732
|
+
function arrayBufferEquality(a2, b2) {
|
|
30671
30733
|
let dataViewA = a2;
|
|
30672
|
-
let dataViewB =
|
|
30673
|
-
if (!(a2 instanceof DataView &&
|
|
30674
|
-
if (!(a2 instanceof ArrayBuffer) || !(
|
|
30734
|
+
let dataViewB = b2;
|
|
30735
|
+
if (!(a2 instanceof DataView && b2 instanceof DataView)) {
|
|
30736
|
+
if (!(a2 instanceof ArrayBuffer) || !(b2 instanceof ArrayBuffer)) {
|
|
30675
30737
|
return void 0;
|
|
30676
30738
|
}
|
|
30677
30739
|
try {
|
|
30678
30740
|
dataViewA = new DataView(a2);
|
|
30679
|
-
dataViewB = new DataView(
|
|
30741
|
+
dataViewB = new DataView(b2);
|
|
30680
30742
|
} catch {
|
|
30681
30743
|
return void 0;
|
|
30682
30744
|
}
|
|
@@ -30692,14 +30754,14 @@ function arrayBufferEquality(a2, b) {
|
|
|
30692
30754
|
return true;
|
|
30693
30755
|
}
|
|
30694
30756
|
__name(arrayBufferEquality, "arrayBufferEquality");
|
|
30695
|
-
function sparseArrayEquality(a2,
|
|
30696
|
-
if (!Array.isArray(a2) || !Array.isArray(
|
|
30757
|
+
function sparseArrayEquality(a2, b2, customTesters = []) {
|
|
30758
|
+
if (!Array.isArray(a2) || !Array.isArray(b2)) {
|
|
30697
30759
|
return void 0;
|
|
30698
30760
|
}
|
|
30699
30761
|
const aKeys = Object.keys(a2);
|
|
30700
|
-
const bKeys = Object.keys(
|
|
30762
|
+
const bKeys = Object.keys(b2);
|
|
30701
30763
|
const filteredCustomTesters = customTesters.filter((t2) => t2 !== sparseArrayEquality);
|
|
30702
|
-
return equals(a2,
|
|
30764
|
+
return equals(a2, b2, filteredCustomTesters, true) && equals(aKeys, bKeys);
|
|
30703
30765
|
}
|
|
30704
30766
|
__name(sparseArrayEquality, "sparseArrayEquality");
|
|
30705
30767
|
function generateToBeMessage(deepEqualityName, expected = "#{this}", actual = "#{exp}") {
|
|
@@ -31423,7 +31485,7 @@ var JestChaiExpect = /* @__PURE__ */ __name((chai, utils) => {
|
|
|
31423
31485
|
return this.assert(pass, `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff2}`, `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff2}`, received, expected, false);
|
|
31424
31486
|
});
|
|
31425
31487
|
function assertIsMock(assertion) {
|
|
31426
|
-
if (!
|
|
31488
|
+
if (!isMockFunction(assertion._obj)) {
|
|
31427
31489
|
throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);
|
|
31428
31490
|
}
|
|
31429
31491
|
}
|
|
@@ -31465,8 +31527,8 @@ var JestChaiExpect = /* @__PURE__ */ __name((chai, utils) => {
|
|
|
31465
31527
|
throw new AssertionError2(msg);
|
|
31466
31528
|
}
|
|
31467
31529
|
});
|
|
31468
|
-
function equalsArgumentArray(a2,
|
|
31469
|
-
return a2.length ===
|
|
31530
|
+
function equalsArgumentArray(a2, b2) {
|
|
31531
|
+
return a2.length === b2.length && a2.every((aItem, i2) => equals(aItem, b2[i2], [...customTesters, iterableEquality]));
|
|
31470
31532
|
}
|
|
31471
31533
|
__name(equalsArgumentArray, "equalsArgumentArray");
|
|
31472
31534
|
def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) {
|
|
@@ -31529,14 +31591,14 @@ var JestChaiExpect = /* @__PURE__ */ __name((chai, utils) => {
|
|
|
31529
31591
|
__name(isSpyCalledBeforeAnotherSpy, "isSpyCalledBeforeAnotherSpy");
|
|
31530
31592
|
def(["toHaveBeenCalledBefore"], function(resultSpy, failIfNoFirstInvocation = true) {
|
|
31531
31593
|
const expectSpy = getSpy(this);
|
|
31532
|
-
if (!
|
|
31594
|
+
if (!isMockFunction(resultSpy)) {
|
|
31533
31595
|
throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
|
|
31534
31596
|
}
|
|
31535
31597
|
this.assert(isSpyCalledBeforeAnotherSpy(expectSpy, resultSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called before "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called before "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
|
|
31536
31598
|
});
|
|
31537
31599
|
def(["toHaveBeenCalledAfter"], function(resultSpy, failIfNoFirstInvocation = true) {
|
|
31538
31600
|
const expectSpy = getSpy(this);
|
|
31539
|
-
if (!
|
|
31601
|
+
if (!isMockFunction(resultSpy)) {
|
|
31540
31602
|
throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
|
|
31541
31603
|
}
|
|
31542
31604
|
this.assert(isSpyCalledBeforeAnotherSpy(resultSpy, expectSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called after "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called after "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
|
|
@@ -31770,15 +31832,15 @@ var JestChaiExpect = /* @__PURE__ */ __name((chai, utils) => {
|
|
|
31770
31832
|
}, "__VITEST_REJECTS__"));
|
|
31771
31833
|
}, "JestChaiExpect");
|
|
31772
31834
|
function ordinalOf(i2) {
|
|
31773
|
-
const
|
|
31774
|
-
const
|
|
31775
|
-
if (
|
|
31835
|
+
const j2 = i2 % 10;
|
|
31836
|
+
const k2 = i2 % 100;
|
|
31837
|
+
if (j2 === 1 && k2 !== 11) {
|
|
31776
31838
|
return `${i2}st`;
|
|
31777
31839
|
}
|
|
31778
|
-
if (
|
|
31840
|
+
if (j2 === 2 && k2 !== 12) {
|
|
31779
31841
|
return `${i2}nd`;
|
|
31780
31842
|
}
|
|
31781
|
-
if (
|
|
31843
|
+
if (j2 === 3 && k2 !== 13) {
|
|
31782
31844
|
return `${i2}rd`;
|
|
31783
31845
|
}
|
|
31784
31846
|
return `${i2}th`;
|
|
@@ -31961,11 +32023,11 @@ function createExpect() {
|
|
|
31961
32023
|
expect4.setState = (state3) => setState(state3, expect4);
|
|
31962
32024
|
expect4.extend = (expects) => expect.extend(expect4, expects);
|
|
31963
32025
|
expect4.soft = (...args) => {
|
|
31964
|
-
const
|
|
32026
|
+
const assert2 = expect4(...args);
|
|
31965
32027
|
expect4.setState({
|
|
31966
32028
|
soft: true
|
|
31967
32029
|
});
|
|
31968
|
-
return
|
|
32030
|
+
return assert2;
|
|
31969
32031
|
};
|
|
31970
32032
|
expect4.extend(customMatchers);
|
|
31971
32033
|
expect4.unreachable = (message) => {
|
|
@@ -32020,16 +32082,16 @@ Object.defineProperty(globalThis, GLOBAL_EXPECT, {
|
|
|
32020
32082
|
});
|
|
32021
32083
|
|
|
32022
32084
|
// ../node_modules/tinyspy/dist/index.js
|
|
32023
|
-
function
|
|
32085
|
+
function f3(e2, t2, n2) {
|
|
32024
32086
|
Object.defineProperty(e2, t2, n2);
|
|
32025
32087
|
}
|
|
32026
|
-
__name(
|
|
32027
|
-
var
|
|
32028
|
-
var
|
|
32088
|
+
__name(f3, "f");
|
|
32089
|
+
var u2 = Symbol.for("tinyspy:spy");
|
|
32090
|
+
var P2 = /* @__PURE__ */ __name((e2) => {
|
|
32029
32091
|
e2.called = false, e2.callCount = 0, e2.calls = [], e2.results = [], e2.resolves = [], e2.next = [];
|
|
32030
32092
|
}, "P");
|
|
32031
|
-
var
|
|
32032
|
-
var
|
|
32093
|
+
var K2 = /* @__PURE__ */ __name((e2) => (f3(e2, u2, { value: { reset: /* @__PURE__ */ __name(() => P2(e2[u2]), "reset") } }), e2[u2]), "K");
|
|
32094
|
+
var T2 = /* @__PURE__ */ __name((e2) => e2[u2] || K2(e2), "T");
|
|
32033
32095
|
|
|
32034
32096
|
// src/test/spy.ts
|
|
32035
32097
|
var listeners = /* @__PURE__ */ new Set();
|
|
@@ -32055,7 +32117,7 @@ function reactiveMock(mock) {
|
|
|
32055
32117
|
}
|
|
32056
32118
|
__name(reactiveMock, "reactiveMock");
|
|
32057
32119
|
function listenWhenCalled(mock) {
|
|
32058
|
-
const state3 =
|
|
32120
|
+
const state3 = T2(mock);
|
|
32059
32121
|
const impl = state3.impl;
|
|
32060
32122
|
state3.willCall(function(...args) {
|
|
32061
32123
|
listeners.forEach((listener) => listener(mock, args));
|
|
@@ -32201,16 +32263,16 @@ function arrayFrom2(arrayLike, mapFn) {
|
|
|
32201
32263
|
}
|
|
32202
32264
|
var len = toLength2(items.length);
|
|
32203
32265
|
var A = isCallable2(C2) ? Object(new C2(len)) : new Array(len);
|
|
32204
|
-
var
|
|
32266
|
+
var k2 = 0;
|
|
32205
32267
|
var kValue;
|
|
32206
|
-
while (
|
|
32207
|
-
kValue = items[
|
|
32268
|
+
while (k2 < len) {
|
|
32269
|
+
kValue = items[k2];
|
|
32208
32270
|
if (mapFn) {
|
|
32209
|
-
A[
|
|
32271
|
+
A[k2] = mapFn(kValue, k2);
|
|
32210
32272
|
} else {
|
|
32211
|
-
A[
|
|
32273
|
+
A[k2] = kValue;
|
|
32212
32274
|
}
|
|
32213
|
-
|
|
32275
|
+
k2 += 1;
|
|
32214
32276
|
}
|
|
32215
32277
|
A.length = len;
|
|
32216
32278
|
return A;
|
|
@@ -33860,8 +33922,8 @@ function makeSuggestion(queryName, element, content, _ref) {
|
|
|
33860
33922
|
let [text, options] = queryArgs;
|
|
33861
33923
|
text = typeof text === "string" ? "'" + text + "'" : text;
|
|
33862
33924
|
options = options ? ", { " + Object.entries(options).map((_ref2) => {
|
|
33863
|
-
let [
|
|
33864
|
-
return
|
|
33925
|
+
let [k2, v2] = _ref2;
|
|
33926
|
+
return k2 + ": " + v2;
|
|
33865
33927
|
}).join(", ") + " }" : "";
|
|
33866
33928
|
return queryMethod + "(" + text + options + ")";
|
|
33867
33929
|
}
|
|
@@ -35700,7 +35762,7 @@ function isElementType(element, tag, props) {
|
|
|
35700
35762
|
return false;
|
|
35701
35763
|
}
|
|
35702
35764
|
if (props) {
|
|
35703
|
-
return Object.entries(props).every(([
|
|
35765
|
+
return Object.entries(props).every(([k2, v2]) => element[k2] === v2);
|
|
35704
35766
|
}
|
|
35705
35767
|
return true;
|
|
35706
35768
|
}
|
|
@@ -35922,9 +35984,9 @@ function _define_property2(obj, key, value) {
|
|
|
35922
35984
|
__name(_define_property2, "_define_property");
|
|
35923
35985
|
function createClipboardItem(window2, ...blobs) {
|
|
35924
35986
|
var _a3;
|
|
35925
|
-
const dataMap = Object.fromEntries(blobs.map((
|
|
35926
|
-
typeof
|
|
35927
|
-
Promise.resolve(
|
|
35987
|
+
const dataMap = Object.fromEntries(blobs.map((b2) => [
|
|
35988
|
+
typeof b2 === "string" ? "text/plain" : b2.type,
|
|
35989
|
+
Promise.resolve(b2)
|
|
35928
35990
|
]));
|
|
35929
35991
|
if (typeof window2.ClipboardItem !== "undefined") {
|
|
35930
35992
|
return new window2.ClipboardItem(dataMap);
|
|
@@ -35963,7 +36025,7 @@ function createClipboardStub(window2, control) {
|
|
|
35963
36025
|
for (const item of this.items) {
|
|
35964
36026
|
const type5 = item.types.includes("text/plain") ? "text/plain" : item.types.find((t2) => t2.startsWith("text/"));
|
|
35965
36027
|
if (type5) {
|
|
35966
|
-
text += await item.getType(type5).then((
|
|
36028
|
+
text += await item.getType(type5).then((b2) => readBlobText(b2, window2.FileReader));
|
|
35967
36029
|
}
|
|
35968
36030
|
}
|
|
35969
36031
|
return text;
|
|
@@ -36039,7 +36101,7 @@ async function readDataTransferFromClipboard(document7) {
|
|
|
36039
36101
|
const dt = createDataTransfer(window2);
|
|
36040
36102
|
for (const item of items) {
|
|
36041
36103
|
for (const type5 of item.types) {
|
|
36042
|
-
dt.setData(type5, await item.getType(type5).then((
|
|
36104
|
+
dt.setData(type5, await item.getType(type5).then((b2) => readBlobText(b2, window2.FileReader)));
|
|
36043
36105
|
}
|
|
36044
36106
|
}
|
|
36045
36107
|
return dt;
|
|
@@ -36585,7 +36647,7 @@ __name(getDescendant, "getDescendant");
|
|
|
36585
36647
|
// ../node_modules/@testing-library/user-event/dist/esm/document/trackValue.js
|
|
36586
36648
|
var TrackChanges = Symbol("Track programmatic changes for React workaround");
|
|
36587
36649
|
function isReact17Element(element) {
|
|
36588
|
-
return Object.getOwnPropertyNames(element).some((
|
|
36650
|
+
return Object.getOwnPropertyNames(element).some((k2) => k2.startsWith("__react")) && getWindow(element).REACT_VERSION === 17;
|
|
36589
36651
|
}
|
|
36590
36652
|
__name(isReact17Element, "isReact17Element");
|
|
36591
36653
|
function startTrackValue(element) {
|
|
@@ -36598,13 +36660,13 @@ function startTrackValue(element) {
|
|
|
36598
36660
|
};
|
|
36599
36661
|
}
|
|
36600
36662
|
__name(startTrackValue, "startTrackValue");
|
|
36601
|
-
function trackOrSetValue(element,
|
|
36663
|
+
function trackOrSetValue(element, v2) {
|
|
36602
36664
|
var _element_TrackChanges_tracked, _element_TrackChanges;
|
|
36603
|
-
(_element_TrackChanges = element[TrackChanges]) === null || _element_TrackChanges === void 0 ? void 0 : (_element_TrackChanges_tracked = _element_TrackChanges.tracked) === null || _element_TrackChanges_tracked === void 0 ? void 0 : _element_TrackChanges_tracked.push(
|
|
36665
|
+
(_element_TrackChanges = element[TrackChanges]) === null || _element_TrackChanges === void 0 ? void 0 : (_element_TrackChanges_tracked = _element_TrackChanges.tracked) === null || _element_TrackChanges_tracked === void 0 ? void 0 : _element_TrackChanges_tracked.push(v2);
|
|
36604
36666
|
if (!element[TrackChanges]) {
|
|
36605
36667
|
setUIValueClean(element);
|
|
36606
36668
|
setUISelection(element, {
|
|
36607
|
-
focusOffset:
|
|
36669
|
+
focusOffset: v2.length
|
|
36608
36670
|
});
|
|
36609
36671
|
}
|
|
36610
36672
|
}
|
|
@@ -36867,17 +36929,17 @@ function getTabDestination(activeElement, shift) {
|
|
|
36867
36929
|
const focusableElements = document7.querySelectorAll(FOCUSABLE_SELECTOR);
|
|
36868
36930
|
const enabledElements = Array.from(focusableElements).filter((el) => el === activeElement || !(Number(el.getAttribute("tabindex")) < 0 || isDisabled2(el)));
|
|
36869
36931
|
if (Number(activeElement.getAttribute("tabindex")) >= 0) {
|
|
36870
|
-
enabledElements.sort((a2,
|
|
36932
|
+
enabledElements.sort((a2, b2) => {
|
|
36871
36933
|
const i2 = Number(a2.getAttribute("tabindex"));
|
|
36872
|
-
const
|
|
36873
|
-
if (i2 ===
|
|
36934
|
+
const j2 = Number(b2.getAttribute("tabindex"));
|
|
36935
|
+
if (i2 === j2) {
|
|
36874
36936
|
return 0;
|
|
36875
36937
|
} else if (i2 === 0) {
|
|
36876
36938
|
return 1;
|
|
36877
|
-
} else if (
|
|
36939
|
+
} else if (j2 === 0) {
|
|
36878
36940
|
return -1;
|
|
36879
36941
|
}
|
|
36880
|
-
return i2 -
|
|
36942
|
+
return i2 - j2;
|
|
36881
36943
|
});
|
|
36882
36944
|
}
|
|
36883
36945
|
const checkedRadio = {};
|
|
@@ -37526,7 +37588,7 @@ function createEvent2(type5, target, init2) {
|
|
|
37526
37588
|
const window2 = getWindow(target);
|
|
37527
37589
|
const { EventType, defaultInit } = eventMap2[type5];
|
|
37528
37590
|
const event = new (getEventConstructors(window2))[EventType](type5, defaultInit);
|
|
37529
|
-
eventInitializer[EventType].forEach((
|
|
37591
|
+
eventInitializer[EventType].forEach((f4) => f4(event, init2 !== null && init2 !== void 0 ? init2 : {}));
|
|
37530
37592
|
return event;
|
|
37531
37593
|
}
|
|
37532
37594
|
__name(createEvent2, "createEvent");
|
|
@@ -37641,7 +37703,7 @@ function initUIEventModifiers(event, { altKey, ctrlKey, metaKey, shiftKey, modif
|
|
|
37641
37703
|
ctrlKey: Boolean(ctrlKey),
|
|
37642
37704
|
metaKey: Boolean(metaKey),
|
|
37643
37705
|
shiftKey: Boolean(shiftKey),
|
|
37644
|
-
getModifierState(
|
|
37706
|
+
getModifierState(k2) {
|
|
37645
37707
|
return Boolean({
|
|
37646
37708
|
Alt: altKey,
|
|
37647
37709
|
AltGraph: modifierAltGraph,
|
|
@@ -37655,7 +37717,7 @@ function initUIEventModifiers(event, { altKey, ctrlKey, metaKey, shiftKey, modif
|
|
|
37655
37717
|
Shift: shiftKey,
|
|
37656
37718
|
Symbol: modifierSymbol,
|
|
37657
37719
|
SymbolLock: modifierSymbolLock
|
|
37658
|
-
}[
|
|
37720
|
+
}[k2]);
|
|
37659
37721
|
}
|
|
37660
37722
|
});
|
|
37661
37723
|
}
|
|
@@ -37671,7 +37733,7 @@ function initKeyboardEvent(event, { key, code, location: location2, repeat, isCo
|
|
|
37671
37733
|
});
|
|
37672
37734
|
}
|
|
37673
37735
|
__name(initKeyboardEvent, "initKeyboardEvent");
|
|
37674
|
-
function initMouseEvent(event, { x, y, screenX, screenY, clientX =
|
|
37736
|
+
function initMouseEvent(event, { x: x2, y: y2, screenX, screenY, clientX = x2, clientY = y2, button, buttons, relatedTarget, offsetX, offsetY, pageX, pageY }) {
|
|
37675
37737
|
assignProps(event, {
|
|
37676
37738
|
screenX: sanitizeNumber(screenX),
|
|
37677
37739
|
screenY: sanitizeNumber(screenY),
|
|
@@ -37860,26 +37922,26 @@ function prepareInterceptor(element, propName, interceptorImpl) {
|
|
|
37860
37922
|
}
|
|
37861
37923
|
__name(prepareInterceptor, "prepareInterceptor");
|
|
37862
37924
|
function prepareValueInterceptor(element) {
|
|
37863
|
-
prepareInterceptor(element, "value", /* @__PURE__ */ __name(function interceptorImpl(
|
|
37864
|
-
const isUI = isUIValue(
|
|
37925
|
+
prepareInterceptor(element, "value", /* @__PURE__ */ __name(function interceptorImpl(v2) {
|
|
37926
|
+
const isUI = isUIValue(v2);
|
|
37865
37927
|
if (isUI) {
|
|
37866
37928
|
startTrackValue(this);
|
|
37867
37929
|
}
|
|
37868
37930
|
return {
|
|
37869
37931
|
applyNative: !!isUI,
|
|
37870
|
-
realArgs: sanitizeValue(this,
|
|
37871
|
-
then: isUI ? void 0 : () => trackOrSetValue(this, String(
|
|
37932
|
+
realArgs: sanitizeValue(this, v2),
|
|
37933
|
+
then: isUI ? void 0 : () => trackOrSetValue(this, String(v2))
|
|
37872
37934
|
};
|
|
37873
37935
|
}, "interceptorImpl"));
|
|
37874
37936
|
}
|
|
37875
37937
|
__name(prepareValueInterceptor, "prepareValueInterceptor");
|
|
37876
|
-
function sanitizeValue(element,
|
|
37938
|
+
function sanitizeValue(element, v2) {
|
|
37877
37939
|
if (isElementType(element, "input", {
|
|
37878
37940
|
type: "number"
|
|
37879
|
-
}) && String(
|
|
37880
|
-
return String(Number(
|
|
37941
|
+
}) && String(v2) !== "" && !Number.isNaN(Number(v2))) {
|
|
37942
|
+
return String(Number(v2));
|
|
37881
37943
|
}
|
|
37882
|
-
return String(
|
|
37944
|
+
return String(v2);
|
|
37883
37945
|
}
|
|
37884
37946
|
__name(sanitizeValue, "sanitizeValue");
|
|
37885
37947
|
function prepareSelectionInterceptor(element) {
|
|
@@ -37894,15 +37956,15 @@ function prepareSelectionInterceptor(element) {
|
|
|
37894
37956
|
then: /* @__PURE__ */ __name(() => isUI ? void 0 : setUISelectionClean(element), "then")
|
|
37895
37957
|
};
|
|
37896
37958
|
}, "interceptorImpl"));
|
|
37897
|
-
prepareInterceptor(element, "selectionStart", /* @__PURE__ */ __name(function interceptorImpl(
|
|
37959
|
+
prepareInterceptor(element, "selectionStart", /* @__PURE__ */ __name(function interceptorImpl(v2) {
|
|
37898
37960
|
return {
|
|
37899
|
-
realArgs:
|
|
37961
|
+
realArgs: v2,
|
|
37900
37962
|
then: /* @__PURE__ */ __name(() => setUISelectionClean(element), "then")
|
|
37901
37963
|
};
|
|
37902
37964
|
}, "interceptorImpl"));
|
|
37903
|
-
prepareInterceptor(element, "selectionEnd", /* @__PURE__ */ __name(function interceptorImpl(
|
|
37965
|
+
prepareInterceptor(element, "selectionEnd", /* @__PURE__ */ __name(function interceptorImpl(v2) {
|
|
37904
37966
|
return {
|
|
37905
|
-
realArgs:
|
|
37967
|
+
realArgs: v2,
|
|
37906
37968
|
then: /* @__PURE__ */ __name(() => setUISelectionClean(element), "then")
|
|
37907
37969
|
};
|
|
37908
37970
|
}, "interceptorImpl"));
|
|
@@ -38414,11 +38476,11 @@ function _define_property4(obj, key, value) {
|
|
|
38414
38476
|
__name(_define_property4, "_define_property");
|
|
38415
38477
|
var _Buttons = class _Buttons {
|
|
38416
38478
|
getButtons() {
|
|
38417
|
-
let
|
|
38479
|
+
let v2 = 0;
|
|
38418
38480
|
for (const button of Object.keys(this.pressed)) {
|
|
38419
|
-
|
|
38481
|
+
v2 |= 2 ** Number(button);
|
|
38420
38482
|
}
|
|
38421
|
-
return
|
|
38483
|
+
return v2;
|
|
38422
38484
|
}
|
|
38423
38485
|
down(keyDef) {
|
|
38424
38486
|
const button = getMouseButtonId(keyDef.button);
|
|
@@ -38434,7 +38496,7 @@ var _Buttons = class _Buttons {
|
|
|
38434
38496
|
up(keyDef) {
|
|
38435
38497
|
const button = getMouseButtonId(keyDef.button);
|
|
38436
38498
|
if (button in this.pressed) {
|
|
38437
|
-
this.pressed[button] = this.pressed[button].filter((
|
|
38499
|
+
this.pressed[button] = this.pressed[button].filter((k2) => k2.name !== keyDef.name);
|
|
38438
38500
|
if (this.pressed[button].length === 0) {
|
|
38439
38501
|
delete this.pressed[button];
|
|
38440
38502
|
return button;
|
|
@@ -38513,13 +38575,13 @@ __name(_Device, "Device");
|
|
|
38513
38575
|
var Device = _Device;
|
|
38514
38576
|
|
|
38515
38577
|
// ../node_modules/@testing-library/user-event/dist/esm/utils/misc/getTreeDiff.js
|
|
38516
|
-
function getTreeDiff(a2,
|
|
38578
|
+
function getTreeDiff(a2, b2) {
|
|
38517
38579
|
const treeA = [];
|
|
38518
38580
|
for (let el = a2; el; el = el.parentElement) {
|
|
38519
38581
|
treeA.push(el);
|
|
38520
38582
|
}
|
|
38521
38583
|
const treeB = [];
|
|
38522
|
-
for (let el =
|
|
38584
|
+
for (let el = b2; el; el = el.parentElement) {
|
|
38523
38585
|
treeB.push(el);
|
|
38524
38586
|
}
|
|
38525
38587
|
let i2 = 0;
|
|
@@ -39191,10 +39253,10 @@ var _PointerHost = class _PointerHost {
|
|
|
39191
39253
|
_define_property8(this, "mouse", void 0);
|
|
39192
39254
|
_define_property8(this, "buttons", void 0);
|
|
39193
39255
|
_define_property8(this, "devices", new class {
|
|
39194
|
-
get(
|
|
39256
|
+
get(k2) {
|
|
39195
39257
|
var _this_registry, _k;
|
|
39196
39258
|
var _;
|
|
39197
|
-
return (_ = (_this_registry = this.registry)[_k =
|
|
39259
|
+
return (_ = (_this_registry = this.registry)[_k = k2]) !== null && _ !== void 0 ? _ : _this_registry[_k] = new Device();
|
|
39198
39260
|
}
|
|
39199
39261
|
constructor() {
|
|
39200
39262
|
_define_property8(this, "registry", {});
|
|
@@ -39481,8 +39543,8 @@ async function keyboardAction(instance, { keyDef, releasePrevious, releaseSelf,
|
|
|
39481
39543
|
}
|
|
39482
39544
|
__name(keyboardAction, "keyboardAction");
|
|
39483
39545
|
async function releaseAllKeys(instance) {
|
|
39484
|
-
for (const
|
|
39485
|
-
await instance.system.keyboard.keyup(instance,
|
|
39546
|
+
for (const k2 of instance.system.keyboard.getPressedKeys()) {
|
|
39547
|
+
await instance.system.keyboard.keyup(instance, k2);
|
|
39486
39548
|
}
|
|
39487
39549
|
}
|
|
39488
39550
|
__name(releaseAllKeys, "releaseAllKeys");
|
|
@@ -39828,22 +39890,22 @@ function setFiles(el, files) {
|
|
|
39828
39890
|
value: {
|
|
39829
39891
|
configurable: true,
|
|
39830
39892
|
get: /* @__PURE__ */ __name(() => files.length ? `C:\\fakepath\\${files[0].name}` : "", "get"),
|
|
39831
|
-
set(
|
|
39832
|
-
if (
|
|
39893
|
+
set(v2) {
|
|
39894
|
+
if (v2 === "") {
|
|
39833
39895
|
restore();
|
|
39834
39896
|
} else {
|
|
39835
39897
|
var _valueDescr_set;
|
|
39836
|
-
valueDescr === null || valueDescr === void 0 ? void 0 : (_valueDescr_set = valueDescr.set) === null || _valueDescr_set === void 0 ? void 0 : _valueDescr_set.call(el,
|
|
39898
|
+
valueDescr === null || valueDescr === void 0 ? void 0 : (_valueDescr_set = valueDescr.set) === null || _valueDescr_set === void 0 ? void 0 : _valueDescr_set.call(el, v2);
|
|
39837
39899
|
}
|
|
39838
39900
|
}
|
|
39839
39901
|
},
|
|
39840
39902
|
type: {
|
|
39841
39903
|
configurable: true,
|
|
39842
39904
|
get: /* @__PURE__ */ __name(() => "file", "get"),
|
|
39843
|
-
set(
|
|
39844
|
-
if (
|
|
39905
|
+
set(v2) {
|
|
39906
|
+
if (v2 !== "file") {
|
|
39845
39907
|
restore();
|
|
39846
|
-
el.type =
|
|
39908
|
+
el.type = v2;
|
|
39847
39909
|
}
|
|
39848
39910
|
}
|
|
39849
39911
|
}
|
|
@@ -39865,9 +39927,9 @@ async function upload(element, fileOrFiles) {
|
|
|
39865
39927
|
]).filter((file) => !this.config.applyAccept || isAcceptableFile(file, input2.accept)).slice(0, input2.multiple ? void 0 : 1);
|
|
39866
39928
|
const fileDialog = /* @__PURE__ */ __name(() => {
|
|
39867
39929
|
var _input_files;
|
|
39868
|
-
if (files.length === ((_input_files = input2.files) === null || _input_files === void 0 ? void 0 : _input_files.length) && files.every((
|
|
39930
|
+
if (files.length === ((_input_files = input2.files) === null || _input_files === void 0 ? void 0 : _input_files.length) && files.every((f4, i2) => {
|
|
39869
39931
|
var _input_files2;
|
|
39870
|
-
return
|
|
39932
|
+
return f4 === ((_input_files2 = input2.files) === null || _input_files2 === void 0 ? void 0 : _input_files2.item(i2));
|
|
39871
39933
|
})) {
|
|
39872
39934
|
return;
|
|
39873
39935
|
}
|
|
@@ -40608,7 +40670,7 @@ var useStore = /* @__PURE__ */ __name((initialValue2) => {
|
|
|
40608
40670
|
if (list) {
|
|
40609
40671
|
listeners2.set(
|
|
40610
40672
|
key,
|
|
40611
|
-
list.filter((
|
|
40673
|
+
list.filter((l2) => l2 !== listener)
|
|
40612
40674
|
);
|
|
40613
40675
|
}
|
|
40614
40676
|
};
|
|
@@ -40667,11 +40729,11 @@ var mapBoxes = /* @__PURE__ */ __name((elements) => Array.from(elements.entries(
|
|
|
40667
40729
|
width,
|
|
40668
40730
|
height
|
|
40669
40731
|
};
|
|
40670
|
-
}).sort((a2,
|
|
40732
|
+
}).sort((a2, b2) => b2.width * b2.height - a2.width * a2.height), "mapBoxes");
|
|
40671
40733
|
var isOverMenu = /* @__PURE__ */ __name((menuElement, coordinates) => {
|
|
40672
40734
|
const menu = menuElement.getBoundingClientRect();
|
|
40673
|
-
const { x, y } = coordinates;
|
|
40674
|
-
return menu?.top && menu?.left &&
|
|
40735
|
+
const { x: x2, y: y2 } = coordinates;
|
|
40736
|
+
return menu?.top && menu?.left && x2 >= menu.left && x2 <= menu.left + menu.width && y2 >= menu.top && y2 <= menu.top + menu.height;
|
|
40675
40737
|
}, "isOverMenu");
|
|
40676
40738
|
var isTargeted = /* @__PURE__ */ __name((box, boxElement, coordinates) => {
|
|
40677
40739
|
if (!boxElement || !coordinates) {
|
|
@@ -40690,25 +40752,25 @@ var isTargeted = /* @__PURE__ */ __name((box, boxElement, coordinates) => {
|
|
|
40690
40752
|
left += window.scrollX;
|
|
40691
40753
|
top += window.scrollY;
|
|
40692
40754
|
}
|
|
40693
|
-
const { x, y } = coordinates;
|
|
40694
|
-
return
|
|
40755
|
+
const { x: x2, y: y2 } = coordinates;
|
|
40756
|
+
return x2 >= left && x2 <= left + width && y2 >= top && y2 <= top + height;
|
|
40695
40757
|
}, "isTargeted");
|
|
40696
40758
|
var keepInViewport = /* @__PURE__ */ __name((element, targetCoordinates, options = {}) => {
|
|
40697
|
-
const { x, y } = targetCoordinates;
|
|
40759
|
+
const { x: x2, y: y2 } = targetCoordinates;
|
|
40698
40760
|
const { margin = 5, topOffset = 0, centered = false } = options;
|
|
40699
40761
|
const { scrollX, scrollY, innerHeight: windowHeight, innerWidth: windowWidth } = window;
|
|
40700
40762
|
const top = Math.min(
|
|
40701
|
-
element.style.position === "fixed" ?
|
|
40763
|
+
element.style.position === "fixed" ? y2 - scrollY : y2,
|
|
40702
40764
|
windowHeight - element.clientHeight - margin - topOffset + scrollY
|
|
40703
40765
|
);
|
|
40704
40766
|
const leftOffset = centered ? element.clientWidth / 2 : 0;
|
|
40705
|
-
const left = element.style.position === "fixed" ? Math.max(Math.min(
|
|
40706
|
-
Math.min(
|
|
40767
|
+
const left = element.style.position === "fixed" ? Math.max(Math.min(x2 - scrollX, windowWidth - leftOffset - margin), leftOffset + margin) : Math.max(
|
|
40768
|
+
Math.min(x2, windowWidth - leftOffset - margin + scrollX),
|
|
40707
40769
|
leftOffset + margin + scrollX
|
|
40708
40770
|
);
|
|
40709
40771
|
Object.assign(element.style, {
|
|
40710
|
-
...left !==
|
|
40711
|
-
...top !==
|
|
40772
|
+
...left !== x2 && { left: `${left}px` },
|
|
40773
|
+
...top !== y2 && { top: `${top}px` }
|
|
40712
40774
|
});
|
|
40713
40775
|
}, "keepInViewport");
|
|
40714
40776
|
var showPopover = /* @__PURE__ */ __name((element) => {
|
|
@@ -40834,7 +40896,7 @@ var useHighlights = /* @__PURE__ */ __name((channel) => {
|
|
|
40834
40896
|
}
|
|
40835
40897
|
});
|
|
40836
40898
|
styleElementByHighlight.forEach((style, keyframes) => {
|
|
40837
|
-
if (!value.some((
|
|
40899
|
+
if (!value.some((v2) => v2.keyframes === keyframes)) {
|
|
40838
40900
|
style.remove();
|
|
40839
40901
|
styleElementByHighlight.delete(keyframes);
|
|
40840
40902
|
}
|
|
@@ -41161,13 +41223,13 @@ var useHighlights = /* @__PURE__ */ __name((channel) => {
|
|
|
41161
41223
|
const addHighlight = /* @__PURE__ */ __name((highlight) => {
|
|
41162
41224
|
const info = normalizeOptions(highlight);
|
|
41163
41225
|
highlights.set((value) => {
|
|
41164
|
-
const others = info.id ? value.filter((
|
|
41226
|
+
const others = info.id ? value.filter((h3) => h3.id !== info.id) : value;
|
|
41165
41227
|
return info.selectors?.length ? [...others, info] : others;
|
|
41166
41228
|
});
|
|
41167
41229
|
}, "addHighlight");
|
|
41168
41230
|
const removeHighlight = /* @__PURE__ */ __name((id) => {
|
|
41169
41231
|
if (id) {
|
|
41170
|
-
highlights.set((value) => value.filter((
|
|
41232
|
+
highlights.set((value) => value.filter((h3) => h3.id !== id));
|
|
41171
41233
|
}
|
|
41172
41234
|
}, "removeHighlight");
|
|
41173
41235
|
const resetState = /* @__PURE__ */ __name(() => {
|
|
@@ -41326,44 +41388,44 @@ var colors = {
|
|
|
41326
41388
|
text: "#232020"
|
|
41327
41389
|
};
|
|
41328
41390
|
var labelPadding = 6;
|
|
41329
|
-
function roundedRect(context, { x, y, w, h:
|
|
41330
|
-
|
|
41331
|
-
|
|
41332
|
-
if (
|
|
41333
|
-
r2 =
|
|
41391
|
+
function roundedRect(context, { x: x2, y: y2, w: w2, h: h3, r: r2 }) {
|
|
41392
|
+
x2 = x2 - w2 / 2;
|
|
41393
|
+
y2 = y2 - h3 / 2;
|
|
41394
|
+
if (w2 < 2 * r2) {
|
|
41395
|
+
r2 = w2 / 2;
|
|
41334
41396
|
}
|
|
41335
|
-
if (
|
|
41336
|
-
r2 =
|
|
41397
|
+
if (h3 < 2 * r2) {
|
|
41398
|
+
r2 = h3 / 2;
|
|
41337
41399
|
}
|
|
41338
41400
|
context.beginPath();
|
|
41339
|
-
context.moveTo(
|
|
41340
|
-
context.arcTo(
|
|
41341
|
-
context.arcTo(
|
|
41342
|
-
context.arcTo(
|
|
41343
|
-
context.arcTo(
|
|
41401
|
+
context.moveTo(x2 + r2, y2);
|
|
41402
|
+
context.arcTo(x2 + w2, y2, x2 + w2, y2 + h3, r2);
|
|
41403
|
+
context.arcTo(x2 + w2, y2 + h3, x2, y2 + h3, r2);
|
|
41404
|
+
context.arcTo(x2, y2 + h3, x2, y2, r2);
|
|
41405
|
+
context.arcTo(x2, y2, x2 + w2, y2, r2);
|
|
41344
41406
|
context.closePath();
|
|
41345
41407
|
}
|
|
41346
41408
|
__name(roundedRect, "roundedRect");
|
|
41347
41409
|
function positionCoordinate(position, { padding, border, width, height, top, left }) {
|
|
41348
41410
|
const contentWidth = width - border.left - border.right - padding.left - padding.right;
|
|
41349
41411
|
const contentHeight = height - padding.top - padding.bottom - border.top - border.bottom;
|
|
41350
|
-
let
|
|
41351
|
-
let
|
|
41412
|
+
let x2 = left + border.left + padding.left;
|
|
41413
|
+
let y2 = top + border.top + padding.top;
|
|
41352
41414
|
if (position === "top") {
|
|
41353
|
-
|
|
41415
|
+
x2 += contentWidth / 2;
|
|
41354
41416
|
} else if (position === "right") {
|
|
41355
|
-
|
|
41356
|
-
|
|
41417
|
+
x2 += contentWidth;
|
|
41418
|
+
y2 += contentHeight / 2;
|
|
41357
41419
|
} else if (position === "bottom") {
|
|
41358
|
-
|
|
41359
|
-
|
|
41420
|
+
x2 += contentWidth / 2;
|
|
41421
|
+
y2 += contentHeight;
|
|
41360
41422
|
} else if (position === "left") {
|
|
41361
|
-
|
|
41423
|
+
y2 += contentHeight / 2;
|
|
41362
41424
|
} else if (position === "center") {
|
|
41363
|
-
|
|
41364
|
-
|
|
41425
|
+
x2 += contentWidth / 2;
|
|
41426
|
+
y2 += contentHeight / 2;
|
|
41365
41427
|
}
|
|
41366
|
-
return { x, y };
|
|
41428
|
+
return { x: x2, y: y2 };
|
|
41367
41429
|
}
|
|
41368
41430
|
__name(positionCoordinate, "positionCoordinate");
|
|
41369
41431
|
function offset(type5, position, { margin, border, padding }, labelPaddingSize, external) {
|
|
@@ -41391,8 +41453,8 @@ function offset(type5, position, { margin, border, padding }, labelPaddingSize,
|
|
|
41391
41453
|
return { offsetX, offsetY };
|
|
41392
41454
|
}
|
|
41393
41455
|
__name(offset, "offset");
|
|
41394
|
-
function collide(a2,
|
|
41395
|
-
return Math.abs(a2.x -
|
|
41456
|
+
function collide(a2, b2) {
|
|
41457
|
+
return Math.abs(a2.x - b2.x) < Math.abs(a2.w + b2.w) / 2 && Math.abs(a2.y - b2.y) < Math.abs(a2.h + b2.h) / 2;
|
|
41396
41458
|
}
|
|
41397
41459
|
__name(collide, "collide");
|
|
41398
41460
|
function overlapAdjustment(position, currentRect, prevRect) {
|
|
@@ -41408,22 +41470,22 @@ function overlapAdjustment(position, currentRect, prevRect) {
|
|
|
41408
41470
|
return { x: currentRect.x, y: currentRect.y };
|
|
41409
41471
|
}
|
|
41410
41472
|
__name(overlapAdjustment, "overlapAdjustment");
|
|
41411
|
-
function textWithRect(context, type5, { x, y, w, h:
|
|
41412
|
-
roundedRect(context, { x, y, w, h:
|
|
41473
|
+
function textWithRect(context, type5, { x: x2, y: y2, w: w2, h: h3 }, text) {
|
|
41474
|
+
roundedRect(context, { x: x2, y: y2, w: w2, h: h3, r: 3 });
|
|
41413
41475
|
context.fillStyle = `${colors[type5]}dd`;
|
|
41414
41476
|
context.fill();
|
|
41415
41477
|
context.strokeStyle = colors[type5];
|
|
41416
41478
|
context.stroke();
|
|
41417
41479
|
context.fillStyle = colors.text;
|
|
41418
|
-
context.fillText(text,
|
|
41419
|
-
roundedRect(context, { x, y, w, h:
|
|
41480
|
+
context.fillText(text, x2, y2);
|
|
41481
|
+
roundedRect(context, { x: x2, y: y2, w: w2, h: h3, r: 3 });
|
|
41420
41482
|
context.fillStyle = `${colors[type5]}dd`;
|
|
41421
41483
|
context.fill();
|
|
41422
41484
|
context.strokeStyle = colors[type5];
|
|
41423
41485
|
context.stroke();
|
|
41424
41486
|
context.fillStyle = colors.text;
|
|
41425
|
-
context.fillText(text,
|
|
41426
|
-
return { x, y, w, h:
|
|
41487
|
+
context.fillText(text, x2, y2);
|
|
41488
|
+
return { x: x2, y: y2, w: w2, h: h3 };
|
|
41427
41489
|
}
|
|
41428
41490
|
__name(textWithRect, "textWithRect");
|
|
41429
41491
|
function configureText(context, text) {
|
|
@@ -41432,28 +41494,28 @@ function configureText(context, text) {
|
|
|
41432
41494
|
context.textAlign = "center";
|
|
41433
41495
|
const metrics = context.measureText(text);
|
|
41434
41496
|
const actualHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent;
|
|
41435
|
-
const
|
|
41436
|
-
const
|
|
41437
|
-
return { w, h:
|
|
41497
|
+
const w2 = metrics.width + labelPadding * 2;
|
|
41498
|
+
const h3 = actualHeight + labelPadding * 2;
|
|
41499
|
+
return { w: w2, h: h3 };
|
|
41438
41500
|
}
|
|
41439
41501
|
__name(configureText, "configureText");
|
|
41440
41502
|
function drawLabel(context, measurements, { type: type5, position = "center", text }, prevRect, external = false) {
|
|
41441
|
-
let { x, y } = positionCoordinate(position, measurements);
|
|
41503
|
+
let { x: x2, y: y2 } = positionCoordinate(position, measurements);
|
|
41442
41504
|
const { offsetX, offsetY } = offset(type5, position, measurements, labelPadding + 1, external);
|
|
41443
|
-
|
|
41444
|
-
|
|
41445
|
-
const { w, h:
|
|
41446
|
-
if (prevRect && collide({ x, y, w, h:
|
|
41447
|
-
const adjusted = overlapAdjustment(position, { x, y, w, h:
|
|
41448
|
-
|
|
41449
|
-
|
|
41505
|
+
x2 += offsetX;
|
|
41506
|
+
y2 += offsetY;
|
|
41507
|
+
const { w: w2, h: h3 } = configureText(context, text);
|
|
41508
|
+
if (prevRect && collide({ x: x2, y: y2, w: w2, h: h3 }, prevRect)) {
|
|
41509
|
+
const adjusted = overlapAdjustment(position, { x: x2, y: y2, w: w2, h: h3 }, prevRect);
|
|
41510
|
+
x2 = adjusted.x;
|
|
41511
|
+
y2 = adjusted.y;
|
|
41450
41512
|
}
|
|
41451
|
-
return textWithRect(context, type5, { x, y, w, h:
|
|
41513
|
+
return textWithRect(context, type5, { x: x2, y: y2, w: w2, h: h3 }, text);
|
|
41452
41514
|
}
|
|
41453
41515
|
__name(drawLabel, "drawLabel");
|
|
41454
|
-
function floatingOffset(alignment, { w, h:
|
|
41455
|
-
const deltaW =
|
|
41456
|
-
const deltaH =
|
|
41516
|
+
function floatingOffset(alignment, { w: w2, h: h3 }) {
|
|
41517
|
+
const deltaW = w2 * 0.5 + labelPadding;
|
|
41518
|
+
const deltaH = h3 * 0.5 + labelPadding;
|
|
41457
41519
|
return {
|
|
41458
41520
|
offsetX: (alignment.x === "left" ? -1 : 1) * deltaW,
|
|
41459
41521
|
offsetY: (alignment.y === "top" ? -1 : 1) * deltaH
|
|
@@ -41462,32 +41524,32 @@ function floatingOffset(alignment, { w, h: h2 }) {
|
|
|
41462
41524
|
__name(floatingOffset, "floatingOffset");
|
|
41463
41525
|
function drawFloatingLabel(context, measurements, { type: type5, text }) {
|
|
41464
41526
|
const { floatingAlignment: floatingAlignment2, extremities } = measurements;
|
|
41465
|
-
let
|
|
41466
|
-
let
|
|
41467
|
-
const { w, h:
|
|
41527
|
+
let x2 = extremities[floatingAlignment2.x];
|
|
41528
|
+
let y2 = extremities[floatingAlignment2.y];
|
|
41529
|
+
const { w: w2, h: h3 } = configureText(context, text);
|
|
41468
41530
|
const { offsetX, offsetY } = floatingOffset(floatingAlignment2, {
|
|
41469
|
-
w,
|
|
41470
|
-
h:
|
|
41531
|
+
w: w2,
|
|
41532
|
+
h: h3
|
|
41471
41533
|
});
|
|
41472
|
-
|
|
41473
|
-
|
|
41474
|
-
return textWithRect(context, type5, { x, y, w, h:
|
|
41534
|
+
x2 += offsetX;
|
|
41535
|
+
y2 += offsetY;
|
|
41536
|
+
return textWithRect(context, type5, { x: x2, y: y2, w: w2, h: h3 }, text);
|
|
41475
41537
|
}
|
|
41476
41538
|
__name(drawFloatingLabel, "drawFloatingLabel");
|
|
41477
41539
|
function drawStack(context, measurements, stack, external) {
|
|
41478
41540
|
const rects = [];
|
|
41479
|
-
stack.forEach((
|
|
41480
|
-
const rect = external &&
|
|
41541
|
+
stack.forEach((l2, idx) => {
|
|
41542
|
+
const rect = external && l2.position === "center" ? drawFloatingLabel(context, measurements, l2) : drawLabel(context, measurements, l2, rects[idx - 1], external);
|
|
41481
41543
|
rects[idx] = rect;
|
|
41482
41544
|
});
|
|
41483
41545
|
}
|
|
41484
41546
|
__name(drawStack, "drawStack");
|
|
41485
41547
|
function labelStacks(context, measurements, labels, externalLabels) {
|
|
41486
|
-
const stacks = labels.reduce((acc,
|
|
41487
|
-
if (!Object.prototype.hasOwnProperty.call(acc,
|
|
41488
|
-
acc[
|
|
41548
|
+
const stacks = labels.reduce((acc, l2) => {
|
|
41549
|
+
if (!Object.prototype.hasOwnProperty.call(acc, l2.position)) {
|
|
41550
|
+
acc[l2.position] = [];
|
|
41489
41551
|
}
|
|
41490
|
-
acc[
|
|
41552
|
+
acc[l2.position]?.push(l2);
|
|
41491
41553
|
return acc;
|
|
41492
41554
|
}, {});
|
|
41493
41555
|
if (stacks.top) {
|
|
@@ -41525,7 +41587,7 @@ function round(value) {
|
|
|
41525
41587
|
}
|
|
41526
41588
|
__name(round, "round");
|
|
41527
41589
|
function filterZeroValues(labels) {
|
|
41528
|
-
return labels.filter((
|
|
41590
|
+
return labels.filter((l2) => l2.text !== 0 && l2.text !== "0");
|
|
41529
41591
|
}
|
|
41530
41592
|
__name(filterZeroValues, "filterZeroValues");
|
|
41531
41593
|
function floatingAlignment(extremities) {
|
|
@@ -41758,11 +41820,11 @@ function drawSelectedElement(element) {
|
|
|
41758
41820
|
__name(drawSelectedElement, "drawSelectedElement");
|
|
41759
41821
|
|
|
41760
41822
|
// src/measure/util.ts
|
|
41761
|
-
var deepElementFromPoint = /* @__PURE__ */ __name((
|
|
41762
|
-
const element = scope.document.elementFromPoint(
|
|
41823
|
+
var deepElementFromPoint = /* @__PURE__ */ __name((x2, y2) => {
|
|
41824
|
+
const element = scope.document.elementFromPoint(x2, y2);
|
|
41763
41825
|
const crawlShadows = /* @__PURE__ */ __name((node) => {
|
|
41764
41826
|
if (node && node.shadowRoot) {
|
|
41765
|
-
const nestedElement = node.shadowRoot.elementFromPoint(
|
|
41827
|
+
const nestedElement = node.shadowRoot.elementFromPoint(x2, y2);
|
|
41766
41828
|
if (node.isEqualNode(nestedElement)) {
|
|
41767
41829
|
return node;
|
|
41768
41830
|
}
|
|
@@ -41780,8 +41842,8 @@ var deepElementFromPoint = /* @__PURE__ */ __name((x, y) => {
|
|
|
41780
41842
|
// src/measure/withMeasure.ts
|
|
41781
41843
|
var nodeAtPointerRef;
|
|
41782
41844
|
var pointer3 = { x: 0, y: 0 };
|
|
41783
|
-
function findAndDrawElement(
|
|
41784
|
-
nodeAtPointerRef = deepElementFromPoint(
|
|
41845
|
+
function findAndDrawElement(x2, y2) {
|
|
41846
|
+
nodeAtPointerRef = deepElementFromPoint(x2, y2);
|
|
41785
41847
|
drawSelectedElement(nodeAtPointerRef);
|
|
41786
41848
|
}
|
|
41787
41849
|
__name(findAndDrawElement, "findAndDrawElement");
|
|
@@ -42316,7 +42378,7 @@ var traverseArgs = /* @__PURE__ */ __name((value, depth = 0, key) => {
|
|
|
42316
42378
|
if (value == null) {
|
|
42317
42379
|
return value;
|
|
42318
42380
|
}
|
|
42319
|
-
if (
|
|
42381
|
+
if (isMockFunction(value)) {
|
|
42320
42382
|
if (key) {
|
|
42321
42383
|
value.mockName(key);
|
|
42322
42384
|
}
|
|
@@ -42340,9 +42402,9 @@ var traverseArgs = /* @__PURE__ */ __name((value, depth = 0, key) => {
|
|
|
42340
42402
|
}
|
|
42341
42403
|
if (typeof value === "object" && value.constructor === Object) {
|
|
42342
42404
|
depth++;
|
|
42343
|
-
for (const [
|
|
42344
|
-
if (Object.getOwnPropertyDescriptor(value,
|
|
42345
|
-
value[
|
|
42405
|
+
for (const [k2, v2] of Object.entries(value)) {
|
|
42406
|
+
if (Object.getOwnPropertyDescriptor(value, k2)?.writable) {
|
|
42407
|
+
value[k2] = traverseArgs(v2, depth, k2);
|
|
42346
42408
|
}
|
|
42347
42409
|
}
|
|
42348
42410
|
return value;
|
|
@@ -42594,44 +42656,44 @@ function eq3(value, other) {
|
|
|
42594
42656
|
__name(eq3, "eq");
|
|
42595
42657
|
|
|
42596
42658
|
// ../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
|
|
42597
|
-
function isEqualWith(a2,
|
|
42598
|
-
return isEqualWithImpl(a2,
|
|
42659
|
+
function isEqualWith(a2, b2, areValuesEqual) {
|
|
42660
|
+
return isEqualWithImpl(a2, b2, void 0, void 0, void 0, void 0, areValuesEqual);
|
|
42599
42661
|
}
|
|
42600
42662
|
__name(isEqualWith, "isEqualWith");
|
|
42601
|
-
function isEqualWithImpl(a2,
|
|
42602
|
-
const result = areValuesEqual(a2,
|
|
42663
|
+
function isEqualWithImpl(a2, b2, property, aParent, bParent, stack, areValuesEqual) {
|
|
42664
|
+
const result = areValuesEqual(a2, b2, property, aParent, bParent, stack);
|
|
42603
42665
|
if (result !== void 0) {
|
|
42604
42666
|
return result;
|
|
42605
42667
|
}
|
|
42606
|
-
if (typeof a2 === typeof
|
|
42668
|
+
if (typeof a2 === typeof b2) {
|
|
42607
42669
|
switch (typeof a2) {
|
|
42608
42670
|
case "bigint":
|
|
42609
42671
|
case "string":
|
|
42610
42672
|
case "boolean":
|
|
42611
42673
|
case "symbol":
|
|
42612
42674
|
case "undefined": {
|
|
42613
|
-
return a2 ===
|
|
42675
|
+
return a2 === b2;
|
|
42614
42676
|
}
|
|
42615
42677
|
case "number": {
|
|
42616
|
-
return a2 ===
|
|
42678
|
+
return a2 === b2 || Object.is(a2, b2);
|
|
42617
42679
|
}
|
|
42618
42680
|
case "function": {
|
|
42619
|
-
return a2 ===
|
|
42681
|
+
return a2 === b2;
|
|
42620
42682
|
}
|
|
42621
42683
|
case "object": {
|
|
42622
|
-
return areObjectsEqual(a2,
|
|
42684
|
+
return areObjectsEqual(a2, b2, stack, areValuesEqual);
|
|
42623
42685
|
}
|
|
42624
42686
|
}
|
|
42625
42687
|
}
|
|
42626
|
-
return areObjectsEqual(a2,
|
|
42688
|
+
return areObjectsEqual(a2, b2, stack, areValuesEqual);
|
|
42627
42689
|
}
|
|
42628
42690
|
__name(isEqualWithImpl, "isEqualWithImpl");
|
|
42629
|
-
function areObjectsEqual(a2,
|
|
42630
|
-
if (Object.is(a2,
|
|
42691
|
+
function areObjectsEqual(a2, b2, stack, areValuesEqual) {
|
|
42692
|
+
if (Object.is(a2, b2)) {
|
|
42631
42693
|
return true;
|
|
42632
42694
|
}
|
|
42633
42695
|
let aTag = getTag2(a2);
|
|
42634
|
-
let bTag = getTag2(
|
|
42696
|
+
let bTag = getTag2(b2);
|
|
42635
42697
|
if (aTag === argumentsTag) {
|
|
42636
42698
|
aTag = objectTag;
|
|
42637
42699
|
}
|
|
@@ -42643,54 +42705,54 @@ function areObjectsEqual(a2, b, stack, areValuesEqual) {
|
|
|
42643
42705
|
}
|
|
42644
42706
|
switch (aTag) {
|
|
42645
42707
|
case stringTag:
|
|
42646
|
-
return a2.toString() ===
|
|
42708
|
+
return a2.toString() === b2.toString();
|
|
42647
42709
|
case numberTag: {
|
|
42648
|
-
const
|
|
42649
|
-
const
|
|
42650
|
-
return eq3(
|
|
42710
|
+
const x2 = a2.valueOf();
|
|
42711
|
+
const y2 = b2.valueOf();
|
|
42712
|
+
return eq3(x2, y2);
|
|
42651
42713
|
}
|
|
42652
42714
|
case booleanTag:
|
|
42653
42715
|
case dateTag:
|
|
42654
42716
|
case symbolTag2:
|
|
42655
|
-
return Object.is(a2.valueOf(),
|
|
42717
|
+
return Object.is(a2.valueOf(), b2.valueOf());
|
|
42656
42718
|
case regexpTag: {
|
|
42657
|
-
return a2.source ===
|
|
42719
|
+
return a2.source === b2.source && a2.flags === b2.flags;
|
|
42658
42720
|
}
|
|
42659
42721
|
case functionTag: {
|
|
42660
|
-
return a2 ===
|
|
42722
|
+
return a2 === b2;
|
|
42661
42723
|
}
|
|
42662
42724
|
}
|
|
42663
42725
|
stack = stack ?? /* @__PURE__ */ new Map();
|
|
42664
42726
|
const aStack = stack.get(a2);
|
|
42665
|
-
const bStack = stack.get(
|
|
42727
|
+
const bStack = stack.get(b2);
|
|
42666
42728
|
if (aStack != null && bStack != null) {
|
|
42667
|
-
return aStack ===
|
|
42729
|
+
return aStack === b2;
|
|
42668
42730
|
}
|
|
42669
|
-
stack.set(a2,
|
|
42670
|
-
stack.set(
|
|
42731
|
+
stack.set(a2, b2);
|
|
42732
|
+
stack.set(b2, a2);
|
|
42671
42733
|
try {
|
|
42672
42734
|
switch (aTag) {
|
|
42673
42735
|
case mapTag: {
|
|
42674
|
-
if (a2.size !==
|
|
42736
|
+
if (a2.size !== b2.size) {
|
|
42675
42737
|
return false;
|
|
42676
42738
|
}
|
|
42677
42739
|
for (const [key, value] of a2.entries()) {
|
|
42678
|
-
if (!
|
|
42740
|
+
if (!b2.has(key) || !isEqualWithImpl(value, b2.get(key), key, a2, b2, stack, areValuesEqual)) {
|
|
42679
42741
|
return false;
|
|
42680
42742
|
}
|
|
42681
42743
|
}
|
|
42682
42744
|
return true;
|
|
42683
42745
|
}
|
|
42684
42746
|
case setTag: {
|
|
42685
|
-
if (a2.size !==
|
|
42747
|
+
if (a2.size !== b2.size) {
|
|
42686
42748
|
return false;
|
|
42687
42749
|
}
|
|
42688
42750
|
const aValues = Array.from(a2.values());
|
|
42689
|
-
const bValues = Array.from(
|
|
42751
|
+
const bValues = Array.from(b2.values());
|
|
42690
42752
|
for (let i2 = 0; i2 < aValues.length; i2++) {
|
|
42691
42753
|
const aValue = aValues[i2];
|
|
42692
42754
|
const index2 = bValues.findIndex((bValue) => {
|
|
42693
|
-
return isEqualWithImpl(aValue, bValue, void 0, a2,
|
|
42755
|
+
return isEqualWithImpl(aValue, bValue, void 0, a2, b2, stack, areValuesEqual);
|
|
42694
42756
|
});
|
|
42695
42757
|
if (index2 === -1) {
|
|
42696
42758
|
return false;
|
|
@@ -42711,52 +42773,52 @@ function areObjectsEqual(a2, b, stack, areValuesEqual) {
|
|
|
42711
42773
|
case bigInt64ArrayTag:
|
|
42712
42774
|
case float32ArrayTag:
|
|
42713
42775
|
case float64ArrayTag: {
|
|
42714
|
-
if (typeof Buffer !== "undefined" && Buffer.isBuffer(a2) !== Buffer.isBuffer(
|
|
42776
|
+
if (typeof Buffer !== "undefined" && Buffer.isBuffer(a2) !== Buffer.isBuffer(b2)) {
|
|
42715
42777
|
return false;
|
|
42716
42778
|
}
|
|
42717
|
-
if (a2.length !==
|
|
42779
|
+
if (a2.length !== b2.length) {
|
|
42718
42780
|
return false;
|
|
42719
42781
|
}
|
|
42720
42782
|
for (let i2 = 0; i2 < a2.length; i2++) {
|
|
42721
|
-
if (!isEqualWithImpl(a2[i2],
|
|
42783
|
+
if (!isEqualWithImpl(a2[i2], b2[i2], i2, a2, b2, stack, areValuesEqual)) {
|
|
42722
42784
|
return false;
|
|
42723
42785
|
}
|
|
42724
42786
|
}
|
|
42725
42787
|
return true;
|
|
42726
42788
|
}
|
|
42727
42789
|
case arrayBufferTag: {
|
|
42728
|
-
if (a2.byteLength !==
|
|
42790
|
+
if (a2.byteLength !== b2.byteLength) {
|
|
42729
42791
|
return false;
|
|
42730
42792
|
}
|
|
42731
|
-
return areObjectsEqual(new Uint8Array(a2), new Uint8Array(
|
|
42793
|
+
return areObjectsEqual(new Uint8Array(a2), new Uint8Array(b2), stack, areValuesEqual);
|
|
42732
42794
|
}
|
|
42733
42795
|
case dataViewTag: {
|
|
42734
|
-
if (a2.byteLength !==
|
|
42796
|
+
if (a2.byteLength !== b2.byteLength || a2.byteOffset !== b2.byteOffset) {
|
|
42735
42797
|
return false;
|
|
42736
42798
|
}
|
|
42737
|
-
return areObjectsEqual(new Uint8Array(a2), new Uint8Array(
|
|
42799
|
+
return areObjectsEqual(new Uint8Array(a2), new Uint8Array(b2), stack, areValuesEqual);
|
|
42738
42800
|
}
|
|
42739
42801
|
case errorTag: {
|
|
42740
|
-
return a2.name ===
|
|
42802
|
+
return a2.name === b2.name && a2.message === b2.message;
|
|
42741
42803
|
}
|
|
42742
42804
|
case objectTag: {
|
|
42743
|
-
const areEqualInstances = areObjectsEqual(a2.constructor,
|
|
42805
|
+
const areEqualInstances = areObjectsEqual(a2.constructor, b2.constructor, stack, areValuesEqual) || isPlainObject(a2) && isPlainObject(b2);
|
|
42744
42806
|
if (!areEqualInstances) {
|
|
42745
42807
|
return false;
|
|
42746
42808
|
}
|
|
42747
42809
|
const aKeys = [...Object.keys(a2), ...getSymbols(a2)];
|
|
42748
|
-
const bKeys = [...Object.keys(
|
|
42810
|
+
const bKeys = [...Object.keys(b2), ...getSymbols(b2)];
|
|
42749
42811
|
if (aKeys.length !== bKeys.length) {
|
|
42750
42812
|
return false;
|
|
42751
42813
|
}
|
|
42752
42814
|
for (let i2 = 0; i2 < aKeys.length; i2++) {
|
|
42753
42815
|
const propKey = aKeys[i2];
|
|
42754
42816
|
const aProp = a2[propKey];
|
|
42755
|
-
if (!Object.hasOwn(
|
|
42817
|
+
if (!Object.hasOwn(b2, propKey)) {
|
|
42756
42818
|
return false;
|
|
42757
42819
|
}
|
|
42758
|
-
const bProp =
|
|
42759
|
-
if (!isEqualWithImpl(aProp, bProp, propKey, a2,
|
|
42820
|
+
const bProp = b2[propKey];
|
|
42821
|
+
if (!isEqualWithImpl(aProp, bProp, propKey, a2, b2, stack, areValuesEqual)) {
|
|
42760
42822
|
return false;
|
|
42761
42823
|
}
|
|
42762
42824
|
}
|
|
@@ -42768,7 +42830,7 @@ function areObjectsEqual(a2, b, stack, areValuesEqual) {
|
|
|
42768
42830
|
}
|
|
42769
42831
|
} finally {
|
|
42770
42832
|
stack.delete(a2);
|
|
42771
|
-
stack.delete(
|
|
42833
|
+
stack.delete(b2);
|
|
42772
42834
|
}
|
|
42773
42835
|
}
|
|
42774
42836
|
__name(areObjectsEqual, "areObjectsEqual");
|
|
@@ -42779,8 +42841,8 @@ function noop2() {
|
|
|
42779
42841
|
__name(noop2, "noop");
|
|
42780
42842
|
|
|
42781
42843
|
// ../node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
42782
|
-
function isEqual2(a2,
|
|
42783
|
-
return isEqualWith(a2,
|
|
42844
|
+
function isEqual2(a2, b2) {
|
|
42845
|
+
return isEqualWith(a2, b2, noop2);
|
|
42784
42846
|
}
|
|
42785
42847
|
__name(isEqual2, "isEqual");
|
|
42786
42848
|
|
|
@@ -42853,7 +42915,7 @@ var combineArgs = /* @__PURE__ */ __name((value, update) => {
|
|
|
42853
42915
|
return acc;
|
|
42854
42916
|
},
|
|
42855
42917
|
[...value]
|
|
42856
|
-
).filter((
|
|
42918
|
+
).filter((v2) => v2 !== void 0);
|
|
42857
42919
|
}
|
|
42858
42920
|
if (!isPlainObject(value) || !isPlainObject(update)) {
|
|
42859
42921
|
return update;
|
|
@@ -44468,17 +44530,17 @@ var userOrAutoTitle = /* @__PURE__ */ __name((fileName, storiesEntries, userTitl
|
|
|
44468
44530
|
|
|
44469
44531
|
// src/preview-api/modules/store/storySort.ts
|
|
44470
44532
|
var STORY_KIND_PATH_SEPARATOR = /\s*\/\s*/;
|
|
44471
|
-
var storySort = /* @__PURE__ */ __name((options = {}) => (a2,
|
|
44472
|
-
if (a2.title ===
|
|
44533
|
+
var storySort = /* @__PURE__ */ __name((options = {}) => (a2, b2) => {
|
|
44534
|
+
if (a2.title === b2.title && !options.includeNames) {
|
|
44473
44535
|
return 0;
|
|
44474
44536
|
}
|
|
44475
44537
|
const method = options.method || "configure";
|
|
44476
44538
|
let order = options.order || [];
|
|
44477
44539
|
const storyTitleA = a2.title.trim().split(STORY_KIND_PATH_SEPARATOR);
|
|
44478
|
-
const storyTitleB =
|
|
44540
|
+
const storyTitleB = b2.title.trim().split(STORY_KIND_PATH_SEPARATOR);
|
|
44479
44541
|
if (options.includeNames) {
|
|
44480
44542
|
storyTitleA.push(a2.name);
|
|
44481
|
-
storyTitleB.push(
|
|
44543
|
+
storyTitleB.push(b2.name);
|
|
44482
44544
|
}
|
|
44483
44545
|
let depth = 0;
|
|
44484
44546
|
while (storyTitleA[depth] || storyTitleB[depth]) {
|
|
@@ -45974,10 +46036,10 @@ var validateArgs = /* @__PURE__ */ __name((key = "", value) => {
|
|
|
45974
46036
|
return VALIDATION_REGEXP.test(value) || NUMBER_REGEXP.test(value) || HEX_REGEXP.test(value) || COLOR_REGEXP.test(value);
|
|
45975
46037
|
}
|
|
45976
46038
|
if (Array.isArray(value)) {
|
|
45977
|
-
return value.every((
|
|
46039
|
+
return value.every((v2) => validateArgs(key, v2));
|
|
45978
46040
|
}
|
|
45979
46041
|
if (isPlainObject(value)) {
|
|
45980
|
-
return Object.entries(value).every(([
|
|
46042
|
+
return Object.entries(value).every(([k2, v2]) => validateArgs(k2, v2));
|
|
45981
46043
|
}
|
|
45982
46044
|
return false;
|
|
45983
46045
|
}, "validateArgs");
|
|
@@ -46074,19 +46136,19 @@ var setPath = /* @__PURE__ */ __name((selection) => {
|
|
|
46074
46136
|
history.replaceState({}, "", `${document4.location.pathname}${query}${hash}`);
|
|
46075
46137
|
}, "setPath");
|
|
46076
46138
|
var isObject6 = /* @__PURE__ */ __name((val) => val != null && typeof val === "object" && Array.isArray(val) === false, "isObject");
|
|
46077
|
-
var getFirstString = /* @__PURE__ */ __name((
|
|
46078
|
-
if (
|
|
46139
|
+
var getFirstString = /* @__PURE__ */ __name((v2) => {
|
|
46140
|
+
if (v2 === void 0) {
|
|
46079
46141
|
return void 0;
|
|
46080
46142
|
}
|
|
46081
|
-
if (typeof
|
|
46082
|
-
return
|
|
46143
|
+
if (typeof v2 === "string") {
|
|
46144
|
+
return v2;
|
|
46083
46145
|
}
|
|
46084
|
-
if (Array.isArray(
|
|
46085
|
-
return getFirstString(
|
|
46146
|
+
if (Array.isArray(v2)) {
|
|
46147
|
+
return getFirstString(v2[0]);
|
|
46086
46148
|
}
|
|
46087
|
-
if (isObject6(
|
|
46149
|
+
if (isObject6(v2)) {
|
|
46088
46150
|
return getFirstString(
|
|
46089
|
-
Object.values(
|
|
46151
|
+
Object.values(v2).filter(Boolean)
|
|
46090
46152
|
);
|
|
46091
46153
|
}
|
|
46092
46154
|
return void 0;
|