@storybook/addon-a11y 10.1.0-alpha.10 → 10.1.0-alpha.11

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.
@@ -0,0 +1,1263 @@
1
+ import "./chunk-4BE7D4DS.js";
2
+
3
+ // ../../node_modules/vitest-axe/node_modules/chalk/source/vendor/ansi-styles/index.js
4
+ var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, styles = {
5
+ modifier: {
6
+ reset: [0, 0],
7
+ // 21 isn't widely supported and 22 does the same thing
8
+ bold: [1, 22],
9
+ dim: [2, 22],
10
+ italic: [3, 23],
11
+ underline: [4, 24],
12
+ overline: [53, 55],
13
+ inverse: [7, 27],
14
+ hidden: [8, 28],
15
+ strikethrough: [9, 29]
16
+ },
17
+ color: {
18
+ black: [30, 39],
19
+ red: [31, 39],
20
+ green: [32, 39],
21
+ yellow: [33, 39],
22
+ blue: [34, 39],
23
+ magenta: [35, 39],
24
+ cyan: [36, 39],
25
+ white: [37, 39],
26
+ // Bright color
27
+ blackBright: [90, 39],
28
+ gray: [90, 39],
29
+ // Alias of `blackBright`
30
+ grey: [90, 39],
31
+ // Alias of `blackBright`
32
+ redBright: [91, 39],
33
+ greenBright: [92, 39],
34
+ yellowBright: [93, 39],
35
+ blueBright: [94, 39],
36
+ magentaBright: [95, 39],
37
+ cyanBright: [96, 39],
38
+ whiteBright: [97, 39]
39
+ },
40
+ bgColor: {
41
+ bgBlack: [40, 49],
42
+ bgRed: [41, 49],
43
+ bgGreen: [42, 49],
44
+ bgYellow: [43, 49],
45
+ bgBlue: [44, 49],
46
+ bgMagenta: [45, 49],
47
+ bgCyan: [46, 49],
48
+ bgWhite: [47, 49],
49
+ // Bright color
50
+ bgBlackBright: [100, 49],
51
+ bgGray: [100, 49],
52
+ // Alias of `bgBlackBright`
53
+ bgGrey: [100, 49],
54
+ // Alias of `bgBlackBright`
55
+ bgRedBright: [101, 49],
56
+ bgGreenBright: [102, 49],
57
+ bgYellowBright: [103, 49],
58
+ bgBlueBright: [104, 49],
59
+ bgMagentaBright: [105, 49],
60
+ bgCyanBright: [106, 49],
61
+ bgWhiteBright: [107, 49]
62
+ }
63
+ }, modifierNames = Object.keys(styles.modifier), foregroundColorNames = Object.keys(styles.color), backgroundColorNames = Object.keys(styles.bgColor), colorNames = [...foregroundColorNames, ...backgroundColorNames];
64
+ function assembleStyles() {
65
+ let codes = /* @__PURE__ */ new Map();
66
+ for (let [groupName, group] of Object.entries(styles)) {
67
+ for (let [styleName, style] of Object.entries(group))
68
+ styles[styleName] = {
69
+ open: `\x1B[${style[0]}m`,
70
+ close: `\x1B[${style[1]}m`
71
+ }, group[styleName] = styles[styleName], codes.set(style[0], style[1]);
72
+ Object.defineProperty(styles, groupName, {
73
+ value: group,
74
+ enumerable: !1
75
+ });
76
+ }
77
+ return Object.defineProperty(styles, "codes", {
78
+ value: codes,
79
+ enumerable: !1
80
+ }), styles.color.close = "\x1B[39m", styles.bgColor.close = "\x1B[49m", styles.color.ansi = wrapAnsi16(), styles.color.ansi256 = wrapAnsi256(), styles.color.ansi16m = wrapAnsi16m(), styles.bgColor.ansi = wrapAnsi16(10), styles.bgColor.ansi256 = wrapAnsi256(10), styles.bgColor.ansi16m = wrapAnsi16m(10), Object.defineProperties(styles, {
81
+ rgbToAnsi256: {
82
+ value(red, green, blue) {
83
+ return red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
84
+ },
85
+ enumerable: !1
86
+ },
87
+ hexToRgb: {
88
+ value(hex) {
89
+ let matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
90
+ if (!matches)
91
+ return [0, 0, 0];
92
+ let [colorString] = matches;
93
+ colorString.length === 3 && (colorString = [...colorString].map((character) => character + character).join(""));
94
+ let integer = Number.parseInt(colorString, 16);
95
+ return [
96
+ /* eslint-disable no-bitwise */
97
+ integer >> 16 & 255,
98
+ integer >> 8 & 255,
99
+ integer & 255
100
+ /* eslint-enable no-bitwise */
101
+ ];
102
+ },
103
+ enumerable: !1
104
+ },
105
+ hexToAnsi256: {
106
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
107
+ enumerable: !1
108
+ },
109
+ ansi256ToAnsi: {
110
+ value(code) {
111
+ if (code < 8)
112
+ return 30 + code;
113
+ if (code < 16)
114
+ return 90 + (code - 8);
115
+ let red, green, blue;
116
+ if (code >= 232)
117
+ red = ((code - 232) * 10 + 8) / 255, green = red, blue = red;
118
+ else {
119
+ code -= 16;
120
+ let remainder = code % 36;
121
+ red = Math.floor(code / 36) / 5, green = Math.floor(remainder / 6) / 5, blue = remainder % 6 / 5;
122
+ }
123
+ let value = Math.max(red, green, blue) * 2;
124
+ if (value === 0)
125
+ return 30;
126
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
127
+ return value === 2 && (result += 60), result;
128
+ },
129
+ enumerable: !1
130
+ },
131
+ rgbToAnsi: {
132
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
133
+ enumerable: !1
134
+ },
135
+ hexToAnsi: {
136
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
137
+ enumerable: !1
138
+ }
139
+ }), styles;
140
+ }
141
+ var ansiStyles = assembleStyles(), ansi_styles_default = ansiStyles;
142
+
143
+ // ../../node_modules/vitest-axe/node_modules/chalk/source/vendor/supports-color/browser.js
144
+ var level = (() => {
145
+ if (!("navigator" in globalThis))
146
+ return 0;
147
+ if (globalThis.navigator.userAgentData) {
148
+ let brand = navigator.userAgentData.brands.find(({ brand: brand2 }) => brand2 === "Chromium");
149
+ if (brand && brand.version > 93)
150
+ return 3;
151
+ }
152
+ return /\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent) ? 1 : 0;
153
+ })(), colorSupport = level !== 0 && {
154
+ level,
155
+ hasBasic: !0,
156
+ has256: level >= 2,
157
+ has16m: level >= 3
158
+ }, supportsColor = {
159
+ stdout: colorSupport,
160
+ stderr: colorSupport
161
+ }, browser_default = supportsColor;
162
+
163
+ // ../../node_modules/vitest-axe/node_modules/chalk/source/utilities.js
164
+ function stringReplaceAll(string, substring, replacer) {
165
+ let index = string.indexOf(substring);
166
+ if (index === -1)
167
+ return string;
168
+ let substringLength = substring.length, endIndex = 0, returnValue = "";
169
+ do
170
+ returnValue += string.slice(endIndex, index) + substring + replacer, endIndex = index + substringLength, index = string.indexOf(substring, endIndex);
171
+ while (index !== -1);
172
+ return returnValue += string.slice(endIndex), returnValue;
173
+ }
174
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
175
+ let endIndex = 0, returnValue = "";
176
+ do {
177
+ let gotCR = string[index - 1] === "\r";
178
+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? `\r
179
+ ` : `
180
+ `) + postfix, endIndex = index + 1, index = string.indexOf(`
181
+ `, endIndex);
182
+ } while (index !== -1);
183
+ return returnValue += string.slice(endIndex), returnValue;
184
+ }
185
+
186
+ // ../../node_modules/vitest-axe/node_modules/chalk/source/index.js
187
+ var { stdout: stdoutColor, stderr: stderrColor } = browser_default, GENERATOR = Symbol("GENERATOR"), STYLER = Symbol("STYLER"), IS_EMPTY = Symbol("IS_EMPTY"), levelMapping = [
188
+ "ansi",
189
+ "ansi",
190
+ "ansi256",
191
+ "ansi16m"
192
+ ], styles2 = /* @__PURE__ */ Object.create(null), applyOptions = (object, options = {}) => {
193
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3))
194
+ throw new Error("The `level` option should be an integer from 0 to 3");
195
+ let colorLevel = stdoutColor ? stdoutColor.level : 0;
196
+ object.level = options.level === void 0 ? colorLevel : options.level;
197
+ };
198
+ var chalkFactory = (options) => {
199
+ let chalk2 = (...strings) => strings.join(" ");
200
+ return applyOptions(chalk2, options), Object.setPrototypeOf(chalk2, createChalk.prototype), chalk2;
201
+ };
202
+ function createChalk(options) {
203
+ return chalkFactory(options);
204
+ }
205
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
206
+ for (let [styleName, style] of Object.entries(ansi_styles_default))
207
+ styles2[styleName] = {
208
+ get() {
209
+ let builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
210
+ return Object.defineProperty(this, styleName, { value: builder }), builder;
211
+ }
212
+ };
213
+ styles2.visible = {
214
+ get() {
215
+ let builder = createBuilder(this, this[STYLER], !0);
216
+ return Object.defineProperty(this, "visible", { value: builder }), builder;
217
+ }
218
+ };
219
+ var getModelAnsi = (model, level2, type, ...arguments_) => model === "rgb" ? level2 === "ansi16m" ? ansi_styles_default[type].ansi16m(...arguments_) : level2 === "ansi256" ? ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_)) : ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_)) : model === "hex" ? getModelAnsi("rgb", level2, type, ...ansi_styles_default.hexToRgb(...arguments_)) : ansi_styles_default[type][model](...arguments_), usedModels = ["rgb", "hex", "ansi256"];
220
+ for (let model of usedModels) {
221
+ styles2[model] = {
222
+ get() {
223
+ let { level: level2 } = this;
224
+ return function(...arguments_) {
225
+ let styler = createStyler(getModelAnsi(model, levelMapping[level2], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
226
+ return createBuilder(this, styler, this[IS_EMPTY]);
227
+ };
228
+ }
229
+ };
230
+ let bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
231
+ styles2[bgModel] = {
232
+ get() {
233
+ let { level: level2 } = this;
234
+ return function(...arguments_) {
235
+ let styler = createStyler(getModelAnsi(model, levelMapping[level2], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
236
+ return createBuilder(this, styler, this[IS_EMPTY]);
237
+ };
238
+ }
239
+ };
240
+ }
241
+ var proto = Object.defineProperties(() => {
242
+ }, {
243
+ ...styles2,
244
+ level: {
245
+ enumerable: !0,
246
+ get() {
247
+ return this[GENERATOR].level;
248
+ },
249
+ set(level2) {
250
+ this[GENERATOR].level = level2;
251
+ }
252
+ }
253
+ }), createStyler = (open, close, parent) => {
254
+ let openAll, closeAll;
255
+ return parent === void 0 ? (openAll = open, closeAll = close) : (openAll = parent.openAll + open, closeAll = close + parent.closeAll), {
256
+ open,
257
+ close,
258
+ openAll,
259
+ closeAll,
260
+ parent
261
+ };
262
+ }, createBuilder = (self, _styler, _isEmpty) => {
263
+ let builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
264
+ return Object.setPrototypeOf(builder, proto), builder[GENERATOR] = self, builder[STYLER] = _styler, builder[IS_EMPTY] = _isEmpty, builder;
265
+ }, applyStyle = (self, string) => {
266
+ if (self.level <= 0 || !string)
267
+ return self[IS_EMPTY] ? "" : string;
268
+ let styler = self[STYLER];
269
+ if (styler === void 0)
270
+ return string;
271
+ let { openAll, closeAll } = styler;
272
+ if (string.includes("\x1B"))
273
+ for (; styler !== void 0; )
274
+ string = stringReplaceAll(string, styler.close, styler.open), styler = styler.parent;
275
+ let lfIndex = string.indexOf(`
276
+ `);
277
+ return lfIndex !== -1 && (string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex)), openAll + string + closeAll;
278
+ };
279
+ Object.defineProperties(createChalk.prototype, styles2);
280
+ var chalk = createChalk(), chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
281
+ var source_default = chalk;
282
+
283
+ // ../../node_modules/vitest-axe/dist/chunk-X4FZIUYL.js
284
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS = (cb, mod) => function() {
285
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
286
+ }, __copyProps = (to, from, except, desc) => {
287
+ if (from && typeof from == "object" || typeof from == "function")
288
+ for (let key of __getOwnPropNames(from))
289
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
290
+ return to;
291
+ }, __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, mod)), require_ansi_styles = __commonJS({
292
+ "node_modules/pretty-format/node_modules/ansi-styles/index.js"(exports, module) {
293
+ "use strict";
294
+ var ANSI_BACKGROUND_OFFSET = 10, wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
295
+ function assembleStyles2() {
296
+ let codes = /* @__PURE__ */ new Map(), styles3 = {
297
+ modifier: {
298
+ reset: [0, 0],
299
+ bold: [1, 22],
300
+ dim: [2, 22],
301
+ italic: [3, 23],
302
+ underline: [4, 24],
303
+ overline: [53, 55],
304
+ inverse: [7, 27],
305
+ hidden: [8, 28],
306
+ strikethrough: [9, 29]
307
+ },
308
+ color: {
309
+ black: [30, 39],
310
+ red: [31, 39],
311
+ green: [32, 39],
312
+ yellow: [33, 39],
313
+ blue: [34, 39],
314
+ magenta: [35, 39],
315
+ cyan: [36, 39],
316
+ white: [37, 39],
317
+ blackBright: [90, 39],
318
+ redBright: [91, 39],
319
+ greenBright: [92, 39],
320
+ yellowBright: [93, 39],
321
+ blueBright: [94, 39],
322
+ magentaBright: [95, 39],
323
+ cyanBright: [96, 39],
324
+ whiteBright: [97, 39]
325
+ },
326
+ bgColor: {
327
+ bgBlack: [40, 49],
328
+ bgRed: [41, 49],
329
+ bgGreen: [42, 49],
330
+ bgYellow: [43, 49],
331
+ bgBlue: [44, 49],
332
+ bgMagenta: [45, 49],
333
+ bgCyan: [46, 49],
334
+ bgWhite: [47, 49],
335
+ bgBlackBright: [100, 49],
336
+ bgRedBright: [101, 49],
337
+ bgGreenBright: [102, 49],
338
+ bgYellowBright: [103, 49],
339
+ bgBlueBright: [104, 49],
340
+ bgMagentaBright: [105, 49],
341
+ bgCyanBright: [106, 49],
342
+ bgWhiteBright: [107, 49]
343
+ }
344
+ };
345
+ styles3.color.gray = styles3.color.blackBright, styles3.bgColor.bgGray = styles3.bgColor.bgBlackBright, styles3.color.grey = styles3.color.blackBright, styles3.bgColor.bgGrey = styles3.bgColor.bgBlackBright;
346
+ for (let [groupName, group] of Object.entries(styles3)) {
347
+ for (let [styleName, style] of Object.entries(group))
348
+ styles3[styleName] = {
349
+ open: `\x1B[${style[0]}m`,
350
+ close: `\x1B[${style[1]}m`
351
+ }, group[styleName] = styles3[styleName], codes.set(style[0], style[1]);
352
+ Object.defineProperty(styles3, groupName, {
353
+ value: group,
354
+ enumerable: !1
355
+ });
356
+ }
357
+ return Object.defineProperty(styles3, "codes", {
358
+ value: codes,
359
+ enumerable: !1
360
+ }), styles3.color.close = "\x1B[39m", styles3.bgColor.close = "\x1B[49m", styles3.color.ansi256 = wrapAnsi2562(), styles3.color.ansi16m = wrapAnsi16m2(), styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET), styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET), Object.defineProperties(styles3, {
361
+ rgbToAnsi256: {
362
+ value: (red, green, blue) => red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5),
363
+ enumerable: !1
364
+ },
365
+ hexToRgb: {
366
+ value: (hex) => {
367
+ let matches = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex.toString(16));
368
+ if (!matches)
369
+ return [0, 0, 0];
370
+ let { colorString } = matches.groups;
371
+ colorString.length === 3 && (colorString = colorString.split("").map((character) => character + character).join(""));
372
+ let integer = Number.parseInt(colorString, 16);
373
+ return [
374
+ integer >> 16 & 255,
375
+ integer >> 8 & 255,
376
+ integer & 255
377
+ ];
378
+ },
379
+ enumerable: !1
380
+ },
381
+ hexToAnsi256: {
382
+ value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
383
+ enumerable: !1
384
+ }
385
+ }), styles3;
386
+ }
387
+ Object.defineProperty(module, "exports", {
388
+ enumerable: !0,
389
+ get: assembleStyles2
390
+ });
391
+ }
392
+ }), require_collections = __commonJS({
393
+ "node_modules/pretty-format/build/collections.js"(exports) {
394
+ "use strict";
395
+ Object.defineProperty(exports, "__esModule", {
396
+ value: !0
397
+ }), exports.printIteratorEntries = printIteratorEntries, exports.printIteratorValues = printIteratorValues, exports.printListItems = printListItems, exports.printObjectProperties = printObjectProperties;
398
+ var getKeysOfEnumerableProperties = (object, compareKeys) => {
399
+ let keys = Object.keys(object).sort(compareKeys);
400
+ return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(object).forEach((symbol) => {
401
+ Object.getOwnPropertyDescriptor(object, symbol).enumerable && keys.push(symbol);
402
+ }), keys;
403
+ };
404
+ function printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = ": ") {
405
+ let result = "", width = 0, current = iterator.next();
406
+ if (!current.done) {
407
+ result += config.spacingOuter;
408
+ let indentationNext = indentation + config.indent;
409
+ for (; !current.done; ) {
410
+ if (result += indentationNext, width++ === config.maxWidth) {
411
+ result += "\u2026";
412
+ break;
413
+ }
414
+ let name = printer(current.value[0], config, indentationNext, depth, refs), value = printer(current.value[1], config, indentationNext, depth, refs);
415
+ result += name + separator + value, current = iterator.next(), current.done ? config.min || (result += ",") : result += `,${config.spacingInner}`;
416
+ }
417
+ result += config.spacingOuter + indentation;
418
+ }
419
+ return result;
420
+ }
421
+ function printIteratorValues(iterator, config, indentation, depth, refs, printer) {
422
+ let result = "", width = 0, current = iterator.next();
423
+ if (!current.done) {
424
+ result += config.spacingOuter;
425
+ let indentationNext = indentation + config.indent;
426
+ for (; !current.done; ) {
427
+ if (result += indentationNext, width++ === config.maxWidth) {
428
+ result += "\u2026";
429
+ break;
430
+ }
431
+ result += printer(current.value, config, indentationNext, depth, refs), current = iterator.next(), current.done ? config.min || (result += ",") : result += `,${config.spacingInner}`;
432
+ }
433
+ result += config.spacingOuter + indentation;
434
+ }
435
+ return result;
436
+ }
437
+ function printListItems(list, config, indentation, depth, refs, printer) {
438
+ let result = "";
439
+ if (list.length) {
440
+ result += config.spacingOuter;
441
+ let indentationNext = indentation + config.indent;
442
+ for (let i = 0; i < list.length; i++) {
443
+ if (result += indentationNext, i === config.maxWidth) {
444
+ result += "\u2026";
445
+ break;
446
+ }
447
+ i in list && (result += printer(list[i], config, indentationNext, depth, refs)), i < list.length - 1 ? result += `,${config.spacingInner}` : config.min || (result += ",");
448
+ }
449
+ result += config.spacingOuter + indentation;
450
+ }
451
+ return result;
452
+ }
453
+ function printObjectProperties(val, config, indentation, depth, refs, printer) {
454
+ let result = "", keys = getKeysOfEnumerableProperties(val, config.compareKeys);
455
+ if (keys.length) {
456
+ result += config.spacingOuter;
457
+ let indentationNext = indentation + config.indent;
458
+ for (let i = 0; i < keys.length; i++) {
459
+ let key = keys[i], name = printer(key, config, indentationNext, depth, refs), value = printer(val[key], config, indentationNext, depth, refs);
460
+ result += `${indentationNext + name}: ${value}`, i < keys.length - 1 ? result += `,${config.spacingInner}` : config.min || (result += ",");
461
+ }
462
+ result += config.spacingOuter + indentation;
463
+ }
464
+ return result;
465
+ }
466
+ }
467
+ }), require_AsymmetricMatcher = __commonJS({
468
+ "node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
469
+ "use strict";
470
+ Object.defineProperty(exports, "__esModule", {
471
+ value: !0
472
+ }), exports.test = exports.serialize = exports.default = void 0;
473
+ var _collections = require_collections(), Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol, asymmetricMatcher = typeof Symbol2 == "function" && Symbol2.for ? Symbol2.for("jest.asymmetricMatcher") : 1267621, SPACE = " ", serialize = (val, config, indentation, depth, refs, printer) => {
474
+ let stringedValue = val.toString();
475
+ if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining")
476
+ return ++depth > config.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE}[${(0, _collections.printListItems)(val.sample, config, indentation, depth, refs, printer)}]`;
477
+ if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining")
478
+ return ++depth > config.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE}{${(0, _collections.printObjectProperties)(val.sample, config, indentation, depth, refs, printer)}}`;
479
+ if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining")
480
+ return stringedValue + SPACE + printer(val.sample, config, indentation, depth, refs);
481
+ if (typeof val.toAsymmetricMatcher != "function")
482
+ throw new Error(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
483
+ return val.toAsymmetricMatcher();
484
+ };
485
+ exports.serialize = serialize;
486
+ var test = (val) => val && val.$$typeof === asymmetricMatcher;
487
+ exports.test = test;
488
+ var plugin = {
489
+ serialize,
490
+ test
491
+ }, _default = plugin;
492
+ exports.default = _default;
493
+ }
494
+ }), require_ansi_regex = __commonJS({
495
+ "node_modules/ansi-regex/index.js"(exports, module) {
496
+ "use strict";
497
+ module.exports = ({ onlyFirst = !1 } = {}) => {
498
+ let pattern = [
499
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
500
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
501
+ ].join("|");
502
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
503
+ };
504
+ }
505
+ }), require_ConvertAnsi = __commonJS({
506
+ "node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
507
+ "use strict";
508
+ Object.defineProperty(exports, "__esModule", {
509
+ value: !0
510
+ }), exports.test = exports.serialize = exports.default = void 0;
511
+ var _ansiRegex = _interopRequireDefault(require_ansi_regex()), _ansiStyles = _interopRequireDefault(require_ansi_styles());
512
+ function _interopRequireDefault(obj) {
513
+ return obj && obj.__esModule ? obj : { default: obj };
514
+ }
515
+ var toHumanReadableAnsi = (text) => text.replace((0, _ansiRegex.default)(), (match) => {
516
+ switch (match) {
517
+ case _ansiStyles.default.red.close:
518
+ case _ansiStyles.default.green.close:
519
+ case _ansiStyles.default.cyan.close:
520
+ case _ansiStyles.default.gray.close:
521
+ case _ansiStyles.default.white.close:
522
+ case _ansiStyles.default.yellow.close:
523
+ case _ansiStyles.default.bgRed.close:
524
+ case _ansiStyles.default.bgGreen.close:
525
+ case _ansiStyles.default.bgYellow.close:
526
+ case _ansiStyles.default.inverse.close:
527
+ case _ansiStyles.default.dim.close:
528
+ case _ansiStyles.default.bold.close:
529
+ case _ansiStyles.default.reset.open:
530
+ case _ansiStyles.default.reset.close:
531
+ return "</>";
532
+ case _ansiStyles.default.red.open:
533
+ return "<red>";
534
+ case _ansiStyles.default.green.open:
535
+ return "<green>";
536
+ case _ansiStyles.default.cyan.open:
537
+ return "<cyan>";
538
+ case _ansiStyles.default.gray.open:
539
+ return "<gray>";
540
+ case _ansiStyles.default.white.open:
541
+ return "<white>";
542
+ case _ansiStyles.default.yellow.open:
543
+ return "<yellow>";
544
+ case _ansiStyles.default.bgRed.open:
545
+ return "<bgRed>";
546
+ case _ansiStyles.default.bgGreen.open:
547
+ return "<bgGreen>";
548
+ case _ansiStyles.default.bgYellow.open:
549
+ return "<bgYellow>";
550
+ case _ansiStyles.default.inverse.open:
551
+ return "<inverse>";
552
+ case _ansiStyles.default.dim.open:
553
+ return "<dim>";
554
+ case _ansiStyles.default.bold.open:
555
+ return "<bold>";
556
+ default:
557
+ return "";
558
+ }
559
+ }), test = (val) => typeof val == "string" && !!val.match((0, _ansiRegex.default)());
560
+ exports.test = test;
561
+ var serialize = (val, config, indentation, depth, refs, printer) => printer(toHumanReadableAnsi(val), config, indentation, depth, refs);
562
+ exports.serialize = serialize;
563
+ var plugin = {
564
+ serialize,
565
+ test
566
+ }, _default = plugin;
567
+ exports.default = _default;
568
+ }
569
+ }), require_DOMCollection = __commonJS({
570
+ "node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
571
+ "use strict";
572
+ Object.defineProperty(exports, "__esModule", {
573
+ value: !0
574
+ }), exports.test = exports.serialize = exports.default = void 0;
575
+ var _collections = require_collections(), SPACE = " ", OBJECT_NAMES = ["DOMStringMap", "NamedNodeMap"], ARRAY_REGEXP = /^(HTML\w*Collection|NodeList)$/, testName = (name) => OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name), test = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
576
+ exports.test = test;
577
+ var isNamedNodeMap = (collection) => collection.constructor.name === "NamedNodeMap", serialize = (collection, config, indentation, depth, refs, printer) => {
578
+ let name = collection.constructor.name;
579
+ return ++depth > config.maxDepth ? `[${name}]` : (config.min ? "" : name + SPACE) + (OBJECT_NAMES.indexOf(name) !== -1 ? `{${(0, _collections.printObjectProperties)(isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}) : { ...collection }, config, indentation, depth, refs, printer)}}` : `[${(0, _collections.printListItems)(Array.from(collection), config, indentation, depth, refs, printer)}]`);
580
+ };
581
+ exports.serialize = serialize;
582
+ var plugin = {
583
+ serialize,
584
+ test
585
+ }, _default = plugin;
586
+ exports.default = _default;
587
+ }
588
+ }), require_escapeHTML = __commonJS({
589
+ "node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
590
+ "use strict";
591
+ Object.defineProperty(exports, "__esModule", {
592
+ value: !0
593
+ }), exports.default = escapeHTML;
594
+ function escapeHTML(str) {
595
+ return str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
596
+ }
597
+ }
598
+ }), require_markup = __commonJS({
599
+ "node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
600
+ "use strict";
601
+ Object.defineProperty(exports, "__esModule", {
602
+ value: !0
603
+ }), exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
604
+ var _escapeHTML = _interopRequireDefault(require_escapeHTML());
605
+ function _interopRequireDefault(obj) {
606
+ return obj && obj.__esModule ? obj : { default: obj };
607
+ }
608
+ var printProps = (keys, props, config, indentation, depth, refs, printer) => {
609
+ let indentationNext = indentation + config.indent, colors = config.colors;
610
+ return keys.map((key) => {
611
+ let value = props[key], printed = printer(value, config, indentationNext, depth, refs);
612
+ return typeof value != "string" && (printed.indexOf(`
613
+ `) !== -1 && (printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation), printed = `{${printed}}`), `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
614
+ }).join("");
615
+ };
616
+ exports.printProps = printProps;
617
+ var printChildren = (children, config, indentation, depth, refs, printer) => children.map((child) => config.spacingOuter + indentation + (typeof child == "string" ? printText(child, config) : printer(child, config, indentation, depth, refs))).join("");
618
+ exports.printChildren = printChildren;
619
+ var printText = (text, config) => {
620
+ let contentColor = config.colors.content;
621
+ return contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close;
622
+ };
623
+ exports.printText = printText;
624
+ var printComment = (comment, config) => {
625
+ let commentColor = config.colors.comment;
626
+ return `${commentColor.open}<!--${(0, _escapeHTML.default)(comment)}-->${commentColor.close}`;
627
+ };
628
+ exports.printComment = printComment;
629
+ var printElement = (type, printedProps, printedChildren, config, indentation) => {
630
+ let tagColor = config.colors.tag;
631
+ return `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}</${type}` : `${printedProps && !config.min ? "" : " "}/`}>${tagColor.close}`;
632
+ };
633
+ exports.printElement = printElement;
634
+ var printElementAsLeaf = (type, config) => {
635
+ let tagColor = config.colors.tag;
636
+ return `${tagColor.open}<${type}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`;
637
+ };
638
+ exports.printElementAsLeaf = printElementAsLeaf;
639
+ }
640
+ }), require_DOMElement = __commonJS({
641
+ "node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
642
+ "use strict";
643
+ Object.defineProperty(exports, "__esModule", {
644
+ value: !0
645
+ }), exports.test = exports.serialize = exports.default = void 0;
646
+ var _markup = require_markup(), ELEMENT_NODE = 1, TEXT_NODE = 3, COMMENT_NODE = 8, FRAGMENT_NODE = 11, ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/, testHasAttribute = (val) => {
647
+ try {
648
+ return typeof val.hasAttribute == "function" && val.hasAttribute("is");
649
+ } catch {
650
+ return !1;
651
+ }
652
+ }, testNode = (val) => {
653
+ let constructorName = val.constructor.name, { nodeType, tagName } = val, isCustomElement = typeof tagName == "string" && tagName.includes("-") || testHasAttribute(val);
654
+ return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
655
+ }, test = (val) => {
656
+ var _val$constructor;
657
+ return (val == null || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val);
658
+ };
659
+ exports.test = test;
660
+ function nodeIsText(node) {
661
+ return node.nodeType === TEXT_NODE;
662
+ }
663
+ function nodeIsComment(node) {
664
+ return node.nodeType === COMMENT_NODE;
665
+ }
666
+ function nodeIsFragment(node) {
667
+ return node.nodeType === FRAGMENT_NODE;
668
+ }
669
+ var serialize = (node, config, indentation, depth, refs, printer) => {
670
+ if (nodeIsText(node))
671
+ return (0, _markup.printText)(node.data, config);
672
+ if (nodeIsComment(node))
673
+ return (0, _markup.printComment)(node.data, config);
674
+ let type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
675
+ return ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(type, config) : (0, _markup.printElement)(type, (0, _markup.printProps)(nodeIsFragment(node) ? [] : Array.from(node.attributes).map((attr) => attr.name).sort(), nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}), config, indentation + config.indent, depth, refs, printer), (0, _markup.printChildren)(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
676
+ };
677
+ exports.serialize = serialize;
678
+ var plugin = {
679
+ serialize,
680
+ test
681
+ }, _default = plugin;
682
+ exports.default = _default;
683
+ }
684
+ }), require_Immutable = __commonJS({
685
+ "node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
686
+ "use strict";
687
+ Object.defineProperty(exports, "__esModule", {
688
+ value: !0
689
+ }), exports.test = exports.serialize = exports.default = void 0;
690
+ var _collections = require_collections(), IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@", IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@", IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@", IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@", IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@", IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@", IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@", IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@", getImmutableName = (name) => `Immutable.${name}`, printAsLeaf = (name) => `[${name}]`, SPACE = " ", LAZY = "\u2026", printImmutableEntries = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer)}}`;
691
+ function getRecordEntries(val) {
692
+ let i = 0;
693
+ return {
694
+ next() {
695
+ if (i < val._keys.length) {
696
+ let key = val._keys[i++];
697
+ return {
698
+ done: !1,
699
+ value: [key, val.get(key)]
700
+ };
701
+ }
702
+ return {
703
+ done: !0,
704
+ value: void 0
705
+ };
706
+ }
707
+ };
708
+ }
709
+ var printImmutableRecord = (val, config, indentation, depth, refs, printer) => {
710
+ let name = getImmutableName(val._name || "Record");
711
+ return ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${(0, _collections.printIteratorEntries)(getRecordEntries(val), config, indentation, depth, refs, printer)}}`;
712
+ }, printImmutableSeq = (val, config, indentation, depth, refs, printer) => {
713
+ let name = getImmutableName("Seq");
714
+ return ++depth > config.maxDepth ? printAsLeaf(name) : val[IS_KEYED_SENTINEL] ? `${name + SPACE}{${val._iter || val._object ? (0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer) : LAZY}}` : `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? (0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer) : LAZY}]`;
715
+ }, printImmutableValues = (val, config, indentation, depth, refs, printer, type) => ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}]`, serialize = (val, config, indentation, depth, refs, printer) => val[IS_MAP_SENTINEL] ? printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map") : val[IS_LIST_SENTINEL] ? printImmutableValues(val, config, indentation, depth, refs, printer, "List") : val[IS_SET_SENTINEL] ? printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set") : val[IS_STACK_SENTINEL] ? printImmutableValues(val, config, indentation, depth, refs, printer, "Stack") : val[IS_SEQ_SENTINEL] ? printImmutableSeq(val, config, indentation, depth, refs, printer) : printImmutableRecord(val, config, indentation, depth, refs, printer);
716
+ exports.serialize = serialize;
717
+ var test = (val) => val && (val[IS_ITERABLE_SENTINEL] === !0 || val[IS_RECORD_SENTINEL] === !0);
718
+ exports.test = test;
719
+ var plugin = {
720
+ serialize,
721
+ test
722
+ }, _default = plugin;
723
+ exports.default = _default;
724
+ }
725
+ }), require_react_is_production_min = __commonJS({
726
+ "node_modules/react-is/cjs/react-is.production.min.js"(exports) {
727
+ "use strict";
728
+ var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u;
729
+ u = Symbol.for("react.module.reference");
730
+ function v(a) {
731
+ if (typeof a == "object" && a !== null) {
732
+ var r = a.$$typeof;
733
+ switch (r) {
734
+ case b:
735
+ switch (a = a.type, a) {
736
+ case d:
737
+ case f:
738
+ case e:
739
+ case m:
740
+ case n:
741
+ return a;
742
+ default:
743
+ switch (a = a && a.$$typeof, a) {
744
+ case k:
745
+ case h:
746
+ case l:
747
+ case q:
748
+ case p:
749
+ case g:
750
+ return a;
751
+ default:
752
+ return r;
753
+ }
754
+ }
755
+ case c:
756
+ return r;
757
+ }
758
+ }
759
+ }
760
+ exports.ContextConsumer = h, exports.ContextProvider = g, exports.Element = b, exports.ForwardRef = l, exports.Fragment = d, exports.Lazy = q, exports.Memo = p, exports.Portal = c, exports.Profiler = f, exports.StrictMode = e, exports.Suspense = m, exports.SuspenseList = n, exports.isAsyncMode = function() {
761
+ return !1;
762
+ }, exports.isConcurrentMode = function() {
763
+ return !1;
764
+ }, exports.isContextConsumer = function(a) {
765
+ return v(a) === h;
766
+ }, exports.isContextProvider = function(a) {
767
+ return v(a) === g;
768
+ }, exports.isElement = function(a) {
769
+ return typeof a == "object" && a !== null && a.$$typeof === b;
770
+ }, exports.isForwardRef = function(a) {
771
+ return v(a) === l;
772
+ }, exports.isFragment = function(a) {
773
+ return v(a) === d;
774
+ }, exports.isLazy = function(a) {
775
+ return v(a) === q;
776
+ }, exports.isMemo = function(a) {
777
+ return v(a) === p;
778
+ }, exports.isPortal = function(a) {
779
+ return v(a) === c;
780
+ }, exports.isProfiler = function(a) {
781
+ return v(a) === f;
782
+ }, exports.isStrictMode = function(a) {
783
+ return v(a) === e;
784
+ }, exports.isSuspense = function(a) {
785
+ return v(a) === m;
786
+ }, exports.isSuspenseList = function(a) {
787
+ return v(a) === n;
788
+ }, exports.isValidElementType = function(a) {
789
+ return typeof a == "string" || typeof a == "function" || a === d || a === f || a === e || a === m || a === n || a === t || typeof a == "object" && a !== null && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || a.getModuleId !== void 0);
790
+ }, exports.typeOf = v;
791
+ }
792
+ }), require_react_is_development = __commonJS({
793
+ "node_modules/react-is/cjs/react-is.development.js"(exports) {
794
+ "use strict";
795
+ process.env.NODE_ENV !== "production" && (function() {
796
+ "use strict";
797
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, REACT_MODULE_REFERENCE;
798
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
799
+ function isValidElementType(type) {
800
+ return !!(typeof type == "string" || typeof type == "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0));
801
+ }
802
+ function typeOf(object) {
803
+ if (typeof object == "object" && object !== null) {
804
+ var $$typeof = object.$$typeof;
805
+ switch ($$typeof) {
806
+ case REACT_ELEMENT_TYPE:
807
+ var type = object.type;
808
+ switch (type) {
809
+ case REACT_FRAGMENT_TYPE:
810
+ case REACT_PROFILER_TYPE:
811
+ case REACT_STRICT_MODE_TYPE:
812
+ case REACT_SUSPENSE_TYPE:
813
+ case REACT_SUSPENSE_LIST_TYPE:
814
+ return type;
815
+ default:
816
+ var $$typeofType = type && type.$$typeof;
817
+ switch ($$typeofType) {
818
+ case REACT_SERVER_CONTEXT_TYPE:
819
+ case REACT_CONTEXT_TYPE:
820
+ case REACT_FORWARD_REF_TYPE:
821
+ case REACT_LAZY_TYPE:
822
+ case REACT_MEMO_TYPE:
823
+ case REACT_PROVIDER_TYPE:
824
+ return $$typeofType;
825
+ default:
826
+ return $$typeof;
827
+ }
828
+ }
829
+ case REACT_PORTAL_TYPE:
830
+ return $$typeof;
831
+ }
832
+ }
833
+ }
834
+ var ContextConsumer = REACT_CONTEXT_TYPE, ContextProvider = REACT_PROVIDER_TYPE, Element = REACT_ELEMENT_TYPE, ForwardRef = REACT_FORWARD_REF_TYPE, Fragment = REACT_FRAGMENT_TYPE, Lazy = REACT_LAZY_TYPE, Memo = REACT_MEMO_TYPE, Portal = REACT_PORTAL_TYPE, Profiler = REACT_PROFILER_TYPE, StrictMode = REACT_STRICT_MODE_TYPE, Suspense = REACT_SUSPENSE_TYPE, SuspenseList = REACT_SUSPENSE_LIST_TYPE, hasWarnedAboutDeprecatedIsAsyncMode = !1, hasWarnedAboutDeprecatedIsConcurrentMode = !1;
835
+ function isAsyncMode(object) {
836
+ return hasWarnedAboutDeprecatedIsAsyncMode || (hasWarnedAboutDeprecatedIsAsyncMode = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
837
+ }
838
+ function isConcurrentMode(object) {
839
+ return hasWarnedAboutDeprecatedIsConcurrentMode || (hasWarnedAboutDeprecatedIsConcurrentMode = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
840
+ }
841
+ function isContextConsumer(object) {
842
+ return typeOf(object) === REACT_CONTEXT_TYPE;
843
+ }
844
+ function isContextProvider(object) {
845
+ return typeOf(object) === REACT_PROVIDER_TYPE;
846
+ }
847
+ function isElement(object) {
848
+ return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
849
+ }
850
+ function isForwardRef(object) {
851
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
852
+ }
853
+ function isFragment(object) {
854
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
855
+ }
856
+ function isLazy(object) {
857
+ return typeOf(object) === REACT_LAZY_TYPE;
858
+ }
859
+ function isMemo(object) {
860
+ return typeOf(object) === REACT_MEMO_TYPE;
861
+ }
862
+ function isPortal(object) {
863
+ return typeOf(object) === REACT_PORTAL_TYPE;
864
+ }
865
+ function isProfiler(object) {
866
+ return typeOf(object) === REACT_PROFILER_TYPE;
867
+ }
868
+ function isStrictMode(object) {
869
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
870
+ }
871
+ function isSuspense(object) {
872
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
873
+ }
874
+ function isSuspenseList(object) {
875
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
876
+ }
877
+ exports.ContextConsumer = ContextConsumer, exports.ContextProvider = ContextProvider, exports.Element = Element, exports.ForwardRef = ForwardRef, exports.Fragment = Fragment, exports.Lazy = Lazy, exports.Memo = Memo, exports.Portal = Portal, exports.Profiler = Profiler, exports.StrictMode = StrictMode, exports.Suspense = Suspense, exports.SuspenseList = SuspenseList, exports.isAsyncMode = isAsyncMode, exports.isConcurrentMode = isConcurrentMode, exports.isContextConsumer = isContextConsumer, exports.isContextProvider = isContextProvider, exports.isElement = isElement, exports.isForwardRef = isForwardRef, exports.isFragment = isFragment, exports.isLazy = isLazy, exports.isMemo = isMemo, exports.isPortal = isPortal, exports.isProfiler = isProfiler, exports.isStrictMode = isStrictMode, exports.isSuspense = isSuspense, exports.isSuspenseList = isSuspenseList, exports.isValidElementType = isValidElementType, exports.typeOf = typeOf;
878
+ })();
879
+ }
880
+ }), require_react_is = __commonJS({
881
+ "node_modules/react-is/index.js"(exports, module) {
882
+ "use strict";
883
+ process.env.NODE_ENV === "production" ? module.exports = require_react_is_production_min() : module.exports = require_react_is_development();
884
+ }
885
+ }), require_ReactElement = __commonJS({
886
+ "node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
887
+ "use strict";
888
+ Object.defineProperty(exports, "__esModule", {
889
+ value: !0
890
+ }), exports.test = exports.serialize = exports.default = void 0;
891
+ var ReactIs = _interopRequireWildcard(require_react_is()), _markup = require_markup();
892
+ function _getRequireWildcardCache(nodeInterop) {
893
+ if (typeof WeakMap != "function")
894
+ return null;
895
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap(), cacheNodeInterop = /* @__PURE__ */ new WeakMap();
896
+ return (_getRequireWildcardCache = function(nodeInterop2) {
897
+ return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
898
+ })(nodeInterop);
899
+ }
900
+ function _interopRequireWildcard(obj, nodeInterop) {
901
+ if (!nodeInterop && obj && obj.__esModule)
902
+ return obj;
903
+ if (obj === null || typeof obj != "object" && typeof obj != "function")
904
+ return { default: obj };
905
+ var cache = _getRequireWildcardCache(nodeInterop);
906
+ if (cache && cache.has(obj))
907
+ return cache.get(obj);
908
+ var newObj = {}, hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
909
+ for (var key in obj)
910
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
911
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
912
+ desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key];
913
+ }
914
+ return newObj.default = obj, cache && cache.set(obj, newObj), newObj;
915
+ }
916
+ var getChildren = (arg, children = []) => (Array.isArray(arg) ? arg.forEach((item) => {
917
+ getChildren(item, children);
918
+ }) : arg != null && arg !== !1 && children.push(arg), children), getType = (element) => {
919
+ let type = element.type;
920
+ if (typeof type == "string")
921
+ return type;
922
+ if (typeof type == "function")
923
+ return type.displayName || type.name || "Unknown";
924
+ if (ReactIs.isFragment(element))
925
+ return "React.Fragment";
926
+ if (ReactIs.isSuspense(element))
927
+ return "React.Suspense";
928
+ if (typeof type == "object" && type !== null) {
929
+ if (ReactIs.isContextProvider(element))
930
+ return "Context.Provider";
931
+ if (ReactIs.isContextConsumer(element))
932
+ return "Context.Consumer";
933
+ if (ReactIs.isForwardRef(element)) {
934
+ if (type.displayName)
935
+ return type.displayName;
936
+ let functionName = type.render.displayName || type.render.name || "";
937
+ return functionName !== "" ? `ForwardRef(${functionName})` : "ForwardRef";
938
+ }
939
+ if (ReactIs.isMemo(element)) {
940
+ let functionName = type.displayName || type.type.displayName || type.type.name || "";
941
+ return functionName !== "" ? `Memo(${functionName})` : "Memo";
942
+ }
943
+ }
944
+ return "UNDEFINED";
945
+ }, getPropKeys = (element) => {
946
+ let { props } = element;
947
+ return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
948
+ }, serialize = (element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(getType(element), config) : (0, _markup.printElement)(getType(element), (0, _markup.printProps)(getPropKeys(element), element.props, config, indentation + config.indent, depth, refs, printer), (0, _markup.printChildren)(getChildren(element.props.children), config, indentation + config.indent, depth, refs, printer), config, indentation);
949
+ exports.serialize = serialize;
950
+ var test = (val) => val != null && ReactIs.isElement(val);
951
+ exports.test = test;
952
+ var plugin = {
953
+ serialize,
954
+ test
955
+ }, _default = plugin;
956
+ exports.default = _default;
957
+ }
958
+ }), require_ReactTestComponent = __commonJS({
959
+ "node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
960
+ "use strict";
961
+ Object.defineProperty(exports, "__esModule", {
962
+ value: !0
963
+ }), exports.test = exports.serialize = exports.default = void 0;
964
+ var _markup = require_markup(), Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol, testSymbol = typeof Symbol2 == "function" && Symbol2.for ? Symbol2.for("react.test.json") : 245830487, getPropKeys = (object) => {
965
+ let { props } = object;
966
+ return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
967
+ }, serialize = (object, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? (0, _markup.printElementAsLeaf)(object.type, config) : (0, _markup.printElement)(object.type, object.props ? (0, _markup.printProps)(getPropKeys(object), object.props, config, indentation + config.indent, depth, refs, printer) : "", object.children ? (0, _markup.printChildren)(object.children, config, indentation + config.indent, depth, refs, printer) : "", config, indentation);
968
+ exports.serialize = serialize;
969
+ var test = (val) => val && val.$$typeof === testSymbol;
970
+ exports.test = test;
971
+ var plugin = {
972
+ serialize,
973
+ test
974
+ }, _default = plugin;
975
+ exports.default = _default;
976
+ }
977
+ }), require_build = __commonJS({
978
+ "node_modules/pretty-format/build/index.js"(exports) {
979
+ "use strict";
980
+ Object.defineProperty(exports, "__esModule", {
981
+ value: !0
982
+ }), exports.default = exports.DEFAULT_OPTIONS = void 0, exports.format = format, exports.plugins = void 0;
983
+ var _ansiStyles = _interopRequireDefault(require_ansi_styles()), _collections = require_collections(), _AsymmetricMatcher = _interopRequireDefault(require_AsymmetricMatcher()), _ConvertAnsi = _interopRequireDefault(require_ConvertAnsi()), _DOMCollection = _interopRequireDefault(require_DOMCollection()), _DOMElement = _interopRequireDefault(require_DOMElement()), _Immutable = _interopRequireDefault(require_Immutable()), _ReactElement = _interopRequireDefault(require_ReactElement()), _ReactTestComponent = _interopRequireDefault(require_ReactTestComponent());
984
+ function _interopRequireDefault(obj) {
985
+ return obj && obj.__esModule ? obj : { default: obj };
986
+ }
987
+ var toString = Object.prototype.toString, toISOString = Date.prototype.toISOString, errorToString = Error.prototype.toString, regExpToString = RegExp.prototype.toString, getConstructorName = (val) => typeof val.constructor == "function" && val.constructor.name || "Object", isWindow = (val) => typeof window < "u" && val === window, SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/, NEWLINE_REGEXP = /\n/gi, PrettyFormatPluginError = class extends Error {
988
+ constructor(message, stack) {
989
+ super(message), this.stack = stack, this.name = this.constructor.name;
990
+ }
991
+ };
992
+ function isToStringedArrayType(toStringed) {
993
+ return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]";
994
+ }
995
+ function printNumber(val) {
996
+ return Object.is(val, -0) ? "-0" : String(val);
997
+ }
998
+ function printBigInt(val) {
999
+ return `${val}n`;
1000
+ }
1001
+ function printFunction(val, printFunctionName) {
1002
+ return printFunctionName ? `[Function ${val.name || "anonymous"}]` : "[Function]";
1003
+ }
1004
+ function printSymbol(val) {
1005
+ return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
1006
+ }
1007
+ function printError(val) {
1008
+ return `[${errorToString.call(val)}]`;
1009
+ }
1010
+ function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
1011
+ if (val === !0 || val === !1)
1012
+ return `${val}`;
1013
+ if (val === void 0)
1014
+ return "undefined";
1015
+ if (val === null)
1016
+ return "null";
1017
+ let typeOf = typeof val;
1018
+ if (typeOf === "number")
1019
+ return printNumber(val);
1020
+ if (typeOf === "bigint")
1021
+ return printBigInt(val);
1022
+ if (typeOf === "string")
1023
+ return escapeString ? `"${val.replace(/"|\\/g, "\\$&")}"` : `"${val}"`;
1024
+ if (typeOf === "function")
1025
+ return printFunction(val, printFunctionName);
1026
+ if (typeOf === "symbol")
1027
+ return printSymbol(val);
1028
+ let toStringed = toString.call(val);
1029
+ return toStringed === "[object WeakMap]" ? "WeakMap {}" : toStringed === "[object WeakSet]" ? "WeakSet {}" : toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]" ? printFunction(val, printFunctionName) : toStringed === "[object Symbol]" ? printSymbol(val) : toStringed === "[object Date]" ? isNaN(+val) ? "Date { NaN }" : toISOString.call(val) : toStringed === "[object Error]" ? printError(val) : toStringed === "[object RegExp]" ? escapeRegex ? regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : regExpToString.call(val) : val instanceof Error ? printError(val) : null;
1030
+ }
1031
+ function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) {
1032
+ if (refs.indexOf(val) !== -1)
1033
+ return "[Circular]";
1034
+ refs = refs.slice(), refs.push(val);
1035
+ let hitMaxDepth = ++depth > config.maxDepth, min = config.min;
1036
+ if (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON == "function" && !hasCalledToJSON)
1037
+ return printer(val.toJSON(), config, indentation, depth, refs, !0);
1038
+ let toStringed = toString.call(val);
1039
+ return toStringed === "[object Arguments]" ? hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]` : isToStringedArrayType(toStringed) ? hitMaxDepth ? `[${val.constructor.name}]` : `${min || !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${(0, _collections.printListItems)(val, config, indentation, depth, refs, printer)}]` : toStringed === "[object Map]" ? hitMaxDepth ? "[Map]" : `Map {${(0, _collections.printIteratorEntries)(val.entries(), config, indentation, depth, refs, printer, " => ")}}` : toStringed === "[object Set]" ? hitMaxDepth ? "[Set]" : `Set {${(0, _collections.printIteratorValues)(val.values(), config, indentation, depth, refs, printer)}}` : hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min || !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${(0, _collections.printObjectProperties)(val, config, indentation, depth, refs, printer)}}`;
1040
+ }
1041
+ function isNewPlugin(plugin) {
1042
+ return plugin.serialize != null;
1043
+ }
1044
+ function printPlugin(plugin, val, config, indentation, depth, refs) {
1045
+ let printed;
1046
+ try {
1047
+ printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {
1048
+ let indentationNext = indentation + config.indent;
1049
+ return indentationNext + str.replace(NEWLINE_REGEXP, `
1050
+ ${indentationNext}`);
1051
+ }, {
1052
+ edgeSpacing: config.spacingOuter,
1053
+ min: config.min,
1054
+ spacing: config.spacingInner
1055
+ }, config.colors);
1056
+ } catch (error) {
1057
+ throw new PrettyFormatPluginError(error.message, error.stack);
1058
+ }
1059
+ if (typeof printed != "string")
1060
+ throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
1061
+ return printed;
1062
+ }
1063
+ function findPlugin(plugins2, val) {
1064
+ for (let p = 0; p < plugins2.length; p++)
1065
+ try {
1066
+ if (plugins2[p].test(val))
1067
+ return plugins2[p];
1068
+ } catch (error) {
1069
+ throw new PrettyFormatPluginError(error.message, error.stack);
1070
+ }
1071
+ return null;
1072
+ }
1073
+ function printer(val, config, indentation, depth, refs, hasCalledToJSON) {
1074
+ let plugin = findPlugin(config.plugins, val);
1075
+ if (plugin !== null)
1076
+ return printPlugin(plugin, val, config, indentation, depth, refs);
1077
+ let basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString);
1078
+ return basicResult !== null ? basicResult : printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON);
1079
+ }
1080
+ var DEFAULT_THEME = {
1081
+ comment: "gray",
1082
+ content: "reset",
1083
+ prop: "yellow",
1084
+ tag: "cyan",
1085
+ value: "green"
1086
+ }, DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME), DEFAULT_OPTIONS = {
1087
+ callToJSON: !0,
1088
+ compareKeys: void 0,
1089
+ escapeRegex: !1,
1090
+ escapeString: !0,
1091
+ highlight: !1,
1092
+ indent: 2,
1093
+ maxDepth: 1 / 0,
1094
+ maxWidth: 1 / 0,
1095
+ min: !1,
1096
+ plugins: [],
1097
+ printBasicPrototype: !0,
1098
+ printFunctionName: !0,
1099
+ theme: DEFAULT_THEME
1100
+ };
1101
+ exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
1102
+ function validateOptions(options) {
1103
+ if (Object.keys(options).forEach((key) => {
1104
+ if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key))
1105
+ throw new Error(`pretty-format: Unknown option "${key}".`);
1106
+ }), options.min && options.indent !== void 0 && options.indent !== 0)
1107
+ throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');
1108
+ if (options.theme !== void 0) {
1109
+ if (options.theme === null)
1110
+ throw new Error('pretty-format: Option "theme" must not be null.');
1111
+ if (typeof options.theme != "object")
1112
+ throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`);
1113
+ }
1114
+ }
1115
+ var getColorsHighlight = (options) => DEFAULT_THEME_KEYS.reduce((colors, key) => {
1116
+ let value = options.theme && options.theme[key] !== void 0 ? options.theme[key] : DEFAULT_THEME[key], color = value && _ansiStyles.default[value];
1117
+ if (color && typeof color.close == "string" && typeof color.open == "string")
1118
+ colors[key] = color;
1119
+ else
1120
+ throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
1121
+ return colors;
1122
+ }, /* @__PURE__ */ Object.create(null)), getColorsEmpty = () => DEFAULT_THEME_KEYS.reduce((colors, key) => (colors[key] = {
1123
+ close: "",
1124
+ open: ""
1125
+ }, colors), /* @__PURE__ */ Object.create(null)), getPrintFunctionName = (options) => {
1126
+ var _options$printFunctio;
1127
+ return (_options$printFunctio = options?.printFunctionName) !== null && _options$printFunctio !== void 0 ? _options$printFunctio : DEFAULT_OPTIONS.printFunctionName;
1128
+ }, getEscapeRegex = (options) => {
1129
+ var _options$escapeRegex;
1130
+ return (_options$escapeRegex = options?.escapeRegex) !== null && _options$escapeRegex !== void 0 ? _options$escapeRegex : DEFAULT_OPTIONS.escapeRegex;
1131
+ }, getEscapeString = (options) => {
1132
+ var _options$escapeString;
1133
+ return (_options$escapeString = options?.escapeString) !== null && _options$escapeString !== void 0 ? _options$escapeString : DEFAULT_OPTIONS.escapeString;
1134
+ }, getConfig = (options) => {
1135
+ var _options$callToJSON, _options$indent, _options$maxDepth, _options$maxWidth, _options$min, _options$plugins, _options$printBasicPr;
1136
+ return {
1137
+ callToJSON: (_options$callToJSON = options?.callToJSON) !== null && _options$callToJSON !== void 0 ? _options$callToJSON : DEFAULT_OPTIONS.callToJSON,
1138
+ colors: options != null && options.highlight ? getColorsHighlight(options) : getColorsEmpty(),
1139
+ compareKeys: typeof options?.compareKeys == "function" ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
1140
+ escapeRegex: getEscapeRegex(options),
1141
+ escapeString: getEscapeString(options),
1142
+ indent: options != null && options.min ? "" : createIndent((_options$indent = options?.indent) !== null && _options$indent !== void 0 ? _options$indent : DEFAULT_OPTIONS.indent),
1143
+ maxDepth: (_options$maxDepth = options?.maxDepth) !== null && _options$maxDepth !== void 0 ? _options$maxDepth : DEFAULT_OPTIONS.maxDepth,
1144
+ maxWidth: (_options$maxWidth = options?.maxWidth) !== null && _options$maxWidth !== void 0 ? _options$maxWidth : DEFAULT_OPTIONS.maxWidth,
1145
+ min: (_options$min = options?.min) !== null && _options$min !== void 0 ? _options$min : DEFAULT_OPTIONS.min,
1146
+ plugins: (_options$plugins = options?.plugins) !== null && _options$plugins !== void 0 ? _options$plugins : DEFAULT_OPTIONS.plugins,
1147
+ printBasicPrototype: (_options$printBasicPr = options?.printBasicPrototype) !== null && _options$printBasicPr !== void 0 ? _options$printBasicPr : !0,
1148
+ printFunctionName: getPrintFunctionName(options),
1149
+ spacingInner: options != null && options.min ? " " : `
1150
+ `,
1151
+ spacingOuter: options != null && options.min ? "" : `
1152
+ `
1153
+ };
1154
+ };
1155
+ function createIndent(indent) {
1156
+ return new Array(indent + 1).join(" ");
1157
+ }
1158
+ function format(val, options) {
1159
+ if (options && (validateOptions(options), options.plugins)) {
1160
+ let plugin = findPlugin(options.plugins, val);
1161
+ if (plugin !== null)
1162
+ return printPlugin(plugin, val, getConfig(options), "", 0, []);
1163
+ }
1164
+ let basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
1165
+ return basicResult !== null ? basicResult : printComplexValue(val, getConfig(options), "", 0, []);
1166
+ }
1167
+ var plugins = {
1168
+ AsymmetricMatcher: _AsymmetricMatcher.default,
1169
+ ConvertAnsi: _ConvertAnsi.default,
1170
+ DOMCollection: _DOMCollection.default,
1171
+ DOMElement: _DOMElement.default,
1172
+ Immutable: _Immutable.default,
1173
+ ReactElement: _ReactElement.default,
1174
+ ReactTestComponent: _ReactTestComponent.default
1175
+ };
1176
+ exports.plugins = plugins;
1177
+ var _default = format;
1178
+ exports.default = _default;
1179
+ }
1180
+ }), import_pretty_format = __toESM(require_build(), 1), {
1181
+ AsymmetricMatcher,
1182
+ DOMCollection,
1183
+ DOMElement,
1184
+ Immutable,
1185
+ ReactElement,
1186
+ ReactTestComponent
1187
+ } = import_pretty_format.plugins, PLUGINS = [
1188
+ ReactTestComponent,
1189
+ ReactElement,
1190
+ DOMElement,
1191
+ DOMCollection,
1192
+ Immutable,
1193
+ AsymmetricMatcher
1194
+ ], DIM_COLOR = source_default.dim, EXPECTED_COLOR = source_default.green, RECEIVED_COLOR = source_default.red, SPACE_SYMBOL = "\xB7";
1195
+ function stringify(object, maxDepth = 10, maxWidth = 10) {
1196
+ let MAX_LENGTH = 1e4, result;
1197
+ try {
1198
+ result = (0, import_pretty_format.format)(object, {
1199
+ maxDepth,
1200
+ maxWidth,
1201
+ min: !0,
1202
+ plugins: PLUGINS
1203
+ });
1204
+ } catch {
1205
+ result = (0, import_pretty_format.format)(object, {
1206
+ callToJSON: !1,
1207
+ maxDepth,
1208
+ maxWidth,
1209
+ min: !0,
1210
+ plugins: PLUGINS
1211
+ });
1212
+ }
1213
+ return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(maxDepth / 2), maxWidth) : result.length >= MAX_LENGTH && maxWidth > 1 ? stringify(object, maxDepth, Math.floor(maxWidth / 2)) : result;
1214
+ }
1215
+ function replaceTrailingSpaces(text) {
1216
+ return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));
1217
+ }
1218
+ function printReceived(object) {
1219
+ return RECEIVED_COLOR(replaceTrailingSpaces(stringify(object)));
1220
+ }
1221
+ function matcherHint(matcherName, received = "received", expected = "expected", options = {}) {
1222
+ let {
1223
+ comment = "",
1224
+ expectedColor = EXPECTED_COLOR,
1225
+ isDirectExpectCall = !1,
1226
+ isNot = !1,
1227
+ promise = "",
1228
+ receivedColor = RECEIVED_COLOR,
1229
+ secondArgument = "",
1230
+ secondArgumentColor = EXPECTED_COLOR
1231
+ } = options, hint = "", dimString = "expect";
1232
+ 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;
1233
+ }
1234
+
1235
+ // ../../node_modules/vitest-axe/dist/matchers.js
1236
+ function toHaveNoViolations(results) {
1237
+ if (typeof results.violations > "u")
1238
+ throw new Error("No violations found in aXe results object");
1239
+ let violations = filterViolations(results.violations, results.toolOptions ? results.toolOptions.impactLevels : []);
1240
+ function reporter(violations2) {
1241
+ if (violations2.length === 0)
1242
+ return [];
1243
+ let lineBreak = `
1244
+
1245
+ `;
1246
+ return violations2.map((violation) => violation.nodes.map((node) => `Expected the HTML found at $('${node.target.join(", ")}') to have no violations:` + lineBreak + source_default.grey(node.html) + lineBreak + "Received:" + lineBreak + printReceived(`${violation.help} (${violation.id})`) + lineBreak + source_default.yellow(node.failureSummary) + lineBreak + (violation.helpUrl ? `You can find more information on this issue here:
1247
+ ${source_default.blue(violation.helpUrl)}` : "")).join(lineBreak)).join(lineBreak + "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500" + lineBreak);
1248
+ }
1249
+ let formatedViolations = reporter(violations), pass = formatedViolations.length === 0;
1250
+ function message() {
1251
+ if (!pass)
1252
+ return matcherHint(".toHaveNoViolations") + `
1253
+
1254
+ ${formatedViolations}`;
1255
+ }
1256
+ return { actual: violations, message, pass };
1257
+ }
1258
+ function filterViolations(violations, impactLevels) {
1259
+ return impactLevels && impactLevels.length > 0 ? violations.filter((v) => impactLevels.includes(v.impact)) : violations;
1260
+ }
1261
+ export {
1262
+ toHaveNoViolations
1263
+ };