@uva-glass/component-library 3.55.2 → 3.55.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Lexical.prod-DCGjHGxG.js → Lexical.prod-DIglXatJ.js} +958 -947
- package/dist/Lexical.prod-DIglXatJ.js.map +1 -0
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js +248 -0
- package/dist/{LexicalClipboard.prod-CGG14aoP.js.map → LexicalClipboard.prod-Bnzu0sh_.js.map} +1 -1
- package/dist/{LexicalExtension.prod-DWt1IjPF.js → LexicalExtension.prod-COPHoPpX.js} +320 -288
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +1 -0
- package/dist/{LexicalLink.prod-Dy1gE75H.js → LexicalLink.prod-Bf9JUdMv.js} +216 -198
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +1 -0
- package/dist/{LexicalList.prod-D9R0L7cu.js → LexicalList.prod-DRz8vsM9.js} +247 -241
- package/dist/LexicalList.prod-DRz8vsM9.js.map +1 -0
- package/dist/{LexicalTable.prod-C2FP47Lm.js → LexicalTable.prod-D16GW-aZ.js} +741 -729
- package/dist/LexicalTable.prod-D16GW-aZ.js.map +1 -0
- package/dist/LexicalUtils.prod-BBTLliac.js +360 -0
- package/dist/LexicalUtils.prod-BBTLliac.js.map +1 -0
- package/dist/{LinkContextMenu-DZlKfbg1.js → LinkContextMenu-m_CGQEiX.js} +2 -2
- package/dist/{LinkContextMenu-DZlKfbg1.js.map → LinkContextMenu-m_CGQEiX.js.map} +1 -1
- package/dist/{PasteHandlerPlugin-DUdocSHB.js → PasteHandlerPlugin-DjD1wryY.js} +4 -4
- package/dist/{PasteHandlerPlugin-DUdocSHB.js.map → PasteHandlerPlugin-DjD1wryY.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-BGolbi44.js → TableCellResizerPlugin-CgYsYsuY.js} +41 -41
- package/dist/{TableCellResizerPlugin-BGolbi44.js.map → TableCellResizerPlugin-CgYsYsuY.js.map} +1 -1
- package/dist/{chunk-OPOZOKLO-CXKdjnjn.js → chunk-SZQXB3JV-D0XG4Tlp.js} +5 -5
- package/dist/chunk-SZQXB3JV-D0XG4Tlp.js.map +1 -0
- package/dist/{client-C0JVBgoR.js → client-UU-mS47K.js} +6 -6
- package/dist/{client-C0JVBgoR.js.map → client-UU-mS47K.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +4 -4
- package/dist/components/AccordionCard/AccordionCard.test.js +4 -4
- package/dist/components/ActionList/ActionList.test.js +4 -4
- package/dist/components/AppStatusBar/AppStatusBar.test.js +3 -3
- package/dist/components/Attention/Attention.test.js +3 -3
- package/dist/components/Backdrop/Backdrop.test.js +3 -3
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +3 -3
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +3 -3
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +3 -3
- package/dist/components/Card/Card.test.js +3 -3
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +4 -4
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -3
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +4 -4
- package/dist/components/CheckboxTree/index.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
- package/dist/components/FormInput/FormInput.js +2 -2
- package/dist/components/FormInput/FormInput.stories.js +3 -3
- package/dist/components/FormInput/index.js +2 -2
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +3 -3
- package/dist/components/Label/Label.test.js +3 -3
- package/dist/components/MetaDataBar/MetaDataBar.test.js +2 -2
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js +3 -3
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +2 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +3 -3
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +3 -3
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +3 -3
- package/dist/components/PeriodSelector/index.js +2 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +3 -3
- package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +3 -3
- package/dist/components/RadioTabSelector/index.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/EditorHeader/index.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +32 -32
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +32 -32
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/index.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +2 -2
- package/dist/components/RteEditor/RteEditor.stories.js +2 -2
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/index.js +2 -2
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +17 -17
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +13 -13
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +3 -3
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +4 -4
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +4 -4
- package/dist/components/index.js +2 -2
- package/dist/{components-DVUYdcHS.js → components-MNvdQLv1.js} +457 -454
- package/dist/components-MNvdQLv1.js.map +1 -0
- package/dist/{dist-D6qYwmKD.js → dist-2TKCXdYZ.js} +315 -315
- package/dist/{dist-D6qYwmKD.js.map → dist-2TKCXdYZ.js.map} +1 -1
- package/dist/{esm-Cmy7DlsJ.js → esm-UNe_gmRA.js} +2 -2
- package/dist/{esm-Cmy7DlsJ.js.map → esm-UNe_gmRA.js.map} +1 -1
- package/dist/{helpers-DcFTH1J1.js → helpers-BBSxTGRl.js} +7 -7
- package/dist/{helpers-DcFTH1J1.js.map → helpers-BBSxTGRl.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{react-18-PI4Gvl2f.js → react-18-CRbkdI-3.js} +2 -2
- package/dist/{react-18-PI4Gvl2f.js.map → react-18-CRbkdI-3.js.map} +1 -1
- package/dist/{react.esm-Cev8dB-E.js → react.esm-CzIhAqlo.js} +479 -479
- package/dist/{react.esm-Cev8dB-E.js.map → react.esm-CzIhAqlo.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +3 -3
- package/dist/{test-CPFNM-bL.js → test-DQruvi8i.js} +3704 -5824
- package/dist/test-DQruvi8i.js.map +1 -0
- package/package.json +17 -17
- package/dist/Lexical.prod-DCGjHGxG.js.map +0 -1
- package/dist/LexicalClipboard.prod-CGG14aoP.js +0 -248
- package/dist/LexicalExtension.prod-DWt1IjPF.js.map +0 -1
- package/dist/LexicalLink.prod-Dy1gE75H.js.map +0 -1
- package/dist/LexicalList.prod-D9R0L7cu.js.map +0 -1
- package/dist/LexicalTable.prod-C2FP47Lm.js.map +0 -1
- package/dist/LexicalUtils.prod-BzrjMu6t.js +0 -242
- package/dist/LexicalUtils.prod-BzrjMu6t.js.map +0 -1
- package/dist/chunk-OPOZOKLO-CXKdjnjn.js.map +0 -1
- package/dist/components-DVUYdcHS.js.map +0 -1
- package/dist/test-CPFNM-bL.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as e, t } from "./chunk-DeC0fbbY.js";
|
|
2
2
|
import { t as n } from "./lib-6BbFZdI7.js";
|
|
3
3
|
import { t as r } from "./test-utils-BSs0eZfL.js";
|
|
4
|
-
import { t as i } from "./client-
|
|
4
|
+
import { t as i } from "./client-UU-mS47K.js";
|
|
5
5
|
import * as a from "react";
|
|
6
6
|
import o from "react-dom";
|
|
7
7
|
//#region node_modules/pretty-format/node_modules/ansi-styles/index.js
|
|
@@ -358,8 +358,8 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
var b = o, x = t, S = c,
|
|
362
|
-
e.ContextConsumer = s, e.ContextProvider = b, e.Element = x, e.ForwardRef = S, e.Fragment =
|
|
361
|
+
var b = o, x = t, S = c, ee = r, C = f, te = d, ne = n, re = a, w = i, T = l;
|
|
362
|
+
e.ContextConsumer = s, e.ContextProvider = b, e.Element = x, e.ForwardRef = S, e.Fragment = ee, e.Lazy = C, e.Memo = te, e.Portal = ne, e.Profiler = re, e.StrictMode = w, e.Suspense = T, e.isAsyncMode = function() {
|
|
363
363
|
return !1;
|
|
364
364
|
}, e.isConcurrentMode = function() {
|
|
365
365
|
return !1;
|
|
@@ -426,17 +426,17 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var S = s,
|
|
429
|
+
var S = s, ee = o, C = t, te = c, ne = r, re = f, w = d, T = n, ie = a, ae = i, oe = l, E = !1, D = !1;
|
|
430
430
|
function se(e) {
|
|
431
|
-
return
|
|
431
|
+
return E || (E = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
432
432
|
}
|
|
433
433
|
function ce(e) {
|
|
434
434
|
return D || (D = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function O(e) {
|
|
437
437
|
return x(e) === s;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function le(e) {
|
|
440
440
|
return x(e) === o;
|
|
441
441
|
}
|
|
442
442
|
function ue(e) {
|
|
@@ -448,25 +448,25 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
448
448
|
function A(e) {
|
|
449
449
|
return x(e) === r;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function de(e) {
|
|
452
452
|
return x(e) === f;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function j(e) {
|
|
455
455
|
return x(e) === d;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function fe(e) {
|
|
458
458
|
return x(e) === n;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function M(e) {
|
|
461
461
|
return x(e) === a;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function pe(e) {
|
|
464
464
|
return x(e) === i;
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function N(e) {
|
|
467
467
|
return x(e) === l;
|
|
468
468
|
}
|
|
469
|
-
e.ContextConsumer = S, e.ContextProvider =
|
|
469
|
+
e.ContextConsumer = S, e.ContextProvider = ee, e.Element = C, e.ForwardRef = te, e.Fragment = ne, e.Lazy = re, e.Memo = w, e.Portal = T, e.Profiler = ie, e.StrictMode = ae, e.Suspense = oe, e.isAsyncMode = se, e.isConcurrentMode = ce, e.isContextConsumer = O, e.isContextProvider = le, e.isElement = ue, e.isForwardRef = k, e.isFragment = A, e.isLazy = de, e.isMemo = j, e.isPortal = fe, e.isProfiler = M, e.isStrictMode = pe, e.isSuspense = N, e.isValidElementType = b, e.typeOf = x;
|
|
470
470
|
})();
|
|
471
471
|
})), y = /* @__PURE__ */ t(((e, t) => {
|
|
472
472
|
process.env.NODE_ENV === "production" ? t.exports = _() : t.exports = v();
|
|
@@ -539,30 +539,30 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
539
539
|
test: s
|
|
540
540
|
};
|
|
541
541
|
})), S = /* @__PURE__ */ t(((e) => {
|
|
542
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = e.DEFAULT_OPTIONS = void 0, e.format =
|
|
542
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = e.DEFAULT_OPTIONS = void 0, e.format = ve, e.plugins = void 0;
|
|
543
543
|
var t = _(s()), n = c(), r = _(l()), i = _(d()), a = _(f()), o = _(h()), u = _(g()), p = _(b()), m = _(x());
|
|
544
544
|
function _(e) {
|
|
545
545
|
return e && e.__esModule ? e : { default: e };
|
|
546
546
|
}
|
|
547
|
-
var v = Object.prototype.toString, y = Date.prototype.toISOString, S = Error.prototype.toString,
|
|
547
|
+
var v = Object.prototype.toString, y = Date.prototype.toISOString, S = Error.prototype.toString, ee = RegExp.prototype.toString, C = (e) => typeof e.constructor == "function" && e.constructor.name || "Object", te = (e) => typeof window < "u" && e === window, ne = /^Symbol\((.*)\)(.*)$/, re = /\n/gi, w = class extends Error {
|
|
548
548
|
constructor(e, t) {
|
|
549
549
|
super(e), this.stack = t, this.name = this.constructor.name;
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
|
-
function
|
|
552
|
+
function T(e) {
|
|
553
553
|
return e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" || e === "[object Uint8ClampedArray]" || e === "[object Uint16Array]" || e === "[object Uint32Array]";
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function ie(e) {
|
|
556
556
|
return Object.is(e, -0) ? "-0" : String(e);
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function ae(e) {
|
|
559
559
|
return String(`${e}n`);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function oe(e, t) {
|
|
562
562
|
return t ? "[Function " + (e.name || "anonymous") + "]" : "[Function]";
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
return String(e).replace(
|
|
564
|
+
function E(e) {
|
|
565
|
+
return String(e).replace(ne, "Symbol($1)");
|
|
566
566
|
}
|
|
567
567
|
function D(e) {
|
|
568
568
|
return "[" + S.call(e) + "]";
|
|
@@ -572,13 +572,13 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
572
572
|
if (e === void 0) return "undefined";
|
|
573
573
|
if (e === null) return "null";
|
|
574
574
|
let i = typeof e;
|
|
575
|
-
if (i === "number") return
|
|
576
|
-
if (i === "bigint") return
|
|
575
|
+
if (i === "number") return ie(e);
|
|
576
|
+
if (i === "bigint") return ae(e);
|
|
577
577
|
if (i === "string") return r ? "\"" + e.replace(/"|\\/g, "\\$&") + "\"" : "\"" + e + "\"";
|
|
578
|
-
if (i === "function") return
|
|
579
|
-
if (i === "symbol") return
|
|
578
|
+
if (i === "function") return oe(e, t);
|
|
579
|
+
if (i === "symbol") return E(e);
|
|
580
580
|
let a = v.call(e);
|
|
581
|
-
return a === "[object WeakMap]" ? "WeakMap {}" : a === "[object WeakSet]" ? "WeakSet {}" : a === "[object Function]" || a === "[object GeneratorFunction]" ?
|
|
581
|
+
return a === "[object WeakMap]" ? "WeakMap {}" : a === "[object WeakSet]" ? "WeakSet {}" : a === "[object Function]" || a === "[object GeneratorFunction]" ? oe(e, t) : a === "[object Symbol]" ? E(e) : a === "[object Date]" ? isNaN(+e) ? "Date { NaN }" : y.call(e) : a === "[object Error]" ? D(e) : a === "[object RegExp]" ? n ? ee.call(e).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : ee.call(e) : e instanceof Error ? D(e) : null;
|
|
582
582
|
}
|
|
583
583
|
function ce(e, t, r, i, a, o) {
|
|
584
584
|
if (a.indexOf(e) !== -1) return "[Circular]";
|
|
@@ -586,24 +586,24 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
586
586
|
let s = ++i > t.maxDepth, c = t.min;
|
|
587
587
|
if (t.callToJSON && !s && e.toJSON && typeof e.toJSON == "function" && !o) return k(e.toJSON(), t, r, i, a, !0);
|
|
588
588
|
let l = v.call(e);
|
|
589
|
-
return l === "[object Arguments]" ? s ? "[Arguments]" : (c ? "" : "Arguments ") + "[" + (0, n.printListItems)(e, t, r, i, a, k) + "]" :
|
|
589
|
+
return l === "[object Arguments]" ? s ? "[Arguments]" : (c ? "" : "Arguments ") + "[" + (0, n.printListItems)(e, t, r, i, a, k) + "]" : T(l) ? s ? "[" + e.constructor.name + "]" : (c || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : e.constructor.name + " ") + "[" + (0, n.printListItems)(e, t, r, i, a, k) + "]" : l === "[object Map]" ? s ? "[Map]" : "Map {" + (0, n.printIteratorEntries)(e.entries(), t, r, i, a, k, " => ") + "}" : l === "[object Set]" ? s ? "[Set]" : "Set {" + (0, n.printIteratorValues)(e.values(), t, r, i, a, k) + "}" : s || te(e) ? "[" + C(e) + "]" : (c || !t.printBasicPrototype && C(e) === "Object" ? "" : C(e) + " ") + "{" + (0, n.printObjectProperties)(e, t, r, i, a, k) + "}";
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function O(e) {
|
|
592
592
|
return e.serialize != null;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function le(e, t, n, r, i, a) {
|
|
595
595
|
let o;
|
|
596
596
|
try {
|
|
597
|
-
o =
|
|
597
|
+
o = O(e) ? e.serialize(t, n, r, i, a, k) : e.print(t, (e) => k(e, n, r, i, a), (e) => {
|
|
598
598
|
let t = r + n.indent;
|
|
599
|
-
return t + e.replace(
|
|
599
|
+
return t + e.replace(re, "\n" + t);
|
|
600
600
|
}, {
|
|
601
601
|
edgeSpacing: n.spacingOuter,
|
|
602
602
|
min: n.min,
|
|
603
603
|
spacing: n.spacingInner
|
|
604
604
|
}, n.colors);
|
|
605
605
|
} catch (e) {
|
|
606
|
-
throw new
|
|
606
|
+
throw new w(e.message, e.stack);
|
|
607
607
|
}
|
|
608
608
|
if (typeof o != "string") throw Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);
|
|
609
609
|
return o;
|
|
@@ -612,13 +612,13 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
612
612
|
for (let n = 0; n < e.length; n++) try {
|
|
613
613
|
if (e[n].test(t)) return e[n];
|
|
614
614
|
} catch (e) {
|
|
615
|
-
throw new
|
|
615
|
+
throw new w(e.message, e.stack);
|
|
616
616
|
}
|
|
617
617
|
return null;
|
|
618
618
|
}
|
|
619
619
|
function k(e, t, n, r, i, a) {
|
|
620
620
|
let o = ue(t.plugins, e);
|
|
621
|
-
if (o !== null) return
|
|
621
|
+
if (o !== null) return le(o, e, t, n, r, i);
|
|
622
622
|
let s = se(e, t.printFunctionName, t.escapeRegex, t.escapeString);
|
|
623
623
|
return s === null ? ce(e, t, n, r, i, a) : s;
|
|
624
624
|
}
|
|
@@ -628,7 +628,7 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
628
628
|
prop: "yellow",
|
|
629
629
|
tag: "cyan",
|
|
630
630
|
value: "green"
|
|
631
|
-
},
|
|
631
|
+
}, de = Object.keys(A), j = {
|
|
632
632
|
callToJSON: !0,
|
|
633
633
|
compareKeys: void 0,
|
|
634
634
|
escapeRegex: !1,
|
|
@@ -642,49 +642,49 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
642
642
|
printFunctionName: !0,
|
|
643
643
|
theme: A
|
|
644
644
|
};
|
|
645
|
-
e.DEFAULT_OPTIONS =
|
|
646
|
-
function
|
|
645
|
+
e.DEFAULT_OPTIONS = j;
|
|
646
|
+
function fe(e) {
|
|
647
647
|
if (Object.keys(e).forEach((e) => {
|
|
648
|
-
if (!
|
|
648
|
+
if (!j.hasOwnProperty(e)) throw Error(`pretty-format: Unknown option "${e}".`);
|
|
649
649
|
}), e.min && e.indent !== void 0 && e.indent !== 0) throw Error("pretty-format: Options \"min\" and \"indent\" cannot be used together.");
|
|
650
650
|
if (e.theme !== void 0) {
|
|
651
651
|
if (e.theme === null) throw Error("pretty-format: Option \"theme\" must not be null.");
|
|
652
652
|
if (typeof e.theme != "object") throw Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
var
|
|
655
|
+
var M = (e) => de.reduce((n, r) => {
|
|
656
656
|
let i = e.theme && e.theme[r] !== void 0 ? e.theme[r] : A[r], a = i && t.default[i];
|
|
657
657
|
if (a && typeof a.close == "string" && typeof a.open == "string") n[r] = a;
|
|
658
658
|
else throw Error(`pretty-format: Option "theme" has a key "${r}" whose value "${i}" is undefined in ansi-styles.`);
|
|
659
659
|
return n;
|
|
660
|
-
}, Object.create(null)),
|
|
660
|
+
}, Object.create(null)), pe = () => de.reduce((e, t) => (e[t] = {
|
|
661
661
|
close: "",
|
|
662
662
|
open: ""
|
|
663
|
-
}, e), Object.create(null)),
|
|
664
|
-
callToJSON: e && e.callToJSON !== void 0 ? e.callToJSON :
|
|
665
|
-
colors: e && e.highlight ?
|
|
666
|
-
compareKeys: e && typeof e.compareKeys == "function" ? e.compareKeys :
|
|
667
|
-
escapeRegex:
|
|
668
|
-
escapeString:
|
|
669
|
-
indent: e && e.min ? "" :
|
|
670
|
-
maxDepth: e && e.maxDepth !== void 0 ? e.maxDepth :
|
|
671
|
-
min: e && e.min !== void 0 ? e.min :
|
|
672
|
-
plugins: e && e.plugins !== void 0 ? e.plugins :
|
|
663
|
+
}, e), Object.create(null)), N = (e) => e && e.printFunctionName !== void 0 ? e.printFunctionName : j.printFunctionName, me = (e) => e && e.escapeRegex !== void 0 ? e.escapeRegex : j.escapeRegex, he = (e) => e && e.escapeString !== void 0 ? e.escapeString : j.escapeString, ge = (e) => ({
|
|
664
|
+
callToJSON: e && e.callToJSON !== void 0 ? e.callToJSON : j.callToJSON,
|
|
665
|
+
colors: e && e.highlight ? M(e) : pe(),
|
|
666
|
+
compareKeys: e && typeof e.compareKeys == "function" ? e.compareKeys : j.compareKeys,
|
|
667
|
+
escapeRegex: me(e),
|
|
668
|
+
escapeString: he(e),
|
|
669
|
+
indent: e && e.min ? "" : _e(e && e.indent !== void 0 ? e.indent : j.indent),
|
|
670
|
+
maxDepth: e && e.maxDepth !== void 0 ? e.maxDepth : j.maxDepth,
|
|
671
|
+
min: e && e.min !== void 0 ? e.min : j.min,
|
|
672
|
+
plugins: e && e.plugins !== void 0 ? e.plugins : j.plugins,
|
|
673
673
|
printBasicPrototype: e?.printBasicPrototype ?? !0,
|
|
674
|
-
printFunctionName:
|
|
674
|
+
printFunctionName: N(e),
|
|
675
675
|
spacingInner: e && e.min ? " " : "\n",
|
|
676
676
|
spacingOuter: e && e.min ? "" : "\n"
|
|
677
677
|
});
|
|
678
|
-
function
|
|
678
|
+
function _e(e) {
|
|
679
679
|
return Array(e + 1).join(" ");
|
|
680
680
|
}
|
|
681
|
-
function
|
|
682
|
-
if (t && (
|
|
681
|
+
function ve(e, t) {
|
|
682
|
+
if (t && (fe(t), t.plugins)) {
|
|
683
683
|
let n = ue(t.plugins, e);
|
|
684
|
-
if (n !== null) return
|
|
684
|
+
if (n !== null) return le(n, e, ge(t), "", 0, []);
|
|
685
685
|
}
|
|
686
|
-
let n = se(e,
|
|
687
|
-
return n === null ? ce(e,
|
|
686
|
+
let n = se(e, N(t), me(t), he(t));
|
|
687
|
+
return n === null ? ce(e, ge(t), "", 0, []) : n;
|
|
688
688
|
}
|
|
689
689
|
e.plugins = {
|
|
690
690
|
AsymmetricMatcher: r.default,
|
|
@@ -694,50 +694,50 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
694
694
|
Immutable: u.default,
|
|
695
695
|
ReactElement: p.default,
|
|
696
696
|
ReactTestComponent: m.default
|
|
697
|
-
}, e.default =
|
|
698
|
-
})),
|
|
699
|
-
function
|
|
700
|
-
return typeof e == "function" ||
|
|
697
|
+
}, e.default = ve;
|
|
698
|
+
})), ee = Object.prototype.toString;
|
|
699
|
+
function C(e) {
|
|
700
|
+
return typeof e == "function" || ee.call(e) === "[object Function]";
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function te(e) {
|
|
703
703
|
var t = Number(e);
|
|
704
704
|
return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
|
|
705
705
|
}
|
|
706
|
-
var
|
|
707
|
-
function
|
|
708
|
-
var t =
|
|
709
|
-
return Math.min(Math.max(t, 0),
|
|
706
|
+
var ne = 2 ** 53 - 1;
|
|
707
|
+
function re(e) {
|
|
708
|
+
var t = te(e);
|
|
709
|
+
return Math.min(Math.max(t, 0), ne);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function w(e, t) {
|
|
712
712
|
var n = Array, r = Object(e);
|
|
713
713
|
if (e == null) throw TypeError("Array.from requires an array-like object - not null or undefined");
|
|
714
|
-
if (t !== void 0 && !
|
|
715
|
-
for (var i =
|
|
714
|
+
if (t !== void 0 && !C(t)) throw TypeError("Array.from: when provided, the second argument must be a function");
|
|
715
|
+
for (var i = re(r.length), a = C(n) ? Object(new n(i)) : Array(i), o = 0, s; o < i;) s = r[o], t ? a[o] = t(s, o) : a[o] = s, o += 1;
|
|
716
716
|
return a.length = i, a;
|
|
717
717
|
}
|
|
718
718
|
//#endregion
|
|
719
719
|
//#region node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
|
|
720
|
-
function
|
|
720
|
+
function T(e) {
|
|
721
721
|
"@babel/helpers - typeof";
|
|
722
|
-
return
|
|
722
|
+
return T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
723
723
|
return typeof e;
|
|
724
724
|
} : function(e) {
|
|
725
725
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
726
|
-
},
|
|
726
|
+
}, T(e);
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function ie(e, t) {
|
|
729
729
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function ae(e, t) {
|
|
732
732
|
for (var n = 0; n < t.length; n++) {
|
|
733
733
|
var r = t[n];
|
|
734
734
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, D(r.key), r);
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
function ae(e, t, n) {
|
|
738
|
-
return t && ie(e.prototype, t), n && ie(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
739
|
-
}
|
|
740
737
|
function oe(e, t, n) {
|
|
738
|
+
return t && ae(e.prototype, t), n && ae(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
739
|
+
}
|
|
740
|
+
function E(e, t, n) {
|
|
741
741
|
return t = D(t), t in e ? Object.defineProperty(e, t, {
|
|
742
742
|
value: n,
|
|
743
743
|
enumerable: !0,
|
|
@@ -747,24 +747,24 @@ function oe(e, t, n) {
|
|
|
747
747
|
}
|
|
748
748
|
function D(e) {
|
|
749
749
|
var t = se(e, "string");
|
|
750
|
-
return
|
|
750
|
+
return T(t) === "symbol" ? t : String(t);
|
|
751
751
|
}
|
|
752
752
|
function se(e, t) {
|
|
753
|
-
if (
|
|
753
|
+
if (T(e) !== "object" || e === null) return e;
|
|
754
754
|
var n = e[Symbol.toPrimitive];
|
|
755
755
|
if (n !== void 0) {
|
|
756
756
|
var r = n.call(e, t || "default");
|
|
757
|
-
if (
|
|
757
|
+
if (T(r) !== "object") return r;
|
|
758
758
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
759
759
|
}
|
|
760
760
|
return (t === "string" ? String : Number)(e);
|
|
761
761
|
}
|
|
762
|
-
var ce = /* @__PURE__ */ function() {
|
|
762
|
+
var ce = typeof Set > "u" ? Set : /* @__PURE__ */ function() {
|
|
763
763
|
function e() {
|
|
764
764
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
765
|
-
|
|
765
|
+
ie(this, e), E(this, "items", void 0), this.items = t;
|
|
766
766
|
}
|
|
767
|
-
return
|
|
767
|
+
return oe(e, [
|
|
768
768
|
{
|
|
769
769
|
key: "add",
|
|
770
770
|
value: function(e) {
|
|
@@ -808,13 +808,13 @@ var ce = /* @__PURE__ */ function() {
|
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
]), e;
|
|
811
|
-
}()
|
|
811
|
+
}();
|
|
812
812
|
//#endregion
|
|
813
813
|
//#region node_modules/dom-accessibility-api/dist/getRole.mjs
|
|
814
814
|
function O(e) {
|
|
815
815
|
return e.localName ?? e.tagName.toLowerCase();
|
|
816
816
|
}
|
|
817
|
-
var
|
|
817
|
+
var le = {
|
|
818
818
|
article: "article",
|
|
819
819
|
aside: "complementary",
|
|
820
820
|
button: "button",
|
|
@@ -858,7 +858,7 @@ var ue = {
|
|
|
858
858
|
thead: "rowgroup",
|
|
859
859
|
tr: "row",
|
|
860
860
|
ul: "list"
|
|
861
|
-
},
|
|
861
|
+
}, ue = {
|
|
862
862
|
caption: new Set(["aria-label", "aria-labelledby"]),
|
|
863
863
|
code: new Set(["aria-label", "aria-labelledby"]),
|
|
864
864
|
deletion: new Set(["aria-label", "aria-labelledby"]),
|
|
@@ -875,7 +875,7 @@ var ue = {
|
|
|
875
875
|
subscript: new Set(["aria-label", "aria-labelledby"]),
|
|
876
876
|
superscript: new Set(["aria-label", "aria-labelledby"])
|
|
877
877
|
};
|
|
878
|
-
function
|
|
878
|
+
function k(e, t) {
|
|
879
879
|
return [
|
|
880
880
|
"aria-atomic",
|
|
881
881
|
"aria-busy",
|
|
@@ -896,22 +896,22 @@ function A(e, t) {
|
|
|
896
896
|
"aria-roledescription"
|
|
897
897
|
].some(function(n) {
|
|
898
898
|
var r;
|
|
899
|
-
return e.hasAttribute(n) && !((r =
|
|
899
|
+
return e.hasAttribute(n) && !((r = ue[t]) != null && r.has(n));
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
-
function
|
|
903
|
-
return
|
|
902
|
+
function A(e, t) {
|
|
903
|
+
return k(e, t);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function de(e) {
|
|
906
906
|
var t = fe(e);
|
|
907
907
|
if (t === null || t === "presentation") {
|
|
908
|
-
var n =
|
|
909
|
-
if (t !== "presentation" ||
|
|
908
|
+
var n = j(e);
|
|
909
|
+
if (t !== "presentation" || A(e, n || "")) return n;
|
|
910
910
|
}
|
|
911
911
|
return t;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
var t =
|
|
913
|
+
function j(e) {
|
|
914
|
+
var t = le[O(e)];
|
|
915
915
|
if (t !== void 0) return t;
|
|
916
916
|
switch (O(e)) {
|
|
917
917
|
case "a":
|
|
@@ -919,7 +919,7 @@ function de(e) {
|
|
|
919
919
|
case "link":
|
|
920
920
|
if (e.hasAttribute("href")) return "link";
|
|
921
921
|
break;
|
|
922
|
-
case "img": return e.getAttribute("alt") === "" && !
|
|
922
|
+
case "img": return e.getAttribute("alt") === "" && !A(e, "img") ? "presentation" : "img";
|
|
923
923
|
case "input":
|
|
924
924
|
var n = e.type;
|
|
925
925
|
switch (n) {
|
|
@@ -952,26 +952,26 @@ function fe(e) {
|
|
|
952
952
|
}
|
|
953
953
|
//#endregion
|
|
954
954
|
//#region node_modules/dom-accessibility-api/dist/util.mjs
|
|
955
|
-
function
|
|
955
|
+
function M(e) {
|
|
956
956
|
return e !== null && e.nodeType === e.ELEMENT_NODE;
|
|
957
957
|
}
|
|
958
958
|
function pe(e) {
|
|
959
|
-
return
|
|
959
|
+
return M(e) && O(e) === "caption";
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
return
|
|
961
|
+
function N(e) {
|
|
962
|
+
return M(e) && O(e) === "input";
|
|
963
963
|
}
|
|
964
964
|
function me(e) {
|
|
965
|
-
return
|
|
965
|
+
return M(e) && O(e) === "optgroup";
|
|
966
966
|
}
|
|
967
967
|
function he(e) {
|
|
968
|
-
return
|
|
968
|
+
return M(e) && O(e) === "select";
|
|
969
969
|
}
|
|
970
970
|
function ge(e) {
|
|
971
|
-
return
|
|
971
|
+
return M(e) && O(e) === "table";
|
|
972
972
|
}
|
|
973
973
|
function _e(e) {
|
|
974
|
-
return
|
|
974
|
+
return M(e) && O(e) === "textarea";
|
|
975
975
|
}
|
|
976
976
|
function ve(e) {
|
|
977
977
|
var t = (e.ownerDocument === null ? e : e.ownerDocument).defaultView;
|
|
@@ -979,25 +979,25 @@ function ve(e) {
|
|
|
979
979
|
return t;
|
|
980
980
|
}
|
|
981
981
|
function ye(e) {
|
|
982
|
-
return
|
|
982
|
+
return M(e) && O(e) === "fieldset";
|
|
983
983
|
}
|
|
984
984
|
function be(e) {
|
|
985
|
-
return
|
|
985
|
+
return M(e) && O(e) === "legend";
|
|
986
986
|
}
|
|
987
987
|
function xe(e) {
|
|
988
|
-
return
|
|
988
|
+
return M(e) && O(e) === "slot";
|
|
989
989
|
}
|
|
990
990
|
function Se(e) {
|
|
991
|
-
return
|
|
991
|
+
return M(e) && e.ownerSVGElement !== void 0;
|
|
992
992
|
}
|
|
993
993
|
function Ce(e) {
|
|
994
|
-
return
|
|
994
|
+
return M(e) && O(e) === "svg";
|
|
995
995
|
}
|
|
996
996
|
function we(e) {
|
|
997
997
|
return Se(e) && O(e) === "title";
|
|
998
998
|
}
|
|
999
999
|
function Te(e, t) {
|
|
1000
|
-
if (
|
|
1000
|
+
if (M(e) && e.hasAttribute(t)) {
|
|
1001
1001
|
var n = e.getAttribute(t).split(" "), r = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
1002
1002
|
return n.map(function(e) {
|
|
1003
1003
|
return r.getElementById(e);
|
|
@@ -1007,8 +1007,8 @@ function Te(e, t) {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
return [];
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1011
|
-
return
|
|
1010
|
+
function P(e, t) {
|
|
1011
|
+
return M(e) ? t.indexOf(de(e)) !== -1 : !1;
|
|
1012
1012
|
}
|
|
1013
1013
|
//#endregion
|
|
1014
1014
|
//#region node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
|
|
@@ -1016,13 +1016,13 @@ function Ee(e) {
|
|
|
1016
1016
|
return e.trim().replace(/\s\s+/g, " ");
|
|
1017
1017
|
}
|
|
1018
1018
|
function De(e, t) {
|
|
1019
|
-
if (!
|
|
1019
|
+
if (!M(e)) return !1;
|
|
1020
1020
|
if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true") return !0;
|
|
1021
1021
|
var n = t(e);
|
|
1022
1022
|
return n.getPropertyValue("display") === "none" || n.getPropertyValue("visibility") === "hidden";
|
|
1023
1023
|
}
|
|
1024
1024
|
function Oe(e) {
|
|
1025
|
-
return
|
|
1025
|
+
return P(e, [
|
|
1026
1026
|
"button",
|
|
1027
1027
|
"combobox",
|
|
1028
1028
|
"listbox",
|
|
@@ -1030,9 +1030,9 @@ function Oe(e) {
|
|
|
1030
1030
|
]) || ke(e, "range");
|
|
1031
1031
|
}
|
|
1032
1032
|
function ke(e, t) {
|
|
1033
|
-
if (!
|
|
1033
|
+
if (!M(e)) return !1;
|
|
1034
1034
|
switch (t) {
|
|
1035
|
-
case "range": return
|
|
1035
|
+
case "range": return P(e, [
|
|
1036
1036
|
"meter",
|
|
1037
1037
|
"progressbar",
|
|
1038
1038
|
"scrollbar",
|
|
@@ -1043,22 +1043,22 @@ function ke(e, t) {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
1045
|
function Ae(e, t) {
|
|
1046
|
-
var n =
|
|
1046
|
+
var n = w(e.querySelectorAll(t));
|
|
1047
1047
|
return Te(e, "aria-owns").forEach(function(e) {
|
|
1048
|
-
n.push.apply(n,
|
|
1048
|
+
n.push.apply(n, w(e.querySelectorAll(t)));
|
|
1049
1049
|
}), n;
|
|
1050
1050
|
}
|
|
1051
1051
|
function je(e) {
|
|
1052
1052
|
return he(e) ? e.selectedOptions || Ae(e, "[selected]") : Ae(e, "[aria-selected=\"true\"]");
|
|
1053
1053
|
}
|
|
1054
1054
|
function Me(e) {
|
|
1055
|
-
return
|
|
1055
|
+
return P(e, ["none", "presentation"]);
|
|
1056
1056
|
}
|
|
1057
1057
|
function Ne(e) {
|
|
1058
1058
|
return pe(e);
|
|
1059
1059
|
}
|
|
1060
1060
|
function Pe(e) {
|
|
1061
|
-
return
|
|
1061
|
+
return P(e, [
|
|
1062
1062
|
"button",
|
|
1063
1063
|
"cell",
|
|
1064
1064
|
"checkbox",
|
|
@@ -1085,7 +1085,7 @@ function Fe(e) {
|
|
|
1085
1085
|
return !1;
|
|
1086
1086
|
}
|
|
1087
1087
|
function Ie(e) {
|
|
1088
|
-
return
|
|
1088
|
+
return N(e) || _e(e) ? e.value : e.textContent || "";
|
|
1089
1089
|
}
|
|
1090
1090
|
function Le(e) {
|
|
1091
1091
|
var t = e.getPropertyValue("content");
|
|
@@ -1099,7 +1099,7 @@ function ze(e) {
|
|
|
1099
1099
|
if (Re(e)) return e;
|
|
1100
1100
|
var t = null;
|
|
1101
1101
|
return e.childNodes.forEach(function(e) {
|
|
1102
|
-
if (t === null &&
|
|
1102
|
+
if (t === null && M(e)) {
|
|
1103
1103
|
var n = ze(e);
|
|
1104
1104
|
n !== null && (t = n);
|
|
1105
1105
|
}
|
|
@@ -1113,29 +1113,29 @@ function Be(e) {
|
|
|
1113
1113
|
function Ve(e) {
|
|
1114
1114
|
var t = e.labels;
|
|
1115
1115
|
if (t === null) return t;
|
|
1116
|
-
if (t !== void 0) return
|
|
1116
|
+
if (t !== void 0) return w(t);
|
|
1117
1117
|
if (!Re(e)) return null;
|
|
1118
1118
|
var n = e.ownerDocument;
|
|
1119
|
-
return
|
|
1119
|
+
return w(n.querySelectorAll("label")).filter(function(t) {
|
|
1120
1120
|
return Be(t) === e;
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
1123
|
function He(e) {
|
|
1124
1124
|
var t = e.assignedNodes();
|
|
1125
|
-
return t.length === 0 ?
|
|
1125
|
+
return t.length === 0 ? w(e.childNodes) : t;
|
|
1126
1126
|
}
|
|
1127
1127
|
function Ue(e) {
|
|
1128
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = new
|
|
1128
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = new ce(), r = ve(e), i = t.compute, a = i === void 0 ? "name" : i, o = t.computedStyleSupportsPseudoElements, s = o === void 0 ? t.getComputedStyle !== void 0 : o, c = t.getComputedStyle, l = c === void 0 ? r.getComputedStyle.bind(r) : c, u = t.hidden, d = u === void 0 ? !1 : u;
|
|
1129
1129
|
function f(e, t) {
|
|
1130
1130
|
var n = "";
|
|
1131
|
-
if (
|
|
1131
|
+
if (M(e) && s && (n = `${Le(l(e, "::before"))} ${n}`), (xe(e) ? He(e) : w(e.childNodes).concat(Te(e, "aria-owns"))).forEach(function(e) {
|
|
1132
1132
|
var r = g(e, {
|
|
1133
1133
|
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
1134
1134
|
isReferenced: !1,
|
|
1135
1135
|
recursion: !0
|
|
1136
|
-
}), i = (
|
|
1136
|
+
}), i = (M(e) ? l(e).getPropertyValue("display") : "inline") === "inline" ? "" : " ";
|
|
1137
1137
|
n += `${i}${r}${i}`;
|
|
1138
|
-
}),
|
|
1138
|
+
}), M(e) && s) {
|
|
1139
1139
|
var r = Le(l(e, "::after"));
|
|
1140
1140
|
n = `${n} ${r}`;
|
|
1141
1141
|
}
|
|
@@ -1146,13 +1146,13 @@ function Ue(e) {
|
|
|
1146
1146
|
return r !== null && !n.has(r) && r.value.trim() !== "" ? (n.add(r), r.value) : null;
|
|
1147
1147
|
}
|
|
1148
1148
|
function m(e) {
|
|
1149
|
-
return
|
|
1149
|
+
return M(e) ? p(e, "title") : null;
|
|
1150
1150
|
}
|
|
1151
1151
|
function h(e) {
|
|
1152
|
-
if (!
|
|
1152
|
+
if (!M(e)) return null;
|
|
1153
1153
|
if (ye(e)) {
|
|
1154
1154
|
n.add(e);
|
|
1155
|
-
for (var t =
|
|
1155
|
+
for (var t = w(e.childNodes), r = 0; r < t.length; r += 1) {
|
|
1156
1156
|
var i = t[r];
|
|
1157
1157
|
if (be(i)) return g(i, {
|
|
1158
1158
|
isEmbeddedInLabel: !1,
|
|
@@ -1162,7 +1162,7 @@ function Ue(e) {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
} else if (ge(e)) {
|
|
1164
1164
|
n.add(e);
|
|
1165
|
-
for (var a =
|
|
1165
|
+
for (var a = w(e.childNodes), o = 0; o < a.length; o += 1) {
|
|
1166
1166
|
var s = a[o];
|
|
1167
1167
|
if (pe(s)) return g(s, {
|
|
1168
1168
|
isEmbeddedInLabel: !1,
|
|
@@ -1172,7 +1172,7 @@ function Ue(e) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
} else if (Ce(e)) {
|
|
1174
1174
|
n.add(e);
|
|
1175
|
-
for (var c =
|
|
1175
|
+
for (var c = w(e.childNodes), l = 0; l < c.length; l += 1) {
|
|
1176
1176
|
var u = c[l];
|
|
1177
1177
|
if (we(u)) return u.textContent;
|
|
1178
1178
|
}
|
|
@@ -1184,14 +1184,14 @@ function Ue(e) {
|
|
|
1184
1184
|
var m = p(e, "label");
|
|
1185
1185
|
if (m !== null) return m;
|
|
1186
1186
|
}
|
|
1187
|
-
if (
|
|
1187
|
+
if (N(e) && (e.type === "button" || e.type === "submit" || e.type === "reset")) {
|
|
1188
1188
|
var h = p(e, "value");
|
|
1189
1189
|
if (h !== null) return h;
|
|
1190
1190
|
if (e.type === "submit") return "Submit";
|
|
1191
1191
|
if (e.type === "reset") return "Reset";
|
|
1192
1192
|
}
|
|
1193
1193
|
var _ = Ve(e);
|
|
1194
|
-
if (_ !== null && _.length !== 0) return n.add(e),
|
|
1194
|
+
if (_ !== null && _.length !== 0) return n.add(e), w(_).map(function(e) {
|
|
1195
1195
|
return g(e, {
|
|
1196
1196
|
isEmbeddedInLabel: !0,
|
|
1197
1197
|
isReferenced: !1,
|
|
@@ -1200,13 +1200,13 @@ function Ue(e) {
|
|
|
1200
1200
|
}).filter(function(e) {
|
|
1201
1201
|
return e.length > 0;
|
|
1202
1202
|
}).join(" ");
|
|
1203
|
-
if (
|
|
1203
|
+
if (N(e) && e.type === "image") {
|
|
1204
1204
|
var v = p(e, "alt");
|
|
1205
1205
|
if (v !== null) return v;
|
|
1206
1206
|
var y = p(e, "title");
|
|
1207
1207
|
return y === null ? "Submit Query" : y;
|
|
1208
1208
|
}
|
|
1209
|
-
if (
|
|
1209
|
+
if (P(e, ["button"])) {
|
|
1210
1210
|
var b = f(e, {
|
|
1211
1211
|
isEmbeddedInLabel: !1,
|
|
1212
1212
|
isReferenced: !1
|
|
@@ -1218,7 +1218,7 @@ function Ue(e) {
|
|
|
1218
1218
|
function g(e, t) {
|
|
1219
1219
|
if (n.has(e)) return "";
|
|
1220
1220
|
if (!d && De(e, l) && !t.isReferenced) return n.add(e), "";
|
|
1221
|
-
var r =
|
|
1221
|
+
var r = M(e) ? e.getAttributeNode("aria-labelledby") : null, i = r !== null && !n.has(r) ? Te(e, "aria-labelledby") : [];
|
|
1222
1222
|
if (a === "name" && !t.isReferenced && i.length > 0) return n.add(r), i.map(function(e) {
|
|
1223
1223
|
return g(e, {
|
|
1224
1224
|
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
@@ -1228,19 +1228,19 @@ function Ue(e) {
|
|
|
1228
1228
|
}).join(" ");
|
|
1229
1229
|
var o = t.recursion && Oe(e) && a === "name";
|
|
1230
1230
|
if (!o) {
|
|
1231
|
-
var s = (
|
|
1231
|
+
var s = (M(e) && e.getAttribute("aria-label") || "").trim();
|
|
1232
1232
|
if (s !== "" && a === "name") return n.add(e), s;
|
|
1233
1233
|
if (!Me(e)) {
|
|
1234
1234
|
var c = h(e);
|
|
1235
1235
|
if (c !== null) return n.add(e), c;
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
|
-
if (
|
|
1238
|
+
if (P(e, ["menu"])) return n.add(e), "";
|
|
1239
1239
|
if (o || t.isEmbeddedInLabel || t.isReferenced) {
|
|
1240
|
-
if (
|
|
1240
|
+
if (P(e, ["combobox", "listbox"])) {
|
|
1241
1241
|
n.add(e);
|
|
1242
1242
|
var u = je(e);
|
|
1243
|
-
return u.length === 0 ?
|
|
1243
|
+
return u.length === 0 ? N(e) ? e.value : "" : w(u).map(function(e) {
|
|
1244
1244
|
return g(e, {
|
|
1245
1245
|
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
1246
1246
|
isReferenced: !1,
|
|
@@ -1249,9 +1249,9 @@ function Ue(e) {
|
|
|
1249
1249
|
}).join(" ");
|
|
1250
1250
|
}
|
|
1251
1251
|
if (ke(e, "range")) return n.add(e), e.hasAttribute("aria-valuetext") ? e.getAttribute("aria-valuetext") : e.hasAttribute("aria-valuenow") ? e.getAttribute("aria-valuenow") : e.getAttribute("value") || "";
|
|
1252
|
-
if (
|
|
1252
|
+
if (P(e, ["textbox"])) return n.add(e), Ie(e);
|
|
1253
1253
|
}
|
|
1254
|
-
if (Pe(e) ||
|
|
1254
|
+
if (Pe(e) || M(e) && t.isReferenced || Ne(e) || Fe(e)) {
|
|
1255
1255
|
var p = f(e, {
|
|
1256
1256
|
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
1257
1257
|
isReferenced: !1
|
|
@@ -1274,15 +1274,15 @@ function Ue(e) {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
//#endregion
|
|
1276
1276
|
//#region node_modules/dom-accessibility-api/dist/accessible-description.mjs
|
|
1277
|
-
function
|
|
1277
|
+
function F(e) {
|
|
1278
1278
|
"@babel/helpers - typeof";
|
|
1279
|
-
return
|
|
1279
|
+
return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1280
1280
|
return typeof e;
|
|
1281
1281
|
} : function(e) {
|
|
1282
1282
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1283
|
-
},
|
|
1283
|
+
}, F(e);
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function We(e, t) {
|
|
1286
1286
|
var n = Object.keys(e);
|
|
1287
1287
|
if (Object.getOwnPropertySymbols) {
|
|
1288
1288
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1292,42 +1292,42 @@ function Ge(e, t) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
return n;
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function Ge(e) {
|
|
1296
1296
|
for (var t = 1; t < arguments.length; t++) {
|
|
1297
1297
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
1298
|
-
t % 2 ?
|
|
1299
|
-
|
|
1300
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1298
|
+
t % 2 ? We(Object(n), !0).forEach(function(t) {
|
|
1299
|
+
Ke(e, t, n[t]);
|
|
1300
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : We(Object(n)).forEach(function(t) {
|
|
1301
1301
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
1304
1304
|
return e;
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1307
|
-
return t =
|
|
1306
|
+
function Ke(e, t, n) {
|
|
1307
|
+
return t = qe(t), t in e ? Object.defineProperty(e, t, {
|
|
1308
1308
|
value: n,
|
|
1309
1309
|
enumerable: !0,
|
|
1310
1310
|
configurable: !0,
|
|
1311
1311
|
writable: !0
|
|
1312
1312
|
}) : e[t] = n, e;
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1315
|
-
var t =
|
|
1316
|
-
return
|
|
1314
|
+
function qe(e) {
|
|
1315
|
+
var t = Je(e, "string");
|
|
1316
|
+
return F(t) === "symbol" ? t : String(t);
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1319
|
-
if (
|
|
1318
|
+
function Je(e, t) {
|
|
1319
|
+
if (F(e) !== "object" || e === null) return e;
|
|
1320
1320
|
var n = e[Symbol.toPrimitive];
|
|
1321
1321
|
if (n !== void 0) {
|
|
1322
1322
|
var r = n.call(e, t || "default");
|
|
1323
|
-
if (
|
|
1323
|
+
if (F(r) !== "object") return r;
|
|
1324
1324
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
1325
1325
|
}
|
|
1326
1326
|
return (t === "string" ? String : Number)(e);
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function Ye(e) {
|
|
1329
1329
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = Te(e, "aria-describedby").map(function(e) {
|
|
1330
|
-
return Ue(e,
|
|
1330
|
+
return Ue(e, Ge(Ge({}, t), {}, { compute: "description" }));
|
|
1331
1331
|
}).join(" ");
|
|
1332
1332
|
if (n === "") {
|
|
1333
1333
|
var r = e.getAttribute("title");
|
|
@@ -1337,8 +1337,8 @@ function Xe(e) {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
//#endregion
|
|
1339
1339
|
//#region node_modules/dom-accessibility-api/dist/accessible-name.mjs
|
|
1340
|
-
function
|
|
1341
|
-
return
|
|
1340
|
+
function Xe(e) {
|
|
1341
|
+
return P(e, [
|
|
1342
1342
|
"caption",
|
|
1343
1343
|
"code",
|
|
1344
1344
|
"deletion",
|
|
@@ -1352,13 +1352,13 @@ function Ze(e) {
|
|
|
1352
1352
|
"superscript"
|
|
1353
1353
|
]);
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function Ze(e) {
|
|
1356
1356
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1357
|
-
return
|
|
1357
|
+
return Xe(e) ? "" : Ue(e, t);
|
|
1358
1358
|
}
|
|
1359
1359
|
//#endregion
|
|
1360
1360
|
//#region node_modules/lz-string/libs/lz-string.js
|
|
1361
|
-
var
|
|
1361
|
+
var Qe = /* @__PURE__ */ t(((e, t) => {
|
|
1362
1362
|
var n = (function() {
|
|
1363
1363
|
var e = String.fromCharCode, t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", r = {};
|
|
1364
1364
|
function i(e, t) {
|
|
@@ -1516,39 +1516,42 @@ var $e = /* @__PURE__ */ t(((e, t) => {
|
|
|
1516
1516
|
}) : t !== void 0 && t != null ? t.exports = n : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
1517
1517
|
return n;
|
|
1518
1518
|
});
|
|
1519
|
-
})),
|
|
1519
|
+
})), $e = /* @__PURE__ */ e(S()), I = n(), et = /* @__PURE__ */ e(Qe());
|
|
1520
1520
|
/* istanbul ignore file */
|
|
1521
|
-
function
|
|
1521
|
+
function tt(e) {
|
|
1522
1522
|
return e.replace(/</g, "<").replace(/>/g, ">");
|
|
1523
1523
|
}
|
|
1524
|
-
var
|
|
1524
|
+
var nt = (e, t, n, r, i, a, o) => {
|
|
1525
1525
|
let s = r + n.indent, c = n.colors;
|
|
1526
1526
|
return e.map((e) => {
|
|
1527
1527
|
let l = t[e], u = o(l, n, s, i, a);
|
|
1528
1528
|
return typeof l != "string" && (u.indexOf("\n") !== -1 && (u = n.spacingOuter + s + u + n.spacingOuter + r), u = "{" + u + "}"), n.spacingInner + r + c.prop.open + e + c.prop.close + "=" + c.value.open + u + c.value.close;
|
|
1529
1529
|
}).join("");
|
|
1530
|
-
},
|
|
1531
|
-
let o = typeof e == "string" ?
|
|
1532
|
-
return o === "" && typeof e == "object" && e && e.nodeType !==
|
|
1533
|
-
}).join(""),
|
|
1530
|
+
}, rt = 3, it = (e, t, n, r, i, a) => e.map((e) => {
|
|
1531
|
+
let o = typeof e == "string" ? at(e, t) : a(e, t, n, r, i);
|
|
1532
|
+
return o === "" && typeof e == "object" && e && e.nodeType !== rt ? "" : t.spacingOuter + n + o;
|
|
1533
|
+
}).join(""), at = (e, t) => {
|
|
1534
1534
|
let n = t.colors.content;
|
|
1535
|
-
return n.open +
|
|
1536
|
-
},
|
|
1535
|
+
return n.open + tt(e) + n.close;
|
|
1536
|
+
}, ot = (e, t) => {
|
|
1537
1537
|
let n = t.colors.comment;
|
|
1538
|
-
return n.open + "<!--" +
|
|
1539
|
-
},
|
|
1538
|
+
return n.open + "<!--" + tt(e) + "-->" + n.close;
|
|
1539
|
+
}, st = (e, t, n, r, i) => {
|
|
1540
1540
|
let a = r.colors.tag;
|
|
1541
1541
|
return a.open + "<" + e + (t && a.close + t + r.spacingOuter + i + a.open) + (n ? ">" + a.close + n + r.spacingOuter + i + a.open + "</" + e : (t && !r.min ? "" : " ") + "/") + ">" + a.close;
|
|
1542
|
-
},
|
|
1542
|
+
}, ct = (e, t) => {
|
|
1543
1543
|
let n = t.colors.tag;
|
|
1544
1544
|
return n.open + "<" + e + n.close + " …" + n.open + " />" + n.close;
|
|
1545
|
-
},
|
|
1545
|
+
}, lt = 1, ut = 3, dt = 8, ft = 11, pt = /^((HTML|SVG)\w*)?Element$/, mt = (e) => {
|
|
1546
1546
|
let { tagName: t } = e;
|
|
1547
1547
|
return !!(typeof t == "string" && t.includes("-") || typeof e.hasAttribute == "function" && e.hasAttribute("is"));
|
|
1548
|
-
},
|
|
1548
|
+
}, ht = (e) => {
|
|
1549
1549
|
let t = e.constructor.name, { nodeType: n } = e;
|
|
1550
|
-
return n ===
|
|
1550
|
+
return n === lt && (pt.test(t) || mt(e)) || n === ut && t === "Text" || n === dt && t === "Comment" || n === ft && t === "DocumentFragment";
|
|
1551
1551
|
};
|
|
1552
|
+
function gt(e) {
|
|
1553
|
+
return e.nodeType === ut;
|
|
1554
|
+
}
|
|
1552
1555
|
function _t(e) {
|
|
1553
1556
|
return e.nodeType === dt;
|
|
1554
1557
|
}
|
|
@@ -1556,61 +1559,58 @@ function vt(e) {
|
|
|
1556
1559
|
return e.nodeType === ft;
|
|
1557
1560
|
}
|
|
1558
1561
|
function yt(e) {
|
|
1559
|
-
return e.nodeType === pt;
|
|
1560
|
-
}
|
|
1561
|
-
function bt(e) {
|
|
1562
1562
|
return {
|
|
1563
1563
|
test: (e) => {
|
|
1564
1564
|
var t;
|
|
1565
|
-
return ((e == null || (t = e.constructor) == null ? void 0 : t.name) ||
|
|
1565
|
+
return ((e == null || (t = e.constructor) == null ? void 0 : t.name) || mt(e)) && ht(e);
|
|
1566
1566
|
},
|
|
1567
1567
|
serialize: (t, n, r, i, a, o) => {
|
|
1568
|
+
if (gt(t)) return at(t.data, n);
|
|
1568
1569
|
if (_t(t)) return ot(t.data, n);
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
return ++i > n.maxDepth ? lt(s, n) : ct(s, rt(yt(t) ? [] : Array.from(t.attributes).map((e) => e.name).sort(), yt(t) ? {} : Array.from(t.attributes).reduce((e, t) => (e[t.name] = t.value, e), {}), n, r + n.indent, i, a, o), at(Array.prototype.slice.call(t.childNodes || t.children).filter(e), n, r + n.indent, i, a, o), n, r);
|
|
1570
|
+
let s = vt(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
1571
|
+
return ++i > n.maxDepth ? ct(s, n) : st(s, nt(vt(t) ? [] : Array.from(t.attributes).map((e) => e.name).sort(), vt(t) ? {} : Array.from(t.attributes).reduce((e, t) => (e[t.name] = t.value, e), {}), n, r + n.indent, i, a, o), it(Array.prototype.slice.call(t.childNodes || t.children).filter(e), n, r + n.indent, i, a, o), n, r);
|
|
1572
1572
|
}
|
|
1573
1573
|
};
|
|
1574
1574
|
}
|
|
1575
|
-
var
|
|
1575
|
+
var bt = null, xt = null, St = null;
|
|
1576
1576
|
try {
|
|
1577
1577
|
let e = module && module.require;
|
|
1578
|
-
|
|
1578
|
+
xt = e.call(module, "fs").readFileSync, St = e.call(module, "@babel/code-frame").codeFrameColumns, bt = e.call(module, "picocolors");
|
|
1579
1579
|
} catch {}
|
|
1580
|
-
function
|
|
1580
|
+
function Ct(e) {
|
|
1581
1581
|
let t = e.indexOf("(") + 1, n = e.indexOf(")"), r = e.slice(t, n), i = r.split(":"), [a, o, s] = [
|
|
1582
1582
|
i[0],
|
|
1583
1583
|
parseInt(i[1], 10),
|
|
1584
1584
|
parseInt(i[2], 10)
|
|
1585
1585
|
], c = "";
|
|
1586
1586
|
try {
|
|
1587
|
-
c =
|
|
1587
|
+
c = xt(a, "utf-8");
|
|
1588
1588
|
} catch {
|
|
1589
1589
|
return "";
|
|
1590
1590
|
}
|
|
1591
|
-
let l =
|
|
1591
|
+
let l = St(c, { start: {
|
|
1592
1592
|
line: o,
|
|
1593
1593
|
column: s
|
|
1594
1594
|
} }, {
|
|
1595
1595
|
highlightCode: !0,
|
|
1596
1596
|
linesBelow: 0
|
|
1597
1597
|
});
|
|
1598
|
-
return
|
|
1598
|
+
return bt.dim(r) + "\n" + l + "\n";
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1601
|
-
return !
|
|
1600
|
+
function wt() {
|
|
1601
|
+
return !xt || !St ? "" : Ct((/* @__PURE__ */ Error()).stack.split("\n").slice(1).find((e) => !e.includes("node_modules/")));
|
|
1602
1602
|
}
|
|
1603
|
-
var
|
|
1604
|
-
function
|
|
1603
|
+
var Tt = 3;
|
|
1604
|
+
function Et() {
|
|
1605
1605
|
// istanbul ignore next
|
|
1606
1606
|
return typeof jest < "u" && jest !== null ? setTimeout._isMockFunction === !0 || Object.prototype.hasOwnProperty.call(setTimeout, "clock") : !1;
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1608
|
+
function Dt() {
|
|
1609
1609
|
/* istanbul ignore if */
|
|
1610
1610
|
if (typeof window > "u") throw Error("Could not find default container");
|
|
1611
1611
|
return window.document;
|
|
1612
1612
|
}
|
|
1613
|
-
function
|
|
1613
|
+
function Ot(e) {
|
|
1614
1614
|
if (e.defaultView) return e.defaultView;
|
|
1615
1615
|
if (e.ownerDocument && e.ownerDocument.defaultView) return e.ownerDocument.defaultView;
|
|
1616
1616
|
if (e.window) return e.window;
|
|
@@ -1622,7 +1622,7 @@ function L(e) {
|
|
|
1622
1622
|
return typeof e == "object" ? e === null ? "null" : e.constructor.name : typeof e;
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
|
-
var
|
|
1625
|
+
var kt = () => {
|
|
1626
1626
|
if (typeof process > "u") return !1;
|
|
1627
1627
|
let e;
|
|
1628
1628
|
try {
|
|
@@ -1630,26 +1630,26 @@ var At = () => {
|
|
|
1630
1630
|
t && (e = JSON.parse(t));
|
|
1631
1631
|
} catch {}
|
|
1632
1632
|
return typeof e == "boolean" ? e : process.versions !== void 0 && process.versions.node !== void 0;
|
|
1633
|
-
}, { DOMCollection:
|
|
1634
|
-
function
|
|
1635
|
-
return e.nodeType !==
|
|
1633
|
+
}, { DOMCollection: At } = $e.plugins, jt = 1, Mt = 8;
|
|
1634
|
+
function Nt(e) {
|
|
1635
|
+
return e.nodeType !== Mt && (e.nodeType !== jt || !e.matches(B().defaultIgnore));
|
|
1636
1636
|
}
|
|
1637
1637
|
function R(e, t, n) {
|
|
1638
|
-
if (n === void 0 && (n = {}), e ||=
|
|
1638
|
+
if (n === void 0 && (n = {}), e ||= Dt().body, typeof t != "number" && (t = typeof process < "u" && process.env !== void 0 && process.env.DEBUG_PRINT_LIMIT || 7e3), t === 0) return "";
|
|
1639
1639
|
e.documentElement && (e = e.documentElement);
|
|
1640
1640
|
let r = typeof e;
|
|
1641
1641
|
if (r === "object" ? r = e.constructor.name : e = {}, !("outerHTML" in e)) throw TypeError("Expected an element or document but got " + r);
|
|
1642
|
-
let { filterNode: i =
|
|
1643
|
-
plugins: [
|
|
1642
|
+
let { filterNode: i = Nt, ...a } = n, o = $e.format(e, {
|
|
1643
|
+
plugins: [yt(i), At],
|
|
1644
1644
|
printFunctionName: !1,
|
|
1645
|
-
highlight:
|
|
1645
|
+
highlight: kt(),
|
|
1646
1646
|
...a
|
|
1647
1647
|
});
|
|
1648
1648
|
return t !== void 0 && e.outerHTML.length > t ? o.slice(0, t) + "..." : o;
|
|
1649
1649
|
}
|
|
1650
|
-
var
|
|
1651
|
-
let e =
|
|
1652
|
-
e ?
|
|
1650
|
+
var Pt = function() {
|
|
1651
|
+
let e = wt();
|
|
1652
|
+
console.log(e ? R(...arguments) + "\n\n" + e : R(...arguments));
|
|
1653
1653
|
}, z = {
|
|
1654
1654
|
testIdAttribute: "data-testid",
|
|
1655
1655
|
asyncUtilTimeout: 1e3,
|
|
@@ -1667,14 +1667,14 @@ var Ft = function() {
|
|
|
1667
1667
|
_disableExpensiveErrorDiagnostics: !1,
|
|
1668
1668
|
computedStyleSupportsPseudoElements: !1
|
|
1669
1669
|
};
|
|
1670
|
-
function
|
|
1670
|
+
function Ft(e) {
|
|
1671
1671
|
try {
|
|
1672
1672
|
return z._disableExpensiveErrorDiagnostics = !0, e();
|
|
1673
1673
|
} finally {
|
|
1674
1674
|
z._disableExpensiveErrorDiagnostics = !1;
|
|
1675
1675
|
}
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function It(e) {
|
|
1678
1678
|
typeof e == "function" && (e = e(z)), z = {
|
|
1679
1679
|
...z,
|
|
1680
1680
|
...e
|
|
@@ -1683,7 +1683,7 @@ function Lt(e) {
|
|
|
1683
1683
|
function B() {
|
|
1684
1684
|
return z;
|
|
1685
1685
|
}
|
|
1686
|
-
var
|
|
1686
|
+
var Lt = [
|
|
1687
1687
|
"button",
|
|
1688
1688
|
"meter",
|
|
1689
1689
|
"output",
|
|
@@ -1692,54 +1692,54 @@ var Rt = [
|
|
|
1692
1692
|
"textarea",
|
|
1693
1693
|
"input"
|
|
1694
1694
|
];
|
|
1695
|
-
function
|
|
1696
|
-
return
|
|
1695
|
+
function Rt(e) {
|
|
1696
|
+
return Lt.includes(e.nodeName.toLowerCase()) ? "" : e.nodeType === Tt ? e.textContent : Array.from(e.childNodes).map((e) => Rt(e)).join("");
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function zt(e) {
|
|
1699
1699
|
let t;
|
|
1700
|
-
return t = e.tagName.toLowerCase() === "label" ?
|
|
1700
|
+
return t = e.tagName.toLowerCase() === "label" ? Rt(e) : e.value || e.textContent, t;
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function Bt(e) {
|
|
1703
1703
|
if (e.labels !== void 0) return e.labels ?? [];
|
|
1704
|
-
if (!
|
|
1704
|
+
if (!Vt(e)) return [];
|
|
1705
1705
|
let t = e.ownerDocument.querySelectorAll("label");
|
|
1706
1706
|
return Array.from(t).filter((t) => t.control === e);
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function Vt(e) {
|
|
1709
1709
|
return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName) || e.tagName === "INPUT" && e.getAttribute("type") !== "hidden";
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Ht(e, t, n) {
|
|
1712
1712
|
let { selector: r = "*" } = n === void 0 ? {} : n, i = t.getAttribute("aria-labelledby"), a = i ? i.split(" ") : [];
|
|
1713
1713
|
return a.length ? a.map((t) => {
|
|
1714
1714
|
let n = e.querySelector("[id=\"" + t + "\"]");
|
|
1715
1715
|
return n ? {
|
|
1716
|
-
content:
|
|
1716
|
+
content: zt(n),
|
|
1717
1717
|
formControl: null
|
|
1718
1718
|
} : {
|
|
1719
1719
|
content: "",
|
|
1720
1720
|
formControl: null
|
|
1721
1721
|
};
|
|
1722
|
-
}) : Array.from(
|
|
1723
|
-
content:
|
|
1722
|
+
}) : Array.from(Bt(t)).map((e) => ({
|
|
1723
|
+
content: zt(e),
|
|
1724
1724
|
formControl: Array.from(e.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((e) => e.matches(r))[0]
|
|
1725
1725
|
}));
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function Ut(e) {
|
|
1728
1728
|
if (e == null) throw Error("It looks like " + e + " was passed instead of a matcher. Did you do something like getByText(" + e + ")?");
|
|
1729
1729
|
}
|
|
1730
1730
|
function V(e, t, n, r) {
|
|
1731
1731
|
if (typeof e != "string") return !1;
|
|
1732
|
-
|
|
1732
|
+
Ut(n);
|
|
1733
1733
|
let i = r(e);
|
|
1734
|
-
return typeof n == "string" || typeof n == "number" ? i.toLowerCase().includes(n.toString().toLowerCase()) : typeof n == "function" ? n(i, t) :
|
|
1734
|
+
return typeof n == "string" || typeof n == "number" ? i.toLowerCase().includes(n.toString().toLowerCase()) : typeof n == "function" ? n(i, t) : Gt(n, i);
|
|
1735
1735
|
}
|
|
1736
1736
|
function H(e, t, n, r) {
|
|
1737
1737
|
if (typeof e != "string") return !1;
|
|
1738
|
-
|
|
1738
|
+
Ut(n);
|
|
1739
1739
|
let i = r(e);
|
|
1740
|
-
return n instanceof Function ? n(i, t) : n instanceof RegExp ?
|
|
1740
|
+
return n instanceof Function ? n(i, t) : n instanceof RegExp ? Gt(n, i) : i === String(n);
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function Wt(e) {
|
|
1743
1743
|
let { trim: t = !0, collapseWhitespace: n = !0 } = e === void 0 ? {} : e;
|
|
1744
1744
|
return (e) => {
|
|
1745
1745
|
let r = e;
|
|
@@ -1748,27 +1748,27 @@ function Gt(e) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
function U(e) {
|
|
1750
1750
|
let { trim: t, collapseWhitespace: n, normalizer: r } = e;
|
|
1751
|
-
if (!r) return
|
|
1751
|
+
if (!r) return Wt({
|
|
1752
1752
|
trim: t,
|
|
1753
1753
|
collapseWhitespace: n
|
|
1754
1754
|
});
|
|
1755
1755
|
if (t !== void 0 || n !== void 0) throw 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");
|
|
1756
1756
|
return r;
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function Gt(e, t) {
|
|
1759
1759
|
let n = e.test(t);
|
|
1760
1760
|
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), n;
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1763
|
-
return e.matches("input[type=submit], input[type=button], input[type=reset]") ? e.value : Array.from(e.childNodes).filter((e) => e.nodeType ===
|
|
1762
|
+
function Kt(e) {
|
|
1763
|
+
return e.matches("input[type=submit], input[type=button], input[type=reset]") ? e.value : Array.from(e.childNodes).filter((e) => e.nodeType === Tt && !!e.textContent).map((e) => e.textContent).join("");
|
|
1764
1764
|
}
|
|
1765
|
-
var
|
|
1766
|
-
function
|
|
1765
|
+
var qt = Zt(I.elementRoles);
|
|
1766
|
+
function Jt(e) {
|
|
1767
1767
|
return e.hidden === !0 || e.getAttribute("aria-hidden") === "true" || e.ownerDocument.defaultView.getComputedStyle(e).display === "none";
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function Yt(e, t) {
|
|
1770
1770
|
t === void 0 && (t = {});
|
|
1771
|
-
let { isSubtreeInaccessible: n =
|
|
1771
|
+
let { isSubtreeInaccessible: n = Jt } = t;
|
|
1772
1772
|
if (e.ownerDocument.defaultView.getComputedStyle(e).visibility === "hidden") return !0;
|
|
1773
1773
|
let r = e;
|
|
1774
1774
|
for (; r;) {
|
|
@@ -1777,11 +1777,11 @@ function Xt(e, t) {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
return !1;
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1781
|
-
for (let { match: t, roles: n } of
|
|
1780
|
+
function Xt(e) {
|
|
1781
|
+
for (let { match: t, roles: n } of qt) if (t(e)) return [...n];
|
|
1782
1782
|
return [];
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function Zt(e) {
|
|
1785
1785
|
function t(e) {
|
|
1786
1786
|
let { name: t, attributes: n } = e;
|
|
1787
1787
|
return "" + t + n.map((e) => {
|
|
@@ -1814,14 +1814,14 @@ function Qt(e) {
|
|
|
1814
1814
|
}];
|
|
1815
1815
|
return a.sort(r);
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function Qt(e, t) {
|
|
1818
1818
|
let { hidden: n = !1 } = t === void 0 ? {} : t;
|
|
1819
1819
|
function r(e) {
|
|
1820
1820
|
return [e, ...Array.from(e.children).reduce((e, t) => [...e, ...r(t)], [])];
|
|
1821
1821
|
}
|
|
1822
|
-
return r(e).filter((e) => n === !1 ?
|
|
1822
|
+
return r(e).filter((e) => n === !1 ? Yt(e) === !1 : !0).reduce((e, t) => {
|
|
1823
1823
|
let n = [];
|
|
1824
|
-
return n = t.hasAttribute("role") ? t.getAttribute("role").split(" ").slice(0, 1) :
|
|
1824
|
+
return n = t.hasAttribute("role") ? t.getAttribute("role").split(" ").slice(0, 1) : Xt(t), n.reduce((e, n) => Array.isArray(e[n]) ? {
|
|
1825
1825
|
...e,
|
|
1826
1826
|
[n]: [...e[n], t]
|
|
1827
1827
|
} : {
|
|
@@ -1830,16 +1830,16 @@ function $t(e, t) {
|
|
|
1830
1830
|
}, e);
|
|
1831
1831
|
}, {});
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1834
|
-
let { hidden: n, includeDescription: r } = t, i =
|
|
1833
|
+
function $t(e, t) {
|
|
1834
|
+
let { hidden: n, includeDescription: r } = t, i = Qt(e, { hidden: n });
|
|
1835
1835
|
return Object.entries(i).filter((e) => {
|
|
1836
1836
|
let [t] = e;
|
|
1837
1837
|
return t !== "generic";
|
|
1838
1838
|
}).map((e) => {
|
|
1839
1839
|
let [t, n] = e, i = "-".repeat(50), a = n.map((e) => {
|
|
1840
|
-
let t = "Name \"" +
|
|
1840
|
+
let t = "Name \"" + Ze(e, { computedStyleSupportsPseudoElements: B().computedStyleSupportsPseudoElements }) + "\":\n", n = R(e.cloneNode(!1));
|
|
1841
1841
|
if (r) {
|
|
1842
|
-
let r = "Description \"" +
|
|
1842
|
+
let r = "Description \"" + Ye(e, { computedStyleSupportsPseudoElements: B().computedStyleSupportsPseudoElements }) + "\":\n";
|
|
1843
1843
|
return "" + t + r + n;
|
|
1844
1844
|
}
|
|
1845
1845
|
return "" + t + n;
|
|
@@ -1847,30 +1847,30 @@ function en(e, t) {
|
|
|
1847
1847
|
return t + ":\n\n" + a + "\n\n" + i;
|
|
1848
1848
|
}).join("\n");
|
|
1849
1849
|
}
|
|
1850
|
+
function en(e) {
|
|
1851
|
+
return e.tagName === "OPTION" ? e.selected : sn(e, "aria-selected");
|
|
1852
|
+
}
|
|
1850
1853
|
function tn(e) {
|
|
1851
|
-
return e.
|
|
1854
|
+
return e.getAttribute("aria-busy") === "true";
|
|
1852
1855
|
}
|
|
1853
1856
|
function nn(e) {
|
|
1854
|
-
return e.
|
|
1857
|
+
if (!("indeterminate" in e && e.indeterminate)) return "checked" in e ? e.checked : sn(e, "aria-checked");
|
|
1855
1858
|
}
|
|
1856
1859
|
function rn(e) {
|
|
1857
|
-
|
|
1860
|
+
return sn(e, "aria-pressed");
|
|
1858
1861
|
}
|
|
1859
1862
|
function an(e) {
|
|
1860
|
-
return
|
|
1863
|
+
return sn(e, "aria-current") ?? e.getAttribute("aria-current") ?? !1;
|
|
1861
1864
|
}
|
|
1862
1865
|
function on(e) {
|
|
1863
|
-
return
|
|
1866
|
+
return sn(e, "aria-expanded");
|
|
1864
1867
|
}
|
|
1865
|
-
function sn(e) {
|
|
1866
|
-
return cn(e, "aria-expanded");
|
|
1867
|
-
}
|
|
1868
|
-
function cn(e, t) {
|
|
1868
|
+
function sn(e, t) {
|
|
1869
1869
|
let n = e.getAttribute(t);
|
|
1870
1870
|
if (n === "true") return !0;
|
|
1871
1871
|
if (n === "false") return !1;
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function cn(e) {
|
|
1874
1874
|
return e.getAttribute("aria-level") && Number(e.getAttribute("aria-level")) || {
|
|
1875
1875
|
H1: 1,
|
|
1876
1876
|
H2: 2,
|
|
@@ -1880,32 +1880,32 @@ function ln(e) {
|
|
|
1880
1880
|
H6: 6
|
|
1881
1881
|
}[e.tagName];
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function ln(e) {
|
|
1884
1884
|
let t = e.getAttribute("aria-valuenow");
|
|
1885
1885
|
return t === null ? void 0 : +t;
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function un(e) {
|
|
1888
1888
|
let t = e.getAttribute("aria-valuemax");
|
|
1889
1889
|
return t === null ? void 0 : +t;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function dn(e) {
|
|
1892
1892
|
let t = e.getAttribute("aria-valuemin");
|
|
1893
1893
|
return t === null ? void 0 : +t;
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1895
|
+
function fn(e) {
|
|
1896
1896
|
let t = e.getAttribute("aria-valuetext");
|
|
1897
1897
|
return t === null ? void 0 : t;
|
|
1898
1898
|
}
|
|
1899
|
-
var
|
|
1900
|
-
function
|
|
1899
|
+
var pn = Wt();
|
|
1900
|
+
function mn(e) {
|
|
1901
1901
|
return e.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
|
|
1902
1902
|
}
|
|
1903
|
-
function
|
|
1904
|
-
return new RegExp(
|
|
1903
|
+
function hn(e) {
|
|
1904
|
+
return new RegExp(mn(e.toLowerCase()), "i");
|
|
1905
1905
|
}
|
|
1906
1906
|
function W(e, t, n, r) {
|
|
1907
|
-
let { variant: i, name: a } = r, o = "", s = {}, c = [["Role", "TestId"].includes(e) ? n :
|
|
1908
|
-
a && (s.name =
|
|
1907
|
+
let { variant: i, name: a } = r, o = "", s = {}, c = [["Role", "TestId"].includes(e) ? n : hn(n)];
|
|
1908
|
+
a && (s.name = hn(a)), e === "Role" && Yt(t) && (s.hidden = !0, o = "Element is inaccessible. This means that the element and all its children are invisible to screen readers.\n If you are using the aria-hidden prop, make sure this is the right choice for your case.\n "), Object.keys(s).length > 0 && c.push(s);
|
|
1909
1909
|
let l = i + "By" + e;
|
|
1910
1910
|
return {
|
|
1911
1911
|
queryName: e,
|
|
@@ -1926,20 +1926,20 @@ function W(e, t, n, r) {
|
|
|
1926
1926
|
function G(e, t, n) {
|
|
1927
1927
|
return n && (!t || t.toLowerCase() === e.toLowerCase());
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function gn(e, t, n) {
|
|
1930
1930
|
if (t === void 0 && (t = "get"), e.matches(B().defaultIgnore)) return;
|
|
1931
|
-
let r = e.getAttribute("role") ??
|
|
1931
|
+
let r = e.getAttribute("role") ?? Xt(e)?.[0];
|
|
1932
1932
|
if (r !== "generic" && G("Role", n, r)) return W("Role", e, r, {
|
|
1933
1933
|
variant: t,
|
|
1934
|
-
name:
|
|
1934
|
+
name: Ze(e, { computedStyleSupportsPseudoElements: B().computedStyleSupportsPseudoElements })
|
|
1935
1935
|
});
|
|
1936
|
-
let i =
|
|
1936
|
+
let i = Ht(document, e).map((e) => e.content).join(" ");
|
|
1937
1937
|
if (G("LabelText", n, i)) return W("LabelText", e, i, { variant: t });
|
|
1938
1938
|
let a = e.getAttribute("placeholder");
|
|
1939
1939
|
if (G("PlaceholderText", n, a)) return W("PlaceholderText", e, a, { variant: t });
|
|
1940
|
-
let o =
|
|
1940
|
+
let o = pn(Kt(e));
|
|
1941
1941
|
if (G("Text", n, o)) return W("Text", e, o, { variant: t });
|
|
1942
|
-
if (G("DisplayValue", n, e.value)) return W("DisplayValue", e,
|
|
1942
|
+
if (G("DisplayValue", n, e.value)) return W("DisplayValue", e, pn(e.value), { variant: t });
|
|
1943
1943
|
let s = e.getAttribute("alt");
|
|
1944
1944
|
if (G("AltText", n, s)) return W("AltText", e, s, { variant: t });
|
|
1945
1945
|
let c = e.getAttribute("title");
|
|
@@ -1947,11 +1947,11 @@ function _n(e, t, n) {
|
|
|
1947
1947
|
let l = e.getAttribute(B().testIdAttribute);
|
|
1948
1948
|
if (G("TestId", n, l)) return W("TestId", e, l, { variant: t });
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function _n(e, t) {
|
|
1951
1951
|
e.stack = t.stack.replace(t.message, e.message);
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1954
|
-
let { container: n =
|
|
1953
|
+
function vn(e, t) {
|
|
1954
|
+
let { container: n = Dt(), timeout: r = B().asyncUtilTimeout, showOriginalStackTrace: i = B().showOriginalStackTrace, stackTraceError: a, interval: o = 50, onTimeout: s = (e) => (Object.defineProperty(e, "message", { value: B().getElementError(e.message, n).message }), e), mutationObserverOptions: c = {
|
|
1955
1955
|
subtree: !0,
|
|
1956
1956
|
childList: !0,
|
|
1957
1957
|
attributes: !0,
|
|
@@ -1959,13 +1959,13 @@ function yn(e, t) {
|
|
|
1959
1959
|
} } = t;
|
|
1960
1960
|
if (typeof e != "function") throw TypeError("Received `callback` arg must be a function");
|
|
1961
1961
|
return new Promise(async (t, l) => {
|
|
1962
|
-
let u, d, f, p = !1, m = "idle", h = setTimeout(b, r), g =
|
|
1962
|
+
let u, d, f, p = !1, m = "idle", h = setTimeout(b, r), g = Et();
|
|
1963
1963
|
if (g) {
|
|
1964
1964
|
let { unstable_advanceTimersWrapper: e } = B();
|
|
1965
1965
|
for (y(); !p;) {
|
|
1966
|
-
if (!
|
|
1966
|
+
if (!Et()) {
|
|
1967
1967
|
let e = /* @__PURE__ */ 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");
|
|
1968
|
-
i ||
|
|
1968
|
+
i || _n(e, a), l(e);
|
|
1969
1969
|
return;
|
|
1970
1970
|
}
|
|
1971
1971
|
if (await e(async () => {
|
|
@@ -1981,21 +1981,21 @@ function yn(e, t) {
|
|
|
1981
1981
|
return;
|
|
1982
1982
|
}
|
|
1983
1983
|
d = setInterval(v, o);
|
|
1984
|
-
let { MutationObserver: e } =
|
|
1984
|
+
let { MutationObserver: e } = Ot(n);
|
|
1985
1985
|
f = new e(v), f.observe(n, c), y();
|
|
1986
1986
|
}
|
|
1987
1987
|
function _(e, n) {
|
|
1988
1988
|
p = !0, clearTimeout(h), g || (clearInterval(d), f.disconnect()), e ? l(e) : t(n);
|
|
1989
1989
|
}
|
|
1990
1990
|
function v() {
|
|
1991
|
-
if (
|
|
1991
|
+
if (Et()) {
|
|
1992
1992
|
let e = /* @__PURE__ */ 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");
|
|
1993
|
-
return i ||
|
|
1993
|
+
return i || _n(e, a), l(e);
|
|
1994
1994
|
} else return y();
|
|
1995
1995
|
}
|
|
1996
1996
|
function y() {
|
|
1997
1997
|
if (m !== "pending") try {
|
|
1998
|
-
let t =
|
|
1998
|
+
let t = Ft(e);
|
|
1999
1999
|
typeof t?.then == "function" ? (m = "pending", t.then((e) => {
|
|
2000
2000
|
m = "resolved", _(null, e);
|
|
2001
2001
|
}, (e) => {
|
|
@@ -2007,24 +2007,24 @@ function yn(e, t) {
|
|
|
2007
2007
|
}
|
|
2008
2008
|
function b() {
|
|
2009
2009
|
let e;
|
|
2010
|
-
u ? (e = u, !i && e.name === "TestingLibraryElementError" &&
|
|
2010
|
+
u ? (e = u, !i && e.name === "TestingLibraryElementError" && _n(e, a)) : (e = /* @__PURE__ */ Error("Timed out in waitFor."), i || _n(e, a)), _(s(e), null);
|
|
2011
2011
|
}
|
|
2012
2012
|
});
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function yn(e, t) {
|
|
2015
2015
|
let n = /* @__PURE__ */ Error("STACK_TRACE_MESSAGE");
|
|
2016
|
-
return B().asyncWrapper(() =>
|
|
2016
|
+
return B().asyncWrapper(() => vn(e, {
|
|
2017
2017
|
stackTraceError: n,
|
|
2018
2018
|
...t
|
|
2019
2019
|
}));
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function bn(e, t) {
|
|
2022
2022
|
return B().getElementError(e, t);
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2025
|
-
return
|
|
2024
|
+
function xn(e, t) {
|
|
2025
|
+
return bn(e + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", t);
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function Sn(e, t, n, r) {
|
|
2028
2028
|
let { exact: i = !0, collapseWhitespace: a, trim: o, normalizer: s } = r === void 0 ? {} : r, c = i ? H : V, l = U({
|
|
2029
2029
|
collapseWhitespace: a,
|
|
2030
2030
|
trim: o,
|
|
@@ -2032,21 +2032,21 @@ function Cn(e, t, n, r) {
|
|
|
2032
2032
|
});
|
|
2033
2033
|
return Array.from(t.querySelectorAll("[" + e + "]")).filter((t) => c(t.getAttribute(e), t, n, l));
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2035
|
+
function Cn(e, t) {
|
|
2036
2036
|
return function(n) {
|
|
2037
2037
|
var r = [...arguments].slice(1);
|
|
2038
2038
|
let i = e(n, ...r);
|
|
2039
2039
|
if (i.length > 1) {
|
|
2040
|
-
let e = i.map((e) =>
|
|
2041
|
-
throw
|
|
2040
|
+
let e = i.map((e) => bn(null, e).message).join("\n\n");
|
|
2041
|
+
throw xn(t(n, ...r) + "\n\nHere are the matching elements:\n\n" + e, n);
|
|
2042
2042
|
}
|
|
2043
2043
|
return i[0] || null;
|
|
2044
2044
|
};
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function wn(e, t) {
|
|
2047
2047
|
return B().getElementError("A better query is available, try this:\n" + e.toString() + "\n", t);
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function Tn(e, t) {
|
|
2050
2050
|
return function(n) {
|
|
2051
2051
|
var r = [...arguments].slice(1);
|
|
2052
2052
|
let i = e(n, ...r);
|
|
@@ -2054,8 +2054,8 @@ function En(e, t) {
|
|
|
2054
2054
|
return i;
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2058
|
-
return (t, n, r, i) =>
|
|
2057
|
+
function En(e) {
|
|
2058
|
+
return (t, n, r, i) => yn(() => e(t, n, r), {
|
|
2059
2059
|
container: t,
|
|
2060
2060
|
...i
|
|
2061
2061
|
});
|
|
@@ -2064,60 +2064,60 @@ var K = (e, t, n) => function(r) {
|
|
|
2064
2064
|
var i = [...arguments].slice(1);
|
|
2065
2065
|
let a = e(r, ...i), [{ suggest: o = B().throwSuggestions } = {}] = i.slice(-1);
|
|
2066
2066
|
if (a && o) {
|
|
2067
|
-
let e =
|
|
2068
|
-
if (e && !t.endsWith(e.queryName)) throw
|
|
2067
|
+
let e = gn(a, n);
|
|
2068
|
+
if (e && !t.endsWith(e.queryName)) throw wn(e.toString(), r);
|
|
2069
2069
|
}
|
|
2070
2070
|
return a;
|
|
2071
2071
|
}, q = (e, t, n) => function(r) {
|
|
2072
2072
|
var i = [...arguments].slice(1);
|
|
2073
2073
|
let a = e(r, ...i), [{ suggest: o = B().throwSuggestions } = {}] = i.slice(-1);
|
|
2074
2074
|
if (a.length && o) {
|
|
2075
|
-
let e = [...new Set(a.map((e) =>
|
|
2076
|
-
if (e.length === 1 && !t.endsWith(
|
|
2075
|
+
let e = [...new Set(a.map((e) => gn(e, n)?.toString()))];
|
|
2076
|
+
if (e.length === 1 && !t.endsWith(gn(a[0], n).queryName)) throw wn(e[0], r);
|
|
2077
2077
|
}
|
|
2078
2078
|
return a;
|
|
2079
2079
|
};
|
|
2080
2080
|
function J(e, t, n) {
|
|
2081
|
-
let r = K(
|
|
2081
|
+
let r = K(Cn(e, t), e.name, "query"), i = Tn(e, n), a = Cn(i, t), o = K(a, e.name, "get");
|
|
2082
2082
|
return [
|
|
2083
2083
|
r,
|
|
2084
2084
|
q(i, e.name.replace("query", "get"), "getAll"),
|
|
2085
2085
|
o,
|
|
2086
|
-
|
|
2087
|
-
|
|
2086
|
+
En(q(i, e.name, "findAll")),
|
|
2087
|
+
En(K(a, e.name, "find"))
|
|
2088
2088
|
];
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function Dn(e) {
|
|
2091
2091
|
return Array.from(e.querySelectorAll("label,input")).map((e) => ({
|
|
2092
2092
|
node: e,
|
|
2093
|
-
textToMatch:
|
|
2093
|
+
textToMatch: zt(e)
|
|
2094
2094
|
})).filter((e) => {
|
|
2095
2095
|
let { textToMatch: t } = e;
|
|
2096
2096
|
return t !== null;
|
|
2097
2097
|
});
|
|
2098
2098
|
}
|
|
2099
|
-
var
|
|
2099
|
+
var On = function(e, t, n) {
|
|
2100
2100
|
let { exact: r = !0, trim: i, collapseWhitespace: a, normalizer: o } = n === void 0 ? {} : n, s = r ? H : V, c = U({
|
|
2101
2101
|
collapseWhitespace: a,
|
|
2102
2102
|
trim: i,
|
|
2103
2103
|
normalizer: o
|
|
2104
2104
|
});
|
|
2105
|
-
return
|
|
2105
|
+
return Dn(e).filter((e) => {
|
|
2106
2106
|
let { node: n, textToMatch: r } = e;
|
|
2107
2107
|
return s(r, n, t, c);
|
|
2108
2108
|
}).map((e) => {
|
|
2109
2109
|
let { node: t } = e;
|
|
2110
2110
|
return t;
|
|
2111
2111
|
});
|
|
2112
|
-
},
|
|
2112
|
+
}, kn = function(e, t, n) {
|
|
2113
2113
|
let { selector: r = "*", exact: i = !0, collapseWhitespace: a, trim: o, normalizer: s } = n === void 0 ? {} : n;
|
|
2114
2114
|
L(e);
|
|
2115
2115
|
let c = i ? H : V, l = U({
|
|
2116
2116
|
collapseWhitespace: a,
|
|
2117
2117
|
trim: o,
|
|
2118
2118
|
normalizer: s
|
|
2119
|
-
}), u = Array.from(e.querySelectorAll("*")).filter((e) =>
|
|
2120
|
-
let a =
|
|
2119
|
+
}), u = Array.from(e.querySelectorAll("*")).filter((e) => Bt(e).length || e.hasAttribute("aria-labelledby")).reduce((n, i) => {
|
|
2120
|
+
let a = Ht(e, i, { selector: r });
|
|
2121
2121
|
a.filter((e) => !!e.formControl).forEach((e) => {
|
|
2122
2122
|
c(e.content, e.formControl, t, l) && e.formControl && n.push(e.formControl);
|
|
2123
2123
|
});
|
|
@@ -2127,33 +2127,33 @@ var kn = function(e, t, n) {
|
|
|
2127
2127
|
let a = [...o];
|
|
2128
2128
|
a.splice(r, 1), a.length > 1 && c(a.join(" "), i, t, l) && n.push(i);
|
|
2129
2129
|
}), n;
|
|
2130
|
-
}, []).concat(
|
|
2130
|
+
}, []).concat(Sn("aria-label", e, t, {
|
|
2131
2131
|
exact: i,
|
|
2132
2132
|
normalizer: l
|
|
2133
2133
|
}));
|
|
2134
2134
|
return Array.from(new Set(u)).filter((e) => e.matches(r));
|
|
2135
2135
|
}, Y = function(e, t) {
|
|
2136
2136
|
var n = [...arguments].slice(2);
|
|
2137
|
-
let r =
|
|
2137
|
+
let r = kn(e, t, ...n);
|
|
2138
2138
|
if (!r.length) {
|
|
2139
|
-
let r =
|
|
2139
|
+
let r = On(e, t, ...n);
|
|
2140
2140
|
if (r.length) {
|
|
2141
|
-
let n = r.map((t) =>
|
|
2141
|
+
let n = r.map((t) => An(e, t)).filter((e) => !!e);
|
|
2142
2142
|
throw n.length ? B().getElementError(n.map((e) => "Found a label with the text of: " + t + ", however the element associated with this label (<" + e + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + e + " />, you can use aria-label or aria-labelledby instead.").join("\n\n"), e) : B().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);
|
|
2143
2143
|
} else throw B().getElementError("Unable to find a label with the text of: " + t, e);
|
|
2144
2144
|
}
|
|
2145
2145
|
return r;
|
|
2146
2146
|
};
|
|
2147
|
-
function
|
|
2147
|
+
function An(e, t) {
|
|
2148
2148
|
let n = t.getAttribute("for");
|
|
2149
2149
|
if (!n) return null;
|
|
2150
2150
|
let r = e.querySelector("[id=\"" + n + "\"]");
|
|
2151
2151
|
return r ? r.tagName.toLowerCase() : null;
|
|
2152
2152
|
}
|
|
2153
|
-
var
|
|
2153
|
+
var jn = (e, t) => "Found multiple elements with the text of: " + t, Mn = K(Cn(kn, jn), kn.name, "query"), Nn = Cn(Y, jn), Pn = En(q(Y, Y.name, "findAll")), Fn = En(K(Nn, Y.name, "find")), In = q(Y, Y.name, "getAll"), Ln = K(Nn, Y.name, "get"), Rn = q(kn, kn.name, "queryAll"), zn = function() {
|
|
2154
2154
|
var e = [...arguments];
|
|
2155
|
-
return L(e[0]),
|
|
2156
|
-
},
|
|
2155
|
+
return L(e[0]), Sn("placeholder", ...e);
|
|
2156
|
+
}, Bn = (e, t) => "Found multiple elements with the placeholder text of: " + t, Vn = (e, t) => "Unable to find an element with the placeholder text of: " + t, Hn = q(zn, zn.name, "queryAll"), [Un, Wn, Gn, Kn, qn] = J(zn, Bn, Vn), Jn = function(e, t, n) {
|
|
2157
2157
|
let { selector: r = "*", exact: i = !0, collapseWhitespace: a, trim: o, ignore: s = B().defaultIgnore, normalizer: c } = n === void 0 ? {} : n;
|
|
2158
2158
|
L(e);
|
|
2159
2159
|
let l = i ? H : V, u = U({
|
|
@@ -2161,8 +2161,8 @@ var Mn = (e, t) => "Found multiple elements with the text of: " + t, Nn = K(wn(A
|
|
|
2161
2161
|
trim: o,
|
|
2162
2162
|
normalizer: c
|
|
2163
2163
|
}), d = [];
|
|
2164
|
-
return typeof e.matches == "function" && e.matches(r) && (d = [e]), [...d, ...Array.from(e.querySelectorAll(r))].filter((e) => !s || !e.matches(s)).filter((e) => l(
|
|
2165
|
-
},
|
|
2164
|
+
return typeof e.matches == "function" && e.matches(r) && (d = [e]), [...d, ...Array.from(e.querySelectorAll(r))].filter((e) => !s || !e.matches(s)).filter((e) => l(Kt(e), e, t, u));
|
|
2165
|
+
}, Yn = (e, t) => "Found multiple elements with the text: " + t, Xn = function(e, t, n) {
|
|
2166
2166
|
n === void 0 && (n = {});
|
|
2167
2167
|
let { collapseWhitespace: r, trim: i, normalizer: a, selector: o } = n, s = U({
|
|
2168
2168
|
collapseWhitespace: r,
|
|
@@ -2170,7 +2170,7 @@ var Mn = (e, t) => "Found multiple elements with the text of: " + t, Nn = K(wn(A
|
|
|
2170
2170
|
normalizer: a
|
|
2171
2171
|
})(t.toString()), c = s !== t.toString(), l = (o ?? "*") !== "*";
|
|
2172
2172
|
return "Unable to find an element with the text: " + (c ? s + " (normalized from '" + t + "')" : t) + (l ? ", which matches selector '" + o + "'" : "") + ". 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.";
|
|
2173
|
-
},
|
|
2173
|
+
}, Zn = q(Jn, Jn.name, "queryAll"), [Qn, $n, er, tr, nr] = J(Jn, Yn, Xn), rr = function(e, t, n) {
|
|
2174
2174
|
let { exact: r = !0, collapseWhitespace: i, trim: a, normalizer: o } = n === void 0 ? {} : n;
|
|
2175
2175
|
L(e);
|
|
2176
2176
|
let s = r ? H : V, c = U({
|
|
@@ -2178,10 +2178,10 @@ var Mn = (e, t) => "Found multiple elements with the text of: " + t, Nn = K(wn(A
|
|
|
2178
2178
|
trim: a,
|
|
2179
2179
|
normalizer: o
|
|
2180
2180
|
});
|
|
2181
|
-
return Array.from(e.querySelectorAll("input,textarea,select")).filter((e) => e.tagName === "SELECT" ? Array.from(e.options).filter((e) => e.selected).some((e) => s(
|
|
2182
|
-
},
|
|
2183
|
-
return n === void 0 && (n = {}), L(e),
|
|
2184
|
-
},
|
|
2181
|
+
return Array.from(e.querySelectorAll("input,textarea,select")).filter((e) => e.tagName === "SELECT" ? Array.from(e.options).filter((e) => e.selected).some((e) => s(Kt(e), e, t, c)) : s(e.value, e, t, c));
|
|
2182
|
+
}, ir = (e, t) => "Found multiple elements with the display value: " + t + ".", ar = (e, t) => "Unable to find an element with the display value: " + t + ".", or = q(rr, rr.name, "queryAll"), [sr, cr, lr, ur, dr] = J(rr, ir, ar), fr = /^(img|input|area|.+-.+)$/i, pr = function(e, t, n) {
|
|
2183
|
+
return n === void 0 && (n = {}), L(e), Sn("alt", e, t, n).filter((e) => fr.test(e.tagName));
|
|
2184
|
+
}, mr = (e, t) => "Found multiple elements with the alt text: " + t, hr = (e, t) => "Unable to find an element with the alt text: " + t, gr = q(pr, pr.name, "queryAll"), [_r, vr, yr, br, xr] = J(pr, mr, hr), Sr = (e) => e.tagName.toLowerCase() === "title" && e.parentElement?.tagName.toLowerCase() === "svg", Cr = function(e, t, n) {
|
|
2185
2185
|
let { exact: r = !0, collapseWhitespace: i, trim: a, normalizer: o } = n === void 0 ? {} : n;
|
|
2186
2186
|
L(e);
|
|
2187
2187
|
let s = r ? H : V, c = U({
|
|
@@ -2189,8 +2189,8 @@ var Mn = (e, t) => "Found multiple elements with the text of: " + t, Nn = K(wn(A
|
|
|
2189
2189
|
trim: a,
|
|
2190
2190
|
normalizer: o
|
|
2191
2191
|
});
|
|
2192
|
-
return Array.from(e.querySelectorAll("[title], svg > title")).filter((e) => s(e.getAttribute("title"), e, t, c) ||
|
|
2193
|
-
},
|
|
2192
|
+
return Array.from(e.querySelectorAll("[title], svg > title")).filter((e) => s(e.getAttribute("title"), e, t, c) || Sr(e) && s(Kt(e), e, t, c));
|
|
2193
|
+
}, wr = (e, t) => "Found multiple elements with the title: " + t + ".", Tr = (e, t) => "Unable to find an element with the title: " + t + ".", Er = q(Cr, Cr.name, "queryAll"), [Dr, Or, kr, Ar, jr] = J(Cr, wr, Tr), Mr = function(e, t, n) {
|
|
2194
2194
|
let { hidden: r = B().defaultHidden, name: i, description: a, queryFallbacks: o = !1, selected: s, busy: c, checked: l, pressed: u, current: d, level: f, expanded: p, value: { now: m, min: h, max: g, text: _ } = {} } = n === void 0 ? {} : n;
|
|
2195
2195
|
if (L(e), s !== void 0 && I.roles.get(t)?.props["aria-selected"] === void 0) throw Error("\"aria-selected\" is not supported on role \"" + t + "\".");
|
|
2196
2196
|
if (c !== void 0 && I.roles.get(t)?.props["aria-busy"] === void 0) throw Error("\"aria-busy\" is not supported on role \"" + t + "\".");
|
|
@@ -2205,50 +2205,50 @@ var Mn = (e, t) => "Found multiple elements with the text of: " + t, Nn = K(wn(A
|
|
|
2205
2205
|
if (p !== void 0 && I.roles.get(t)?.props["aria-expanded"] === void 0) throw Error("\"aria-expanded\" is not supported on role \"" + t + "\".");
|
|
2206
2206
|
let v = /* @__PURE__ */ new WeakMap();
|
|
2207
2207
|
function y(e) {
|
|
2208
|
-
return v.has(e) || v.set(e,
|
|
2208
|
+
return v.has(e) || v.set(e, Jt(e)), v.get(e);
|
|
2209
2209
|
}
|
|
2210
|
-
return Array.from(e.querySelectorAll(
|
|
2210
|
+
return Array.from(e.querySelectorAll(Nr(t))).filter((e) => {
|
|
2211
2211
|
if (e.hasAttribute("role")) {
|
|
2212
2212
|
let n = e.getAttribute("role");
|
|
2213
2213
|
if (o) return n.split(" ").filter(Boolean).some((e) => e === t);
|
|
2214
2214
|
let [r] = n.split(" ");
|
|
2215
2215
|
return r === t;
|
|
2216
2216
|
}
|
|
2217
|
-
return
|
|
2217
|
+
return Xt(e).some((e) => e === t);
|
|
2218
2218
|
}).filter((e) => {
|
|
2219
|
-
if (s !== void 0) return s ===
|
|
2220
|
-
if (c !== void 0) return c ===
|
|
2221
|
-
if (l !== void 0) return l ===
|
|
2222
|
-
if (u !== void 0) return u ===
|
|
2223
|
-
if (d !== void 0) return d ===
|
|
2224
|
-
if (p !== void 0) return p ===
|
|
2225
|
-
if (f !== void 0) return f ===
|
|
2219
|
+
if (s !== void 0) return s === en(e);
|
|
2220
|
+
if (c !== void 0) return c === tn(e);
|
|
2221
|
+
if (l !== void 0) return l === nn(e);
|
|
2222
|
+
if (u !== void 0) return u === rn(e);
|
|
2223
|
+
if (d !== void 0) return d === an(e);
|
|
2224
|
+
if (p !== void 0) return p === on(e);
|
|
2225
|
+
if (f !== void 0) return f === cn(e);
|
|
2226
2226
|
if (m !== void 0 || g !== void 0 || h !== void 0 || _ !== void 0) {
|
|
2227
2227
|
let t = !0;
|
|
2228
|
-
return m !== void 0 && (t &&= m ===
|
|
2228
|
+
return m !== void 0 && (t &&= m === ln(e)), g !== void 0 && (t &&= g === un(e)), h !== void 0 && (t &&= h === dn(e)), _ !== void 0 && (t &&= H(fn(e) ?? null, e, _, (e) => e)), t;
|
|
2229
2229
|
}
|
|
2230
2230
|
return !0;
|
|
2231
|
-
}).filter((e) => i === void 0 ? !0 : H(
|
|
2231
|
+
}).filter((e) => i === void 0 ? !0 : H(Ze(e, { computedStyleSupportsPseudoElements: B().computedStyleSupportsPseudoElements }), e, i, (e) => e)).filter((e) => a === void 0 ? !0 : H(Ye(e, { computedStyleSupportsPseudoElements: B().computedStyleSupportsPseudoElements }), e, a, (e) => e)).filter((e) => r === !1 ? Yt(e, { isSubtreeInaccessible: y }) === !1 : !0);
|
|
2232
2232
|
};
|
|
2233
|
-
function
|
|
2233
|
+
function Nr(e) {
|
|
2234
2234
|
let t = "*[role~=\"" + e + "\"]", n = I.roleElements.get(e) ?? /* @__PURE__ */ new Set(), r = new Set(Array.from(n).map((e) => {
|
|
2235
2235
|
let { name: t } = e;
|
|
2236
2236
|
return t;
|
|
2237
2237
|
}));
|
|
2238
2238
|
return [t].concat(Array.from(r)).join(",");
|
|
2239
2239
|
}
|
|
2240
|
-
var
|
|
2240
|
+
var Pr = (e) => {
|
|
2241
2241
|
let t = "";
|
|
2242
2242
|
return t = e === void 0 ? "" : typeof e == "string" ? " and name \"" + e + "\"" : " and name `" + e + "`", t;
|
|
2243
|
-
},
|
|
2243
|
+
}, Fr = function(e, t, n) {
|
|
2244
2244
|
let { name: r } = n === void 0 ? {} : n;
|
|
2245
|
-
return "Found multiple elements with the role \"" + t + "\"" +
|
|
2246
|
-
},
|
|
2245
|
+
return "Found multiple elements with the role \"" + t + "\"" + Pr(r);
|
|
2246
|
+
}, Ir = function(e, t, n) {
|
|
2247
2247
|
let { hidden: r = B().defaultHidden, name: i, description: a } = n === void 0 ? {} : n;
|
|
2248
|
-
if (B()._disableExpensiveErrorDiagnostics) return "Unable to find role=\"" + t + "\"" +
|
|
2248
|
+
if (B()._disableExpensiveErrorDiagnostics) return "Unable to find role=\"" + t + "\"" + Pr(i);
|
|
2249
2249
|
let o = "";
|
|
2250
2250
|
Array.from(e.children).forEach((e) => {
|
|
2251
|
-
o +=
|
|
2251
|
+
o += $t(e, {
|
|
2252
2252
|
hidden: r,
|
|
2253
2253
|
includeDescription: a !== void 0
|
|
2254
2254
|
});
|
|
@@ -2259,64 +2259,64 @@ var Fr = (e) => {
|
|
|
2259
2259
|
c = i === void 0 ? "" : typeof i == "string" ? " and name \"" + i + "\"" : " and name `" + i + "`";
|
|
2260
2260
|
let l = "";
|
|
2261
2261
|
return l = a === void 0 ? "" : typeof a == "string" ? " and description \"" + a + "\"" : " and description `" + a + "`", ("\nUnable to find an " + (r === !1 ? "accessible " : "") + "element with the role \"" + t + "\"" + c + l + "\n\n" + s).trim();
|
|
2262
|
-
},
|
|
2262
|
+
}, Lr = q(Mr, Mr.name, "queryAll"), [Rr, zr, Br, Vr, Hr] = J(Mr, Fr, Ir), Ur = () => B().testIdAttribute, Wr = function() {
|
|
2263
2263
|
var e = [...arguments];
|
|
2264
|
-
return L(e[0]),
|
|
2265
|
-
},
|
|
2264
|
+
return L(e[0]), Sn(Ur(), ...e);
|
|
2265
|
+
}, Gr = (e, t) => "Found multiple elements by: [" + Ur() + "=\"" + t + "\"]", Kr = (e, t) => "Unable to find an element by: [" + Ur() + "=\"" + t + "\"]", qr = q(Wr, Wr.name, "queryAll"), [Jr, Yr, Xr, Zr, Qr] = J(Wr, Gr, Kr), $r = /* @__PURE__ */ Object.freeze({
|
|
2266
2266
|
__proto__: null,
|
|
2267
|
-
queryAllByLabelText:
|
|
2268
|
-
queryByLabelText:
|
|
2269
|
-
getAllByLabelText:
|
|
2270
|
-
getByLabelText:
|
|
2271
|
-
findAllByLabelText:
|
|
2272
|
-
findByLabelText:
|
|
2273
|
-
queryByPlaceholderText:
|
|
2274
|
-
queryAllByPlaceholderText:
|
|
2275
|
-
getByPlaceholderText:
|
|
2276
|
-
getAllByPlaceholderText:
|
|
2277
|
-
findAllByPlaceholderText:
|
|
2278
|
-
findByPlaceholderText:
|
|
2279
|
-
queryByText:
|
|
2280
|
-
queryAllByText:
|
|
2281
|
-
getByText:
|
|
2282
|
-
getAllByText:
|
|
2283
|
-
findAllByText:
|
|
2284
|
-
findByText:
|
|
2285
|
-
queryByDisplayValue:
|
|
2286
|
-
queryAllByDisplayValue:
|
|
2287
|
-
getByDisplayValue:
|
|
2288
|
-
getAllByDisplayValue:
|
|
2289
|
-
findAllByDisplayValue:
|
|
2290
|
-
findByDisplayValue:
|
|
2291
|
-
queryByAltText:
|
|
2292
|
-
queryAllByAltText:
|
|
2293
|
-
getByAltText:
|
|
2294
|
-
getAllByAltText:
|
|
2295
|
-
findAllByAltText:
|
|
2296
|
-
findByAltText:
|
|
2297
|
-
queryByTitle:
|
|
2298
|
-
queryAllByTitle:
|
|
2299
|
-
getByTitle:
|
|
2300
|
-
getAllByTitle:
|
|
2301
|
-
findAllByTitle:
|
|
2302
|
-
findByTitle:
|
|
2303
|
-
queryByRole:
|
|
2304
|
-
queryAllByRole:
|
|
2305
|
-
getAllByRole:
|
|
2306
|
-
getByRole:
|
|
2307
|
-
findAllByRole:
|
|
2308
|
-
findByRole:
|
|
2309
|
-
queryByTestId:
|
|
2310
|
-
queryAllByTestId:
|
|
2311
|
-
getByTestId:
|
|
2312
|
-
getAllByTestId:
|
|
2313
|
-
findAllByTestId:
|
|
2314
|
-
findByTestId:
|
|
2267
|
+
queryAllByLabelText: Rn,
|
|
2268
|
+
queryByLabelText: Mn,
|
|
2269
|
+
getAllByLabelText: In,
|
|
2270
|
+
getByLabelText: Ln,
|
|
2271
|
+
findAllByLabelText: Pn,
|
|
2272
|
+
findByLabelText: Fn,
|
|
2273
|
+
queryByPlaceholderText: Un,
|
|
2274
|
+
queryAllByPlaceholderText: Hn,
|
|
2275
|
+
getByPlaceholderText: Gn,
|
|
2276
|
+
getAllByPlaceholderText: Wn,
|
|
2277
|
+
findAllByPlaceholderText: Kn,
|
|
2278
|
+
findByPlaceholderText: qn,
|
|
2279
|
+
queryByText: Qn,
|
|
2280
|
+
queryAllByText: Zn,
|
|
2281
|
+
getByText: er,
|
|
2282
|
+
getAllByText: $n,
|
|
2283
|
+
findAllByText: tr,
|
|
2284
|
+
findByText: nr,
|
|
2285
|
+
queryByDisplayValue: sr,
|
|
2286
|
+
queryAllByDisplayValue: or,
|
|
2287
|
+
getByDisplayValue: lr,
|
|
2288
|
+
getAllByDisplayValue: cr,
|
|
2289
|
+
findAllByDisplayValue: ur,
|
|
2290
|
+
findByDisplayValue: dr,
|
|
2291
|
+
queryByAltText: _r,
|
|
2292
|
+
queryAllByAltText: gr,
|
|
2293
|
+
getByAltText: yr,
|
|
2294
|
+
getAllByAltText: vr,
|
|
2295
|
+
findAllByAltText: br,
|
|
2296
|
+
findByAltText: xr,
|
|
2297
|
+
queryByTitle: Dr,
|
|
2298
|
+
queryAllByTitle: Er,
|
|
2299
|
+
getByTitle: kr,
|
|
2300
|
+
getAllByTitle: Or,
|
|
2301
|
+
findAllByTitle: Ar,
|
|
2302
|
+
findByTitle: jr,
|
|
2303
|
+
queryByRole: Rr,
|
|
2304
|
+
queryAllByRole: Lr,
|
|
2305
|
+
getAllByRole: zr,
|
|
2306
|
+
getByRole: Br,
|
|
2307
|
+
findAllByRole: Vr,
|
|
2308
|
+
findByRole: Hr,
|
|
2309
|
+
queryByTestId: Jr,
|
|
2310
|
+
queryAllByTestId: qr,
|
|
2311
|
+
getByTestId: Xr,
|
|
2312
|
+
getAllByTestId: Yr,
|
|
2313
|
+
findAllByTestId: Zr,
|
|
2314
|
+
findByTestId: Qr
|
|
2315
2315
|
});
|
|
2316
|
-
function
|
|
2317
|
-
return t === void 0 && (t =
|
|
2316
|
+
function ei(e, t, n) {
|
|
2317
|
+
return t === void 0 && (t = $r), n === void 0 && (n = {}), Object.keys(t).reduce((n, r) => (n[r] = t[r].bind(null, e), n), n);
|
|
2318
2318
|
}
|
|
2319
|
-
var
|
|
2319
|
+
var ti = {
|
|
2320
2320
|
copy: {
|
|
2321
2321
|
EventType: "ClipboardEvent",
|
|
2322
2322
|
defaultInit: {
|
|
@@ -2996,7 +2996,7 @@ var ni = {
|
|
|
2996
2996
|
cancelable: !0
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
|
-
},
|
|
2999
|
+
}, ni = { doubleClick: "dblClick" };
|
|
3000
3000
|
function X(e, t) {
|
|
3001
3001
|
return B().eventWrapper(() => {
|
|
3002
3002
|
if (!t) throw Error("Unable to fire an event - please provide an event object.");
|
|
@@ -3004,20 +3004,20 @@ function X(e, t) {
|
|
|
3004
3004
|
return e.dispatchEvent(t);
|
|
3005
3005
|
});
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function ri(e, t, n, r) {
|
|
3008
3008
|
let { EventType: i = "Event", defaultInit: a = {} } = r === void 0 ? {} : r;
|
|
3009
3009
|
if (!t) throw Error("Unable to fire a \"" + e + "\" event - please provide a DOM element.");
|
|
3010
3010
|
let o = {
|
|
3011
3011
|
...a,
|
|
3012
3012
|
...n
|
|
3013
3013
|
}, { target: { value: s, files: c, ...l } = {} } = o;
|
|
3014
|
-
s !== void 0 &&
|
|
3014
|
+
s !== void 0 && ii(t, s), c !== void 0 && Object.defineProperty(t, "files", {
|
|
3015
3015
|
configurable: !0,
|
|
3016
3016
|
enumerable: !0,
|
|
3017
3017
|
writable: !0,
|
|
3018
3018
|
value: c
|
|
3019
3019
|
}), Object.assign(t, l);
|
|
3020
|
-
let u =
|
|
3020
|
+
let u = Ot(t), d = u[i] || u.Event, f;
|
|
3021
3021
|
/* istanbul ignore else */
|
|
3022
3022
|
if (typeof d == "function") f = new d(e, o);
|
|
3023
3023
|
else {
|
|
@@ -3032,38 +3032,38 @@ function ii(e, t, n, r) {
|
|
|
3032
3032
|
typeof t == "object" && (typeof u.DataTransfer == "function" ? Object.defineProperty(f, e, { value: Object.getOwnPropertyNames(t).reduce((e, n) => (Object.defineProperty(e, n, { value: t[n] }), e), new u.DataTransfer()) }) : Object.defineProperty(f, e, { value: t }));
|
|
3033
3033
|
}), f;
|
|
3034
3034
|
}
|
|
3035
|
-
Object.keys(
|
|
3036
|
-
let { EventType: t, defaultInit: n } =
|
|
3037
|
-
|
|
3035
|
+
Object.keys(ti).forEach((e) => {
|
|
3036
|
+
let { EventType: t, defaultInit: n } = ti[e], r = e.toLowerCase();
|
|
3037
|
+
ri[e] = (e, i) => ri(r, e, i, {
|
|
3038
3038
|
EventType: t,
|
|
3039
3039
|
defaultInit: n
|
|
3040
|
-
}), X[e] = (t, n) => X(t,
|
|
3040
|
+
}), X[e] = (t, n) => X(t, ri[e](t, n));
|
|
3041
3041
|
});
|
|
3042
|
-
function
|
|
3043
|
-
let { set: n } = Object.getOwnPropertyDescriptor(e, "value") || {},
|
|
3044
|
-
if (
|
|
3042
|
+
function ii(e, t) {
|
|
3043
|
+
let { set: n } = Object.getOwnPropertyDescriptor(e, "value") || {}, { set: r } = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), "value") || {};
|
|
3044
|
+
if (r && n !== r) r.call(e, t);
|
|
3045
3045
|
else if (n) n.call(e, t);
|
|
3046
3046
|
else throw Error("The given element does not have a value setter");
|
|
3047
3047
|
}
|
|
3048
|
-
Object.keys(
|
|
3049
|
-
let t =
|
|
3048
|
+
Object.keys(ni).forEach((e) => {
|
|
3049
|
+
let t = ni[e];
|
|
3050
3050
|
X[e] = function() {
|
|
3051
3051
|
return X[t](...arguments);
|
|
3052
3052
|
};
|
|
3053
3053
|
});
|
|
3054
|
-
function
|
|
3054
|
+
function ai(e) {
|
|
3055
3055
|
return e.replace(/[ \t]*[\n][ \t]*/g, "\n");
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3058
|
-
return
|
|
3057
|
+
function oi(e) {
|
|
3058
|
+
return et.default.compressToEncodedURIComponent(ai(e));
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3061
|
-
return "https://testing-playground.com/#markup=" +
|
|
3060
|
+
function si(e) {
|
|
3061
|
+
return "https://testing-playground.com/#markup=" + oi(e);
|
|
3062
3062
|
}
|
|
3063
|
-
var
|
|
3064
|
-
debug: (e, t, n) => Array.isArray(e) ? e.forEach((e) =>
|
|
3063
|
+
var ci = {
|
|
3064
|
+
debug: (e, t, n) => Array.isArray(e) ? e.forEach((e) => Pt(e, t, n)) : Pt(e, t, n),
|
|
3065
3065
|
logTestingPlaygroundURL: function(e) {
|
|
3066
|
-
if (e === void 0 && (e =
|
|
3066
|
+
if (e === void 0 && (e = Dt().body), !e || !("innerHTML" in e)) {
|
|
3067
3067
|
console.log("The element you're providing isn't a valid DOM element.");
|
|
3068
3068
|
return;
|
|
3069
3069
|
}
|
|
@@ -3071,13 +3071,13 @@ var li = {
|
|
|
3071
3071
|
console.log("The provided element doesn't have any children.");
|
|
3072
3072
|
return;
|
|
3073
3073
|
}
|
|
3074
|
-
let t =
|
|
3074
|
+
let t = si(e.innerHTML);
|
|
3075
3075
|
return console.log("Open this URL in your browser\n\n" + t), t;
|
|
3076
3076
|
}
|
|
3077
|
-
},
|
|
3077
|
+
}, li = typeof document < "u" && document.body ? ei(document.body, $r, ci) : Object.keys($r).reduce((e, t) => (e[t] = () => {
|
|
3078
3078
|
throw TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error");
|
|
3079
|
-
}, e),
|
|
3080
|
-
function
|
|
3079
|
+
}, e), ci), ui = /* @__PURE__ */ e(r()), di = /* @__PURE__ */ e(i()), fi = typeof a.act == "function" ? a.act : ui.act;
|
|
3080
|
+
function pi() {
|
|
3081
3081
|
/* istanbul ignore else */
|
|
3082
3082
|
if (typeof globalThis < "u") return globalThis;
|
|
3083
3083
|
/* istanbul ignore next */
|
|
@@ -3090,14 +3090,14 @@ function mi() {
|
|
|
3090
3090
|
throw Error("unable to locate global object");
|
|
3091
3091
|
}
|
|
3092
3092
|
function Z(e) {
|
|
3093
|
-
|
|
3093
|
+
pi().IS_REACT_ACT_ENVIRONMENT = e;
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3096
|
-
return
|
|
3095
|
+
function mi() {
|
|
3096
|
+
return pi().IS_REACT_ACT_ENVIRONMENT;
|
|
3097
3097
|
}
|
|
3098
|
-
function
|
|
3098
|
+
function hi(e) {
|
|
3099
3099
|
return (t) => {
|
|
3100
|
-
let n =
|
|
3100
|
+
let n = mi();
|
|
3101
3101
|
Z(!0);
|
|
3102
3102
|
try {
|
|
3103
3103
|
let r = !1, i = e(() => {
|
|
@@ -3119,41 +3119,41 @@ function gi(e) {
|
|
|
3119
3119
|
}
|
|
3120
3120
|
};
|
|
3121
3121
|
}
|
|
3122
|
-
var Q =
|
|
3122
|
+
var Q = hi(fi), $ = (...e) => X(...e);
|
|
3123
3123
|
Object.keys(X).forEach((e) => {
|
|
3124
3124
|
$[e] = (...t) => X[e](...t);
|
|
3125
3125
|
});
|
|
3126
|
-
var
|
|
3127
|
-
$.mouseEnter = (...e) => (
|
|
3128
|
-
var
|
|
3129
|
-
$.pointerEnter = (...e) => (
|
|
3130
|
-
var
|
|
3126
|
+
var gi = $.mouseEnter, _i = $.mouseLeave;
|
|
3127
|
+
$.mouseEnter = (...e) => (gi(...e), $.mouseOver(...e)), $.mouseLeave = (...e) => (_i(...e), $.mouseOut(...e));
|
|
3128
|
+
var vi = $.pointerEnter, yi = $.pointerLeave;
|
|
3129
|
+
$.pointerEnter = (...e) => (vi(...e), $.pointerOver(...e)), $.pointerLeave = (...e) => (yi(...e), $.pointerOut(...e));
|
|
3130
|
+
var bi = $.select;
|
|
3131
3131
|
$.select = (e, t) => {
|
|
3132
|
-
|
|
3132
|
+
bi(e, t), e.focus(), $.keyUp(e, t);
|
|
3133
3133
|
};
|
|
3134
|
-
var
|
|
3135
|
-
$.blur = (...e) => ($.focusOut(...e),
|
|
3136
|
-
var
|
|
3137
|
-
function
|
|
3134
|
+
var xi = $.blur, Si = $.focus;
|
|
3135
|
+
$.blur = (...e) => ($.focusOut(...e), xi(...e)), $.focus = (...e) => ($.focusIn(...e), Si(...e));
|
|
3136
|
+
var Ci = { reactStrictMode: !1 };
|
|
3137
|
+
function wi() {
|
|
3138
3138
|
return {
|
|
3139
3139
|
...B(),
|
|
3140
|
-
...
|
|
3140
|
+
...Ci
|
|
3141
3141
|
};
|
|
3142
3142
|
}
|
|
3143
|
-
function
|
|
3143
|
+
function Ti() {
|
|
3144
3144
|
return typeof jest < "u" && jest !== null ? setTimeout._isMockFunction === !0 || Object.prototype.hasOwnProperty.call(setTimeout, "clock") : !1;
|
|
3145
3145
|
}
|
|
3146
|
-
|
|
3146
|
+
It({
|
|
3147
3147
|
unstable_advanceTimersWrapper: (e) => Q(e),
|
|
3148
3148
|
asyncWrapper: async (e) => {
|
|
3149
|
-
let t =
|
|
3149
|
+
let t = mi();
|
|
3150
3150
|
Z(!1);
|
|
3151
3151
|
try {
|
|
3152
3152
|
let t = await e();
|
|
3153
3153
|
return await new Promise((e) => {
|
|
3154
3154
|
setTimeout(() => {
|
|
3155
3155
|
e();
|
|
3156
|
-
}, 0),
|
|
3156
|
+
}, 0), Ti() && jest.advanceTimersByTime(0);
|
|
3157
3157
|
}), t;
|
|
3158
3158
|
} finally {
|
|
3159
3159
|
Z(t);
|
|
@@ -3166,21 +3166,21 @@ Lt({
|
|
|
3166
3166
|
}), t;
|
|
3167
3167
|
}
|
|
3168
3168
|
});
|
|
3169
|
-
var
|
|
3170
|
-
function
|
|
3171
|
-
return t ??
|
|
3169
|
+
var Ei = /* @__PURE__ */ new Set(), Di = [];
|
|
3170
|
+
function Oi(e, t) {
|
|
3171
|
+
return t ?? wi().reactStrictMode ? /* @__PURE__ */ a.createElement(a.StrictMode, null, e) : e;
|
|
3172
3172
|
}
|
|
3173
|
-
function
|
|
3173
|
+
function ki(e, t) {
|
|
3174
3174
|
return t ? /* @__PURE__ */ a.createElement(t, null, e) : e;
|
|
3175
3175
|
}
|
|
3176
|
-
function
|
|
3176
|
+
function Ai(e, { hydrate: t, onCaughtError: n, onRecoverableError: r, ui: i, wrapper: a, reactStrictMode: o }) {
|
|
3177
3177
|
let s;
|
|
3178
3178
|
return t ? Q(() => {
|
|
3179
|
-
s =
|
|
3179
|
+
s = di.hydrateRoot(e, Oi(ki(i, a), o), {
|
|
3180
3180
|
onCaughtError: n,
|
|
3181
3181
|
onRecoverableError: r
|
|
3182
3182
|
});
|
|
3183
|
-
}) : s =
|
|
3183
|
+
}) : s = di.createRoot(e, {
|
|
3184
3184
|
onCaughtError: n,
|
|
3185
3185
|
onRecoverableError: r
|
|
3186
3186
|
}), {
|
|
@@ -3196,7 +3196,7 @@ function ji(e, { hydrate: t, onCaughtError: n, onRecoverableError: r, ui: i, wra
|
|
|
3196
3196
|
}
|
|
3197
3197
|
};
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3199
|
+
function ji(e) {
|
|
3200
3200
|
return {
|
|
3201
3201
|
hydrate(t) {
|
|
3202
3202
|
o.hydrate(t, e);
|
|
@@ -3209,9 +3209,9 @@ function Mi(e) {
|
|
|
3209
3209
|
}
|
|
3210
3210
|
};
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3212
|
+
function Mi(e, { baseElement: t, container: n, hydrate: r, queries: i, root: a, wrapper: o, reactStrictMode: s }) {
|
|
3213
3213
|
return Q(() => {
|
|
3214
|
-
r ? a.hydrate(ki(
|
|
3214
|
+
r ? a.hydrate(Oi(ki(e, o), s), n) : a.render(Oi(ki(e, o), s), n);
|
|
3215
3215
|
}), {
|
|
3216
3216
|
container: n,
|
|
3217
3217
|
baseElement: t,
|
|
@@ -3222,7 +3222,7 @@ function Ni(e, { baseElement: t, container: n, hydrate: r, queries: i, root: a,
|
|
|
3222
3222
|
});
|
|
3223
3223
|
},
|
|
3224
3224
|
rerender: (e) => {
|
|
3225
|
-
|
|
3225
|
+
Mi(e, {
|
|
3226
3226
|
container: n,
|
|
3227
3227
|
baseElement: t,
|
|
3228
3228
|
root: a,
|
|
@@ -3238,31 +3238,31 @@ function Ni(e, { baseElement: t, container: n, hydrate: r, queries: i, root: a,
|
|
|
3238
3238
|
return e.innerHTML = n.innerHTML, e.content;
|
|
3239
3239
|
}
|
|
3240
3240
|
},
|
|
3241
|
-
...
|
|
3241
|
+
...ei(t, i)
|
|
3242
3242
|
};
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3244
|
+
function Ni(e, { container: t, baseElement: n = t, legacyRoot: r = !1, onCaughtError: i, onUncaughtError: a, onRecoverableError: s, queries: c, hydrate: l = !1, wrapper: u, reactStrictMode: d } = {}) {
|
|
3245
3245
|
if (a !== void 0) throw Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");
|
|
3246
3246
|
if (r && typeof o.render != "function") {
|
|
3247
3247
|
let e = /* @__PURE__ */ 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.");
|
|
3248
|
-
throw Error.captureStackTrace(e,
|
|
3248
|
+
throw Error.captureStackTrace(e, Ni), e;
|
|
3249
3249
|
}
|
|
3250
3250
|
n ||= document.body, t ||= n.appendChild(document.createElement("div"));
|
|
3251
3251
|
let f;
|
|
3252
|
-
return
|
|
3252
|
+
return Ei.has(t) ? Di.forEach((e) => {
|
|
3253
3253
|
/* istanbul ignore else */
|
|
3254
3254
|
e.container === t && (f = e.root);
|
|
3255
|
-
}) : (f = (r ?
|
|
3255
|
+
}) : (f = (r ? ji : Ai)(t, {
|
|
3256
3256
|
hydrate: l,
|
|
3257
3257
|
onCaughtError: i,
|
|
3258
3258
|
onRecoverableError: s,
|
|
3259
3259
|
ui: e,
|
|
3260
3260
|
wrapper: u,
|
|
3261
3261
|
reactStrictMode: d
|
|
3262
|
-
}),
|
|
3262
|
+
}), Di.push({
|
|
3263
3263
|
container: t,
|
|
3264
3264
|
root: f
|
|
3265
|
-
}),
|
|
3265
|
+
}), Ei.add(t)), Mi(e, {
|
|
3266
3266
|
container: t,
|
|
3267
3267
|
baseElement: n,
|
|
3268
3268
|
queries: c,
|
|
@@ -3272,26 +3272,26 @@ function Pi(e, { container: t, baseElement: n = t, legacyRoot: r = !1, onCaughtE
|
|
|
3272
3272
|
reactStrictMode: d
|
|
3273
3273
|
});
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3276
|
-
|
|
3275
|
+
function Pi() {
|
|
3276
|
+
Di.forEach(({ root: e, container: t }) => {
|
|
3277
3277
|
Q(() => {
|
|
3278
3278
|
e.unmount();
|
|
3279
3279
|
}), t.parentNode === document.body && document.body.removeChild(t);
|
|
3280
|
-
}),
|
|
3280
|
+
}), Di.length = 0, Ei.clear();
|
|
3281
3281
|
}
|
|
3282
3282
|
if ((typeof process > "u" || !process.env?.RTL_SKIP_AUTO_CLEANUP) && (typeof afterEach == "function" ? afterEach(() => {
|
|
3283
|
-
|
|
3283
|
+
Pi();
|
|
3284
3284
|
}) : typeof teardown == "function" && teardown(() => {
|
|
3285
|
-
|
|
3285
|
+
Pi();
|
|
3286
3286
|
}), typeof beforeAll == "function" && typeof afterAll == "function")) {
|
|
3287
|
-
let e =
|
|
3287
|
+
let e = mi();
|
|
3288
3288
|
beforeAll(() => {
|
|
3289
|
-
e =
|
|
3289
|
+
e = mi(), Z(!0);
|
|
3290
3290
|
}), afterAll(() => {
|
|
3291
3291
|
Z(e);
|
|
3292
3292
|
});
|
|
3293
3293
|
}
|
|
3294
3294
|
//#endregion
|
|
3295
|
-
export {
|
|
3295
|
+
export { yn as a, li as i, Ni as n, B as r, $ as t };
|
|
3296
3296
|
|
|
3297
|
-
//# sourceMappingURL=react.esm-
|
|
3297
|
+
//# sourceMappingURL=react.esm-CzIhAqlo.js.map
|