@uva-glass/component-library 3.0.3 → 3.0.5

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.
Files changed (121) hide show
  1. package/dist/{Lexical.prod-CQl7J8uU.js → Lexical.prod-DTADK2yJ.js} +1498 -1471
  2. package/dist/Lexical.prod-DTADK2yJ.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-Dx5Fm6e5.js +258 -0
  4. package/dist/LexicalClipboard.prod-Dx5Fm6e5.js.map +1 -0
  5. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js → LexicalComposerContext.prod-BCXERl09.js} +6 -7
  6. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js.map → LexicalComposerContext.prod-BCXERl09.js.map} +1 -1
  7. package/dist/{LexicalLink.prod-D8-zZW0o.js → LexicalLink.prod-JpC4y56U.js} +25 -25
  8. package/dist/LexicalLink.prod-JpC4y56U.js.map +1 -0
  9. package/dist/LexicalList.prod-w0kSq9sB.js +579 -0
  10. package/dist/LexicalList.prod-w0kSq9sB.js.map +1 -0
  11. package/dist/LexicalSelection.prod-DQLHaigk.js +78 -0
  12. package/dist/LexicalSelection.prod-DQLHaigk.js.map +1 -0
  13. package/dist/{LexicalTable.prod-BvJxbarH.js → LexicalTable.prod-DjfZc87j.js} +352 -334
  14. package/dist/LexicalTable.prod-DjfZc87j.js.map +1 -0
  15. package/dist/{LexicalUtils.prod-D9KKqgU7.js → LexicalUtils.prod-BBwue2Aj.js} +39 -39
  16. package/dist/LexicalUtils.prod-BBwue2Aj.js.map +1 -0
  17. package/dist/{SortableProvider-RaH_ZXB3.js → SortableProvider-Ck_XnBVq.js} +10 -10
  18. package/dist/{SortableProvider-RaH_ZXB3.js.map → SortableProvider-Ck_XnBVq.js.map} +1 -1
  19. package/dist/{TablePlugin-CPEwD-wi.js → TablePlugin-Co5vgBHF.js} +87 -88
  20. package/dist/{TablePlugin-CPEwD-wi.js.map → TablePlugin-Co5vgBHF.js.map} +1 -1
  21. package/dist/__mocks__/fileMock.d.ts +2 -0
  22. package/dist/__mocks__/svgrMock.d.ts +3 -0
  23. package/dist/__mocks__/svgrMock.js +10 -0
  24. package/dist/__mocks__/svgrMock.js.map +1 -0
  25. package/dist/client-CTOhtEms.js +33 -0
  26. package/dist/client-CTOhtEms.js.map +1 -0
  27. package/dist/components/AccordionCard/AccordionCard.stories.js +1 -1
  28. package/dist/components/Buttons/Button.stories.js +2 -2
  29. package/dist/components/Buttons/LinkButton.stories.js +2 -2
  30. package/dist/components/Buttons/MenuButton.stories.js +2 -2
  31. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  32. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  33. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  34. package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
  35. package/dist/components/CheckboxTree/CheckboxTree.stories.js +11 -11
  36. package/dist/components/Chip/Chip.stories.js +1 -1
  37. package/dist/components/Drawer/Drawer.stories.js +1 -1
  38. package/dist/components/FormInput/FormInput.js +3 -3
  39. package/dist/components/FormInput/FormInput.stories.js +1 -1
  40. package/dist/components/IconButton/IconButton.stories.js +1 -1
  41. package/dist/components/InputField/InputField.stories.js +3 -3
  42. package/dist/components/Label/Label.test.d.ts +0 -0
  43. package/dist/components/Label/Label.test.js +4257 -0
  44. package/dist/components/Label/Label.test.js.map +1 -0
  45. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  46. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  47. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  48. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  49. package/dist/components/MultiSelect/index.js +1 -1
  50. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  51. package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -2
  52. package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
  53. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  54. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +4 -4
  55. package/dist/components/Repeater/Repeater.stories.js +1 -1
  56. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
  57. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
  58. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  59. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
  60. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  61. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +48 -48
  62. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  63. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +28 -28
  64. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +8 -8
  65. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
  66. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
  67. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
  68. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +20 -20
  69. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  70. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +15 -15
  71. package/dist/components/RteEditor/Plugins/index.js +1 -1
  72. package/dist/components/RteEditor/Providers/LanguageProvider.js +3 -3
  73. package/dist/components/RteEditor/RteEditor.js +454 -454
  74. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  75. package/dist/components/RteEditor/helpers.js +4 -4
  76. package/dist/components/RteEditor/hooks/components/Flyout.js +12 -13
  77. package/dist/components/RteEditor/hooks/components/Flyout.js.map +1 -1
  78. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  79. package/dist/components/SelectListbox/SelectListbox.js +8 -9
  80. package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
  81. package/dist/components/SelectListbox/SelectProvider.js +3 -3
  82. package/dist/components/Sortable/Sortable.js +1 -1
  83. package/dist/components/Sortable/Sortable.stories.js +1 -1
  84. package/dist/components/Sortable/SortableProvider.js +1 -1
  85. package/dist/components/Sortable/actions.js +8 -8
  86. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  87. package/dist/components/Sortable/components/SortableItem.js +1 -1
  88. package/dist/components/Spinner/Spinner.js +11 -12
  89. package/dist/components/Spinner/Spinner.js.map +1 -1
  90. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  91. package/dist/components/index.js +1 -1
  92. package/dist/{helpers-C_Mib4v3.js → helpers-DgTW1vIO.js} +33 -33
  93. package/dist/{helpers-C_Mib4v3.js.map → helpers-DgTW1vIO.js.map} +1 -1
  94. package/dist/index-BqHyOZsF.js +10322 -0
  95. package/dist/index-BqHyOZsF.js.map +1 -0
  96. package/dist/{index-Sh2oo6_C.js → index-DkNZhwJb.js} +399 -392
  97. package/dist/index-DkNZhwJb.js.map +1 -0
  98. package/dist/index.js +1 -1
  99. package/dist/react-18-CcyoHPTJ.js +38 -0
  100. package/dist/react-18-CcyoHPTJ.js.map +1 -0
  101. package/dist/setupTests.d.ts +0 -0
  102. package/dist/setupTests.js +1573 -0
  103. package/dist/setupTests.js.map +1 -0
  104. package/dist/storybook__react.d.js +538 -1657
  105. package/dist/storybook__react.d.js.map +1 -1
  106. package/dist/test-utils-CTqdUiUm.js +1126 -0
  107. package/dist/test-utils-CTqdUiUm.js.map +1 -0
  108. package/package.json +52 -33
  109. package/dist/Lexical.prod-CQl7J8uU.js.map +0 -1
  110. package/dist/LexicalClipboard.prod-C48GDxiy.js +0 -258
  111. package/dist/LexicalClipboard.prod-C48GDxiy.js.map +0 -1
  112. package/dist/LexicalLink.prod-D8-zZW0o.js.map +0 -1
  113. package/dist/LexicalList.prod-B4_DTbPB.js +0 -576
  114. package/dist/LexicalList.prod-B4_DTbPB.js.map +0 -1
  115. package/dist/LexicalSelection.prod-BU3GAQB4.js +0 -86
  116. package/dist/LexicalSelection.prod-BU3GAQB4.js.map +0 -1
  117. package/dist/LexicalTable.prod-BvJxbarH.js.map +0 -1
  118. package/dist/LexicalUtils.prod-D9KKqgU7.js.map +0 -1
  119. package/dist/index-Sh2oo6_C.js.map +0 -1
  120. package/dist/react-18-C9Y1Flwa.js +0 -65
  121. package/dist/react-18-C9Y1Flwa.js.map +0 -1
