storybook 10.2.0-alpha.2 → 10.2.0-alpha.3
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-MOYJJEXA.js → chunk-Q5RYDXT3.js} +3 -4
- package/dist/_node-chunks/{builder-manager-ZK4QXZNX.js → builder-manager-U6SN6ZED.js} +12 -12
- package/dist/_node-chunks/{camelcase-QWQG7I72.js → camelcase-GLXVGCEV.js} +7 -7
- package/dist/_node-chunks/{chunk-HMFROKHU.js → chunk-2IFACTU4.js} +7 -7
- package/dist/_node-chunks/{chunk-TOXVUAH2.js → chunk-4VZME5CV.js} +6 -6
- package/dist/_node-chunks/{chunk-OV2CP4VV.js → chunk-5SCVRD6U.js} +6 -6
- package/dist/_node-chunks/{chunk-WUKWNPSQ.js → chunk-5ZGZ22PV.js} +9 -9
- package/dist/_node-chunks/{chunk-Q5ZQH2OQ.js → chunk-6RXAFKLM.js} +7 -7
- package/dist/_node-chunks/chunk-6WHPDWFA.js +61 -0
- package/dist/_node-chunks/chunk-B6AJKALV.js +20 -0
- package/dist/_node-chunks/{chunk-EXZXVBZO.js → chunk-C2G5ML5F.js} +7 -7
- package/dist/_node-chunks/chunk-CFCZ5PKC.js +18 -0
- package/dist/_node-chunks/{chunk-NKOHF7TQ.js → chunk-DO56XDMZ.js} +10 -10
- package/dist/_node-chunks/{chunk-URBB5EGY.js → chunk-E6CKDKNL.js} +7 -7
- package/dist/_node-chunks/{chunk-QFSK4B7R.js → chunk-H4BZRGVO.js} +8 -8
- package/dist/_node-chunks/{chunk-UWJ4BOOL.js → chunk-HGYHQF7Z.js} +9 -9
- package/dist/_node-chunks/{chunk-GKEAARBQ.js → chunk-HKTRFCJD.js} +6 -6
- package/dist/_node-chunks/{chunk-6OZRMRVO.js → chunk-HYH2IT7K.js} +7 -7
- package/dist/_node-chunks/{chunk-2AFVBCGF.js → chunk-IKSK6CEY.js} +6 -6
- package/dist/_node-chunks/{chunk-FZFZ5TOM.js → chunk-KP6H4S3L.js} +6 -6
- package/dist/_node-chunks/{chunk-I5TOD3AY.js → chunk-LHBDNMEP.js} +12 -12
- package/dist/_node-chunks/{chunk-WOS3OQVT.js → chunk-MUWHX7GN.js} +6 -6
- package/dist/_node-chunks/{chunk-CW7HJRCY.js → chunk-N3O3HJMU.js} +7 -7
- package/dist/_node-chunks/{chunk-KVNLJSAB.js → chunk-NKUDIVPF.js} +7 -7
- package/dist/_node-chunks/chunk-O5OIO47U.js +23 -0
- package/dist/_node-chunks/{chunk-XFU23B4C.js → chunk-Q27GKV7Y.js} +7 -7
- package/dist/_node-chunks/{chunk-DWVHBQGR.js → chunk-Q47IIVLL.js} +8 -8
- package/dist/_node-chunks/{chunk-5VZMCPTH.js → chunk-SM7QXYN4.js} +43 -27
- package/dist/_node-chunks/{chunk-VJPI73BB.js → chunk-VKFEIIOF.js} +39 -24
- package/dist/_node-chunks/{chunk-R2J3OB3H.js → chunk-XYVZIRZC.js} +6 -6
- package/dist/_node-chunks/{chunk-RGQC4G3L.js → chunk-YPCGEC3N.js} +13 -13
- package/dist/_node-chunks/{dist-UBFMIJZC.js → dist-GGDI7EVD.js} +9 -9
- package/dist/_node-chunks/{globby-VD3CGPVI.js → globby-DY2UCDKN.js} +9 -9
- package/dist/_node-chunks/{lib-MMJB47J3.js → lib-PFKECSVA.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3J2G7NZZ.js → mdx-N42X6CFJ-OPAAI5WZ.js} +8 -8
- package/dist/_node-chunks/{p-limit-SOBWTEVH.js → p-limit-PMYE6ZFC.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +24 -18
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +25 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.js +35 -35
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +3102 -3017
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +706 -621
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/dist/test/index.js +370 -286
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-CLCLRZYL.js +0 -61
- package/dist/_node-chunks/chunk-DF3QP62W.js +0 -18
- package/dist/_node-chunks/chunk-EVBCPGQO.js +0 -20
- package/dist/_node-chunks/chunk-PCMFKXWQ.js +0 -23
package/dist/preview/runtime.js
CHANGED
|
@@ -4,7 +4,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
|
|
7
|
-
get: (
|
|
7
|
+
get: (a3, b) => (typeof require < "u" ? require : a3)[b]
|
|
8
8
|
}) : x)(function(x) {
|
|
9
9
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
10
10
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
@@ -37,37 +37,37 @@ var require_tiny_isequal = __commonJS({
|
|
|
37
37
|
var e = Object.prototype.toString, r = Object.getPrototypeOf, t = Object.getOwnPropertySymbols ? function(e2) {
|
|
38
38
|
return Object.keys(e2).concat(Object.getOwnPropertySymbols(e2));
|
|
39
39
|
} : Object.keys;
|
|
40
|
-
return function(n,
|
|
41
|
-
return (function n2(
|
|
42
|
-
var i,
|
|
43
|
-
if (
|
|
44
|
-
if (
|
|
45
|
-
if (u2.indexOf(
|
|
46
|
-
if (u2.push(
|
|
47
|
-
return !n2(
|
|
40
|
+
return function(n, a3) {
|
|
41
|
+
return (function n2(a4, c, u2) {
|
|
42
|
+
var i, s3, l, o = e.call(a4), f4 = e.call(c);
|
|
43
|
+
if (a4 === c) return !0;
|
|
44
|
+
if (a4 == null || c == null) return !1;
|
|
45
|
+
if (u2.indexOf(a4) > -1 && u2.indexOf(c) > -1) return !0;
|
|
46
|
+
if (u2.push(a4, c), o != f4 || (i = t(a4), s3 = t(c), i.length != s3.length || i.some(function(e2) {
|
|
47
|
+
return !n2(a4[e2], c[e2], u2);
|
|
48
48
|
}))) return !1;
|
|
49
49
|
switch (o.slice(8, -1)) {
|
|
50
50
|
case "Symbol":
|
|
51
|
-
return
|
|
51
|
+
return a4.valueOf() == c.valueOf();
|
|
52
52
|
case "Date":
|
|
53
53
|
case "Number":
|
|
54
|
-
return +
|
|
54
|
+
return +a4 == +c || +a4 != +a4 && +c != +c;
|
|
55
55
|
case "RegExp":
|
|
56
56
|
case "Function":
|
|
57
57
|
case "String":
|
|
58
58
|
case "Boolean":
|
|
59
|
-
return "" +
|
|
59
|
+
return "" + a4 == "" + c;
|
|
60
60
|
case "Set":
|
|
61
61
|
case "Map":
|
|
62
|
-
i =
|
|
62
|
+
i = a4.entries(), s3 = c.entries();
|
|
63
63
|
do
|
|
64
|
-
if (!n2((l = i.next()).value,
|
|
64
|
+
if (!n2((l = i.next()).value, s3.next().value, u2)) return !1;
|
|
65
65
|
while (!l.done);
|
|
66
66
|
return !0;
|
|
67
67
|
case "ArrayBuffer":
|
|
68
|
-
|
|
68
|
+
a4 = new Uint8Array(a4), c = new Uint8Array(c);
|
|
69
69
|
case "DataView":
|
|
70
|
-
|
|
70
|
+
a4 = new Uint8Array(a4.buffer), c = new Uint8Array(c.buffer);
|
|
71
71
|
case "Float32Array":
|
|
72
72
|
case "Float64Array":
|
|
73
73
|
case "Int8Array":
|
|
@@ -79,15 +79,15 @@ var require_tiny_isequal = __commonJS({
|
|
|
79
79
|
case "Uint8ClampedArray":
|
|
80
80
|
case "Arguments":
|
|
81
81
|
case "Array":
|
|
82
|
-
if (
|
|
83
|
-
for (l = 0; l <
|
|
82
|
+
if (a4.length != c.length) return !1;
|
|
83
|
+
for (l = 0; l < a4.length; l++) if ((l in a4 || l in c) && (l in a4 != l in c || !n2(a4[l], c[l], u2))) return !1;
|
|
84
84
|
return !0;
|
|
85
85
|
case "Object":
|
|
86
|
-
return n2(r(
|
|
86
|
+
return n2(r(a4), r(c), u2);
|
|
87
87
|
default:
|
|
88
88
|
return !1;
|
|
89
89
|
}
|
|
90
|
-
})(n,
|
|
90
|
+
})(n, a3, []);
|
|
91
91
|
};
|
|
92
92
|
})();
|
|
93
93
|
}
|
|
@@ -99,7 +99,7 @@ var require_min_indent = __commonJS({
|
|
|
99
99
|
"use strict";
|
|
100
100
|
module2.exports = (string) => {
|
|
101
101
|
let match = string.match(/^[ \t]*(?=\S)/gm);
|
|
102
|
-
return match ? match.reduce((r,
|
|
102
|
+
return match ? match.reduce((r, a3) => Math.min(r, a3.length), 1 / 0) : 0;
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
});
|
|
@@ -236,37 +236,37 @@ var require_ariaPropsMap = __commonJS({
|
|
|
236
236
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
237
237
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
238
238
|
}
|
|
239
|
-
function _unsupportedIterableToArray(r,
|
|
239
|
+
function _unsupportedIterableToArray(r, a3) {
|
|
240
240
|
if (r) {
|
|
241
|
-
if (typeof r == "string") return _arrayLikeToArray(r,
|
|
241
|
+
if (typeof r == "string") return _arrayLikeToArray(r, a3);
|
|
242
242
|
var t = {}.toString.call(r).slice(8, -1);
|
|
243
|
-
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r,
|
|
243
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a3) : void 0;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
function _arrayLikeToArray(r,
|
|
247
|
-
(
|
|
248
|
-
for (var e = 0, n = Array(
|
|
246
|
+
function _arrayLikeToArray(r, a3) {
|
|
247
|
+
(a3 == null || a3 > r.length) && (a3 = r.length);
|
|
248
|
+
for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r[e];
|
|
249
249
|
return n;
|
|
250
250
|
}
|
|
251
251
|
function _iterableToArrayLimit(r, l) {
|
|
252
252
|
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
253
253
|
if (t != null) {
|
|
254
|
-
var e, n, i, u2,
|
|
254
|
+
var e, n, i, u2, a3 = [], f4 = !0, o = !1;
|
|
255
255
|
try {
|
|
256
256
|
if (i = (t = t.call(r)).next, l === 0) {
|
|
257
257
|
if (Object(t) !== t) return;
|
|
258
|
-
|
|
259
|
-
} else for (; !(
|
|
258
|
+
f4 = !1;
|
|
259
|
+
} else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
|
|
260
260
|
} catch (r2) {
|
|
261
261
|
o = !0, n = r2;
|
|
262
262
|
} finally {
|
|
263
263
|
try {
|
|
264
|
-
if (!
|
|
264
|
+
if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
|
|
265
265
|
} finally {
|
|
266
266
|
if (o) throw n;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
return
|
|
269
|
+
return a3;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
function _arrayWithHoles(r) {
|
|
@@ -441,37 +441,37 @@ var require_domMap = __commonJS({
|
|
|
441
441
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
442
442
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
443
443
|
}
|
|
444
|
-
function _unsupportedIterableToArray(r,
|
|
444
|
+
function _unsupportedIterableToArray(r, a3) {
|
|
445
445
|
if (r) {
|
|
446
|
-
if (typeof r == "string") return _arrayLikeToArray(r,
|
|
446
|
+
if (typeof r == "string") return _arrayLikeToArray(r, a3);
|
|
447
447
|
var t = {}.toString.call(r).slice(8, -1);
|
|
448
|
-
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r,
|
|
448
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a3) : void 0;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
function _arrayLikeToArray(r,
|
|
452
|
-
(
|
|
453
|
-
for (var e = 0, n = Array(
|
|
451
|
+
function _arrayLikeToArray(r, a3) {
|
|
452
|
+
(a3 == null || a3 > r.length) && (a3 = r.length);
|
|
453
|
+
for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r[e];
|
|
454
454
|
return n;
|
|
455
455
|
}
|
|
456
456
|
function _iterableToArrayLimit(r, l) {
|
|
457
457
|
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
458
458
|
if (t != null) {
|
|
459
|
-
var e, n, i, u2,
|
|
459
|
+
var e, n, i, u2, a3 = [], f4 = !0, o = !1;
|
|
460
460
|
try {
|
|
461
461
|
if (i = (t = t.call(r)).next, l === 0) {
|
|
462
462
|
if (Object(t) !== t) return;
|
|
463
|
-
|
|
464
|
-
} else for (; !(
|
|
463
|
+
f4 = !1;
|
|
464
|
+
} else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
|
|
465
465
|
} catch (r2) {
|
|
466
466
|
o = !0, n = r2;
|
|
467
467
|
} finally {
|
|
468
468
|
try {
|
|
469
|
-
if (!
|
|
469
|
+
if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
|
|
470
470
|
} finally {
|
|
471
471
|
if (o) throw n;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
return
|
|
474
|
+
return a3;
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
function _arrayWithHoles(r) {
|
|
@@ -6149,17 +6149,17 @@ var require_rolesMap = __commonJS({
|
|
|
6149
6149
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
6150
6150
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
6151
6151
|
}
|
|
6152
|
-
var o,
|
|
6152
|
+
var o, a3 = !0, u2 = !1;
|
|
6153
6153
|
return { s: function() {
|
|
6154
6154
|
t = t.call(r);
|
|
6155
6155
|
}, n: function() {
|
|
6156
6156
|
var r2 = t.next();
|
|
6157
|
-
return
|
|
6157
|
+
return a3 = r2.done, r2;
|
|
6158
6158
|
}, e: function(r2) {
|
|
6159
6159
|
u2 = !0, o = r2;
|
|
6160
6160
|
}, f: function() {
|
|
6161
6161
|
try {
|
|
6162
|
-
|
|
6162
|
+
a3 || t.return == null || t.return();
|
|
6163
6163
|
} finally {
|
|
6164
6164
|
if (u2) throw o;
|
|
6165
6165
|
}
|
|
@@ -6172,37 +6172,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6172
6172
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6173
6173
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
6174
6174
|
}
|
|
6175
|
-
function _unsupportedIterableToArray(r,
|
|
6175
|
+
function _unsupportedIterableToArray(r, a3) {
|
|
6176
6176
|
if (r) {
|
|
6177
|
-
if (typeof r == "string") return _arrayLikeToArray(r,
|
|
6177
|
+
if (typeof r == "string") return _arrayLikeToArray(r, a3);
|
|
6178
6178
|
var t = {}.toString.call(r).slice(8, -1);
|
|
6179
|
-
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r,
|
|
6179
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a3) : void 0;
|
|
6180
6180
|
}
|
|
6181
6181
|
}
|
|
6182
|
-
function _arrayLikeToArray(r,
|
|
6183
|
-
(
|
|
6184
|
-
for (var e = 0, n = Array(
|
|
6182
|
+
function _arrayLikeToArray(r, a3) {
|
|
6183
|
+
(a3 == null || a3 > r.length) && (a3 = r.length);
|
|
6184
|
+
for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r[e];
|
|
6185
6185
|
return n;
|
|
6186
6186
|
}
|
|
6187
6187
|
function _iterableToArrayLimit(r, l) {
|
|
6188
6188
|
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
6189
6189
|
if (t != null) {
|
|
6190
|
-
var e, n, i, u2,
|
|
6190
|
+
var e, n, i, u2, a3 = [], f4 = !0, o = !1;
|
|
6191
6191
|
try {
|
|
6192
6192
|
if (i = (t = t.call(r)).next, l === 0) {
|
|
6193
6193
|
if (Object(t) !== t) return;
|
|
6194
|
-
|
|
6195
|
-
} else for (; !(
|
|
6194
|
+
f4 = !1;
|
|
6195
|
+
} else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
|
|
6196
6196
|
} catch (r2) {
|
|
6197
6197
|
o = !0, n = r2;
|
|
6198
6198
|
} finally {
|
|
6199
6199
|
try {
|
|
6200
|
-
if (!
|
|
6200
|
+
if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
|
|
6201
6201
|
} finally {
|
|
6202
6202
|
if (o) throw n;
|
|
6203
6203
|
}
|
|
6204
6204
|
}
|
|
6205
|
-
return
|
|
6205
|
+
return a3;
|
|
6206
6206
|
}
|
|
6207
6207
|
}
|
|
6208
6208
|
function _arrayWithHoles(r) {
|
|
@@ -6301,37 +6301,37 @@ var require_elementRoleMap = __commonJS({
|
|
|
6301
6301
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6302
6302
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
6303
6303
|
}
|
|
6304
|
-
function _unsupportedIterableToArray(r,
|
|
6304
|
+
function _unsupportedIterableToArray(r, a3) {
|
|
6305
6305
|
if (r) {
|
|
6306
|
-
if (typeof r == "string") return _arrayLikeToArray(r,
|
|
6306
|
+
if (typeof r == "string") return _arrayLikeToArray(r, a3);
|
|
6307
6307
|
var t = {}.toString.call(r).slice(8, -1);
|
|
6308
|
-
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r,
|
|
6308
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a3) : void 0;
|
|
6309
6309
|
}
|
|
6310
6310
|
}
|
|
6311
|
-
function _arrayLikeToArray(r,
|
|
6312
|
-
(
|
|
6313
|
-
for (var e = 0, n = Array(
|
|
6311
|
+
function _arrayLikeToArray(r, a3) {
|
|
6312
|
+
(a3 == null || a3 > r.length) && (a3 = r.length);
|
|
6313
|
+
for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r[e];
|
|
6314
6314
|
return n;
|
|
6315
6315
|
}
|
|
6316
6316
|
function _iterableToArrayLimit(r, l) {
|
|
6317
6317
|
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
6318
6318
|
if (t != null) {
|
|
6319
|
-
var e, n, i2, u2,
|
|
6319
|
+
var e, n, i2, u2, a3 = [], f4 = !0, o = !1;
|
|
6320
6320
|
try {
|
|
6321
6321
|
if (i2 = (t = t.call(r)).next, l === 0) {
|
|
6322
6322
|
if (Object(t) !== t) return;
|
|
6323
|
-
|
|
6324
|
-
} else for (; !(
|
|
6323
|
+
f4 = !1;
|
|
6324
|
+
} else for (; !(f4 = (e = i2.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
|
|
6325
6325
|
} catch (r2) {
|
|
6326
6326
|
o = !0, n = r2;
|
|
6327
6327
|
} finally {
|
|
6328
6328
|
try {
|
|
6329
|
-
if (!
|
|
6329
|
+
if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
|
|
6330
6330
|
} finally {
|
|
6331
6331
|
if (o) throw n;
|
|
6332
6332
|
}
|
|
6333
6333
|
}
|
|
6334
|
-
return
|
|
6334
|
+
return a3;
|
|
6335
6335
|
}
|
|
6336
6336
|
}
|
|
6337
6337
|
function _arrayWithHoles(r) {
|
|
@@ -6391,35 +6391,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6391
6391
|
});
|
|
6392
6392
|
}
|
|
6393
6393
|
};
|
|
6394
|
-
function ariaRoleRelationConceptEquals(
|
|
6395
|
-
return
|
|
6394
|
+
function ariaRoleRelationConceptEquals(a3, b) {
|
|
6395
|
+
return a3.name === b.name && ariaRoleRelationConstraintsEquals(a3.constraints, b.constraints) && ariaRoleRelationConceptAttributeEquals(a3.attributes, b.attributes);
|
|
6396
6396
|
}
|
|
6397
|
-
function ariaRoleRelationConstraintsEquals(
|
|
6398
|
-
if (
|
|
6397
|
+
function ariaRoleRelationConstraintsEquals(a3, b) {
|
|
6398
|
+
if (a3 === void 0 && b !== void 0 || a3 !== void 0 && b === void 0)
|
|
6399
6399
|
return !1;
|
|
6400
|
-
if (
|
|
6401
|
-
if (
|
|
6400
|
+
if (a3 !== void 0 && b !== void 0) {
|
|
6401
|
+
if (a3.length !== b.length)
|
|
6402
6402
|
return !1;
|
|
6403
|
-
for (var _i3 = 0; _i3 <
|
|
6404
|
-
if (
|
|
6403
|
+
for (var _i3 = 0; _i3 < a3.length; _i3++)
|
|
6404
|
+
if (a3[_i3] !== b[_i3])
|
|
6405
6405
|
return !1;
|
|
6406
6406
|
}
|
|
6407
6407
|
return !0;
|
|
6408
6408
|
}
|
|
6409
|
-
function ariaRoleRelationConceptAttributeEquals(
|
|
6410
|
-
if (
|
|
6409
|
+
function ariaRoleRelationConceptAttributeEquals(a3, b) {
|
|
6410
|
+
if (a3 === void 0 && b !== void 0 || a3 !== void 0 && b === void 0)
|
|
6411
6411
|
return !1;
|
|
6412
|
-
if (
|
|
6413
|
-
if (
|
|
6412
|
+
if (a3 !== void 0 && b !== void 0) {
|
|
6413
|
+
if (a3.length !== b.length)
|
|
6414
6414
|
return !1;
|
|
6415
|
-
for (var _i4 = 0; _i4 <
|
|
6416
|
-
if (
|
|
6415
|
+
for (var _i4 = 0; _i4 < a3.length; _i4++) {
|
|
6416
|
+
if (a3[_i4].name !== b[_i4].name || a3[_i4].value !== b[_i4].value || a3[_i4].constraints === void 0 && b[_i4].constraints !== void 0 || a3[_i4].constraints !== void 0 && b[_i4].constraints === void 0)
|
|
6417
6417
|
return !1;
|
|
6418
|
-
if (
|
|
6419
|
-
if (
|
|
6418
|
+
if (a3[_i4].constraints !== void 0 && b[_i4].constraints !== void 0) {
|
|
6419
|
+
if (a3[_i4].constraints.length !== b[_i4].constraints.length)
|
|
6420
6420
|
return !1;
|
|
6421
|
-
for (var j = 0; j <
|
|
6422
|
-
if (
|
|
6421
|
+
for (var j = 0; j < a3[_i4].constraints.length; j++)
|
|
6422
|
+
if (a3[_i4].constraints[j] !== b[_i4].constraints[j])
|
|
6423
6423
|
return !1;
|
|
6424
6424
|
}
|
|
6425
6425
|
}
|
|
@@ -6449,37 +6449,37 @@ var require_roleElementMap = __commonJS({
|
|
|
6449
6449
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6450
6450
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
6451
6451
|
}
|
|
6452
|
-
function _unsupportedIterableToArray(r,
|
|
6452
|
+
function _unsupportedIterableToArray(r, a3) {
|
|
6453
6453
|
if (r) {
|
|
6454
|
-
if (typeof r == "string") return _arrayLikeToArray(r,
|
|
6454
|
+
if (typeof r == "string") return _arrayLikeToArray(r, a3);
|
|
6455
6455
|
var t = {}.toString.call(r).slice(8, -1);
|
|
6456
|
-
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r,
|
|
6456
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a3) : void 0;
|
|
6457
6457
|
}
|
|
6458
6458
|
}
|
|
6459
|
-
function _arrayLikeToArray(r,
|
|
6460
|
-
(
|
|
6461
|
-
for (var e = 0, n = Array(
|
|
6459
|
+
function _arrayLikeToArray(r, a3) {
|
|
6460
|
+
(a3 == null || a3 > r.length) && (a3 = r.length);
|
|
6461
|
+
for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r[e];
|
|
6462
6462
|
return n;
|
|
6463
6463
|
}
|
|
6464
6464
|
function _iterableToArrayLimit(r, l) {
|
|
6465
6465
|
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
6466
6466
|
if (t != null) {
|
|
6467
|
-
var e, n, i2, u2,
|
|
6467
|
+
var e, n, i2, u2, a3 = [], f4 = !0, o = !1;
|
|
6468
6468
|
try {
|
|
6469
6469
|
if (i2 = (t = t.call(r)).next, l === 0) {
|
|
6470
6470
|
if (Object(t) !== t) return;
|
|
6471
|
-
|
|
6472
|
-
} else for (; !(
|
|
6471
|
+
f4 = !1;
|
|
6472
|
+
} else for (; !(f4 = (e = i2.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ;
|
|
6473
6473
|
} catch (r2) {
|
|
6474
6474
|
o = !0, n = r2;
|
|
6475
6475
|
} finally {
|
|
6476
6476
|
try {
|
|
6477
|
-
if (!
|
|
6477
|
+
if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return;
|
|
6478
6478
|
} finally {
|
|
6479
6479
|
if (o) throw n;
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
|
-
return
|
|
6482
|
+
return a3;
|
|
6483
6483
|
}
|
|
6484
6484
|
}
|
|
6485
6485
|
function _arrayWithHoles(r) {
|
|
@@ -6735,28 +6735,28 @@ var require_conversions = __commonJS({
|
|
|
6735
6735
|
delete convert5[model].channels, delete convert5[model].labels, Object.defineProperty(convert5[model], "channels", { value: channels }), Object.defineProperty(convert5[model], "labels", { value: labels });
|
|
6736
6736
|
}
|
|
6737
6737
|
convert5.rgb.hsl = function(rgb) {
|
|
6738
|
-
let r = rgb[0] / 255, g2 = rgb[1] / 255, b = rgb[2] / 255, min2 = Math.min(r, g2, b), max2 = Math.max(r, g2, b), delta = max2 - min2,
|
|
6739
|
-
max2 === min2 ?
|
|
6738
|
+
let r = rgb[0] / 255, g2 = rgb[1] / 255, b = rgb[2] / 255, min2 = Math.min(r, g2, b), max2 = Math.max(r, g2, b), delta = max2 - min2, h3, s3;
|
|
6739
|
+
max2 === min2 ? h3 = 0 : r === max2 ? h3 = (g2 - b) / delta : g2 === max2 ? h3 = 2 + (b - r) / delta : b === max2 && (h3 = 4 + (r - g2) / delta), h3 = Math.min(h3 * 60, 360), h3 < 0 && (h3 += 360);
|
|
6740
6740
|
let l = (min2 + max2) / 2;
|
|
6741
|
-
return max2 === min2 ?
|
|
6741
|
+
return max2 === min2 ? s3 = 0 : l <= 0.5 ? s3 = delta / (max2 + min2) : s3 = delta / (2 - max2 - min2), [h3, s3 * 100, l * 100];
|
|
6742
6742
|
};
|
|
6743
6743
|
convert5.rgb.hsv = function(rgb) {
|
|
6744
|
-
let rdif, gdif, bdif,
|
|
6744
|
+
let rdif, gdif, bdif, h3, s3, r = rgb[0] / 255, g2 = rgb[1] / 255, b = rgb[2] / 255, v = Math.max(r, g2, b), diff2 = v - Math.min(r, g2, b), diffc = function(c) {
|
|
6745
6745
|
return (v - c) / 6 / diff2 + 1 / 2;
|
|
6746
6746
|
};
|
|
6747
|
-
return diff2 === 0 ? (
|
|
6748
|
-
|
|
6749
|
-
|
|
6747
|
+
return diff2 === 0 ? (h3 = 0, s3 = 0) : (s3 = diff2 / v, rdif = diffc(r), gdif = diffc(g2), bdif = diffc(b), r === v ? h3 = bdif - gdif : g2 === v ? h3 = 1 / 3 + rdif - bdif : b === v && (h3 = 2 / 3 + gdif - rdif), h3 < 0 ? h3 += 1 : h3 > 1 && (h3 -= 1)), [
|
|
6748
|
+
h3 * 360,
|
|
6749
|
+
s3 * 100,
|
|
6750
6750
|
v * 100
|
|
6751
6751
|
];
|
|
6752
6752
|
};
|
|
6753
6753
|
convert5.rgb.hwb = function(rgb) {
|
|
6754
|
-
let r = rgb[0], g2 = rgb[1], b = rgb[2],
|
|
6755
|
-
return b = 1 - 1 / 255 * Math.max(r, Math.max(g2, b)), [
|
|
6754
|
+
let r = rgb[0], g2 = rgb[1], b = rgb[2], h3 = convert5.rgb.hsl(rgb)[0], w = 1 / 255 * Math.min(r, Math.min(g2, b));
|
|
6755
|
+
return b = 1 - 1 / 255 * Math.max(r, Math.max(g2, b)), [h3, w * 100, b * 100];
|
|
6756
6756
|
};
|
|
6757
6757
|
convert5.rgb.cmyk = function(rgb) {
|
|
6758
|
-
let r = rgb[0] / 255, g2 = rgb[1] / 255, b = rgb[2] / 255, k = Math.min(1 - r, 1 - g2, 1 - b), c = (1 - r - k) / (1 - k) || 0,
|
|
6759
|
-
return [c * 100,
|
|
6758
|
+
let r = rgb[0] / 255, g2 = rgb[1] / 255, b = rgb[2] / 255, k = Math.min(1 - r, 1 - g2, 1 - b), c = (1 - r - k) / (1 - k) || 0, m3 = (1 - g2 - k) / (1 - k) || 0, y = (1 - b - k) / (1 - k) || 0;
|
|
6759
|
+
return [c * 100, m3 * 100, y * 100, k * 100];
|
|
6760
6760
|
};
|
|
6761
6761
|
function comparativeDistance(x, y) {
|
|
6762
6762
|
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
@@ -6784,54 +6784,54 @@ var require_conversions = __commonJS({
|
|
|
6784
6784
|
convert5.rgb.lab = function(rgb) {
|
|
6785
6785
|
let xyz = convert5.rgb.xyz(rgb), x = xyz[0], y = xyz[1], z = xyz[2];
|
|
6786
6786
|
x /= 95.047, y /= 100, z /= 108.883, x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116, y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116, z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
6787
|
-
let l = 116 * y - 16,
|
|
6788
|
-
return [l,
|
|
6787
|
+
let l = 116 * y - 16, a3 = 500 * (x - y), b = 200 * (y - z);
|
|
6788
|
+
return [l, a3, b];
|
|
6789
6789
|
};
|
|
6790
6790
|
convert5.hsl.rgb = function(hsl) {
|
|
6791
|
-
let
|
|
6792
|
-
if (
|
|
6791
|
+
let h3 = hsl[0] / 360, s3 = hsl[1] / 100, l = hsl[2] / 100, t2, t3, val;
|
|
6792
|
+
if (s3 === 0)
|
|
6793
6793
|
return val = l * 255, [val, val, val];
|
|
6794
|
-
l < 0.5 ? t2 = l * (1 +
|
|
6794
|
+
l < 0.5 ? t2 = l * (1 + s3) : t2 = l + s3 - l * s3;
|
|
6795
6795
|
let t1 = 2 * l - t2, rgb = [0, 0, 0];
|
|
6796
6796
|
for (let i = 0; i < 3; i++)
|
|
6797
|
-
t3 =
|
|
6797
|
+
t3 = h3 + 1 / 3 * -(i - 1), t3 < 0 && t3++, t3 > 1 && t3--, 6 * t3 < 1 ? val = t1 + (t2 - t1) * 6 * t3 : 2 * t3 < 1 ? val = t2 : 3 * t3 < 2 ? val = t1 + (t2 - t1) * (2 / 3 - t3) * 6 : val = t1, rgb[i] = val * 255;
|
|
6798
6798
|
return rgb;
|
|
6799
6799
|
};
|
|
6800
6800
|
convert5.hsl.hsv = function(hsl) {
|
|
6801
|
-
let
|
|
6802
|
-
l *= 2,
|
|
6803
|
-
let v = (l +
|
|
6804
|
-
return [
|
|
6801
|
+
let h3 = hsl[0], s3 = hsl[1] / 100, l = hsl[2] / 100, smin = s3, lmin = Math.max(l, 0.01);
|
|
6802
|
+
l *= 2, s3 *= l <= 1 ? l : 2 - l, smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
6803
|
+
let v = (l + s3) / 2, sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s3 / (l + s3);
|
|
6804
|
+
return [h3, sv * 100, v * 100];
|
|
6805
6805
|
};
|
|
6806
6806
|
convert5.hsv.rgb = function(hsv) {
|
|
6807
|
-
let
|
|
6807
|
+
let h3 = hsv[0] / 60, s3 = hsv[1] / 100, v = hsv[2] / 100, hi = Math.floor(h3) % 6, f4 = h3 - Math.floor(h3), p3 = 255 * v * (1 - s3), q = 255 * v * (1 - s3 * f4), t = 255 * v * (1 - s3 * (1 - f4));
|
|
6808
6808
|
switch (v *= 255, hi) {
|
|
6809
6809
|
case 0:
|
|
6810
|
-
return [v, t,
|
|
6810
|
+
return [v, t, p3];
|
|
6811
6811
|
case 1:
|
|
6812
|
-
return [q, v,
|
|
6812
|
+
return [q, v, p3];
|
|
6813
6813
|
case 2:
|
|
6814
|
-
return [
|
|
6814
|
+
return [p3, v, t];
|
|
6815
6815
|
case 3:
|
|
6816
|
-
return [
|
|
6816
|
+
return [p3, q, v];
|
|
6817
6817
|
case 4:
|
|
6818
|
-
return [t,
|
|
6818
|
+
return [t, p3, v];
|
|
6819
6819
|
case 5:
|
|
6820
|
-
return [v,
|
|
6820
|
+
return [v, p3, q];
|
|
6821
6821
|
}
|
|
6822
6822
|
};
|
|
6823
6823
|
convert5.hsv.hsl = function(hsv) {
|
|
6824
|
-
let
|
|
6825
|
-
l = (2 -
|
|
6826
|
-
let lmin = (2 -
|
|
6827
|
-
return sl =
|
|
6824
|
+
let h3 = hsv[0], s3 = hsv[1] / 100, v = hsv[2] / 100, vmin = Math.max(v, 0.01), sl, l;
|
|
6825
|
+
l = (2 - s3) * v;
|
|
6826
|
+
let lmin = (2 - s3) * vmin;
|
|
6827
|
+
return sl = s3 * vmin, sl /= lmin <= 1 ? lmin : 2 - lmin, sl = sl || 0, l /= 2, [h3, sl * 100, l * 100];
|
|
6828
6828
|
};
|
|
6829
6829
|
convert5.hwb.rgb = function(hwb) {
|
|
6830
|
-
let
|
|
6830
|
+
let h3 = hwb[0] / 360, wh = hwb[1] / 100, bl = hwb[2] / 100, ratio = wh + bl, f4;
|
|
6831
6831
|
ratio > 1 && (wh /= ratio, bl /= ratio);
|
|
6832
|
-
let i = Math.floor(6 *
|
|
6833
|
-
|
|
6834
|
-
let n = wh +
|
|
6832
|
+
let i = Math.floor(6 * h3), v = 1 - bl;
|
|
6833
|
+
f4 = 6 * h3 - i, (i & 1) !== 0 && (f4 = 1 - f4);
|
|
6834
|
+
let n = wh + f4 * (v - wh), r, g2, b;
|
|
6835
6835
|
switch (i) {
|
|
6836
6836
|
default:
|
|
6837
6837
|
case 6:
|
|
@@ -6857,7 +6857,7 @@ var require_conversions = __commonJS({
|
|
|
6857
6857
|
return [r * 255, g2 * 255, b * 255];
|
|
6858
6858
|
};
|
|
6859
6859
|
convert5.cmyk.rgb = function(cmyk) {
|
|
6860
|
-
let c = cmyk[0] / 100,
|
|
6860
|
+
let c = cmyk[0] / 100, m3 = cmyk[1] / 100, y = cmyk[2] / 100, k = cmyk[3] / 100, r = 1 - Math.min(1, c * (1 - k) + k), g2 = 1 - Math.min(1, m3 * (1 - k) + k), b = 1 - Math.min(1, y * (1 - k) + k);
|
|
6861
6861
|
return [r * 255, g2 * 255, b * 255];
|
|
6862
6862
|
};
|
|
6863
6863
|
convert5.xyz.rgb = function(xyz) {
|
|
@@ -6867,24 +6867,24 @@ var require_conversions = __commonJS({
|
|
|
6867
6867
|
convert5.xyz.lab = function(xyz) {
|
|
6868
6868
|
let x = xyz[0], y = xyz[1], z = xyz[2];
|
|
6869
6869
|
x /= 95.047, y /= 100, z /= 108.883, x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116, y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116, z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
6870
|
-
let l = 116 * y - 16,
|
|
6871
|
-
return [l,
|
|
6870
|
+
let l = 116 * y - 16, a3 = 500 * (x - y), b = 200 * (y - z);
|
|
6871
|
+
return [l, a3, b];
|
|
6872
6872
|
};
|
|
6873
6873
|
convert5.lab.xyz = function(lab) {
|
|
6874
|
-
let l = lab[0],
|
|
6875
|
-
y = (l + 16) / 116, x =
|
|
6874
|
+
let l = lab[0], a3 = lab[1], b = lab[2], x, y, z;
|
|
6875
|
+
y = (l + 16) / 116, x = a3 / 500 + y, z = y - b / 200;
|
|
6876
6876
|
let y2 = y ** 3, x2 = x ** 3, z2 = z ** 3;
|
|
6877
6877
|
return y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787, x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787, z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787, x *= 95.047, y *= 100, z *= 108.883, [x, y, z];
|
|
6878
6878
|
};
|
|
6879
6879
|
convert5.lab.lch = function(lab) {
|
|
6880
|
-
let l = lab[0],
|
|
6881
|
-
|
|
6882
|
-
let c = Math.sqrt(
|
|
6883
|
-
return [l, c,
|
|
6880
|
+
let l = lab[0], a3 = lab[1], b = lab[2], h3;
|
|
6881
|
+
h3 = Math.atan2(b, a3) * 360 / 2 / Math.PI, h3 < 0 && (h3 += 360);
|
|
6882
|
+
let c = Math.sqrt(a3 * a3 + b * b);
|
|
6883
|
+
return [l, c, h3];
|
|
6884
6884
|
};
|
|
6885
6885
|
convert5.lch.lab = function(lch) {
|
|
6886
|
-
let l = lch[0], c = lch[1], hr = lch[2] / 360 * 2 * Math.PI,
|
|
6887
|
-
return [l,
|
|
6886
|
+
let l = lch[0], c = lch[1], hr = lch[2] / 360 * 2 * Math.PI, a3 = c * Math.cos(hr), b = c * Math.sin(hr);
|
|
6887
|
+
return [l, a3, b];
|
|
6888
6888
|
};
|
|
6889
6889
|
convert5.rgb.ansi16 = function(args, saturation = null) {
|
|
6890
6890
|
let [r, g2, b] = args, value = saturation === null ? convert5.rgb.hsv(args)[2] : saturation;
|
|
@@ -6934,18 +6934,18 @@ var require_conversions = __commonJS({
|
|
|
6934
6934
|
return chroma < 1 ? grayscale = min2 / (1 - chroma) : grayscale = 0, chroma <= 0 ? hue = 0 : max2 === r ? hue = (g2 - b) / chroma % 6 : max2 === g2 ? hue = 2 + (b - r) / chroma : hue = 4 + (r - g2) / chroma, hue /= 6, hue %= 1, [hue * 360, chroma * 100, grayscale * 100];
|
|
6935
6935
|
};
|
|
6936
6936
|
convert5.hsl.hcg = function(hsl) {
|
|
6937
|
-
let
|
|
6938
|
-
return c < 1 && (
|
|
6937
|
+
let s3 = hsl[1] / 100, l = hsl[2] / 100, c = l < 0.5 ? 2 * s3 * l : 2 * s3 * (1 - l), f4 = 0;
|
|
6938
|
+
return c < 1 && (f4 = (l - 0.5 * c) / (1 - c)), [hsl[0], c * 100, f4 * 100];
|
|
6939
6939
|
};
|
|
6940
6940
|
convert5.hsv.hcg = function(hsv) {
|
|
6941
|
-
let
|
|
6942
|
-
return c < 1 && (
|
|
6941
|
+
let s3 = hsv[1] / 100, v = hsv[2] / 100, c = s3 * v, f4 = 0;
|
|
6942
|
+
return c < 1 && (f4 = (v - c) / (1 - c)), [hsv[0], c * 100, f4 * 100];
|
|
6943
6943
|
};
|
|
6944
6944
|
convert5.hcg.rgb = function(hcg) {
|
|
6945
|
-
let
|
|
6945
|
+
let h3 = hcg[0] / 360, c = hcg[1] / 100, g2 = hcg[2] / 100;
|
|
6946
6946
|
if (c === 0)
|
|
6947
6947
|
return [g2 * 255, g2 * 255, g2 * 255];
|
|
6948
|
-
let pure = [0, 0, 0], hi =
|
|
6948
|
+
let pure = [0, 0, 0], hi = h3 % 1 * 6, v = hi % 1, w = 1 - v, mg = 0;
|
|
6949
6949
|
switch (Math.floor(hi)) {
|
|
6950
6950
|
case 0:
|
|
6951
6951
|
pure[0] = 1, pure[1] = v, pure[2] = 0;
|
|
@@ -6972,12 +6972,12 @@ var require_conversions = __commonJS({
|
|
|
6972
6972
|
];
|
|
6973
6973
|
};
|
|
6974
6974
|
convert5.hcg.hsv = function(hcg) {
|
|
6975
|
-
let c = hcg[1] / 100, g2 = hcg[2] / 100, v = c + g2 * (1 - c),
|
|
6976
|
-
return v > 0 && (
|
|
6975
|
+
let c = hcg[1] / 100, g2 = hcg[2] / 100, v = c + g2 * (1 - c), f4 = 0;
|
|
6976
|
+
return v > 0 && (f4 = c / v), [hcg[0], f4 * 100, v * 100];
|
|
6977
6977
|
};
|
|
6978
6978
|
convert5.hcg.hsl = function(hcg) {
|
|
6979
|
-
let c = hcg[1] / 100, l = hcg[2] / 100 * (1 - c) + 0.5 * c,
|
|
6980
|
-
return l > 0 && l < 0.5 ?
|
|
6979
|
+
let c = hcg[1] / 100, l = hcg[2] / 100 * (1 - c) + 0.5 * c, s3 = 0;
|
|
6980
|
+
return l > 0 && l < 0.5 ? s3 = c / (2 * l) : l >= 0.5 && l < 1 && (s3 = c / (2 * (1 - l))), [hcg[0], s3 * 100, l * 100];
|
|
6981
6981
|
};
|
|
6982
6982
|
convert5.hcg.hwb = function(hcg) {
|
|
6983
6983
|
let c = hcg[1] / 100, g2 = hcg[2] / 100, v = c + g2 * (1 - c);
|
|
@@ -7282,7 +7282,7 @@ var require_templates = __commonJS({
|
|
|
7282
7282
|
if (!Number.isNaN(number))
|
|
7283
7283
|
results.push(number);
|
|
7284
7284
|
else if (matches6 = chunk3.match(STRING_REGEX))
|
|
7285
|
-
results.push(matches6[2].replace(ESCAPE_REGEX, (
|
|
7285
|
+
results.push(matches6[2].replace(ESCAPE_REGEX, (m3, escape6, character) => escape6 ? unescape3(escape6) : character));
|
|
7286
7286
|
else
|
|
7287
7287
|
throw new Error(`Invalid Chalk template style argument: ${chunk3} (in style '${name}')`);
|
|
7288
7288
|
}
|
|
@@ -7317,7 +7317,7 @@ var require_templates = __commonJS({
|
|
|
7317
7317
|
}
|
|
7318
7318
|
module2.exports = (chalk2, temporary) => {
|
|
7319
7319
|
let styles3 = [], chunks = [], chunk3 = [];
|
|
7320
|
-
if (temporary.replace(TEMPLATE_REGEX, (
|
|
7320
|
+
if (temporary.replace(TEMPLATE_REGEX, (m3, escapeCharacter, inverse, style, close, character) => {
|
|
7321
7321
|
if (escapeCharacter)
|
|
7322
7322
|
chunk3.push(unescape3(escapeCharacter));
|
|
7323
7323
|
else if (style) {
|
|
@@ -9295,29 +9295,29 @@ var require_Immutable = __commonJS({
|
|
|
9295
9295
|
var require_react_is_production_min = __commonJS({
|
|
9296
9296
|
"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
9297
9297
|
"use strict";
|
|
9298
|
-
var b = 60103, c = 60106, d = 60107, e = 60108,
|
|
9299
|
-
typeof Symbol == "function" && Symbol.for && (x = Symbol.for, b = x("react.element"), c = x("react.portal"), d = x("react.fragment"), e = x("react.strict_mode"),
|
|
9298
|
+
var b = 60103, c = 60106, d = 60107, e = 60108, f4 = 60114, g2 = 60109, h3 = 60110, k = 60112, l = 60113, m3 = 60120, n = 60115, p3 = 60116, q = 60121, r = 60122, u2 = 60117, v = 60129, w = 60131;
|
|
9299
|
+
typeof Symbol == "function" && Symbol.for && (x = Symbol.for, b = x("react.element"), c = x("react.portal"), d = x("react.fragment"), e = x("react.strict_mode"), f4 = x("react.profiler"), g2 = x("react.provider"), h3 = x("react.context"), k = x("react.forward_ref"), l = x("react.suspense"), m3 = x("react.suspense_list"), n = x("react.memo"), p3 = x("react.lazy"), q = x("react.block"), r = x("react.server.block"), u2 = x("react.fundamental"), v = x("react.debug_trace_mode"), w = x("react.legacy_hidden"));
|
|
9300
9300
|
var x;
|
|
9301
|
-
function y(
|
|
9302
|
-
if (typeof
|
|
9303
|
-
var t =
|
|
9301
|
+
function y(a3) {
|
|
9302
|
+
if (typeof a3 == "object" && a3 !== null) {
|
|
9303
|
+
var t = a3.$$typeof;
|
|
9304
9304
|
switch (t) {
|
|
9305
9305
|
case b:
|
|
9306
|
-
switch (
|
|
9306
|
+
switch (a3 = a3.type, a3) {
|
|
9307
9307
|
case d:
|
|
9308
|
-
case
|
|
9308
|
+
case f4:
|
|
9309
9309
|
case e:
|
|
9310
9310
|
case l:
|
|
9311
|
-
case
|
|
9312
|
-
return
|
|
9311
|
+
case m3:
|
|
9312
|
+
return a3;
|
|
9313
9313
|
default:
|
|
9314
|
-
switch (
|
|
9315
|
-
case
|
|
9314
|
+
switch (a3 = a3 && a3.$$typeof, a3) {
|
|
9315
|
+
case h3:
|
|
9316
9316
|
case k:
|
|
9317
|
-
case
|
|
9317
|
+
case p3:
|
|
9318
9318
|
case n:
|
|
9319
9319
|
case g2:
|
|
9320
|
-
return
|
|
9320
|
+
return a3;
|
|
9321
9321
|
default:
|
|
9322
9322
|
return t;
|
|
9323
9323
|
}
|
|
@@ -9327,12 +9327,12 @@ var require_react_is_production_min = __commonJS({
|
|
|
9327
9327
|
}
|
|
9328
9328
|
}
|
|
9329
9329
|
}
|
|
9330
|
-
var z = g2, A = b,
|
|
9331
|
-
exports.ContextConsumer =
|
|
9330
|
+
var z = g2, A = b, B3 = k, C3 = d, D = p3, E = n, F = c, G = f4, H = e, I = l;
|
|
9331
|
+
exports.ContextConsumer = h3;
|
|
9332
9332
|
exports.ContextProvider = z;
|
|
9333
9333
|
exports.Element = A;
|
|
9334
|
-
exports.ForwardRef =
|
|
9335
|
-
exports.Fragment =
|
|
9334
|
+
exports.ForwardRef = B3;
|
|
9335
|
+
exports.Fragment = C3;
|
|
9336
9336
|
exports.Lazy = D;
|
|
9337
9337
|
exports.Memo = E;
|
|
9338
9338
|
exports.Portal = F;
|
|
@@ -9345,41 +9345,41 @@ var require_react_is_production_min = __commonJS({
|
|
|
9345
9345
|
exports.isConcurrentMode = function() {
|
|
9346
9346
|
return !1;
|
|
9347
9347
|
};
|
|
9348
|
-
exports.isContextConsumer = function(
|
|
9349
|
-
return y(
|
|
9348
|
+
exports.isContextConsumer = function(a3) {
|
|
9349
|
+
return y(a3) === h3;
|
|
9350
9350
|
};
|
|
9351
|
-
exports.isContextProvider = function(
|
|
9352
|
-
return y(
|
|
9351
|
+
exports.isContextProvider = function(a3) {
|
|
9352
|
+
return y(a3) === g2;
|
|
9353
9353
|
};
|
|
9354
|
-
exports.isElement = function(
|
|
9355
|
-
return typeof
|
|
9354
|
+
exports.isElement = function(a3) {
|
|
9355
|
+
return typeof a3 == "object" && a3 !== null && a3.$$typeof === b;
|
|
9356
9356
|
};
|
|
9357
|
-
exports.isForwardRef = function(
|
|
9358
|
-
return y(
|
|
9357
|
+
exports.isForwardRef = function(a3) {
|
|
9358
|
+
return y(a3) === k;
|
|
9359
9359
|
};
|
|
9360
|
-
exports.isFragment = function(
|
|
9361
|
-
return y(
|
|
9360
|
+
exports.isFragment = function(a3) {
|
|
9361
|
+
return y(a3) === d;
|
|
9362
9362
|
};
|
|
9363
|
-
exports.isLazy = function(
|
|
9364
|
-
return y(
|
|
9363
|
+
exports.isLazy = function(a3) {
|
|
9364
|
+
return y(a3) === p3;
|
|
9365
9365
|
};
|
|
9366
|
-
exports.isMemo = function(
|
|
9367
|
-
return y(
|
|
9366
|
+
exports.isMemo = function(a3) {
|
|
9367
|
+
return y(a3) === n;
|
|
9368
9368
|
};
|
|
9369
|
-
exports.isPortal = function(
|
|
9370
|
-
return y(
|
|
9369
|
+
exports.isPortal = function(a3) {
|
|
9370
|
+
return y(a3) === c;
|
|
9371
9371
|
};
|
|
9372
|
-
exports.isProfiler = function(
|
|
9373
|
-
return y(
|
|
9372
|
+
exports.isProfiler = function(a3) {
|
|
9373
|
+
return y(a3) === f4;
|
|
9374
9374
|
};
|
|
9375
|
-
exports.isStrictMode = function(
|
|
9376
|
-
return y(
|
|
9375
|
+
exports.isStrictMode = function(a3) {
|
|
9376
|
+
return y(a3) === e;
|
|
9377
9377
|
};
|
|
9378
|
-
exports.isSuspense = function(
|
|
9379
|
-
return y(
|
|
9378
|
+
exports.isSuspense = function(a3) {
|
|
9379
|
+
return y(a3) === l;
|
|
9380
9380
|
};
|
|
9381
|
-
exports.isValidElementType = function(
|
|
9382
|
-
return typeof
|
|
9381
|
+
exports.isValidElementType = function(a3) {
|
|
9382
|
+
return typeof a3 == "string" || typeof a3 == "function" || a3 === d || a3 === f4 || a3 === v || a3 === e || a3 === l || a3 === m3 || a3 === w || typeof a3 == "object" && a3 !== null && (a3.$$typeof === p3 || a3.$$typeof === n || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === k || a3.$$typeof === u2 || a3.$$typeof === q || a3[0] === r);
|
|
9383
9383
|
};
|
|
9384
9384
|
exports.typeOf = y;
|
|
9385
9385
|
}
|
|
@@ -9675,10 +9675,10 @@ var require_build = __commonJS({
|
|
|
9675
9675
|
return printed;
|
|
9676
9676
|
}
|
|
9677
9677
|
function findPlugin2(plugins4, val) {
|
|
9678
|
-
for (let
|
|
9678
|
+
for (let p3 = 0; p3 < plugins4.length; p3++)
|
|
9679
9679
|
try {
|
|
9680
|
-
if (plugins4[
|
|
9681
|
-
return plugins4[
|
|
9680
|
+
if (plugins4[p3].test(val))
|
|
9681
|
+
return plugins4[p3];
|
|
9682
9682
|
} catch (error) {
|
|
9683
9683
|
throw new PrettyFormatPluginError2(error.message, error.stack);
|
|
9684
9684
|
}
|
|
@@ -9811,7 +9811,7 @@ var require_build = __commonJS({
|
|
|
9811
9811
|
var require_lz_string = __commonJS({
|
|
9812
9812
|
"../../node_modules/lz-string/libs/lz-string.js"(exports, module2) {
|
|
9813
9813
|
var LZString = (function() {
|
|
9814
|
-
var
|
|
9814
|
+
var f4 = String.fromCharCode, keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", keyStrUriSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", baseReverseDic = {};
|
|
9815
9815
|
function getBaseValue(alphabet, character) {
|
|
9816
9816
|
if (!baseReverseDic[alphabet]) {
|
|
9817
9817
|
baseReverseDic[alphabet] = {};
|
|
@@ -9823,8 +9823,8 @@ var require_lz_string = __commonJS({
|
|
|
9823
9823
|
var LZString2 = {
|
|
9824
9824
|
compressToBase64: function(input2) {
|
|
9825
9825
|
if (input2 == null) return "";
|
|
9826
|
-
var res = LZString2._compress(input2, 6, function(
|
|
9827
|
-
return keyStrBase64.charAt(
|
|
9826
|
+
var res = LZString2._compress(input2, 6, function(a3) {
|
|
9827
|
+
return keyStrBase64.charAt(a3);
|
|
9828
9828
|
});
|
|
9829
9829
|
switch (res.length % 4) {
|
|
9830
9830
|
// To produce valid Base64
|
|
@@ -9846,8 +9846,8 @@ var require_lz_string = __commonJS({
|
|
|
9846
9846
|
});
|
|
9847
9847
|
},
|
|
9848
9848
|
compressToUTF16: function(input2) {
|
|
9849
|
-
return input2 == null ? "" : LZString2._compress(input2, 15, function(
|
|
9850
|
-
return
|
|
9849
|
+
return input2 == null ? "" : LZString2._compress(input2, 15, function(a3) {
|
|
9850
|
+
return f4(a3 + 32);
|
|
9851
9851
|
}) + " ";
|
|
9852
9852
|
},
|
|
9853
9853
|
decompressFromUTF16: function(compressed) {
|
|
@@ -9871,13 +9871,13 @@ var require_lz_string = __commonJS({
|
|
|
9871
9871
|
buf[i] = compressed[i * 2] * 256 + compressed[i * 2 + 1];
|
|
9872
9872
|
var result = [];
|
|
9873
9873
|
return buf.forEach(function(c) {
|
|
9874
|
-
result.push(
|
|
9874
|
+
result.push(f4(c));
|
|
9875
9875
|
}), LZString2.decompress(result.join(""));
|
|
9876
9876
|
},
|
|
9877
9877
|
//compress into a string that is already URI encoded
|
|
9878
9878
|
compressToEncodedURIComponent: function(input2) {
|
|
9879
|
-
return input2 == null ? "" : LZString2._compress(input2, 6, function(
|
|
9880
|
-
return keyStrUriSafe.charAt(
|
|
9879
|
+
return input2 == null ? "" : LZString2._compress(input2, 6, function(a3) {
|
|
9880
|
+
return keyStrUriSafe.charAt(a3);
|
|
9881
9881
|
});
|
|
9882
9882
|
},
|
|
9883
9883
|
//decompress from an output of compressToEncodedURIComponent
|
|
@@ -9887,8 +9887,8 @@ var require_lz_string = __commonJS({
|
|
|
9887
9887
|
}));
|
|
9888
9888
|
},
|
|
9889
9889
|
compress: function(uncompressed) {
|
|
9890
|
-
return LZString2._compress(uncompressed, 16, function(
|
|
9891
|
-
return
|
|
9890
|
+
return LZString2._compress(uncompressed, 16, function(a3) {
|
|
9891
|
+
return f4(a3);
|
|
9892
9892
|
});
|
|
9893
9893
|
},
|
|
9894
9894
|
_compress: function(uncompressed, bitsPerChar, getCharFromInt) {
|
|
@@ -9959,12 +9959,12 @@ var require_lz_string = __commonJS({
|
|
|
9959
9959
|
case 0:
|
|
9960
9960
|
for (bits = 0, maxpower = Math.pow(2, 8), power = 1; power != maxpower; )
|
|
9961
9961
|
resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
|
|
9962
|
-
c =
|
|
9962
|
+
c = f4(bits);
|
|
9963
9963
|
break;
|
|
9964
9964
|
case 1:
|
|
9965
9965
|
for (bits = 0, maxpower = Math.pow(2, 16), power = 1; power != maxpower; )
|
|
9966
9966
|
resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
|
|
9967
|
-
c =
|
|
9967
|
+
c = f4(bits);
|
|
9968
9968
|
break;
|
|
9969
9969
|
case 2:
|
|
9970
9970
|
return "";
|
|
@@ -9978,12 +9978,12 @@ var require_lz_string = __commonJS({
|
|
|
9978
9978
|
case 0:
|
|
9979
9979
|
for (bits = 0, maxpower = Math.pow(2, 8), power = 1; power != maxpower; )
|
|
9980
9980
|
resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
|
|
9981
|
-
dictionary[dictSize++] =
|
|
9981
|
+
dictionary[dictSize++] = f4(bits), c = dictSize - 1, enlargeIn--;
|
|
9982
9982
|
break;
|
|
9983
9983
|
case 1:
|
|
9984
9984
|
for (bits = 0, maxpower = Math.pow(2, 16), power = 1; power != maxpower; )
|
|
9985
9985
|
resb = data.val & data.position, data.position >>= 1, data.position == 0 && (data.position = resetValue, data.val = getNextValue(data.index++)), bits |= (resb > 0 ? 1 : 0) * power, power <<= 1;
|
|
9986
|
-
dictionary[dictSize++] =
|
|
9986
|
+
dictionary[dictSize++] = f4(bits), c = dictSize - 1, enlargeIn--;
|
|
9987
9987
|
break;
|
|
9988
9988
|
case 2:
|
|
9989
9989
|
return result.join("");
|
|
@@ -10011,37 +10011,37 @@ var require_lz_string = __commonJS({
|
|
|
10011
10011
|
// ../../node_modules/memoizerific/memoizerific.js
|
|
10012
10012
|
var require_memoizerific = __commonJS({
|
|
10013
10013
|
"../../node_modules/memoizerific/memoizerific.js"(exports, module2) {
|
|
10014
|
-
(function(
|
|
10014
|
+
(function(f4) {
|
|
10015
10015
|
if (typeof exports == "object" && typeof module2 < "u")
|
|
10016
|
-
module2.exports =
|
|
10016
|
+
module2.exports = f4();
|
|
10017
10017
|
else if (typeof define == "function" && define.amd)
|
|
10018
|
-
define([],
|
|
10018
|
+
define([], f4);
|
|
10019
10019
|
else {
|
|
10020
10020
|
var g2;
|
|
10021
|
-
typeof window < "u" ? g2 = window : typeof global < "u" ? g2 = global : typeof self < "u" ? g2 = self : g2 = this, g2.memoizerific =
|
|
10021
|
+
typeof window < "u" ? g2 = window : typeof global < "u" ? g2 = global : typeof self < "u" ? g2 = self : g2 = this, g2.memoizerific = f4();
|
|
10022
10022
|
}
|
|
10023
10023
|
})(function() {
|
|
10024
10024
|
var define3, module3, exports2;
|
|
10025
10025
|
return (function e(t, n, r) {
|
|
10026
|
-
function
|
|
10026
|
+
function s3(o2, u2) {
|
|
10027
10027
|
if (!n[o2]) {
|
|
10028
10028
|
if (!t[o2]) {
|
|
10029
|
-
var
|
|
10030
|
-
if (!u2 &&
|
|
10029
|
+
var a3 = typeof __require == "function" && __require;
|
|
10030
|
+
if (!u2 && a3) return a3(o2, !0);
|
|
10031
10031
|
if (i) return i(o2, !0);
|
|
10032
|
-
var
|
|
10033
|
-
throw
|
|
10032
|
+
var f4 = new Error("Cannot find module '" + o2 + "'");
|
|
10033
|
+
throw f4.code = "MODULE_NOT_FOUND", f4;
|
|
10034
10034
|
}
|
|
10035
10035
|
var l = n[o2] = { exports: {} };
|
|
10036
10036
|
t[o2][0].call(l.exports, function(e2) {
|
|
10037
10037
|
var n2 = t[o2][1][e2];
|
|
10038
|
-
return
|
|
10038
|
+
return s3(n2 || e2);
|
|
10039
10039
|
}, l, l.exports, e, t, n, r);
|
|
10040
10040
|
}
|
|
10041
10041
|
return n[o2].exports;
|
|
10042
10042
|
}
|
|
10043
|
-
for (var i = typeof __require == "function" && __require, o = 0; o < r.length; o++)
|
|
10044
|
-
return
|
|
10043
|
+
for (var i = typeof __require == "function" && __require, o = 0; o < r.length; o++) s3(r[o]);
|
|
10044
|
+
return s3;
|
|
10045
10045
|
})({ 1: [function(_dereq_, module4, exports3) {
|
|
10046
10046
|
module4.exports = function(forceSimilar) {
|
|
10047
10047
|
if (typeof Map != "function" || forceSimilar) {
|
|
@@ -10883,16 +10883,16 @@ var require_stringify = __commonJS({
|
|
|
10883
10883
|
var require_main = __commonJS({
|
|
10884
10884
|
"../../node_modules/picoquery/lib/main.js"(exports) {
|
|
10885
10885
|
"use strict";
|
|
10886
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o,
|
|
10886
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m3, k, k2) {
|
|
10887
10887
|
k2 === void 0 && (k2 = k);
|
|
10888
|
-
var desc = Object.getOwnPropertyDescriptor(
|
|
10889
|
-
(!desc || ("get" in desc ? !
|
|
10890
|
-
return
|
|
10888
|
+
var desc = Object.getOwnPropertyDescriptor(m3, k);
|
|
10889
|
+
(!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
|
|
10890
|
+
return m3[k];
|
|
10891
10891
|
} }), Object.defineProperty(o, k2, desc);
|
|
10892
|
-
}) : (function(o,
|
|
10893
|
-
k2 === void 0 && (k2 = k), o[k2] =
|
|
10894
|
-
})), __exportStar = exports && exports.__exportStar || function(
|
|
10895
|
-
for (var
|
|
10892
|
+
}) : (function(o, m3, k, k2) {
|
|
10893
|
+
k2 === void 0 && (k2 = k), o[k2] = m3[k];
|
|
10894
|
+
})), __exportStar = exports && exports.__exportStar || function(m3, exports2) {
|
|
10895
|
+
for (var p3 in m3) p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p3) && __createBinding(exports2, m3, p3);
|
|
10896
10896
|
};
|
|
10897
10897
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
10898
10898
|
exports.stringify = exports.parse = void 0;
|
|
@@ -10977,8 +10977,8 @@ var require_decode2 = __commonJS({
|
|
|
10977
10977
|
return String(str2).replace(strictEntityRe, replace2);
|
|
10978
10978
|
};
|
|
10979
10979
|
}
|
|
10980
|
-
var sorter = function(
|
|
10981
|
-
return
|
|
10980
|
+
var sorter = function(a3, b) {
|
|
10981
|
+
return a3 < b ? 1 : -1;
|
|
10982
10982
|
};
|
|
10983
10983
|
exports.decodeHTML = (function() {
|
|
10984
10984
|
for (var legacy = Object.keys(legacy_json_1.default).sort(sorter), keys3 = Object.keys(entities_json_1.default).sort(sorter), i = 0, j = 0; i < keys3.length; i++)
|
|
@@ -11374,16 +11374,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11374
11374
|
function remove3() {
|
|
11375
11375
|
return "";
|
|
11376
11376
|
}
|
|
11377
|
-
function removeXterm256Foreground(
|
|
11377
|
+
function removeXterm256Foreground(m3, g1) {
|
|
11378
11378
|
return callback("xterm256Foreground", g1), "";
|
|
11379
11379
|
}
|
|
11380
|
-
function removeXterm256Background(
|
|
11380
|
+
function removeXterm256Background(m3, g1) {
|
|
11381
11381
|
return callback("xterm256Background", g1), "";
|
|
11382
11382
|
}
|
|
11383
|
-
function newline(
|
|
11384
|
-
return options.newline ? callback("display", -1) : callback("text",
|
|
11383
|
+
function newline(m3) {
|
|
11384
|
+
return options.newline ? callback("display", -1) : callback("text", m3), "";
|
|
11385
11385
|
}
|
|
11386
|
-
function ansiMess(
|
|
11386
|
+
function ansiMess(m3, g1) {
|
|
11387
11387
|
ansiMatch = !0, g1.trim().length === 0 && (g1 = "0"), g1 = g1.trimRight(";").split(";");
|
|
11388
11388
|
var _iterator2 = _createForOfIteratorHelper(g1), _step2;
|
|
11389
11389
|
try {
|
|
@@ -11398,11 +11398,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11398
11398
|
}
|
|
11399
11399
|
return "";
|
|
11400
11400
|
}
|
|
11401
|
-
function realText(
|
|
11402
|
-
return callback("text",
|
|
11401
|
+
function realText(m3) {
|
|
11402
|
+
return callback("text", m3), "";
|
|
11403
11403
|
}
|
|
11404
|
-
function rgb(
|
|
11405
|
-
return callback("rgb",
|
|
11404
|
+
function rgb(m3) {
|
|
11405
|
+
return callback("rgb", m3), "";
|
|
11406
11406
|
}
|
|
11407
11407
|
var tokens = [{
|
|
11408
11408
|
pattern: /^\x08+/,
|
|
@@ -12150,11 +12150,11 @@ var require_dist = __commonJS({
|
|
|
12150
12150
|
parameters2 = [value.element];
|
|
12151
12151
|
else
|
|
12152
12152
|
throw new UnexpectedTypeError(value);
|
|
12153
|
-
return parameters2.map((
|
|
12153
|
+
return parameters2.map((p3) => assertPlainKeyValueOrRootResult(p3));
|
|
12154
12154
|
}
|
|
12155
12155
|
function getUnnamedParameters(value) {
|
|
12156
12156
|
let parameters2 = getParameters(value);
|
|
12157
|
-
if (parameters2.some((
|
|
12157
|
+
if (parameters2.some((p3) => p3.type === "JsdocTypeKeyValue"))
|
|
12158
12158
|
throw new Error("No parameter should be named");
|
|
12159
12159
|
return parameters2;
|
|
12160
12160
|
}
|
|
@@ -12187,9 +12187,9 @@ var require_dist = __commonJS({
|
|
|
12187
12187
|
if (newKeyword && value.type === "JsdocTypeFunction" && value.arrow)
|
|
12188
12188
|
return result = value, result.constructor = !0, result;
|
|
12189
12189
|
result.parameters = getParameters(value);
|
|
12190
|
-
for (let
|
|
12191
|
-
if (
|
|
12192
|
-
throw new Error(`only allowed named parameters are ${allowNamedParameters.join(", ")} but got ${
|
|
12190
|
+
for (let p3 of result.parameters)
|
|
12191
|
+
if (p3.type === "JsdocTypeKeyValue" && !allowNamedParameters.includes(p3.key))
|
|
12192
|
+
throw new Error(`only allowed named parameters are ${allowNamedParameters.join(", ")} but got ${p3.type}`);
|
|
12193
12193
|
}
|
|
12194
12194
|
if (parser.consume(":"))
|
|
12195
12195
|
result.returnType = parser.parseType(Precedence.PREFIX);
|
|
@@ -13560,18 +13560,18 @@ var require_browser_dtector_umd_min = __commonJS({
|
|
|
13560
13560
|
if (!(e3 instanceof o3)) throw new TypeError("Cannot call a class as a function");
|
|
13561
13561
|
})(this, t2), this.userAgent = e2 || ((o2 = i()) === null || o2 === void 0 ? void 0 : o2.userAgent) || null;
|
|
13562
13562
|
}
|
|
13563
|
-
var
|
|
13564
|
-
return
|
|
13565
|
-
var t3,
|
|
13566
|
-
|
|
13567
|
-
var v = !!(
|
|
13568
|
-
return { name: (
|
|
13563
|
+
var a3, l, s3;
|
|
13564
|
+
return a3 = t2, l = [{ key: "parseUserAgent", value: function(e2) {
|
|
13565
|
+
var t3, a4, l2, s4 = {}, c = e2 || this.userAgent || "", d = c.toLowerCase().replace(/\s\s+/g, " "), u2 = /(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) && /(mobile)/.test(d) === !1 && ["androidTablet"] || /(android)/.exec(d) || /(mac)/.exec(d) || /(linux)/.exec(d) || /(cros)/.exec(d) || [], p3 = u2[5] || u2[3] || u2[1] || null, w = f4[0] || null, x = u2[4] || u2[2] || null, b = i();
|
|
13566
|
+
p3 === "chrome" && typeof (b == null || (t3 = b.brave) === null || t3 === void 0 ? void 0 : t3.isBrave) == "function" && (p3 = "brave"), p3 && (s4[p3] = !0), w && (s4[w] = !0);
|
|
13567
|
+
var v = !!(s4.tablet || s4.android || s4.androidTablet), m3 = !!(s4.ipad || s4.tablet || s4.androidTablet), g2 = !!(s4.android || s4.androidTablet || s4.tablet || s4.ipad || s4.ipod || s4.iphone || s4["windows phone"]), h3 = !!(s4.cros || s4.mac || s4.linux || s4.win), y = !!(s4.brave || s4.chrome || s4.crios || s4.opr || s4.safari || s4.edg || s4.electron), A = !!(s4.msie || s4.rv);
|
|
13568
|
+
return { name: (a4 = o[p3]) !== null && a4 !== void 0 ? a4 : null, platform: (l2 = r[w]) !== null && l2 !== void 0 ? l2 : null, userAgent: c, version: x, shortVersion: x ? n(parseFloat(x), 2) : null, isAndroid: v, isTablet: m3, isMobile: g2, isDesktop: h3, isWebkit: y, isIE: A };
|
|
13569
13569
|
} }, { key: "getBrowserInfo", value: function() {
|
|
13570
13570
|
var e2 = this.parseUserAgent();
|
|
13571
13571
|
return { name: e2.name, platform: e2.platform, userAgent: e2.userAgent, version: e2.version, shortVersion: e2.shortVersion };
|
|
13572
|
-
} }],
|
|
13572
|
+
} }], s3 = [{ key: "VERSION", get: function() {
|
|
13573
13573
|
return "3.4.0";
|
|
13574
|
-
} }], l && e(
|
|
13574
|
+
} }], l && e(a3.prototype, l), s3 && e(a3, s3), Object.defineProperty(a3, "prototype", { writable: !1 }), t2;
|
|
13575
13575
|
})();
|
|
13576
13576
|
return t;
|
|
13577
13577
|
}));
|
|
@@ -14390,8 +14390,8 @@ var require_es_object_atoms = __commonJS2({
|
|
|
14390
14390
|
}), require_isNaN = __commonJS2({
|
|
14391
14391
|
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module2) {
|
|
14392
14392
|
"use strict";
|
|
14393
|
-
module2.exports = Number.isNaN || function(
|
|
14394
|
-
return
|
|
14393
|
+
module2.exports = Number.isNaN || function(a3) {
|
|
14394
|
+
return a3 !== a3;
|
|
14395
14395
|
};
|
|
14396
14396
|
}
|
|
14397
14397
|
}), require_sign = __commonJS2({
|
|
@@ -14484,11 +14484,11 @@ var require_es_object_atoms = __commonJS2({
|
|
|
14484
14484
|
}), require_implementation = __commonJS2({
|
|
14485
14485
|
"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
|
|
14486
14486
|
"use strict";
|
|
14487
|
-
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr3 = Object.prototype.toString, max2 = Math.max, funcType = "[object Function]", concatty = function(
|
|
14488
|
-
for (var arr = [], i = 0; i <
|
|
14489
|
-
arr[i] =
|
|
14487
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr3 = Object.prototype.toString, max2 = Math.max, funcType = "[object Function]", concatty = function(a3, b) {
|
|
14488
|
+
for (var arr = [], i = 0; i < a3.length; i += 1)
|
|
14489
|
+
arr[i] = a3[i];
|
|
14490
14490
|
for (var j = 0; j < b.length; j += 1)
|
|
14491
|
-
arr[j +
|
|
14491
|
+
arr[j + a3.length] = b[j];
|
|
14492
14492
|
return arr;
|
|
14493
14493
|
}, slicy = function(arrLike, offset2) {
|
|
14494
14494
|
for (var arr = [], i = offset2 || 0, j = 0; i < arrLike.length; i += 1, j += 1)
|
|
@@ -14920,8 +14920,8 @@ var require_es_object_atoms = __commonJS2({
|
|
|
14920
14920
|
module2.exports = function(regex) {
|
|
14921
14921
|
if (!isRegex(regex))
|
|
14922
14922
|
throw new $TypeError("`regex` must be a RegExp");
|
|
14923
|
-
return function(
|
|
14924
|
-
return $exec(regex,
|
|
14923
|
+
return function(s3) {
|
|
14924
|
+
return $exec(regex, s3) !== null;
|
|
14925
14925
|
};
|
|
14926
14926
|
};
|
|
14927
14927
|
}
|
|
@@ -15474,9 +15474,9 @@ var { document: document2, location } = scope, KEY = "storybook-channel", defaul
|
|
|
15474
15474
|
},
|
|
15475
15475
|
stringifyOptions
|
|
15476
15476
|
);
|
|
15477
|
-
return frames.length ? (this.buffer.length && this.flush(), frames.forEach((
|
|
15477
|
+
return frames.length ? (this.buffer.length && this.flush(), frames.forEach((f4) => {
|
|
15478
15478
|
try {
|
|
15479
|
-
|
|
15479
|
+
f4.postMessage(data, "*");
|
|
15480
15480
|
} catch {
|
|
15481
15481
|
logger.error("sending over postmessage fail");
|
|
15482
15482
|
}
|
|
@@ -16430,18 +16430,18 @@ function getUsedProps(fn3) {
|
|
|
16430
16430
|
let first = args[0];
|
|
16431
16431
|
return first.startsWith("{") && first.endsWith("}") ? splitByComma(first.slice(1, -1).replace(/\s/g, "")).map((prop) => prop.replace(/:.*|=.*/g, "")) : [];
|
|
16432
16432
|
}
|
|
16433
|
-
function splitByComma(
|
|
16433
|
+
function splitByComma(s3) {
|
|
16434
16434
|
let result = [], stack = [], start = 0;
|
|
16435
|
-
for (let i = 0; i <
|
|
16436
|
-
if (
|
|
16437
|
-
stack.push(
|
|
16438
|
-
else if (
|
|
16435
|
+
for (let i = 0; i < s3.length; i++)
|
|
16436
|
+
if (s3[i] === "{" || s3[i] === "[")
|
|
16437
|
+
stack.push(s3[i] === "{" ? "}" : "]");
|
|
16438
|
+
else if (s3[i] === stack[stack.length - 1])
|
|
16439
16439
|
stack.pop();
|
|
16440
|
-
else if (!stack.length &&
|
|
16441
|
-
let token =
|
|
16440
|
+
else if (!stack.length && s3[i] === ",") {
|
|
16441
|
+
let token = s3.substring(start, i).trim();
|
|
16442
16442
|
token && result.push(token), start = i + 1;
|
|
16443
16443
|
}
|
|
16444
|
-
let lastToken =
|
|
16444
|
+
let lastToken = s3.substring(start).trim();
|
|
16445
16445
|
return lastToken && result.push(lastToken), result;
|
|
16446
16446
|
}
|
|
16447
16447
|
|
|
@@ -16576,7 +16576,7 @@ __export(test_exports, {
|
|
|
16576
16576
|
within: () => within
|
|
16577
16577
|
});
|
|
16578
16578
|
|
|
16579
|
-
// ../../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
16579
|
+
// ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
16580
16580
|
var f = {
|
|
16581
16581
|
reset: [0, 0],
|
|
16582
16582
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
@@ -16635,15 +16635,15 @@ function C(n = !1) {
|
|
|
16635
16635
|
}
|
|
16636
16636
|
function p(n = !1) {
|
|
16637
16637
|
let e = C(n), i = (r, t, c, o) => {
|
|
16638
|
-
let l = "",
|
|
16638
|
+
let l = "", s3 = 0;
|
|
16639
16639
|
do
|
|
16640
|
-
l += r.substring(
|
|
16640
|
+
l += r.substring(s3, o) + c, s3 = o + t.length, o = r.indexOf(t, s3);
|
|
16641
16641
|
while (~o);
|
|
16642
|
-
return l + r.substring(
|
|
16642
|
+
return l + r.substring(s3);
|
|
16643
16643
|
}, g2 = (r, t, c = r) => {
|
|
16644
16644
|
let o = (l) => {
|
|
16645
|
-
let
|
|
16646
|
-
return ~b ? r + i(
|
|
16645
|
+
let s3 = String(l), b = s3.indexOf(t, r.length);
|
|
16646
|
+
return ~b ? r + i(s3, t, c, b) + t : r + s3 + t;
|
|
16647
16647
|
};
|
|
16648
16648
|
return o.open = r, o.close = t, o;
|
|
16649
16649
|
}, u2 = {
|
|
@@ -16658,12 +16658,12 @@ function p(n = !1) {
|
|
|
16658
16658
|
return u2;
|
|
16659
16659
|
}
|
|
16660
16660
|
|
|
16661
|
-
// ../../node_modules/tinyrainbow/dist/browser.js
|
|
16661
|
+
// ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/browser.js
|
|
16662
16662
|
var s = p();
|
|
16663
16663
|
|
|
16664
|
-
// ../../node_modules/@vitest/pretty-format/dist/index.js
|
|
16665
|
-
function _mergeNamespaces(n,
|
|
16666
|
-
return
|
|
16664
|
+
// ../../node_modules/@vitest/utils/node_modules/@vitest/pretty-format/dist/index.js
|
|
16665
|
+
function _mergeNamespaces(n, m3) {
|
|
16666
|
+
return m3.forEach(function(e) {
|
|
16667
16667
|
e && typeof e != "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
16668
16668
|
if (k !== "default" && !(k in n)) {
|
|
16669
16669
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
@@ -16957,29 +16957,29 @@ var hasRequiredReactIs_production_min;
|
|
|
16957
16957
|
function requireReactIs_production_min() {
|
|
16958
16958
|
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
16959
16959
|
hasRequiredReactIs_production_min = 1;
|
|
16960
|
-
var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"),
|
|
16960
|
+
var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f4 = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m3 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p3 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u2;
|
|
16961
16961
|
u2 = Symbol.for("react.module.reference");
|
|
16962
|
-
function v(
|
|
16963
|
-
if (typeof
|
|
16964
|
-
var r =
|
|
16962
|
+
function v(a3) {
|
|
16963
|
+
if (typeof a3 == "object" && a3 !== null) {
|
|
16964
|
+
var r = a3.$$typeof;
|
|
16965
16965
|
switch (r) {
|
|
16966
16966
|
case b:
|
|
16967
|
-
switch (
|
|
16967
|
+
switch (a3 = a3.type, a3) {
|
|
16968
16968
|
case d:
|
|
16969
|
-
case
|
|
16969
|
+
case f4:
|
|
16970
16970
|
case e:
|
|
16971
|
-
case
|
|
16971
|
+
case m3:
|
|
16972
16972
|
case n:
|
|
16973
|
-
return
|
|
16973
|
+
return a3;
|
|
16974
16974
|
default:
|
|
16975
|
-
switch (
|
|
16975
|
+
switch (a3 = a3 && a3.$$typeof, a3) {
|
|
16976
16976
|
case k:
|
|
16977
|
-
case
|
|
16977
|
+
case h3:
|
|
16978
16978
|
case l:
|
|
16979
16979
|
case q:
|
|
16980
|
-
case
|
|
16980
|
+
case p3:
|
|
16981
16981
|
case g2:
|
|
16982
|
-
return
|
|
16982
|
+
return a3;
|
|
16983
16983
|
default:
|
|
16984
16984
|
return r;
|
|
16985
16985
|
}
|
|
@@ -16989,36 +16989,36 @@ function requireReactIs_production_min() {
|
|
|
16989
16989
|
}
|
|
16990
16990
|
}
|
|
16991
16991
|
}
|
|
16992
|
-
return reactIs_production_min.ContextConsumer =
|
|
16992
|
+
return reactIs_production_min.ContextConsumer = h3, reactIs_production_min.ContextProvider = g2, reactIs_production_min.Element = b, reactIs_production_min.ForwardRef = l, reactIs_production_min.Fragment = d, reactIs_production_min.Lazy = q, reactIs_production_min.Memo = p3, reactIs_production_min.Portal = c, reactIs_production_min.Profiler = f4, reactIs_production_min.StrictMode = e, reactIs_production_min.Suspense = m3, reactIs_production_min.SuspenseList = n, reactIs_production_min.isAsyncMode = function() {
|
|
16993
16993
|
return !1;
|
|
16994
16994
|
}, reactIs_production_min.isConcurrentMode = function() {
|
|
16995
16995
|
return !1;
|
|
16996
|
-
}, reactIs_production_min.isContextConsumer = function(
|
|
16997
|
-
return v(
|
|
16998
|
-
}, reactIs_production_min.isContextProvider = function(
|
|
16999
|
-
return v(
|
|
17000
|
-
}, reactIs_production_min.isElement = function(
|
|
17001
|
-
return typeof
|
|
17002
|
-
}, reactIs_production_min.isForwardRef = function(
|
|
17003
|
-
return v(
|
|
17004
|
-
}, reactIs_production_min.isFragment = function(
|
|
17005
|
-
return v(
|
|
17006
|
-
}, reactIs_production_min.isLazy = function(
|
|
17007
|
-
return v(
|
|
17008
|
-
}, reactIs_production_min.isMemo = function(
|
|
17009
|
-
return v(
|
|
17010
|
-
}, reactIs_production_min.isPortal = function(
|
|
17011
|
-
return v(
|
|
17012
|
-
}, reactIs_production_min.isProfiler = function(
|
|
17013
|
-
return v(
|
|
17014
|
-
}, reactIs_production_min.isStrictMode = function(
|
|
17015
|
-
return v(
|
|
17016
|
-
}, reactIs_production_min.isSuspense = function(
|
|
17017
|
-
return v(
|
|
17018
|
-
}, reactIs_production_min.isSuspenseList = function(
|
|
17019
|
-
return v(
|
|
17020
|
-
}, reactIs_production_min.isValidElementType = function(
|
|
17021
|
-
return typeof
|
|
16996
|
+
}, reactIs_production_min.isContextConsumer = function(a3) {
|
|
16997
|
+
return v(a3) === h3;
|
|
16998
|
+
}, reactIs_production_min.isContextProvider = function(a3) {
|
|
16999
|
+
return v(a3) === g2;
|
|
17000
|
+
}, reactIs_production_min.isElement = function(a3) {
|
|
17001
|
+
return typeof a3 == "object" && a3 !== null && a3.$$typeof === b;
|
|
17002
|
+
}, reactIs_production_min.isForwardRef = function(a3) {
|
|
17003
|
+
return v(a3) === l;
|
|
17004
|
+
}, reactIs_production_min.isFragment = function(a3) {
|
|
17005
|
+
return v(a3) === d;
|
|
17006
|
+
}, reactIs_production_min.isLazy = function(a3) {
|
|
17007
|
+
return v(a3) === q;
|
|
17008
|
+
}, reactIs_production_min.isMemo = function(a3) {
|
|
17009
|
+
return v(a3) === p3;
|
|
17010
|
+
}, reactIs_production_min.isPortal = function(a3) {
|
|
17011
|
+
return v(a3) === c;
|
|
17012
|
+
}, reactIs_production_min.isProfiler = function(a3) {
|
|
17013
|
+
return v(a3) === f4;
|
|
17014
|
+
}, reactIs_production_min.isStrictMode = function(a3) {
|
|
17015
|
+
return v(a3) === e;
|
|
17016
|
+
}, reactIs_production_min.isSuspense = function(a3) {
|
|
17017
|
+
return v(a3) === m3;
|
|
17018
|
+
}, reactIs_production_min.isSuspenseList = function(a3) {
|
|
17019
|
+
return v(a3) === n;
|
|
17020
|
+
}, reactIs_production_min.isValidElementType = function(a3) {
|
|
17021
|
+
return typeof a3 == "string" || typeof a3 == "function" || a3 === d || a3 === f4 || a3 === e || a3 === m3 || a3 === n || a3 === t || typeof a3 == "object" && a3 !== null && (a3.$$typeof === q || a3.$$typeof === p3 || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || a3.getModuleId !== void 0);
|
|
17022
17022
|
}, reactIs_production_min.typeOf = v, reactIs_production_min;
|
|
17023
17023
|
}
|
|
17024
17024
|
var hasRequiredReactIs;
|
|
@@ -17044,7 +17044,7 @@ var reactIsExports = requireReactIs(), index = getDefaultExportFromCjs(reactIsEx
|
|
|
17044
17044
|
"isSuspense",
|
|
17045
17045
|
"isSuspenseList",
|
|
17046
17046
|
"isValidElementType"
|
|
17047
|
-
], ReactIs = Object.fromEntries(reactIsMethods.map((
|
|
17047
|
+
], ReactIs = Object.fromEntries(reactIsMethods.map((m3) => [m3, (v) => ReactIs18[m3](v) || ReactIs19[m3](v)]));
|
|
17048
17048
|
function getChildren(arg, children = []) {
|
|
17049
17049
|
if (Array.isArray(arg))
|
|
17050
17050
|
for (let item of arg)
|
|
@@ -17759,8 +17759,8 @@ function format2(...args) {
|
|
|
17759
17759
|
try {
|
|
17760
17760
|
return JSON.stringify(args[i++]);
|
|
17761
17761
|
} catch (err) {
|
|
17762
|
-
let
|
|
17763
|
-
if (
|
|
17762
|
+
let m3 = err.message;
|
|
17763
|
+
if (m3.includes("circular structure") || m3.includes("cyclic structures") || m3.includes("cyclic object"))
|
|
17764
17764
|
return "[Circular]";
|
|
17765
17765
|
throw err;
|
|
17766
17766
|
}
|
|
@@ -18390,18 +18390,18 @@ function isEmptyString(lines) {
|
|
|
18390
18390
|
return lines.length === 1 && lines[0].length === 0;
|
|
18391
18391
|
}
|
|
18392
18392
|
function countChanges(diffs) {
|
|
18393
|
-
let
|
|
18393
|
+
let a3 = 0, b = 0;
|
|
18394
18394
|
return diffs.forEach((diff2) => {
|
|
18395
18395
|
switch (diff2[0]) {
|
|
18396
18396
|
case DIFF_DELETE:
|
|
18397
|
-
|
|
18397
|
+
a3 += 1;
|
|
18398
18398
|
break;
|
|
18399
18399
|
case DIFF_INSERT:
|
|
18400
18400
|
b += 1;
|
|
18401
18401
|
break;
|
|
18402
18402
|
}
|
|
18403
18403
|
}), {
|
|
18404
|
-
a:
|
|
18404
|
+
a: a3,
|
|
18405
18405
|
b
|
|
18406
18406
|
};
|
|
18407
18407
|
}
|
|
@@ -18413,8 +18413,8 @@ function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor,
|
|
|
18413
18413
|
let aCount = String(changeCounts.a), bCount = String(changeCounts.b), baAnnotationLengthDiff = bAnnotation.length - aAnnotation.length, aAnnotationPadding = " ".repeat(Math.max(0, baAnnotationLengthDiff)), bAnnotationPadding = " ".repeat(Math.max(0, -baAnnotationLengthDiff)), baCountLengthDiff = bCount.length - aCount.length, aCountPadding = " ".repeat(Math.max(0, baCountLengthDiff)), bCountPadding = " ".repeat(Math.max(0, -baCountLengthDiff));
|
|
18414
18414
|
aRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`, bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
|
|
18415
18415
|
}
|
|
18416
|
-
let
|
|
18417
|
-
return `${aColor(
|
|
18416
|
+
let a3 = `${aIndicator} ${aAnnotation}${aRest}`, b = `${bIndicator} ${bAnnotation}${bRest}`;
|
|
18417
|
+
return `${aColor(a3)}
|
|
18418
18418
|
${bColor(b)}
|
|
18419
18419
|
|
|
18420
18420
|
`;
|
|
@@ -18498,20 +18498,20 @@ function getNewLineSymbol(string) {
|
|
|
18498
18498
|
` : `
|
|
18499
18499
|
`;
|
|
18500
18500
|
}
|
|
18501
|
-
function diffStrings(
|
|
18502
|
-
let truncate3 = options?.truncateThreshold ?? !1, truncateThreshold = Math.max(Math.floor(options?.truncateThreshold ?? 0), 0), aLength =
|
|
18501
|
+
function diffStrings(a3, b, options) {
|
|
18502
|
+
let truncate3 = options?.truncateThreshold ?? !1, truncateThreshold = Math.max(Math.floor(options?.truncateThreshold ?? 0), 0), aLength = a3.length, bLength = b.length;
|
|
18503
18503
|
if (truncate3) {
|
|
18504
|
-
let aMultipleLines =
|
|
18504
|
+
let aMultipleLines = a3.includes(`
|
|
18505
18505
|
`), bMultipleLines = b.includes(`
|
|
18506
|
-
`), aNewLineSymbol = getNewLineSymbol(
|
|
18507
|
-
` :
|
|
18506
|
+
`), aNewLineSymbol = getNewLineSymbol(a3), bNewLineSymbol = getNewLineSymbol(b), _a3 = aMultipleLines ? `${a3.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)}
|
|
18507
|
+
` : a3, _b = bMultipleLines ? `${b.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}
|
|
18508
18508
|
` : b;
|
|
18509
18509
|
aLength = _a3.length, bLength = _b.length;
|
|
18510
18510
|
}
|
|
18511
|
-
let truncated = aLength !==
|
|
18511
|
+
let truncated = aLength !== a3.length || bLength !== b.length, isCommon = (aIndex2, bIndex2) => a3[aIndex2] === b[bIndex2], aIndex = 0, bIndex = 0, diffs = [];
|
|
18512
18512
|
return diffSequences(aLength, bLength, isCommon, (nCommon, aCommon, bCommon) => {
|
|
18513
|
-
aIndex !== aCommon && diffs.push(new Diff(DIFF_DELETE,
|
|
18514
|
-
}), aIndex !== aLength && diffs.push(new Diff(DIFF_DELETE,
|
|
18513
|
+
aIndex !== aCommon && diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex, aCommon))), bIndex !== bCommon && diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex, bCommon))), aIndex = aCommon + nCommon, bIndex = bCommon + nCommon, diffs.push(new Diff(DIFF_EQUAL, b.slice(bCommon, bIndex)));
|
|
18514
|
+
}), aIndex !== aLength && diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex))), bIndex !== bLength && diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex))), [diffs, truncated];
|
|
18515
18515
|
}
|
|
18516
18516
|
function concatenateRelevantDiffs(op, diffs, changeColor) {
|
|
18517
18517
|
return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op && diff2[1].length !== 0 ? changeColor(diff2[1]) : ""), "");
|
|
@@ -18615,24 +18615,24 @@ function hasCommonDiff(diffs, isMultiline) {
|
|
|
18615
18615
|
}
|
|
18616
18616
|
return diffs.some((diff2) => diff2[0] === DIFF_EQUAL);
|
|
18617
18617
|
}
|
|
18618
|
-
function diffStringsUnified(
|
|
18619
|
-
if (
|
|
18620
|
-
let isMultiline =
|
|
18618
|
+
function diffStringsUnified(a3, b, options) {
|
|
18619
|
+
if (a3 !== b && a3.length !== 0 && b.length !== 0) {
|
|
18620
|
+
let isMultiline = a3.includes(`
|
|
18621
18621
|
`) || b.includes(`
|
|
18622
|
-
`), [diffs, truncated] = diffStringsRaw(isMultiline ? `${
|
|
18623
|
-
` :
|
|
18622
|
+
`), [diffs, truncated] = diffStringsRaw(isMultiline ? `${a3}
|
|
18623
|
+
` : a3, isMultiline ? `${b}
|
|
18624
18624
|
` : b, !0, options);
|
|
18625
18625
|
if (hasCommonDiff(diffs, isMultiline)) {
|
|
18626
18626
|
let optionsNormalized = normalizeDiffOptions(options), lines = getAlignedDiffs(diffs, optionsNormalized.changeColor);
|
|
18627
18627
|
return printDiffLines(lines, truncated, optionsNormalized);
|
|
18628
18628
|
}
|
|
18629
18629
|
}
|
|
18630
|
-
return diffLinesUnified(
|
|
18630
|
+
return diffLinesUnified(a3.split(`
|
|
18631
18631
|
`), b.split(`
|
|
18632
18632
|
`), options);
|
|
18633
18633
|
}
|
|
18634
|
-
function diffStringsRaw(
|
|
18635
|
-
let [diffs, truncated] = diffStrings(
|
|
18634
|
+
function diffStringsRaw(a3, b, cleanup, options) {
|
|
18635
|
+
let [diffs, truncated] = diffStrings(a3, b, options);
|
|
18636
18636
|
return cleanup && diff_cleanupSemantic(diffs), [diffs, truncated];
|
|
18637
18637
|
}
|
|
18638
18638
|
function getCommonMessage(message, options) {
|
|
@@ -18655,19 +18655,19 @@ var { AsymmetricMatcher: AsymmetricMatcher2, DOMCollection: DOMCollection2, DOME
|
|
|
18655
18655
|
maxDepth: 8,
|
|
18656
18656
|
plugins: PLUGINS2
|
|
18657
18657
|
};
|
|
18658
|
-
function diff(
|
|
18659
|
-
if (Object.is(
|
|
18658
|
+
function diff(a3, b, options) {
|
|
18659
|
+
if (Object.is(a3, b))
|
|
18660
18660
|
return "";
|
|
18661
|
-
let aType = getType3(
|
|
18662
|
-
if (aType === "object" && typeof
|
|
18663
|
-
if (
|
|
18661
|
+
let aType = getType3(a3), expectedType = aType, omitDifference = !1;
|
|
18662
|
+
if (aType === "object" && typeof a3.asymmetricMatch == "function") {
|
|
18663
|
+
if (a3.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof a3.getExpectedType != "function")
|
|
18664
18664
|
return;
|
|
18665
|
-
expectedType =
|
|
18665
|
+
expectedType = a3.getExpectedType(), omitDifference = expectedType === "string";
|
|
18666
18666
|
}
|
|
18667
18667
|
if (expectedType !== getType3(b)) {
|
|
18668
|
-
let truncate3 = function(
|
|
18669
|
-
return
|
|
18670
|
-
}, { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options), formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options), aDisplay = format(
|
|
18668
|
+
let truncate3 = function(s3) {
|
|
18669
|
+
return s3.length <= MAX_LENGTH ? s3 : `${s3.slice(0, MAX_LENGTH)}...`;
|
|
18670
|
+
}, { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options), formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options), aDisplay = format(a3, formatOptions), bDisplay = format(b, formatOptions), MAX_LENGTH = 1e5;
|
|
18671
18671
|
aDisplay = truncate3(aDisplay), bDisplay = truncate3(bDisplay);
|
|
18672
18672
|
let aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)}
|
|
18673
18673
|
${aDisplay}`, bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)}
|
|
@@ -18679,22 +18679,22 @@ ${bDiff}`;
|
|
|
18679
18679
|
if (!omitDifference)
|
|
18680
18680
|
switch (aType) {
|
|
18681
18681
|
case "string":
|
|
18682
|
-
return diffLinesUnified(
|
|
18682
|
+
return diffLinesUnified(a3.split(`
|
|
18683
18683
|
`), b.split(`
|
|
18684
18684
|
`), options);
|
|
18685
18685
|
case "boolean":
|
|
18686
18686
|
case "number":
|
|
18687
|
-
return comparePrimitive(
|
|
18687
|
+
return comparePrimitive(a3, b, options);
|
|
18688
18688
|
case "map":
|
|
18689
|
-
return compareObjects(sortMap(
|
|
18689
|
+
return compareObjects(sortMap(a3), sortMap(b), options);
|
|
18690
18690
|
case "set":
|
|
18691
|
-
return compareObjects(sortSet(
|
|
18691
|
+
return compareObjects(sortSet(a3), sortSet(b), options);
|
|
18692
18692
|
default:
|
|
18693
|
-
return compareObjects(
|
|
18693
|
+
return compareObjects(a3, b, options);
|
|
18694
18694
|
}
|
|
18695
18695
|
}
|
|
18696
|
-
function comparePrimitive(
|
|
18697
|
-
let aFormat = format(
|
|
18696
|
+
function comparePrimitive(a3, b, options) {
|
|
18697
|
+
let aFormat = format(a3, FORMAT_OPTIONS), bFormat = format(b, FORMAT_OPTIONS);
|
|
18698
18698
|
return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split(`
|
|
18699
18699
|
`), bFormat.split(`
|
|
18700
18700
|
`), options);
|
|
@@ -18705,18 +18705,18 @@ function sortMap(map3) {
|
|
|
18705
18705
|
function sortSet(set3) {
|
|
18706
18706
|
return new Set(Array.from(set3.values()).sort());
|
|
18707
18707
|
}
|
|
18708
|
-
function compareObjects(
|
|
18708
|
+
function compareObjects(a3, b, options) {
|
|
18709
18709
|
let difference3, hasThrown = !1;
|
|
18710
18710
|
try {
|
|
18711
18711
|
let formatOptions = getFormatOptions(FORMAT_OPTIONS, options);
|
|
18712
|
-
difference3 = getObjectsDifference(
|
|
18712
|
+
difference3 = getObjectsDifference(a3, b, formatOptions, options);
|
|
18713
18713
|
} catch {
|
|
18714
18714
|
hasThrown = !0;
|
|
18715
18715
|
}
|
|
18716
18716
|
let noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);
|
|
18717
18717
|
if (difference3 === void 0 || difference3 === noDiffMessage) {
|
|
18718
18718
|
let formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
|
|
18719
|
-
difference3 = getObjectsDifference(
|
|
18719
|
+
difference3 = getObjectsDifference(a3, b, formatOptions, options), difference3 !== noDiffMessage && !hasThrown && (difference3 = `${getCommonMessage(SIMILAR_MESSAGE, options)}
|
|
18720
18720
|
|
|
18721
18721
|
${difference3}`);
|
|
18722
18722
|
}
|
|
@@ -18731,15 +18731,15 @@ function getFormatOptions(formatOptions, options) {
|
|
|
18731
18731
|
maxDepth: maxDepth ?? formatOptions.maxDepth
|
|
18732
18732
|
};
|
|
18733
18733
|
}
|
|
18734
|
-
function getObjectsDifference(
|
|
18734
|
+
function getObjectsDifference(a3, b, formatOptions, options) {
|
|
18735
18735
|
let formatOptionsZeroIndent = {
|
|
18736
18736
|
...formatOptions,
|
|
18737
18737
|
indent: 0
|
|
18738
|
-
}, aCompare = format(
|
|
18738
|
+
}, aCompare = format(a3, formatOptionsZeroIndent), bCompare = format(b, formatOptionsZeroIndent);
|
|
18739
18739
|
if (aCompare === bCompare)
|
|
18740
18740
|
return getCommonMessage(NO_DIFF_MESSAGE, options);
|
|
18741
18741
|
{
|
|
18742
|
-
let aDisplay = format(
|
|
18742
|
+
let aDisplay = format(a3, formatOptions), bDisplay = format(b, formatOptions);
|
|
18743
18743
|
return diffLinesUnified2(aDisplay.split(`
|
|
18744
18744
|
`), bDisplay.split(`
|
|
18745
18745
|
`), aCompare.split(`
|
|
@@ -19239,11 +19239,11 @@ var alreadyCompletedException = new Error(
|
|
|
19239
19239
|
// Sends the call info to the manager and synchronizes the log.
|
|
19240
19240
|
update(call2) {
|
|
19241
19241
|
this.channel?.emit(EVENTS.CALL, call2), this.setState(call2.storyId, ({ calls }) => {
|
|
19242
|
-
let callsById = calls.concat(call2).reduce((
|
|
19242
|
+
let callsById = calls.concat(call2).reduce((a3, c) => Object.assign(a3, { [c.id]: c }), {});
|
|
19243
19243
|
return {
|
|
19244
19244
|
// Calls are sorted to ensure parent calls always come before calls in their callback.
|
|
19245
19245
|
calls: Object.values(callsById).sort(
|
|
19246
|
-
(
|
|
19246
|
+
(a3, b) => a3.id.localeCompare(b.id, void 0, { numeric: !0 })
|
|
19247
19247
|
)
|
|
19248
19248
|
};
|
|
19249
19249
|
}), this.sync(call2.storyId);
|
|
@@ -20585,8 +20585,8 @@ function overwriteChainableMethod(ctx, name, method2, chainingBehavior) {
|
|
|
20585
20585
|
}, "overwritingChainableMethodWrapper");
|
|
20586
20586
|
}
|
|
20587
20587
|
__name(overwriteChainableMethod, "overwriteChainableMethod");
|
|
20588
|
-
function compareByInspect(
|
|
20589
|
-
return inspect22(
|
|
20588
|
+
function compareByInspect(a3, b) {
|
|
20589
|
+
return inspect22(a3) < inspect22(b) ? -1 : 1;
|
|
20590
20590
|
}
|
|
20591
20591
|
__name(compareByInspect, "compareByInspect");
|
|
20592
20592
|
function getOwnEnumerablePropertySymbols(obj) {
|
|
@@ -20697,8 +20697,8 @@ function an(type32, msg) {
|
|
|
20697
20697
|
__name(an, "an");
|
|
20698
20698
|
Assertion.addChainableMethod("an", an);
|
|
20699
20699
|
Assertion.addChainableMethod("a", an);
|
|
20700
|
-
function SameValueZero(
|
|
20701
|
-
return isNaN22(
|
|
20700
|
+
function SameValueZero(a3, b) {
|
|
20701
|
+
return isNaN22(a3) && isNaN22(b) || a3 === b;
|
|
20702
20702
|
}
|
|
20703
20703
|
__name(SameValueZero, "SameValueZero");
|
|
20704
20704
|
function includeChainingBehavior() {
|
|
@@ -22447,11 +22447,11 @@ __export(matchers_exports, {
|
|
|
22447
22447
|
var import_redent = __toESM(require_redent(), 1);
|
|
22448
22448
|
|
|
22449
22449
|
// ../../node_modules/@adobe/css-tools/dist/index.mjs
|
|
22450
|
-
function $parcel$defineInteropFlag(
|
|
22451
|
-
Object.defineProperty(
|
|
22450
|
+
function $parcel$defineInteropFlag(a3) {
|
|
22451
|
+
Object.defineProperty(a3, "__esModule", { value: !0, configurable: !0 });
|
|
22452
22452
|
}
|
|
22453
|
-
function $parcel$export(e, n, v,
|
|
22454
|
-
Object.defineProperty(e, n, { get: v, set:
|
|
22453
|
+
function $parcel$export(e, n, v, s3) {
|
|
22454
|
+
Object.defineProperty(e, n, { get: v, set: s3, enumerable: !0, configurable: !0 });
|
|
22455
22455
|
}
|
|
22456
22456
|
var $009ddb00d3ec72b8$exports = {};
|
|
22457
22457
|
$parcel$defineInteropFlag($009ddb00d3ec72b8$exports);
|
|
@@ -22524,10 +22524,10 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22524
22524
|
return rules2;
|
|
22525
22525
|
}
|
|
22526
22526
|
function match(re) {
|
|
22527
|
-
let
|
|
22528
|
-
if (!
|
|
22529
|
-
let str2 =
|
|
22530
|
-
return updatePosition(str2), css = css.slice(str2.length),
|
|
22527
|
+
let m3 = re.exec(css);
|
|
22528
|
+
if (!m3) return;
|
|
22529
|
+
let str2 = m3[0];
|
|
22530
|
+
return updatePosition(str2), css = css.slice(str2.length), m3;
|
|
22531
22531
|
}
|
|
22532
22532
|
function whitespace() {
|
|
22533
22533
|
match(/^\s*/);
|
|
@@ -22540,10 +22540,10 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22540
22540
|
function comment() {
|
|
22541
22541
|
let pos = position();
|
|
22542
22542
|
if (css.charAt(0) !== "/" || css.charAt(1) !== "*") return;
|
|
22543
|
-
let
|
|
22544
|
-
return
|
|
22543
|
+
let m3 = match(/^\/\*[^]*?\*\//);
|
|
22544
|
+
return m3 ? pos({
|
|
22545
22545
|
type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.comment,
|
|
22546
|
-
comment:
|
|
22546
|
+
comment: m3[0].slice(2, -2)
|
|
22547
22547
|
}) : error("End of comment missing");
|
|
22548
22548
|
}
|
|
22549
22549
|
function findClosingParenthese(str2, start, depth) {
|
|
@@ -22555,9 +22555,9 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22555
22555
|
return found && closeParentheses !== -1 ? closeParentheses : -1;
|
|
22556
22556
|
}
|
|
22557
22557
|
function selector() {
|
|
22558
|
-
let
|
|
22559
|
-
if (!
|
|
22560
|
-
let res = $d708735ed1303b43$var$trim(
|
|
22558
|
+
let m3 = match(/^([^{]+)/);
|
|
22559
|
+
if (!m3) return;
|
|
22560
|
+
let res = $d708735ed1303b43$var$trim(m3[0]).replace($d708735ed1303b43$var$commentre, "");
|
|
22561
22561
|
if (res.indexOf(",") === -1) return [
|
|
22562
22562
|
res
|
|
22563
22563
|
];
|
|
@@ -22567,7 +22567,7 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22567
22567
|
if (closeParentheses === -1) break;
|
|
22568
22568
|
ptr = closeParentheses + 1, res = res.substring(0, startParentheses) + res.substring(startParentheses, closeParentheses).replace(/,/g, "\u200C") + res.substring(closeParentheses), startParentheses = res.indexOf("(", ptr);
|
|
22569
22569
|
}
|
|
22570
|
-
return res = res.replace(/("|')(?:\\\1|.)*?\1/g, (
|
|
22570
|
+
return res = res.replace(/("|')(?:\\\1|.)*?\1/g, (m4) => m4.replace(/,/g, "\u200C")), res.split(",").map((s3) => $d708735ed1303b43$var$trim(s3.replace(/\u200C/g, ",")));
|
|
22571
22571
|
}
|
|
22572
22572
|
function declaration() {
|
|
22573
22573
|
let pos = position(), propMatch = match(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
|
|
@@ -22590,9 +22590,9 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22590
22590
|
return close() ? decls : error("missing '}'");
|
|
22591
22591
|
}
|
|
22592
22592
|
function keyframe() {
|
|
22593
|
-
let
|
|
22594
|
-
for (;
|
|
22595
|
-
vals.push(
|
|
22593
|
+
let m3, vals = [], pos = position();
|
|
22594
|
+
for (; m3 = match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); )
|
|
22595
|
+
vals.push(m3[1]), match(/^,\s*/);
|
|
22596
22596
|
if (vals.length)
|
|
22597
22597
|
return pos({
|
|
22598
22598
|
type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframe,
|
|
@@ -22603,9 +22603,9 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22603
22603
|
function atkeyframes() {
|
|
22604
22604
|
let pos = position(), m1 = match(/^@([-\w]+)?keyframes\s*/);
|
|
22605
22605
|
if (!m1) return;
|
|
22606
|
-
let vendor = m1[1],
|
|
22607
|
-
if (!
|
|
22608
|
-
let name =
|
|
22606
|
+
let vendor = m1[1], m22 = match(/^([-\w]+)\s*/);
|
|
22607
|
+
if (!m22) return error("@keyframes missing name");
|
|
22608
|
+
let name = m22[1];
|
|
22609
22609
|
if (!open()) return error("@keyframes missing '{'");
|
|
22610
22610
|
let frame, frames = comments();
|
|
22611
22611
|
for (; frame = keyframe(); )
|
|
@@ -22618,9 +22618,9 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22618
22618
|
}) : error("@keyframes missing '}'");
|
|
22619
22619
|
}
|
|
22620
22620
|
function atsupports() {
|
|
22621
|
-
let pos = position(),
|
|
22622
|
-
if (!
|
|
22623
|
-
let supports = $d708735ed1303b43$var$trim(
|
|
22621
|
+
let pos = position(), m3 = match(/^@supports *([^{]+)/);
|
|
22622
|
+
if (!m3) return;
|
|
22623
|
+
let supports = $d708735ed1303b43$var$trim(m3[1]);
|
|
22624
22624
|
if (!open()) return error("@supports missing '{'");
|
|
22625
22625
|
let style = comments().concat(rules());
|
|
22626
22626
|
return close() ? pos({
|
|
@@ -22640,9 +22640,9 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22640
22640
|
}) : error("@host missing '}'");
|
|
22641
22641
|
}
|
|
22642
22642
|
function atcontainer() {
|
|
22643
|
-
let pos = position(),
|
|
22644
|
-
if (!
|
|
22645
|
-
let container = $d708735ed1303b43$var$trim(
|
|
22643
|
+
let pos = position(), m3 = match(/^@container *([^{]+)/);
|
|
22644
|
+
if (!m3) return;
|
|
22645
|
+
let container = $d708735ed1303b43$var$trim(m3[1]);
|
|
22646
22646
|
if (!open()) return error("@container missing '{'");
|
|
22647
22647
|
let style = comments().concat(rules());
|
|
22648
22648
|
return close() ? pos({
|
|
@@ -22652,9 +22652,9 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22652
22652
|
}) : error("@container missing '}'");
|
|
22653
22653
|
}
|
|
22654
22654
|
function atlayer() {
|
|
22655
|
-
let pos = position(),
|
|
22656
|
-
if (!
|
|
22657
|
-
let layer = $d708735ed1303b43$var$trim(
|
|
22655
|
+
let pos = position(), m3 = match(/^@layer *([^{;@]+)/);
|
|
22656
|
+
if (!m3) return;
|
|
22657
|
+
let layer = $d708735ed1303b43$var$trim(m3[1]);
|
|
22658
22658
|
if (!open())
|
|
22659
22659
|
return match(/^[;\s]*/), pos({
|
|
22660
22660
|
type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,
|
|
@@ -22668,9 +22668,9 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22668
22668
|
}) : error("@layer missing '}'");
|
|
22669
22669
|
}
|
|
22670
22670
|
function atmedia() {
|
|
22671
|
-
let pos = position(),
|
|
22672
|
-
if (!
|
|
22673
|
-
let media = $d708735ed1303b43$var$trim(
|
|
22671
|
+
let pos = position(), m3 = match(/^@media *([^{]+)/);
|
|
22672
|
+
if (!m3) return;
|
|
22673
|
+
let media = $d708735ed1303b43$var$trim(m3[1]);
|
|
22674
22674
|
if (!open()) return error("@media missing '{'");
|
|
22675
22675
|
let style = comments().concat(rules());
|
|
22676
22676
|
return close() ? pos({
|
|
@@ -22680,12 +22680,12 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22680
22680
|
}) : error("@media missing '}'");
|
|
22681
22681
|
}
|
|
22682
22682
|
function atcustommedia() {
|
|
22683
|
-
let pos = position(),
|
|
22684
|
-
if (
|
|
22683
|
+
let pos = position(), m3 = match(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);
|
|
22684
|
+
if (m3)
|
|
22685
22685
|
return pos({
|
|
22686
22686
|
type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.customMedia,
|
|
22687
|
-
name: $d708735ed1303b43$var$trim(
|
|
22688
|
-
media: $d708735ed1303b43$var$trim(
|
|
22687
|
+
name: $d708735ed1303b43$var$trim(m3[1]),
|
|
22688
|
+
media: $d708735ed1303b43$var$trim(m3[2])
|
|
22689
22689
|
});
|
|
22690
22690
|
}
|
|
22691
22691
|
function atpage() {
|
|
@@ -22703,9 +22703,9 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22703
22703
|
}) : error("@page missing '}'");
|
|
22704
22704
|
}
|
|
22705
22705
|
function atdocument() {
|
|
22706
|
-
let pos = position(),
|
|
22707
|
-
if (!
|
|
22708
|
-
let vendor = $d708735ed1303b43$var$trim(
|
|
22706
|
+
let pos = position(), m3 = match(/^@([-\w]+)?document *([^{]+)/);
|
|
22707
|
+
if (!m3) return;
|
|
22708
|
+
let vendor = $d708735ed1303b43$var$trim(m3[1]), doc = $d708735ed1303b43$var$trim(m3[2]);
|
|
22709
22709
|
if (!open()) return error("@document missing '{'");
|
|
22710
22710
|
let style = comments().concat(rules());
|
|
22711
22711
|
return close() ? pos({
|
|
@@ -22741,12 +22741,12 @@ var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$
|
|
|
22741
22741
|
function _compileAtrule(name) {
|
|
22742
22742
|
let re = new RegExp("^@" + name + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);
|
|
22743
22743
|
return function() {
|
|
22744
|
-
let pos = position(),
|
|
22745
|
-
if (!
|
|
22744
|
+
let pos = position(), m3 = match(re);
|
|
22745
|
+
if (!m3) return;
|
|
22746
22746
|
let ret = {
|
|
22747
22747
|
type: name
|
|
22748
22748
|
};
|
|
22749
|
-
return ret[name] =
|
|
22749
|
+
return ret[name] = m3[1].trim(), pos(ret);
|
|
22750
22750
|
};
|
|
22751
22751
|
}
|
|
22752
22752
|
function atrule() {
|
|
@@ -22799,12 +22799,12 @@ function toLength(value) {
|
|
|
22799
22799
|
return Math.min(Math.max(len, 0), maxSafeInteger);
|
|
22800
22800
|
}
|
|
22801
22801
|
function arrayFrom(arrayLike, mapFn) {
|
|
22802
|
-
var
|
|
22802
|
+
var C3 = Array, items = Object(arrayLike);
|
|
22803
22803
|
if (arrayLike == null)
|
|
22804
22804
|
throw new TypeError("Array.from requires an array-like object - not null or undefined");
|
|
22805
22805
|
if (typeof mapFn < "u" && !isCallable(mapFn))
|
|
22806
22806
|
throw new TypeError("Array.from: when provided, the second argument must be a function");
|
|
22807
|
-
for (var len = toLength(items.length), A = isCallable(
|
|
22807
|
+
for (var len = toLength(items.length), A = isCallable(C3) ? Object(new C3(len)) : new Array(len), k = 0, kValue; k < len; )
|
|
22808
22808
|
kValue = items[k], mapFn ? A[k] = mapFn(kValue, k) : A[k] = kValue, k += 1;
|
|
22809
22809
|
return A.length = len, A;
|
|
22810
22810
|
}
|
|
@@ -23126,8 +23126,8 @@ function hasAnyConcreteRoles(node, roles3) {
|
|
|
23126
23126
|
}
|
|
23127
23127
|
|
|
23128
23128
|
// ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
|
|
23129
|
-
function asFlatString(
|
|
23130
|
-
return
|
|
23129
|
+
function asFlatString(s3) {
|
|
23130
|
+
return s3.trim().replace(/\s\s+/g, " ");
|
|
23131
23131
|
}
|
|
23132
23132
|
function isHidden(node, getComputedStyleImplementation) {
|
|
23133
23133
|
if (!isElement(node))
|
|
@@ -23971,7 +23971,7 @@ function getExpectedClassNamesAndOptions(params) {
|
|
|
23971
23971
|
return typeof lastParam == "object" && !(lastParam instanceof RegExp) ? (expectedClassNames = params, options = lastParam) : (expectedClassNames = params.concat(lastParam), options = { exact: !1 }), { expectedClassNames, options };
|
|
23972
23972
|
}
|
|
23973
23973
|
function splitClassNames(str2) {
|
|
23974
|
-
return str2 ? str2.split(/\s+/).filter((
|
|
23974
|
+
return str2 ? str2.split(/\s+/).filter((s3) => s3.length > 0) : [];
|
|
23975
23975
|
}
|
|
23976
23976
|
function isSubset$1(subset, superset) {
|
|
23977
23977
|
return subset.every(
|
|
@@ -24947,6 +24947,91 @@ var jsTokensExports = requireJsTokens(), jsTokens = getDefaultExportFromCjs2(jsT
|
|
|
24947
24947
|
}, keywords = new Set(reservedWords.keyword), reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
24948
24948
|
var SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
|
|
24949
24949
|
|
|
24950
|
+
// ../../node_modules/@vitest/expect/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
24951
|
+
var f2 = {
|
|
24952
|
+
reset: [0, 0],
|
|
24953
|
+
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
24954
|
+
dim: [2, 22, "\x1B[22m\x1B[2m"],
|
|
24955
|
+
italic: [3, 23],
|
|
24956
|
+
underline: [4, 24],
|
|
24957
|
+
inverse: [7, 27],
|
|
24958
|
+
hidden: [8, 28],
|
|
24959
|
+
strikethrough: [9, 29],
|
|
24960
|
+
black: [30, 39],
|
|
24961
|
+
red: [31, 39],
|
|
24962
|
+
green: [32, 39],
|
|
24963
|
+
yellow: [33, 39],
|
|
24964
|
+
blue: [34, 39],
|
|
24965
|
+
magenta: [35, 39],
|
|
24966
|
+
cyan: [36, 39],
|
|
24967
|
+
white: [37, 39],
|
|
24968
|
+
gray: [90, 39],
|
|
24969
|
+
bgBlack: [40, 49],
|
|
24970
|
+
bgRed: [41, 49],
|
|
24971
|
+
bgGreen: [42, 49],
|
|
24972
|
+
bgYellow: [43, 49],
|
|
24973
|
+
bgBlue: [44, 49],
|
|
24974
|
+
bgMagenta: [45, 49],
|
|
24975
|
+
bgCyan: [46, 49],
|
|
24976
|
+
bgWhite: [47, 49],
|
|
24977
|
+
blackBright: [90, 39],
|
|
24978
|
+
redBright: [91, 39],
|
|
24979
|
+
greenBright: [92, 39],
|
|
24980
|
+
yellowBright: [93, 39],
|
|
24981
|
+
blueBright: [94, 39],
|
|
24982
|
+
magentaBright: [95, 39],
|
|
24983
|
+
cyanBright: [96, 39],
|
|
24984
|
+
whiteBright: [97, 39],
|
|
24985
|
+
bgBlackBright: [100, 49],
|
|
24986
|
+
bgRedBright: [101, 49],
|
|
24987
|
+
bgGreenBright: [102, 49],
|
|
24988
|
+
bgYellowBright: [103, 49],
|
|
24989
|
+
bgBlueBright: [104, 49],
|
|
24990
|
+
bgMagentaBright: [105, 49],
|
|
24991
|
+
bgCyanBright: [106, 49],
|
|
24992
|
+
bgWhiteBright: [107, 49]
|
|
24993
|
+
}, h2 = Object.entries(f2);
|
|
24994
|
+
function a2(n) {
|
|
24995
|
+
return String(n);
|
|
24996
|
+
}
|
|
24997
|
+
a2.open = "";
|
|
24998
|
+
a2.close = "";
|
|
24999
|
+
var B2 = h2.reduce(
|
|
25000
|
+
(n, [e]) => (n[e] = a2, n),
|
|
25001
|
+
{ isColorSupported: !1 }
|
|
25002
|
+
);
|
|
25003
|
+
function C2(n = !1) {
|
|
25004
|
+
let e = typeof process < "u" ? process : void 0, i = e?.env || {}, g2 = e?.argv || [];
|
|
25005
|
+
return !("NO_COLOR" in i || g2.includes("--no-color")) && ("FORCE_COLOR" in i || g2.includes("--color") || e?.platform === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window < "u" && !!window.chrome;
|
|
25006
|
+
}
|
|
25007
|
+
function p2(n = !1) {
|
|
25008
|
+
let e = C2(n), i = (r, t, c, o) => {
|
|
25009
|
+
let l = "", s3 = 0;
|
|
25010
|
+
do
|
|
25011
|
+
l += r.substring(s3, o) + c, s3 = o + t.length, o = r.indexOf(t, s3);
|
|
25012
|
+
while (~o);
|
|
25013
|
+
return l + r.substring(s3);
|
|
25014
|
+
}, g2 = (r, t, c = r) => {
|
|
25015
|
+
let o = (l) => {
|
|
25016
|
+
let s3 = String(l), b = s3.indexOf(t, r.length);
|
|
25017
|
+
return ~b ? r + i(s3, t, c, b) + t : r + s3 + t;
|
|
25018
|
+
};
|
|
25019
|
+
return o.open = r, o.close = t, o;
|
|
25020
|
+
}, u2 = {
|
|
25021
|
+
isColorSupported: e
|
|
25022
|
+
}, d = (r) => `\x1B[${r}m`;
|
|
25023
|
+
for (let [r, t] of h2)
|
|
25024
|
+
u2[r] = e ? g2(
|
|
25025
|
+
d(t[0]),
|
|
25026
|
+
d(t[1]),
|
|
25027
|
+
t[2]
|
|
25028
|
+
) : a2;
|
|
25029
|
+
return u2;
|
|
25030
|
+
}
|
|
25031
|
+
|
|
25032
|
+
// ../../node_modules/@vitest/expect/node_modules/tinyrainbow/dist/browser.js
|
|
25033
|
+
var s2 = p2();
|
|
25034
|
+
|
|
24950
25035
|
// ../../node_modules/@vitest/spy/node_modules/tinyspy/dist/index.js
|
|
24951
25036
|
function assert2(condition, message) {
|
|
24952
25037
|
if (!condition)
|
|
@@ -25232,7 +25317,7 @@ Received:
|
|
|
25232
25317
|
${printReceived3(actual)}`
|
|
25233
25318
|
};
|
|
25234
25319
|
}
|
|
25235
|
-
}, EXPECTED_COLOR =
|
|
25320
|
+
}, EXPECTED_COLOR = s2.green, RECEIVED_COLOR = s2.red, INVERTED_COLOR = s2.inverse, BOLD_WEIGHT = s2.bold, DIM_COLOR = s2.dim;
|
|
25236
25321
|
function matcherHint(matcherName, received = "received", expected = "expected", options = {}) {
|
|
25237
25322
|
let { comment = "", isDirectExpectCall = !1, isNot = !1, promise = "", secondArgument = "", expectedColor = EXPECTED_COLOR, receivedColor = RECEIVED_COLOR, secondArgumentColor = EXPECTED_COLOR } = options, hint = "", dimString = "expect";
|
|
25238
25323
|
return !isDirectExpectCall && received !== "" && (hint += DIM_COLOR(`${dimString}(`) + receivedColor(received), dimString = ")"), promise !== "" && (hint += DIM_COLOR(`${dimString}.`) + promise, dimString = ""), isNot && (hint += `${DIM_COLOR(`${dimString}.`)}not`, dimString = ""), matcherName.includes(".") ? dimString += matcherName : (hint += DIM_COLOR(`${dimString}.`) + matcherName, dimString = ""), expected === "" ? dimString += "()" : (hint += DIM_COLOR(`${dimString}(`) + expectedColor(expected), secondArgument && (hint += DIM_COLOR(", ") + secondArgumentColor(secondArgument)), dimString = ")"), comment !== "" && (dimString += ` // ${comment}`), dimString !== "" && (hint += DIM_COLOR(dimString)), hint;
|
|
@@ -25270,52 +25355,52 @@ function printWithType(name, value, print) {
|
|
|
25270
25355
|
function getCustomEqualityTesters() {
|
|
25271
25356
|
return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;
|
|
25272
25357
|
}
|
|
25273
|
-
function equals(
|
|
25274
|
-
return customTesters = customTesters || [], eq2(
|
|
25358
|
+
function equals(a3, b, customTesters, strictCheck) {
|
|
25359
|
+
return customTesters = customTesters || [], eq2(a3, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
|
|
25275
25360
|
}
|
|
25276
25361
|
var functionToString = Function.prototype.toString;
|
|
25277
25362
|
function isAsymmetric(obj) {
|
|
25278
25363
|
return !!obj && typeof obj == "object" && "asymmetricMatch" in obj && isA("Function", obj.asymmetricMatch);
|
|
25279
25364
|
}
|
|
25280
|
-
function asymmetricMatch(
|
|
25281
|
-
let asymmetricA = isAsymmetric(
|
|
25365
|
+
function asymmetricMatch(a3, b) {
|
|
25366
|
+
let asymmetricA = isAsymmetric(a3), asymmetricB = isAsymmetric(b);
|
|
25282
25367
|
if (!(asymmetricA && asymmetricB)) {
|
|
25283
25368
|
if (asymmetricA)
|
|
25284
|
-
return
|
|
25369
|
+
return a3.asymmetricMatch(b);
|
|
25285
25370
|
if (asymmetricB)
|
|
25286
|
-
return b.asymmetricMatch(
|
|
25371
|
+
return b.asymmetricMatch(a3);
|
|
25287
25372
|
}
|
|
25288
25373
|
}
|
|
25289
|
-
function eq2(
|
|
25290
|
-
let result = !0, asymmetricResult = asymmetricMatch(
|
|
25374
|
+
function eq2(a3, b, aStack, bStack, customTesters, hasKey2) {
|
|
25375
|
+
let result = !0, asymmetricResult = asymmetricMatch(a3, b);
|
|
25291
25376
|
if (asymmetricResult !== void 0)
|
|
25292
25377
|
return asymmetricResult;
|
|
25293
25378
|
let testerContext = { equals };
|
|
25294
25379
|
for (let i = 0; i < customTesters.length; i++) {
|
|
25295
|
-
let customTesterResult = customTesters[i].call(testerContext,
|
|
25380
|
+
let customTesterResult = customTesters[i].call(testerContext, a3, b, customTesters);
|
|
25296
25381
|
if (customTesterResult !== void 0)
|
|
25297
25382
|
return customTesterResult;
|
|
25298
25383
|
}
|
|
25299
|
-
if (typeof URL == "function" &&
|
|
25300
|
-
return
|
|
25301
|
-
if (Object.is(
|
|
25384
|
+
if (typeof URL == "function" && a3 instanceof URL && b instanceof URL)
|
|
25385
|
+
return a3.href === b.href;
|
|
25386
|
+
if (Object.is(a3, b))
|
|
25302
25387
|
return !0;
|
|
25303
|
-
if (
|
|
25304
|
-
return
|
|
25305
|
-
let className = Object.prototype.toString.call(
|
|
25388
|
+
if (a3 === null || b === null)
|
|
25389
|
+
return a3 === b;
|
|
25390
|
+
let className = Object.prototype.toString.call(a3);
|
|
25306
25391
|
if (className !== Object.prototype.toString.call(b))
|
|
25307
25392
|
return !1;
|
|
25308
25393
|
switch (className) {
|
|
25309
25394
|
case "[object Boolean]":
|
|
25310
25395
|
case "[object String]":
|
|
25311
25396
|
case "[object Number]":
|
|
25312
|
-
return typeof
|
|
25397
|
+
return typeof a3 != typeof b ? !1 : typeof a3 != "object" && typeof b != "object" ? Object.is(a3, b) : Object.is(a3.valueOf(), b.valueOf());
|
|
25313
25398
|
case "[object Date]": {
|
|
25314
|
-
let numA = +
|
|
25399
|
+
let numA = +a3, numB = +b;
|
|
25315
25400
|
return numA === numB || Number.isNaN(numA) && Number.isNaN(numB);
|
|
25316
25401
|
}
|
|
25317
25402
|
case "[object RegExp]":
|
|
25318
|
-
return
|
|
25403
|
+
return a3.source === b.source && a3.flags === b.flags;
|
|
25319
25404
|
case "[object Temporal.Instant]":
|
|
25320
25405
|
case "[object Temporal.ZonedDateTime]":
|
|
25321
25406
|
case "[object Temporal.PlainDateTime]":
|
|
@@ -25323,40 +25408,40 @@ function eq2(a2, b, aStack, bStack, customTesters, hasKey2) {
|
|
|
25323
25408
|
case "[object Temporal.PlainTime]":
|
|
25324
25409
|
case "[object Temporal.PlainYearMonth]":
|
|
25325
25410
|
case "[object Temporal.PlainMonthDay]":
|
|
25326
|
-
return
|
|
25411
|
+
return a3.equals(b);
|
|
25327
25412
|
case "[object Temporal.Duration]":
|
|
25328
|
-
return
|
|
25413
|
+
return a3.toString() === b.toString();
|
|
25329
25414
|
}
|
|
25330
|
-
if (typeof
|
|
25415
|
+
if (typeof a3 != "object" || typeof b != "object")
|
|
25331
25416
|
return !1;
|
|
25332
|
-
if (isDomNode(
|
|
25333
|
-
return
|
|
25417
|
+
if (isDomNode(a3) && isDomNode(b))
|
|
25418
|
+
return a3.isEqualNode(b);
|
|
25334
25419
|
let length = aStack.length;
|
|
25335
25420
|
for (; length--; ) {
|
|
25336
|
-
if (aStack[length] ===
|
|
25421
|
+
if (aStack[length] === a3)
|
|
25337
25422
|
return bStack[length] === b;
|
|
25338
25423
|
if (bStack[length] === b)
|
|
25339
25424
|
return !1;
|
|
25340
25425
|
}
|
|
25341
|
-
if (aStack.push(
|
|
25426
|
+
if (aStack.push(a3), bStack.push(b), className === "[object Array]" && a3.length !== b.length)
|
|
25342
25427
|
return !1;
|
|
25343
|
-
if (
|
|
25428
|
+
if (a3 instanceof Error && b instanceof Error)
|
|
25344
25429
|
try {
|
|
25345
|
-
return isErrorEqual(
|
|
25430
|
+
return isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2);
|
|
25346
25431
|
} finally {
|
|
25347
25432
|
aStack.pop(), bStack.pop();
|
|
25348
25433
|
}
|
|
25349
|
-
let aKeys = keys(
|
|
25434
|
+
let aKeys = keys(a3, hasKey2), key, size2 = aKeys.length;
|
|
25350
25435
|
if (keys(b, hasKey2).length !== size2)
|
|
25351
25436
|
return !1;
|
|
25352
25437
|
for (; size2--; )
|
|
25353
|
-
if (key = aKeys[size2], result = hasKey2(b, key) && eq2(
|
|
25438
|
+
if (key = aKeys[size2], result = hasKey2(b, key) && eq2(a3[key], b[key], aStack, bStack, customTesters, hasKey2), !result)
|
|
25354
25439
|
return !1;
|
|
25355
25440
|
return aStack.pop(), bStack.pop(), result;
|
|
25356
25441
|
}
|
|
25357
|
-
function isErrorEqual(
|
|
25358
|
-
let result = Object.getPrototypeOf(
|
|
25359
|
-
return typeof b.cause < "u" && result && (result = eq2(
|
|
25442
|
+
function isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2) {
|
|
25443
|
+
let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(b) && a3.name === b.name && a3.message === b.message;
|
|
25444
|
+
return typeof b.cause < "u" && result && (result = eq2(a3.cause, b.cause, aStack, bStack, customTesters, hasKey2)), a3 instanceof AggregateError && b instanceof AggregateError && result && (result = eq2(a3.errors, b.errors, aStack, bStack, customTesters, hasKey2)), result && (result = eq2({ ...a3 }, { ...b }, aStack, bStack, customTesters, hasKey2)), result;
|
|
25360
25445
|
}
|
|
25361
25446
|
function keys(obj, hasKey2) {
|
|
25362
25447
|
let keys3 = [];
|
|
@@ -25402,26 +25487,26 @@ var IteratorSymbol = Symbol.iterator;
|
|
|
25402
25487
|
function hasIterator(object) {
|
|
25403
25488
|
return !!(object != null && object[IteratorSymbol]);
|
|
25404
25489
|
}
|
|
25405
|
-
function iterableEquality(
|
|
25406
|
-
if (typeof
|
|
25490
|
+
function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
|
|
25491
|
+
if (typeof a3 != "object" || typeof b != "object" || Array.isArray(a3) || Array.isArray(b) || !hasIterator(a3) || !hasIterator(b))
|
|
25407
25492
|
return;
|
|
25408
|
-
if (
|
|
25493
|
+
if (a3.constructor !== b.constructor)
|
|
25409
25494
|
return !1;
|
|
25410
25495
|
let length = aStack.length;
|
|
25411
25496
|
for (; length--; )
|
|
25412
|
-
if (aStack[length] ===
|
|
25497
|
+
if (aStack[length] === a3)
|
|
25413
25498
|
return bStack[length] === b;
|
|
25414
|
-
aStack.push(
|
|
25499
|
+
aStack.push(a3), bStack.push(b);
|
|
25415
25500
|
let filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack];
|
|
25416
|
-
function iterableEqualityWithStack(
|
|
25417
|
-
return iterableEquality(
|
|
25501
|
+
function iterableEqualityWithStack(a4, b2) {
|
|
25502
|
+
return iterableEquality(a4, b2, [...customTesters], [...aStack], [...bStack]);
|
|
25418
25503
|
}
|
|
25419
|
-
if (
|
|
25420
|
-
if (
|
|
25504
|
+
if (a3.size !== void 0) {
|
|
25505
|
+
if (a3.size !== b.size)
|
|
25421
25506
|
return !1;
|
|
25422
|
-
if (isA("Set",
|
|
25507
|
+
if (isA("Set", a3) || isImmutableUnorderedSet(a3)) {
|
|
25423
25508
|
let allFound = !0;
|
|
25424
|
-
for (let aValue of
|
|
25509
|
+
for (let aValue of a3)
|
|
25425
25510
|
if (!b.has(aValue)) {
|
|
25426
25511
|
let has2 = !1;
|
|
25427
25512
|
for (let bValue of b)
|
|
@@ -25432,9 +25517,9 @@ function iterableEquality(a2, b, customTesters = [], aStack = [], bStack = []) {
|
|
|
25432
25517
|
}
|
|
25433
25518
|
}
|
|
25434
25519
|
return aStack.pop(), bStack.pop(), allFound;
|
|
25435
|
-
} else if (isA("Map",
|
|
25520
|
+
} else if (isA("Map", a3) || isImmutableUnorderedKeyed(a3)) {
|
|
25436
25521
|
let allFound = !0;
|
|
25437
|
-
for (let aEntry of
|
|
25522
|
+
for (let aEntry of a3)
|
|
25438
25523
|
if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) {
|
|
25439
25524
|
let has2 = !1;
|
|
25440
25525
|
for (let bEntry of b) {
|
|
@@ -25450,15 +25535,15 @@ function iterableEquality(a2, b, customTesters = [], aStack = [], bStack = []) {
|
|
|
25450
25535
|
}
|
|
25451
25536
|
}
|
|
25452
25537
|
let bIterator = b[IteratorSymbol]();
|
|
25453
|
-
for (let aValue of
|
|
25538
|
+
for (let aValue of a3) {
|
|
25454
25539
|
let nextB = bIterator.next();
|
|
25455
25540
|
if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters))
|
|
25456
25541
|
return !1;
|
|
25457
25542
|
}
|
|
25458
25543
|
if (!bIterator.next().done)
|
|
25459
25544
|
return !1;
|
|
25460
|
-
if (!isImmutableList(
|
|
25461
|
-
let aEntries = Object.entries(
|
|
25545
|
+
if (!isImmutableList(a3) && !isImmutableOrderedKeyed(a3) && !isImmutableOrderedSet(a3) && !isImmutableRecord(a3)) {
|
|
25546
|
+
let aEntries = Object.entries(a3), bEntries = Object.entries(b);
|
|
25462
25547
|
if (!equals(aEntries, bEntries, filteredCustomTesters))
|
|
25463
25548
|
return !1;
|
|
25464
25549
|
}
|
|
@@ -25467,8 +25552,8 @@ function iterableEquality(a2, b, customTesters = [], aStack = [], bStack = []) {
|
|
|
25467
25552
|
function hasPropertyInObject(object, key) {
|
|
25468
25553
|
return !object || typeof object != "object" || object === Object.prototype ? !1 : Object.prototype.hasOwnProperty.call(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key);
|
|
25469
25554
|
}
|
|
25470
|
-
function isObjectWithKeys(
|
|
25471
|
-
return isObject4(
|
|
25555
|
+
function isObjectWithKeys(a3) {
|
|
25556
|
+
return isObject4(a3) && !(a3 instanceof Error) && !Array.isArray(a3) && !(a3 instanceof Date);
|
|
25472
25557
|
}
|
|
25473
25558
|
function subsetEquality(object, subset, customTesters = []) {
|
|
25474
25559
|
let filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality), subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => {
|
|
@@ -25485,17 +25570,17 @@ function subsetEquality(object, subset, customTesters = []) {
|
|
|
25485
25570
|
};
|
|
25486
25571
|
return subsetEqualityWithContext()(object, subset);
|
|
25487
25572
|
}
|
|
25488
|
-
function typeEquality(
|
|
25489
|
-
if (!(
|
|
25573
|
+
function typeEquality(a3, b) {
|
|
25574
|
+
if (!(a3 == null || b == null || a3.constructor === b.constructor))
|
|
25490
25575
|
return !1;
|
|
25491
25576
|
}
|
|
25492
|
-
function arrayBufferEquality(
|
|
25493
|
-
let dataViewA =
|
|
25494
|
-
if (!(
|
|
25495
|
-
if (!(
|
|
25577
|
+
function arrayBufferEquality(a3, b) {
|
|
25578
|
+
let dataViewA = a3, dataViewB = b;
|
|
25579
|
+
if (!(a3 instanceof DataView && b instanceof DataView)) {
|
|
25580
|
+
if (!(a3 instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))
|
|
25496
25581
|
return;
|
|
25497
25582
|
try {
|
|
25498
|
-
dataViewA = new DataView(
|
|
25583
|
+
dataViewA = new DataView(a3), dataViewB = new DataView(b);
|
|
25499
25584
|
} catch {
|
|
25500
25585
|
return;
|
|
25501
25586
|
}
|
|
@@ -25507,11 +25592,11 @@ function arrayBufferEquality(a2, b) {
|
|
|
25507
25592
|
return !1;
|
|
25508
25593
|
return !0;
|
|
25509
25594
|
}
|
|
25510
|
-
function sparseArrayEquality(
|
|
25511
|
-
if (!Array.isArray(
|
|
25595
|
+
function sparseArrayEquality(a3, b, customTesters = []) {
|
|
25596
|
+
if (!Array.isArray(a3) || !Array.isArray(b))
|
|
25512
25597
|
return;
|
|
25513
|
-
let aKeys = Object.keys(
|
|
25514
|
-
return equals(
|
|
25598
|
+
let aKeys = Object.keys(a3), bKeys = Object.keys(b), filteredCustomTesters = customTesters.filter((t) => t !== sparseArrayEquality);
|
|
25599
|
+
return equals(a3, b, filteredCustomTesters, !0) && equals(aKeys, bKeys);
|
|
25515
25600
|
}
|
|
25516
25601
|
function generateToBeMessage(deepEqualityName, expected = "#{this}", actual = "#{exp}") {
|
|
25517
25602
|
let toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;
|
|
@@ -25527,9 +25612,9 @@ function pluralize(word, count2) {
|
|
|
25527
25612
|
return `${count2} ${word}${count2 === 1 ? "" : "s"}`;
|
|
25528
25613
|
}
|
|
25529
25614
|
function getObjectKeys(object) {
|
|
25530
|
-
return [...Object.keys(object), ...Object.getOwnPropertySymbols(object).filter((
|
|
25615
|
+
return [...Object.keys(object), ...Object.getOwnPropertySymbols(object).filter((s3) => {
|
|
25531
25616
|
var _Object$getOwnPropert;
|
|
25532
|
-
return (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(object,
|
|
25617
|
+
return (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(object, s3)) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.enumerable;
|
|
25533
25618
|
})];
|
|
25534
25619
|
}
|
|
25535
25620
|
function getObjectSubset(object, subset, customTesters) {
|
|
@@ -25783,7 +25868,7 @@ function recordAsyncExpect(_test, promise, assertion, error) {
|
|
|
25783
25868
|
return test3.onFinished ?? (test3.onFinished = []), test3.onFinished.push(() => {
|
|
25784
25869
|
if (!resolved) {
|
|
25785
25870
|
var _vitest_worker__;
|
|
25786
|
-
let stack = (((_vitest_worker__ = globalThis.__vitest_worker__) === null || _vitest_worker__ === void 0 ? void 0 : _vitest_worker__.onFilterStackTrace) || ((
|
|
25871
|
+
let stack = (((_vitest_worker__ = globalThis.__vitest_worker__) === null || _vitest_worker__ === void 0 ? void 0 : _vitest_worker__.onFilterStackTrace) || ((s3) => s3 || ""))(error.stack);
|
|
25787
25872
|
console.warn([
|
|
25788
25873
|
`Promise returned by \`${assertion}\` was not awaited. `,
|
|
25789
25874
|
"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",
|
|
@@ -25841,8 +25926,8 @@ var JestChaiExpect = (chai, utils) => {
|
|
|
25841
25926
|
"throw",
|
|
25842
25927
|
"throws",
|
|
25843
25928
|
"Throw"
|
|
25844
|
-
].forEach((
|
|
25845
|
-
utils.overwriteMethod(chai.Assertion.prototype,
|
|
25929
|
+
].forEach((m3) => {
|
|
25930
|
+
utils.overwriteMethod(chai.Assertion.prototype, m3, (_super) => function(...args) {
|
|
25846
25931
|
let promise = utils.flag(this, "promise"), object = utils.flag(this, "object"), isNot = utils.flag(this, "negate");
|
|
25847
25932
|
if (promise === "rejects")
|
|
25848
25933
|
utils.flag(this, "object", () => {
|
|
@@ -25996,8 +26081,8 @@ var JestChaiExpect = (chai, utils) => {
|
|
|
25996
26081
|
if (called && isNot && (msg = formatCalls(spy, msg)), called && isNot || !called && !isNot)
|
|
25997
26082
|
throw new AssertionError2(msg);
|
|
25998
26083
|
});
|
|
25999
|
-
function equalsArgumentArray(
|
|
26000
|
-
return
|
|
26084
|
+
function equalsArgumentArray(a3, b) {
|
|
26085
|
+
return a3.length === b.length && a3.every((aItem, i) => equals(aItem, b[i], [...customTesters, iterableEquality]));
|
|
26001
26086
|
}
|
|
26002
26087
|
def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) {
|
|
26003
26088
|
let spy = getSpy(this), spyName = spy.getMockName(), pass = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args)), isNot = utils.flag(this, "negate"), msg = utils.getMessage(this, [
|
|
@@ -26091,11 +26176,11 @@ var JestChaiExpect = (chai, utils) => {
|
|
|
26091
26176
|
});
|
|
26092
26177
|
}), [{
|
|
26093
26178
|
name: "toHaveResolvedTimes",
|
|
26094
|
-
condition: (spy, times2) => spy.mock.settledResults.reduce((
|
|
26179
|
+
condition: (spy, times2) => spy.mock.settledResults.reduce((s3, { type: type5 }) => type5 === "fulfilled" ? ++s3 : s3, 0) === times2,
|
|
26095
26180
|
action: "resolved"
|
|
26096
26181
|
}, {
|
|
26097
26182
|
name: ["toHaveReturnedTimes", "toReturnTimes"],
|
|
26098
|
-
condition: (spy, times2) => spy.mock.results.reduce((
|
|
26183
|
+
condition: (spy, times2) => spy.mock.results.reduce((s3, { type: type5 }) => type5 === "throw" ? s3 : ++s3, 0) === times2,
|
|
26099
26184
|
action: "called"
|
|
26100
26185
|
}].forEach(({ name, condition, action: action2 }) => {
|
|
26101
26186
|
def(name, function(times2) {
|
|
@@ -26216,12 +26301,12 @@ function ordinalOf(i) {
|
|
|
26216
26301
|
return j === 1 && k !== 11 ? `${i}st` : j === 2 && k !== 12 ? `${i}nd` : j === 3 && k !== 13 ? `${i}rd` : `${i}th`;
|
|
26217
26302
|
}
|
|
26218
26303
|
function formatCalls(spy, msg, showActualCall) {
|
|
26219
|
-
return spy.mock.calls.length && (msg +=
|
|
26304
|
+
return spy.mock.calls.length && (msg += s2.gray(`
|
|
26220
26305
|
|
|
26221
26306
|
Received:
|
|
26222
26307
|
|
|
26223
26308
|
${spy.mock.calls.map((callArg, i) => {
|
|
26224
|
-
let methodCall =
|
|
26309
|
+
let methodCall = s2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:
|
|
26225
26310
|
|
|
26226
26311
|
`);
|
|
26227
26312
|
return showActualCall ? methodCall += diff(showActualCall, callArg, { omitAnnotationLines: !0 }) : methodCall += stringify2(callArg).split(`
|
|
@@ -26229,18 +26314,18 @@ ${spy.mock.calls.map((callArg, i) => {
|
|
|
26229
26314
|
`), methodCall += `
|
|
26230
26315
|
`, methodCall;
|
|
26231
26316
|
}).join(`
|
|
26232
|
-
`)}`)), msg +=
|
|
26317
|
+
`)}`)), msg += s2.gray(`
|
|
26233
26318
|
|
|
26234
|
-
Number of calls: ${
|
|
26319
|
+
Number of calls: ${s2.bold(spy.mock.calls.length)}
|
|
26235
26320
|
`), msg;
|
|
26236
26321
|
}
|
|
26237
26322
|
function formatReturns(spy, results, msg, showActualReturn) {
|
|
26238
|
-
return results.length && (msg +=
|
|
26323
|
+
return results.length && (msg += s2.gray(`
|
|
26239
26324
|
|
|
26240
26325
|
Received:
|
|
26241
26326
|
|
|
26242
26327
|
${results.map((callReturn, i) => {
|
|
26243
|
-
let methodCall =
|
|
26328
|
+
let methodCall = s2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:
|
|
26244
26329
|
|
|
26245
26330
|
`);
|
|
26246
26331
|
return showActualReturn ? methodCall += diff(showActualReturn, callReturn.value, { omitAnnotationLines: !0 }) : methodCall += stringify2(callReturn).split(`
|
|
@@ -26248,9 +26333,9 @@ ${results.map((callReturn, i) => {
|
|
|
26248
26333
|
`), methodCall += `
|
|
26249
26334
|
`, methodCall;
|
|
26250
26335
|
}).join(`
|
|
26251
|
-
`)}`)), msg +=
|
|
26336
|
+
`)}`)), msg += s2.gray(`
|
|
26252
26337
|
|
|
26253
|
-
Number of calls: ${
|
|
26338
|
+
Number of calls: ${s2.bold(spy.mock.calls.length)}
|
|
26254
26339
|
`), msg;
|
|
26255
26340
|
}
|
|
26256
26341
|
function getMatcherState(assertion, expect4) {
|
|
@@ -26393,13 +26478,13 @@ Object.defineProperty(globalThis, GLOBAL_EXPECT, {
|
|
|
26393
26478
|
});
|
|
26394
26479
|
|
|
26395
26480
|
// ../../node_modules/tinyspy/dist/index.js
|
|
26396
|
-
function
|
|
26481
|
+
function f3(e, t, n) {
|
|
26397
26482
|
Object.defineProperty(e, t, n);
|
|
26398
26483
|
}
|
|
26399
26484
|
var u = Symbol.for("tinyspy:spy");
|
|
26400
26485
|
var P = (e) => {
|
|
26401
26486
|
e.called = !1, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = [];
|
|
26402
|
-
}, K = (e) => (
|
|
26487
|
+
}, K = (e) => (f3(e, u, { value: { reset: () => P(e[u]) } }), e[u]), T = (e) => e[u] || K(e);
|
|
26403
26488
|
|
|
26404
26489
|
// src/test/spy.ts
|
|
26405
26490
|
var listeners = /* @__PURE__ */ new Set();
|
|
@@ -26536,12 +26621,12 @@ function toLength2(value) {
|
|
|
26536
26621
|
return Math.min(Math.max(len, 0), maxSafeInteger2);
|
|
26537
26622
|
}
|
|
26538
26623
|
function arrayFrom2(arrayLike, mapFn) {
|
|
26539
|
-
var
|
|
26624
|
+
var C3 = Array, items = Object(arrayLike);
|
|
26540
26625
|
if (arrayLike == null)
|
|
26541
26626
|
throw new TypeError("Array.from requires an array-like object - not null or undefined");
|
|
26542
26627
|
if (typeof mapFn < "u" && !isCallable2(mapFn))
|
|
26543
26628
|
throw new TypeError("Array.from: when provided, the second argument must be a function");
|
|
26544
|
-
for (var len = toLength2(items.length), A = isCallable2(
|
|
26629
|
+
for (var len = toLength2(items.length), A = isCallable2(C3) ? Object(new C3(len)) : new Array(len), k = 0, kValue; k < len; )
|
|
26545
26630
|
kValue = items[k], mapFn ? A[k] = mapFn(kValue, k) : A[k] = kValue, k += 1;
|
|
26546
26631
|
return A.length = len, A;
|
|
26547
26632
|
}
|
|
@@ -26860,8 +26945,8 @@ function hasAnyConcreteRoles2(node, roles3) {
|
|
|
26860
26945
|
}
|
|
26861
26946
|
|
|
26862
26947
|
// ../../node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
|
|
26863
|
-
function asFlatString2(
|
|
26864
|
-
return
|
|
26948
|
+
function asFlatString2(s3) {
|
|
26949
|
+
return s3.trim().replace(/\s\s+/g, " ");
|
|
26865
26950
|
}
|
|
26866
26951
|
function isHidden2(node, getComputedStyleImplementation) {
|
|
26867
26952
|
if (!isElement2(node))
|
|
@@ -30000,8 +30085,8 @@ function isVisible(element) {
|
|
|
30000
30085
|
// ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/getTabDestination.js
|
|
30001
30086
|
function getTabDestination(activeElement, shift) {
|
|
30002
30087
|
let document7 = activeElement.ownerDocument, focusableElements = document7.querySelectorAll(FOCUSABLE_SELECTOR), enabledElements = Array.from(focusableElements).filter((el) => el === activeElement || !(Number(el.getAttribute("tabindex")) < 0 || isDisabled2(el)));
|
|
30003
|
-
Number(activeElement.getAttribute("tabindex")) >= 0 && enabledElements.sort((
|
|
30004
|
-
let i = Number(
|
|
30088
|
+
Number(activeElement.getAttribute("tabindex")) >= 0 && enabledElements.sort((a3, b) => {
|
|
30089
|
+
let i = Number(a3.getAttribute("tabindex")), j = Number(b.getAttribute("tabindex"));
|
|
30005
30090
|
return i === j ? 0 : i === 0 ? 1 : j === 0 ? -1 : i - j;
|
|
30006
30091
|
});
|
|
30007
30092
|
let checkedRadio = {}, prunedElements = [
|
|
@@ -30570,7 +30655,7 @@ var eventInitializer = {
|
|
|
30570
30655
|
};
|
|
30571
30656
|
function createEvent2(type5, target, init2) {
|
|
30572
30657
|
let window2 = getWindow(target), { EventType, defaultInit } = eventMap2[type5], event = new (getEventConstructors(window2))[EventType](type5, defaultInit);
|
|
30573
|
-
return eventInitializer[EventType].forEach((
|
|
30658
|
+
return eventInitializer[EventType].forEach((f4) => f4(event, init2 ?? {})), event;
|
|
30574
30659
|
}
|
|
30575
30660
|
function getEventConstructors(window2) {
|
|
30576
30661
|
var _window_Event;
|
|
@@ -30992,7 +31077,7 @@ var KeyboardHost = class {
|
|
|
30992
31077
|
return this.pressed.has(String(keyDef.code));
|
|
30993
31078
|
}
|
|
30994
31079
|
getPressedKeys() {
|
|
30995
|
-
return this.pressed.values().map((
|
|
31080
|
+
return this.pressed.values().map((p3) => p3.keyDef);
|
|
30996
31081
|
}
|
|
30997
31082
|
/** Press a key */
|
|
30998
31083
|
async keydown(instance, keyDef) {
|
|
@@ -31011,7 +31096,7 @@ var KeyboardHost = class {
|
|
|
31011
31096
|
/** Release a key */
|
|
31012
31097
|
async keyup(instance, keyDef) {
|
|
31013
31098
|
let key = String(keyDef.key), code = String(keyDef.code), unprevented = this.pressed.isUnprevented(code);
|
|
31014
|
-
this.pressed.delete(code), isModifierKey(key) && !this.pressed.values().find((
|
|
31099
|
+
this.pressed.delete(code), isModifierKey(key) && !this.pressed.values().find((p3) => p3.keyDef.key === key) && (this.modifiers[key] = !1), instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document), "keyup", {
|
|
31015
31100
|
key,
|
|
31016
31101
|
code
|
|
31017
31102
|
}, !unprevented), isModifierLock(key) && this.modifiers[key] && (this.modifierLockStart[key] ? this.modifierLockStart[key] = !1 : this.modifiers[key] = !1);
|
|
@@ -31353,9 +31438,9 @@ var Device = class {
|
|
|
31353
31438
|
};
|
|
31354
31439
|
|
|
31355
31440
|
// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getTreeDiff.js
|
|
31356
|
-
function getTreeDiff(
|
|
31441
|
+
function getTreeDiff(a3, b) {
|
|
31357
31442
|
let treeA = [];
|
|
31358
|
-
for (let el =
|
|
31443
|
+
for (let el = a3; el; el = el.parentElement)
|
|
31359
31444
|
treeA.push(el);
|
|
31360
31445
|
let treeB = [];
|
|
31361
31446
|
for (let el = b; el; el = el.parentElement)
|
|
@@ -31826,9 +31911,9 @@ var PointerHost = class {
|
|
|
31826
31911
|
}
|
|
31827
31912
|
}()), _define_property8(this, "pointers", new class {
|
|
31828
31913
|
new(pointerName, pointerType, buttons) {
|
|
31829
|
-
let isPrimary = pointerType !== "touch" || !Object.values(this.registry).some((
|
|
31830
|
-
return isPrimary || Object.values(this.registry).forEach((
|
|
31831
|
-
|
|
31914
|
+
let isPrimary = pointerType !== "touch" || !Object.values(this.registry).some((p3) => p3.pointerType === "touch" && !p3.isCancelled);
|
|
31915
|
+
return isPrimary || Object.values(this.registry).forEach((p3) => {
|
|
31916
|
+
p3.pointerType === pointerType && !p3.isCancelled && (p3.isMultitouch = !0);
|
|
31832
31917
|
}), this.registry[pointerName] = new Pointer({
|
|
31833
31918
|
pointerId: this.nextId++,
|
|
31834
31919
|
pointerType,
|
|
@@ -32110,7 +32195,7 @@ function getClipboardDataFromString(doc, text) {
|
|
|
32110
32195
|
function parseKeyDef2(pointerMap, keys3) {
|
|
32111
32196
|
let defs = [];
|
|
32112
32197
|
do {
|
|
32113
|
-
let { descriptor, consumedLength, releasePrevious, releaseSelf = !0 } = readNextDescriptor(keys3, "pointer"), keyDef = pointerMap.find((
|
|
32198
|
+
let { descriptor, consumedLength, releasePrevious, releaseSelf = !0 } = readNextDescriptor(keys3, "pointer"), keyDef = pointerMap.find((p3) => p3.name === descriptor);
|
|
32114
32199
|
keyDef && defs.push({
|
|
32115
32200
|
keyDef,
|
|
32116
32201
|
releasePrevious,
|
|
@@ -32277,9 +32362,9 @@ async function upload(element, fileOrFiles) {
|
|
|
32277
32362
|
fileOrFiles
|
|
32278
32363
|
]).filter((file) => !this.config.applyAccept || isAcceptableFile(file, input2.accept)).slice(0, input2.multiple ? void 0 : 1), fileDialog = () => {
|
|
32279
32364
|
var _input_files;
|
|
32280
|
-
files.length === ((_input_files = input2.files) === null || _input_files === void 0 ? void 0 : _input_files.length) && files.every((
|
|
32365
|
+
files.length === ((_input_files = input2.files) === null || _input_files === void 0 ? void 0 : _input_files.length) && files.every((f4, i) => {
|
|
32281
32366
|
var _input_files2;
|
|
32282
|
-
return
|
|
32367
|
+
return f4 === ((_input_files2 = input2.files) === null || _input_files2 === void 0 ? void 0 : _input_files2.item(i));
|
|
32283
32368
|
}) || (setFiles(input2, createFileList(getWindow(element), files)), this.dispatchUIEvent(input2, "input"), this.dispatchUIEvent(input2, "change"));
|
|
32284
32369
|
};
|
|
32285
32370
|
input2.addEventListener("fileDialog", fileDialog), await this.click(element), input2.removeEventListener("fileDialog", fileDialog);
|
|
@@ -32886,7 +32971,7 @@ var svgElements = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".spli
|
|
|
32886
32971
|
width,
|
|
32887
32972
|
height
|
|
32888
32973
|
};
|
|
32889
|
-
}).sort((
|
|
32974
|
+
}).sort((a3, b) => b.width * b.height - a3.width * a3.height), isOverMenu = (menuElement, coordinates) => {
|
|
32890
32975
|
let menu = menuElement.getBoundingClientRect(), { x, y } = coordinates;
|
|
32891
32976
|
return menu?.top && menu?.left && x >= menu.left && x <= menu.left + menu.width && y >= menu.top && y <= menu.top + menu.height;
|
|
32892
32977
|
}, isTargeted = (box, boxElement, coordinates) => {
|
|
@@ -32971,7 +33056,7 @@ var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root",
|
|
|
32971
33056
|
}), elements.subscribe((value) => {
|
|
32972
33057
|
targets.set((t) => t.filter(({ element }) => value.has(element)));
|
|
32973
33058
|
}), targets.subscribe((value) => {
|
|
32974
|
-
value.length ? (selected.set((
|
|
33059
|
+
value.length ? (selected.set((s3) => value.some((t) => t.element === s3?.element) ? s3 : void 0), focused.set((s3) => value.some((t) => t.element === s3?.element) ? s3 : void 0)) : (selected.set(void 0), focused.set(void 0), clickCoords.set(void 0));
|
|
32975
33060
|
});
|
|
32976
33061
|
let styleElementByHighlight = new Map(/* @__PURE__ */ new Map());
|
|
32977
33062
|
highlights.subscribe((value) => {
|
|
@@ -33189,7 +33274,7 @@ var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root",
|
|
|
33189
33274
|
elementList.map((target) => {
|
|
33190
33275
|
let selectable = elementList.length > 1 && !!target.menu?.some(
|
|
33191
33276
|
(group) => group.some(
|
|
33192
|
-
(item) => !item.selectors || item.selectors.some((
|
|
33277
|
+
(item) => !item.selectors || item.selectors.some((s3) => target.selectors.includes(s3))
|
|
33193
33278
|
)
|
|
33194
33279
|
), props = selectable ? {
|
|
33195
33280
|
class: "selectable",
|
|
@@ -33209,7 +33294,7 @@ var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root",
|
|
|
33209
33294
|
)), selected.get() || targets.get().length === 1) {
|
|
33210
33295
|
let target = selected.get() || targets.get()[0], menuGroups = target.menu?.filter(
|
|
33211
33296
|
(group) => group.some(
|
|
33212
|
-
(item) => !item.selectors || item.selectors.some((
|
|
33297
|
+
(item) => !item.selectors || item.selectors.some((s3) => target.selectors.includes(s3))
|
|
33213
33298
|
)
|
|
33214
33299
|
);
|
|
33215
33300
|
menuGroups?.length && menu.appendChild(
|
|
@@ -33257,11 +33342,11 @@ var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root",
|
|
|
33257
33342
|
let addHighlight = (highlight) => {
|
|
33258
33343
|
let info = normalizeOptions(highlight);
|
|
33259
33344
|
highlights.set((value) => {
|
|
33260
|
-
let others = info.id ? value.filter((
|
|
33345
|
+
let others = info.id ? value.filter((h3) => h3.id !== info.id) : value;
|
|
33261
33346
|
return info.selectors?.length ? [...others, info] : others;
|
|
33262
33347
|
});
|
|
33263
33348
|
}, removeHighlight = (id) => {
|
|
33264
|
-
id && highlights.set((value) => value.filter((
|
|
33349
|
+
id && highlights.set((value) => value.filter((h3) => h3.id !== id));
|
|
33265
33350
|
}, resetState = () => {
|
|
33266
33351
|
highlights.set([]), elements.set(/* @__PURE__ */ new Map()), boxes.set([]), clickCoords.set(void 0), hoverCoords.set(void 0), targets.set([]), hovered.set([]), focused.set(void 0), selected.set(void 0);
|
|
33267
33352
|
}, removeTimeout, scrollIntoView = (target, options) => {
|
|
@@ -33359,8 +33444,8 @@ var colors = {
|
|
|
33359
33444
|
content: "#6fa8dc",
|
|
33360
33445
|
text: "#232020"
|
|
33361
33446
|
}, labelPadding = 6;
|
|
33362
|
-
function roundedRect(context, { x, y, w, h:
|
|
33363
|
-
x = x - w / 2, y = y -
|
|
33447
|
+
function roundedRect(context, { x, y, w, h: h3, r }) {
|
|
33448
|
+
x = x - w / 2, y = y - h3 / 2, w < 2 * r && (r = w / 2), h3 < 2 * r && (r = h3 / 2), context.beginPath(), context.moveTo(x + r, y), context.arcTo(x + w, y, x + w, y + h3, r), context.arcTo(x + w, y + h3, x, y + h3, r), context.arcTo(x, y + h3, x, y, r), context.arcTo(x, y, x + w, y, r), context.closePath();
|
|
33364
33449
|
}
|
|
33365
33450
|
function positionCoordinate(position, { padding, border, width, height, top, left }) {
|
|
33366
33451
|
let contentWidth = width - border.left - border.right - padding.left - padding.right, contentHeight = height - padding.top - padding.bottom - border.top - border.bottom, x = left + border.left + padding.left, y = top + border.top + padding.top;
|
|
@@ -33370,43 +33455,43 @@ function offset(type5, position, { margin, border, padding }, labelPaddingSize,
|
|
|
33370
33455
|
let shift = (dir) => 0, offsetX = 0, offsetY = 0, locationMultiplier = external ? 1 : 0.5, labelPaddingShift = external ? labelPaddingSize * 2 : 0;
|
|
33371
33456
|
return type5 === "padding" ? shift = (dir) => padding[dir] * locationMultiplier + labelPaddingShift : type5 === "border" ? shift = (dir) => padding[dir] + border[dir] * locationMultiplier + labelPaddingShift : type5 === "margin" && (shift = (dir) => padding[dir] + border[dir] + margin[dir] * locationMultiplier + labelPaddingShift), position === "top" ? offsetY = -shift("top") : position === "right" ? offsetX = shift("right") : position === "bottom" ? offsetY = shift("bottom") : position === "left" && (offsetX = -shift("left")), { offsetX, offsetY };
|
|
33372
33457
|
}
|
|
33373
|
-
function collide(
|
|
33374
|
-
return Math.abs(
|
|
33458
|
+
function collide(a3, b) {
|
|
33459
|
+
return Math.abs(a3.x - b.x) < Math.abs(a3.w + b.w) / 2 && Math.abs(a3.y - b.y) < Math.abs(a3.h + b.h) / 2;
|
|
33375
33460
|
}
|
|
33376
33461
|
function overlapAdjustment(position, currentRect, prevRect) {
|
|
33377
33462
|
return position === "top" ? currentRect.y = prevRect.y - prevRect.h - labelPadding : position === "right" ? currentRect.x = prevRect.x + prevRect.w / 2 + labelPadding + currentRect.w / 2 : position === "bottom" ? currentRect.y = prevRect.y + prevRect.h + labelPadding : position === "left" && (currentRect.x = prevRect.x - prevRect.w / 2 - labelPadding - currentRect.w / 2), { x: currentRect.x, y: currentRect.y };
|
|
33378
33463
|
}
|
|
33379
|
-
function textWithRect(context, type5, { x, y, w, h:
|
|
33380
|
-
return roundedRect(context, { x, y, w, h:
|
|
33464
|
+
function textWithRect(context, type5, { x, y, w, h: h3 }, text) {
|
|
33465
|
+
return roundedRect(context, { x, y, w, h: h3, r: 3 }), context.fillStyle = `${colors[type5]}dd`, context.fill(), context.strokeStyle = colors[type5], context.stroke(), context.fillStyle = colors.text, context.fillText(text, x, y), roundedRect(context, { x, y, w, h: h3, r: 3 }), context.fillStyle = `${colors[type5]}dd`, context.fill(), context.strokeStyle = colors[type5], context.stroke(), context.fillStyle = colors.text, context.fillText(text, x, y), { x, y, w, h: h3 };
|
|
33381
33466
|
}
|
|
33382
33467
|
function configureText(context, text) {
|
|
33383
33468
|
context.font = "600 12px monospace", context.textBaseline = "middle", context.textAlign = "center";
|
|
33384
|
-
let metrics = context.measureText(text), actualHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent, w = metrics.width + labelPadding * 2,
|
|
33385
|
-
return { w, h:
|
|
33469
|
+
let metrics = context.measureText(text), actualHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent, w = metrics.width + labelPadding * 2, h3 = actualHeight + labelPadding * 2;
|
|
33470
|
+
return { w, h: h3 };
|
|
33386
33471
|
}
|
|
33387
33472
|
function drawLabel(context, measurements, { type: type5, position = "center", text }, prevRect, external = !1) {
|
|
33388
33473
|
let { x, y } = positionCoordinate(position, measurements), { offsetX, offsetY } = offset(type5, position, measurements, labelPadding + 1, external);
|
|
33389
33474
|
x += offsetX, y += offsetY;
|
|
33390
|
-
let { w, h:
|
|
33391
|
-
if (prevRect && collide({ x, y, w, h:
|
|
33392
|
-
let adjusted = overlapAdjustment(position, { x, y, w, h:
|
|
33475
|
+
let { w, h: h3 } = configureText(context, text);
|
|
33476
|
+
if (prevRect && collide({ x, y, w, h: h3 }, prevRect)) {
|
|
33477
|
+
let adjusted = overlapAdjustment(position, { x, y, w, h: h3 }, prevRect);
|
|
33393
33478
|
x = adjusted.x, y = adjusted.y;
|
|
33394
33479
|
}
|
|
33395
|
-
return textWithRect(context, type5, { x, y, w, h:
|
|
33480
|
+
return textWithRect(context, type5, { x, y, w, h: h3 }, text);
|
|
33396
33481
|
}
|
|
33397
|
-
function floatingOffset(alignment, { w, h:
|
|
33398
|
-
let deltaW = w * 0.5 + labelPadding, deltaH =
|
|
33482
|
+
function floatingOffset(alignment, { w, h: h3 }) {
|
|
33483
|
+
let deltaW = w * 0.5 + labelPadding, deltaH = h3 * 0.5 + labelPadding;
|
|
33399
33484
|
return {
|
|
33400
33485
|
offsetX: (alignment.x === "left" ? -1 : 1) * deltaW,
|
|
33401
33486
|
offsetY: (alignment.y === "top" ? -1 : 1) * deltaH
|
|
33402
33487
|
};
|
|
33403
33488
|
}
|
|
33404
33489
|
function drawFloatingLabel(context, measurements, { type: type5, text }) {
|
|
33405
|
-
let { floatingAlignment: floatingAlignment2, extremities } = measurements, x = extremities[floatingAlignment2.x], y = extremities[floatingAlignment2.y], { w, h:
|
|
33490
|
+
let { floatingAlignment: floatingAlignment2, extremities } = measurements, x = extremities[floatingAlignment2.x], y = extremities[floatingAlignment2.y], { w, h: h3 } = configureText(context, text), { offsetX, offsetY } = floatingOffset(floatingAlignment2, {
|
|
33406
33491
|
w,
|
|
33407
|
-
h:
|
|
33492
|
+
h: h3
|
|
33408
33493
|
});
|
|
33409
|
-
return x += offsetX, y += offsetY, textWithRect(context, type5, { x, y, w, h:
|
|
33494
|
+
return x += offsetX, y += offsetY, textWithRect(context, type5, { x, y, w, h: h3 }, text);
|
|
33410
33495
|
}
|
|
33411
33496
|
function drawStack(context, measurements, stack, external) {
|
|
33412
33497
|
let rects = [];
|
|
@@ -35377,7 +35462,7 @@ function unary(func) {
|
|
|
35377
35462
|
function median(nums) {
|
|
35378
35463
|
if (nums.length === 0)
|
|
35379
35464
|
return NaN;
|
|
35380
|
-
let sorted = nums.slice().sort((
|
|
35465
|
+
let sorted = nums.slice().sort((a3, b) => a3 - b), middleIndex = Math.floor(sorted.length / 2);
|
|
35381
35466
|
return sorted.length % 2 === 0 ? (sorted[middleIndex - 1] + sorted[middleIndex]) / 2 : sorted[middleIndex];
|
|
35382
35467
|
}
|
|
35383
35468
|
|
|
@@ -35428,73 +35513,73 @@ function eq3(value, other) {
|
|
|
35428
35513
|
}
|
|
35429
35514
|
|
|
35430
35515
|
// ../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
|
|
35431
|
-
function isEqualWith2(
|
|
35432
|
-
return isEqualWithImpl(
|
|
35516
|
+
function isEqualWith2(a3, b, areValuesEqual) {
|
|
35517
|
+
return isEqualWithImpl(a3, b, void 0, void 0, void 0, void 0, areValuesEqual);
|
|
35433
35518
|
}
|
|
35434
|
-
function isEqualWithImpl(
|
|
35435
|
-
let result = areValuesEqual(
|
|
35519
|
+
function isEqualWithImpl(a3, b, property2, aParent, bParent, stack, areValuesEqual) {
|
|
35520
|
+
let result = areValuesEqual(a3, b, property2, aParent, bParent, stack);
|
|
35436
35521
|
if (result !== void 0)
|
|
35437
35522
|
return result;
|
|
35438
|
-
if (typeof
|
|
35439
|
-
switch (typeof
|
|
35523
|
+
if (typeof a3 == typeof b)
|
|
35524
|
+
switch (typeof a3) {
|
|
35440
35525
|
case "bigint":
|
|
35441
35526
|
case "string":
|
|
35442
35527
|
case "boolean":
|
|
35443
35528
|
case "symbol":
|
|
35444
35529
|
case "undefined":
|
|
35445
|
-
return
|
|
35530
|
+
return a3 === b;
|
|
35446
35531
|
case "number":
|
|
35447
|
-
return
|
|
35532
|
+
return a3 === b || Object.is(a3, b);
|
|
35448
35533
|
case "function":
|
|
35449
|
-
return
|
|
35534
|
+
return a3 === b;
|
|
35450
35535
|
case "object":
|
|
35451
|
-
return areObjectsEqual(
|
|
35536
|
+
return areObjectsEqual(a3, b, stack, areValuesEqual);
|
|
35452
35537
|
}
|
|
35453
|
-
return areObjectsEqual(
|
|
35538
|
+
return areObjectsEqual(a3, b, stack, areValuesEqual);
|
|
35454
35539
|
}
|
|
35455
|
-
function areObjectsEqual(
|
|
35456
|
-
if (Object.is(
|
|
35540
|
+
function areObjectsEqual(a3, b, stack, areValuesEqual) {
|
|
35541
|
+
if (Object.is(a3, b))
|
|
35457
35542
|
return !0;
|
|
35458
|
-
let aTag = getTag2(
|
|
35543
|
+
let aTag = getTag2(a3), bTag = getTag2(b);
|
|
35459
35544
|
if (aTag === argumentsTag && (aTag = objectTag), bTag === argumentsTag && (bTag = objectTag), aTag !== bTag)
|
|
35460
35545
|
return !1;
|
|
35461
35546
|
switch (aTag) {
|
|
35462
35547
|
case stringTag:
|
|
35463
|
-
return
|
|
35548
|
+
return a3.toString() === b.toString();
|
|
35464
35549
|
case numberTag: {
|
|
35465
|
-
let x =
|
|
35550
|
+
let x = a3.valueOf(), y = b.valueOf();
|
|
35466
35551
|
return eq3(x, y);
|
|
35467
35552
|
}
|
|
35468
35553
|
case booleanTag:
|
|
35469
35554
|
case dateTag:
|
|
35470
35555
|
case symbolTag2:
|
|
35471
|
-
return Object.is(
|
|
35556
|
+
return Object.is(a3.valueOf(), b.valueOf());
|
|
35472
35557
|
case regexpTag:
|
|
35473
|
-
return
|
|
35558
|
+
return a3.source === b.source && a3.flags === b.flags;
|
|
35474
35559
|
case functionTag:
|
|
35475
|
-
return
|
|
35560
|
+
return a3 === b;
|
|
35476
35561
|
}
|
|
35477
35562
|
stack = stack ?? /* @__PURE__ */ new Map();
|
|
35478
|
-
let aStack = stack.get(
|
|
35563
|
+
let aStack = stack.get(a3), bStack = stack.get(b);
|
|
35479
35564
|
if (aStack != null && bStack != null)
|
|
35480
35565
|
return aStack === b;
|
|
35481
|
-
stack.set(
|
|
35566
|
+
stack.set(a3, b), stack.set(b, a3);
|
|
35482
35567
|
try {
|
|
35483
35568
|
switch (aTag) {
|
|
35484
35569
|
case mapTag: {
|
|
35485
|
-
if (
|
|
35570
|
+
if (a3.size !== b.size)
|
|
35486
35571
|
return !1;
|
|
35487
|
-
for (let [key, value] of
|
|
35488
|
-
if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key,
|
|
35572
|
+
for (let [key, value] of a3.entries())
|
|
35573
|
+
if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a3, b, stack, areValuesEqual))
|
|
35489
35574
|
return !1;
|
|
35490
35575
|
return !0;
|
|
35491
35576
|
}
|
|
35492
35577
|
case setTag: {
|
|
35493
|
-
if (
|
|
35578
|
+
if (a3.size !== b.size)
|
|
35494
35579
|
return !1;
|
|
35495
|
-
let aValues = Array.from(
|
|
35580
|
+
let aValues = Array.from(a3.values()), bValues = Array.from(b.values());
|
|
35496
35581
|
for (let i = 0; i < aValues.length; i++) {
|
|
35497
|
-
let aValue = aValues[i], index2 = bValues.findIndex((bValue) => isEqualWithImpl(aValue, bValue, void 0,
|
|
35582
|
+
let aValue = aValues[i], index2 = bValues.findIndex((bValue) => isEqualWithImpl(aValue, bValue, void 0, a3, b, stack, areValuesEqual));
|
|
35498
35583
|
if (index2 === -1)
|
|
35499
35584
|
return !1;
|
|
35500
35585
|
bValues.splice(index2, 1);
|
|
@@ -35513,31 +35598,31 @@ function areObjectsEqual(a2, b, stack, areValuesEqual) {
|
|
|
35513
35598
|
case bigInt64ArrayTag:
|
|
35514
35599
|
case float32ArrayTag:
|
|
35515
35600
|
case float64ArrayTag: {
|
|
35516
|
-
if (typeof Buffer < "u" && Buffer.isBuffer(
|
|
35601
|
+
if (typeof Buffer < "u" && Buffer.isBuffer(a3) !== Buffer.isBuffer(b) || a3.length !== b.length)
|
|
35517
35602
|
return !1;
|
|
35518
|
-
for (let i = 0; i <
|
|
35519
|
-
if (!isEqualWithImpl(
|
|
35603
|
+
for (let i = 0; i < a3.length; i++)
|
|
35604
|
+
if (!isEqualWithImpl(a3[i], b[i], i, a3, b, stack, areValuesEqual))
|
|
35520
35605
|
return !1;
|
|
35521
35606
|
return !0;
|
|
35522
35607
|
}
|
|
35523
35608
|
case arrayBufferTag:
|
|
35524
|
-
return
|
|
35609
|
+
return a3.byteLength !== b.byteLength ? !1 : areObjectsEqual(new Uint8Array(a3), new Uint8Array(b), stack, areValuesEqual);
|
|
35525
35610
|
case dataViewTag:
|
|
35526
|
-
return
|
|
35611
|
+
return a3.byteLength !== b.byteLength || a3.byteOffset !== b.byteOffset ? !1 : areObjectsEqual(new Uint8Array(a3), new Uint8Array(b), stack, areValuesEqual);
|
|
35527
35612
|
case errorTag:
|
|
35528
|
-
return
|
|
35613
|
+
return a3.name === b.name && a3.message === b.message;
|
|
35529
35614
|
case objectTag: {
|
|
35530
|
-
if (!(areObjectsEqual(
|
|
35615
|
+
if (!(areObjectsEqual(a3.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a3) && isPlainObject(b)))
|
|
35531
35616
|
return !1;
|
|
35532
|
-
let aKeys = [...Object.keys(
|
|
35617
|
+
let aKeys = [...Object.keys(a3), ...getSymbols(a3)], bKeys = [...Object.keys(b), ...getSymbols(b)];
|
|
35533
35618
|
if (aKeys.length !== bKeys.length)
|
|
35534
35619
|
return !1;
|
|
35535
35620
|
for (let i = 0; i < aKeys.length; i++) {
|
|
35536
|
-
let propKey = aKeys[i], aProp =
|
|
35621
|
+
let propKey = aKeys[i], aProp = a3[propKey];
|
|
35537
35622
|
if (!Object.hasOwn(b, propKey))
|
|
35538
35623
|
return !1;
|
|
35539
35624
|
let bProp = b[propKey];
|
|
35540
|
-
if (!isEqualWithImpl(aProp, bProp, propKey,
|
|
35625
|
+
if (!isEqualWithImpl(aProp, bProp, propKey, a3, b, stack, areValuesEqual))
|
|
35541
35626
|
return !1;
|
|
35542
35627
|
}
|
|
35543
35628
|
return !0;
|
|
@@ -35546,13 +35631,13 @@ function areObjectsEqual(a2, b, stack, areValuesEqual) {
|
|
|
35546
35631
|
return !1;
|
|
35547
35632
|
}
|
|
35548
35633
|
} finally {
|
|
35549
|
-
stack.delete(
|
|
35634
|
+
stack.delete(a3), stack.delete(b);
|
|
35550
35635
|
}
|
|
35551
35636
|
}
|
|
35552
35637
|
|
|
35553
35638
|
// ../../node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
35554
|
-
function isEqual2(
|
|
35555
|
-
return isEqualWith2(
|
|
35639
|
+
function isEqual2(a3, b) {
|
|
35640
|
+
return isEqualWith2(a3, b, noop2);
|
|
35556
35641
|
}
|
|
35557
35642
|
|
|
35558
35643
|
// ../../node_modules/es-toolkit/dist/predicate/isFile.mjs
|
|
@@ -36524,18 +36609,18 @@ function nth(array, n = 0) {
|
|
|
36524
36609
|
}
|
|
36525
36610
|
|
|
36526
36611
|
// ../../node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
|
|
36527
|
-
function getPriority(
|
|
36528
|
-
return typeof
|
|
36529
|
-
}
|
|
36530
|
-
var compareValues = (
|
|
36531
|
-
if (
|
|
36532
|
-
if (typeof
|
|
36533
|
-
return order === "desc" ? b.localeCompare(
|
|
36534
|
-
let aPriority = getPriority(
|
|
36612
|
+
function getPriority(a3) {
|
|
36613
|
+
return typeof a3 == "symbol" ? 1 : a3 === null ? 2 : a3 === void 0 ? 3 : a3 !== a3 ? 4 : 0;
|
|
36614
|
+
}
|
|
36615
|
+
var compareValues = (a3, b, order) => {
|
|
36616
|
+
if (a3 !== b) {
|
|
36617
|
+
if (typeof a3 == "string" && typeof b == "string")
|
|
36618
|
+
return order === "desc" ? b.localeCompare(a3) : a3.localeCompare(b);
|
|
36619
|
+
let aPriority = getPriority(a3), bPriority = getPriority(b);
|
|
36535
36620
|
if (aPriority === bPriority && aPriority === 0) {
|
|
36536
|
-
if (
|
|
36621
|
+
if (a3 < b)
|
|
36537
36622
|
return order === "desc" ? 1 : -1;
|
|
36538
|
-
if (
|
|
36623
|
+
if (a3 > b)
|
|
36539
36624
|
return order === "desc" ? -1 : 1;
|
|
36540
36625
|
}
|
|
36541
36626
|
return order === "desc" ? bPriority - aPriority : aPriority - bPriority;
|
|
@@ -36563,9 +36648,9 @@ function orderBy(collection, criteria, orders, guard) {
|
|
|
36563
36648
|
return collection.map((item) => ({
|
|
36564
36649
|
original: item,
|
|
36565
36650
|
criteria: preparedCriteria.map((criterion) => getValueByCriterion(criterion, item))
|
|
36566
|
-
})).slice().sort((
|
|
36651
|
+
})).slice().sort((a3, b) => {
|
|
36567
36652
|
for (let i = 0; i < preparedCriteria.length; i++) {
|
|
36568
|
-
let comparedResult = compareValues(
|
|
36653
|
+
let comparedResult = compareValues(a3.criteria[i], b.criteria[i], orders[i]);
|
|
36569
36654
|
if (comparedResult !== 0)
|
|
36570
36655
|
return comparedResult;
|
|
36571
36656
|
}
|
|
@@ -36642,7 +36727,7 @@ function pullAllWith(array, values2, comparator) {
|
|
|
36642
36727
|
return array;
|
|
36643
36728
|
array === values2 && (values2 = copyArray(values2));
|
|
36644
36729
|
let resultLength = 0;
|
|
36645
|
-
comparator == null && (comparator = (
|
|
36730
|
+
comparator == null && (comparator = (a3, b) => eq3(a3, b));
|
|
36646
36731
|
let valuesArray = Array.isArray(values2) ? values2 : Array.from(values2), hasUndefined = valuesArray.includes(void 0);
|
|
36647
36732
|
for (let i = 0; i < array.length; i++) {
|
|
36648
36733
|
if (i in array) {
|
|
@@ -36719,7 +36804,7 @@ function pullAt(array, ..._indices) {
|
|
|
36719
36804
|
let indices = flatten2(_indices, 1);
|
|
36720
36805
|
if (!array)
|
|
36721
36806
|
return Array(indices.length);
|
|
36722
|
-
let result = at(array, indices), indicesToPull = indices.map((index2) => isIndex(index2, array.length) ? Number(index2) : index2).sort((
|
|
36807
|
+
let result = at(array, indices), indicesToPull = indices.map((index2) => isIndex(index2, array.length) ? Number(index2) : index2).sort((a3, b) => b - a3);
|
|
36723
36808
|
for (let index2 of new Set(indicesToPull)) {
|
|
36724
36809
|
if (isIndex(index2, array.length)) {
|
|
36725
36810
|
Array.prototype.splice.call(array, index2, 1);
|
|
@@ -38124,15 +38209,15 @@ function after2(n, func) {
|
|
|
38124
38209
|
}
|
|
38125
38210
|
|
|
38126
38211
|
// ../../node_modules/es-toolkit/dist/compat/predicate/isEqualWith.mjs
|
|
38127
|
-
function isEqualWith3(
|
|
38128
|
-
return typeof areValuesEqual != "function" && (areValuesEqual = noop2), isEqualWith2(
|
|
38212
|
+
function isEqualWith3(a3, b, areValuesEqual = noop2) {
|
|
38213
|
+
return typeof areValuesEqual != "function" && (areValuesEqual = noop2), isEqualWith2(a3, b, (...args) => {
|
|
38129
38214
|
let result = areValuesEqual(...args);
|
|
38130
38215
|
if (result !== void 0)
|
|
38131
38216
|
return !!result;
|
|
38132
|
-
if (
|
|
38133
|
-
return isEqualWith3(Array.from(
|
|
38134
|
-
if (
|
|
38135
|
-
return isEqualWith3(Array.from(
|
|
38217
|
+
if (a3 instanceof Map && b instanceof Map)
|
|
38218
|
+
return isEqualWith3(Array.from(a3), Array.from(b), after2(2, areValuesEqual));
|
|
38219
|
+
if (a3 instanceof Set && b instanceof Set)
|
|
38220
|
+
return isEqualWith3(Array.from(a3), Array.from(b), after2(2, areValuesEqual));
|
|
38136
38221
|
});
|
|
38137
38222
|
}
|
|
38138
38223
|
|
|
@@ -39115,7 +39200,7 @@ var combineParameters = (...parameterSets) => {
|
|
|
39115
39200
|
Array.isArray(value) || typeof existing > "u" ? acc[key] = value : isPlainObject(value) && isPlainObject(existing) ? mergeKeys[key] = !0 : typeof value < "u" && (acc[key] = value);
|
|
39116
39201
|
}), acc), {});
|
|
39117
39202
|
return Object.keys(mergeKeys).forEach((key) => {
|
|
39118
|
-
let mergeValues = definedParametersSets.filter(Boolean).map((
|
|
39203
|
+
let mergeValues = definedParametersSets.filter(Boolean).map((p3) => p3[key]).filter((value) => typeof value < "u");
|
|
39119
39204
|
mergeValues.every((value) => isPlainObject(value)) ? combined[key] = combineParameters(...mergeValues) : combined[key] = mergeValues[mergeValues.length - 1];
|
|
39120
39205
|
}), combined;
|
|
39121
39206
|
};
|
|
@@ -39529,8 +39614,8 @@ async function waitForAnimations(signal) {
|
|
|
39529
39614
|
let animationRoots = [globalThis.document, ...getShadowRoots(globalThis.document)], checkAnimationsFinished = async () => {
|
|
39530
39615
|
if (timedOut || signal?.aborted)
|
|
39531
39616
|
return;
|
|
39532
|
-
let runningAnimations = animationRoots.flatMap((el) => el?.getAnimations?.() || []).filter((
|
|
39533
|
-
runningAnimations.length > 0 && (await Promise.all(runningAnimations.map((
|
|
39617
|
+
let runningAnimations = animationRoots.flatMap((el) => el?.getAnimations?.() || []).filter((a3) => a3.playState === "running" && !isInfiniteAnimation(a3));
|
|
39618
|
+
runningAnimations.length > 0 && (await Promise.all(runningAnimations.map((a3) => a3.finished)), await checkAnimationsFinished());
|
|
39534
39619
|
};
|
|
39535
39620
|
checkAnimationsFinished().then(resolve);
|
|
39536
39621
|
}, 100);
|
|
@@ -39926,7 +40011,7 @@ var sanitize2 = (parts) => {
|
|
|
39926
40011
|
return lastStripped && nextToLast && lastStripped.toLowerCase() === nextToLast.toLowerCase() ? [...parts.slice(0, -2), lastStripped] : lastStripped && (/^(story|stories)([.][^.]+)$/i.test(last3) || /^index$/i.test(lastStripped)) ? parts.slice(0, -1) : [...parts.slice(0, -1), lastStripped];
|
|
39927
40012
|
};
|
|
39928
40013
|
function pathJoin(paths) {
|
|
39929
|
-
return paths.flatMap((
|
|
40014
|
+
return paths.flatMap((p3) => p3.split("/")).filter(Boolean).join("/");
|
|
39930
40015
|
}
|
|
39931
40016
|
var userOrAutoTitleFromSpecifier = (fileName, entry, userTitle) => {
|
|
39932
40017
|
let { directory, importPathMatcher, titlePrefix = "" } = entry || {};
|
|
@@ -39953,11 +40038,11 @@ var userOrAutoTitleFromSpecifier = (fileName, entry, userTitle) => {
|
|
|
39953
40038
|
};
|
|
39954
40039
|
|
|
39955
40040
|
// src/preview-api/modules/store/storySort.ts
|
|
39956
|
-
var STORY_KIND_PATH_SEPARATOR = /\s*\/\s*/, storySort = (options = {}) => (
|
|
39957
|
-
if (
|
|
40041
|
+
var STORY_KIND_PATH_SEPARATOR = /\s*\/\s*/, storySort = (options = {}) => (a3, b) => {
|
|
40042
|
+
if (a3.title === b.title && !options.includeNames)
|
|
39958
40043
|
return 0;
|
|
39959
|
-
let method2 = options.method || "configure", order = options.order || [], storyTitleA =
|
|
39960
|
-
options.includeNames && (storyTitleA.push(
|
|
40044
|
+
let method2 = options.method || "configure", order = options.order || [], storyTitleA = a3.title.trim().split(STORY_KIND_PATH_SEPARATOR), storyTitleB = b.title.trim().split(STORY_KIND_PATH_SEPARATOR);
|
|
40045
|
+
options.includeNames && (storyTitleA.push(a3.name), storyTitleB.push(b.name));
|
|
39961
40046
|
let depth = 0;
|
|
39962
40047
|
for (; storyTitleA[depth] || storyTitleB[depth]; ) {
|
|
39963
40048
|
if (!storyTitleA[depth])
|
|
@@ -39985,7 +40070,7 @@ var sortStoriesCommon = (stories, storySortParameter, fileNameOrder) => {
|
|
|
39985
40070
|
typeof storySortParameter == "function" ? sortFn = storySortParameter : sortFn = storySort(storySortParameter), stories.sort(sortFn);
|
|
39986
40071
|
} else
|
|
39987
40072
|
stories.sort(
|
|
39988
|
-
(s1,
|
|
40073
|
+
(s1, s22) => fileNameOrder.indexOf(s1.importPath) - fileNameOrder.indexOf(s22.importPath)
|
|
39989
40074
|
);
|
|
39990
40075
|
return stories;
|
|
39991
40076
|
}, sortStoriesV7 = (stories, storySortParameter, fileNameOrder) => {
|
|
@@ -41353,11 +41438,11 @@ var config3 = {
|
|
|
41353
41438
|
var findProto = (obj, callback) => {
|
|
41354
41439
|
let proto = Object.getPrototypeOf(obj);
|
|
41355
41440
|
return !proto || callback(proto) ? proto : findProto(proto, callback);
|
|
41356
|
-
}, isReactSyntheticEvent = (e) => !!(typeof e == "object" && e && findProto(e, (proto) => /^Synthetic(?:Base)?Event$/.test(proto.constructor.name)) && typeof e.persist == "function"), serializeArg = (
|
|
41357
|
-
if (isReactSyntheticEvent(
|
|
41441
|
+
}, isReactSyntheticEvent = (e) => !!(typeof e == "object" && e && findProto(e, (proto) => /^Synthetic(?:Base)?Event$/.test(proto.constructor.name)) && typeof e.persist == "function"), serializeArg = (a3) => {
|
|
41442
|
+
if (isReactSyntheticEvent(a3)) {
|
|
41358
41443
|
let e = Object.create(
|
|
41359
|
-
|
|
41360
|
-
Object.getOwnPropertyDescriptors(
|
|
41444
|
+
a3.constructor.prototype,
|
|
41445
|
+
Object.getOwnPropertyDescriptors(a3)
|
|
41361
41446
|
);
|
|
41362
41447
|
e.persist();
|
|
41363
41448
|
let viewDescriptor = Object.getOwnPropertyDescriptor(e, "view"), view = viewDescriptor?.value;
|
|
@@ -41366,7 +41451,7 @@ var findProto = (obj, callback) => {
|
|
|
41366
41451
|
value: Object.create(view.constructor.prototype)
|
|
41367
41452
|
}), e;
|
|
41368
41453
|
}
|
|
41369
|
-
return
|
|
41454
|
+
return a3;
|
|
41370
41455
|
};
|
|
41371
41456
|
function action(name, options = {}) {
|
|
41372
41457
|
let actionOptions = {
|