@@ -0,0 +1,4257 @@
1
+ var Fr = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
2
+ import { jsx as De } from "react/jsx-runtime";
3
+ import { g as $r, l as Y } from "../../index-BqHyOZsF.js";
4
+ import * as Ie from "react";
5
+ import { t as zr } from "../../test-utils-CTqdUiUm.js";
6
+ import ze from "react-dom";
7
+ import { c as _t } from "../../client-CTOhtEms.js";
8
+ import { Label as qe } from "./Label.js";
9
+ var ba = Fr((wa, he) => {
10
+ var Q = {}, Ue = { exports: {} };
11
+ Ue.exports;
12
+ var Rt;
13
+ function ar() {
14
+ return Rt || (Rt = 1, function(e) {
15
+ const r = (f = 0) => (u) => `\x1B[${38 + f};5;${u}m`, o = (f = 0) => (u, p, n) => `\x1B[${38 + f};2;${u};${p};${n}m`;
16
+ function s() {
17
+ const f = /* @__PURE__ */ new Map(), u = {
18
+ modifier: {
19
+ reset: [0, 0],
20
+ // 21 isn't widely supported and 22 does the same thing
21
+ bold: [1, 22],
22
+ dim: [2, 22],
23
+ italic: [3, 23],
24
+ underline: [4, 24],
25
+ overline: [53, 55],
26
+ inverse: [7, 27],
27
+ hidden: [8, 28],
28
+ strikethrough: [9, 29]
29
+ },
30
+ color: {
31
+ black: [30, 39],
32
+ red: [31, 39],
33
+ green: [32, 39],
34
+ yellow: [33, 39],
35
+ blue: [34, 39],
36
+ magenta: [35, 39],
37
+ cyan: [36, 39],
38
+ white: [37, 39],
39
+ // Bright color
40
+ blackBright: [90, 39],
41
+ redBright: [91, 39],
42
+ greenBright: [92, 39],
43
+ yellowBright: [93, 39],
44
+ blueBright: [94, 39],
45
+ magentaBright: [95, 39],
46
+ cyanBright: [96, 39],
47
+ whiteBright: [97, 39]
48
+ },
49
+ bgColor: {
50
+ bgBlack: [40, 49],
51
+ bgRed: [41, 49],
52
+ bgGreen: [42, 49],
53
+ bgYellow: [43, 49],
54
+ bgBlue: [44, 49],
55
+ bgMagenta: [45, 49],
56
+ bgCyan: [46, 49],
57
+ bgWhite: [47, 49],
58
+ // Bright color
59
+ bgBlackBright: [100, 49],
60
+ bgRedBright: [101, 49],
61
+ bgGreenBright: [102, 49],
62
+ bgYellowBright: [103, 49],
63
+ bgBlueBright: [104, 49],
64
+ bgMagentaBright: [105, 49],
65
+ bgCyanBright: [106, 49],
66
+ bgWhiteBright: [107, 49]
67
+ }
68
+ };
69
+ u.color.gray = u.color.blackBright, u.bgColor.bgGray = u.bgColor.bgBlackBright, u.color.grey = u.color.blackBright, u.bgColor.bgGrey = u.bgColor.bgBlackBright;
70
+ for (const [p, n] of Object.entries(u)) {
71
+ for (const [a, l] of Object.entries(n))
72
+ u[a] = {
73
+ open: `\x1B[${l[0]}m`,
74
+ close: `\x1B[${l[1]}m`
75
+ }, n[a] = u[a], f.set(l[0], l[1]);
76
+ Object.defineProperty(u, p, {
77
+ value: n,
78
+ enumerable: !1
79
+ });
80
+ }
81
+ return Object.defineProperty(u, "codes", {
82
+ value: f,
83
+ enumerable: !1
84
+ }), u.color.close = "\x1B[39m", u.bgColor.close = "\x1B[49m", u.color.ansi256 = r(), u.color.ansi16m = o(), u.bgColor.ansi256 = r(10), u.bgColor.ansi16m = o(10), Object.defineProperties(u, {
85
+ rgbToAnsi256: {
86
+ value: (p, n, a) => p === n && n === a ? p < 8 ? 16 : p > 248 ? 231 : Math.round((p - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(p / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(a / 255 * 5),
87
+ enumerable: !1
88
+ },
89
+ hexToRgb: {
90
+ value: (p) => {
91
+ const n = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(p.toString(16));
92
+ if (!n)
93
+ return [0, 0, 0];
94
+ let { colorString: a } = n.groups;
95
+ a.length === 3 && (a = a.split("").map((i) => i + i).join(""));
96
+ const l = Number.parseInt(a, 16);
97
+ return [
98
+ l >> 16 & 255,
99
+ l >> 8 & 255,
100
+ l & 255
101
+ ];
102
+ },
103
+ enumerable: !1
104
+ },
105
+ hexToAnsi256: {
106
+ value: (p) => u.rgbToAnsi256(...u.hexToRgb(p)),
107
+ enumerable: !1
108
+ }
109
+ }), u;
110
+ }
111
+ Object.defineProperty(e, "exports", {
112
+ enumerable: !0,
113
+ get: s
114
+ });
115
+ }(Ue)), Ue.exports;
116
+ }
117
+ var pe = {}, Bt;
118
+ function Je() {
119
+ if (Bt) return pe;
120
+ Bt = 1, Object.defineProperty(pe, "__esModule", {
121
+ value: !0
122
+ }), pe.printIteratorEntries = t, pe.printIteratorValues = r, pe.printListItems = o, pe.printObjectProperties = s;
123
+ const e = (f, u) => {
124
+ const p = Object.keys(f).sort(u);
125
+ return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(f).forEach((n) => {
126
+ Object.getOwnPropertyDescriptor(f, n).enumerable && p.push(n);
127
+ }), p;
128
+ };
129
+ function t(f, u, p, n, a, l, i = ": ") {
130
+ let d = "", m = f.next();
131
+ if (!m.done) {
132
+ d += u.spacingOuter;
133
+ const E = p + u.indent;
134
+ for (; !m.done; ) {
135
+ const h = l(
136
+ m.value[0],
137
+ u,
138
+ E,
139
+ n,
140
+ a
141
+ ), w = l(
142
+ m.value[1],
143
+ u,
144
+ E,
145
+ n,
146
+ a
147
+ );
148
+ d += E + h + i + w, m = f.next(), m.done ? u.min || (d += ",") : d += "," + u.spacingInner;
149
+ }
150
+ d += u.spacingOuter + p;
151
+ }
152
+ return d;
153
+ }
154
+ function r(f, u, p, n, a, l) {
155
+ let i = "", d = f.next();
156
+ if (!d.done) {
157
+ i += u.spacingOuter;
158
+ const m = p + u.indent;
159
+ for (; !d.done; )
160
+ i += m + l(d.value, u, m, n, a), d = f.next(), d.done ? u.min || (i += ",") : i += "," + u.spacingInner;
161
+ i += u.spacingOuter + p;
162
+ }
163
+ return i;
164
+ }
165
+ function o(f, u, p, n, a, l) {
166
+ let i = "";
167
+ if (f.length) {
168
+ i += u.spacingOuter;
169
+ const d = p + u.indent;
170
+ for (let m = 0; m < f.length; m++)
171
+ i += d, m in f && (i += l(f[m], u, d, n, a)), m < f.length - 1 ? i += "," + u.spacingInner : u.min || (i += ",");
172
+ i += u.spacingOuter + p;
173
+ }
174
+ return i;
175
+ }
176
+ function s(f, u, p, n, a, l) {
177
+ let i = "";
178
+ const d = e(f, u.compareKeys);
179
+ if (d.length) {
180
+ i += u.spacingOuter;
181
+ const m = p + u.indent;
182
+ for (let E = 0; E < d.length; E++) {
183
+ const h = d[E], w = l(h, u, m, n, a), c = l(f[h], u, m, n, a);
184
+ i += m + w + ": " + c, E < d.length - 1 ? i += "," + u.spacingInner : u.min || (i += ",");
185
+ }
186
+ i += u.spacingOuter + p;
187
+ }
188
+ return i;
189
+ }
190
+ return pe;
191
+ }
192
+ var Z = {}, Nt;
193
+ function Ur() {
194
+ if (Nt) return Z;
195
+ Nt = 1, Object.defineProperty(Z, "__esModule", {
196
+ value: !0
197
+ }), Z.test = Z.serialize = Z.default = void 0;
198
+ var e = Je(), t = function() {
199
+ return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
200
+ }(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
201
+ const o = typeof r == "function" && r.for ? r.for("jest.asymmetricMatcher") : 1267621, s = " ", f = (a, l, i, d, m, E) => {
202
+ const h = a.toString();
203
+ return h === "ArrayContaining" || h === "ArrayNotContaining" ? ++d > l.maxDepth ? "[" + h + "]" : h + s + "[" + (0, e.printListItems)(
204
+ a.sample,
205
+ l,
206
+ i,
207
+ d,
208
+ m,
209
+ E
210
+ ) + "]" : h === "ObjectContaining" || h === "ObjectNotContaining" ? ++d > l.maxDepth ? "[" + h + "]" : h + s + "{" + (0, e.printObjectProperties)(
211
+ a.sample,
212
+ l,
213
+ i,
214
+ d,
215
+ m,
216
+ E
217
+ ) + "}" : h === "StringMatching" || h === "StringNotMatching" || h === "StringContaining" || h === "StringNotContaining" ? h + s + E(a.sample, l, i, d, m) : a.toAsymmetricMatcher();
218
+ };
219
+ Z.serialize = f;
220
+ const u = (a) => a && a.$$typeof === o;
221
+ Z.test = u;
222
+ var n = {
223
+ serialize: f,
224
+ test: u
225
+ };
226
+ return Z.default = n, Z;
227
+ }
228
+ var ee = {}, nt, Pt;
229
+ function Wr() {
230
+ return Pt || (Pt = 1, nt = ({ onlyFirst: e = !1 } = {}) => {
231
+ const t = [
232
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
233
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
234
+ ].join("|");
235
+ return new RegExp(t, e ? void 0 : "g");
236
+ }), nt;
237
+ }
238
+ var Lt;
239
+ function Hr() {
240
+ if (Lt) return ee;
241
+ Lt = 1, Object.defineProperty(ee, "__esModule", {
242
+ value: !0
243
+ }), ee.test = ee.serialize = ee.default = void 0;
244
+ var e = r(Wr()), t = r(ar());
245
+ function r(n) {
246
+ return n && n.__esModule ? n : { default: n };
247
+ }
248
+ const o = (n) => n.replace((0, e.default)(), (a) => {
249
+ switch (a) {
250
+ case t.default.red.close:
251
+ case t.default.green.close:
252
+ case t.default.cyan.close:
253
+ case t.default.gray.close:
254
+ case t.default.white.close:
255
+ case t.default.yellow.close:
256
+ case t.default.bgRed.close:
257
+ case t.default.bgGreen.close:
258
+ case t.default.bgYellow.close:
259
+ case t.default.inverse.close:
260
+ case t.default.dim.close:
261
+ case t.default.bold.close:
262
+ case t.default.reset.open:
263
+ case t.default.reset.close:
264
+ return "</>";
265
+ case t.default.red.open:
266
+ return "<red>";
267
+ case t.default.green.open:
268
+ return "<green>";
269
+ case t.default.cyan.open:
270
+ return "<cyan>";
271
+ case t.default.gray.open:
272
+ return "<gray>";
273
+ case t.default.white.open:
274
+ return "<white>";
275
+ case t.default.yellow.open:
276
+ return "<yellow>";
277
+ case t.default.bgRed.open:
278
+ return "<bgRed>";
279
+ case t.default.bgGreen.open:
280
+ return "<bgGreen>";
281
+ case t.default.bgYellow.open:
282
+ return "<bgYellow>";
283
+ case t.default.inverse.open:
284
+ return "<inverse>";
285
+ case t.default.dim.open:
286
+ return "<dim>";
287
+ case t.default.bold.open:
288
+ return "<bold>";
289
+ default:
290
+ return "";
291
+ }
292
+ }), s = (n) => typeof n == "string" && !!n.match((0, e.default)());
293
+ ee.test = s;
294
+ const f = (n, a, l, i, d, m) => m(o(n), a, l, i, d);
295
+ ee.serialize = f;
296
+ var p = {
297
+ serialize: f,
298
+ test: s
299
+ };
300
+ return ee.default = p, ee;
301
+ }
302
+ var te = {}, Dt;
303
+ function Vr() {
304
+ if (Dt) return te;
305
+ Dt = 1, Object.defineProperty(te, "__esModule", {
306
+ value: !0
307
+ }), te.test = te.serialize = te.default = void 0;
308
+ var e = Je();
309
+ const t = " ", r = ["DOMStringMap", "NamedNodeMap"], o = /^(HTML\w*Collection|NodeList)$/, s = (l) => r.indexOf(l) !== -1 || o.test(l), f = (l) => l && l.constructor && !!l.constructor.name && s(l.constructor.name);
310
+ te.test = f;
311
+ const u = (l) => l.constructor.name === "NamedNodeMap", p = (l, i, d, m, E, h) => {
312
+ const w = l.constructor.name;
313
+ return ++m > i.maxDepth ? "[" + w + "]" : (i.min ? "" : w + t) + (r.indexOf(w) !== -1 ? "{" + (0, e.printObjectProperties)(
314
+ u(l) ? Array.from(l).reduce((c, A) => (c[A.name] = A.value, c), {}) : { ...l },
315
+ i,
316
+ d,
317
+ m,
318
+ E,
319
+ h
320
+ ) + "}" : "[" + (0, e.printListItems)(
321
+ Array.from(l),
322
+ i,
323
+ d,
324
+ m,
325
+ E,
326
+ h
327
+ ) + "]");
328
+ };
329
+ te.serialize = p;
330
+ var a = {
331
+ serialize: p,
332
+ test: f
333
+ };
334
+ return te.default = a, te;
335
+ }
336
+ var re = {}, H = {}, je = {}, qt;
337
+ function Gr() {
338
+ if (qt) return je;
339
+ qt = 1, Object.defineProperty(je, "__esModule", {
340
+ value: !0
341
+ }), je.default = e;
342
+ function e(t) {
343
+ return t.replace(/</g, "&lt;").replace(/>/g, "&gt;");
344
+ }
345
+ return je;
346
+ }
347
+ var jt;
348
+ function wt() {
349
+ if (jt) return H;
350
+ jt = 1, Object.defineProperty(H, "__esModule", {
351
+ value: !0
352
+ }), H.printText = H.printProps = H.printElementAsLeaf = H.printElement = H.printComment = H.printChildren = void 0;
353
+ var e = t(Gr());
354
+ function t(n) {
355
+ return n && n.__esModule ? n : { default: n };
356
+ }
357
+ const r = (n, a, l, i, d, m, E) => {
358
+ const h = i + l.indent, w = l.colors;
359
+ return n.map((c) => {
360
+ const A = a[c];
361
+ let I = E(A, l, h, d, m);
362
+ return typeof A != "string" && (I.indexOf(`
363
+ `) !== -1 && (I = l.spacingOuter + h + I + l.spacingOuter + i), I = "{" + I + "}"), l.spacingInner + i + w.prop.open + c + w.prop.close + "=" + w.value.open + I + w.value.close;
364
+ }).join("");
365
+ };
366
+ H.printProps = r;
367
+ const o = (n, a, l, i, d, m) => n.map(
368
+ (E) => a.spacingOuter + l + (typeof E == "string" ? s(E, a) : m(E, a, l, i, d))
369
+ ).join("");
370
+ H.printChildren = o;
371
+ const s = (n, a) => {
372
+ const l = a.colors.content;
373
+ return l.open + (0, e.default)(n) + l.close;
374
+ };
375
+ H.printText = s;
376
+ const f = (n, a) => {
377
+ const l = a.colors.comment;
378
+ return l.open + "<!--" + (0, e.default)(n) + "-->" + l.close;
379
+ };
380
+ H.printComment = f;
381
+ const u = (n, a, l, i, d) => {
382
+ const m = i.colors.tag;
383
+ return m.open + "<" + n + (a && m.close + a + i.spacingOuter + d + m.open) + (l ? ">" + m.close + l + i.spacingOuter + d + m.open + "</" + n : (a && !i.min ? "" : " ") + "/") + ">" + m.close;
384
+ };
385
+ H.printElement = u;
386
+ const p = (n, a) => {
387
+ const l = a.colors.tag;
388
+ return l.open + "<" + n + l.close + " …" + l.open + " />" + l.close;
389
+ };
390
+ return H.printElementAsLeaf = p, H;
391
+ }
392
+ var kt;
393
+ function Yr() {
394
+ if (kt) return re;
395
+ kt = 1, Object.defineProperty(re, "__esModule", {
396
+ value: !0
397
+ }), re.test = re.serialize = re.default = void 0;
398
+ var e = wt();
399
+ const t = 1, r = 3, o = 8, s = 11, f = /^((HTML|SVG)\w*)?Element$/, u = (h) => {
400
+ try {
401
+ return typeof h.hasAttribute == "function" && h.hasAttribute("is");
402
+ } catch {
403
+ return !1;
404
+ }
405
+ }, p = (h) => {
406
+ const w = h.constructor.name, { nodeType: c, tagName: A } = h, I = typeof A == "string" && A.includes("-") || u(h);
407
+ return c === t && (f.test(w) || I) || c === r && w === "Text" || c === o && w === "Comment" || c === s && w === "DocumentFragment";
408
+ }, n = (h) => {
409
+ var w;
410
+ return (h == null || (w = h.constructor) === null || w === void 0 ? void 0 : w.name) && p(h);
411
+ };
412
+ re.test = n;
413
+ function a(h) {
414
+ return h.nodeType === r;
415
+ }
416
+ function l(h) {
417
+ return h.nodeType === o;
418
+ }
419
+ function i(h) {
420
+ return h.nodeType === s;
421
+ }
422
+ const d = (h, w, c, A, I, x) => {
423
+ if (a(h))
424
+ return (0, e.printText)(h.data, w);
425
+ if (l(h))
426
+ return (0, e.printComment)(h.data, w);
427
+ const M = i(h) ? "DocumentFragment" : h.tagName.toLowerCase();
428
+ return ++A > w.maxDepth ? (0, e.printElementAsLeaf)(M, w) : (0, e.printElement)(
429
+ M,
430
+ (0, e.printProps)(
431
+ i(h) ? [] : Array.from(h.attributes).map((y) => y.name).sort(),
432
+ i(h) ? {} : Array.from(h.attributes).reduce((y, g) => (y[g.name] = g.value, y), {}),
433
+ w,
434
+ c + w.indent,
435
+ A,
436
+ I,
437
+ x
438
+ ),
439
+ (0, e.printChildren)(
440
+ Array.prototype.slice.call(h.childNodes || h.children),
441
+ w,
442
+ c + w.indent,
443
+ A,
444
+ I,
445
+ x
446
+ ),
447
+ w,
448
+ c
449
+ );
450
+ };
451
+ re.serialize = d;
452
+ var E = {
453
+ serialize: d,
454
+ test: n
455
+ };
456
+ return re.default = E, re;
457
+ }
458
+ var ne = {}, Ft;
459
+ function Kr() {
460
+ if (Ft) return ne;
461
+ Ft = 1, Object.defineProperty(ne, "__esModule", {
462
+ value: !0
463
+ }), ne.test = ne.serialize = ne.default = void 0;
464
+ var e = Je();
465
+ const t = "@@__IMMUTABLE_ITERABLE__@@", r = "@@__IMMUTABLE_LIST__@@", o = "@@__IMMUTABLE_KEYED__@@", s = "@@__IMMUTABLE_MAP__@@", f = "@@__IMMUTABLE_ORDERED__@@", u = "@@__IMMUTABLE_RECORD__@@", p = "@@__IMMUTABLE_SEQ__@@", n = "@@__IMMUTABLE_SET__@@", a = "@@__IMMUTABLE_STACK__@@", l = (g) => "Immutable." + g, i = (g) => "[" + g + "]", d = " ", m = "…", E = (g, v, _, R, B, N, S) => ++R > v.maxDepth ? i(l(S)) : l(S) + d + "{" + (0, e.printIteratorEntries)(
466
+ g.entries(),
467
+ v,
468
+ _,
469
+ R,
470
+ B,
471
+ N
472
+ ) + "}";
473
+ function h(g) {
474
+ let v = 0;
475
+ return {
476
+ next() {
477
+ if (v < g._keys.length) {
478
+ const _ = g._keys[v++];
479
+ return {
480
+ done: !1,
481
+ value: [_, g.get(_)]
482
+ };
483
+ }
484
+ return {
485
+ done: !0,
486
+ value: void 0
487
+ };
488
+ }
489
+ };
490
+ }
491
+ const w = (g, v, _, R, B, N) => {
492
+ const S = l(g._name || "Record");
493
+ return ++R > v.maxDepth ? i(S) : S + d + "{" + (0, e.printIteratorEntries)(
494
+ h(g),
495
+ v,
496
+ _,
497
+ R,
498
+ B,
499
+ N
500
+ ) + "}";
501
+ }, c = (g, v, _, R, B, N) => {
502
+ const S = l("Seq");
503
+ return ++R > v.maxDepth ? i(S) : g[o] ? S + d + "{" + // from Immutable collection of entries or from ECMAScript object
504
+ (g._iter || g._object ? (0, e.printIteratorEntries)(
505
+ g.entries(),
506
+ v,
507
+ _,
508
+ R,
509
+ B,
510
+ N
511
+ ) : m) + "}" : S + d + "[" + (g._iter || // from Immutable collection of values
512
+ g._array || // from ECMAScript array
513
+ g._collection || // from ECMAScript collection in immutable v4
514
+ g._iterable ? (0, e.printIteratorValues)(
515
+ g.values(),
516
+ v,
517
+ _,
518
+ R,
519
+ B,
520
+ N
521
+ ) : m) + "]";
522
+ }, A = (g, v, _, R, B, N, S) => ++R > v.maxDepth ? i(l(S)) : l(S) + d + "[" + (0, e.printIteratorValues)(
523
+ g.values(),
524
+ v,
525
+ _,
526
+ R,
527
+ B,
528
+ N
529
+ ) + "]", I = (g, v, _, R, B, N) => g[s] ? E(
530
+ g,
531
+ v,
532
+ _,
533
+ R,
534
+ B,
535
+ N,
536
+ g[f] ? "OrderedMap" : "Map"
537
+ ) : g[r] ? A(
538
+ g,
539
+ v,
540
+ _,
541
+ R,
542
+ B,
543
+ N,
544
+ "List"
545
+ ) : g[n] ? A(
546
+ g,
547
+ v,
548
+ _,
549
+ R,
550
+ B,
551
+ N,
552
+ g[f] ? "OrderedSet" : "Set"
553
+ ) : g[a] ? A(
554
+ g,
555
+ v,
556
+ _,
557
+ R,
558
+ B,
559
+ N,
560
+ "Stack"
561
+ ) : g[p] ? c(g, v, _, R, B, N) : w(g, v, _, R, B, N);
562
+ ne.serialize = I;
563
+ const x = (g) => g && (g[t] === !0 || g[u] === !0);
564
+ ne.test = x;
565
+ var y = {
566
+ serialize: I,
567
+ test: x
568
+ };
569
+ return ne.default = y, ne;
570
+ }
571
+ var ie = {}, ke = { exports: {} }, D = {};
572
+ /** @license React v17.0.2
573
+ * react-is.production.min.js
574
+ *
575
+ * Copyright (c) Facebook, Inc. and its affiliates.
576
+ *
577
+ * This source code is licensed under the MIT license found in the
578
+ * LICENSE file in the root directory of this source tree.
579
+ */
580
+ var $t;
581
+ function Jr() {
582
+ if ($t) return D;
583
+ $t = 1;
584
+ var e = 60103, t = 60106, r = 60107, o = 60108, s = 60114, f = 60109, u = 60110, p = 60112, n = 60113, a = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
585
+ if (typeof Symbol == "function" && Symbol.for) {
586
+ var c = Symbol.for;
587
+ e = c("react.element"), t = c("react.portal"), r = c("react.fragment"), o = c("react.strict_mode"), s = c("react.profiler"), f = c("react.provider"), u = c("react.context"), p = c("react.forward_ref"), n = c("react.suspense"), a = c("react.suspense_list"), l = c("react.memo"), i = c("react.lazy"), d = c("react.block"), m = c("react.server.block"), E = c("react.fundamental"), h = c("react.debug_trace_mode"), w = c("react.legacy_hidden");
588
+ }
589
+ function A(S) {
590
+ if (typeof S == "object" && S !== null) {
591
+ var C = S.$$typeof;
592
+ switch (C) {
593
+ case e:
594
+ switch (S = S.type, S) {
595
+ case r:
596
+ case s:
597
+ case o:
598
+ case n:
599
+ case a:
600
+ return S;
601
+ default:
602
+ switch (S = S && S.$$typeof, S) {
603
+ case u:
604
+ case p:
605
+ case i:
606
+ case l:
607
+ case f:
608
+ return S;
609
+ default:
610
+ return C;
611
+ }
612
+ }
613
+ case t:
614
+ return C;
615
+ }
616
+ }
617
+ }
618
+ var I = f, x = e, M = p, y = r, g = i, v = l, _ = t, R = s, B = o, N = n;
619
+ return D.ContextConsumer = u, D.ContextProvider = I, D.Element = x, D.ForwardRef = M, D.Fragment = y, D.Lazy = g, D.Memo = v, D.Portal = _, D.Profiler = R, D.StrictMode = B, D.Suspense = N, D.isAsyncMode = function() {
620
+ return !1;
621
+ }, D.isConcurrentMode = function() {
622
+ return !1;
623
+ }, D.isContextConsumer = function(S) {
624
+ return A(S) === u;
625
+ }, D.isContextProvider = function(S) {
626
+ return A(S) === f;
627
+ }, D.isElement = function(S) {
628
+ return typeof S == "object" && S !== null && S.$$typeof === e;
629
+ }, D.isForwardRef = function(S) {
630
+ return A(S) === p;
631
+ }, D.isFragment = function(S) {
632
+ return A(S) === r;
633
+ }, D.isLazy = function(S) {
634
+ return A(S) === i;
635
+ }, D.isMemo = function(S) {
636
+ return A(S) === l;
637
+ }, D.isPortal = function(S) {
638
+ return A(S) === t;
639
+ }, D.isProfiler = function(S) {
640
+ return A(S) === s;
641
+ }, D.isStrictMode = function(S) {
642
+ return A(S) === o;
643
+ }, D.isSuspense = function(S) {
644
+ return A(S) === n;
645
+ }, D.isValidElementType = function(S) {
646
+ return typeof S == "string" || typeof S == "function" || S === r || S === s || S === h || S === o || S === n || S === a || S === w || typeof S == "object" && S !== null && (S.$$typeof === i || S.$$typeof === l || S.$$typeof === f || S.$$typeof === u || S.$$typeof === p || S.$$typeof === E || S.$$typeof === d || S[0] === m);
647
+ }, D.typeOf = A, D;
648
+ }
649
+ var q = {};
650
+ /** @license React v17.0.2
651
+ * react-is.development.js
652
+ *
653
+ * Copyright (c) Facebook, Inc. and its affiliates.
654
+ *
655
+ * This source code is licensed under the MIT license found in the
656
+ * LICENSE file in the root directory of this source tree.
657
+ */
658
+ var zt;
659
+ function Qr() {
660
+ return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
661
+ var e = 60103, t = 60106, r = 60107, o = 60108, s = 60114, f = 60109, u = 60110, p = 60112, n = 60113, a = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
662
+ if (typeof Symbol == "function" && Symbol.for) {
663
+ var c = Symbol.for;
664
+ e = c("react.element"), t = c("react.portal"), r = c("react.fragment"), o = c("react.strict_mode"), s = c("react.profiler"), f = c("react.provider"), u = c("react.context"), p = c("react.forward_ref"), n = c("react.suspense"), a = c("react.suspense_list"), l = c("react.memo"), i = c("react.lazy"), d = c("react.block"), m = c("react.server.block"), E = c("react.fundamental"), c("react.scope"), c("react.opaque.id"), h = c("react.debug_trace_mode"), c("react.offscreen"), w = c("react.legacy_hidden");
665
+ }
666
+ var A = !1;
667
+ function I(T) {
668
+ return !!(typeof T == "string" || typeof T == "function" || T === r || T === s || T === h || T === o || T === n || T === a || T === w || A || typeof T == "object" && T !== null && (T.$$typeof === i || T.$$typeof === l || T.$$typeof === f || T.$$typeof === u || T.$$typeof === p || T.$$typeof === E || T.$$typeof === d || T[0] === m));
669
+ }
670
+ function x(T) {
671
+ if (typeof T == "object" && T !== null) {
672
+ var L = T.$$typeof;
673
+ switch (L) {
674
+ case e:
675
+ var P = T.type;
676
+ switch (P) {
677
+ case r:
678
+ case s:
679
+ case o:
680
+ case n:
681
+ case a:
682
+ return P;
683
+ default:
684
+ var z = P && P.$$typeof;
685
+ switch (z) {
686
+ case u:
687
+ case p:
688
+ case i:
689
+ case l:
690
+ case f:
691
+ return z;
692
+ default:
693
+ return L;
694
+ }
695
+ }
696
+ case t:
697
+ return L;
698
+ }
699
+ }
700
+ }
701
+ var M = u, y = f, g = e, v = p, _ = r, R = i, B = l, N = t, S = s, C = o, U = n, $ = !1, k = !1;
702
+ function X(T) {
703
+ return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
704
+ }
705
+ function Ae(T) {
706
+ return k || (k = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
707
+ }
708
+ function Ze(T) {
709
+ return x(T) === u;
710
+ }
711
+ function Re(T) {
712
+ return x(T) === f;
713
+ }
714
+ function Be(T) {
715
+ return typeof T == "object" && T !== null && T.$$typeof === e;
716
+ }
717
+ function Ne(T) {
718
+ return x(T) === p;
719
+ }
720
+ function Pe(T) {
721
+ return x(T) === r;
722
+ }
723
+ function et(T) {
724
+ return x(T) === i;
725
+ }
726
+ function Le(T) {
727
+ return x(T) === l;
728
+ }
729
+ function tt(T) {
730
+ return x(T) === t;
731
+ }
732
+ function rt(T) {
733
+ return x(T) === s;
734
+ }
735
+ function b(T) {
736
+ return x(T) === o;
737
+ }
738
+ function O(T) {
739
+ return x(T) === n;
740
+ }
741
+ q.ContextConsumer = M, q.ContextProvider = y, q.Element = g, q.ForwardRef = v, q.Fragment = _, q.Lazy = R, q.Memo = B, q.Portal = N, q.Profiler = S, q.StrictMode = C, q.Suspense = U, q.isAsyncMode = X, q.isConcurrentMode = Ae, q.isContextConsumer = Ze, q.isContextProvider = Re, q.isElement = Be, q.isForwardRef = Ne, q.isFragment = Pe, q.isLazy = et, q.isMemo = Le, q.isPortal = tt, q.isProfiler = rt, q.isStrictMode = b, q.isSuspense = O, q.isValidElementType = I, q.typeOf = x;
742
+ }()), q;
743
+ }
744
+ var Ut;
745
+ function Xr() {
746
+ return Ut || (Ut = 1, process.env.NODE_ENV === "production" ? ke.exports = Jr() : ke.exports = Qr()), ke.exports;
747
+ }
748
+ var Wt;
749
+ function Zr() {
750
+ if (Wt) return ie;
751
+ Wt = 1, Object.defineProperty(ie, "__esModule", {
752
+ value: !0
753
+ }), ie.test = ie.serialize = ie.default = void 0;
754
+ var e = o(Xr()), t = wt();
755
+ function r(i) {
756
+ if (typeof WeakMap != "function") return null;
757
+ var d = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
758
+ return (r = function(E) {
759
+ return E ? m : d;
760
+ })(i);
761
+ }
762
+ function o(i, d) {
763
+ if (i && i.__esModule)
764
+ return i;
765
+ if (i === null || typeof i != "object" && typeof i != "function")
766
+ return { default: i };
767
+ var m = r(d);
768
+ if (m && m.has(i))
769
+ return m.get(i);
770
+ var E = {}, h = Object.defineProperty && Object.getOwnPropertyDescriptor;
771
+ for (var w in i)
772
+ if (w !== "default" && Object.prototype.hasOwnProperty.call(i, w)) {
773
+ var c = h ? Object.getOwnPropertyDescriptor(i, w) : null;
774
+ c && (c.get || c.set) ? Object.defineProperty(E, w, c) : E[w] = i[w];
775
+ }
776
+ return E.default = i, m && m.set(i, E), E;
777
+ }
778
+ const s = (i, d = []) => (Array.isArray(i) ? i.forEach((m) => {
779
+ s(m, d);
780
+ }) : i != null && i !== !1 && d.push(i), d), f = (i) => {
781
+ const d = i.type;
782
+ if (typeof d == "string")
783
+ return d;
784
+ if (typeof d == "function")
785
+ return d.displayName || d.name || "Unknown";
786
+ if (e.isFragment(i))
787
+ return "React.Fragment";
788
+ if (e.isSuspense(i))
789
+ return "React.Suspense";
790
+ if (typeof d == "object" && d !== null) {
791
+ if (e.isContextProvider(i))
792
+ return "Context.Provider";
793
+ if (e.isContextConsumer(i))
794
+ return "Context.Consumer";
795
+ if (e.isForwardRef(i)) {
796
+ if (d.displayName)
797
+ return d.displayName;
798
+ const m = d.render.displayName || d.render.name || "";
799
+ return m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef";
800
+ }
801
+ if (e.isMemo(i)) {
802
+ const m = d.displayName || d.type.displayName || d.type.name || "";
803
+ return m !== "" ? "Memo(" + m + ")" : "Memo";
804
+ }
805
+ }
806
+ return "UNDEFINED";
807
+ }, u = (i) => {
808
+ const { props: d } = i;
809
+ return Object.keys(d).filter((m) => m !== "children" && d[m] !== void 0).sort();
810
+ }, p = (i, d, m, E, h, w) => ++E > d.maxDepth ? (0, t.printElementAsLeaf)(f(i), d) : (0, t.printElement)(
811
+ f(i),
812
+ (0, t.printProps)(
813
+ u(i),
814
+ i.props,
815
+ d,
816
+ m + d.indent,
817
+ E,
818
+ h,
819
+ w
820
+ ),
821
+ (0, t.printChildren)(
822
+ s(i.props.children),
823
+ d,
824
+ m + d.indent,
825
+ E,
826
+ h,
827
+ w
828
+ ),
829
+ d,
830
+ m
831
+ );
832
+ ie.serialize = p;
833
+ const n = (i) => i != null && e.isElement(i);
834
+ ie.test = n;
835
+ var l = {
836
+ serialize: p,
837
+ test: n
838
+ };
839
+ return ie.default = l, ie;
840
+ }
841
+ var oe = {}, Ht;
842
+ function en() {
843
+ if (Ht) return oe;
844
+ Ht = 1, Object.defineProperty(oe, "__esModule", {
845
+ value: !0
846
+ }), oe.test = oe.serialize = oe.default = void 0;
847
+ var e = wt(), t = function() {
848
+ return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
849
+ }(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
850
+ const o = typeof r == "function" && r.for ? r.for("react.test.json") : 245830487, s = (a) => {
851
+ const { props: l } = a;
852
+ return l ? Object.keys(l).filter((i) => l[i] !== void 0).sort() : [];
853
+ }, f = (a, l, i, d, m, E) => ++d > l.maxDepth ? (0, e.printElementAsLeaf)(a.type, l) : (0, e.printElement)(
854
+ a.type,
855
+ a.props ? (0, e.printProps)(
856
+ s(a),
857
+ a.props,
858
+ l,
859
+ i + l.indent,
860
+ d,
861
+ m,
862
+ E
863
+ ) : "",
864
+ a.children ? (0, e.printChildren)(
865
+ a.children,
866
+ l,
867
+ i + l.indent,
868
+ d,
869
+ m,
870
+ E
871
+ ) : "",
872
+ l,
873
+ i
874
+ );
875
+ oe.serialize = f;
876
+ const u = (a) => a && a.$$typeof === o;
877
+ oe.test = u;
878
+ var n = {
879
+ serialize: f,
880
+ test: u
881
+ };
882
+ return oe.default = n, oe;
883
+ }
884
+ var Vt;
885
+ function tn() {
886
+ if (Vt) return Q;
887
+ Vt = 1, Object.defineProperty(Q, "__esModule", {
888
+ value: !0
889
+ }), Q.default = Q.DEFAULT_OPTIONS = void 0, Q.format = Le, Q.plugins = void 0;
890
+ var e = a(ar()), t = Je(), r = a(
891
+ Ur()
892
+ ), o = a(Hr()), s = a(Vr()), f = a(Yr()), u = a(Kr()), p = a(Zr()), n = a(
893
+ en()
894
+ );
895
+ function a(b) {
896
+ return b && b.__esModule ? b : { default: b };
897
+ }
898
+ const l = Object.prototype.toString, i = Date.prototype.toISOString, d = Error.prototype.toString, m = RegExp.prototype.toString, E = (b) => typeof b.constructor == "function" && b.constructor.name || "Object", h = (b) => typeof window < "u" && b === window, w = /^Symbol\((.*)\)(.*)$/, c = /\n/gi;
899
+ class A extends Error {
900
+ constructor(O, T) {
901
+ super(O), this.stack = T, this.name = this.constructor.name;
902
+ }
903
+ }
904
+ function I(b) {
905
+ return b === "[object Array]" || b === "[object ArrayBuffer]" || b === "[object DataView]" || b === "[object Float32Array]" || b === "[object Float64Array]" || b === "[object Int8Array]" || b === "[object Int16Array]" || b === "[object Int32Array]" || b === "[object Uint8Array]" || b === "[object Uint8ClampedArray]" || b === "[object Uint16Array]" || b === "[object Uint32Array]";
906
+ }
907
+ function x(b) {
908
+ return Object.is(b, -0) ? "-0" : String(b);
909
+ }
910
+ function M(b) {
911
+ return `${b}n`;
912
+ }
913
+ function y(b, O) {
914
+ return O ? "[Function " + (b.name || "anonymous") + "]" : "[Function]";
915
+ }
916
+ function g(b) {
917
+ return String(b).replace(w, "Symbol($1)");
918
+ }
919
+ function v(b) {
920
+ return "[" + d.call(b) + "]";
921
+ }
922
+ function _(b, O, T, L) {
923
+ if (b === !0 || b === !1)
924
+ return "" + b;
925
+ if (b === void 0)
926
+ return "undefined";
927
+ if (b === null)
928
+ return "null";
929
+ const P = typeof b;
930
+ if (P === "number")
931
+ return x(b);
932
+ if (P === "bigint")
933
+ return M(b);
934
+ if (P === "string")
935
+ return L ? '"' + b.replace(/"|\\/g, "\\$&") + '"' : '"' + b + '"';
936
+ if (P === "function")
937
+ return y(b, O);
938
+ if (P === "symbol")
939
+ return g(b);
940
+ const z = l.call(b);
941
+ return z === "[object WeakMap]" ? "WeakMap {}" : z === "[object WeakSet]" ? "WeakSet {}" : z === "[object Function]" || z === "[object GeneratorFunction]" ? y(b, O) : z === "[object Symbol]" ? g(b) : z === "[object Date]" ? isNaN(+b) ? "Date { NaN }" : i.call(b) : z === "[object Error]" ? v(b) : z === "[object RegExp]" ? T ? m.call(b).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : m.call(b) : b instanceof Error ? v(b) : null;
942
+ }
943
+ function R(b, O, T, L, P, z) {
944
+ if (P.indexOf(b) !== -1)
945
+ return "[Circular]";
946
+ P = P.slice(), P.push(b);
947
+ const V = ++L > O.maxDepth, G = O.min;
948
+ if (O.callToJSON && !V && b.toJSON && typeof b.toJSON == "function" && !z)
949
+ return C(b.toJSON(), O, T, L, P, !0);
950
+ const de = l.call(b);
951
+ return de === "[object Arguments]" ? V ? "[Arguments]" : (G ? "" : "Arguments ") + "[" + (0, t.printListItems)(
952
+ b,
953
+ O,
954
+ T,
955
+ L,
956
+ P,
957
+ C
958
+ ) + "]" : I(de) ? V ? "[" + b.constructor.name + "]" : (G || !O.printBasicPrototype && b.constructor.name === "Array" ? "" : b.constructor.name + " ") + "[" + (0, t.printListItems)(
959
+ b,
960
+ O,
961
+ T,
962
+ L,
963
+ P,
964
+ C
965
+ ) + "]" : de === "[object Map]" ? V ? "[Map]" : "Map {" + (0, t.printIteratorEntries)(
966
+ b.entries(),
967
+ O,
968
+ T,
969
+ L,
970
+ P,
971
+ C,
972
+ " => "
973
+ ) + "}" : de === "[object Set]" ? V ? "[Set]" : "Set {" + (0, t.printIteratorValues)(
974
+ b.values(),
975
+ O,
976
+ T,
977
+ L,
978
+ P,
979
+ C
980
+ ) + "}" : V || h(b) ? "[" + E(b) + "]" : (G || !O.printBasicPrototype && E(b) === "Object" ? "" : E(b) + " ") + "{" + (0, t.printObjectProperties)(
981
+ b,
982
+ O,
983
+ T,
984
+ L,
985
+ P,
986
+ C
987
+ ) + "}";
988
+ }
989
+ function B(b) {
990
+ return b.serialize != null;
991
+ }
992
+ function N(b, O, T, L, P, z) {
993
+ let V;
994
+ try {
995
+ V = B(b) ? b.serialize(O, T, L, P, z, C) : b.print(
996
+ O,
997
+ (G) => C(G, T, L, P, z),
998
+ (G) => {
999
+ const de = L + T.indent;
1000
+ return de + G.replace(c, `
1001
+ ` + de);
1002
+ },
1003
+ {
1004
+ edgeSpacing: T.spacingOuter,
1005
+ min: T.min,
1006
+ spacing: T.spacingInner
1007
+ },
1008
+ T.colors
1009
+ );
1010
+ } catch (G) {
1011
+ throw new A(G.message, G.stack);
1012
+ }
1013
+ if (typeof V != "string")
1014
+ throw new Error(
1015
+ `pretty-format: Plugin must return type "string" but instead returned "${typeof V}".`
1016
+ );
1017
+ return V;
1018
+ }
1019
+ function S(b, O) {
1020
+ for (let T = 0; T < b.length; T++)
1021
+ try {
1022
+ if (b[T].test(O))
1023
+ return b[T];
1024
+ } catch (L) {
1025
+ throw new A(L.message, L.stack);
1026
+ }
1027
+ return null;
1028
+ }
1029
+ function C(b, O, T, L, P, z) {
1030
+ const V = S(O.plugins, b);
1031
+ if (V !== null)
1032
+ return N(V, b, O, T, L, P);
1033
+ const G = _(
1034
+ b,
1035
+ O.printFunctionName,
1036
+ O.escapeRegex,
1037
+ O.escapeString
1038
+ );
1039
+ return G !== null ? G : R(
1040
+ b,
1041
+ O,
1042
+ T,
1043
+ L,
1044
+ P,
1045
+ z
1046
+ );
1047
+ }
1048
+ const U = {
1049
+ comment: "gray",
1050
+ content: "reset",
1051
+ prop: "yellow",
1052
+ tag: "cyan",
1053
+ value: "green"
1054
+ }, $ = Object.keys(U), k = {
1055
+ callToJSON: !0,
1056
+ compareKeys: void 0,
1057
+ escapeRegex: !1,
1058
+ escapeString: !0,
1059
+ highlight: !1,
1060
+ indent: 2,
1061
+ maxDepth: 1 / 0,
1062
+ min: !1,
1063
+ plugins: [],
1064
+ printBasicPrototype: !0,
1065
+ printFunctionName: !0,
1066
+ theme: U
1067
+ };
1068
+ Q.DEFAULT_OPTIONS = k;
1069
+ function X(b) {
1070
+ if (Object.keys(b).forEach((O) => {
1071
+ if (!k.hasOwnProperty(O))
1072
+ throw new Error(`pretty-format: Unknown option "${O}".`);
1073
+ }), b.min && b.indent !== void 0 && b.indent !== 0)
1074
+ throw new Error(
1075
+ 'pretty-format: Options "min" and "indent" cannot be used together.'
1076
+ );
1077
+ if (b.theme !== void 0) {
1078
+ if (b.theme === null)
1079
+ throw new Error('pretty-format: Option "theme" must not be null.');
1080
+ if (typeof b.theme != "object")
1081
+ throw new Error(
1082
+ `pretty-format: Option "theme" must be of type "object" but instead received "${typeof b.theme}".`
1083
+ );
1084
+ }
1085
+ }
1086
+ const Ae = (b) => $.reduce((O, T) => {
1087
+ const L = b.theme && b.theme[T] !== void 0 ? b.theme[T] : U[T], P = L && e.default[L];
1088
+ if (P && typeof P.close == "string" && typeof P.open == "string")
1089
+ O[T] = P;
1090
+ else
1091
+ throw new Error(
1092
+ `pretty-format: Option "theme" has a key "${T}" whose value "${L}" is undefined in ansi-styles.`
1093
+ );
1094
+ return O;
1095
+ }, /* @__PURE__ */ Object.create(null)), Ze = () => $.reduce((b, O) => (b[O] = {
1096
+ close: "",
1097
+ open: ""
1098
+ }, b), /* @__PURE__ */ Object.create(null)), Re = (b) => b && b.printFunctionName !== void 0 ? b.printFunctionName : k.printFunctionName, Be = (b) => b && b.escapeRegex !== void 0 ? b.escapeRegex : k.escapeRegex, Ne = (b) => b && b.escapeString !== void 0 ? b.escapeString : k.escapeString, Pe = (b) => {
1099
+ var O;
1100
+ return {
1101
+ callToJSON: b && b.callToJSON !== void 0 ? b.callToJSON : k.callToJSON,
1102
+ colors: b && b.highlight ? Ae(b) : Ze(),
1103
+ compareKeys: b && typeof b.compareKeys == "function" ? b.compareKeys : k.compareKeys,
1104
+ escapeRegex: Be(b),
1105
+ escapeString: Ne(b),
1106
+ indent: b && b.min ? "" : et(
1107
+ b && b.indent !== void 0 ? b.indent : k.indent
1108
+ ),
1109
+ maxDepth: b && b.maxDepth !== void 0 ? b.maxDepth : k.maxDepth,
1110
+ min: b && b.min !== void 0 ? b.min : k.min,
1111
+ plugins: b && b.plugins !== void 0 ? b.plugins : k.plugins,
1112
+ printBasicPrototype: (O = b == null ? void 0 : b.printBasicPrototype) !== null && O !== void 0 ? O : !0,
1113
+ printFunctionName: Re(b),
1114
+ spacingInner: b && b.min ? " " : `
1115
+ `,
1116
+ spacingOuter: b && b.min ? "" : `
1117
+ `
1118
+ };
1119
+ };
1120
+ function et(b) {
1121
+ return new Array(b + 1).join(" ");
1122
+ }
1123
+ function Le(b, O) {
1124
+ if (O && (X(O), O.plugins)) {
1125
+ const L = S(O.plugins, b);
1126
+ if (L !== null)
1127
+ return N(L, b, Pe(O), "", 0, []);
1128
+ }
1129
+ const T = _(
1130
+ b,
1131
+ Re(O),
1132
+ Be(O),
1133
+ Ne(O)
1134
+ );
1135
+ return T !== null ? T : R(b, Pe(O), "", 0, []);
1136
+ }
1137
+ const tt = {
1138
+ AsymmetricMatcher: r.default,
1139
+ ConvertAnsi: o.default,
1140
+ DOMCollection: s.default,
1141
+ DOMElement: f.default,
1142
+ Immutable: u.default,
1143
+ ReactElement: p.default,
1144
+ ReactTestComponent: n.default
1145
+ };
1146
+ Q.plugins = tt;
1147
+ var rt = Le;
1148
+ return Q.default = rt, Q;
1149
+ }
1150
+ var ur = tn(), rn = Object.prototype.toString;
1151
+ function nn(e) {
1152
+ return typeof e == "function" || rn.call(e) === "[object Function]";
1153
+ }
1154
+ function on(e) {
1155
+ var t = Number(e);
1156
+ return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
1157
+ }
1158
+ var an = Math.pow(2, 53) - 1;
1159
+ function un(e) {
1160
+ var t = on(e);
1161
+ return Math.min(Math.max(t, 0), an);
1162
+ }
1163
+ function J(e, t) {
1164
+ var r = Array, o = Object(e);
1165
+ if (e == null)
1166
+ throw new TypeError("Array.from requires an array-like object - not null or undefined");
1167
+ for (var s = un(o.length), f = nn(r) ? Object(new r(s)) : new Array(s), u = 0, p; u < s; )
1168
+ p = o[u], f[u] = p, u += 1;
1169
+ return f.length = s, f;
1170
+ }
1171
+ function xe(e) {
1172
+ "@babel/helpers - typeof";
1173
+ return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1174
+ return typeof t;
1175
+ } : function(t) {
1176
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1177
+ }, xe(e);
1178
+ }
1179
+ function ln(e, t) {
1180
+ if (!(e instanceof t))
1181
+ throw new TypeError("Cannot call a class as a function");
1182
+ }
1183
+ function sn(e, t) {
1184
+ for (var r = 0; r < t.length; r++) {
1185
+ var o = t[r];
1186
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, lr(o.key), o);
1187
+ }
1188
+ }
1189
+ function cn(e, t, r) {
1190
+ return t && sn(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1191
+ }
1192
+ function fn(e, t, r) {
1193
+ return t = lr(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1194
+ }
1195
+ function lr(e) {
1196
+ var t = dn(e, "string");
1197
+ return xe(t) === "symbol" ? t : String(t);
1198
+ }
1199
+ function dn(e, t) {
1200
+ if (xe(e) !== "object" || e === null) return e;
1201
+ var r = e[Symbol.toPrimitive];
1202
+ if (r !== void 0) {
1203
+ var o = r.call(e, t);
1204
+ if (xe(o) !== "object") return o;
1205
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1206
+ }
1207
+ return (t === "string" ? String : Number)(e);
1208
+ }
1209
+ var pn = /* @__PURE__ */ function() {
1210
+ function e() {
1211
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
1212
+ ln(this, e), fn(this, "items", void 0), this.items = t;
1213
+ }
1214
+ return cn(e, [{
1215
+ key: "add",
1216
+ value: function(r) {
1217
+ return this.has(r) === !1 && this.items.push(r), this;
1218
+ }
1219
+ }, {
1220
+ key: "clear",
1221
+ value: function() {
1222
+ this.items = [];
1223
+ }
1224
+ }, {
1225
+ key: "delete",
1226
+ value: function(r) {
1227
+ var o = this.items.length;
1228
+ return this.items = this.items.filter(function(s) {
1229
+ return s !== r;
1230
+ }), o !== this.items.length;
1231
+ }
1232
+ }, {
1233
+ key: "forEach",
1234
+ value: function(r) {
1235
+ var o = this;
1236
+ this.items.forEach(function(s) {
1237
+ r(s, s, o);
1238
+ });
1239
+ }
1240
+ }, {
1241
+ key: "has",
1242
+ value: function(r) {
1243
+ return this.items.indexOf(r) !== -1;
1244
+ }
1245
+ }, {
1246
+ key: "size",
1247
+ get: function() {
1248
+ return this.items.length;
1249
+ }
1250
+ }]), e;
1251
+ }();
1252
+ const bn = typeof Set > "u" ? Set : pn;
1253
+ function W(e) {
1254
+ var t;
1255
+ return (
1256
+ // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
1257
+ (t = e.localName) !== null && t !== void 0 ? t : (
1258
+ // eslint-disable-next-line no-restricted-properties -- required for the fallback
1259
+ e.tagName.toLowerCase()
1260
+ )
1261
+ );
1262
+ }
1263
+ var mn = {
1264
+ article: "article",
1265
+ aside: "complementary",
1266
+ button: "button",
1267
+ datalist: "listbox",
1268
+ dd: "definition",
1269
+ details: "group",
1270
+ dialog: "dialog",
1271
+ dt: "term",
1272
+ fieldset: "group",
1273
+ figure: "figure",
1274
+ // WARNING: Only with an accessible name
1275
+ form: "form",
1276
+ footer: "contentinfo",
1277
+ h1: "heading",
1278
+ h2: "heading",
1279
+ h3: "heading",
1280
+ h4: "heading",
1281
+ h5: "heading",
1282
+ h6: "heading",
1283
+ header: "banner",
1284
+ hr: "separator",
1285
+ html: "document",
1286
+ legend: "legend",
1287
+ li: "listitem",
1288
+ math: "math",
1289
+ main: "main",
1290
+ menu: "list",
1291
+ nav: "navigation",
1292
+ ol: "list",
1293
+ optgroup: "group",
1294
+ // WARNING: Only in certain context
1295
+ option: "option",
1296
+ output: "status",
1297
+ progress: "progressbar",
1298
+ // WARNING: Only with an accessible name
1299
+ section: "region",
1300
+ summary: "button",
1301
+ table: "table",
1302
+ tbody: "rowgroup",
1303
+ textarea: "textbox",
1304
+ tfoot: "rowgroup",
1305
+ // WARNING: Only in certain context
1306
+ td: "cell",
1307
+ th: "columnheader",
1308
+ thead: "rowgroup",
1309
+ tr: "row",
1310
+ ul: "list"
1311
+ }, yn = {
1312
+ caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
1313
+ code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
1314
+ deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
1315
+ emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
1316
+ generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
1317
+ insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
1318
+ paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
1319
+ presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
1320
+ strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
1321
+ subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
1322
+ superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
1323
+ };
1324
+ function gn(e, t) {
1325
+ return [
1326
+ "aria-atomic",
1327
+ "aria-busy",
1328
+ "aria-controls",
1329
+ "aria-current",
1330
+ "aria-describedby",
1331
+ "aria-details",
1332
+ // "disabled",
1333
+ "aria-dropeffect",
1334
+ // "errormessage",
1335
+ "aria-flowto",
1336
+ "aria-grabbed",
1337
+ // "haspopup",
1338
+ "aria-hidden",
1339
+ // "invalid",
1340
+ "aria-keyshortcuts",
1341
+ "aria-label",
1342
+ "aria-labelledby",
1343
+ "aria-live",
1344
+ "aria-owns",
1345
+ "aria-relevant",
1346
+ "aria-roledescription"
1347
+ ].some(function(r) {
1348
+ var o;
1349
+ return e.hasAttribute(r) && !((o = yn[t]) !== null && o !== void 0 && o.has(r));
1350
+ });
1351
+ }
1352
+ function sr(e, t) {
1353
+ return gn(e, t);
1354
+ }
1355
+ function hn(e) {
1356
+ var t = vn(e);
1357
+ if (t === null || t === "presentation") {
1358
+ var r = En(e);
1359
+ if (t !== "presentation" || sr(e, r || ""))
1360
+ return r;
1361
+ }
1362
+ return t;
1363
+ }
1364
+ function En(e) {
1365
+ var t = mn[W(e)];
1366
+ if (t !== void 0)
1367
+ return t;
1368
+ switch (W(e)) {
1369
+ case "a":
1370
+ case "area":
1371
+ case "link":
1372
+ if (e.hasAttribute("href"))
1373
+ return "link";
1374
+ break;
1375
+ case "img":
1376
+ return e.getAttribute("alt") === "" && !sr(e, "img") ? "presentation" : "img";
1377
+ case "input": {
1378
+ var r = e, o = r.type;
1379
+ switch (o) {
1380
+ case "button":
1381
+ case "image":
1382
+ case "reset":
1383
+ case "submit":
1384
+ return "button";
1385
+ case "checkbox":
1386
+ case "radio":
1387
+ return o;
1388
+ case "range":
1389
+ return "slider";
1390
+ case "email":
1391
+ case "tel":
1392
+ case "text":
1393
+ case "url":
1394
+ return e.hasAttribute("list") ? "combobox" : "textbox";
1395
+ case "search":
1396
+ return e.hasAttribute("list") ? "combobox" : "searchbox";
1397
+ case "number":
1398
+ return "spinbutton";
1399
+ default:
1400
+ return null;
1401
+ }
1402
+ }
1403
+ case "select":
1404
+ return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox";
1405
+ }
1406
+ return null;
1407
+ }
1408
+ function vn(e) {
1409
+ var t = e.getAttribute("role");
1410
+ if (t !== null) {
1411
+ var r = t.trim().split(" ")[0];
1412
+ if (r.length > 0)
1413
+ return r;
1414
+ }
1415
+ return null;
1416
+ }
1417
+ function F(e) {
1418
+ return e !== null && e.nodeType === e.ELEMENT_NODE;
1419
+ }
1420
+ function cr(e) {
1421
+ return F(e) && W(e) === "caption";
1422
+ }
1423
+ function We(e) {
1424
+ return F(e) && W(e) === "input";
1425
+ }
1426
+ function Tn(e) {
1427
+ return F(e) && W(e) === "optgroup";
1428
+ }
1429
+ function wn(e) {
1430
+ return F(e) && W(e) === "select";
1431
+ }
1432
+ function An(e) {
1433
+ return F(e) && W(e) === "table";
1434
+ }
1435
+ function Sn(e) {
1436
+ return F(e) && W(e) === "textarea";
1437
+ }
1438
+ function In(e) {
1439
+ var t = e.ownerDocument === null ? e : e.ownerDocument, r = t.defaultView;
1440
+ if (r === null)
1441
+ throw new TypeError("no window available");
1442
+ return r;
1443
+ }
1444
+ function xn(e) {
1445
+ return F(e) && W(e) === "fieldset";
1446
+ }
1447
+ function On(e) {
1448
+ return F(e) && W(e) === "legend";
1449
+ }
1450
+ function Mn(e) {
1451
+ return F(e) && W(e) === "slot";
1452
+ }
1453
+ function Cn(e) {
1454
+ return F(e) && e.ownerSVGElement !== void 0;
1455
+ }
1456
+ function _n(e) {
1457
+ return F(e) && W(e) === "svg";
1458
+ }
1459
+ function Rn(e) {
1460
+ return Cn(e) && W(e) === "title";
1461
+ }
1462
+ function He(e, t) {
1463
+ if (F(e) && e.hasAttribute(t)) {
1464
+ var r = e.getAttribute(t).split(" "), o = e.getRootNode ? e.getRootNode() : e.ownerDocument;
1465
+ return r.map(function(s) {
1466
+ return o.getElementById(s);
1467
+ }).filter(
1468
+ function(s) {
1469
+ return s !== null;
1470
+ }
1471
+ // TODO: why does this not narrow?
1472
+ );
1473
+ }
1474
+ return [];
1475
+ }
1476
+ function ue(e, t) {
1477
+ return F(e) ? t.indexOf(hn(e)) !== -1 : !1;
1478
+ }
1479
+ function Bn(e) {
1480
+ return e.trim().replace(/\s\s+/g, " ");
1481
+ }
1482
+ function Nn(e, t) {
1483
+ if (!F(e))
1484
+ return !1;
1485
+ if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true")
1486
+ return !0;
1487
+ var r = t(e);
1488
+ return r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden";
1489
+ }
1490
+ function Pn(e) {
1491
+ return ue(e, ["button", "combobox", "listbox", "textbox"]) || fr(e, "range");
1492
+ }
1493
+ function fr(e, t) {
1494
+ if (!F(e))
1495
+ return !1;
1496
+ switch (t) {
1497
+ case "range":
1498
+ return ue(e, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
1499
+ default:
1500
+ throw new TypeError("No knowledge about abstract role '".concat(t, "'. This is likely a bug :("));
1501
+ }
1502
+ }
1503
+ function Gt(e, t) {
1504
+ var r = J(e.querySelectorAll(t));
1505
+ return He(e, "aria-owns").forEach(function(o) {
1506
+ r.push.apply(r, J(o.querySelectorAll(t)));
1507
+ }), r;
1508
+ }
1509
+ function Ln(e) {
1510
+ return wn(e) ? e.selectedOptions || Gt(e, "[selected]") : Gt(e, '[aria-selected="true"]');
1511
+ }
1512
+ function Dn(e) {
1513
+ return ue(e, ["none", "presentation"]);
1514
+ }
1515
+ function qn(e) {
1516
+ return cr(e);
1517
+ }
1518
+ function jn(e) {
1519
+ return ue(e, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
1520
+ }
1521
+ function kn(e) {
1522
+ return !1;
1523
+ }
1524
+ function Fn(e) {
1525
+ return We(e) || Sn(e) ? e.value : e.textContent || "";
1526
+ }
1527
+ function Yt(e) {
1528
+ var t = e.getPropertyValue("content");
1529
+ return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
1530
+ }
1531
+ function dr(e) {
1532
+ var t = W(e);
1533
+ return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea";
1534
+ }
1535
+ function pr(e) {
1536
+ if (dr(e))
1537
+ return e;
1538
+ var t = null;
1539
+ return e.childNodes.forEach(function(r) {
1540
+ if (t === null && F(r)) {
1541
+ var o = pr(r);
1542
+ o !== null && (t = o);
1543
+ }
1544
+ }), t;
1545
+ }
1546
+ function $n(e) {
1547
+ if (e.control !== void 0)
1548
+ return e.control;
1549
+ var t = e.getAttribute("for");
1550
+ return t !== null ? e.ownerDocument.getElementById(t) : pr(e);
1551
+ }
1552
+ function zn(e) {
1553
+ var t = e.labels;
1554
+ if (t === null)
1555
+ return t;
1556
+ if (t !== void 0)
1557
+ return J(t);
1558
+ if (!dr(e))
1559
+ return null;
1560
+ var r = e.ownerDocument;
1561
+ return J(r.querySelectorAll("label")).filter(function(o) {
1562
+ return $n(o) === e;
1563
+ });
1564
+ }
1565
+ function Un(e) {
1566
+ var t = e.assignedNodes();
1567
+ return t.length === 0 ? J(e.childNodes) : t;
1568
+ }
1569
+ function br(e) {
1570
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new bn(), o = In(e), s = t.compute, f = s === void 0 ? "name" : s, u = t.computedStyleSupportsPseudoElements, p = u === void 0 ? t.getComputedStyle !== void 0 : u, n = t.getComputedStyle, a = n === void 0 ? o.getComputedStyle.bind(o) : n, l = t.hidden, i = l === void 0 ? !1 : l;
1571
+ function d(c, A) {
1572
+ var I = "";
1573
+ if (F(c) && p) {
1574
+ var x = a(c, "::before"), M = Yt(x);
1575
+ I = "".concat(M, " ").concat(I);
1576
+ }
1577
+ var y = Mn(c) ? Un(c) : J(c.childNodes).concat(He(c, "aria-owns"));
1578
+ if (y.forEach(function(_) {
1579
+ var R = w(_, {
1580
+ isEmbeddedInLabel: A.isEmbeddedInLabel,
1581
+ isReferenced: !1,
1582
+ recursion: !0
1583
+ }), B = F(_) ? a(_).getPropertyValue("display") : "inline", N = B !== "inline" ? " " : "";
1584
+ I += "".concat(N).concat(R).concat(N);
1585
+ }), F(c) && p) {
1586
+ var g = a(c, "::after"), v = Yt(g);
1587
+ I = "".concat(I, " ").concat(v);
1588
+ }
1589
+ return I.trim();
1590
+ }
1591
+ function m(c, A) {
1592
+ var I = c.getAttributeNode(A);
1593
+ return I !== null && !r.has(I) && I.value.trim() !== "" ? (r.add(I), I.value) : null;
1594
+ }
1595
+ function E(c) {
1596
+ return F(c) ? m(c, "title") : null;
1597
+ }
1598
+ function h(c) {
1599
+ if (!F(c))
1600
+ return null;
1601
+ if (xn(c)) {
1602
+ r.add(c);
1603
+ for (var A = J(c.childNodes), I = 0; I < A.length; I += 1) {
1604
+ var x = A[I];
1605
+ if (On(x))
1606
+ return w(x, {
1607
+ isEmbeddedInLabel: !1,
1608
+ isReferenced: !1,
1609
+ recursion: !1
1610
+ });
1611
+ }
1612
+ } else if (An(c)) {
1613
+ r.add(c);
1614
+ for (var M = J(c.childNodes), y = 0; y < M.length; y += 1) {
1615
+ var g = M[y];
1616
+ if (cr(g))
1617
+ return w(g, {
1618
+ isEmbeddedInLabel: !1,
1619
+ isReferenced: !1,
1620
+ recursion: !1
1621
+ });
1622
+ }
1623
+ } else if (_n(c)) {
1624
+ r.add(c);
1625
+ for (var v = J(c.childNodes), _ = 0; _ < v.length; _ += 1) {
1626
+ var R = v[_];
1627
+ if (Rn(R))
1628
+ return R.textContent;
1629
+ }
1630
+ return null;
1631
+ } else if (W(c) === "img" || W(c) === "area") {
1632
+ var B = m(c, "alt");
1633
+ if (B !== null)
1634
+ return B;
1635
+ } else if (Tn(c)) {
1636
+ var N = m(c, "label");
1637
+ if (N !== null)
1638
+ return N;
1639
+ }
1640
+ if (We(c) && (c.type === "button" || c.type === "submit" || c.type === "reset")) {
1641
+ var S = m(c, "value");
1642
+ if (S !== null)
1643
+ return S;
1644
+ if (c.type === "submit")
1645
+ return "Submit";
1646
+ if (c.type === "reset")
1647
+ return "Reset";
1648
+ }
1649
+ var C = zn(c);
1650
+ if (C !== null && C.length !== 0)
1651
+ return r.add(c), J(C).map(function(X) {
1652
+ return w(X, {
1653
+ isEmbeddedInLabel: !0,
1654
+ isReferenced: !1,
1655
+ recursion: !0
1656
+ });
1657
+ }).filter(function(X) {
1658
+ return X.length > 0;
1659
+ }).join(" ");
1660
+ if (We(c) && c.type === "image") {
1661
+ var U = m(c, "alt");
1662
+ if (U !== null)
1663
+ return U;
1664
+ var $ = m(c, "title");
1665
+ return $ !== null ? $ : "Submit Query";
1666
+ }
1667
+ if (ue(c, ["button"])) {
1668
+ var k = d(c, {
1669
+ isEmbeddedInLabel: !1
1670
+ });
1671
+ if (k !== "")
1672
+ return k;
1673
+ }
1674
+ return null;
1675
+ }
1676
+ function w(c, A) {
1677
+ if (r.has(c))
1678
+ return "";
1679
+ if (!i && Nn(c, a) && !A.isReferenced)
1680
+ return r.add(c), "";
1681
+ var I = F(c) ? c.getAttributeNode("aria-labelledby") : null, x = I !== null && !r.has(I) ? He(c, "aria-labelledby") : [];
1682
+ if (f === "name" && !A.isReferenced && x.length > 0)
1683
+ return r.add(I), x.map(function(B) {
1684
+ return w(B, {
1685
+ isEmbeddedInLabel: A.isEmbeddedInLabel,
1686
+ isReferenced: !0,
1687
+ // this isn't recursion as specified, otherwise we would skip
1688
+ // `aria-label` in
1689
+ // <input id="myself" aria-label="foo" aria-labelledby="myself"
1690
+ recursion: !1
1691
+ });
1692
+ }).join(" ");
1693
+ var M = A.recursion && Pn(c) && f === "name";
1694
+ if (!M) {
1695
+ var y = (F(c) && c.getAttribute("aria-label") || "").trim();
1696
+ if (y !== "" && f === "name")
1697
+ return r.add(c), y;
1698
+ if (!Dn(c)) {
1699
+ var g = h(c);
1700
+ if (g !== null)
1701
+ return r.add(c), g;
1702
+ }
1703
+ }
1704
+ if (ue(c, ["menu"]))
1705
+ return r.add(c), "";
1706
+ if (M || A.isEmbeddedInLabel || A.isReferenced) {
1707
+ if (ue(c, ["combobox", "listbox"])) {
1708
+ r.add(c);
1709
+ var v = Ln(c);
1710
+ return v.length === 0 ? We(c) ? c.value : "" : J(v).map(function(B) {
1711
+ return w(B, {
1712
+ isEmbeddedInLabel: A.isEmbeddedInLabel,
1713
+ isReferenced: !1,
1714
+ recursion: !0
1715
+ });
1716
+ }).join(" ");
1717
+ }
1718
+ if (fr(c, "range"))
1719
+ return r.add(c), c.hasAttribute("aria-valuetext") ? c.getAttribute("aria-valuetext") : c.hasAttribute("aria-valuenow") ? c.getAttribute("aria-valuenow") : c.getAttribute("value") || "";
1720
+ if (ue(c, ["textbox"]))
1721
+ return r.add(c), Fn(c);
1722
+ }
1723
+ if (jn(c) || F(c) && A.isReferenced || qn(c) || kn()) {
1724
+ var _ = d(c, {
1725
+ isEmbeddedInLabel: A.isEmbeddedInLabel
1726
+ });
1727
+ if (_ !== "")
1728
+ return r.add(c), _;
1729
+ }
1730
+ if (c.nodeType === c.TEXT_NODE)
1731
+ return r.add(c), c.textContent || "";
1732
+ if (A.recursion)
1733
+ return r.add(c), d(c, {
1734
+ isEmbeddedInLabel: A.isEmbeddedInLabel
1735
+ });
1736
+ var R = E(c);
1737
+ return R !== null ? (r.add(c), R) : (r.add(c), "");
1738
+ }
1739
+ return Bn(w(e, {
1740
+ isEmbeddedInLabel: !1,
1741
+ // by spec computeAccessibleDescription starts with the referenced elements as roots
1742
+ isReferenced: f === "description",
1743
+ recursion: !1
1744
+ }));
1745
+ }
1746
+ function Oe(e) {
1747
+ "@babel/helpers - typeof";
1748
+ return Oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1749
+ return typeof t;
1750
+ } : function(t) {
1751
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1752
+ }, Oe(e);
1753
+ }
1754
+ function Kt(e, t) {
1755
+ var r = Object.keys(e);
1756
+ if (Object.getOwnPropertySymbols) {
1757
+ var o = Object.getOwnPropertySymbols(e);
1758
+ t && (o = o.filter(function(s) {
1759
+ return Object.getOwnPropertyDescriptor(e, s).enumerable;
1760
+ })), r.push.apply(r, o);
1761
+ }
1762
+ return r;
1763
+ }
1764
+ function Jt(e) {
1765
+ for (var t = 1; t < arguments.length; t++) {
1766
+ var r = arguments[t] != null ? arguments[t] : {};
1767
+ t % 2 ? Kt(Object(r), !0).forEach(function(o) {
1768
+ Wn(e, o, r[o]);
1769
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Kt(Object(r)).forEach(function(o) {
1770
+ Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(r, o));
1771
+ });
1772
+ }
1773
+ return e;
1774
+ }
1775
+ function Wn(e, t, r) {
1776
+ return t = Hn(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1777
+ }
1778
+ function Hn(e) {
1779
+ var t = Vn(e, "string");
1780
+ return Oe(t) === "symbol" ? t : String(t);
1781
+ }
1782
+ function Vn(e, t) {
1783
+ if (Oe(e) !== "object" || e === null) return e;
1784
+ var r = e[Symbol.toPrimitive];
1785
+ if (r !== void 0) {
1786
+ var o = r.call(e, t);
1787
+ if (Oe(o) !== "object") return o;
1788
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1789
+ }
1790
+ return (t === "string" ? String : Number)(e);
1791
+ }
1792
+ function mr(e) {
1793
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = He(e, "aria-describedby").map(function(s) {
1794
+ return br(s, Jt(Jt({}, t), {}, {
1795
+ compute: "description"
1796
+ }));
1797
+ }).join(" ");
1798
+ if (r === "") {
1799
+ var o = e.getAttribute("title");
1800
+ r = o === null ? "" : o;
1801
+ }
1802
+ return r;
1803
+ }
1804
+ function Gn(e) {
1805
+ return ue(e, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
1806
+ }
1807
+ function At(e) {
1808
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1809
+ return Gn(e) ? "" : br(e, t);
1810
+ }
1811
+ var ot = { exports: {} }, Qt;
1812
+ function Yn() {
1813
+ return Qt || (Qt = 1, function(e) {
1814
+ var t = function() {
1815
+ var r = String.fromCharCode, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", f = {};
1816
+ function u(n, a) {
1817
+ if (!f[n]) {
1818
+ f[n] = {};
1819
+ for (var l = 0; l < n.length; l++)
1820
+ f[n][n.charAt(l)] = l;
1821
+ }
1822
+ return f[n][a];
1823
+ }
1824
+ var p = {
1825
+ compressToBase64: function(n) {
1826
+ if (n == null) return "";
1827
+ var a = p._compress(n, 6, function(l) {
1828
+ return o.charAt(l);
1829
+ });
1830
+ switch (a.length % 4) {
1831
+ // To produce valid Base64
1832
+ default:
1833
+ // When could this happen ?
1834
+ case 0:
1835
+ return a;
1836
+ case 1:
1837
+ return a + "===";
1838
+ case 2:
1839
+ return a + "==";
1840
+ case 3:
1841
+ return a + "=";
1842
+ }
1843
+ },
1844
+ decompressFromBase64: function(n) {
1845
+ return n == null ? "" : n == "" ? null : p._decompress(n.length, 32, function(a) {
1846
+ return u(o, n.charAt(a));
1847
+ });
1848
+ },
1849
+ compressToUTF16: function(n) {
1850
+ return n == null ? "" : p._compress(n, 15, function(a) {
1851
+ return r(a + 32);
1852
+ }) + " ";
1853
+ },
1854
+ decompressFromUTF16: function(n) {
1855
+ return n == null ? "" : n == "" ? null : p._decompress(n.length, 16384, function(a) {
1856
+ return n.charCodeAt(a) - 32;
1857
+ });
1858
+ },
1859
+ //compress into uint8array (UCS-2 big endian format)
1860
+ compressToUint8Array: function(n) {
1861
+ for (var a = p.compress(n), l = new Uint8Array(a.length * 2), i = 0, d = a.length; i < d; i++) {
1862
+ var m = a.charCodeAt(i);
1863
+ l[i * 2] = m >>> 8, l[i * 2 + 1] = m % 256;
1864
+ }
1865
+ return l;
1866
+ },
1867
+ //decompress from uint8array (UCS-2 big endian format)
1868
+ decompressFromUint8Array: function(n) {
1869
+ if (n == null)
1870
+ return p.decompress(n);
1871
+ for (var a = new Array(n.length / 2), l = 0, i = a.length; l < i; l++)
1872
+ a[l] = n[l * 2] * 256 + n[l * 2 + 1];
1873
+ var d = [];
1874
+ return a.forEach(function(m) {
1875
+ d.push(r(m));
1876
+ }), p.decompress(d.join(""));
1877
+ },
1878
+ //compress into a string that is already URI encoded
1879
+ compressToEncodedURIComponent: function(n) {
1880
+ return n == null ? "" : p._compress(n, 6, function(a) {
1881
+ return s.charAt(a);
1882
+ });
1883
+ },
1884
+ //decompress from an output of compressToEncodedURIComponent
1885
+ decompressFromEncodedURIComponent: function(n) {
1886
+ return n == null ? "" : n == "" ? null : (n = n.replace(/ /g, "+"), p._decompress(n.length, 32, function(a) {
1887
+ return u(s, n.charAt(a));
1888
+ }));
1889
+ },
1890
+ compress: function(n) {
1891
+ return p._compress(n, 16, function(a) {
1892
+ return r(a);
1893
+ });
1894
+ },
1895
+ _compress: function(n, a, l) {
1896
+ if (n == null) return "";
1897
+ var i, d, m = {}, E = {}, h = "", w = "", c = "", A = 2, I = 3, x = 2, M = [], y = 0, g = 0, v;
1898
+ for (v = 0; v < n.length; v += 1)
1899
+ if (h = n.charAt(v), Object.prototype.hasOwnProperty.call(m, h) || (m[h] = I++, E[h] = !0), w = c + h, Object.prototype.hasOwnProperty.call(m, w))
1900
+ c = w;
1901
+ else {
1902
+ if (Object.prototype.hasOwnProperty.call(E, c)) {
1903
+ if (c.charCodeAt(0) < 256) {
1904
+ for (i = 0; i < x; i++)
1905
+ y = y << 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++;
1906
+ for (d = c.charCodeAt(0), i = 0; i < 8; i++)
1907
+ y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
1908
+ } else {
1909
+ for (d = 1, i = 0; i < x; i++)
1910
+ y = y << 1 | d, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = 0;
1911
+ for (d = c.charCodeAt(0), i = 0; i < 16; i++)
1912
+ y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
1913
+ }
1914
+ A--, A == 0 && (A = Math.pow(2, x), x++), delete E[c];
1915
+ } else
1916
+ for (d = m[c], i = 0; i < x; i++)
1917
+ y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
1918
+ A--, A == 0 && (A = Math.pow(2, x), x++), m[w] = I++, c = String(h);
1919
+ }
1920
+ if (c !== "") {
1921
+ if (Object.prototype.hasOwnProperty.call(E, c)) {
1922
+ if (c.charCodeAt(0) < 256) {
1923
+ for (i = 0; i < x; i++)
1924
+ y = y << 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++;
1925
+ for (d = c.charCodeAt(0), i = 0; i < 8; i++)
1926
+ y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
1927
+ } else {
1928
+ for (d = 1, i = 0; i < x; i++)
1929
+ y = y << 1 | d, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = 0;
1930
+ for (d = c.charCodeAt(0), i = 0; i < 16; i++)
1931
+ y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
1932
+ }
1933
+ A--, A == 0 && (A = Math.pow(2, x), x++), delete E[c];
1934
+ } else
1935
+ for (d = m[c], i = 0; i < x; i++)
1936
+ y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
1937
+ A--, A == 0 && (A = Math.pow(2, x), x++);
1938
+ }
1939
+ for (d = 2, i = 0; i < x; i++)
1940
+ y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
1941
+ for (; ; )
1942
+ if (y = y << 1, g == a - 1) {
1943
+ M.push(l(y));
1944
+ break;
1945
+ } else g++;
1946
+ return M.join("");
1947
+ },
1948
+ decompress: function(n) {
1949
+ return n == null ? "" : n == "" ? null : p._decompress(n.length, 32768, function(a) {
1950
+ return n.charCodeAt(a);
1951
+ });
1952
+ },
1953
+ _decompress: function(n, a, l) {
1954
+ var i = [], d = 4, m = 4, E = 3, h = "", w = [], c, A, I, x, M, y, g, v = { val: l(0), position: a, index: 1 };
1955
+ for (c = 0; c < 3; c += 1)
1956
+ i[c] = c;
1957
+ for (I = 0, M = Math.pow(2, 2), y = 1; y != M; )
1958
+ x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
1959
+ switch (I) {
1960
+ case 0:
1961
+ for (I = 0, M = Math.pow(2, 8), y = 1; y != M; )
1962
+ x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
1963
+ g = r(I);
1964
+ break;
1965
+ case 1:
1966
+ for (I = 0, M = Math.pow(2, 16), y = 1; y != M; )
1967
+ x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
1968
+ g = r(I);
1969
+ break;
1970
+ case 2:
1971
+ return "";
1972
+ }
1973
+ for (i[3] = g, A = g, w.push(g); ; ) {
1974
+ if (v.index > n)
1975
+ return "";
1976
+ for (I = 0, M = Math.pow(2, E), y = 1; y != M; )
1977
+ x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
1978
+ switch (g = I) {
1979
+ case 0:
1980
+ for (I = 0, M = Math.pow(2, 8), y = 1; y != M; )
1981
+ x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
1982
+ i[m++] = r(I), g = m - 1, d--;
1983
+ break;
1984
+ case 1:
1985
+ for (I = 0, M = Math.pow(2, 16), y = 1; y != M; )
1986
+ x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
1987
+ i[m++] = r(I), g = m - 1, d--;
1988
+ break;
1989
+ case 2:
1990
+ return w.join("");
1991
+ }
1992
+ if (d == 0 && (d = Math.pow(2, E), E++), i[g])
1993
+ h = i[g];
1994
+ else if (g === m)
1995
+ h = A + A.charAt(0);
1996
+ else
1997
+ return null;
1998
+ w.push(h), i[m++] = A + h.charAt(0), d--, A = h, d == 0 && (d = Math.pow(2, E), E++);
1999
+ }
2000
+ }
2001
+ };
2002
+ return p;
2003
+ }();
2004
+ e != null ? e.exports = t : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
2005
+ return t;
2006
+ });
2007
+ }(ot)), ot.exports;
2008
+ }
2009
+ var Kn = Yn();
2010
+ const Jn = /* @__PURE__ */ $r(Kn);
2011
+ function yr(e) {
2012
+ return e.replace(/</g, "&lt;").replace(/>/g, "&gt;");
2013
+ }
2014
+ const Qn = (e, t, r, o, s, f, u) => {
2015
+ const p = o + r.indent, n = r.colors;
2016
+ return e.map((a) => {
2017
+ const l = t[a];
2018
+ let i = u(l, r, p, s, f);
2019
+ return typeof l != "string" && (i.indexOf(`
2020
+ `) !== -1 && (i = r.spacingOuter + p + i + r.spacingOuter + o), i = "{" + i + "}"), r.spacingInner + o + n.prop.open + a + n.prop.close + "=" + n.value.open + i + n.value.close;
2021
+ }).join("");
2022
+ }, Xn = 3, Zn = (e, t, r, o, s, f) => e.map((u) => {
2023
+ const p = typeof u == "string" ? gr(u, t) : f(u, t, r, o, s);
2024
+ return p === "" && typeof u == "object" && u !== null && u.nodeType !== Xn ? "" : t.spacingOuter + r + p;
2025
+ }).join(""), gr = (e, t) => {
2026
+ const r = t.colors.content;
2027
+ return r.open + yr(e) + r.close;
2028
+ }, ei = (e, t) => {
2029
+ const r = t.colors.comment;
2030
+ return r.open + "<!--" + yr(e) + "-->" + r.close;
2031
+ }, ti = (e, t, r, o, s) => {
2032
+ const f = o.colors.tag;
2033
+ return f.open + "<" + e + (t && f.close + t + o.spacingOuter + s + f.open) + (r ? ">" + f.close + r + o.spacingOuter + s + f.open + "</" + e : (t && !o.min ? "" : " ") + "/") + ">" + f.close;
2034
+ }, ri = (e, t) => {
2035
+ const r = t.colors.tag;
2036
+ return r.open + "<" + e + r.close + " …" + r.open + " />" + r.close;
2037
+ }, ni = 1, hr = 3, Er = 8, vr = 11, ii = /^((HTML|SVG)\w*)?Element$/, Tr = (e) => {
2038
+ const {
2039
+ tagName: t
2040
+ } = e;
2041
+ return !!(typeof t == "string" && t.includes("-") || typeof e.hasAttribute == "function" && e.hasAttribute("is"));
2042
+ }, oi = (e) => {
2043
+ const t = e.constructor.name, {
2044
+ nodeType: r
2045
+ } = e;
2046
+ return r === ni && (ii.test(t) || Tr(e)) || r === hr && t === "Text" || r === Er && t === "Comment" || r === vr && t === "DocumentFragment";
2047
+ };
2048
+ function ai(e) {
2049
+ return e.nodeType === hr;
2050
+ }
2051
+ function ui(e) {
2052
+ return e.nodeType === Er;
2053
+ }
2054
+ function at(e) {
2055
+ return e.nodeType === vr;
2056
+ }
2057
+ function li(e) {
2058
+ return {
2059
+ test: (t) => {
2060
+ var r;
2061
+ return ((t == null || (r = t.constructor) == null ? void 0 : r.name) || Tr(t)) && oi(t);
2062
+ },
2063
+ serialize: (t, r, o, s, f, u) => {
2064
+ if (ai(t))
2065
+ return gr(t.data, r);
2066
+ if (ui(t))
2067
+ return ei(t.data, r);
2068
+ const p = at(t) ? "DocumentFragment" : t.tagName.toLowerCase();
2069
+ return ++s > r.maxDepth ? ri(p, r) : ti(p, Qn(at(t) ? [] : Array.from(t.attributes).map((n) => n.name).sort(), at(t) ? {} : Array.from(t.attributes).reduce((n, a) => (n[a.name] = a.value, n), {}), r, o + r.indent, s, f, u), Zn(Array.prototype.slice.call(t.childNodes || t.children).filter(e), r, o + r.indent, s, f, u), r, o);
2070
+ }
2071
+ };
2072
+ }
2073
+ let wr = null, St = null, It = null;
2074
+ try {
2075
+ const e = he && he.require;
2076
+ St = e.call(he, "fs").readFileSync, It = e.call(he, "@babel/code-frame").codeFrameColumns, wr = e.call(he, "chalk");
2077
+ } catch {
2078
+ }
2079
+ function si(e) {
2080
+ const t = e.indexOf("(") + 1, r = e.indexOf(")"), o = e.slice(t, r), s = o.split(":"), [f, u, p] = [s[0], parseInt(s[1], 10), parseInt(s[2], 10)];
2081
+ let n = "";
2082
+ try {
2083
+ n = St(f, "utf-8");
2084
+ } catch {
2085
+ return "";
2086
+ }
2087
+ const a = It(n, {
2088
+ start: {
2089
+ line: u,
2090
+ column: p
2091
+ }
2092
+ }, {
2093
+ highlightCode: !0,
2094
+ linesBelow: 0
2095
+ });
2096
+ return wr.dim(o) + `
2097
+ ` + a + `
2098
+ `;
2099
+ }
2100
+ function ci() {
2101
+ if (!St || !It)
2102
+ return "";
2103
+ const t = new Error().stack.split(`
2104
+ `).slice(1).find((r) => !r.includes("node_modules/"));
2105
+ return si(t);
2106
+ }
2107
+ const Ar = 3;
2108
+ function ut() {
2109
+ return typeof jest < "u" && jest !== null ? (
2110
+ // legacy timers
2111
+ setTimeout._isMockFunction === !0 || // modern timers
2112
+ // eslint-disable-next-line prefer-object-has-own -- not supported by our support matrix
2113
+ Object.prototype.hasOwnProperty.call(setTimeout, "clock")
2114
+ ) : !1;
2115
+ }
2116
+ function xt() {
2117
+ if (typeof window > "u")
2118
+ throw new Error("Could not find default container");
2119
+ return window.document;
2120
+ }
2121
+ function Sr(e) {
2122
+ if (e.defaultView)
2123
+ return e.defaultView;
2124
+ if (e.ownerDocument && e.ownerDocument.defaultView)
2125
+ return e.ownerDocument.defaultView;
2126
+ if (e.window)
2127
+ return e.window;
2128
+ throw e.ownerDocument && e.ownerDocument.defaultView === null ? new Error("It looks like the window object is not available for the provided node.") : e.then instanceof Function ? new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?") : Array.isArray(e) ? new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?") : typeof e.debug == "function" && typeof e.logTestingPlaygroundURL == "function" ? new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?") : new Error("The given node is not an Element, the node type is: " + typeof e + ".");
2129
+ }
2130
+ function se(e) {
2131
+ if (!e || typeof e.querySelector != "function" || typeof e.querySelectorAll != "function")
2132
+ throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + t(e) + ".");
2133
+ function t(r) {
2134
+ return typeof r == "object" ? r === null ? "null" : r.constructor.name : typeof r;
2135
+ }
2136
+ }
2137
+ const fi = () => {
2138
+ if (typeof process > "u")
2139
+ return !1;
2140
+ let e;
2141
+ try {
2142
+ var t;
2143
+ const r = (t = process.env) == null ? void 0 : t.COLORS;
2144
+ r && (e = JSON.parse(r));
2145
+ } catch {
2146
+ }
2147
+ return typeof e == "boolean" ? e : process.versions !== void 0 && process.versions.node !== void 0;
2148
+ }, {
2149
+ DOMCollection: di
2150
+ } = ur.plugins, pi = 1, bi = 8;
2151
+ function mi(e) {
2152
+ return e.nodeType !== bi && (e.nodeType !== pi || !e.matches(j().defaultIgnore));
2153
+ }
2154
+ function ve(e, t, r) {
2155
+ if (r === void 0 && (r = {}), e || (e = xt().body), typeof t != "number" && (t = typeof process < "u" && typeof process.env < "u" && process.env.DEBUG_PRINT_LIMIT || 7e3), t === 0)
2156
+ return "";
2157
+ e.documentElement && (e = e.documentElement);
2158
+ let o = typeof e;
2159
+ if (o === "object" ? o = e.constructor.name : e = {}, !("outerHTML" in e))
2160
+ throw new TypeError("Expected an element or document but got " + o);
2161
+ const {
2162
+ filterNode: s = mi,
2163
+ ...f
2164
+ } = r, u = ur.format(e, {
2165
+ plugins: [li(s), di],
2166
+ printFunctionName: !1,
2167
+ highlight: fi(),
2168
+ ...f
2169
+ });
2170
+ return t !== void 0 && e.outerHTML.length > t ? u.slice(0, t) + "..." : u;
2171
+ }
2172
+ const Xt = function() {
2173
+ const e = ci();
2174
+ console.log(e ? ve(...arguments) + `
2175
+
2176
+ ` + e : ve(...arguments));
2177
+ };
2178
+ let be = {
2179
+ testIdAttribute: "data-testid",
2180
+ asyncUtilTimeout: 1e3,
2181
+ // asyncWrapper and advanceTimersWrapper is to support React's async `act` function.
2182
+ // forcing react-testing-library to wrap all async functions would've been
2183
+ // a total nightmare (consider wrapping every findBy* query and then also
2184
+ // updating `within` so those would be wrapped too. Total nightmare).
2185
+ // so we have this config option that's really only intended for
2186
+ // react-testing-library to use. For that reason, this feature will remain
2187
+ // undocumented.
2188
+ asyncWrapper: (e) => e(),
2189
+ unstable_advanceTimersWrapper: (e) => e(),
2190
+ eventWrapper: (e) => e(),
2191
+ // default value for the `hidden` option in `ByRole` queries
2192
+ defaultHidden: !1,
2193
+ // default value for the `ignore` option in `ByText` queries
2194
+ defaultIgnore: "script, style",
2195
+ // showOriginalStackTrace flag to show the full error stack traces for async errors
2196
+ showOriginalStackTrace: !1,
2197
+ // throw errors w/ suggestions for better queries. Opt in so off by default.
2198
+ throwSuggestions: !1,
2199
+ // called when getBy* queries fail. (message, container) => Error
2200
+ getElementError(e, t) {
2201
+ const r = ve(t), o = new Error([e, "Ignored nodes: comments, " + be.defaultIgnore + `
2202
+ ` + r].filter(Boolean).join(`
2203
+
2204
+ `));
2205
+ return o.name = "TestingLibraryElementError", o;
2206
+ },
2207
+ _disableExpensiveErrorDiagnostics: !1,
2208
+ computedStyleSupportsPseudoElements: !1
2209
+ };
2210
+ function yi(e) {
2211
+ try {
2212
+ return be._disableExpensiveErrorDiagnostics = !0, e();
2213
+ } finally {
2214
+ be._disableExpensiveErrorDiagnostics = !1;
2215
+ }
2216
+ }
2217
+ function gi(e) {
2218
+ typeof e == "function" && (e = e(be)), be = {
2219
+ ...be,
2220
+ ...e
2221
+ };
2222
+ }
2223
+ function j() {
2224
+ return be;
2225
+ }
2226
+ const hi = ["button", "meter", "output", "progress", "select", "textarea", "input"];
2227
+ function Ir(e) {
2228
+ return hi.includes(e.nodeName.toLowerCase()) ? "" : e.nodeType === Ar ? e.textContent : Array.from(e.childNodes).map((t) => Ir(t)).join("");
2229
+ }
2230
+ function st(e) {
2231
+ let t;
2232
+ return e.tagName.toLowerCase() === "label" ? t = Ir(e) : t = e.value || e.textContent, t;
2233
+ }
2234
+ function xr(e) {
2235
+ if (e.labels !== void 0) {
2236
+ var t;
2237
+ return (t = e.labels) != null ? t : [];
2238
+ }
2239
+ if (!Ei(e)) return [];
2240
+ const r = e.ownerDocument.querySelectorAll("label");
2241
+ return Array.from(r).filter((o) => o.control === e);
2242
+ }
2243
+ function Ei(e) {
2244
+ return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName) || e.tagName === "INPUT" && e.getAttribute("type") !== "hidden";
2245
+ }
2246
+ function Or(e, t, r) {
2247
+ let {
2248
+ selector: o = "*"
2249
+ } = r === void 0 ? {} : r;
2250
+ const s = t.getAttribute("aria-labelledby"), f = s ? s.split(" ") : [];
2251
+ return f.length ? f.map((u) => {
2252
+ const p = e.querySelector('[id="' + u + '"]');
2253
+ return p ? {
2254
+ content: st(p),
2255
+ formControl: null
2256
+ } : {
2257
+ content: "",
2258
+ formControl: null
2259
+ };
2260
+ }) : Array.from(xr(t)).map((u) => {
2261
+ const p = st(u), a = Array.from(u.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((l) => l.matches(o))[0];
2262
+ return {
2263
+ content: p,
2264
+ formControl: a
2265
+ };
2266
+ });
2267
+ }
2268
+ function Mr(e) {
2269
+ if (e == null)
2270
+ throw new Error(
2271
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- implicitly converting `T` to `string`
2272
+ "It looks like " + e + " was passed instead of a matcher. Did you do something like getByText(" + e + ")?"
2273
+ );
2274
+ }
2275
+ function we(e, t, r, o) {
2276
+ if (typeof e != "string")
2277
+ return !1;
2278
+ Mr(r);
2279
+ const s = o(e);
2280
+ return typeof r == "string" || typeof r == "number" ? s.toLowerCase().includes(r.toString().toLowerCase()) : typeof r == "function" ? r(s, t) : _r(r, s);
2281
+ }
2282
+ function le(e, t, r, o) {
2283
+ if (typeof e != "string")
2284
+ return !1;
2285
+ Mr(r);
2286
+ const s = o(e);
2287
+ return r instanceof Function ? r(s, t) : r instanceof RegExp ? _r(r, s) : s === String(r);
2288
+ }
2289
+ function Cr(e) {
2290
+ let {
2291
+ trim: t = !0,
2292
+ collapseWhitespace: r = !0
2293
+ } = e === void 0 ? {} : e;
2294
+ return (o) => {
2295
+ let s = o;
2296
+ return s = t ? s.trim() : s, s = r ? s.replace(/\s+/g, " ") : s, s;
2297
+ };
2298
+ }
2299
+ function ye(e) {
2300
+ let {
2301
+ trim: t,
2302
+ collapseWhitespace: r,
2303
+ normalizer: o
2304
+ } = e;
2305
+ if (!o)
2306
+ return Cr({
2307
+ trim: t,
2308
+ collapseWhitespace: r
2309
+ });
2310
+ if (typeof t < "u" || typeof r < "u")
2311
+ throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');
2312
+ return o;
2313
+ }
2314
+ function _r(e, t) {
2315
+ const r = e.test(t);
2316
+ return e.global && e.lastIndex !== 0 && (console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."), e.lastIndex = 0), r;
2317
+ }
2318
+ function Qe(e) {
2319
+ return e.matches("input[type=submit], input[type=button], input[type=reset]") ? e.value : Array.from(e.childNodes).filter((t) => t.nodeType === Ar && !!t.textContent).map((t) => t.textContent).join("");
2320
+ }
2321
+ const vi = Ti(Y.elementRoles);
2322
+ function Rr(e) {
2323
+ return e.hidden === !0 || e.getAttribute("aria-hidden") === "true" || e.ownerDocument.defaultView.getComputedStyle(e).display === "none";
2324
+ }
2325
+ function Ot(e, t) {
2326
+ t === void 0 && (t = {});
2327
+ const {
2328
+ isSubtreeInaccessible: r = Rr
2329
+ } = t;
2330
+ if (e.ownerDocument.defaultView.getComputedStyle(e).visibility === "hidden")
2331
+ return !0;
2332
+ let s = e;
2333
+ for (; s; ) {
2334
+ if (r(s))
2335
+ return !0;
2336
+ s = s.parentElement;
2337
+ }
2338
+ return !1;
2339
+ }
2340
+ function Mt(e) {
2341
+ for (const {
2342
+ match: t,
2343
+ roles: r
2344
+ } of vi)
2345
+ if (t(e))
2346
+ return [...r];
2347
+ return [];
2348
+ }
2349
+ function Ti(e) {
2350
+ function t(u) {
2351
+ let {
2352
+ name: p,
2353
+ attributes: n
2354
+ } = u;
2355
+ return "" + p + n.map((a) => {
2356
+ let {
2357
+ name: l,
2358
+ value: i,
2359
+ constraints: d = []
2360
+ } = a;
2361
+ const m = d.indexOf("undefined") !== -1, E = d.indexOf("set") !== -1;
2362
+ return typeof i < "u" ? "[" + l + '="' + i + '"]' : m ? ":not([" + l + "])" : E ? "[" + l + "]:not([" + l + '=""])' : "[" + l + "]";
2363
+ }).join("");
2364
+ }
2365
+ function r(u) {
2366
+ let {
2367
+ attributes: p = []
2368
+ } = u;
2369
+ return p.length;
2370
+ }
2371
+ function o(u, p) {
2372
+ let {
2373
+ specificity: n
2374
+ } = u, {
2375
+ specificity: a
2376
+ } = p;
2377
+ return a - n;
2378
+ }
2379
+ function s(u) {
2380
+ let {
2381
+ attributes: p = []
2382
+ } = u;
2383
+ const n = p.findIndex((l) => l.value && l.name === "type" && l.value === "text");
2384
+ n >= 0 && (p = [...p.slice(0, n), ...p.slice(n + 1)]);
2385
+ const a = t({
2386
+ ...u,
2387
+ attributes: p
2388
+ });
2389
+ return (l) => n >= 0 && l.type !== "text" ? !1 : l.matches(a);
2390
+ }
2391
+ let f = [];
2392
+ for (const [u, p] of e.entries())
2393
+ f = [...f, {
2394
+ match: s(u),
2395
+ roles: Array.from(p),
2396
+ specificity: r(u)
2397
+ }];
2398
+ return f.sort(o);
2399
+ }
2400
+ function wi(e, t) {
2401
+ let {
2402
+ hidden: r = !1
2403
+ } = t === void 0 ? {} : t;
2404
+ function o(s) {
2405
+ return [s, ...Array.from(s.children).reduce((f, u) => [...f, ...o(u)], [])];
2406
+ }
2407
+ return o(e).filter((s) => r === !1 ? Ot(s) === !1 : !0).reduce((s, f) => {
2408
+ let u = [];
2409
+ return f.hasAttribute("role") ? u = f.getAttribute("role").split(" ").slice(0, 1) : u = Mt(f), u.reduce((p, n) => Array.isArray(p[n]) ? {
2410
+ ...p,
2411
+ [n]: [...p[n], f]
2412
+ } : {
2413
+ ...p,
2414
+ [n]: [f]
2415
+ }, s);
2416
+ }, {});
2417
+ }
2418
+ function Ai(e, t) {
2419
+ let {
2420
+ hidden: r,
2421
+ includeDescription: o
2422
+ } = t;
2423
+ const s = wi(e, {
2424
+ hidden: r
2425
+ });
2426
+ return Object.entries(s).filter((f) => {
2427
+ let [u] = f;
2428
+ return u !== "generic";
2429
+ }).map((f) => {
2430
+ let [u, p] = f;
2431
+ const n = "-".repeat(50), a = p.map((l) => {
2432
+ const i = 'Name "' + At(l, {
2433
+ computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
2434
+ }) + `":
2435
+ `, d = ve(l.cloneNode(!1));
2436
+ if (o) {
2437
+ const m = 'Description "' + mr(l, {
2438
+ computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
2439
+ }) + `":
2440
+ `;
2441
+ return "" + i + m + d;
2442
+ }
2443
+ return "" + i + d;
2444
+ }).join(`
2445
+
2446
+ `);
2447
+ return u + `:
2448
+
2449
+ ` + a + `
2450
+
2451
+ ` + n;
2452
+ }).join(`
2453
+ `);
2454
+ }
2455
+ function Si(e) {
2456
+ return e.tagName === "OPTION" ? e.selected : _e(e, "aria-selected");
2457
+ }
2458
+ function Ii(e) {
2459
+ return e.getAttribute("aria-busy") === "true";
2460
+ }
2461
+ function xi(e) {
2462
+ if (!("indeterminate" in e && e.indeterminate))
2463
+ return "checked" in e ? e.checked : _e(e, "aria-checked");
2464
+ }
2465
+ function Oi(e) {
2466
+ return _e(e, "aria-pressed");
2467
+ }
2468
+ function Mi(e) {
2469
+ var t, r;
2470
+ return (t = (r = _e(e, "aria-current")) != null ? r : e.getAttribute("aria-current")) != null ? t : !1;
2471
+ }
2472
+ function Ci(e) {
2473
+ return _e(e, "aria-expanded");
2474
+ }
2475
+ function _e(e, t) {
2476
+ const r = e.getAttribute(t);
2477
+ if (r === "true")
2478
+ return !0;
2479
+ if (r === "false")
2480
+ return !1;
2481
+ }
2482
+ function _i(e) {
2483
+ const t = {
2484
+ H1: 1,
2485
+ H2: 2,
2486
+ H3: 3,
2487
+ H4: 4,
2488
+ H5: 5,
2489
+ H6: 6
2490
+ };
2491
+ return e.getAttribute("aria-level") && Number(e.getAttribute("aria-level")) || t[e.tagName];
2492
+ }
2493
+ function Ri(e) {
2494
+ const t = e.getAttribute("aria-valuenow");
2495
+ return t === null ? void 0 : +t;
2496
+ }
2497
+ function Bi(e) {
2498
+ const t = e.getAttribute("aria-valuemax");
2499
+ return t === null ? void 0 : +t;
2500
+ }
2501
+ function Ni(e) {
2502
+ const t = e.getAttribute("aria-valuemin");
2503
+ return t === null ? void 0 : +t;
2504
+ }
2505
+ function Pi(e) {
2506
+ const t = e.getAttribute("aria-valuetext");
2507
+ return t === null ? void 0 : t;
2508
+ }
2509
+ const Zt = Cr();
2510
+ function Li(e) {
2511
+ return e.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
2512
+ }
2513
+ function er(e) {
2514
+ return new RegExp(Li(e.toLowerCase()), "i");
2515
+ }
2516
+ function ce(e, t, r, o) {
2517
+ let {
2518
+ variant: s,
2519
+ name: f
2520
+ } = o, u = "";
2521
+ const p = {}, n = [["Role", "TestId"].includes(e) ? r : er(r)];
2522
+ f && (p.name = er(f)), e === "Role" && Ot(t) && (p.hidden = !0, u = `Element is inaccessible. This means that the element and all its children are invisible to screen readers.
2523
+ If you are using the aria-hidden prop, make sure this is the right choice for your case.
2524
+ `), Object.keys(p).length > 0 && n.push(p);
2525
+ const a = s + "By" + e;
2526
+ return {
2527
+ queryName: e,
2528
+ queryMethod: a,
2529
+ queryArgs: n,
2530
+ variant: s,
2531
+ warning: u,
2532
+ toString() {
2533
+ u && console.warn(u);
2534
+ let [l, i] = n;
2535
+ return l = typeof l == "string" ? "'" + l + "'" : l, i = i ? ", { " + Object.entries(i).map((d) => {
2536
+ let [m, E] = d;
2537
+ return m + ": " + E;
2538
+ }).join(", ") + " }" : "", a + "(" + l + i + ")";
2539
+ }
2540
+ };
2541
+ }
2542
+ function fe(e, t, r) {
2543
+ return r && !0;
2544
+ }
2545
+ function ct(e, t, r) {
2546
+ var o, s;
2547
+ if (t === void 0 && (t = "get"), e.matches(j().defaultIgnore))
2548
+ return;
2549
+ const f = (o = e.getAttribute("role")) != null ? o : (s = Mt(e)) == null ? void 0 : s[0];
2550
+ if (f !== "generic" && fe("Role", r, f))
2551
+ return ce("Role", e, f, {
2552
+ variant: t,
2553
+ name: At(e, {
2554
+ computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
2555
+ })
2556
+ });
2557
+ const u = Or(document, e).map((d) => d.content).join(" ");
2558
+ if (fe("LabelText", r, u))
2559
+ return ce("LabelText", e, u, {
2560
+ variant: t
2561
+ });
2562
+ const p = e.getAttribute("placeholder");
2563
+ if (fe("PlaceholderText", r, p))
2564
+ return ce("PlaceholderText", e, p, {
2565
+ variant: t
2566
+ });
2567
+ const n = Zt(Qe(e));
2568
+ if (fe("Text", r, n))
2569
+ return ce("Text", e, n, {
2570
+ variant: t
2571
+ });
2572
+ if (fe("DisplayValue", r, e.value))
2573
+ return ce("DisplayValue", e, Zt(e.value), {
2574
+ variant: t
2575
+ });
2576
+ const a = e.getAttribute("alt");
2577
+ if (fe("AltText", r, a))
2578
+ return ce("AltText", e, a, {
2579
+ variant: t
2580
+ });
2581
+ const l = e.getAttribute("title");
2582
+ if (fe("Title", r, l))
2583
+ return ce("Title", e, l, {
2584
+ variant: t
2585
+ });
2586
+ const i = e.getAttribute(j().testIdAttribute);
2587
+ if (fe("TestId", r, i))
2588
+ return ce("TestId", e, i, {
2589
+ variant: t
2590
+ });
2591
+ }
2592
+ function Fe(e, t) {
2593
+ e.stack = t.stack.replace(t.message, e.message);
2594
+ }
2595
+ function Di(e, t) {
2596
+ let {
2597
+ container: r = xt(),
2598
+ timeout: o = j().asyncUtilTimeout,
2599
+ showOriginalStackTrace: s = j().showOriginalStackTrace,
2600
+ stackTraceError: f,
2601
+ interval: u = 50,
2602
+ onTimeout: p = (a) => (Object.defineProperty(a, "message", {
2603
+ value: j().getElementError(a.message, r).message
2604
+ }), a),
2605
+ mutationObserverOptions: n = {
2606
+ subtree: !0,
2607
+ childList: !0,
2608
+ attributes: !0,
2609
+ characterData: !0
2610
+ }
2611
+ } = t;
2612
+ if (typeof e != "function")
2613
+ throw new TypeError("Received `callback` arg must be a function");
2614
+ return new Promise(async (a, l) => {
2615
+ let i, d, m, E = !1, h = "idle";
2616
+ const w = setTimeout(M, o), c = ut();
2617
+ if (c) {
2618
+ const {
2619
+ unstable_advanceTimersWrapper: y
2620
+ } = j();
2621
+ for (x(); !E; ) {
2622
+ if (!ut()) {
2623
+ const g = new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
2624
+ s || Fe(g, f), l(g);
2625
+ return;
2626
+ }
2627
+ if (await y(async () => {
2628
+ jest.advanceTimersByTime(u);
2629
+ }), E)
2630
+ break;
2631
+ x();
2632
+ }
2633
+ } else {
2634
+ try {
2635
+ se(r);
2636
+ } catch (g) {
2637
+ l(g);
2638
+ return;
2639
+ }
2640
+ d = setInterval(I, u);
2641
+ const {
2642
+ MutationObserver: y
2643
+ } = Sr(r);
2644
+ m = new y(I), m.observe(r, n), x();
2645
+ }
2646
+ function A(y, g) {
2647
+ E = !0, clearTimeout(w), c || (clearInterval(d), m.disconnect()), y ? l(y) : a(g);
2648
+ }
2649
+ function I() {
2650
+ if (ut()) {
2651
+ const y = new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
2652
+ return s || Fe(y, f), l(y);
2653
+ } else
2654
+ return x();
2655
+ }
2656
+ function x() {
2657
+ if (h !== "pending")
2658
+ try {
2659
+ const y = yi(e);
2660
+ typeof (y == null ? void 0 : y.then) == "function" ? (h = "pending", y.then((g) => {
2661
+ h = "resolved", A(null, g);
2662
+ }, (g) => {
2663
+ h = "rejected", i = g;
2664
+ })) : A(null, y);
2665
+ } catch (y) {
2666
+ i = y;
2667
+ }
2668
+ }
2669
+ function M() {
2670
+ let y;
2671
+ i ? (y = i, !s && y.name === "TestingLibraryElementError" && Fe(y, f)) : (y = new Error("Timed out in waitFor."), s || Fe(y, f)), A(p(y), null);
2672
+ }
2673
+ });
2674
+ }
2675
+ function qi(e, t) {
2676
+ const r = new Error("STACK_TRACE_MESSAGE");
2677
+ return j().asyncWrapper(() => Di(e, {
2678
+ stackTraceError: r,
2679
+ ...t
2680
+ }));
2681
+ }
2682
+ function Br(e, t) {
2683
+ return j().getElementError(e, t);
2684
+ }
2685
+ function ji(e, t) {
2686
+ return Br(e + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", t);
2687
+ }
2688
+ function Xe(e, t, r, o) {
2689
+ let {
2690
+ exact: s = !0,
2691
+ collapseWhitespace: f,
2692
+ trim: u,
2693
+ normalizer: p
2694
+ } = o === void 0 ? {} : o;
2695
+ const n = s ? le : we, a = ye({
2696
+ collapseWhitespace: f,
2697
+ trim: u,
2698
+ normalizer: p
2699
+ });
2700
+ return Array.from(t.querySelectorAll("[" + e + "]")).filter((l) => n(l.getAttribute(e), l, r, a));
2701
+ }
2702
+ function Ve(e, t) {
2703
+ return function(r) {
2704
+ for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), f = 1; f < o; f++)
2705
+ s[f - 1] = arguments[f];
2706
+ const u = e(r, ...s);
2707
+ if (u.length > 1) {
2708
+ const p = u.map((n) => Br(null, n).message).join(`
2709
+
2710
+ `);
2711
+ throw ji(t(r, ...s) + `
2712
+
2713
+ Here are the matching elements:
2714
+
2715
+ ` + p, r);
2716
+ }
2717
+ return u[0] || null;
2718
+ };
2719
+ }
2720
+ function Nr(e, t) {
2721
+ return j().getElementError(`A better query is available, try this:
2722
+ ` + e.toString() + `
2723
+ `, t);
2724
+ }
2725
+ function ki(e, t) {
2726
+ return function(r) {
2727
+ for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), f = 1; f < o; f++)
2728
+ s[f - 1] = arguments[f];
2729
+ const u = e(r, ...s);
2730
+ if (!u.length)
2731
+ throw j().getElementError(t(r, ...s), r);
2732
+ return u;
2733
+ };
2734
+ }
2735
+ function Ge(e) {
2736
+ return (t, r, o, s) => qi(() => e(t, r, o), {
2737
+ container: t,
2738
+ ...s
2739
+ });
2740
+ }
2741
+ const Ee = (e, t, r) => function(o) {
2742
+ for (var s = arguments.length, f = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
2743
+ f[u - 1] = arguments[u];
2744
+ const p = e(o, ...f), [{
2745
+ suggest: n = j().throwSuggestions
2746
+ } = {}] = f.slice(-1);
2747
+ if (p && n) {
2748
+ const a = ct(p, r);
2749
+ if (a && !t.endsWith(a.queryName))
2750
+ throw Nr(a.toString(), o);
2751
+ }
2752
+ return p;
2753
+ }, K = (e, t, r) => function(o) {
2754
+ for (var s = arguments.length, f = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
2755
+ f[u - 1] = arguments[u];
2756
+ const p = e(o, ...f), [{
2757
+ suggest: n = j().throwSuggestions
2758
+ } = {}] = f.slice(-1);
2759
+ if (p.length && n) {
2760
+ const a = [...new Set(p.map((l) => {
2761
+ var i;
2762
+ return (i = ct(l, r)) == null ? void 0 : i.toString();
2763
+ }))];
2764
+ if (
2765
+ // only want to suggest if all the els have the same suggestion.
2766
+ a.length === 1 && !t.endsWith(
2767
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
2768
+ ct(p[0], r).queryName
2769
+ )
2770
+ )
2771
+ throw Nr(a[0], o);
2772
+ }
2773
+ return p;
2774
+ };
2775
+ function ge(e, t, r) {
2776
+ const o = Ee(Ve(e, t), e.name, "query"), s = ki(e, r), f = Ve(s, t), u = Ee(f, e.name, "get"), p = K(s, e.name.replace("query", "get"), "getAll"), n = Ge(K(s, e.name, "findAll")), a = Ge(Ee(f, e.name, "find"));
2777
+ return [o, p, u, n, a];
2778
+ }
2779
+ function Fi(e) {
2780
+ return Array.from(e.querySelectorAll("label,input")).map((t) => ({
2781
+ node: t,
2782
+ textToMatch: st(t)
2783
+ })).filter((t) => {
2784
+ let {
2785
+ textToMatch: r
2786
+ } = t;
2787
+ return r !== null;
2788
+ });
2789
+ }
2790
+ const $i = function(e, t, r) {
2791
+ let {
2792
+ exact: o = !0,
2793
+ trim: s,
2794
+ collapseWhitespace: f,
2795
+ normalizer: u
2796
+ } = r === void 0 ? {} : r;
2797
+ const p = o ? le : we, n = ye({
2798
+ collapseWhitespace: f,
2799
+ trim: s,
2800
+ normalizer: u
2801
+ });
2802
+ return Fi(e).filter((l) => {
2803
+ let {
2804
+ node: i,
2805
+ textToMatch: d
2806
+ } = l;
2807
+ return p(d, i, t, n);
2808
+ }).map((l) => {
2809
+ let {
2810
+ node: i
2811
+ } = l;
2812
+ return i;
2813
+ });
2814
+ }, Me = function(e, t, r) {
2815
+ let {
2816
+ selector: o = "*",
2817
+ exact: s = !0,
2818
+ collapseWhitespace: f,
2819
+ trim: u,
2820
+ normalizer: p
2821
+ } = r === void 0 ? {} : r;
2822
+ se(e);
2823
+ const n = s ? le : we, a = ye({
2824
+ collapseWhitespace: f,
2825
+ trim: u,
2826
+ normalizer: p
2827
+ }), l = Array.from(e.querySelectorAll("*")).filter((i) => xr(i).length || i.hasAttribute("aria-labelledby")).reduce((i, d) => {
2828
+ const m = Or(e, d, {
2829
+ selector: o
2830
+ });
2831
+ m.filter((h) => !!h.formControl).forEach((h) => {
2832
+ n(h.content, h.formControl, t, a) && h.formControl && i.push(h.formControl);
2833
+ });
2834
+ const E = m.filter((h) => !!h.content).map((h) => h.content);
2835
+ return n(E.join(" "), d, t, a) && i.push(d), E.length > 1 && E.forEach((h, w) => {
2836
+ n(h, d, t, a) && i.push(d);
2837
+ const c = [...E];
2838
+ c.splice(w, 1), c.length > 1 && n(c.join(" "), d, t, a) && i.push(d);
2839
+ }), i;
2840
+ }, []).concat(Xe("aria-label", e, t, {
2841
+ exact: s,
2842
+ normalizer: a
2843
+ }));
2844
+ return Array.from(new Set(l)).filter((i) => i.matches(o));
2845
+ }, me = function(e, t) {
2846
+ for (var r = arguments.length, o = new Array(r > 2 ? r - 2 : 0), s = 2; s < r; s++)
2847
+ o[s - 2] = arguments[s];
2848
+ const f = Me(e, t, ...o);
2849
+ if (!f.length) {
2850
+ const u = $i(e, t, ...o);
2851
+ if (u.length) {
2852
+ const p = u.map((n) => zi(e, n)).filter((n) => !!n);
2853
+ throw p.length ? j().getElementError(p.map((n) => "Found a label with the text of: " + t + ", however the element associated with this label (<" + n + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + n + " />, you can use aria-label or aria-labelledby instead.").join(`
2854
+
2855
+ `), e) : j().getElementError("Found a label with the text of: " + t + `, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`, e);
2856
+ } else
2857
+ throw j().getElementError("Unable to find a label with the text of: " + t, e);
2858
+ }
2859
+ return f;
2860
+ };
2861
+ function zi(e, t) {
2862
+ const r = t.getAttribute("for");
2863
+ if (!r)
2864
+ return null;
2865
+ const o = e.querySelector('[id="' + r + '"]');
2866
+ return o ? o.tagName.toLowerCase() : null;
2867
+ }
2868
+ const Pr = (e, t) => "Found multiple elements with the text of: " + t, Ui = Ee(Ve(Me, Pr), Me.name, "query"), Lr = Ve(me, Pr), Wi = Ge(K(me, me.name, "findAll")), Hi = Ge(Ee(Lr, me.name, "find")), Vi = K(me, me.name, "getAll"), Gi = Ee(Lr, me.name, "get"), Yi = K(Me, Me.name, "queryAll"), ft = function() {
2869
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
2870
+ t[r] = arguments[r];
2871
+ return se(t[0]), Xe("placeholder", ...t);
2872
+ }, Ki = (e, t) => "Found multiple elements with the placeholder text of: " + t, Ji = (e, t) => "Unable to find an element with the placeholder text of: " + t, Qi = K(ft, ft.name, "queryAll"), [Xi, Zi, eo, to, ro] = ge(ft, Ki, Ji), dt = function(e, t, r) {
2873
+ let {
2874
+ selector: o = "*",
2875
+ exact: s = !0,
2876
+ collapseWhitespace: f,
2877
+ trim: u,
2878
+ ignore: p = j().defaultIgnore,
2879
+ normalizer: n
2880
+ } = r === void 0 ? {} : r;
2881
+ se(e);
2882
+ const a = s ? le : we, l = ye({
2883
+ collapseWhitespace: f,
2884
+ trim: u,
2885
+ normalizer: n
2886
+ });
2887
+ let i = [];
2888
+ return typeof e.matches == "function" && e.matches(o) && (i = [e]), [...i, ...Array.from(e.querySelectorAll(o))].filter((d) => !p || !d.matches(p)).filter((d) => a(Qe(d), d, t, l));
2889
+ }, no = (e, t) => "Found multiple elements with the text: " + t, io = function(e, t, r) {
2890
+ r === void 0 && (r = {});
2891
+ const {
2892
+ collapseWhitespace: o,
2893
+ trim: s,
2894
+ normalizer: f,
2895
+ selector: u
2896
+ } = r, n = ye({
2897
+ collapseWhitespace: o,
2898
+ trim: s,
2899
+ normalizer: f
2900
+ })(t.toString()), a = n !== t.toString(), l = (u ?? "*") !== "*";
2901
+ return "Unable to find an element with the text: " + (a ? n + " (normalized from '" + t + "')" : t) + (l ? ", which matches selector '" + u + "'" : "") + ". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.";
2902
+ }, oo = K(dt, dt.name, "queryAll"), [ao, uo, lo, so, co] = ge(dt, no, io), pt = function(e, t, r) {
2903
+ let {
2904
+ exact: o = !0,
2905
+ collapseWhitespace: s,
2906
+ trim: f,
2907
+ normalizer: u
2908
+ } = r === void 0 ? {} : r;
2909
+ se(e);
2910
+ const p = o ? le : we, n = ye({
2911
+ collapseWhitespace: s,
2912
+ trim: f,
2913
+ normalizer: u
2914
+ });
2915
+ return Array.from(e.querySelectorAll("input,textarea,select")).filter((a) => a.tagName === "SELECT" ? Array.from(a.options).filter((i) => i.selected).some((i) => p(Qe(i), i, t, n)) : p(a.value, a, t, n));
2916
+ }, fo = (e, t) => "Found multiple elements with the display value: " + t + ".", po = (e, t) => "Unable to find an element with the display value: " + t + ".", bo = K(pt, pt.name, "queryAll"), [mo, yo, go, ho, Eo] = ge(pt, fo, po), vo = /^(img|input|area|.+-.+)$/i, bt = function(e, t, r) {
2917
+ return r === void 0 && (r = {}), se(e), Xe("alt", e, t, r).filter((o) => vo.test(o.tagName));
2918
+ }, To = (e, t) => "Found multiple elements with the alt text: " + t, wo = (e, t) => "Unable to find an element with the alt text: " + t, Ao = K(bt, bt.name, "queryAll"), [So, Io, xo, Oo, Mo] = ge(bt, To, wo), Co = (e) => {
2919
+ var t;
2920
+ return e.tagName.toLowerCase() === "title" && ((t = e.parentElement) == null ? void 0 : t.tagName.toLowerCase()) === "svg";
2921
+ }, mt = function(e, t, r) {
2922
+ let {
2923
+ exact: o = !0,
2924
+ collapseWhitespace: s,
2925
+ trim: f,
2926
+ normalizer: u
2927
+ } = r === void 0 ? {} : r;
2928
+ se(e);
2929
+ const p = o ? le : we, n = ye({
2930
+ collapseWhitespace: s,
2931
+ trim: f,
2932
+ normalizer: u
2933
+ });
2934
+ return Array.from(e.querySelectorAll("[title], svg > title")).filter((a) => p(a.getAttribute("title"), a, t, n) || Co(a) && p(Qe(a), a, t, n));
2935
+ }, _o = (e, t) => "Found multiple elements with the title: " + t + ".", Ro = (e, t) => "Unable to find an element with the title: " + t + ".", Bo = K(mt, mt.name, "queryAll"), [No, Po, Lo, Do, qo] = ge(mt, _o, Ro), yt = function(e, t, r) {
2936
+ let {
2937
+ hidden: o = j().defaultHidden,
2938
+ name: s,
2939
+ description: f,
2940
+ queryFallbacks: u = !1,
2941
+ selected: p,
2942
+ busy: n,
2943
+ checked: a,
2944
+ pressed: l,
2945
+ current: i,
2946
+ level: d,
2947
+ expanded: m,
2948
+ value: {
2949
+ now: E,
2950
+ min: h,
2951
+ max: w,
2952
+ text: c
2953
+ } = {}
2954
+ } = r === void 0 ? {} : r;
2955
+ if (se(e), p !== void 0) {
2956
+ var A;
2957
+ if (((A = Y.roles.get(t)) == null ? void 0 : A.props["aria-selected"]) === void 0)
2958
+ throw new Error('"aria-selected" is not supported on role "' + t + '".');
2959
+ }
2960
+ if (n !== void 0) {
2961
+ var I;
2962
+ if (((I = Y.roles.get(t)) == null ? void 0 : I.props["aria-busy"]) === void 0)
2963
+ throw new Error('"aria-busy" is not supported on role "' + t + '".');
2964
+ }
2965
+ if (a !== void 0) {
2966
+ var x;
2967
+ if (((x = Y.roles.get(t)) == null ? void 0 : x.props["aria-checked"]) === void 0)
2968
+ throw new Error('"aria-checked" is not supported on role "' + t + '".');
2969
+ }
2970
+ if (l !== void 0) {
2971
+ var M;
2972
+ if (((M = Y.roles.get(t)) == null ? void 0 : M.props["aria-pressed"]) === void 0)
2973
+ throw new Error('"aria-pressed" is not supported on role "' + t + '".');
2974
+ }
2975
+ if (i !== void 0) {
2976
+ var y;
2977
+ if (((y = Y.roles.get(t)) == null ? void 0 : y.props["aria-current"]) === void 0)
2978
+ throw new Error('"aria-current" is not supported on role "' + t + '".');
2979
+ }
2980
+ if (d !== void 0 && t !== "heading")
2981
+ throw new Error('Role "' + t + '" cannot have "level" property.');
2982
+ if (E !== void 0) {
2983
+ var g;
2984
+ if (((g = Y.roles.get(t)) == null ? void 0 : g.props["aria-valuenow"]) === void 0)
2985
+ throw new Error('"aria-valuenow" is not supported on role "' + t + '".');
2986
+ }
2987
+ if (w !== void 0) {
2988
+ var v;
2989
+ if (((v = Y.roles.get(t)) == null ? void 0 : v.props["aria-valuemax"]) === void 0)
2990
+ throw new Error('"aria-valuemax" is not supported on role "' + t + '".');
2991
+ }
2992
+ if (h !== void 0) {
2993
+ var _;
2994
+ if (((_ = Y.roles.get(t)) == null ? void 0 : _.props["aria-valuemin"]) === void 0)
2995
+ throw new Error('"aria-valuemin" is not supported on role "' + t + '".');
2996
+ }
2997
+ if (c !== void 0) {
2998
+ var R;
2999
+ if (((R = Y.roles.get(t)) == null ? void 0 : R.props["aria-valuetext"]) === void 0)
3000
+ throw new Error('"aria-valuetext" is not supported on role "' + t + '".');
3001
+ }
3002
+ if (m !== void 0) {
3003
+ var B;
3004
+ if (((B = Y.roles.get(t)) == null ? void 0 : B.props["aria-expanded"]) === void 0)
3005
+ throw new Error('"aria-expanded" is not supported on role "' + t + '".');
3006
+ }
3007
+ const N = /* @__PURE__ */ new WeakMap();
3008
+ function S(C) {
3009
+ return N.has(C) || N.set(C, Rr(C)), N.get(C);
3010
+ }
3011
+ return Array.from(e.querySelectorAll(
3012
+ // Only query elements that can be matched by the following filters
3013
+ jo(t)
3014
+ )).filter((C) => {
3015
+ if (C.hasAttribute("role")) {
3016
+ const k = C.getAttribute("role");
3017
+ if (u)
3018
+ return k.split(" ").filter(Boolean).some((Ae) => Ae === t);
3019
+ const [X] = k.split(" ");
3020
+ return X === t;
3021
+ }
3022
+ return Mt(C).some((k) => k === t);
3023
+ }).filter((C) => {
3024
+ if (p !== void 0)
3025
+ return p === Si(C);
3026
+ if (n !== void 0)
3027
+ return n === Ii(C);
3028
+ if (a !== void 0)
3029
+ return a === xi(C);
3030
+ if (l !== void 0)
3031
+ return l === Oi(C);
3032
+ if (i !== void 0)
3033
+ return i === Mi(C);
3034
+ if (m !== void 0)
3035
+ return m === Ci(C);
3036
+ if (d !== void 0)
3037
+ return d === _i(C);
3038
+ if (E !== void 0 || w !== void 0 || h !== void 0 || c !== void 0) {
3039
+ let $ = !0;
3040
+ if (E !== void 0 && $ && ($ = E === Ri(C)), w !== void 0 && $ && ($ = w === Bi(C)), h !== void 0 && $ && ($ = h === Ni(C)), c !== void 0) {
3041
+ var U;
3042
+ $ && ($ = le((U = Pi(C)) != null ? U : null, C, c, (k) => k));
3043
+ }
3044
+ return $;
3045
+ }
3046
+ return !0;
3047
+ }).filter((C) => s === void 0 ? !0 : le(At(C, {
3048
+ computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
3049
+ }), C, s, (U) => U)).filter((C) => f === void 0 ? !0 : le(mr(C, {
3050
+ computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
3051
+ }), C, f, (U) => U)).filter((C) => o === !1 ? Ot(C, {
3052
+ isSubtreeInaccessible: S
3053
+ }) === !1 : !0);
3054
+ };
3055
+ function jo(e) {
3056
+ var t;
3057
+ const r = '*[role~="' + e + '"]', o = (t = Y.roleElements.get(e)) != null ? t : /* @__PURE__ */ new Set(), s = new Set(Array.from(o).map((f) => {
3058
+ let {
3059
+ name: u
3060
+ } = f;
3061
+ return u;
3062
+ }));
3063
+ return [r].concat(Array.from(s)).join(",");
3064
+ }
3065
+ const Dr = (e) => {
3066
+ let t = "";
3067
+ return e === void 0 ? t = "" : typeof e == "string" ? t = ' and name "' + e + '"' : t = " and name `" + e + "`", t;
3068
+ }, ko = function(e, t, r) {
3069
+ let {
3070
+ name: o
3071
+ } = r === void 0 ? {} : r;
3072
+ return 'Found multiple elements with the role "' + t + '"' + Dr(o);
3073
+ }, Fo = function(e, t, r) {
3074
+ let {
3075
+ hidden: o = j().defaultHidden,
3076
+ name: s,
3077
+ description: f
3078
+ } = r === void 0 ? {} : r;
3079
+ if (j()._disableExpensiveErrorDiagnostics)
3080
+ return 'Unable to find role="' + t + '"' + Dr(s);
3081
+ let u = "";
3082
+ Array.from(e.children).forEach((l) => {
3083
+ u += Ai(l, {
3084
+ hidden: o,
3085
+ includeDescription: f !== void 0
3086
+ });
3087
+ });
3088
+ let p;
3089
+ u.length === 0 ? o === !1 ? p = "There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole" : p = "There are no available roles." : p = (`
3090
+ Here are the ` + (o === !1 ? "accessible" : "available") + ` roles:
3091
+
3092
+ ` + u.replace(/\n/g, `
3093
+ `).replace(/\n\s\s\n/g, `
3094
+
3095
+ `) + `
3096
+ `).trim();
3097
+ let n = "";
3098
+ s === void 0 ? n = "" : typeof s == "string" ? n = ' and name "' + s + '"' : n = " and name `" + s + "`";
3099
+ let a = "";
3100
+ return f === void 0 ? a = "" : typeof f == "string" ? a = ' and description "' + f + '"' : a = " and description `" + f + "`", (`
3101
+ Unable to find an ` + (o === !1 ? "accessible " : "") + 'element with the role "' + t + '"' + n + a + `
3102
+
3103
+ ` + p).trim();
3104
+ }, $o = K(yt, yt.name, "queryAll"), [zo, Uo, Wo, Ho, Vo] = ge(yt, ko, Fo), Ct = () => j().testIdAttribute, gt = function() {
3105
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
3106
+ t[r] = arguments[r];
3107
+ return se(t[0]), Xe(Ct(), ...t);
3108
+ }, Go = (e, t) => "Found multiple elements by: [" + Ct() + '="' + t + '"]', Yo = (e, t) => "Unable to find an element by: [" + Ct() + '="' + t + '"]', Ko = K(gt, gt.name, "queryAll"), [Jo, Qo, Xo, Zo, ea] = ge(gt, Go, Yo);
3109
+ var ht = /* @__PURE__ */ Object.freeze({
3110
+ __proto__: null,
3111
+ queryAllByLabelText: Yi,
3112
+ queryByLabelText: Ui,
3113
+ getAllByLabelText: Vi,
3114
+ getByLabelText: Gi,
3115
+ findAllByLabelText: Wi,
3116
+ findByLabelText: Hi,
3117
+ queryByPlaceholderText: Xi,
3118
+ queryAllByPlaceholderText: Qi,
3119
+ getByPlaceholderText: eo,
3120
+ getAllByPlaceholderText: Zi,
3121
+ findAllByPlaceholderText: to,
3122
+ findByPlaceholderText: ro,
3123
+ queryByText: ao,
3124
+ queryAllByText: oo,
3125
+ getByText: lo,
3126
+ getAllByText: uo,
3127
+ findAllByText: so,
3128
+ findByText: co,
3129
+ queryByDisplayValue: mo,
3130
+ queryAllByDisplayValue: bo,
3131
+ getByDisplayValue: go,
3132
+ getAllByDisplayValue: yo,
3133
+ findAllByDisplayValue: ho,
3134
+ findByDisplayValue: Eo,
3135
+ queryByAltText: So,
3136
+ queryAllByAltText: Ao,
3137
+ getByAltText: xo,
3138
+ getAllByAltText: Io,
3139
+ findAllByAltText: Oo,
3140
+ findByAltText: Mo,
3141
+ queryByTitle: No,
3142
+ queryAllByTitle: Bo,
3143
+ getByTitle: Lo,
3144
+ getAllByTitle: Po,
3145
+ findAllByTitle: Do,
3146
+ findByTitle: qo,
3147
+ queryByRole: zo,
3148
+ queryAllByRole: $o,
3149
+ getAllByRole: Uo,
3150
+ getByRole: Wo,
3151
+ findAllByRole: Ho,
3152
+ findByRole: Vo,
3153
+ queryByTestId: Jo,
3154
+ queryAllByTestId: Ko,
3155
+ getByTestId: Xo,
3156
+ getAllByTestId: Qo,
3157
+ findAllByTestId: Zo,
3158
+ findByTestId: ea
3159
+ });
3160
+ function qr(e, t, r) {
3161
+ return t === void 0 && (t = ht), r === void 0 && (r = {}), Object.keys(t).reduce((o, s) => {
3162
+ const f = t[s];
3163
+ return o[s] = f.bind(null, e), o;
3164
+ }, r);
3165
+ }
3166
+ const tr = {
3167
+ // Clipboard Events
3168
+ copy: {
3169
+ EventType: "ClipboardEvent",
3170
+ defaultInit: {
3171
+ bubbles: !0,
3172
+ cancelable: !0,
3173
+ composed: !0
3174
+ }
3175
+ },
3176
+ cut: {
3177
+ EventType: "ClipboardEvent",
3178
+ defaultInit: {
3179
+ bubbles: !0,
3180
+ cancelable: !0,
3181
+ composed: !0
3182
+ }
3183
+ },
3184
+ paste: {
3185
+ EventType: "ClipboardEvent",
3186
+ defaultInit: {
3187
+ bubbles: !0,
3188
+ cancelable: !0,
3189
+ composed: !0
3190
+ }
3191
+ },
3192
+ // Composition Events
3193
+ compositionEnd: {
3194
+ EventType: "CompositionEvent",
3195
+ defaultInit: {
3196
+ bubbles: !0,
3197
+ cancelable: !0,
3198
+ composed: !0
3199
+ }
3200
+ },
3201
+ compositionStart: {
3202
+ EventType: "CompositionEvent",
3203
+ defaultInit: {
3204
+ bubbles: !0,
3205
+ cancelable: !0,
3206
+ composed: !0
3207
+ }
3208
+ },
3209
+ compositionUpdate: {
3210
+ EventType: "CompositionEvent",
3211
+ defaultInit: {
3212
+ bubbles: !0,
3213
+ cancelable: !0,
3214
+ composed: !0
3215
+ }
3216
+ },
3217
+ // Keyboard Events
3218
+ keyDown: {
3219
+ EventType: "KeyboardEvent",
3220
+ defaultInit: {
3221
+ bubbles: !0,
3222
+ cancelable: !0,
3223
+ charCode: 0,
3224
+ composed: !0
3225
+ }
3226
+ },
3227
+ keyPress: {
3228
+ EventType: "KeyboardEvent",
3229
+ defaultInit: {
3230
+ bubbles: !0,
3231
+ cancelable: !0,
3232
+ charCode: 0,
3233
+ composed: !0
3234
+ }
3235
+ },
3236
+ keyUp: {
3237
+ EventType: "KeyboardEvent",
3238
+ defaultInit: {
3239
+ bubbles: !0,
3240
+ cancelable: !0,
3241
+ charCode: 0,
3242
+ composed: !0
3243
+ }
3244
+ },
3245
+ // Focus Events
3246
+ focus: {
3247
+ EventType: "FocusEvent",
3248
+ defaultInit: {
3249
+ bubbles: !1,
3250
+ cancelable: !1,
3251
+ composed: !0
3252
+ }
3253
+ },
3254
+ blur: {
3255
+ EventType: "FocusEvent",
3256
+ defaultInit: {
3257
+ bubbles: !1,
3258
+ cancelable: !1,
3259
+ composed: !0
3260
+ }
3261
+ },
3262
+ focusIn: {
3263
+ EventType: "FocusEvent",
3264
+ defaultInit: {
3265
+ bubbles: !0,
3266
+ cancelable: !1,
3267
+ composed: !0
3268
+ }
3269
+ },
3270
+ focusOut: {
3271
+ EventType: "FocusEvent",
3272
+ defaultInit: {
3273
+ bubbles: !0,
3274
+ cancelable: !1,
3275
+ composed: !0
3276
+ }
3277
+ },
3278
+ // Form Events
3279
+ change: {
3280
+ EventType: "Event",
3281
+ defaultInit: {
3282
+ bubbles: !0,
3283
+ cancelable: !1
3284
+ }
3285
+ },
3286
+ input: {
3287
+ EventType: "InputEvent",
3288
+ defaultInit: {
3289
+ bubbles: !0,
3290
+ cancelable: !1,
3291
+ composed: !0
3292
+ }
3293
+ },
3294
+ invalid: {
3295
+ EventType: "Event",
3296
+ defaultInit: {
3297
+ bubbles: !1,
3298
+ cancelable: !0
3299
+ }
3300
+ },
3301
+ submit: {
3302
+ EventType: "Event",
3303
+ defaultInit: {
3304
+ bubbles: !0,
3305
+ cancelable: !0
3306
+ }
3307
+ },
3308
+ reset: {
3309
+ EventType: "Event",
3310
+ defaultInit: {
3311
+ bubbles: !0,
3312
+ cancelable: !0
3313
+ }
3314
+ },
3315
+ // Mouse Events
3316
+ click: {
3317
+ EventType: "MouseEvent",
3318
+ defaultInit: {
3319
+ bubbles: !0,
3320
+ cancelable: !0,
3321
+ button: 0,
3322
+ composed: !0
3323
+ }
3324
+ },
3325
+ contextMenu: {
3326
+ EventType: "MouseEvent",
3327
+ defaultInit: {
3328
+ bubbles: !0,
3329
+ cancelable: !0,
3330
+ composed: !0
3331
+ }
3332
+ },
3333
+ dblClick: {
3334
+ EventType: "MouseEvent",
3335
+ defaultInit: {
3336
+ bubbles: !0,
3337
+ cancelable: !0,
3338
+ composed: !0
3339
+ }
3340
+ },
3341
+ drag: {
3342
+ EventType: "DragEvent",
3343
+ defaultInit: {
3344
+ bubbles: !0,
3345
+ cancelable: !0,
3346
+ composed: !0
3347
+ }
3348
+ },
3349
+ dragEnd: {
3350
+ EventType: "DragEvent",
3351
+ defaultInit: {
3352
+ bubbles: !0,
3353
+ cancelable: !1,
3354
+ composed: !0
3355
+ }
3356
+ },
3357
+ dragEnter: {
3358
+ EventType: "DragEvent",
3359
+ defaultInit: {
3360
+ bubbles: !0,
3361
+ cancelable: !0,
3362
+ composed: !0
3363
+ }
3364
+ },
3365
+ dragExit: {
3366
+ EventType: "DragEvent",
3367
+ defaultInit: {
3368
+ bubbles: !0,
3369
+ cancelable: !1,
3370
+ composed: !0
3371
+ }
3372
+ },
3373
+ dragLeave: {
3374
+ EventType: "DragEvent",
3375
+ defaultInit: {
3376
+ bubbles: !0,
3377
+ cancelable: !1,
3378
+ composed: !0
3379
+ }
3380
+ },
3381
+ dragOver: {
3382
+ EventType: "DragEvent",
3383
+ defaultInit: {
3384
+ bubbles: !0,
3385
+ cancelable: !0,
3386
+ composed: !0
3387
+ }
3388
+ },
3389
+ dragStart: {
3390
+ EventType: "DragEvent",
3391
+ defaultInit: {
3392
+ bubbles: !0,
3393
+ cancelable: !0,
3394
+ composed: !0
3395
+ }
3396
+ },
3397
+ drop: {
3398
+ EventType: "DragEvent",
3399
+ defaultInit: {
3400
+ bubbles: !0,
3401
+ cancelable: !0,
3402
+ composed: !0
3403
+ }
3404
+ },
3405
+ mouseDown: {
3406
+ EventType: "MouseEvent",
3407
+ defaultInit: {
3408
+ bubbles: !0,
3409
+ cancelable: !0,
3410
+ composed: !0
3411
+ }
3412
+ },
3413
+ mouseEnter: {
3414
+ EventType: "MouseEvent",
3415
+ defaultInit: {
3416
+ bubbles: !1,
3417
+ cancelable: !1,
3418
+ composed: !0
3419
+ }
3420
+ },
3421
+ mouseLeave: {
3422
+ EventType: "MouseEvent",
3423
+ defaultInit: {
3424
+ bubbles: !1,
3425
+ cancelable: !1,
3426
+ composed: !0
3427
+ }
3428
+ },
3429
+ mouseMove: {
3430
+ EventType: "MouseEvent",
3431
+ defaultInit: {
3432
+ bubbles: !0,
3433
+ cancelable: !0,
3434
+ composed: !0
3435
+ }
3436
+ },
3437
+ mouseOut: {
3438
+ EventType: "MouseEvent",
3439
+ defaultInit: {
3440
+ bubbles: !0,
3441
+ cancelable: !0,
3442
+ composed: !0
3443
+ }
3444
+ },
3445
+ mouseOver: {
3446
+ EventType: "MouseEvent",
3447
+ defaultInit: {
3448
+ bubbles: !0,
3449
+ cancelable: !0,
3450
+ composed: !0
3451
+ }
3452
+ },
3453
+ mouseUp: {
3454
+ EventType: "MouseEvent",
3455
+ defaultInit: {
3456
+ bubbles: !0,
3457
+ cancelable: !0,
3458
+ composed: !0
3459
+ }
3460
+ },
3461
+ // Selection Events
3462
+ select: {
3463
+ EventType: "Event",
3464
+ defaultInit: {
3465
+ bubbles: !0,
3466
+ cancelable: !1
3467
+ }
3468
+ },
3469
+ // Touch Events
3470
+ touchCancel: {
3471
+ EventType: "TouchEvent",
3472
+ defaultInit: {
3473
+ bubbles: !0,
3474
+ cancelable: !1,
3475
+ composed: !0
3476
+ }
3477
+ },
3478
+ touchEnd: {
3479
+ EventType: "TouchEvent",
3480
+ defaultInit: {
3481
+ bubbles: !0,
3482
+ cancelable: !0,
3483
+ composed: !0
3484
+ }
3485
+ },
3486
+ touchMove: {
3487
+ EventType: "TouchEvent",
3488
+ defaultInit: {
3489
+ bubbles: !0,
3490
+ cancelable: !0,
3491
+ composed: !0
3492
+ }
3493
+ },
3494
+ touchStart: {
3495
+ EventType: "TouchEvent",
3496
+ defaultInit: {
3497
+ bubbles: !0,
3498
+ cancelable: !0,
3499
+ composed: !0
3500
+ }
3501
+ },
3502
+ // UI Events
3503
+ resize: {
3504
+ EventType: "UIEvent",
3505
+ defaultInit: {
3506
+ bubbles: !1,
3507
+ cancelable: !1
3508
+ }
3509
+ },
3510
+ scroll: {
3511
+ EventType: "UIEvent",
3512
+ defaultInit: {
3513
+ bubbles: !1,
3514
+ cancelable: !1
3515
+ }
3516
+ },
3517
+ // Wheel Events
3518
+ wheel: {
3519
+ EventType: "WheelEvent",
3520
+ defaultInit: {
3521
+ bubbles: !0,
3522
+ cancelable: !0,
3523
+ composed: !0
3524
+ }
3525
+ },
3526
+ // Media Events
3527
+ abort: {
3528
+ EventType: "Event",
3529
+ defaultInit: {
3530
+ bubbles: !1,
3531
+ cancelable: !1
3532
+ }
3533
+ },
3534
+ canPlay: {
3535
+ EventType: "Event",
3536
+ defaultInit: {
3537
+ bubbles: !1,
3538
+ cancelable: !1
3539
+ }
3540
+ },
3541
+ canPlayThrough: {
3542
+ EventType: "Event",
3543
+ defaultInit: {
3544
+ bubbles: !1,
3545
+ cancelable: !1
3546
+ }
3547
+ },
3548
+ durationChange: {
3549
+ EventType: "Event",
3550
+ defaultInit: {
3551
+ bubbles: !1,
3552
+ cancelable: !1
3553
+ }
3554
+ },
3555
+ emptied: {
3556
+ EventType: "Event",
3557
+ defaultInit: {
3558
+ bubbles: !1,
3559
+ cancelable: !1
3560
+ }
3561
+ },
3562
+ encrypted: {
3563
+ EventType: "Event",
3564
+ defaultInit: {
3565
+ bubbles: !1,
3566
+ cancelable: !1
3567
+ }
3568
+ },
3569
+ ended: {
3570
+ EventType: "Event",
3571
+ defaultInit: {
3572
+ bubbles: !1,
3573
+ cancelable: !1
3574
+ }
3575
+ },
3576
+ loadedData: {
3577
+ EventType: "Event",
3578
+ defaultInit: {
3579
+ bubbles: !1,
3580
+ cancelable: !1
3581
+ }
3582
+ },
3583
+ loadedMetadata: {
3584
+ EventType: "Event",
3585
+ defaultInit: {
3586
+ bubbles: !1,
3587
+ cancelable: !1
3588
+ }
3589
+ },
3590
+ loadStart: {
3591
+ EventType: "ProgressEvent",
3592
+ defaultInit: {
3593
+ bubbles: !1,
3594
+ cancelable: !1
3595
+ }
3596
+ },
3597
+ pause: {
3598
+ EventType: "Event",
3599
+ defaultInit: {
3600
+ bubbles: !1,
3601
+ cancelable: !1
3602
+ }
3603
+ },
3604
+ play: {
3605
+ EventType: "Event",
3606
+ defaultInit: {
3607
+ bubbles: !1,
3608
+ cancelable: !1
3609
+ }
3610
+ },
3611
+ playing: {
3612
+ EventType: "Event",
3613
+ defaultInit: {
3614
+ bubbles: !1,
3615
+ cancelable: !1
3616
+ }
3617
+ },
3618
+ progress: {
3619
+ EventType: "ProgressEvent",
3620
+ defaultInit: {
3621
+ bubbles: !1,
3622
+ cancelable: !1
3623
+ }
3624
+ },
3625
+ rateChange: {
3626
+ EventType: "Event",
3627
+ defaultInit: {
3628
+ bubbles: !1,
3629
+ cancelable: !1
3630
+ }
3631
+ },
3632
+ seeked: {
3633
+ EventType: "Event",
3634
+ defaultInit: {
3635
+ bubbles: !1,
3636
+ cancelable: !1
3637
+ }
3638
+ },
3639
+ seeking: {
3640
+ EventType: "Event",
3641
+ defaultInit: {
3642
+ bubbles: !1,
3643
+ cancelable: !1
3644
+ }
3645
+ },
3646
+ stalled: {
3647
+ EventType: "Event",
3648
+ defaultInit: {
3649
+ bubbles: !1,
3650
+ cancelable: !1
3651
+ }
3652
+ },
3653
+ suspend: {
3654
+ EventType: "Event",
3655
+ defaultInit: {
3656
+ bubbles: !1,
3657
+ cancelable: !1
3658
+ }
3659
+ },
3660
+ timeUpdate: {
3661
+ EventType: "Event",
3662
+ defaultInit: {
3663
+ bubbles: !1,
3664
+ cancelable: !1
3665
+ }
3666
+ },
3667
+ volumeChange: {
3668
+ EventType: "Event",
3669
+ defaultInit: {
3670
+ bubbles: !1,
3671
+ cancelable: !1
3672
+ }
3673
+ },
3674
+ waiting: {
3675
+ EventType: "Event",
3676
+ defaultInit: {
3677
+ bubbles: !1,
3678
+ cancelable: !1
3679
+ }
3680
+ },
3681
+ // Events
3682
+ load: {
3683
+ // TODO: load events can be UIEvent or Event depending on what generated them
3684
+ // This is where this abstraction breaks down.
3685
+ // But the common targets are <img />, <script /> and window.
3686
+ // Neither of these targets receive a UIEvent
3687
+ EventType: "Event",
3688
+ defaultInit: {
3689
+ bubbles: !1,
3690
+ cancelable: !1
3691
+ }
3692
+ },
3693
+ error: {
3694
+ EventType: "Event",
3695
+ defaultInit: {
3696
+ bubbles: !1,
3697
+ cancelable: !1
3698
+ }
3699
+ },
3700
+ // Animation Events
3701
+ animationStart: {
3702
+ EventType: "AnimationEvent",
3703
+ defaultInit: {
3704
+ bubbles: !0,
3705
+ cancelable: !1
3706
+ }
3707
+ },
3708
+ animationEnd: {
3709
+ EventType: "AnimationEvent",
3710
+ defaultInit: {
3711
+ bubbles: !0,
3712
+ cancelable: !1
3713
+ }
3714
+ },
3715
+ animationIteration: {
3716
+ EventType: "AnimationEvent",
3717
+ defaultInit: {
3718
+ bubbles: !0,
3719
+ cancelable: !1
3720
+ }
3721
+ },
3722
+ // Transition Events
3723
+ transitionCancel: {
3724
+ EventType: "TransitionEvent",
3725
+ defaultInit: {
3726
+ bubbles: !0,
3727
+ cancelable: !1
3728
+ }
3729
+ },
3730
+ transitionEnd: {
3731
+ EventType: "TransitionEvent",
3732
+ defaultInit: {
3733
+ bubbles: !0,
3734
+ cancelable: !0
3735
+ }
3736
+ },
3737
+ transitionRun: {
3738
+ EventType: "TransitionEvent",
3739
+ defaultInit: {
3740
+ bubbles: !0,
3741
+ cancelable: !1
3742
+ }
3743
+ },
3744
+ transitionStart: {
3745
+ EventType: "TransitionEvent",
3746
+ defaultInit: {
3747
+ bubbles: !0,
3748
+ cancelable: !1
3749
+ }
3750
+ },
3751
+ // pointer events
3752
+ pointerOver: {
3753
+ EventType: "PointerEvent",
3754
+ defaultInit: {
3755
+ bubbles: !0,
3756
+ cancelable: !0,
3757
+ composed: !0
3758
+ }
3759
+ },
3760
+ pointerEnter: {
3761
+ EventType: "PointerEvent",
3762
+ defaultInit: {
3763
+ bubbles: !1,
3764
+ cancelable: !1
3765
+ }
3766
+ },
3767
+ pointerDown: {
3768
+ EventType: "PointerEvent",
3769
+ defaultInit: {
3770
+ bubbles: !0,
3771
+ cancelable: !0,
3772
+ composed: !0
3773
+ }
3774
+ },
3775
+ pointerMove: {
3776
+ EventType: "PointerEvent",
3777
+ defaultInit: {
3778
+ bubbles: !0,
3779
+ cancelable: !0,
3780
+ composed: !0
3781
+ }
3782
+ },
3783
+ pointerUp: {
3784
+ EventType: "PointerEvent",
3785
+ defaultInit: {
3786
+ bubbles: !0,
3787
+ cancelable: !0,
3788
+ composed: !0
3789
+ }
3790
+ },
3791
+ pointerCancel: {
3792
+ EventType: "PointerEvent",
3793
+ defaultInit: {
3794
+ bubbles: !0,
3795
+ cancelable: !1,
3796
+ composed: !0
3797
+ }
3798
+ },
3799
+ pointerOut: {
3800
+ EventType: "PointerEvent",
3801
+ defaultInit: {
3802
+ bubbles: !0,
3803
+ cancelable: !0,
3804
+ composed: !0
3805
+ }
3806
+ },
3807
+ pointerLeave: {
3808
+ EventType: "PointerEvent",
3809
+ defaultInit: {
3810
+ bubbles: !1,
3811
+ cancelable: !1
3812
+ }
3813
+ },
3814
+ gotPointerCapture: {
3815
+ EventType: "PointerEvent",
3816
+ defaultInit: {
3817
+ bubbles: !0,
3818
+ cancelable: !1,
3819
+ composed: !0
3820
+ }
3821
+ },
3822
+ lostPointerCapture: {
3823
+ EventType: "PointerEvent",
3824
+ defaultInit: {
3825
+ bubbles: !0,
3826
+ cancelable: !1,
3827
+ composed: !0
3828
+ }
3829
+ },
3830
+ // history events
3831
+ popState: {
3832
+ EventType: "PopStateEvent",
3833
+ defaultInit: {
3834
+ bubbles: !0,
3835
+ cancelable: !1
3836
+ }
3837
+ },
3838
+ // window events
3839
+ offline: {
3840
+ EventType: "Event",
3841
+ defaultInit: {
3842
+ bubbles: !1,
3843
+ cancelable: !1
3844
+ }
3845
+ },
3846
+ online: {
3847
+ EventType: "Event",
3848
+ defaultInit: {
3849
+ bubbles: !1,
3850
+ cancelable: !1
3851
+ }
3852
+ },
3853
+ pageHide: {
3854
+ EventType: "PageTransitionEvent",
3855
+ defaultInit: {
3856
+ bubbles: !0,
3857
+ cancelable: !0
3858
+ }
3859
+ },
3860
+ pageShow: {
3861
+ EventType: "PageTransitionEvent",
3862
+ defaultInit: {
3863
+ bubbles: !0,
3864
+ cancelable: !0
3865
+ }
3866
+ }
3867
+ }, rr = {
3868
+ doubleClick: "dblClick"
3869
+ };
3870
+ function Ce(e, t) {
3871
+ return j().eventWrapper(() => {
3872
+ if (!t)
3873
+ throw new Error("Unable to fire an event - please provide an event object.");
3874
+ if (!e)
3875
+ throw new Error('Unable to fire a "' + t.type + '" event - please provide a DOM element.');
3876
+ return e.dispatchEvent(t);
3877
+ });
3878
+ }
3879
+ function lt(e, t, r, o) {
3880
+ let {
3881
+ EventType: s = "Event",
3882
+ defaultInit: f = {}
3883
+ } = o === void 0 ? {} : o;
3884
+ if (!t)
3885
+ throw new Error('Unable to fire a "' + e + '" event - please provide a DOM element.');
3886
+ const u = {
3887
+ ...f,
3888
+ ...r
3889
+ }, {
3890
+ target: {
3891
+ value: p,
3892
+ files: n,
3893
+ ...a
3894
+ } = {}
3895
+ } = u;
3896
+ p !== void 0 && ta(t, p), n !== void 0 && Object.defineProperty(t, "files", {
3897
+ configurable: !0,
3898
+ enumerable: !0,
3899
+ writable: !0,
3900
+ value: n
3901
+ }), Object.assign(t, a);
3902
+ const l = Sr(t), i = l[s] || l.Event;
3903
+ let d;
3904
+ if (typeof i == "function")
3905
+ d = new i(e, u);
3906
+ else {
3907
+ d = l.document.createEvent(s);
3908
+ const {
3909
+ bubbles: E,
3910
+ cancelable: h,
3911
+ detail: w,
3912
+ ...c
3913
+ } = u;
3914
+ d.initEvent(e, E, h, w), Object.keys(c).forEach((A) => {
3915
+ d[A] = c[A];
3916
+ });
3917
+ }
3918
+ return ["dataTransfer", "clipboardData"].forEach((E) => {
3919
+ const h = u[E];
3920
+ typeof h == "object" && (typeof l.DataTransfer == "function" ? Object.defineProperty(d, E, {
3921
+ value: Object.getOwnPropertyNames(h).reduce((w, c) => (Object.defineProperty(w, c, {
3922
+ value: h[c]
3923
+ }), w), new l.DataTransfer())
3924
+ }) : Object.defineProperty(d, E, {
3925
+ value: h
3926
+ }));
3927
+ }), d;
3928
+ }
3929
+ Object.keys(tr).forEach((e) => {
3930
+ const {
3931
+ EventType: t,
3932
+ defaultInit: r
3933
+ } = tr[e], o = e.toLowerCase();
3934
+ lt[e] = (s, f) => lt(o, s, f, {
3935
+ EventType: t,
3936
+ defaultInit: r
3937
+ }), Ce[e] = (s, f) => Ce(s, lt[e](s, f));
3938
+ });
3939
+ function ta(e, t) {
3940
+ const {
3941
+ set: r
3942
+ } = Object.getOwnPropertyDescriptor(e, "value") || {}, o = Object.getPrototypeOf(e), {
3943
+ set: s
3944
+ } = Object.getOwnPropertyDescriptor(o, "value") || {};
3945
+ if (s && r !== s)
3946
+ s.call(e, t);
3947
+ else if (r)
3948
+ r.call(e, t);
3949
+ else
3950
+ throw new Error("The given element does not have a value setter");
3951
+ }
3952
+ Object.keys(rr).forEach((e) => {
3953
+ const t = rr[e];
3954
+ Ce[e] = function() {
3955
+ return Ce[t](...arguments);
3956
+ };
3957
+ });
3958
+ function ra(e) {
3959
+ return e.replace(/[ \t]*[\n][ \t]*/g, `
3960
+ `);
3961
+ }
3962
+ function na(e) {
3963
+ return Jn.compressToEncodedURIComponent(ra(e));
3964
+ }
3965
+ function ia(e) {
3966
+ return "https://testing-playground.com/#markup=" + na(e);
3967
+ }
3968
+ const oa = (e, t, r) => Array.isArray(e) ? e.forEach((o) => Xt(o, t, r)) : Xt(e, t, r), aa = function(e) {
3969
+ if (e === void 0 && (e = xt().body), !e || !("innerHTML" in e)) {
3970
+ console.log("The element you're providing isn't a valid DOM element.");
3971
+ return;
3972
+ }
3973
+ if (!e.innerHTML) {
3974
+ console.log("The provided element doesn't have any children.");
3975
+ return;
3976
+ }
3977
+ const t = ia(e.innerHTML);
3978
+ return console.log(`Open this URL in your browser
3979
+
3980
+ ` + t), t;
3981
+ }, nr = {
3982
+ debug: oa,
3983
+ logTestingPlaygroundURL: aa
3984
+ }, $e = typeof document < "u" && document.body ? qr(document.body, ht, nr) : Object.keys(ht).reduce((e, t) => (e[t] = () => {
3985
+ throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error");
3986
+ }, e), nr), ua = typeof Ie.act == "function" ? Ie.act : zr.act;
3987
+ function jr() {
3988
+ if (typeof globalThis < "u")
3989
+ return globalThis;
3990
+ if (typeof self < "u")
3991
+ return self;
3992
+ if (typeof window < "u")
3993
+ return window;
3994
+ if (typeof global < "u")
3995
+ return global;
3996
+ throw new Error("unable to locate global object");
3997
+ }
3998
+ function ae(e) {
3999
+ jr().IS_REACT_ACT_ENVIRONMENT = e;
4000
+ }
4001
+ function Ye() {
4002
+ return jr().IS_REACT_ACT_ENVIRONMENT;
4003
+ }
4004
+ function la(e) {
4005
+ return (t) => {
4006
+ const r = Ye();
4007
+ ae(!0);
4008
+ try {
4009
+ let o = !1;
4010
+ const s = e(() => {
4011
+ const f = t();
4012
+ return f !== null && typeof f == "object" && typeof f.then == "function" && (o = !0), f;
4013
+ });
4014
+ if (o) {
4015
+ const f = s;
4016
+ return {
4017
+ then: (u, p) => {
4018
+ f.then((n) => {
4019
+ ae(r), u(n);
4020
+ }, (n) => {
4021
+ ae(r), p(n);
4022
+ });
4023
+ }
4024
+ };
4025
+ } else
4026
+ return ae(r), s;
4027
+ } catch (o) {
4028
+ throw ae(r), o;
4029
+ }
4030
+ };
4031
+ }
4032
+ const Te = la(ua);
4033
+ Object.keys(Ce).forEach((e) => {
4034
+ });
4035
+ let sa = {
4036
+ reactStrictMode: !1
4037
+ };
4038
+ function ca() {
4039
+ return {
4040
+ ...j(),
4041
+ ...sa
4042
+ };
4043
+ }
4044
+ function fa() {
4045
+ return typeof jest < "u" && jest !== null ? (
4046
+ // legacy timers
4047
+ setTimeout._isMockFunction === !0 || // modern timers
4048
+ // eslint-disable-next-line prefer-object-has-own -- No Object.hasOwn in all target environments we support.
4049
+ Object.prototype.hasOwnProperty.call(setTimeout, "clock")
4050
+ ) : !1;
4051
+ }
4052
+ gi({
4053
+ unstable_advanceTimersWrapper: (e) => Te(e),
4054
+ // We just want to run `waitFor` without IS_REACT_ACT_ENVIRONMENT
4055
+ // But that's not necessarily how `asyncWrapper` is used since it's a public method.
4056
+ // Let's just hope nobody else is using it.
4057
+ asyncWrapper: async (e) => {
4058
+ const t = Ye();
4059
+ ae(!1);
4060
+ try {
4061
+ const r = await e();
4062
+ return await new Promise((o) => {
4063
+ setTimeout(() => {
4064
+ o();
4065
+ }, 0), fa() && jest.advanceTimersByTime(0);
4066
+ }), r;
4067
+ } finally {
4068
+ ae(t);
4069
+ }
4070
+ },
4071
+ eventWrapper: (e) => {
4072
+ let t;
4073
+ return Te(() => {
4074
+ t = e();
4075
+ }), t;
4076
+ }
4077
+ });
4078
+ const Et = /* @__PURE__ */ new Set(), Ke = [];
4079
+ function vt(e) {
4080
+ return ca().reactStrictMode ? /* @__PURE__ */ Ie.createElement(Ie.StrictMode, null, e) : e;
4081
+ }
4082
+ function Tt(e, t) {
4083
+ return t ? /* @__PURE__ */ Ie.createElement(t, null, e) : e;
4084
+ }
4085
+ function da(e, t) {
4086
+ let {
4087
+ hydrate: r,
4088
+ onCaughtError: o,
4089
+ onRecoverableError: s,
4090
+ ui: f,
4091
+ wrapper: u
4092
+ } = t, p;
4093
+ return r ? Te(() => {
4094
+ p = _t.hydrateRoot(e, vt(Tt(f, u)), {
4095
+ onCaughtError: o,
4096
+ onRecoverableError: s
4097
+ });
4098
+ }) : p = _t.createRoot(e, {
4099
+ onCaughtError: o,
4100
+ onRecoverableError: s
4101
+ }), {
4102
+ hydrate() {
4103
+ if (!r)
4104
+ throw new Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.");
4105
+ },
4106
+ render(n) {
4107
+ p.render(n);
4108
+ },
4109
+ unmount() {
4110
+ p.unmount();
4111
+ }
4112
+ };
4113
+ }
4114
+ function pa(e) {
4115
+ return {
4116
+ hydrate(t) {
4117
+ ze.hydrate(t, e);
4118
+ },
4119
+ render(t) {
4120
+ ze.render(t, e);
4121
+ },
4122
+ unmount() {
4123
+ ze.unmountComponentAtNode(e);
4124
+ }
4125
+ };
4126
+ }
4127
+ function kr(e, t) {
4128
+ let {
4129
+ baseElement: r,
4130
+ container: o,
4131
+ hydrate: s,
4132
+ queries: f,
4133
+ root: u,
4134
+ wrapper: p
4135
+ } = t;
4136
+ return Te(() => {
4137
+ s ? u.hydrate(vt(Tt(e, p)), o) : u.render(vt(Tt(e, p)), o);
4138
+ }), {
4139
+ container: o,
4140
+ baseElement: r,
4141
+ debug: function(n, a, l) {
4142
+ return n === void 0 && (n = r), Array.isArray(n) ? (
4143
+ // eslint-disable-next-line no-console
4144
+ n.forEach((i) => console.log(ve(i, a, l)))
4145
+ ) : (
4146
+ // eslint-disable-next-line no-console,
4147
+ console.log(ve(n, a, l))
4148
+ );
4149
+ },
4150
+ unmount: () => {
4151
+ Te(() => {
4152
+ u.unmount();
4153
+ });
4154
+ },
4155
+ rerender: (n) => {
4156
+ kr(n, {
4157
+ container: o,
4158
+ baseElement: r,
4159
+ root: u,
4160
+ wrapper: p
4161
+ });
4162
+ },
4163
+ asFragment: () => {
4164
+ if (typeof document.createRange == "function")
4165
+ return document.createRange().createContextualFragment(o.innerHTML);
4166
+ {
4167
+ const n = document.createElement("template");
4168
+ return n.innerHTML = o.innerHTML, n.content;
4169
+ }
4170
+ },
4171
+ ...qr(r, f)
4172
+ };
4173
+ }
4174
+ function Se(e, t) {
4175
+ let {
4176
+ container: r,
4177
+ baseElement: o = r,
4178
+ legacyRoot: s = !1,
4179
+ onCaughtError: f,
4180
+ onUncaughtError: u,
4181
+ onRecoverableError: p,
4182
+ queries: n,
4183
+ hydrate: a = !1,
4184
+ wrapper: l
4185
+ } = t === void 0 ? {} : t;
4186
+ if (u !== void 0)
4187
+ throw new Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");
4188
+ if (s && typeof ze.render != "function") {
4189
+ const d = new Error("`legacyRoot: true` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.");
4190
+ throw Error.captureStackTrace(d, Se), d;
4191
+ }
4192
+ o || (o = document.body), r || (r = o.appendChild(document.createElement("div")));
4193
+ let i;
4194
+ return Et.has(r) ? Ke.forEach((d) => {
4195
+ d.container === r && (i = d.root);
4196
+ }) : (i = (s ? pa : da)(r, {
4197
+ hydrate: a,
4198
+ onCaughtError: f,
4199
+ onRecoverableError: p,
4200
+ ui: e,
4201
+ wrapper: l
4202
+ }), Ke.push({
4203
+ container: r,
4204
+ root: i
4205
+ }), Et.add(r)), kr(e, {
4206
+ container: r,
4207
+ baseElement: o,
4208
+ queries: n,
4209
+ hydrate: a,
4210
+ wrapper: l,
4211
+ root: i
4212
+ });
4213
+ }
4214
+ function ir() {
4215
+ Ke.forEach((e) => {
4216
+ let {
4217
+ root: t,
4218
+ container: r
4219
+ } = e;
4220
+ Te(() => {
4221
+ t.unmount();
4222
+ }), r.parentNode === document.body && document.body.removeChild(r);
4223
+ }), Ke.length = 0, Et.clear();
4224
+ }
4225
+ var or;
4226
+ if ((typeof process > "u" || !((or = process.env) != null && or.RTL_SKIP_AUTO_CLEANUP)) && (typeof afterEach == "function" ? afterEach(() => {
4227
+ ir();
4228
+ }) : typeof teardown == "function" && teardown(() => {
4229
+ ir();
4230
+ }), typeof beforeAll == "function" && typeof afterAll == "function")) {
4231
+ let e = Ye();
4232
+ beforeAll(() => {
4233
+ e = Ye(), ae(!0);
4234
+ }), afterAll(() => {
4235
+ ae(e);
4236
+ });
4237
+ }
4238
+ describe("Label", () => {
4239
+ it("should render", () => {
4240
+ Se(/* @__PURE__ */ De(qe, { htmlFor: "testComponent", children: "Test label" })), expect($e.getByText("Test label")).toBeInTheDocument();
4241
+ }), it("should render with required", () => {
4242
+ Se(
4243
+ /* @__PURE__ */ De(qe, { htmlFor: "testComponent", required: !0, children: "Test label" })
4244
+ ), expect($e.getByText("Test label")).toHaveClass("label--required");
4245
+ }), it("should render with noFontWeight", () => {
4246
+ Se(
4247
+ /* @__PURE__ */ De(qe, { htmlFor: "testComponent", noFontWeight: !0, children: "Test label" })
4248
+ ), expect($e.getByText("Test label")).toHaveClass("label--unset-font-weight");
4249
+ }), it("should render with alignRight", () => {
4250
+ Se(
4251
+ /* @__PURE__ */ De(qe, { htmlFor: "testComponent", alignRight: !0, children: "Test label" })
4252
+ ), expect($e.getByText("Test label")).toHaveClass("label--align-right");
4253
+ });
4254
+ });
4255
+ });
4256
+ export default ba();
4257
+ //# sourceMappingURL=Label.test.js.map