@arcadeai/design-system 2.1.0 → 2.3.0
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/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/components/index.js +211 -209
- package/dist/components/ui/atoms/icons/index.d.ts +1 -0
- package/dist/components/ui/atoms/icons/index.js +94 -92
- package/dist/components/ui/atoms/icons/mongodb.d.ts +3 -0
- package/dist/components/ui/atoms/icons/mongodb.js +39 -0
- package/dist/components/ui/atoms/index.js +187 -185
- package/dist/components/ui/index.js +211 -209
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/tool-card.js +24 -24
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-selection-summary.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.d.ts +6 -0
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.js +54 -0
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.d.ts +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.js +92 -0
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +52 -18
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts +6 -0
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +90 -0
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts +6 -0
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +97 -0
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +105 -302
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +642 -622
- package/dist/main.js +218 -216
- package/dist/metadata/toolkits.js +98 -82
- package/dist/{toolkit-card-DgjPGtsJ.js → toolkit-card-BWuG_NJi.js} +27 -27
- package/package.json +4 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
|
-
import { ToolkitPickerTrigger as
|
|
3
|
-
import { c as Mo, e as Ko, g as v, d as Sc, a as Mc, i as
|
|
4
|
-
import { g as
|
|
5
|
-
import { ToolkitPicker as
|
|
6
|
-
import { createMockToolkitCollection as Nc, mockToolkitCollection as
|
|
2
|
+
import { ToolkitPickerTrigger as D } from "../../molecules/toolkit-picker-trigger.js";
|
|
3
|
+
import { c as Mo, e as Ko, g as v, d as Sc, a as Mc, i as $, v as pe } from "../../../../vi.bdSIJ99Y-Bs-viS39.js";
|
|
4
|
+
import { g as xe, b as H, s as u, c as N, w as fe, d as Ac } from "../../../../react.esm-DUaR5u-J.js";
|
|
5
|
+
import { ToolkitPicker as L } from "./index.js";
|
|
6
|
+
import { createMockToolkitCollection as Nc, mockToolkitCollection as F } from "./mocks/toolkit-collection.js";
|
|
7
7
|
var fo, zo;
|
|
8
8
|
function Dc() {
|
|
9
9
|
return zo || (zo = 1, fo = (e) => {
|
|
@@ -174,12 +174,12 @@ const Vc = (e, t) => {
|
|
|
174
174
|
}
|
|
175
175
|
function c(p) {
|
|
176
176
|
const b = p[0];
|
|
177
|
-
return (function(
|
|
178
|
-
const E =
|
|
177
|
+
return (function(k) {
|
|
178
|
+
const E = k.match(/\n/g);
|
|
179
179
|
E && (r += E.length);
|
|
180
|
-
const I =
|
|
180
|
+
const I = k.lastIndexOf(`
|
|
181
181
|
`);
|
|
182
|
-
n = ~I ?
|
|
182
|
+
n = ~I ? k.length - I : n + k.length;
|
|
183
183
|
})(b), e = e.slice(b.length), p;
|
|
184
184
|
}
|
|
185
185
|
function R() {
|
|
@@ -201,11 +201,11 @@ const Vc = (e, t) => {
|
|
|
201
201
|
function O() {
|
|
202
202
|
const p = /^([^{]+)/.exec(e);
|
|
203
203
|
if (p)
|
|
204
|
-
return c(p), ((b,
|
|
204
|
+
return c(p), ((b, k) => {
|
|
205
205
|
const E = [];
|
|
206
206
|
let I = 0;
|
|
207
207
|
for (; I < b.length; ) {
|
|
208
|
-
const A = qo(b,
|
|
208
|
+
const A = qo(b, k, I);
|
|
209
209
|
if (A === -1) return E.push(b.substring(I)), E;
|
|
210
210
|
E.push(b.substring(I, A)), I = A + 1;
|
|
211
211
|
}
|
|
@@ -216,16 +216,16 @@ const Vc = (e, t) => {
|
|
|
216
216
|
const p = o(), b = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);
|
|
217
217
|
if (!b) return;
|
|
218
218
|
c(b);
|
|
219
|
-
const
|
|
219
|
+
const k = ee(b[0]), E = /^:\s*/.exec(e);
|
|
220
220
|
if (!E) return a("property missing ':'");
|
|
221
221
|
c(E);
|
|
222
222
|
let I = "";
|
|
223
223
|
const A = qo(e, [";", "}"]);
|
|
224
224
|
A !== -1 && (I = e.substring(0, A), c([I]), I = ee(I).replace(vo, ""));
|
|
225
|
-
const G = p({ type: W.declaration, property:
|
|
226
|
-
return
|
|
225
|
+
const G = p({ type: W.declaration, property: k.replace(vo, ""), value: I }), V = /^[;\s]*/.exec(e);
|
|
226
|
+
return V && c(V), G;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function _() {
|
|
229
229
|
const p = [];
|
|
230
230
|
if (!s()) return a("missing '{'");
|
|
231
231
|
f(p);
|
|
@@ -235,59 +235,59 @@ const Vc = (e, t) => {
|
|
|
235
235
|
}
|
|
236
236
|
function d() {
|
|
237
237
|
const p = [], b = o();
|
|
238
|
-
let
|
|
239
|
-
for (;
|
|
240
|
-
const E = c(
|
|
238
|
+
let k = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);
|
|
239
|
+
for (; k; ) {
|
|
240
|
+
const E = c(k);
|
|
241
241
|
p.push(E[1]);
|
|
242
242
|
const I = /^,\s*/.exec(e);
|
|
243
|
-
I && c(I),
|
|
243
|
+
I && c(I), k = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);
|
|
244
244
|
}
|
|
245
|
-
if (p.length) return b({ type: W.keyframe, values: p, declarations:
|
|
245
|
+
if (p.length) return b({ type: W.keyframe, values: p, declarations: _() || [] });
|
|
246
246
|
}
|
|
247
|
-
const
|
|
247
|
+
const x = m("import"), B = m("charset"), P = m("namespace");
|
|
248
248
|
function m(p) {
|
|
249
249
|
const b = new RegExp("^@" + p + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);
|
|
250
250
|
return () => {
|
|
251
|
-
const
|
|
251
|
+
const k = o(), E = b.exec(e);
|
|
252
252
|
if (!E) return;
|
|
253
253
|
const I = c(E), A = { type: p };
|
|
254
|
-
return A[p] = I[1].trim(),
|
|
254
|
+
return A[p] = I[1].trim(), k(A);
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
257
|
function g() {
|
|
258
258
|
if (e[0] === "@") return (function() {
|
|
259
259
|
const p = o(), b = /^@([-\w]+)?keyframes\s*/.exec(e);
|
|
260
260
|
if (!b) return;
|
|
261
|
-
const
|
|
261
|
+
const k = c(b)[1], E = /^([-\w]+)\s*/.exec(e);
|
|
262
262
|
if (!E) return a("@keyframes missing name");
|
|
263
263
|
const I = c(E)[1];
|
|
264
264
|
if (!s()) return a("@keyframes missing '{'");
|
|
265
265
|
let A = f(), G = d();
|
|
266
266
|
for (; G; ) A.push(G), A = A.concat(f()), G = d();
|
|
267
|
-
return l() ? p({ type: W.keyframes, name: I, vendor:
|
|
267
|
+
return l() ? p({ type: W.keyframes, name: I, vendor: k, keyframes: A }) : a("@keyframes missing '}'");
|
|
268
268
|
})() || (function() {
|
|
269
269
|
const p = o(), b = /^@media *([^{]+)/.exec(e);
|
|
270
270
|
if (!b) return;
|
|
271
|
-
const
|
|
271
|
+
const k = ee(c(b)[1]);
|
|
272
272
|
if (!s()) return a("@media missing '{'");
|
|
273
273
|
const E = f().concat(h());
|
|
274
|
-
return l() ? p({ type: W.media, media:
|
|
274
|
+
return l() ? p({ type: W.media, media: k, rules: E }) : a("@media missing '}'");
|
|
275
275
|
})() || (function() {
|
|
276
276
|
const p = o(), b = /^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(e);
|
|
277
277
|
if (!b) return;
|
|
278
|
-
const
|
|
279
|
-
return p({ type: W.customMedia, name: ee(
|
|
278
|
+
const k = c(b);
|
|
279
|
+
return p({ type: W.customMedia, name: ee(k[1]), media: ee(k[2]) });
|
|
280
280
|
})() || (function() {
|
|
281
281
|
const p = o(), b = /^@supports *([^{]+)/.exec(e);
|
|
282
282
|
if (!b) return;
|
|
283
|
-
const
|
|
283
|
+
const k = ee(c(b)[1]);
|
|
284
284
|
if (!s()) return a("@supports missing '{'");
|
|
285
285
|
const E = f().concat(h());
|
|
286
|
-
return l() ? p({ type: W.supports, supports:
|
|
287
|
-
})() ||
|
|
286
|
+
return l() ? p({ type: W.supports, supports: k, rules: E }) : a("@supports missing '}'");
|
|
287
|
+
})() || x() || B() || P() || (function() {
|
|
288
288
|
const p = o(), b = /^@([-\w]+)?document *([^{]+)/.exec(e);
|
|
289
289
|
if (!b) return;
|
|
290
|
-
const
|
|
290
|
+
const k = c(b), E = ee(k[1]), I = ee(k[2]);
|
|
291
291
|
if (!s()) return a("@document missing '{'");
|
|
292
292
|
const A = f().concat(h());
|
|
293
293
|
return l() ? p({ type: W.document, document: I, vendor: E, rules: A }) : a("@document missing '}'");
|
|
@@ -295,52 +295,52 @@ const Vc = (e, t) => {
|
|
|
295
295
|
const p = o(), b = /^@page */.exec(e);
|
|
296
296
|
if (!b) return;
|
|
297
297
|
c(b);
|
|
298
|
-
const
|
|
298
|
+
const k = O() || [];
|
|
299
299
|
if (!s()) return a("@page missing '{'");
|
|
300
300
|
let E = f(), I = q();
|
|
301
301
|
for (; I; ) E.push(I), E = E.concat(f()), I = q();
|
|
302
|
-
return l() ? p({ type: W.page, selectors:
|
|
302
|
+
return l() ? p({ type: W.page, selectors: k, declarations: E }) : a("@page missing '}'");
|
|
303
303
|
})() || (function() {
|
|
304
304
|
const p = o(), b = /^@host\s*/.exec(e);
|
|
305
305
|
if (!b) return;
|
|
306
306
|
if (c(b), !s()) return a("@host missing '{'");
|
|
307
|
-
const
|
|
308
|
-
return l() ? p({ type: W.host, rules:
|
|
307
|
+
const k = f().concat(h());
|
|
308
|
+
return l() ? p({ type: W.host, rules: k }) : a("@host missing '}'");
|
|
309
309
|
})() || (function() {
|
|
310
310
|
const p = o(), b = /^@font-face\s*/.exec(e);
|
|
311
311
|
if (!b) return;
|
|
312
312
|
if (c(b), !s()) return a("@font-face missing '{'");
|
|
313
|
-
let
|
|
314
|
-
for (; E; )
|
|
315
|
-
return l() ? p({ type: W.fontFace, declarations:
|
|
313
|
+
let k = f(), E = q();
|
|
314
|
+
for (; E; ) k.push(E), k = k.concat(f()), E = q();
|
|
315
|
+
return l() ? p({ type: W.fontFace, declarations: k }) : a("@font-face missing '}'");
|
|
316
316
|
})() || (function() {
|
|
317
317
|
const p = o(), b = /^@container *([^{]+)/.exec(e);
|
|
318
318
|
if (!b) return;
|
|
319
|
-
const
|
|
319
|
+
const k = ee(c(b)[1]);
|
|
320
320
|
if (!s()) return a("@container missing '{'");
|
|
321
321
|
const E = f().concat(h());
|
|
322
|
-
return l() ? p({ type: W.container, container:
|
|
322
|
+
return l() ? p({ type: W.container, container: k, rules: E }) : a("@container missing '}'");
|
|
323
323
|
})() || (function() {
|
|
324
324
|
const p = o(), b = /^@starting-style\s*/.exec(e);
|
|
325
325
|
if (!b) return;
|
|
326
326
|
if (c(b), !s()) return a("@starting-style missing '{'");
|
|
327
|
-
const
|
|
328
|
-
return l() ? p({ type: W.startingStyle, rules:
|
|
327
|
+
const k = f().concat(h());
|
|
328
|
+
return l() ? p({ type: W.startingStyle, rules: k }) : a("@starting-style missing '}'");
|
|
329
329
|
})() || (function() {
|
|
330
330
|
const p = o(), b = /^@layer *([^{;@]+)/.exec(e);
|
|
331
331
|
if (!b) return;
|
|
332
|
-
const
|
|
332
|
+
const k = ee(c(b)[1]);
|
|
333
333
|
if (!s()) {
|
|
334
334
|
const I = /^[;\s]*/.exec(e);
|
|
335
|
-
return I && c(I), p({ type: W.layer, layer:
|
|
335
|
+
return I && c(I), p({ type: W.layer, layer: k });
|
|
336
336
|
}
|
|
337
337
|
const E = f().concat(h());
|
|
338
|
-
return l() ? p({ type: W.layer, layer:
|
|
338
|
+
return l() ? p({ type: W.layer, layer: k, rules: E }) : a("@layer missing '}'");
|
|
339
339
|
})();
|
|
340
340
|
}
|
|
341
341
|
function y() {
|
|
342
342
|
const p = o(), b = O();
|
|
343
|
-
return b ? (f(), p({ type: W.rule, selectors: b, declarations:
|
|
343
|
+
return b ? (f(), p({ type: W.rule, selectors: b, declarations: _() || [] })) : a("selector missing");
|
|
344
344
|
}
|
|
345
345
|
return wo((function() {
|
|
346
346
|
const p = h();
|
|
@@ -551,14 +551,14 @@ function id(e, t) {
|
|
|
551
551
|
return e.hasAttribute(r) && !((n = od[t]) !== null && n !== void 0 && n.has(r));
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function kl(e, t) {
|
|
555
555
|
return id(e, t);
|
|
556
556
|
}
|
|
557
557
|
function ad(e) {
|
|
558
558
|
var t = ld(e);
|
|
559
|
-
if (t === null ||
|
|
559
|
+
if (t === null || ko.indexOf(t) !== -1) {
|
|
560
560
|
var r = sd(e);
|
|
561
|
-
if (
|
|
561
|
+
if (ko.indexOf(t || "") === -1 || kl(e, r || ""))
|
|
562
562
|
return r;
|
|
563
563
|
}
|
|
564
564
|
return t;
|
|
@@ -575,7 +575,7 @@ function sd(e) {
|
|
|
575
575
|
return "link";
|
|
576
576
|
break;
|
|
577
577
|
case "img":
|
|
578
|
-
return e.getAttribute("alt") === "" && !
|
|
578
|
+
return e.getAttribute("alt") === "" && !kl(e, "img") ? "presentation" : "img";
|
|
579
579
|
case "input": {
|
|
580
580
|
var r = e, n = r.type;
|
|
581
581
|
switch (n) {
|
|
@@ -616,11 +616,11 @@ function ld(e) {
|
|
|
616
616
|
}
|
|
617
617
|
return null;
|
|
618
618
|
}
|
|
619
|
-
var
|
|
619
|
+
var ko = ["presentation", "none"];
|
|
620
620
|
function K(e) {
|
|
621
621
|
return e !== null && e.nodeType === e.ELEMENT_NODE;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Pl(e) {
|
|
624
624
|
return K(e) && Y(e) === "caption";
|
|
625
625
|
}
|
|
626
626
|
function zn(e) {
|
|
@@ -712,36 +712,36 @@ function Zo(e, t) {
|
|
|
712
712
|
function wd(e) {
|
|
713
713
|
return cd(e) ? e.selectedOptions || Zo(e, "[selected]") : Zo(e, '[aria-selected="true"]');
|
|
714
714
|
}
|
|
715
|
-
function Pd(e) {
|
|
716
|
-
return se(e, Po);
|
|
717
|
-
}
|
|
718
715
|
function kd(e) {
|
|
719
|
-
return
|
|
716
|
+
return se(e, ko);
|
|
717
|
+
}
|
|
718
|
+
function Pd(e) {
|
|
719
|
+
return Pl(e);
|
|
720
720
|
}
|
|
721
721
|
function Ed(e) {
|
|
722
722
|
return se(e, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function xd(e) {
|
|
725
725
|
return !1;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function _d(e) {
|
|
728
728
|
return zn(e) || pd(e) ? e.value : e.textContent || "";
|
|
729
729
|
}
|
|
730
730
|
function ei(e) {
|
|
731
731
|
var t = e.getPropertyValue("content");
|
|
732
732
|
return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function xl(e) {
|
|
735
735
|
var t = Y(e);
|
|
736
736
|
return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea";
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
if (
|
|
738
|
+
function _l(e) {
|
|
739
|
+
if (xl(e))
|
|
740
740
|
return e;
|
|
741
741
|
var t = null;
|
|
742
742
|
return e.childNodes.forEach(function(r) {
|
|
743
743
|
if (t === null && K(r)) {
|
|
744
|
-
var n =
|
|
744
|
+
var n = _l(r);
|
|
745
745
|
n !== null && (t = n);
|
|
746
746
|
}
|
|
747
747
|
}), t;
|
|
@@ -750,7 +750,7 @@ function Td(e) {
|
|
|
750
750
|
if (e.control !== void 0)
|
|
751
751
|
return e.control;
|
|
752
752
|
var t = e.getAttribute("for");
|
|
753
|
-
return t !== null ? e.ownerDocument.getElementById(t) :
|
|
753
|
+
return t !== null ? e.ownerDocument.getElementById(t) : _l(e);
|
|
754
754
|
}
|
|
755
755
|
function Id(e) {
|
|
756
756
|
var t = e.labels;
|
|
@@ -758,7 +758,7 @@ function Id(e) {
|
|
|
758
758
|
return t;
|
|
759
759
|
if (t !== void 0)
|
|
760
760
|
return re(t);
|
|
761
|
-
if (!
|
|
761
|
+
if (!xl(e))
|
|
762
762
|
return null;
|
|
763
763
|
var r = e.ownerDocument;
|
|
764
764
|
return re(r.querySelectorAll("label")).filter(function(n) {
|
|
@@ -771,28 +771,28 @@ function Bd(e) {
|
|
|
771
771
|
}
|
|
772
772
|
function Tl(e) {
|
|
773
773
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new rd(), n = fd(e), o = t.compute, i = o === void 0 ? "name" : o, a = t.computedStyleSupportsPseudoElements, s = a === void 0 ? t.getComputedStyle !== void 0 : a, l = t.getComputedStyle, h = l === void 0 ? n.getComputedStyle.bind(n) : l, c = t.hidden, R = c === void 0 ? !1 : c;
|
|
774
|
-
function f(d,
|
|
774
|
+
function f(d, x) {
|
|
775
775
|
var B = "";
|
|
776
776
|
if (K(d) && s) {
|
|
777
|
-
var
|
|
777
|
+
var P = h(d, "::before"), m = ei(P);
|
|
778
778
|
B = "".concat(m, " ").concat(B);
|
|
779
779
|
}
|
|
780
780
|
var g = bd(d) ? Bd(d) : re(d.childNodes).concat(Jn(d, "aria-owns"));
|
|
781
781
|
if (g.forEach(function(b) {
|
|
782
|
-
var
|
|
783
|
-
isEmbeddedInLabel:
|
|
782
|
+
var k = _(b, {
|
|
783
|
+
isEmbeddedInLabel: x.isEmbeddedInLabel,
|
|
784
784
|
isReferenced: !1,
|
|
785
785
|
recursion: !0
|
|
786
786
|
}), E = K(b) ? h(b).getPropertyValue("display") : "inline", I = E !== "inline" ? " " : "";
|
|
787
|
-
B += "".concat(I).concat(
|
|
787
|
+
B += "".concat(I).concat(k).concat(I);
|
|
788
788
|
}), K(d) && s) {
|
|
789
789
|
var y = h(d, "::after"), p = ei(y);
|
|
790
790
|
B = "".concat(B, " ").concat(p);
|
|
791
791
|
}
|
|
792
792
|
return B.trim();
|
|
793
793
|
}
|
|
794
|
-
function C(d,
|
|
795
|
-
var B = d.getAttributeNode(
|
|
794
|
+
function C(d, x) {
|
|
795
|
+
var B = d.getAttributeNode(x);
|
|
796
796
|
return B !== null && !r.has(B) && B.value.trim() !== "" ? (r.add(B), B.value) : null;
|
|
797
797
|
}
|
|
798
798
|
function O(d) {
|
|
@@ -803,10 +803,10 @@ function Tl(e) {
|
|
|
803
803
|
return null;
|
|
804
804
|
if (hd(d)) {
|
|
805
805
|
r.add(d);
|
|
806
|
-
for (var
|
|
807
|
-
var
|
|
808
|
-
if (md(
|
|
809
|
-
return
|
|
806
|
+
for (var x = re(d.childNodes), B = 0; B < x.length; B += 1) {
|
|
807
|
+
var P = x[B];
|
|
808
|
+
if (md(P))
|
|
809
|
+
return _(P, {
|
|
810
810
|
isEmbeddedInLabel: !1,
|
|
811
811
|
isReferenced: !1,
|
|
812
812
|
recursion: !1
|
|
@@ -816,8 +816,8 @@ function Tl(e) {
|
|
|
816
816
|
r.add(d);
|
|
817
817
|
for (var m = re(d.childNodes), g = 0; g < m.length; g += 1) {
|
|
818
818
|
var y = m[g];
|
|
819
|
-
if (
|
|
820
|
-
return
|
|
819
|
+
if (Pl(y))
|
|
820
|
+
return _(y, {
|
|
821
821
|
isEmbeddedInLabel: !1,
|
|
822
822
|
isReferenced: !1,
|
|
823
823
|
recursion: !1
|
|
@@ -826,9 +826,9 @@ function Tl(e) {
|
|
|
826
826
|
} else if (gd(d)) {
|
|
827
827
|
r.add(d);
|
|
828
828
|
for (var p = re(d.childNodes), b = 0; b < p.length; b += 1) {
|
|
829
|
-
var
|
|
830
|
-
if (yd(
|
|
831
|
-
return
|
|
829
|
+
var k = p[b];
|
|
830
|
+
if (yd(k))
|
|
831
|
+
return k.textContent;
|
|
832
832
|
}
|
|
833
833
|
return null;
|
|
834
834
|
} else if (Y(d) === "img" || Y(d) === "area") {
|
|
@@ -852,7 +852,7 @@ function Tl(e) {
|
|
|
852
852
|
var G = Id(d);
|
|
853
853
|
if (G !== null && G.length !== 0)
|
|
854
854
|
return r.add(d), re(G).map(function(Re) {
|
|
855
|
-
return
|
|
855
|
+
return _(Re, {
|
|
856
856
|
isEmbeddedInLabel: !0,
|
|
857
857
|
isReferenced: !1,
|
|
858
858
|
recursion: !0
|
|
@@ -861,9 +861,9 @@ function Tl(e) {
|
|
|
861
861
|
return Re.length > 0;
|
|
862
862
|
}).join(" ");
|
|
863
863
|
if (zn(d) && d.type === "image") {
|
|
864
|
-
var
|
|
865
|
-
if (
|
|
866
|
-
return
|
|
864
|
+
var V = C(d, "alt");
|
|
865
|
+
if (V !== null)
|
|
866
|
+
return V;
|
|
867
867
|
var ce = C(d, "title");
|
|
868
868
|
return ce !== null ? ce : "Submit Query";
|
|
869
869
|
}
|
|
@@ -876,16 +876,16 @@ function Tl(e) {
|
|
|
876
876
|
}
|
|
877
877
|
return null;
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function _(d, x) {
|
|
880
880
|
if (r.has(d))
|
|
881
881
|
return "";
|
|
882
|
-
if (!R && Cd(d, h) && !
|
|
882
|
+
if (!R && Cd(d, h) && !x.isReferenced)
|
|
883
883
|
return r.add(d), "";
|
|
884
|
-
var B = K(d) ? d.getAttributeNode("aria-labelledby") : null,
|
|
885
|
-
if (i === "name" && !
|
|
886
|
-
return r.add(B),
|
|
887
|
-
return
|
|
888
|
-
isEmbeddedInLabel:
|
|
884
|
+
var B = K(d) ? d.getAttributeNode("aria-labelledby") : null, P = B !== null && !r.has(B) ? Jn(d, "aria-labelledby") : [];
|
|
885
|
+
if (i === "name" && !x.isReferenced && P.length > 0)
|
|
886
|
+
return r.add(B), P.map(function(E) {
|
|
887
|
+
return _(E, {
|
|
888
|
+
isEmbeddedInLabel: x.isEmbeddedInLabel,
|
|
889
889
|
isReferenced: !0,
|
|
890
890
|
// this isn't recursion as specified, otherwise we would skip
|
|
891
891
|
// `aria-label` in
|
|
@@ -893,12 +893,12 @@ function Tl(e) {
|
|
|
893
893
|
recursion: !1
|
|
894
894
|
});
|
|
895
895
|
}).join(" ");
|
|
896
|
-
var m =
|
|
896
|
+
var m = x.recursion && qd(d) && i === "name";
|
|
897
897
|
if (!m) {
|
|
898
898
|
var g = (K(d) && d.getAttribute("aria-label") || "").trim();
|
|
899
899
|
if (g !== "" && i === "name")
|
|
900
900
|
return r.add(d), g;
|
|
901
|
-
if (!
|
|
901
|
+
if (!kd(d)) {
|
|
902
902
|
var y = q(d);
|
|
903
903
|
if (y !== null)
|
|
904
904
|
return r.add(d), y;
|
|
@@ -906,13 +906,13 @@ function Tl(e) {
|
|
|
906
906
|
}
|
|
907
907
|
if (se(d, ["menu"]))
|
|
908
908
|
return r.add(d), "";
|
|
909
|
-
if (m ||
|
|
909
|
+
if (m || x.isEmbeddedInLabel || x.isReferenced) {
|
|
910
910
|
if (se(d, ["combobox", "listbox"])) {
|
|
911
911
|
r.add(d);
|
|
912
912
|
var p = wd(d);
|
|
913
913
|
return p.length === 0 ? zn(d) ? d.value : "" : re(p).map(function(E) {
|
|
914
|
-
return
|
|
915
|
-
isEmbeddedInLabel:
|
|
914
|
+
return _(E, {
|
|
915
|
+
isEmbeddedInLabel: x.isEmbeddedInLabel,
|
|
916
916
|
isReferenced: !1,
|
|
917
917
|
recursion: !0
|
|
918
918
|
});
|
|
@@ -921,25 +921,25 @@ function Tl(e) {
|
|
|
921
921
|
if (El(d, "range"))
|
|
922
922
|
return r.add(d), d.hasAttribute("aria-valuetext") ? d.getAttribute("aria-valuetext") : d.hasAttribute("aria-valuenow") ? d.getAttribute("aria-valuenow") : d.getAttribute("value") || "";
|
|
923
923
|
if (se(d, ["textbox"]))
|
|
924
|
-
return r.add(d),
|
|
924
|
+
return r.add(d), _d(d);
|
|
925
925
|
}
|
|
926
|
-
if (Ed(d) || K(d) &&
|
|
926
|
+
if (Ed(d) || K(d) && x.isReferenced || Pd(d) || xd()) {
|
|
927
927
|
var b = f(d, {
|
|
928
|
-
isEmbeddedInLabel:
|
|
928
|
+
isEmbeddedInLabel: x.isEmbeddedInLabel
|
|
929
929
|
});
|
|
930
930
|
if (b !== "")
|
|
931
931
|
return r.add(d), b;
|
|
932
932
|
}
|
|
933
933
|
if (d.nodeType === d.TEXT_NODE)
|
|
934
934
|
return r.add(d), d.textContent || "";
|
|
935
|
-
if (
|
|
935
|
+
if (x.recursion)
|
|
936
936
|
return r.add(d), f(d, {
|
|
937
|
-
isEmbeddedInLabel:
|
|
937
|
+
isEmbeddedInLabel: x.isEmbeddedInLabel
|
|
938
938
|
});
|
|
939
|
-
var
|
|
940
|
-
return
|
|
939
|
+
var k = O(d);
|
|
940
|
+
return k !== null ? (r.add(d), k) : (r.add(d), "");
|
|
941
941
|
}
|
|
942
|
-
return Rd(
|
|
942
|
+
return Rd(_(e, {
|
|
943
943
|
isEmbeddedInLabel: !1,
|
|
944
944
|
// by spec computeAccessibleDescription starts with the referenced elements as roots
|
|
945
945
|
isReferenced: i === "description",
|
|
@@ -1100,17 +1100,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1100
1100
|
function a(c, R) {
|
|
1101
1101
|
var f = c == null ? null : typeof Symbol < "u" && c[Symbol.iterator] || c["@@iterator"];
|
|
1102
1102
|
if (f != null) {
|
|
1103
|
-
var C, O, q,
|
|
1103
|
+
var C, O, q, _, d = [], x = !0, B = !1;
|
|
1104
1104
|
try {
|
|
1105
1105
|
if (q = (f = f.call(c)).next, R === 0) {
|
|
1106
1106
|
if (Object(f) !== f) return;
|
|
1107
|
-
|
|
1108
|
-
} else for (; !(
|
|
1109
|
-
} catch (
|
|
1110
|
-
B = !0, O =
|
|
1107
|
+
x = !1;
|
|
1108
|
+
} else for (; !(x = (C = q.call(f)).done) && (d.push(C.value), d.length !== R); x = !0) ;
|
|
1109
|
+
} catch (P) {
|
|
1110
|
+
B = !0, O = P;
|
|
1111
1111
|
} finally {
|
|
1112
1112
|
try {
|
|
1113
|
-
if (!
|
|
1113
|
+
if (!x && f.return != null && (_ = f.return(), Object(_) !== _)) return;
|
|
1114
1114
|
} finally {
|
|
1115
1115
|
if (B) throw O;
|
|
1116
1116
|
}
|
|
@@ -1242,8 +1242,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1242
1242
|
},
|
|
1243
1243
|
forEach: function(R) {
|
|
1244
1244
|
for (var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, C = 0, O = l; C < O.length; C++) {
|
|
1245
|
-
var q = r(O[C], 2),
|
|
1246
|
-
R.call(f, d,
|
|
1245
|
+
var q = r(O[C], 2), _ = q[0], d = q[1];
|
|
1246
|
+
R.call(f, d, _, l);
|
|
1247
1247
|
}
|
|
1248
1248
|
},
|
|
1249
1249
|
get: function(R) {
|
|
@@ -1302,17 +1302,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1302
1302
|
function a(c, R) {
|
|
1303
1303
|
var f = c == null ? null : typeof Symbol < "u" && c[Symbol.iterator] || c["@@iterator"];
|
|
1304
1304
|
if (f != null) {
|
|
1305
|
-
var C, O, q,
|
|
1305
|
+
var C, O, q, _, d = [], x = !0, B = !1;
|
|
1306
1306
|
try {
|
|
1307
1307
|
if (q = (f = f.call(c)).next, R === 0) {
|
|
1308
1308
|
if (Object(f) !== f) return;
|
|
1309
|
-
|
|
1310
|
-
} else for (; !(
|
|
1311
|
-
} catch (
|
|
1312
|
-
B = !0, O =
|
|
1309
|
+
x = !1;
|
|
1310
|
+
} else for (; !(x = (C = q.call(f)).done) && (d.push(C.value), d.length !== R); x = !0) ;
|
|
1311
|
+
} catch (P) {
|
|
1312
|
+
B = !0, O = P;
|
|
1313
1313
|
} finally {
|
|
1314
1314
|
try {
|
|
1315
|
-
if (!
|
|
1315
|
+
if (!x && f.return != null && (_ = f.return(), Object(_) !== _)) return;
|
|
1316
1316
|
} finally {
|
|
1317
1317
|
if (B) throw O;
|
|
1318
1318
|
}
|
|
@@ -1587,8 +1587,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1587
1587
|
},
|
|
1588
1588
|
forEach: function(R) {
|
|
1589
1589
|
for (var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, C = 0, O = l; C < O.length; C++) {
|
|
1590
|
-
var q = r(O[C], 2),
|
|
1591
|
-
R.call(f, d,
|
|
1590
|
+
var q = r(O[C], 2), _ = q[0], d = q[1];
|
|
1591
|
+
R.call(f, d, _, l);
|
|
1592
1592
|
}
|
|
1593
1593
|
},
|
|
1594
1594
|
get: function(R) {
|
|
@@ -2089,10 +2089,10 @@ function np() {
|
|
|
2089
2089
|
};
|
|
2090
2090
|
return ot.default = e, ot;
|
|
2091
2091
|
}
|
|
2092
|
-
var it = {},
|
|
2092
|
+
var it = {}, ki;
|
|
2093
2093
|
function op() {
|
|
2094
|
-
if (
|
|
2095
|
-
|
|
2094
|
+
if (ki) return it;
|
|
2095
|
+
ki = 1, Object.defineProperty(it, "__esModule", {
|
|
2096
2096
|
value: !0
|
|
2097
2097
|
}), it.default = void 0;
|
|
2098
2098
|
var e = {
|
|
@@ -2118,10 +2118,10 @@ function op() {
|
|
|
2118
2118
|
};
|
|
2119
2119
|
return it.default = e, it;
|
|
2120
2120
|
}
|
|
2121
|
-
var at = {},
|
|
2121
|
+
var at = {}, Pi;
|
|
2122
2122
|
function ip() {
|
|
2123
|
-
if (
|
|
2124
|
-
|
|
2123
|
+
if (Pi) return at;
|
|
2124
|
+
Pi = 1, Object.defineProperty(at, "__esModule", {
|
|
2125
2125
|
value: !0
|
|
2126
2126
|
}), at.default = void 0;
|
|
2127
2127
|
var e = {
|
|
@@ -2220,10 +2220,10 @@ function ap() {
|
|
|
2220
2220
|
};
|
|
2221
2221
|
return st.default = e, st;
|
|
2222
2222
|
}
|
|
2223
|
-
var lt = {},
|
|
2223
|
+
var lt = {}, xi;
|
|
2224
2224
|
function sp() {
|
|
2225
|
-
if (
|
|
2226
|
-
|
|
2225
|
+
if (xi) return lt;
|
|
2226
|
+
xi = 1, Object.defineProperty(lt, "__esModule", {
|
|
2227
2227
|
value: !0
|
|
2228
2228
|
}), lt.default = void 0;
|
|
2229
2229
|
var e = {
|
|
@@ -2248,10 +2248,10 @@ function sp() {
|
|
|
2248
2248
|
};
|
|
2249
2249
|
return lt.default = e, lt;
|
|
2250
2250
|
}
|
|
2251
|
-
var ut = {},
|
|
2251
|
+
var ut = {}, _i;
|
|
2252
2252
|
function lp() {
|
|
2253
|
-
if (
|
|
2254
|
-
|
|
2253
|
+
if (_i) return ut;
|
|
2254
|
+
_i = 1, Object.defineProperty(ut, "__esModule", {
|
|
2255
2255
|
value: !0
|
|
2256
2256
|
}), ut.default = void 0;
|
|
2257
2257
|
var e = {
|
|
@@ -2827,12 +2827,12 @@ function qp() {
|
|
|
2827
2827
|
};
|
|
2828
2828
|
return wt.default = e, wt;
|
|
2829
2829
|
}
|
|
2830
|
-
var
|
|
2830
|
+
var kt = {}, Ui;
|
|
2831
2831
|
function wp() {
|
|
2832
|
-
if (Ui) return
|
|
2833
|
-
Ui = 1, Object.defineProperty(
|
|
2832
|
+
if (Ui) return kt;
|
|
2833
|
+
Ui = 1, Object.defineProperty(kt, "__esModule", {
|
|
2834
2834
|
value: !0
|
|
2835
|
-
}),
|
|
2835
|
+
}), kt.default = void 0;
|
|
2836
2836
|
var e = {
|
|
2837
2837
|
abstract: !1,
|
|
2838
2838
|
accessibleNameRequired: !1,
|
|
@@ -2875,14 +2875,14 @@ function wp() {
|
|
|
2875
2875
|
requiredProps: {},
|
|
2876
2876
|
superClass: [["roletype", "structure", "section", "landmark"]]
|
|
2877
2877
|
};
|
|
2878
|
-
return
|
|
2878
|
+
return kt.default = e, kt;
|
|
2879
2879
|
}
|
|
2880
|
-
var
|
|
2881
|
-
function
|
|
2882
|
-
if (Vi) return
|
|
2883
|
-
Vi = 1, Object.defineProperty(
|
|
2880
|
+
var Pt = {}, Vi;
|
|
2881
|
+
function kp() {
|
|
2882
|
+
if (Vi) return Pt;
|
|
2883
|
+
Vi = 1, Object.defineProperty(Pt, "__esModule", {
|
|
2884
2884
|
value: !0
|
|
2885
|
-
}),
|
|
2885
|
+
}), Pt.default = void 0;
|
|
2886
2886
|
var e = {
|
|
2887
2887
|
abstract: !1,
|
|
2888
2888
|
accessibleNameRequired: !1,
|
|
@@ -2995,10 +2995,10 @@ function Pp() {
|
|
|
2995
2995
|
requiredProps: {},
|
|
2996
2996
|
superClass: [["roletype", "structure"]]
|
|
2997
2997
|
};
|
|
2998
|
-
return
|
|
2998
|
+
return Pt.default = e, Pt;
|
|
2999
2999
|
}
|
|
3000
3000
|
var Et = {}, Gi;
|
|
3001
|
-
function
|
|
3001
|
+
function Pp() {
|
|
3002
3002
|
if (Gi) return Et;
|
|
3003
3003
|
Gi = 1, Object.defineProperty(Et, "__esModule", {
|
|
3004
3004
|
value: !0
|
|
@@ -3023,12 +3023,12 @@ function kp() {
|
|
|
3023
3023
|
};
|
|
3024
3024
|
return Et.default = e, Et;
|
|
3025
3025
|
}
|
|
3026
|
-
var
|
|
3026
|
+
var xt = {}, Ki;
|
|
3027
3027
|
function Ep() {
|
|
3028
|
-
if (Ki) return
|
|
3029
|
-
Ki = 1, Object.defineProperty(
|
|
3028
|
+
if (Ki) return xt;
|
|
3029
|
+
Ki = 1, Object.defineProperty(xt, "__esModule", {
|
|
3030
3030
|
value: !0
|
|
3031
|
-
}),
|
|
3031
|
+
}), xt.default = void 0;
|
|
3032
3032
|
var e = {
|
|
3033
3033
|
abstract: !1,
|
|
3034
3034
|
accessibleNameRequired: !1,
|
|
@@ -3059,14 +3059,14 @@ function Ep() {
|
|
|
3059
3059
|
requiredProps: {},
|
|
3060
3060
|
superClass: [["roletype", "structure", "section", "cell"], ["roletype", "widget"]]
|
|
3061
3061
|
};
|
|
3062
|
-
return
|
|
3062
|
+
return xt.default = e, xt;
|
|
3063
3063
|
}
|
|
3064
|
-
var
|
|
3065
|
-
function
|
|
3066
|
-
if (zi) return
|
|
3067
|
-
zi = 1, Object.defineProperty(
|
|
3064
|
+
var _t = {}, zi;
|
|
3065
|
+
function xp() {
|
|
3066
|
+
if (zi) return _t;
|
|
3067
|
+
zi = 1, Object.defineProperty(_t, "__esModule", {
|
|
3068
3068
|
value: !0
|
|
3069
|
-
}),
|
|
3069
|
+
}), _t.default = void 0;
|
|
3070
3070
|
var e = {
|
|
3071
3071
|
abstract: !1,
|
|
3072
3072
|
accessibleNameRequired: !1,
|
|
@@ -3105,10 +3105,10 @@ function _p() {
|
|
|
3105
3105
|
requiredProps: {},
|
|
3106
3106
|
superClass: [["roletype", "structure", "section"]]
|
|
3107
3107
|
};
|
|
3108
|
-
return
|
|
3108
|
+
return _t.default = e, _t;
|
|
3109
3109
|
}
|
|
3110
3110
|
var Tt = {}, Wi;
|
|
3111
|
-
function
|
|
3111
|
+
function _p() {
|
|
3112
3112
|
if (Wi) return Tt;
|
|
3113
3113
|
Wi = 1, Object.defineProperty(Tt, "__esModule", {
|
|
3114
3114
|
value: !0
|
|
@@ -4176,10 +4176,10 @@ function nf() {
|
|
|
4176
4176
|
};
|
|
4177
4177
|
return or.default = e, or;
|
|
4178
4178
|
}
|
|
4179
|
-
var ir = {},
|
|
4179
|
+
var ir = {}, ka;
|
|
4180
4180
|
function of() {
|
|
4181
|
-
if (
|
|
4182
|
-
|
|
4181
|
+
if (ka) return ir;
|
|
4182
|
+
ka = 1, Object.defineProperty(ir, "__esModule", {
|
|
4183
4183
|
value: !0
|
|
4184
4184
|
}), ir.default = void 0;
|
|
4185
4185
|
var e = {
|
|
@@ -4219,10 +4219,10 @@ function of() {
|
|
|
4219
4219
|
};
|
|
4220
4220
|
return ir.default = e, ir;
|
|
4221
4221
|
}
|
|
4222
|
-
var ar = {},
|
|
4222
|
+
var ar = {}, Pa;
|
|
4223
4223
|
function af() {
|
|
4224
|
-
if (
|
|
4225
|
-
|
|
4224
|
+
if (Pa) return ar;
|
|
4225
|
+
Pa = 1, Object.defineProperty(ar, "__esModule", {
|
|
4226
4226
|
value: !0
|
|
4227
4227
|
}), ar.default = void 0;
|
|
4228
4228
|
var e = {
|
|
@@ -4274,10 +4274,10 @@ function sf() {
|
|
|
4274
4274
|
};
|
|
4275
4275
|
return sr.default = e, sr;
|
|
4276
4276
|
}
|
|
4277
|
-
var lr = {},
|
|
4277
|
+
var lr = {}, xa;
|
|
4278
4278
|
function lf() {
|
|
4279
|
-
if (
|
|
4280
|
-
|
|
4279
|
+
if (xa) return lr;
|
|
4280
|
+
xa = 1, Object.defineProperty(lr, "__esModule", {
|
|
4281
4281
|
value: !0
|
|
4282
4282
|
}), lr.default = void 0;
|
|
4283
4283
|
var e = {
|
|
@@ -4310,10 +4310,10 @@ function lf() {
|
|
|
4310
4310
|
};
|
|
4311
4311
|
return lr.default = e, lr;
|
|
4312
4312
|
}
|
|
4313
|
-
var ur = {},
|
|
4313
|
+
var ur = {}, _a;
|
|
4314
4314
|
function uf() {
|
|
4315
|
-
if (
|
|
4316
|
-
|
|
4315
|
+
if (_a) return ur;
|
|
4316
|
+
_a = 1, Object.defineProperty(ur, "__esModule", {
|
|
4317
4317
|
value: !0
|
|
4318
4318
|
}), ur.default = void 0;
|
|
4319
4319
|
var e = {
|
|
@@ -4857,12 +4857,12 @@ function wf() {
|
|
|
4857
4857
|
};
|
|
4858
4858
|
return wr.default = e, wr;
|
|
4859
4859
|
}
|
|
4860
|
-
var
|
|
4861
|
-
function
|
|
4862
|
-
if (Ua) return
|
|
4863
|
-
Ua = 1, Object.defineProperty(
|
|
4860
|
+
var kr = {}, Ua;
|
|
4861
|
+
function kf() {
|
|
4862
|
+
if (Ua) return kr;
|
|
4863
|
+
Ua = 1, Object.defineProperty(kr, "__esModule", {
|
|
4864
4864
|
value: !0
|
|
4865
|
-
}),
|
|
4865
|
+
}), kr.default = void 0;
|
|
4866
4866
|
var e = {
|
|
4867
4867
|
abstract: !1,
|
|
4868
4868
|
accessibleNameRequired: !1,
|
|
@@ -4878,14 +4878,14 @@ function Pf() {
|
|
|
4878
4878
|
requiredProps: {},
|
|
4879
4879
|
superClass: [["roletype", "structure", "section", "status"]]
|
|
4880
4880
|
};
|
|
4881
|
-
return
|
|
4881
|
+
return kr.default = e, kr;
|
|
4882
4882
|
}
|
|
4883
|
-
var
|
|
4884
|
-
function
|
|
4885
|
-
if (Va) return
|
|
4886
|
-
Va = 1, Object.defineProperty(
|
|
4883
|
+
var Pr = {}, Va;
|
|
4884
|
+
function Pf() {
|
|
4885
|
+
if (Va) return Pr;
|
|
4886
|
+
Va = 1, Object.defineProperty(Pr, "__esModule", {
|
|
4887
4887
|
value: !0
|
|
4888
|
-
}),
|
|
4888
|
+
}), Pr.default = void 0;
|
|
4889
4889
|
var e = {
|
|
4890
4890
|
abstract: !1,
|
|
4891
4891
|
accessibleNameRequired: !1,
|
|
@@ -4908,7 +4908,7 @@ function kf() {
|
|
|
4908
4908
|
requiredProps: {},
|
|
4909
4909
|
superClass: [["roletype", "structure", "section", "group"]]
|
|
4910
4910
|
};
|
|
4911
|
-
return
|
|
4911
|
+
return Pr.default = e, Pr;
|
|
4912
4912
|
}
|
|
4913
4913
|
var Er = {}, Ga;
|
|
4914
4914
|
function Ef() {
|
|
@@ -4933,12 +4933,12 @@ function Ef() {
|
|
|
4933
4933
|
};
|
|
4934
4934
|
return Er.default = e, Er;
|
|
4935
4935
|
}
|
|
4936
|
-
var
|
|
4937
|
-
function
|
|
4938
|
-
if (Ka) return
|
|
4939
|
-
Ka = 1, Object.defineProperty(
|
|
4936
|
+
var xr = {}, Ka;
|
|
4937
|
+
function xf() {
|
|
4938
|
+
if (Ka) return xr;
|
|
4939
|
+
Ka = 1, Object.defineProperty(xr, "__esModule", {
|
|
4940
4940
|
value: !0
|
|
4941
|
-
}),
|
|
4941
|
+
}), xr.default = void 0;
|
|
4942
4942
|
var e = {
|
|
4943
4943
|
abstract: !1,
|
|
4944
4944
|
accessibleNameRequired: !0,
|
|
@@ -4960,14 +4960,14 @@ function _f() {
|
|
|
4960
4960
|
requiredProps: {},
|
|
4961
4961
|
superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]]
|
|
4962
4962
|
};
|
|
4963
|
-
return
|
|
4963
|
+
return xr.default = e, xr;
|
|
4964
4964
|
}
|
|
4965
|
-
var
|
|
4966
|
-
function
|
|
4967
|
-
if (za) return
|
|
4968
|
-
za = 1, Object.defineProperty(
|
|
4965
|
+
var _r = {}, za;
|
|
4966
|
+
function _f() {
|
|
4967
|
+
if (za) return _r;
|
|
4968
|
+
za = 1, Object.defineProperty(_r, "__esModule", {
|
|
4969
4969
|
value: !0
|
|
4970
|
-
}),
|
|
4970
|
+
}), _r.default = void 0;
|
|
4971
4971
|
var e = {
|
|
4972
4972
|
abstract: !1,
|
|
4973
4973
|
accessibleNameRequired: !0,
|
|
@@ -4983,7 +4983,7 @@ function xf() {
|
|
|
4983
4983
|
requiredProps: {},
|
|
4984
4984
|
superClass: [["roletype", "widget", "composite", "grid"], ["roletype", "structure", "section", "table", "grid"], ["roletype", "widget", "composite", "select", "tree"], ["roletype", "structure", "section", "group", "select", "tree"]]
|
|
4985
4985
|
};
|
|
4986
|
-
return
|
|
4986
|
+
return _r.default = e, _r;
|
|
4987
4987
|
}
|
|
4988
4988
|
var Tr = {}, Wa;
|
|
4989
4989
|
function Tf() {
|
|
@@ -5019,11 +5019,11 @@ function If() {
|
|
|
5019
5019
|
Xa = 1, Object.defineProperty(et, "__esModule", {
|
|
5020
5020
|
value: !0
|
|
5021
5021
|
}), et.default = void 0;
|
|
5022
|
-
var e = w(ep()), t = w(tp()), r = w(rp()), n = w(np()), o = w(op()), i = w(ip()), a = w(ap()), s = w(sp()), l = w(lp()), h = w(up()), c = w(cp()), R = w(dp()), f = w(pp()), C = w(fp()), O = w(hp()), q = w(mp()),
|
|
5022
|
+
var e = w(ep()), t = w(tp()), r = w(rp()), n = w(np()), o = w(op()), i = w(ip()), a = w(ap()), s = w(sp()), l = w(lp()), h = w(up()), c = w(cp()), R = w(dp()), f = w(pp()), C = w(fp()), O = w(hp()), q = w(mp()), _ = w(bp()), d = w(vp()), x = w(gp()), B = w(yp()), P = w(Rp()), m = w(Cp()), g = w(qp()), y = w(wp()), p = w(kp()), b = w(Pp()), k = w(Ep()), E = w(xp()), I = w(_p()), A = w(Tp()), G = w(Ip()), V = w(Bp()), ce = w(Op()), de = w(Sp()), Re = w(Mp()), io = w(Ap()), ao = w(Np()), so = w(Dp()), lo = w($p()), uo = w(Hp()), co = w(Lp()), S = w(jp()), po = w(Fp()), Ee = w(Up()), zu = w(Vp()), Wu = w(Gp()), Xu = w(Kp()), Yu = w(zp()), Qu = w(Wp()), Ju = w(Xp()), Zu = w(Yp()), ec = w(Qp()), tc = w(Jp()), rc = w(Zp()), nc = w(ef()), oc = w(tf()), ic = w(rf()), ac = w(nf()), sc = w(of()), lc = w(af()), uc = w(sf()), cc = w(lf()), dc = w(uf()), pc = w(cf()), fc = w(df()), hc = w(pf()), mc = w(ff()), bc = w(hf()), vc = w(mf()), gc = w(bf()), yc = w(vf()), Rc = w(gf()), Cc = w(yf()), qc = w(Rf()), wc = w(Cf()), kc = w(qf()), Pc = w(wf()), Ec = w(kf()), xc = w(Pf()), _c = w(Ef()), Tc = w(xf()), Ic = w(_f()), Bc = w(Tf());
|
|
5023
5023
|
function w($n) {
|
|
5024
5024
|
return $n && $n.__esModule ? $n : { default: $n };
|
|
5025
5025
|
}
|
|
5026
|
-
var Oc = [["alert", e.default], ["alertdialog", t.default], ["application", r.default], ["article", n.default], ["banner", o.default], ["blockquote", i.default], ["button", a.default], ["caption", s.default], ["cell", l.default], ["checkbox", h.default], ["code", c.default], ["columnheader", R.default], ["combobox", f.default], ["complementary", C.default], ["contentinfo", O.default], ["definition", q.default], ["deletion",
|
|
5026
|
+
var Oc = [["alert", e.default], ["alertdialog", t.default], ["application", r.default], ["article", n.default], ["banner", o.default], ["blockquote", i.default], ["button", a.default], ["caption", s.default], ["cell", l.default], ["checkbox", h.default], ["code", c.default], ["columnheader", R.default], ["combobox", f.default], ["complementary", C.default], ["contentinfo", O.default], ["definition", q.default], ["deletion", _.default], ["dialog", d.default], ["directory", x.default], ["document", B.default], ["emphasis", P.default], ["feed", m.default], ["figure", g.default], ["form", y.default], ["generic", p.default], ["grid", b.default], ["gridcell", k.default], ["group", E.default], ["heading", I.default], ["img", A.default], ["insertion", G.default], ["link", V.default], ["list", ce.default], ["listbox", de.default], ["listitem", Re.default], ["log", io.default], ["main", ao.default], ["mark", so.default], ["marquee", lo.default], ["math", uo.default], ["menu", co.default], ["menubar", S.default], ["menuitem", po.default], ["menuitemcheckbox", Ee.default], ["menuitemradio", zu.default], ["meter", Wu.default], ["navigation", Xu.default], ["none", Yu.default], ["note", Qu.default], ["option", Ju.default], ["paragraph", Zu.default], ["presentation", ec.default], ["progressbar", tc.default], ["radio", rc.default], ["radiogroup", nc.default], ["region", oc.default], ["row", ic.default], ["rowgroup", ac.default], ["rowheader", sc.default], ["scrollbar", lc.default], ["search", uc.default], ["searchbox", cc.default], ["separator", dc.default], ["slider", pc.default], ["spinbutton", fc.default], ["status", hc.default], ["strong", mc.default], ["subscript", bc.default], ["superscript", vc.default], ["switch", gc.default], ["tab", yc.default], ["table", Rc.default], ["tablist", Cc.default], ["tabpanel", qc.default], ["term", wc.default], ["textbox", kc.default], ["time", Pc.default], ["timer", Ec.default], ["toolbar", xc.default], ["tooltip", _c.default], ["tree", Tc.default], ["treegrid", Ic.default], ["treeitem", Bc.default]];
|
|
5027
5027
|
return et.default = Oc, et;
|
|
5028
5028
|
}
|
|
5029
5029
|
var Ir = {}, Br = {}, Ya;
|
|
@@ -5961,10 +5961,10 @@ function oh() {
|
|
|
5961
5961
|
};
|
|
5962
5962
|
return on.default = e, on;
|
|
5963
5963
|
}
|
|
5964
|
-
var an = {},
|
|
5964
|
+
var an = {}, ks;
|
|
5965
5965
|
function ih() {
|
|
5966
|
-
if (
|
|
5967
|
-
|
|
5966
|
+
if (ks) return an;
|
|
5967
|
+
ks = 1, Object.defineProperty(an, "__esModule", {
|
|
5968
5968
|
value: !0
|
|
5969
5969
|
}), an.default = void 0;
|
|
5970
5970
|
var e = {
|
|
@@ -5995,10 +5995,10 @@ function ih() {
|
|
|
5995
5995
|
};
|
|
5996
5996
|
return an.default = e, an;
|
|
5997
5997
|
}
|
|
5998
|
-
var sn = {},
|
|
5998
|
+
var sn = {}, Ps;
|
|
5999
5999
|
function ah() {
|
|
6000
|
-
if (
|
|
6001
|
-
|
|
6000
|
+
if (Ps) return sn;
|
|
6001
|
+
Ps = 1, Object.defineProperty(sn, "__esModule", {
|
|
6002
6002
|
value: !0
|
|
6003
6003
|
}), sn.default = void 0;
|
|
6004
6004
|
var e = {
|
|
@@ -6059,10 +6059,10 @@ function sh() {
|
|
|
6059
6059
|
};
|
|
6060
6060
|
return ln.default = e, ln;
|
|
6061
6061
|
}
|
|
6062
|
-
var un = {},
|
|
6062
|
+
var un = {}, xs;
|
|
6063
6063
|
function lh() {
|
|
6064
|
-
if (
|
|
6065
|
-
|
|
6064
|
+
if (xs) return un;
|
|
6065
|
+
xs = 1, Object.defineProperty(un, "__esModule", {
|
|
6066
6066
|
value: !0
|
|
6067
6067
|
}), un.default = void 0;
|
|
6068
6068
|
var e = {
|
|
@@ -6090,10 +6090,10 @@ function lh() {
|
|
|
6090
6090
|
};
|
|
6091
6091
|
return un.default = e, un;
|
|
6092
6092
|
}
|
|
6093
|
-
var cn = {},
|
|
6093
|
+
var cn = {}, _s;
|
|
6094
6094
|
function uh() {
|
|
6095
|
-
if (
|
|
6096
|
-
|
|
6095
|
+
if (_s) return cn;
|
|
6096
|
+
_s = 1, Object.defineProperty(cn, "__esModule", {
|
|
6097
6097
|
value: !0
|
|
6098
6098
|
}), cn.default = void 0;
|
|
6099
6099
|
var e = {
|
|
@@ -6396,11 +6396,11 @@ function gh() {
|
|
|
6396
6396
|
Ds = 1, Object.defineProperty(Ir, "__esModule", {
|
|
6397
6397
|
value: !0
|
|
6398
6398
|
}), Ir.default = void 0;
|
|
6399
|
-
var e = S(Bf()), t = S(Of()), r = S(Sf()), n = S(Mf()), o = S(Af()), i = S(Nf()), a = S(Df()), s = S($f()), l = S(Hf()), h = S(Lf()), c = S(jf()), R = S(Ff()), f = S(Uf()), C = S(Vf()), O = S(Gf()), q = S(Kf()),
|
|
6399
|
+
var e = S(Bf()), t = S(Of()), r = S(Sf()), n = S(Mf()), o = S(Af()), i = S(Nf()), a = S(Df()), s = S($f()), l = S(Hf()), h = S(Lf()), c = S(jf()), R = S(Ff()), f = S(Uf()), C = S(Vf()), O = S(Gf()), q = S(Kf()), _ = S(zf()), d = S(Wf()), x = S(Xf()), B = S(Yf()), P = S(Qf()), m = S(Jf()), g = S(Zf()), y = S(eh()), p = S(th()), b = S(rh()), k = S(nh()), E = S(oh()), I = S(ih()), A = S(ah()), G = S(sh()), V = S(lh()), ce = S(uh()), de = S(ch()), Re = S(dh()), io = S(ph()), ao = S(fh()), so = S(hh()), lo = S(mh()), uo = S(bh()), co = S(vh());
|
|
6400
6400
|
function S(Ee) {
|
|
6401
6401
|
return Ee && Ee.__esModule ? Ee : { default: Ee };
|
|
6402
6402
|
}
|
|
6403
|
-
var po = [["doc-abstract", e.default], ["doc-acknowledgments", t.default], ["doc-afterword", r.default], ["doc-appendix", n.default], ["doc-backlink", o.default], ["doc-biblioentry", i.default], ["doc-bibliography", a.default], ["doc-biblioref", s.default], ["doc-chapter", l.default], ["doc-colophon", h.default], ["doc-conclusion", c.default], ["doc-cover", R.default], ["doc-credit", f.default], ["doc-credits", C.default], ["doc-dedication", O.default], ["doc-endnote", q.default], ["doc-endnotes",
|
|
6403
|
+
var po = [["doc-abstract", e.default], ["doc-acknowledgments", t.default], ["doc-afterword", r.default], ["doc-appendix", n.default], ["doc-backlink", o.default], ["doc-biblioentry", i.default], ["doc-bibliography", a.default], ["doc-biblioref", s.default], ["doc-chapter", l.default], ["doc-colophon", h.default], ["doc-conclusion", c.default], ["doc-cover", R.default], ["doc-credit", f.default], ["doc-credits", C.default], ["doc-dedication", O.default], ["doc-endnote", q.default], ["doc-endnotes", _.default], ["doc-epigraph", d.default], ["doc-epilogue", x.default], ["doc-errata", B.default], ["doc-example", P.default], ["doc-footnote", m.default], ["doc-foreword", g.default], ["doc-glossary", y.default], ["doc-glossref", p.default], ["doc-index", b.default], ["doc-introduction", k.default], ["doc-noteref", E.default], ["doc-notice", I.default], ["doc-pagebreak", A.default], ["doc-pagefooter", G.default], ["doc-pageheader", V.default], ["doc-pagelist", ce.default], ["doc-part", de.default], ["doc-preface", Re.default], ["doc-prologue", io.default], ["doc-pullquote", ao.default], ["doc-qna", so.default], ["doc-subtitle", lo.default], ["doc-tip", uo.default], ["doc-toc", co.default]];
|
|
6404
6404
|
return Ir.default = po, Ir;
|
|
6405
6405
|
}
|
|
6406
6406
|
var yn = {}, Rn = {}, $s;
|
|
@@ -6547,15 +6547,15 @@ function Ao() {
|
|
|
6547
6547
|
function i(q) {
|
|
6548
6548
|
return q && q.__esModule ? q : { default: q };
|
|
6549
6549
|
}
|
|
6550
|
-
function a(q,
|
|
6550
|
+
function a(q, _) {
|
|
6551
6551
|
var d = typeof Symbol < "u" && q[Symbol.iterator] || q["@@iterator"];
|
|
6552
6552
|
if (!d) {
|
|
6553
|
-
if (Array.isArray(q) || (d = h(q)) ||
|
|
6553
|
+
if (Array.isArray(q) || (d = h(q)) || _) {
|
|
6554
6554
|
d && (q = d);
|
|
6555
|
-
var
|
|
6555
|
+
var x = 0, B = function() {
|
|
6556
6556
|
};
|
|
6557
6557
|
return { s: B, n: function() {
|
|
6558
|
-
return
|
|
6558
|
+
return x >= q.length ? { done: !0 } : { done: !1, value: q[x++] };
|
|
6559
6559
|
}, e: function(p) {
|
|
6560
6560
|
throw p;
|
|
6561
6561
|
}, f: B };
|
|
@@ -6563,50 +6563,50 @@ function Ao() {
|
|
|
6563
6563
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
6564
6564
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
6565
6565
|
}
|
|
6566
|
-
var
|
|
6566
|
+
var P, m = !0, g = !1;
|
|
6567
6567
|
return { s: function() {
|
|
6568
6568
|
d = d.call(q);
|
|
6569
6569
|
}, n: function() {
|
|
6570
6570
|
var p = d.next();
|
|
6571
6571
|
return m = p.done, p;
|
|
6572
6572
|
}, e: function(p) {
|
|
6573
|
-
g = !0,
|
|
6573
|
+
g = !0, P = p;
|
|
6574
6574
|
}, f: function() {
|
|
6575
6575
|
try {
|
|
6576
6576
|
m || d.return == null || d.return();
|
|
6577
6577
|
} finally {
|
|
6578
|
-
if (g) throw
|
|
6578
|
+
if (g) throw P;
|
|
6579
6579
|
}
|
|
6580
6580
|
} };
|
|
6581
6581
|
}
|
|
6582
|
-
function s(q,
|
|
6583
|
-
return f(q) || R(q,
|
|
6582
|
+
function s(q, _) {
|
|
6583
|
+
return f(q) || R(q, _) || h(q, _) || l();
|
|
6584
6584
|
}
|
|
6585
6585
|
function l() {
|
|
6586
6586
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6587
6587
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
6588
6588
|
}
|
|
6589
|
-
function h(q,
|
|
6589
|
+
function h(q, _) {
|
|
6590
6590
|
if (q) {
|
|
6591
|
-
if (typeof q == "string") return c(q,
|
|
6591
|
+
if (typeof q == "string") return c(q, _);
|
|
6592
6592
|
var d = {}.toString.call(q).slice(8, -1);
|
|
6593
|
-
return d === "Object" && q.constructor && (d = q.constructor.name), d === "Map" || d === "Set" ? Array.from(q) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? c(q,
|
|
6593
|
+
return d === "Object" && q.constructor && (d = q.constructor.name), d === "Map" || d === "Set" ? Array.from(q) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? c(q, _) : void 0;
|
|
6594
6594
|
}
|
|
6595
6595
|
}
|
|
6596
|
-
function c(q,
|
|
6597
|
-
(
|
|
6598
|
-
for (var d = 0,
|
|
6599
|
-
return
|
|
6596
|
+
function c(q, _) {
|
|
6597
|
+
(_ == null || _ > q.length) && (_ = q.length);
|
|
6598
|
+
for (var d = 0, x = Array(_); d < _; d++) x[d] = q[d];
|
|
6599
|
+
return x;
|
|
6600
6600
|
}
|
|
6601
|
-
function R(q,
|
|
6601
|
+
function R(q, _) {
|
|
6602
6602
|
var d = q == null ? null : typeof Symbol < "u" && q[Symbol.iterator] || q["@@iterator"];
|
|
6603
6603
|
if (d != null) {
|
|
6604
|
-
var
|
|
6604
|
+
var x, B, P, m, g = [], y = !0, p = !1;
|
|
6605
6605
|
try {
|
|
6606
|
-
if (
|
|
6606
|
+
if (P = (d = d.call(q)).next, _ === 0) {
|
|
6607
6607
|
if (Object(d) !== d) return;
|
|
6608
6608
|
y = !1;
|
|
6609
|
-
} else for (; !(y = (
|
|
6609
|
+
} else for (; !(y = (x = P.call(d)).done) && (g.push(x.value), g.length !== _); y = !0) ;
|
|
6610
6610
|
} catch (b) {
|
|
6611
6611
|
p = !0, B = b;
|
|
6612
6612
|
} finally {
|
|
@@ -6624,18 +6624,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6624
6624
|
}
|
|
6625
6625
|
var C = [].concat(e.default, t.default, r.default, n.default);
|
|
6626
6626
|
C.forEach(function(q) {
|
|
6627
|
-
var
|
|
6627
|
+
var _ = s(q, 2), d = _[1], x = a(d.superClass), B;
|
|
6628
6628
|
try {
|
|
6629
|
-
for (
|
|
6630
|
-
var
|
|
6629
|
+
for (x.s(); !(B = x.n()).done; ) {
|
|
6630
|
+
var P = B.value, m = a(P), g;
|
|
6631
6631
|
try {
|
|
6632
6632
|
var y = function() {
|
|
6633
|
-
var b = g.value,
|
|
6634
|
-
var ce = s(
|
|
6633
|
+
var b = g.value, k = C.filter(function(V) {
|
|
6634
|
+
var ce = s(V, 1), de = ce[0];
|
|
6635
6635
|
return de === b;
|
|
6636
6636
|
})[0];
|
|
6637
|
-
if (
|
|
6638
|
-
for (var E =
|
|
6637
|
+
if (k)
|
|
6638
|
+
for (var E = k[1], I = 0, A = Object.keys(E.props); I < A.length; I++) {
|
|
6639
6639
|
var G = A[I];
|
|
6640
6640
|
Object.prototype.hasOwnProperty.call(d.props, G) || (d.props[G] = E.props[G]);
|
|
6641
6641
|
}
|
|
@@ -6649,47 +6649,47 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6649
6649
|
}
|
|
6650
6650
|
}
|
|
6651
6651
|
} catch (p) {
|
|
6652
|
-
|
|
6652
|
+
x.e(p);
|
|
6653
6653
|
} finally {
|
|
6654
|
-
|
|
6654
|
+
x.f();
|
|
6655
6655
|
}
|
|
6656
6656
|
});
|
|
6657
6657
|
var O = {
|
|
6658
6658
|
entries: function() {
|
|
6659
6659
|
return C;
|
|
6660
6660
|
},
|
|
6661
|
-
forEach: function(
|
|
6662
|
-
var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null,
|
|
6661
|
+
forEach: function(_) {
|
|
6662
|
+
var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, x = a(C), B;
|
|
6663
6663
|
try {
|
|
6664
|
-
for (
|
|
6665
|
-
var
|
|
6666
|
-
|
|
6664
|
+
for (x.s(); !(B = x.n()).done; ) {
|
|
6665
|
+
var P = s(B.value, 2), m = P[0], g = P[1];
|
|
6666
|
+
_.call(d, g, m, C);
|
|
6667
6667
|
}
|
|
6668
6668
|
} catch (y) {
|
|
6669
|
-
|
|
6669
|
+
x.e(y);
|
|
6670
6670
|
} finally {
|
|
6671
|
-
|
|
6671
|
+
x.f();
|
|
6672
6672
|
}
|
|
6673
6673
|
},
|
|
6674
|
-
get: function(
|
|
6675
|
-
var d = C.filter(function(
|
|
6676
|
-
return
|
|
6674
|
+
get: function(_) {
|
|
6675
|
+
var d = C.filter(function(x) {
|
|
6676
|
+
return x[0] === _;
|
|
6677
6677
|
})[0];
|
|
6678
6678
|
return d && d[1];
|
|
6679
6679
|
},
|
|
6680
|
-
has: function(
|
|
6681
|
-
return !!O.get(
|
|
6680
|
+
has: function(_) {
|
|
6681
|
+
return !!O.get(_);
|
|
6682
6682
|
},
|
|
6683
6683
|
keys: function() {
|
|
6684
|
-
return C.map(function(
|
|
6685
|
-
var d = s(
|
|
6686
|
-
return
|
|
6684
|
+
return C.map(function(_) {
|
|
6685
|
+
var d = s(_, 1), x = d[0];
|
|
6686
|
+
return x;
|
|
6687
6687
|
});
|
|
6688
6688
|
},
|
|
6689
6689
|
values: function() {
|
|
6690
|
-
return C.map(function(
|
|
6691
|
-
var d = s(
|
|
6692
|
-
return
|
|
6690
|
+
return C.map(function(_) {
|
|
6691
|
+
var d = s(_, 2), x = d[1];
|
|
6692
|
+
return x;
|
|
6693
6693
|
});
|
|
6694
6694
|
}
|
|
6695
6695
|
};
|
|
@@ -6727,14 +6727,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6727
6727
|
function s(m, g) {
|
|
6728
6728
|
var y = m == null ? null : typeof Symbol < "u" && m[Symbol.iterator] || m["@@iterator"];
|
|
6729
6729
|
if (y != null) {
|
|
6730
|
-
var p, b,
|
|
6730
|
+
var p, b, k, E, I = [], A = !0, G = !1;
|
|
6731
6731
|
try {
|
|
6732
|
-
if (
|
|
6732
|
+
if (k = (y = y.call(m)).next, g === 0) {
|
|
6733
6733
|
if (Object(y) !== y) return;
|
|
6734
6734
|
A = !1;
|
|
6735
|
-
} else for (; !(A = (p =
|
|
6736
|
-
} catch (
|
|
6737
|
-
G = !0, b =
|
|
6735
|
+
} else for (; !(A = (p = k.call(y)).done) && (I.push(p.value), I.length !== g); A = !0) ;
|
|
6736
|
+
} catch (V) {
|
|
6737
|
+
G = !0, b = V;
|
|
6738
6738
|
} finally {
|
|
6739
6739
|
try {
|
|
6740
6740
|
if (!A && y.return != null && (E = y.return(), Object(E) !== E)) return;
|
|
@@ -6752,23 +6752,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6752
6752
|
var f = c[R], C = t.default.get(f);
|
|
6753
6753
|
if (C)
|
|
6754
6754
|
for (var O = [].concat(C.baseConcepts, C.relatedConcepts), q = function() {
|
|
6755
|
-
var g = O[
|
|
6755
|
+
var g = O[_];
|
|
6756
6756
|
if (g.module === "HTML") {
|
|
6757
6757
|
var y = g.concept;
|
|
6758
6758
|
if (y) {
|
|
6759
6759
|
var p = h.filter(function(I) {
|
|
6760
|
-
return
|
|
6760
|
+
return x(I[0], y);
|
|
6761
6761
|
})[0], b;
|
|
6762
6762
|
p ? b = p[1] : b = [];
|
|
6763
|
-
for (var
|
|
6763
|
+
for (var k = !0, E = 0; E < b.length; E++)
|
|
6764
6764
|
if (b[E] === f) {
|
|
6765
|
-
|
|
6765
|
+
k = !1;
|
|
6766
6766
|
break;
|
|
6767
6767
|
}
|
|
6768
|
-
|
|
6768
|
+
k && b.push(f), p || h.push([y, b]);
|
|
6769
6769
|
}
|
|
6770
6770
|
}
|
|
6771
|
-
},
|
|
6771
|
+
}, _ = 0; _ < O.length; _++)
|
|
6772
6772
|
q();
|
|
6773
6773
|
}
|
|
6774
6774
|
var d = {
|
|
@@ -6777,13 +6777,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6777
6777
|
},
|
|
6778
6778
|
forEach: function(g) {
|
|
6779
6779
|
for (var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, p = 0, b = h; p < b.length; p++) {
|
|
6780
|
-
var
|
|
6780
|
+
var k = n(b[p], 2), E = k[0], I = k[1];
|
|
6781
6781
|
g.call(y, I, E, h);
|
|
6782
6782
|
}
|
|
6783
6783
|
},
|
|
6784
6784
|
get: function(g) {
|
|
6785
6785
|
var y = h.filter(function(p) {
|
|
6786
|
-
return g.name === p[0].name &&
|
|
6786
|
+
return g.name === p[0].name && P(g.attributes, p[0].attributes);
|
|
6787
6787
|
})[0];
|
|
6788
6788
|
return y && y[1];
|
|
6789
6789
|
},
|
|
@@ -6803,8 +6803,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6803
6803
|
});
|
|
6804
6804
|
}
|
|
6805
6805
|
};
|
|
6806
|
-
function
|
|
6807
|
-
return m.name === g.name && B(m.constraints, g.constraints) &&
|
|
6806
|
+
function x(m, g) {
|
|
6807
|
+
return m.name === g.name && B(m.constraints, g.constraints) && P(m.attributes, g.attributes);
|
|
6808
6808
|
}
|
|
6809
6809
|
function B(m, g) {
|
|
6810
6810
|
if (m === void 0 && g !== void 0 || m !== void 0 && g === void 0)
|
|
@@ -6818,7 +6818,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6818
6818
|
}
|
|
6819
6819
|
return !0;
|
|
6820
6820
|
}
|
|
6821
|
-
function
|
|
6821
|
+
function P(m, g) {
|
|
6822
6822
|
if (m === void 0 && g !== void 0 || m !== void 0 && g === void 0)
|
|
6823
6823
|
return !1;
|
|
6824
6824
|
if (m !== void 0 && g !== void 0) {
|
|
@@ -6840,41 +6840,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6840
6840
|
}
|
|
6841
6841
|
return wn.default = (0, e.default)(d, d.entries()), wn;
|
|
6842
6842
|
}
|
|
6843
|
-
var
|
|
6844
|
-
function
|
|
6845
|
-
if (Vs) return
|
|
6846
|
-
Vs = 1, Object.defineProperty(
|
|
6843
|
+
var kn = {}, Vs;
|
|
6844
|
+
function kh() {
|
|
6845
|
+
if (Vs) return kn;
|
|
6846
|
+
Vs = 1, Object.defineProperty(kn, "__esModule", {
|
|
6847
6847
|
value: !0
|
|
6848
|
-
}),
|
|
6848
|
+
}), kn.default = void 0;
|
|
6849
6849
|
var e = r(Nn()), t = r(Ao());
|
|
6850
|
-
function r(
|
|
6851
|
-
return
|
|
6850
|
+
function r(P) {
|
|
6851
|
+
return P && P.__esModule ? P : { default: P };
|
|
6852
6852
|
}
|
|
6853
|
-
function n(
|
|
6854
|
-
return l(
|
|
6853
|
+
function n(P, m) {
|
|
6854
|
+
return l(P) || s(P, m) || i(P, m) || o();
|
|
6855
6855
|
}
|
|
6856
6856
|
function o() {
|
|
6857
6857
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6858
6858
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
6859
6859
|
}
|
|
6860
|
-
function i(
|
|
6861
|
-
if (
|
|
6862
|
-
if (typeof
|
|
6863
|
-
var g = {}.toString.call(
|
|
6864
|
-
return g === "Object" &&
|
|
6860
|
+
function i(P, m) {
|
|
6861
|
+
if (P) {
|
|
6862
|
+
if (typeof P == "string") return a(P, m);
|
|
6863
|
+
var g = {}.toString.call(P).slice(8, -1);
|
|
6864
|
+
return g === "Object" && P.constructor && (g = P.constructor.name), g === "Map" || g === "Set" ? Array.from(P) : g === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g) ? a(P, m) : void 0;
|
|
6865
6865
|
}
|
|
6866
6866
|
}
|
|
6867
|
-
function a(
|
|
6868
|
-
(m == null || m >
|
|
6869
|
-
for (var g = 0, y = Array(m); g < m; g++) y[g] =
|
|
6867
|
+
function a(P, m) {
|
|
6868
|
+
(m == null || m > P.length) && (m = P.length);
|
|
6869
|
+
for (var g = 0, y = Array(m); g < m; g++) y[g] = P[g];
|
|
6870
6870
|
return y;
|
|
6871
6871
|
}
|
|
6872
|
-
function s(
|
|
6873
|
-
var g =
|
|
6872
|
+
function s(P, m) {
|
|
6873
|
+
var g = P == null ? null : typeof Symbol < "u" && P[Symbol.iterator] || P["@@iterator"];
|
|
6874
6874
|
if (g != null) {
|
|
6875
|
-
var y, p, b,
|
|
6875
|
+
var y, p, b, k, E = [], I = !0, A = !1;
|
|
6876
6876
|
try {
|
|
6877
|
-
if (b = (g = g.call(
|
|
6877
|
+
if (b = (g = g.call(P)).next, m === 0) {
|
|
6878
6878
|
if (Object(g) !== g) return;
|
|
6879
6879
|
I = !1;
|
|
6880
6880
|
} else for (; !(I = (y = b.call(g)).done) && (E.push(y.value), E.length !== m); I = !0) ;
|
|
@@ -6882,7 +6882,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6882
6882
|
A = !0, p = G;
|
|
6883
6883
|
} finally {
|
|
6884
6884
|
try {
|
|
6885
|
-
if (!I && g.return != null && (
|
|
6885
|
+
if (!I && g.return != null && (k = g.return(), Object(k) !== k)) return;
|
|
6886
6886
|
} finally {
|
|
6887
6887
|
if (A) throw p;
|
|
6888
6888
|
}
|
|
@@ -6890,17 +6890,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6890
6890
|
return E;
|
|
6891
6891
|
}
|
|
6892
6892
|
}
|
|
6893
|
-
function l(
|
|
6894
|
-
if (Array.isArray(
|
|
6893
|
+
function l(P) {
|
|
6894
|
+
if (Array.isArray(P)) return P;
|
|
6895
6895
|
}
|
|
6896
6896
|
for (var h = [], c = t.default.keys(), R = 0; R < c.length; R++) {
|
|
6897
6897
|
var f = c[R], C = t.default.get(f), O = [];
|
|
6898
6898
|
if (C) {
|
|
6899
|
-
for (var q = [].concat(C.baseConcepts, C.relatedConcepts),
|
|
6900
|
-
var d = q[
|
|
6899
|
+
for (var q = [].concat(C.baseConcepts, C.relatedConcepts), _ = 0; _ < q.length; _++) {
|
|
6900
|
+
var d = q[_];
|
|
6901
6901
|
if (d.module === "HTML") {
|
|
6902
|
-
var
|
|
6903
|
-
|
|
6902
|
+
var x = d.concept;
|
|
6903
|
+
x != null && O.push(x);
|
|
6904
6904
|
}
|
|
6905
6905
|
}
|
|
6906
6906
|
O.length > 0 && h.push([f, O]);
|
|
@@ -6912,8 +6912,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6912
6912
|
},
|
|
6913
6913
|
forEach: function(m) {
|
|
6914
6914
|
for (var g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, y = 0, p = h; y < p.length; y++) {
|
|
6915
|
-
var b = n(p[y], 2),
|
|
6916
|
-
m.call(g, E,
|
|
6915
|
+
var b = n(p[y], 2), k = b[0], E = b[1];
|
|
6916
|
+
m.call(g, E, k, h);
|
|
6917
6917
|
}
|
|
6918
6918
|
},
|
|
6919
6919
|
get: function(m) {
|
|
@@ -6938,21 +6938,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6938
6938
|
});
|
|
6939
6939
|
}
|
|
6940
6940
|
};
|
|
6941
|
-
return
|
|
6941
|
+
return kn.default = (0, e.default)(B, B.entries()), kn;
|
|
6942
6942
|
}
|
|
6943
6943
|
var Gs;
|
|
6944
|
-
function
|
|
6944
|
+
function Ph() {
|
|
6945
6945
|
if (Gs) return J;
|
|
6946
6946
|
Gs = 1, Object.defineProperty(J, "__esModule", {
|
|
6947
6947
|
value: !0
|
|
6948
6948
|
}), J.roles = J.roleElements = J.elementRoles = J.dom = J.aria = void 0;
|
|
6949
|
-
var e = i(Hd()), t = i(Ld()), r = i(Ao()), n = i(wh()), o = i(
|
|
6949
|
+
var e = i(Hd()), t = i(Ld()), r = i(Ao()), n = i(wh()), o = i(kh());
|
|
6950
6950
|
function i(a) {
|
|
6951
6951
|
return a && a.__esModule ? a : { default: a };
|
|
6952
6952
|
}
|
|
6953
6953
|
return J.aria = e.default, J.dom = t.default, J.roles = r.default, J.elementRoles = n.default, J.roleElements = o.default, J;
|
|
6954
6954
|
}
|
|
6955
|
-
var No =
|
|
6955
|
+
var No = Ph(), Ln = { exports: {} }, Ks;
|
|
6956
6956
|
function Eh() {
|
|
6957
6957
|
if (Ks) return Ln.exports;
|
|
6958
6958
|
Ks = 1;
|
|
@@ -6961,8 +6961,8 @@ function Eh() {
|
|
|
6961
6961
|
};
|
|
6962
6962
|
return Ln.exports = t(), Ln.exports.createColors = t, Ln.exports;
|
|
6963
6963
|
}
|
|
6964
|
-
var
|
|
6965
|
-
const
|
|
6964
|
+
var xh = /* @__PURE__ */ Eh();
|
|
6965
|
+
const _h = /* @__PURE__ */ Mo(xh);
|
|
6966
6966
|
var Wn = { exports: {} };
|
|
6967
6967
|
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
|
|
6968
6968
|
var Th = Wn.exports, zs;
|
|
@@ -7063,7 +7063,7 @@ function Sh(e, ...t) {
|
|
|
7063
7063
|
if (!(e instanceof r.Node))
|
|
7064
7064
|
throw new Xs(e, ...t);
|
|
7065
7065
|
}
|
|
7066
|
-
function
|
|
7066
|
+
function j(e, ...t) {
|
|
7067
7067
|
Bl(e, Ws, ...t);
|
|
7068
7068
|
const r = e.ownerDocument.defaultView;
|
|
7069
7069
|
if (!(e instanceof r.HTMLElement) && !(e instanceof r.SVGElement))
|
|
@@ -7175,11 +7175,11 @@ function jh(e, { wordConnector: t = ", ", lastWordConnector: r = " and " } = {})
|
|
|
7175
7175
|
function Do(e, t) {
|
|
7176
7176
|
return Array.isArray(e) && Array.isArray(t) ? [...new Set(e)].every((r) => new Set(t).has(r)) : e === t;
|
|
7177
7177
|
}
|
|
7178
|
-
function
|
|
7178
|
+
function Po(e, t) {
|
|
7179
7179
|
return no(
|
|
7180
7180
|
"toBeInTheDOM",
|
|
7181
7181
|
"Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."
|
|
7182
|
-
), e &&
|
|
7182
|
+
), e && j(e, Po, this), t && j(t, Po, this), {
|
|
7183
7183
|
pass: t ? t.contains(e) : !!e,
|
|
7184
7184
|
message: () => [
|
|
7185
7185
|
this.utils.matcherHint(
|
|
@@ -7197,7 +7197,7 @@ function ko(e, t) {
|
|
|
7197
7197
|
};
|
|
7198
7198
|
}
|
|
7199
7199
|
function Sl(e) {
|
|
7200
|
-
(e !== null || !this.isNot) &&
|
|
7200
|
+
(e !== null || !this.isNot) && j(e, Sl, this);
|
|
7201
7201
|
const t = e === null ? !1 : e.ownerDocument === e.getRootNode({ composed: !0 }), r = () => `expected document not to contain element, found ${this.utils.stringify(
|
|
7202
7202
|
e.cloneNode(!0)
|
|
7203
7203
|
)} instead`, n = () => "element could not be found in the document";
|
|
@@ -7220,7 +7220,7 @@ function Ml(e) {
|
|
|
7220
7220
|
return no(
|
|
7221
7221
|
"toBeEmpty",
|
|
7222
7222
|
"Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."
|
|
7223
|
-
),
|
|
7223
|
+
), j(e, Ml, this), {
|
|
7224
7224
|
pass: e.innerHTML === "",
|
|
7225
7225
|
message: () => [
|
|
7226
7226
|
this.utils.matcherHint(
|
|
@@ -7236,7 +7236,7 @@ function Ml(e) {
|
|
|
7236
7236
|
};
|
|
7237
7237
|
}
|
|
7238
7238
|
function Al(e) {
|
|
7239
|
-
return
|
|
7239
|
+
return j(e, Al, this), {
|
|
7240
7240
|
pass: Fh(e),
|
|
7241
7241
|
message: () => [
|
|
7242
7242
|
this.utils.matcherHint(
|
|
@@ -7255,7 +7255,7 @@ function Fh(e) {
|
|
|
7255
7255
|
return [...e.childNodes].filter((r) => r.nodeType !== 8).length === 0;
|
|
7256
7256
|
}
|
|
7257
7257
|
function Eo(e, t) {
|
|
7258
|
-
return
|
|
7258
|
+
return j(e, Eo, this), t !== null && j(t, Eo, this), {
|
|
7259
7259
|
pass: e.contains(t),
|
|
7260
7260
|
message: () => [
|
|
7261
7261
|
this.utils.matcherHint(
|
|
@@ -7278,7 +7278,7 @@ function Uh(e, t) {
|
|
|
7278
7278
|
return r.innerHTML = t, r.innerHTML;
|
|
7279
7279
|
}
|
|
7280
7280
|
function Nl(e, t) {
|
|
7281
|
-
if (
|
|
7281
|
+
if (j(e, Nl, this), typeof t != "string")
|
|
7282
7282
|
throw new Error(`.toContainHTML() expects a string value, got ${t}`);
|
|
7283
7283
|
return {
|
|
7284
7284
|
pass: e.outerHTML.includes(Uh(e, t)),
|
|
@@ -7319,8 +7319,8 @@ function Dl(e, t, r = { normalizeWhitespace: !0 }) {
|
|
|
7319
7319
|
}
|
|
7320
7320
|
};
|
|
7321
7321
|
}
|
|
7322
|
-
function
|
|
7323
|
-
|
|
7322
|
+
function xo(e, t) {
|
|
7323
|
+
j(e, xo, this);
|
|
7324
7324
|
const r = Ad(e), n = arguments.length === 1;
|
|
7325
7325
|
let o = !1;
|
|
7326
7326
|
return n ? o = r !== "" : o = t instanceof RegExp ? t.test(r) : this.equals(
|
|
@@ -7333,7 +7333,7 @@ function _o(e, t) {
|
|
|
7333
7333
|
return X(
|
|
7334
7334
|
this,
|
|
7335
7335
|
this.utils.matcherHint(
|
|
7336
|
-
`${this.isNot ? ".not" : ""}.${
|
|
7336
|
+
`${this.isNot ? ".not" : ""}.${xo.name}`,
|
|
7337
7337
|
"element",
|
|
7338
7338
|
""
|
|
7339
7339
|
),
|
|
@@ -7345,9 +7345,9 @@ function _o(e, t) {
|
|
|
7345
7345
|
}
|
|
7346
7346
|
};
|
|
7347
7347
|
}
|
|
7348
|
-
const
|
|
7348
|
+
const Pn = "aria-invalid", Vh = ["false"];
|
|
7349
7349
|
function $l(e, t) {
|
|
7350
|
-
|
|
7350
|
+
j(e, $l, this);
|
|
7351
7351
|
const r = this.isNot ? "not to" : "to", n = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", o = e.getAttribute("aria-errormessage");
|
|
7352
7352
|
if (!!o && /\s+/.test(o))
|
|
7353
7353
|
return {
|
|
@@ -7361,17 +7361,17 @@ function $l(e, t) {
|
|
|
7361
7361
|
`aria-errormessage="${o}"`
|
|
7362
7362
|
)
|
|
7363
7363
|
};
|
|
7364
|
-
const a = e.getAttribute(
|
|
7365
|
-
if (!e.hasAttribute(
|
|
7364
|
+
const a = e.getAttribute(Pn);
|
|
7365
|
+
if (!e.hasAttribute(Pn) || Vh.includes(a))
|
|
7366
7366
|
return {
|
|
7367
7367
|
pass: !1,
|
|
7368
7368
|
message: () => X(
|
|
7369
7369
|
this,
|
|
7370
7370
|
this.utils.matcherHint(n, "element"),
|
|
7371
7371
|
"Expected element to be marked as invalid with attribute",
|
|
7372
|
-
`${
|
|
7372
|
+
`${Pn}="${String(!0)}"`,
|
|
7373
7373
|
"Received",
|
|
7374
|
-
e.hasAttribute("aria-invalid") ? `${
|
|
7374
|
+
e.hasAttribute("aria-invalid") ? `${Pn}="${e.getAttribute(Pn)}` : null
|
|
7375
7375
|
)
|
|
7376
7376
|
};
|
|
7377
7377
|
const l = oo(
|
|
@@ -7390,8 +7390,8 @@ function $l(e, t) {
|
|
|
7390
7390
|
};
|
|
7391
7391
|
}
|
|
7392
7392
|
const Gh = Wh(No.elementRoles);
|
|
7393
|
-
function
|
|
7394
|
-
|
|
7393
|
+
function _o(e, t) {
|
|
7394
|
+
j(e, _o, this);
|
|
7395
7395
|
const r = Kh(e);
|
|
7396
7396
|
return {
|
|
7397
7397
|
pass: r.some((o) => o === t),
|
|
@@ -7400,7 +7400,7 @@ function xo(e, t) {
|
|
|
7400
7400
|
return X(
|
|
7401
7401
|
this,
|
|
7402
7402
|
this.utils.matcherHint(
|
|
7403
|
-
`${this.isNot ? ".not" : ""}.${
|
|
7403
|
+
`${this.isNot ? ".not" : ""}.${_o.name}`,
|
|
7404
7404
|
"element",
|
|
7405
7405
|
""
|
|
7406
7406
|
),
|
|
@@ -7456,7 +7456,7 @@ function Wh(e) {
|
|
|
7456
7456
|
return i.sort(n);
|
|
7457
7457
|
}
|
|
7458
7458
|
function To(e, t) {
|
|
7459
|
-
|
|
7459
|
+
j(e, To, this);
|
|
7460
7460
|
const r = Dd(e), n = arguments.length === 1;
|
|
7461
7461
|
let o = !1;
|
|
7462
7462
|
return n ? o = r !== "" : o = t instanceof RegExp ? t.test(r) : this.equals(r, t), {
|
|
@@ -7485,7 +7485,7 @@ function Xh(e, t, r) {
|
|
|
7485
7485
|
return r === void 0 ? `element.hasAttribute(${e(t)})` : `element.getAttribute(${e(t)}) === ${e(r)}`;
|
|
7486
7486
|
}
|
|
7487
7487
|
function Hl(e, t, r) {
|
|
7488
|
-
|
|
7488
|
+
j(e, Hl, this);
|
|
7489
7489
|
const n = r !== void 0, o = e.hasAttribute(t), i = e.getAttribute(t);
|
|
7490
7490
|
return {
|
|
7491
7491
|
pass: n ? o && this.equals(i, r) : o,
|
|
@@ -7528,7 +7528,7 @@ function Zs(e, t) {
|
|
|
7528
7528
|
);
|
|
7529
7529
|
}
|
|
7530
7530
|
function Ll(e, ...t) {
|
|
7531
|
-
|
|
7531
|
+
j(e, Ll, this);
|
|
7532
7532
|
const { expectedClassNames: r, options: n } = Yh(t), o = Js(e.getAttribute("class")), i = r.reduce(
|
|
7533
7533
|
(s, l) => s.concat(
|
|
7534
7534
|
typeof l == "string" || !l ? Js(l) : l
|
|
@@ -7610,11 +7610,11 @@ function Zh(e, t, r) {
|
|
|
7610
7610
|
(i, a) => Object.assign(i, { [a]: r.getPropertyValue(a) }),
|
|
7611
7611
|
{}
|
|
7612
7612
|
);
|
|
7613
|
-
return e(el(t), el(n)).replace(`${
|
|
7613
|
+
return e(el(t), el(n)).replace(`${_h.red("+ Received")}
|
|
7614
7614
|
`, "");
|
|
7615
7615
|
}
|
|
7616
7616
|
function Io(e, t) {
|
|
7617
|
-
|
|
7617
|
+
j(e, Io, this);
|
|
7618
7618
|
const r = typeof t == "object" ? t : Ah(t, Io, this), { getComputedStyle: n } = e.ownerDocument.defaultView, o = Qh(e.ownerDocument, r), i = n(e);
|
|
7619
7619
|
return {
|
|
7620
7620
|
pass: Jh(o, i),
|
|
@@ -7630,7 +7630,7 @@ function Io(e, t) {
|
|
|
7630
7630
|
};
|
|
7631
7631
|
}
|
|
7632
7632
|
function jl(e) {
|
|
7633
|
-
return
|
|
7633
|
+
return j(e, jl, this), {
|
|
7634
7634
|
pass: e.ownerDocument.activeElement === e,
|
|
7635
7635
|
message: () => [
|
|
7636
7636
|
this.utils.matcherHint(
|
|
@@ -7694,7 +7694,7 @@ function nm(e) {
|
|
|
7694
7694
|
);
|
|
7695
7695
|
}
|
|
7696
7696
|
function Fl(e, t) {
|
|
7697
|
-
if (
|
|
7697
|
+
if (j(e, Fl, this), !e.elements)
|
|
7698
7698
|
throw new Error("toHaveFormValues must be called on a form or a fieldset");
|
|
7699
7699
|
const r = nm(e);
|
|
7700
7700
|
return {
|
|
@@ -7725,7 +7725,7 @@ function Ul(e, t) {
|
|
|
7725
7725
|
return om(e) && im(e, t) && (!e.parentElement || Ul(e.parentElement, e));
|
|
7726
7726
|
}
|
|
7727
7727
|
function Vl(e) {
|
|
7728
|
-
|
|
7728
|
+
j(e, Vl, this);
|
|
7729
7729
|
const t = e.ownerDocument === e.getRootNode({ composed: !0 }), r = t && Ul(e);
|
|
7730
7730
|
return {
|
|
7731
7731
|
pass: r,
|
|
@@ -7780,7 +7780,7 @@ function Wl(e) {
|
|
|
7780
7780
|
return Gl(e) && (Kl(e) || zl(e));
|
|
7781
7781
|
}
|
|
7782
7782
|
function Xl(e) {
|
|
7783
|
-
|
|
7783
|
+
j(e, Xl, this);
|
|
7784
7784
|
const t = Wl(e);
|
|
7785
7785
|
return {
|
|
7786
7786
|
pass: t,
|
|
@@ -7801,7 +7801,7 @@ function Xl(e) {
|
|
|
7801
7801
|
};
|
|
7802
7802
|
}
|
|
7803
7803
|
function Yl(e) {
|
|
7804
|
-
|
|
7804
|
+
j(e, Yl, this);
|
|
7805
7805
|
const t = !Wl(e);
|
|
7806
7806
|
return {
|
|
7807
7807
|
pass: t,
|
|
@@ -7848,7 +7848,7 @@ function bm(e) {
|
|
|
7848
7848
|
return e.hasAttribute("aria-required") && e.getAttribute("aria-required") === "true" && (dm.includes(be(e)) || e.hasAttribute("role") && fm.includes(e.getAttribute("role")));
|
|
7849
7849
|
}
|
|
7850
7850
|
function Ql(e) {
|
|
7851
|
-
|
|
7851
|
+
j(e, Ql, this);
|
|
7852
7852
|
const t = hm(e) || mm(e) || bm(e);
|
|
7853
7853
|
return {
|
|
7854
7854
|
pass: t,
|
|
@@ -7880,7 +7880,7 @@ function Jl(e) {
|
|
|
7880
7880
|
return ym(e) ? t || !e.checkValidity() : t;
|
|
7881
7881
|
}
|
|
7882
7882
|
function Zl(e) {
|
|
7883
|
-
|
|
7883
|
+
j(e, Zl, this);
|
|
7884
7884
|
const t = Jl(e);
|
|
7885
7885
|
return {
|
|
7886
7886
|
pass: t,
|
|
@@ -7901,7 +7901,7 @@ function Zl(e) {
|
|
|
7901
7901
|
};
|
|
7902
7902
|
}
|
|
7903
7903
|
function eu(e) {
|
|
7904
|
-
|
|
7904
|
+
j(e, eu, this);
|
|
7905
7905
|
const t = !Jl(e);
|
|
7906
7906
|
return {
|
|
7907
7907
|
pass: t,
|
|
@@ -7922,7 +7922,7 @@ function eu(e) {
|
|
|
7922
7922
|
};
|
|
7923
7923
|
}
|
|
7924
7924
|
function tu(e, t) {
|
|
7925
|
-
if (
|
|
7925
|
+
if (j(e, tu, this), e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type))
|
|
7926
7926
|
throw new Error(
|
|
7927
7927
|
"input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead"
|
|
7928
7928
|
);
|
|
@@ -7948,7 +7948,7 @@ function tu(e, t) {
|
|
|
7948
7948
|
};
|
|
7949
7949
|
}
|
|
7950
7950
|
function ru(e, t) {
|
|
7951
|
-
|
|
7951
|
+
j(e, ru, this);
|
|
7952
7952
|
const r = e.tagName.toLowerCase();
|
|
7953
7953
|
if (!["select", "input", "textarea"].includes(r))
|
|
7954
7954
|
throw new Error(
|
|
@@ -7986,7 +7986,7 @@ function Cm(e) {
|
|
|
7986
7986
|
return e instanceof Array ? e : [e];
|
|
7987
7987
|
}
|
|
7988
7988
|
function nu(e) {
|
|
7989
|
-
|
|
7989
|
+
j(e, nu, this);
|
|
7990
7990
|
const t = () => e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type), r = () => ou(e.getAttribute("role")) && ["true", "false"].includes(e.getAttribute("aria-checked"));
|
|
7991
7991
|
if (!t() && !r())
|
|
7992
7992
|
return {
|
|
@@ -8025,7 +8025,7 @@ function ou(e) {
|
|
|
8025
8025
|
return No.roles.get(e)?.props["aria-checked"] !== void 0;
|
|
8026
8026
|
}
|
|
8027
8027
|
function iu(e) {
|
|
8028
|
-
|
|
8028
|
+
j(e, iu, this);
|
|
8029
8029
|
const t = () => e.tagName.toLowerCase() === "input" && e.type === "checkbox", r = () => e.getAttribute("role") === "checkbox";
|
|
8030
8030
|
if (!t() && !r())
|
|
8031
8031
|
return {
|
|
@@ -8058,7 +8058,7 @@ function au(e, t) {
|
|
|
8058
8058
|
no(
|
|
8059
8059
|
"toHaveDescription",
|
|
8060
8060
|
"Please use toHaveAccessibleDescription."
|
|
8061
|
-
),
|
|
8061
|
+
), j(e, au, this);
|
|
8062
8062
|
const r = t !== void 0, o = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean);
|
|
8063
8063
|
let i = "";
|
|
8064
8064
|
if (o.length > 0) {
|
|
@@ -8085,7 +8085,7 @@ function au(e, t) {
|
|
|
8085
8085
|
};
|
|
8086
8086
|
}
|
|
8087
8087
|
function su(e, t) {
|
|
8088
|
-
if (no("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."),
|
|
8088
|
+
if (no("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), j(e, su, this), !e.hasAttribute("aria-invalid") || e.getAttribute("aria-invalid") === "false") {
|
|
8089
8089
|
const a = this.isNot ? ".not" : "";
|
|
8090
8090
|
return {
|
|
8091
8091
|
pass: !1,
|
|
@@ -8126,7 +8126,7 @@ function su(e, t) {
|
|
|
8126
8126
|
}
|
|
8127
8127
|
};
|
|
8128
8128
|
}
|
|
8129
|
-
function
|
|
8129
|
+
function km(e) {
|
|
8130
8130
|
const t = e.ownerDocument.getSelection();
|
|
8131
8131
|
if (["input", "textarea"].includes(e.tagName.toLowerCase()))
|
|
8132
8132
|
return ["radio", "checkbox"].includes(e.type) ? "" : e.value.toString().substring(e.selectionStart, e.selectionEnd);
|
|
@@ -8149,11 +8149,11 @@ function Pm(e) {
|
|
|
8149
8149
|
return t.removeAllRanges(), t.addRange(r), o;
|
|
8150
8150
|
}
|
|
8151
8151
|
function lu(e, t) {
|
|
8152
|
-
|
|
8152
|
+
j(e, lu, this);
|
|
8153
8153
|
const r = t !== void 0;
|
|
8154
8154
|
if (r && typeof t != "string")
|
|
8155
8155
|
throw new Error("expected selection must be a string or undefined");
|
|
8156
|
-
const n =
|
|
8156
|
+
const n = km(e);
|
|
8157
8157
|
return {
|
|
8158
8158
|
pass: r ? Do(n, t) : !!n,
|
|
8159
8159
|
message: () => {
|
|
@@ -8174,7 +8174,7 @@ function lu(e, t) {
|
|
|
8174
8174
|
};
|
|
8175
8175
|
}
|
|
8176
8176
|
function uu(e) {
|
|
8177
|
-
|
|
8177
|
+
j(e, uu, this);
|
|
8178
8178
|
const t = (e.getAttribute("role") || "").split(" ").map((a) => a.trim()), r = e.tagName.toLowerCase() === "button" || e.tagName.toLowerCase() === "input" && e.type === "button" || t.includes("button"), n = e.getAttribute("aria-pressed");
|
|
8179
8179
|
return !r || !(n === "true" || n === "false") ? {
|
|
8180
8180
|
pass: !1,
|
|
@@ -8199,7 +8199,7 @@ function uu(e) {
|
|
|
8199
8199
|
};
|
|
8200
8200
|
}
|
|
8201
8201
|
function cu(e) {
|
|
8202
|
-
|
|
8202
|
+
j(e, cu, this);
|
|
8203
8203
|
const t = (e.getAttribute("role") || "").split(" ").map((a) => a.trim()), r = e.tagName.toLowerCase() === "button" || e.tagName.toLowerCase() === "input" && e.type === "button" || t.includes("button"), n = e.getAttribute("aria-pressed");
|
|
8204
8204
|
return !r || !(n === "true" || n === "false" || n === "mixed") ? {
|
|
8205
8205
|
pass: !1,
|
|
@@ -8223,14 +8223,14 @@ function cu(e) {
|
|
|
8223
8223
|
}
|
|
8224
8224
|
};
|
|
8225
8225
|
}
|
|
8226
|
-
var
|
|
8226
|
+
var Pm = /* @__PURE__ */ Object.freeze({
|
|
8227
8227
|
__proto__: null,
|
|
8228
8228
|
toBeChecked: nu,
|
|
8229
8229
|
toBeDisabled: Xl,
|
|
8230
8230
|
toBeEmpty: Ml,
|
|
8231
8231
|
toBeEmptyDOMElement: Al,
|
|
8232
8232
|
toBeEnabled: Yl,
|
|
8233
|
-
toBeInTheDOM:
|
|
8233
|
+
toBeInTheDOM: Po,
|
|
8234
8234
|
toBeInTheDocument: Sl,
|
|
8235
8235
|
toBeInvalid: Zl,
|
|
8236
8236
|
toBePartiallyChecked: iu,
|
|
@@ -8241,7 +8241,7 @@ var km = /* @__PURE__ */ Object.freeze({
|
|
|
8241
8241
|
toBeVisible: Vl,
|
|
8242
8242
|
toContainElement: Eo,
|
|
8243
8243
|
toContainHTML: Nl,
|
|
8244
|
-
toHaveAccessibleDescription:
|
|
8244
|
+
toHaveAccessibleDescription: xo,
|
|
8245
8245
|
toHaveAccessibleErrorMessage: $l,
|
|
8246
8246
|
toHaveAccessibleName: To,
|
|
8247
8247
|
toHaveAttribute: Hl,
|
|
@@ -8251,13 +8251,13 @@ var km = /* @__PURE__ */ Object.freeze({
|
|
|
8251
8251
|
toHaveErrorMessage: su,
|
|
8252
8252
|
toHaveFocus: jl,
|
|
8253
8253
|
toHaveFormValues: Fl,
|
|
8254
|
-
toHaveRole:
|
|
8254
|
+
toHaveRole: _o,
|
|
8255
8255
|
toHaveSelection: lu,
|
|
8256
8256
|
toHaveStyle: Io,
|
|
8257
8257
|
toHaveTextContent: Dl,
|
|
8258
8258
|
toHaveValue: tu
|
|
8259
8259
|
});
|
|
8260
|
-
v.extend(
|
|
8260
|
+
v.extend(Pm);
|
|
8261
8261
|
function M(e, t, r) {
|
|
8262
8262
|
return e.namespaceURI && e.namespaceURI !== "http://www.w3.org/1999/xhtml" || (t = Array.isArray(t) ? t : [
|
|
8263
8263
|
t
|
|
@@ -8269,12 +8269,12 @@ function te(e) {
|
|
|
8269
8269
|
return e.defaultView;
|
|
8270
8270
|
if (!((t = e.ownerDocument) === null || t === void 0) && t.defaultView)
|
|
8271
8271
|
return e.ownerDocument.defaultView;
|
|
8272
|
-
throw new Error(`Could not determine window of node. Node was ${
|
|
8272
|
+
throw new Error(`Could not determine window of node. Node was ${xm(e)}`);
|
|
8273
8273
|
}
|
|
8274
8274
|
function Em(e) {
|
|
8275
8275
|
return e.nodeType === 9;
|
|
8276
8276
|
}
|
|
8277
|
-
function
|
|
8277
|
+
function xm(e) {
|
|
8278
8278
|
return typeof e == "function" ? `function ${e.name}` : e === null ? "null" : String(e);
|
|
8279
8279
|
}
|
|
8280
8280
|
function du(e, t) {
|
|
@@ -8320,7 +8320,7 @@ class pu {
|
|
|
8320
8320
|
me(this, "kind", void 0), me(this, "type", void 0), me(this, "file", null), me(this, "data", void 0), typeof t == "string" ? (this.kind = "string", this.type = String(r), this.data = t) : (this.kind = "file", this.type = t.type, this.file = t);
|
|
8321
8321
|
}
|
|
8322
8322
|
}
|
|
8323
|
-
class
|
|
8323
|
+
class _m extends Array {
|
|
8324
8324
|
add(...t) {
|
|
8325
8325
|
const r = new pu(t[0], t[1]);
|
|
8326
8326
|
return this.push(r), r;
|
|
@@ -8365,7 +8365,7 @@ function Tm(e) {
|
|
|
8365
8365
|
setDragImage() {
|
|
8366
8366
|
}
|
|
8367
8367
|
constructor() {
|
|
8368
|
-
me(this, "dropEffect", "none"), me(this, "effectAllowed", "uninitialized"), me(this, "items", new
|
|
8368
|
+
me(this, "dropEffect", "none"), me(this, "effectAllowed", "uninitialized"), me(this, "items", new _m()), me(this, "files", $o(e, []));
|
|
8369
8369
|
}
|
|
8370
8370
|
}();
|
|
8371
8371
|
}
|
|
@@ -8561,7 +8561,7 @@ function Nm(e, t) {
|
|
|
8561
8561
|
r = r.parentElement;
|
|
8562
8562
|
} while (r && r !== e.ownerDocument.body);
|
|
8563
8563
|
}
|
|
8564
|
-
function
|
|
8564
|
+
function ke(e) {
|
|
8565
8565
|
return e.hasAttribute("contenteditable") && (e.getAttribute("contenteditable") == "true" || e.getAttribute("contenteditable") == "");
|
|
8566
8566
|
}
|
|
8567
8567
|
function Sn(e) {
|
|
@@ -8578,7 +8578,7 @@ function gu(e) {
|
|
|
8578
8578
|
return M(e, "button") || M(e, "input") && e.type in vu;
|
|
8579
8579
|
}
|
|
8580
8580
|
function Be(e) {
|
|
8581
|
-
return Ru(e) && !e.readOnly ||
|
|
8581
|
+
return Ru(e) && !e.readOnly || ke(e);
|
|
8582
8582
|
}
|
|
8583
8583
|
var yu = /* @__PURE__ */ (function(e) {
|
|
8584
8584
|
return e.text = "text", e.date = "date", e["datetime-local"] = "datetime-local", e.email = "email", e.month = "month", e.number = "number", e.password = "password", e.search = "search", e.tel = "tel", e.time = "time", e.url = "url", e.week = "week", e;
|
|
@@ -8610,7 +8610,7 @@ function Hm(e) {
|
|
|
8610
8610
|
}
|
|
8611
8611
|
}
|
|
8612
8612
|
function Oe(e, t) {
|
|
8613
|
-
return
|
|
8613
|
+
return xe().eventWrapper(e);
|
|
8614
8614
|
}
|
|
8615
8615
|
function ve(e) {
|
|
8616
8616
|
const t = Nm(e, jo), r = Dn(e.ownerDocument);
|
|
@@ -8713,18 +8713,18 @@ function wu(e, t) {
|
|
|
8713
8713
|
const r = e.cloneNode();
|
|
8714
8714
|
return r.value = t, r.value === t;
|
|
8715
8715
|
}
|
|
8716
|
-
var
|
|
8716
|
+
var ku = /* @__PURE__ */ (function(e) {
|
|
8717
8717
|
return e.email = "email", e.password = "password", e.search = "search", e.telephone = "telephone", e.text = "text", e.url = "url", e;
|
|
8718
|
-
})(
|
|
8718
|
+
})(ku || {});
|
|
8719
8719
|
function Wm(e) {
|
|
8720
8720
|
var t;
|
|
8721
8721
|
const r = (t = e.getAttribute("maxlength")) !== null && t !== void 0 ? t : "";
|
|
8722
8722
|
return /^\d+$/.test(r) && Number(r) >= 0 ? Number(r) : void 0;
|
|
8723
8723
|
}
|
|
8724
8724
|
function Xm(e) {
|
|
8725
|
-
return M(e, "textarea") || M(e, "input") && e.type in
|
|
8725
|
+
return M(e, "textarea") || M(e, "input") && e.type in ku;
|
|
8726
8726
|
}
|
|
8727
|
-
function
|
|
8727
|
+
function Pu(e, t, r, n) {
|
|
8728
8728
|
if (Yn(e) && t + r >= 0 && t + r <= e.nodeValue.length)
|
|
8729
8729
|
return {
|
|
8730
8730
|
node: e,
|
|
@@ -8796,7 +8796,7 @@ function Qm(e, t, r) {
|
|
|
8796
8796
|
if (o) {
|
|
8797
8797
|
if (e = Jm(o, t === "next" ? "first" : "last"), r(e))
|
|
8798
8798
|
return e;
|
|
8799
|
-
} else if (e.parentNode && (!Uo(e.parentNode) || !
|
|
8799
|
+
} else if (e.parentNode && (!Uo(e.parentNode) || !ke(e.parentNode) && e.parentNode !== ((n = e.ownerDocument) === null || n === void 0 ? void 0 : n.body)))
|
|
8800
8800
|
e = e.parentNode;
|
|
8801
8801
|
else
|
|
8802
8802
|
break;
|
|
@@ -8858,7 +8858,7 @@ function ob(e) {
|
|
|
8858
8858
|
return (r = t.selection) === null || r === void 0 ? void 0 : r.getRangeAt(0);
|
|
8859
8859
|
}
|
|
8860
8860
|
}
|
|
8861
|
-
function
|
|
8861
|
+
function Pe({ focusNode: e, focusOffset: t, anchorNode: r = e, anchorOffset: n = t }) {
|
|
8862
8862
|
var o, i;
|
|
8863
8863
|
if (Eu(e).type === "input")
|
|
8864
8864
|
return Ne(e, {
|
|
@@ -8867,7 +8867,7 @@ function ke({ focusNode: e, focusOffset: t, anchorNode: r = e, anchorOffset: n =
|
|
|
8867
8867
|
});
|
|
8868
8868
|
(i = r.ownerDocument) === null || i === void 0 || (o = i.getSelection()) === null || o === void 0 || o.setBaseAndExtent(r, n, e, t);
|
|
8869
8869
|
}
|
|
8870
|
-
function
|
|
8870
|
+
function xu(e) {
|
|
8871
8871
|
return M(e, "input") && [
|
|
8872
8872
|
"date",
|
|
8873
8873
|
"time"
|
|
@@ -8875,7 +8875,7 @@ function _u(e) {
|
|
|
8875
8875
|
}
|
|
8876
8876
|
function Me(e, t, r, n = "insertText") {
|
|
8877
8877
|
const o = ob(t);
|
|
8878
|
-
o && (!
|
|
8878
|
+
o && (!xu(t) && !e.dispatchUIEvent(t, "beforeinput", {
|
|
8879
8879
|
inputType: n,
|
|
8880
8880
|
data: r
|
|
8881
8881
|
}) || ("startContainer" in o ? ib(e, t, o, r, n) : ab(e, t, o, r, n)));
|
|
@@ -8888,7 +8888,7 @@ function ib(e, t, r, n, o) {
|
|
|
8888
8888
|
"deleteContentBackward",
|
|
8889
8889
|
"deleteContentForward"
|
|
8890
8890
|
].includes(o)) {
|
|
8891
|
-
const a =
|
|
8891
|
+
const a = Pu(r.startContainer, r.startOffset, o === "deleteContentBackward" ? -1 : 1, o);
|
|
8892
8892
|
if (a) {
|
|
8893
8893
|
i = !0;
|
|
8894
8894
|
const s = r.cloneRange();
|
|
@@ -8922,11 +8922,11 @@ function ab(e, t, r, n, o) {
|
|
|
8922
8922
|
const { newValue: a, newOffset: s, oldValue: l } = sb(i, t, r, o);
|
|
8923
8923
|
a === l && s === r.startOffset && s === r.endOffset || M(t, "input", {
|
|
8924
8924
|
type: "number"
|
|
8925
|
-
}) && !lb(a) || (Um(t, a),
|
|
8925
|
+
}) && !lb(a) || (Um(t, a), Pe({
|
|
8926
8926
|
focusNode: t,
|
|
8927
8927
|
anchorOffset: s,
|
|
8928
8928
|
focusOffset: s
|
|
8929
|
-
}),
|
|
8929
|
+
}), xu(t) ? wu(t, a) && (ol(e, t, s, {}), e.dispatchUIEvent(t, "change"), qu(t)) : ol(e, t, s, {
|
|
8930
8930
|
data: n,
|
|
8931
8931
|
inputType: o
|
|
8932
8932
|
}));
|
|
@@ -8958,7 +8958,7 @@ ge.cut = (e, t, r) => () => {
|
|
|
8958
8958
|
Be(t) && Me(r, t, "", "deleteByCut");
|
|
8959
8959
|
};
|
|
8960
8960
|
function ub(e) {
|
|
8961
|
-
return e ?
|
|
8961
|
+
return e ? ke(e) ? e.textContent : ie(e) : null;
|
|
8962
8962
|
}
|
|
8963
8963
|
function cb(e) {
|
|
8964
8964
|
const t = te(e);
|
|
@@ -9011,7 +9011,7 @@ function db(e, t) {
|
|
|
9011
9011
|
function il(e, t) {
|
|
9012
9012
|
if (oe(e)) {
|
|
9013
9013
|
const r = Mn(e);
|
|
9014
|
-
|
|
9014
|
+
Pe({
|
|
9015
9015
|
focusNode: e,
|
|
9016
9016
|
focusOffset: r.startOffset === r.endOffset ? r.focusOffset + t : t < 0 ? r.startOffset : r.endOffset
|
|
9017
9017
|
});
|
|
@@ -9020,8 +9020,8 @@ function il(e, t) {
|
|
|
9020
9020
|
if (!r?.focusNode)
|
|
9021
9021
|
return;
|
|
9022
9022
|
if (r.isCollapsed) {
|
|
9023
|
-
const n =
|
|
9024
|
-
n &&
|
|
9023
|
+
const n = Pu(r.focusNode, r.focusOffset, t);
|
|
9024
|
+
n && Pe({
|
|
9025
9025
|
focusNode: n.node,
|
|
9026
9026
|
focusOffset: n.offset
|
|
9027
9027
|
});
|
|
@@ -9029,16 +9029,16 @@ function il(e, t) {
|
|
|
9029
9029
|
r[t < 0 ? "collapseToStart" : "collapseToEnd"]();
|
|
9030
9030
|
}
|
|
9031
9031
|
}
|
|
9032
|
-
function
|
|
9032
|
+
function _u(e) {
|
|
9033
9033
|
if (oe(e))
|
|
9034
|
-
return
|
|
9034
|
+
return Pe({
|
|
9035
9035
|
focusNode: e,
|
|
9036
9036
|
anchorOffset: 0,
|
|
9037
9037
|
focusOffset: ie(e).length
|
|
9038
9038
|
});
|
|
9039
9039
|
var t;
|
|
9040
9040
|
const r = (t = Sn(e)) !== null && t !== void 0 ? t : e.ownerDocument.body;
|
|
9041
|
-
|
|
9041
|
+
Pe({
|
|
9042
9042
|
focusNode: r,
|
|
9043
9043
|
anchorOffset: 0,
|
|
9044
9044
|
focusOffset: r.childNodes.length
|
|
@@ -9051,16 +9051,16 @@ function pb(e) {
|
|
|
9051
9051
|
const r = (t = Sn(e)) !== null && t !== void 0 ? t : e.ownerDocument.body, n = e.ownerDocument.getSelection();
|
|
9052
9052
|
return n?.anchorNode === r && n.focusNode === r && n.anchorOffset === 0 && n.focusOffset === r.childNodes.length;
|
|
9053
9053
|
}
|
|
9054
|
-
function
|
|
9054
|
+
function xn(e, t, r) {
|
|
9055
9055
|
var n;
|
|
9056
9056
|
if (oe(e))
|
|
9057
|
-
return
|
|
9057
|
+
return Pe({
|
|
9058
9058
|
focusNode: e,
|
|
9059
9059
|
anchorOffset: t,
|
|
9060
9060
|
focusOffset: r
|
|
9061
9061
|
});
|
|
9062
|
-
if (
|
|
9063
|
-
return
|
|
9062
|
+
if (ke(e) && ((n = e.firstChild) === null || n === void 0 ? void 0 : n.nodeType) === 3)
|
|
9063
|
+
return Pe({
|
|
9064
9064
|
focusNode: e.firstChild,
|
|
9065
9065
|
anchorOffset: t,
|
|
9066
9066
|
focusOffset: r
|
|
@@ -9117,23 +9117,23 @@ const al = {
|
|
|
9117
9117
|
if (M(t, [
|
|
9118
9118
|
"input",
|
|
9119
9119
|
"textarea"
|
|
9120
|
-
]) ||
|
|
9120
|
+
]) || ke(t))
|
|
9121
9121
|
return () => {
|
|
9122
9122
|
var r, n;
|
|
9123
9123
|
const o = (n = (r = ub(t)) === null || r === void 0 ? void 0 : r.length) !== null && n !== void 0 ? n : (
|
|
9124
9124
|
/* istanbul ignore next */
|
|
9125
9125
|
0
|
|
9126
9126
|
);
|
|
9127
|
-
|
|
9127
|
+
xn(t, o, o);
|
|
9128
9128
|
};
|
|
9129
9129
|
},
|
|
9130
9130
|
Home: (e, t) => {
|
|
9131
9131
|
if (M(t, [
|
|
9132
9132
|
"input",
|
|
9133
9133
|
"textarea"
|
|
9134
|
-
]) ||
|
|
9134
|
+
]) || ke(t))
|
|
9135
9135
|
return () => {
|
|
9136
|
-
|
|
9136
|
+
xn(t, 0, 0);
|
|
9137
9137
|
};
|
|
9138
9138
|
},
|
|
9139
9139
|
PageDown: (e, t) => {
|
|
@@ -9142,7 +9142,7 @@ const al = {
|
|
|
9142
9142
|
]))
|
|
9143
9143
|
return () => {
|
|
9144
9144
|
const r = ie(t).length;
|
|
9145
|
-
|
|
9145
|
+
xn(t, r, r);
|
|
9146
9146
|
};
|
|
9147
9147
|
},
|
|
9148
9148
|
PageUp: (e, t) => {
|
|
@@ -9150,7 +9150,7 @@ const al = {
|
|
|
9150
9150
|
"input"
|
|
9151
9151
|
]))
|
|
9152
9152
|
return () => {
|
|
9153
|
-
|
|
9153
|
+
xn(t, 0, 0);
|
|
9154
9154
|
};
|
|
9155
9155
|
},
|
|
9156
9156
|
Tab: (e, t, r) => () => {
|
|
@@ -9162,7 +9162,7 @@ const al = {
|
|
|
9162
9162
|
}
|
|
9163
9163
|
}, fb = (e, t, r) => {
|
|
9164
9164
|
if (e.code === "KeyA" && r.system.keyboard.modifiers.Control)
|
|
9165
|
-
return () =>
|
|
9165
|
+
return () => _u(t);
|
|
9166
9166
|
};
|
|
9167
9167
|
ge.keypress = (e, t, r) => {
|
|
9168
9168
|
if (e.key === "Enter") {
|
|
@@ -9176,7 +9176,7 @@ ge.keypress = (e, t, r) => {
|
|
|
9176
9176
|
}
|
|
9177
9177
|
}
|
|
9178
9178
|
if (Be(t)) {
|
|
9179
|
-
const n = e.key === "Enter" ?
|
|
9179
|
+
const n = e.key === "Enter" ? ke(t) && !r.system.keyboard.modifiers.Shift ? "insertParagraph" : "insertLineBreak" : "insertText", o = e.key === "Enter" ? `
|
|
9180
9180
|
` : e.key;
|
|
9181
9181
|
return () => Me(r, t, o, n);
|
|
9182
9182
|
}
|
|
@@ -9513,12 +9513,12 @@ const yb = {
|
|
|
9513
9513
|
En,
|
|
9514
9514
|
yo,
|
|
9515
9515
|
ll,
|
|
9516
|
-
|
|
9516
|
+
Pb
|
|
9517
9517
|
],
|
|
9518
9518
|
KeyboardEvent: [
|
|
9519
9519
|
En,
|
|
9520
9520
|
yo,
|
|
9521
|
-
|
|
9521
|
+
kb
|
|
9522
9522
|
]
|
|
9523
9523
|
};
|
|
9524
9524
|
function Bu(e, t, r) {
|
|
@@ -9548,13 +9548,13 @@ function Rb(e) {
|
|
|
9548
9548
|
const O = (C = e.UIEvent) !== null && C !== void 0 ? C : class extends r {
|
|
9549
9549
|
};
|
|
9550
9550
|
var q;
|
|
9551
|
-
const
|
|
9551
|
+
const _ = (q = e.CompositionEvent) !== null && q !== void 0 ? q : class extends O {
|
|
9552
9552
|
};
|
|
9553
9553
|
var d;
|
|
9554
|
-
const
|
|
9554
|
+
const x = (d = e.FocusEvent) !== null && d !== void 0 ? d : class extends O {
|
|
9555
9555
|
};
|
|
9556
9556
|
var B;
|
|
9557
|
-
const
|
|
9557
|
+
const P = (B = e.InputEvent) !== null && B !== void 0 ? B : class extends O {
|
|
9558
9558
|
};
|
|
9559
9559
|
var m;
|
|
9560
9560
|
const g = (m = e.KeyboardEvent) !== null && m !== void 0 ? m : class extends O {
|
|
@@ -9563,7 +9563,7 @@ function Rb(e) {
|
|
|
9563
9563
|
const p = (y = e.MouseEvent) !== null && y !== void 0 ? y : class extends O {
|
|
9564
9564
|
};
|
|
9565
9565
|
var b;
|
|
9566
|
-
const
|
|
9566
|
+
const k = (b = e.DragEvent) !== null && b !== void 0 ? b : class extends p {
|
|
9567
9567
|
};
|
|
9568
9568
|
var E;
|
|
9569
9569
|
const I = (E = e.PointerEvent) !== null && E !== void 0 ? E : class extends p {
|
|
@@ -9579,12 +9579,12 @@ function Rb(e) {
|
|
|
9579
9579
|
ProgressEvent: c,
|
|
9580
9580
|
TransitionEvent: f,
|
|
9581
9581
|
UIEvent: O,
|
|
9582
|
-
CompositionEvent:
|
|
9583
|
-
FocusEvent:
|
|
9584
|
-
InputEvent:
|
|
9582
|
+
CompositionEvent: _,
|
|
9583
|
+
FocusEvent: x,
|
|
9584
|
+
InputEvent: P,
|
|
9585
9585
|
KeyboardEvent: g,
|
|
9586
9586
|
MouseEvent: p,
|
|
9587
|
-
DragEvent:
|
|
9587
|
+
DragEvent: k,
|
|
9588
9588
|
PointerEvent: I,
|
|
9589
9589
|
TouchEvent: G
|
|
9590
9590
|
};
|
|
@@ -9645,7 +9645,7 @@ function yo(e, { altKey: t, ctrlKey: r, metaKey: n, shiftKey: o, modifierAltGrap
|
|
|
9645
9645
|
}
|
|
9646
9646
|
});
|
|
9647
9647
|
}
|
|
9648
|
-
function
|
|
9648
|
+
function kb(e, { key: t, code: r, location: n, repeat: o, isComposing: i, charCode: a }) {
|
|
9649
9649
|
ye(e, {
|
|
9650
9650
|
key: String(t),
|
|
9651
9651
|
code: String(r),
|
|
@@ -9672,7 +9672,7 @@ function ll(e, { x: t, y: r, screenX: n, screenY: o, clientX: i = t, clientY: a
|
|
|
9672
9672
|
pageY: z(C)
|
|
9673
9673
|
});
|
|
9674
9674
|
}
|
|
9675
|
-
function
|
|
9675
|
+
function Pb(e, { pointerId: t, width: r, height: n, pressure: o, tangentialPressure: i, tiltX: a, tiltY: s, twist: l, pointerType: h, isPrimary: c }) {
|
|
9676
9676
|
ye(e, {
|
|
9677
9677
|
pointerId: z(t),
|
|
9678
9678
|
width: z(r ?? 1),
|
|
@@ -9773,7 +9773,7 @@ function cl(e) {
|
|
|
9773
9773
|
return t?.tagName === "BODY" ? null : t;
|
|
9774
9774
|
}
|
|
9775
9775
|
const Ro = Symbol("Interceptor for programmatical calls");
|
|
9776
|
-
function
|
|
9776
|
+
function _e(e, t, r) {
|
|
9777
9777
|
const n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), o = Object.getOwnPropertyDescriptor(e, t), i = n?.set ? "set" : "value";
|
|
9778
9778
|
if (typeof n?.[i] != "function" || n[i][Ro])
|
|
9779
9779
|
throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);
|
|
@@ -9786,23 +9786,23 @@ function xe(e, t, r) {
|
|
|
9786
9786
|
[i]: a
|
|
9787
9787
|
});
|
|
9788
9788
|
}
|
|
9789
|
-
function
|
|
9790
|
-
|
|
9789
|
+
function xb(e) {
|
|
9790
|
+
_e(e, "value", function(r) {
|
|
9791
9791
|
const n = jm(r);
|
|
9792
9792
|
return n && eb(this), {
|
|
9793
9793
|
applyNative: !!n,
|
|
9794
|
-
realArgs:
|
|
9794
|
+
realArgs: _b(this, r),
|
|
9795
9795
|
then: n ? void 0 : () => tb(this, String(r))
|
|
9796
9796
|
};
|
|
9797
9797
|
});
|
|
9798
9798
|
}
|
|
9799
|
-
function
|
|
9799
|
+
function _b(e, t) {
|
|
9800
9800
|
return M(e, "input", {
|
|
9801
9801
|
type: "number"
|
|
9802
9802
|
}) && String(t) !== "" && !Number.isNaN(Number(t)) ? String(Number(t)) : String(t);
|
|
9803
9803
|
}
|
|
9804
9804
|
function Tb(e) {
|
|
9805
|
-
|
|
9805
|
+
_e(e, "setSelectionRange", function(r, ...n) {
|
|
9806
9806
|
const o = Fm(r);
|
|
9807
9807
|
return {
|
|
9808
9808
|
applyNative: !!o,
|
|
@@ -9812,17 +9812,17 @@ function Tb(e) {
|
|
|
9812
9812
|
],
|
|
9813
9813
|
then: () => o ? void 0 : Xn(e)
|
|
9814
9814
|
};
|
|
9815
|
-
}),
|
|
9815
|
+
}), _e(e, "selectionStart", function(r) {
|
|
9816
9816
|
return {
|
|
9817
9817
|
realArgs: r,
|
|
9818
9818
|
then: () => Xn(e)
|
|
9819
9819
|
};
|
|
9820
|
-
}),
|
|
9820
|
+
}), _e(e, "selectionEnd", function(r) {
|
|
9821
9821
|
return {
|
|
9822
9822
|
realArgs: r,
|
|
9823
9823
|
then: () => Xn(e)
|
|
9824
9824
|
};
|
|
9825
|
-
}),
|
|
9825
|
+
}), _e(e, "select", function() {
|
|
9826
9826
|
return {
|
|
9827
9827
|
realArgs: [],
|
|
9828
9828
|
then: () => Gm(e, {
|
|
@@ -9833,7 +9833,7 @@ function Tb(e) {
|
|
|
9833
9833
|
});
|
|
9834
9834
|
}
|
|
9835
9835
|
function Ib(e) {
|
|
9836
|
-
|
|
9836
|
+
_e(e, "setRangeText", function(...r) {
|
|
9837
9837
|
return {
|
|
9838
9838
|
realArgs: r,
|
|
9839
9839
|
then: () => {
|
|
@@ -9862,7 +9862,7 @@ function dl(e) {
|
|
|
9862
9862
|
e[Te] || (M(e, [
|
|
9863
9863
|
"input",
|
|
9864
9864
|
"textarea"
|
|
9865
|
-
]) && (
|
|
9865
|
+
]) && (xb(e), Tb(e), Ib(e)), e[Te] = Te);
|
|
9866
9866
|
}
|
|
9867
9867
|
function Bb(e) {
|
|
9868
9868
|
return Ob(e) ? e : e.ownerDocument;
|
|
@@ -9873,7 +9873,7 @@ function Ob(e) {
|
|
|
9873
9873
|
var Z = /* @__PURE__ */ (function(e) {
|
|
9874
9874
|
return e[e.Trigger = 2] = "Trigger", e[e.Call = 1] = "Call", e;
|
|
9875
9875
|
})({});
|
|
9876
|
-
function
|
|
9876
|
+
function _n(e, t) {
|
|
9877
9877
|
e.levelRefs[t] = {};
|
|
9878
9878
|
}
|
|
9879
9879
|
function Vn(e, t) {
|
|
@@ -10406,8 +10406,8 @@ function Ub(e, { document: t, target: r, node: n, offset: o }) {
|
|
|
10406
10406
|
}
|
|
10407
10407
|
}
|
|
10408
10408
|
function Du(e, t) {
|
|
10409
|
-
var r, n, o, i, a, s, l, h, c, R, f, C, O, q,
|
|
10410
|
-
return e.target !== t.target || ((r = e.coords) === null || r === void 0 ? void 0 : r.x) !== ((n = t.coords) === null || n === void 0 ? void 0 : n.x) || ((o = e.coords) === null || o === void 0 ? void 0 : o.y) !== ((i = t.coords) === null || i === void 0 ? void 0 : i.y) || ((a = e.coords) === null || a === void 0 ? void 0 : a.clientX) !== ((s = t.coords) === null || s === void 0 ? void 0 : s.clientX) || ((l = e.coords) === null || l === void 0 ? void 0 : l.clientY) !== ((h = t.coords) === null || h === void 0 ? void 0 : h.clientY) || ((c = e.coords) === null || c === void 0 ? void 0 : c.offsetX) !== ((R = t.coords) === null || R === void 0 ? void 0 : R.offsetX) || ((f = e.coords) === null || f === void 0 ? void 0 : f.offsetY) !== ((C = t.coords) === null || C === void 0 ? void 0 : C.offsetY) || ((O = e.coords) === null || O === void 0 ? void 0 : O.pageX) !== ((q = t.coords) === null || q === void 0 ? void 0 : q.pageX) || ((
|
|
10409
|
+
var r, n, o, i, a, s, l, h, c, R, f, C, O, q, _, d, x, B, P, m, g, y, p, b;
|
|
10410
|
+
return e.target !== t.target || ((r = e.coords) === null || r === void 0 ? void 0 : r.x) !== ((n = t.coords) === null || n === void 0 ? void 0 : n.x) || ((o = e.coords) === null || o === void 0 ? void 0 : o.y) !== ((i = t.coords) === null || i === void 0 ? void 0 : i.y) || ((a = e.coords) === null || a === void 0 ? void 0 : a.clientX) !== ((s = t.coords) === null || s === void 0 ? void 0 : s.clientX) || ((l = e.coords) === null || l === void 0 ? void 0 : l.clientY) !== ((h = t.coords) === null || h === void 0 ? void 0 : h.clientY) || ((c = e.coords) === null || c === void 0 ? void 0 : c.offsetX) !== ((R = t.coords) === null || R === void 0 ? void 0 : R.offsetX) || ((f = e.coords) === null || f === void 0 ? void 0 : f.offsetY) !== ((C = t.coords) === null || C === void 0 ? void 0 : C.offsetY) || ((O = e.coords) === null || O === void 0 ? void 0 : O.pageX) !== ((q = t.coords) === null || q === void 0 ? void 0 : q.pageX) || ((_ = e.coords) === null || _ === void 0 ? void 0 : _.pageY) !== ((d = t.coords) === null || d === void 0 ? void 0 : d.pageY) || ((x = e.coords) === null || x === void 0 ? void 0 : x.screenX) !== ((B = t.coords) === null || B === void 0 ? void 0 : B.screenX) || ((P = e.coords) === null || P === void 0 ? void 0 : P.screenY) !== ((m = t.coords) === null || m === void 0 ? void 0 : m.screenY) || ((g = e.caret) === null || g === void 0 ? void 0 : g.node) !== ((y = t.caret) === null || y === void 0 ? void 0 : y.node) || ((p = e.caret) === null || p === void 0 ? void 0 : p.offset) !== ((b = t.caret) === null || b === void 0 ? void 0 : b.offset);
|
|
10411
10411
|
}
|
|
10412
10412
|
function qe(e, t, r) {
|
|
10413
10413
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -11033,7 +11033,7 @@ async function mv(e, t) {
|
|
|
11033
11033
|
offset: (h = t.offset) !== null && h !== void 0 ? h : Rl(t) || i == null || (n = i.caret) === null || n === void 0 ? void 0 : n.offset
|
|
11034
11034
|
}
|
|
11035
11035
|
};
|
|
11036
|
-
"keyDef" in t ? (e.system.pointer.isKeyPressed(t.keyDef) && (
|
|
11036
|
+
"keyDef" in t ? (e.system.pointer.isKeyPressed(t.keyDef) && (_n(e, Z.Trigger), await e.system.pointer.release(e, t.keyDef, c)), t.releasePrevious || (_n(e, Z.Trigger), await e.system.pointer.press(e, t.keyDef, c), t.releaseSelf && (_n(e, Z.Trigger), await e.system.pointer.release(e, t.keyDef, c)))) : (_n(e, Z.Trigger), await e.system.pointer.move(e, o, c));
|
|
11037
11037
|
}
|
|
11038
11038
|
function Rl(e) {
|
|
11039
11039
|
var t, r;
|
|
@@ -11050,7 +11050,7 @@ async function vv(e) {
|
|
|
11050
11050
|
throw new Error("clear()` is only supported on editable elements.");
|
|
11051
11051
|
if (ve(e), e.ownerDocument.activeElement !== e)
|
|
11052
11052
|
throw new Error("The element to be cleared could not be focused.");
|
|
11053
|
-
if (
|
|
11053
|
+
if (_u(e), !pb(e))
|
|
11054
11054
|
throw new Error("The element content to be cleared could not be selected.");
|
|
11055
11055
|
Me(this, e, "", "deleteContentBackward");
|
|
11056
11056
|
}
|
|
@@ -11062,7 +11062,7 @@ async function yv(e, t) {
|
|
|
11062
11062
|
}
|
|
11063
11063
|
async function Vu(e, t, r) {
|
|
11064
11064
|
if (!e && !t.multiple)
|
|
11065
|
-
throw
|
|
11065
|
+
throw xe().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.", t);
|
|
11066
11066
|
const n = Array.isArray(r) ? r : [
|
|
11067
11067
|
r
|
|
11068
11068
|
], o = Array.from(t.querySelectorAll('option, [role="option"]')), i = n.map((s) => {
|
|
@@ -11072,7 +11072,7 @@ async function Vu(e, t, r) {
|
|
|
11072
11072
|
const l = o.find((h) => h.value === s || h.innerHTML === s);
|
|
11073
11073
|
if (l)
|
|
11074
11074
|
return l;
|
|
11075
|
-
throw
|
|
11075
|
+
throw xe().getElementError(`Value "${String(s)}" not found in options`, t);
|
|
11076
11076
|
}
|
|
11077
11077
|
}).filter((s) => !ue(s));
|
|
11078
11078
|
if (ue(t) || !i.length) return;
|
|
@@ -11093,15 +11093,15 @@ async function Vu(e, t, r) {
|
|
|
11093
11093
|
const s = this.config.pointerEventsCheck === 0 ? !0 : ro(this, t);
|
|
11094
11094
|
s ? await this.click(t) : ve(t), a(i[0]), s && (this.dispatchUIEvent(t, "pointerover"), this.dispatchUIEvent(t, "pointerenter"), this.dispatchUIEvent(t, "mouseover"), this.dispatchUIEvent(t, "mouseenter"), this.dispatchUIEvent(t, "pointerup"), this.dispatchUIEvent(t, "mouseup"), this.dispatchUIEvent(t, "click")), await Ae(this.config);
|
|
11095
11095
|
} else
|
|
11096
|
-
throw
|
|
11096
|
+
throw xe().getElementError("Cannot select multiple options on a non-multiple select", t);
|
|
11097
11097
|
else if (t.getAttribute("role") === "listbox")
|
|
11098
11098
|
for (const s of i)
|
|
11099
11099
|
await this.click(s), await this.unhover(s);
|
|
11100
11100
|
else
|
|
11101
|
-
throw
|
|
11101
|
+
throw xe().getElementError("Cannot select options on elements that are neither select nor listbox elements", t);
|
|
11102
11102
|
}
|
|
11103
11103
|
async function Rv(e, t, { skipClick: r = this.config.skipClick, skipAutoClose: n = this.config.skipAutoClose, initialSelectionStart: o, initialSelectionEnd: i } = {}) {
|
|
11104
|
-
e.disabled || (r || await this.click(e), o !== void 0 &&
|
|
11104
|
+
e.disabled || (r || await this.click(e), o !== void 0 && xn(e, o, i ?? o), await this.keyboard(t), n || await lv(this));
|
|
11105
11105
|
}
|
|
11106
11106
|
const Cl = Symbol("files and value properties are mocked");
|
|
11107
11107
|
function Co(e, t, r) {
|
|
@@ -11191,8 +11191,8 @@ const ql = {
|
|
|
11191
11191
|
type: Rv,
|
|
11192
11192
|
upload: qv
|
|
11193
11193
|
};
|
|
11194
|
-
function
|
|
11195
|
-
return
|
|
11194
|
+
function kv(e) {
|
|
11195
|
+
return xe().asyncWrapper(e);
|
|
11196
11196
|
}
|
|
11197
11197
|
const Gu = {
|
|
11198
11198
|
applyAccept: !0,
|
|
@@ -11207,11 +11207,11 @@ const Gu = {
|
|
|
11207
11207
|
skipHover: !1,
|
|
11208
11208
|
writeToClipboard: !1,
|
|
11209
11209
|
advanceTimers: () => Promise.resolve()
|
|
11210
|
-
},
|
|
11210
|
+
}, Pv = {
|
|
11211
11211
|
...Gu,
|
|
11212
11212
|
writeToClipboard: !0
|
|
11213
11213
|
};
|
|
11214
|
-
function Ku(e = {}, t =
|
|
11214
|
+
function Ku(e = {}, t = Pv, r) {
|
|
11215
11215
|
const n = Tv(e, r, t);
|
|
11216
11216
|
return {
|
|
11217
11217
|
...t,
|
|
@@ -11239,15 +11239,15 @@ function Q({ keyboardState: e, pointerState: t, ...r } = {}, n) {
|
|
|
11239
11239
|
system: a
|
|
11240
11240
|
};
|
|
11241
11241
|
}
|
|
11242
|
-
function
|
|
11242
|
+
function xv(e) {
|
|
11243
11243
|
return Go({
|
|
11244
11244
|
...this.config,
|
|
11245
11245
|
...e
|
|
11246
11246
|
}, this.system).api;
|
|
11247
11247
|
}
|
|
11248
|
-
function
|
|
11248
|
+
function _v(e, t) {
|
|
11249
11249
|
function r(...n) {
|
|
11250
|
-
return
|
|
11250
|
+
return _n(e, Z.Call), kv(() => t.apply(e, n).then(async (o) => (await Ae(e.config), o)));
|
|
11251
11251
|
}
|
|
11252
11252
|
return Object.defineProperty(r, "name", {
|
|
11253
11253
|
get: () => t.name
|
|
@@ -11267,9 +11267,9 @@ function Go(e, t = new Hu()) {
|
|
|
11267
11267
|
api: {
|
|
11268
11268
|
...Object.fromEntries(Object.entries(ql).map(([n, o]) => [
|
|
11269
11269
|
n,
|
|
11270
|
-
|
|
11270
|
+
_v(r, o)
|
|
11271
11271
|
])),
|
|
11272
|
-
setup:
|
|
11272
|
+
setup: xv.bind(r)
|
|
11273
11273
|
}
|
|
11274
11274
|
};
|
|
11275
11275
|
}
|
|
@@ -11348,62 +11348,62 @@ const Kv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11348
11348
|
type: Fv,
|
|
11349
11349
|
unhover: Uv,
|
|
11350
11350
|
upload: Vv
|
|
11351
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
11351
|
+
}, Symbol.toStringTag, { value: "Module" })), U = {
|
|
11352
11352
|
...Kv,
|
|
11353
11353
|
setup: Ev
|
|
11354
11354
|
}, zv = /Use \d+ Tools/, Kn = /Toolkits|1/, Wv = /Tools|1/, Xv = /select tools/i;
|
|
11355
11355
|
Sc("ToolkitPicker", () => {
|
|
11356
11356
|
Mc(() => {
|
|
11357
11357
|
Ac();
|
|
11358
|
-
}),
|
|
11359
|
-
|
|
11360
|
-
/* @__PURE__ */ T(
|
|
11358
|
+
}), $("renders trigger button correctly", () => {
|
|
11359
|
+
H(
|
|
11360
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11361
11361
|
);
|
|
11362
11362
|
const e = u.getByTestId("toolkit-picker-trigger");
|
|
11363
11363
|
v(e).toBeInTheDocument(), v(e).toHaveTextContent("Select Toolkits");
|
|
11364
|
-
}),
|
|
11365
|
-
const e =
|
|
11366
|
-
|
|
11367
|
-
/* @__PURE__ */ T(
|
|
11364
|
+
}), $("opens dialog when trigger is clicked", async () => {
|
|
11365
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11366
|
+
H(
|
|
11367
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11368
11368
|
);
|
|
11369
11369
|
const t = u.getByTestId("toolkit-picker-trigger");
|
|
11370
11370
|
await e.click(t), v(u.getByTestId("toolkit-picker-dialog")).toBeInTheDocument(), v(u.getByText("Choose Your Tools")).toBeInTheDocument();
|
|
11371
|
-
}),
|
|
11372
|
-
const e =
|
|
11373
|
-
|
|
11374
|
-
/* @__PURE__ */ T(
|
|
11371
|
+
}), $("switches between tabs correctly", async () => {
|
|
11372
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11373
|
+
H(
|
|
11374
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11375
11375
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11376
11376
|
const t = u.getByTestId("toolkits-tab"), r = u.getByTestId("tools-tab");
|
|
11377
11377
|
v(t).toHaveAttribute("data-state", "active"), v(u.getByTestId("toolkits-grid")).toBeInTheDocument(), await e.click(r), v(r).toHaveAttribute("data-state", "active"), v(u.getByTestId("tools-grid")).toBeInTheDocument(), await e.click(t), v(t).toHaveAttribute("data-state", "active"), v(u.getByTestId("toolkits-grid")).toBeInTheDocument();
|
|
11378
|
-
}),
|
|
11379
|
-
const e =
|
|
11380
|
-
|
|
11381
|
-
/* @__PURE__ */ T(
|
|
11378
|
+
}), $("filters toolkits by search query", async () => {
|
|
11379
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11380
|
+
H(
|
|
11381
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11382
11382
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11383
11383
|
const t = u.getByTestId("search-input");
|
|
11384
11384
|
await e.type(t, "api"), v(u.getByTestId("toolkit-card-api_toolkit")).toBeInTheDocument(), v(u.queryByTestId("toolkit-card-basic")).not.toBeInTheDocument();
|
|
11385
|
-
}),
|
|
11386
|
-
const e =
|
|
11387
|
-
|
|
11388
|
-
/* @__PURE__ */ T(
|
|
11385
|
+
}), $("filters tools by search query", async () => {
|
|
11386
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11387
|
+
H(
|
|
11388
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11389
11389
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab"));
|
|
11390
11390
|
const t = u.getByTestId("search-input");
|
|
11391
11391
|
await e.type(t, "secret_required_tool"), v(
|
|
11392
11392
|
u.getByTestId("tool-card-secret_required_tool")
|
|
11393
11393
|
).toBeInTheDocument();
|
|
11394
|
-
}),
|
|
11395
|
-
const e =
|
|
11396
|
-
|
|
11394
|
+
}), $("selects toolkits and maintains selection when reopening", async () => {
|
|
11395
|
+
const e = U.setup({ pointerEventsCheck: 0 }), t = pe.fn();
|
|
11396
|
+
H(
|
|
11397
11397
|
/* @__PURE__ */ T(
|
|
11398
|
-
|
|
11398
|
+
L,
|
|
11399
11399
|
{
|
|
11400
11400
|
onSelectionChange: t,
|
|
11401
|
-
toolkitCollection:
|
|
11402
|
-
children: /* @__PURE__ */ T(
|
|
11401
|
+
toolkitCollection: F,
|
|
11402
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11403
11403
|
}
|
|
11404
11404
|
)
|
|
11405
11405
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11406
|
-
const r = u.getByTestId("toolkit-card-api_toolkit"), n =
|
|
11406
|
+
const r = u.getByTestId("toolkit-card-api_toolkit"), n = N(r).getByRole("checkbox");
|
|
11407
11407
|
await e.click(n), await e.click(u.getByTestId("use-tools-button")), v(t).toHaveBeenCalledWith({
|
|
11408
11408
|
selectedToolkits: ["api_toolkit"],
|
|
11409
11409
|
selectedTools: [
|
|
@@ -11413,33 +11413,33 @@ Sc("ToolkitPicker", () => {
|
|
|
11413
11413
|
"openai_configured_tool"
|
|
11414
11414
|
]
|
|
11415
11415
|
}), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11416
|
-
const o = u.getByTestId("toolkit-card-api_toolkit"), i =
|
|
11416
|
+
const o = u.getByTestId("toolkit-card-api_toolkit"), i = N(o).getByRole("checkbox");
|
|
11417
11417
|
v(i).toBeChecked();
|
|
11418
|
-
}),
|
|
11419
|
-
const e =
|
|
11420
|
-
|
|
11418
|
+
}), $("selects individual tools and maintains selection when reopening", async () => {
|
|
11419
|
+
const e = U.setup({ pointerEventsCheck: 0 }), t = pe.fn();
|
|
11420
|
+
H(
|
|
11421
11421
|
/* @__PURE__ */ T(
|
|
11422
|
-
|
|
11422
|
+
L,
|
|
11423
11423
|
{
|
|
11424
11424
|
onSelectionChange: t,
|
|
11425
|
-
toolkitCollection:
|
|
11426
|
-
children: /* @__PURE__ */ T(
|
|
11425
|
+
toolkitCollection: F,
|
|
11426
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11427
11427
|
}
|
|
11428
11428
|
)
|
|
11429
11429
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab"));
|
|
11430
|
-
const r = u.getByTestId("tool-card-secret_required_tool"), n =
|
|
11430
|
+
const r = u.getByTestId("tool-card-secret_required_tool"), n = N(r).getByRole("checkbox");
|
|
11431
11431
|
await e.click(n), await e.click(u.getByTestId("use-tools-button")), v(t).toHaveBeenCalledWith({
|
|
11432
11432
|
selectedToolkits: ["api_toolkit"],
|
|
11433
11433
|
selectedTools: ["secret_required_tool"]
|
|
11434
11434
|
}), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab"));
|
|
11435
|
-
const o = u.getByTestId("tool-card-secret_required_tool"), i =
|
|
11435
|
+
const o = u.getByTestId("tool-card-secret_required_tool"), i = N(o).getByRole("checkbox");
|
|
11436
11436
|
v(i).toBeChecked();
|
|
11437
|
-
}),
|
|
11438
|
-
const e =
|
|
11439
|
-
|
|
11440
|
-
/* @__PURE__ */ T(
|
|
11437
|
+
}), $("filters tools by toolkit when viewing toolkit tools and shows clear filter control", async () => {
|
|
11438
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11439
|
+
H(
|
|
11440
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11441
11441
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11442
|
-
const t = u.getByTestId("toolkit-card-api_toolkit"), r =
|
|
11442
|
+
const t = u.getByTestId("toolkit-card-api_toolkit"), r = N(t).getByTestId("view-tools");
|
|
11443
11443
|
await e.click(r), v(u.getByTestId("tools-tab")).toHaveAttribute(
|
|
11444
11444
|
"data-state",
|
|
11445
11445
|
"active"
|
|
@@ -11453,74 +11453,74 @@ Sc("ToolkitPicker", () => {
|
|
|
11453
11453
|
).toBeInTheDocument(),
|
|
11454
11454
|
{ timeout: 3e3 }
|
|
11455
11455
|
);
|
|
11456
|
-
}),
|
|
11457
|
-
const e =
|
|
11458
|
-
|
|
11459
|
-
/* @__PURE__ */ T(
|
|
11456
|
+
}), $("clears search when switching tabs", async () => {
|
|
11457
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11458
|
+
H(
|
|
11459
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11460
11460
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11461
11461
|
const t = u.getByTestId("search-input");
|
|
11462
11462
|
await e.type(t, "basic"), await e.click(u.getByTestId("tools-tab")), v(t).toHaveValue("basic"), await e.clear(t), v(t).toHaveValue("");
|
|
11463
|
-
}),
|
|
11464
|
-
const e =
|
|
11465
|
-
|
|
11463
|
+
}), $("clears all selections and disables use button when empty", async () => {
|
|
11464
|
+
const e = U.setup({ pointerEventsCheck: 0 }), t = pe.fn();
|
|
11465
|
+
H(
|
|
11466
11466
|
/* @__PURE__ */ T(
|
|
11467
|
-
|
|
11467
|
+
L,
|
|
11468
11468
|
{
|
|
11469
11469
|
onSelectionChange: t,
|
|
11470
|
-
toolkitCollection:
|
|
11471
|
-
children: /* @__PURE__ */ T(
|
|
11470
|
+
toolkitCollection: F,
|
|
11471
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11472
11472
|
}
|
|
11473
11473
|
)
|
|
11474
11474
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11475
|
-
const r = u.getByTestId("toolkit-card-api_toolkit"), n =
|
|
11475
|
+
const r = u.getByTestId("toolkit-card-api_toolkit"), n = N(r).getByRole("checkbox");
|
|
11476
11476
|
await e.click(n);
|
|
11477
11477
|
const o = u.getByTestId("use-tools-button");
|
|
11478
11478
|
v(o).not.toBeDisabled(), await e.click(u.getByTestId("clear-selections")), v(o).toBeDisabled(), v(o).toHaveTextContent("Select Tools");
|
|
11479
|
-
const i =
|
|
11479
|
+
const i = N(r).getByRole("checkbox");
|
|
11480
11480
|
v(i).not.toBeChecked();
|
|
11481
|
-
}),
|
|
11482
|
-
const e =
|
|
11483
|
-
|
|
11484
|
-
/* @__PURE__ */ T(
|
|
11481
|
+
}), $("shows empty state when no toolkits match search", async () => {
|
|
11482
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11483
|
+
H(
|
|
11484
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11485
11485
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11486
11486
|
const t = u.getByTestId("search-input");
|
|
11487
11487
|
await e.type(t, "xyznomatch12345"), v(u.getByTestId("empty-toolkits")).toBeInTheDocument(), v(u.getByText("No toolkits found")).toBeInTheDocument();
|
|
11488
|
-
}),
|
|
11489
|
-
const e =
|
|
11490
|
-
|
|
11491
|
-
/* @__PURE__ */ T(
|
|
11488
|
+
}), $("shows empty state when no tools match search", async () => {
|
|
11489
|
+
const e = U.setup();
|
|
11490
|
+
H(
|
|
11491
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11492
11492
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab"));
|
|
11493
11493
|
const t = u.getByTestId("search-input");
|
|
11494
11494
|
await e.type(t, "nonexistent"), v(u.getByTestId("empty-tools")).toBeInTheDocument(), v(u.getByText("No tools found")).toBeInTheDocument();
|
|
11495
|
-
}),
|
|
11496
|
-
|
|
11497
|
-
/* @__PURE__ */ T(
|
|
11495
|
+
}), $("handles empty toolkits prop", () => {
|
|
11496
|
+
H(
|
|
11497
|
+
/* @__PURE__ */ T(L, { toolkitCollection: Nc({}), children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11498
11498
|
);
|
|
11499
11499
|
const e = u.getByTestId("toolkit-picker-trigger");
|
|
11500
11500
|
v(e).toBeInTheDocument(), v(e).toHaveTextContent("Select Toolkits");
|
|
11501
|
-
}),
|
|
11502
|
-
const e =
|
|
11503
|
-
|
|
11504
|
-
/* @__PURE__ */ T(
|
|
11501
|
+
}), $("updates use button based on selection count", async () => {
|
|
11502
|
+
const e = U.setup();
|
|
11503
|
+
H(
|
|
11504
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11505
11505
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11506
11506
|
const t = u.getByTestId("use-tools-button");
|
|
11507
11507
|
v(t).toBeDisabled(), v(t).toHaveTextContent("Select Tools");
|
|
11508
|
-
const r = u.getByTestId("toolkit-card-api_toolkit"), n =
|
|
11508
|
+
const r = u.getByTestId("toolkit-card-api_toolkit"), n = N(r).getByRole("checkbox");
|
|
11509
11509
|
await e.click(n), v(t).not.toBeDisabled(), v(t).toHaveTextContent(zv);
|
|
11510
|
-
}),
|
|
11511
|
-
const e =
|
|
11512
|
-
|
|
11510
|
+
}), $("automatically selects toolkit when all tools are selected", async () => {
|
|
11511
|
+
const e = U.setup(), t = pe.fn();
|
|
11512
|
+
H(
|
|
11513
11513
|
/* @__PURE__ */ T(
|
|
11514
|
-
|
|
11514
|
+
L,
|
|
11515
11515
|
{
|
|
11516
11516
|
onSelectionChange: t,
|
|
11517
|
-
toolkitCollection:
|
|
11518
|
-
children: /* @__PURE__ */ T(
|
|
11517
|
+
toolkitCollection: F,
|
|
11518
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11519
11519
|
}
|
|
11520
11520
|
)
|
|
11521
11521
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab"));
|
|
11522
11522
|
const r = u.getByTestId("tool-card-secret_required_tool"), n = u.getByTestId("tool-card-partial_secrets_tool"), o = u.getByTestId("tool-card-anthropic_tool"), i = u.getByTestId("tool-card-openai_configured_tool");
|
|
11523
|
-
await e.click(
|
|
11523
|
+
await e.click(N(r).getByRole("checkbox")), await e.click(N(n).getByRole("checkbox")), await e.click(N(o).getByRole("checkbox")), await e.click(N(i).getByRole("checkbox")), await e.click(u.getByTestId("use-tools-button")), v(t).toHaveBeenCalledWith({
|
|
11524
11524
|
selectedToolkits: ["api_toolkit"],
|
|
11525
11525
|
selectedTools: [
|
|
11526
11526
|
"secret_required_tool",
|
|
@@ -11529,10 +11529,10 @@ Sc("ToolkitPicker", () => {
|
|
|
11529
11529
|
"openai_configured_tool"
|
|
11530
11530
|
]
|
|
11531
11531
|
});
|
|
11532
|
-
}),
|
|
11533
|
-
const e =
|
|
11534
|
-
|
|
11535
|
-
/* @__PURE__ */ T(
|
|
11532
|
+
}), $("automatically switches to tools tab when searching for tool names in toolkits tab", async () => {
|
|
11533
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11534
|
+
H(
|
|
11535
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11536
11536
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), v(u.getByTestId("toolkits-tab")).toHaveAttribute(
|
|
11537
11537
|
"data-state",
|
|
11538
11538
|
"active"
|
|
@@ -11549,10 +11549,10 @@ Sc("ToolkitPicker", () => {
|
|
|
11549
11549
|
), v(
|
|
11550
11550
|
u.getByTestId("tool-card-secret_required_tool")
|
|
11551
11551
|
).toBeInTheDocument();
|
|
11552
|
-
}),
|
|
11553
|
-
const e =
|
|
11554
|
-
|
|
11555
|
-
/* @__PURE__ */ T(
|
|
11552
|
+
}), $("stays on tools tab when search matches both toolkits and tools", async () => {
|
|
11553
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11554
|
+
H(
|
|
11555
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11556
11556
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab")), v(u.getByTestId("tools-tab")).toHaveAttribute(
|
|
11557
11557
|
"data-state",
|
|
11558
11558
|
"active"
|
|
@@ -11569,10 +11569,10 @@ Sc("ToolkitPicker", () => {
|
|
|
11569
11569
|
), v(
|
|
11570
11570
|
u.getByTestId("tool-card-secret_required_tool")
|
|
11571
11571
|
).toBeInTheDocument();
|
|
11572
|
-
}),
|
|
11573
|
-
const e =
|
|
11574
|
-
|
|
11575
|
-
/* @__PURE__ */ T(
|
|
11572
|
+
}), $("does not switch tabs when both tabs have search results", async () => {
|
|
11573
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11574
|
+
H(
|
|
11575
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11576
11576
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), v(u.getByTestId("toolkits-tab")).toHaveAttribute(
|
|
11577
11577
|
"data-state",
|
|
11578
11578
|
"active"
|
|
@@ -11582,10 +11582,10 @@ Sc("ToolkitPicker", () => {
|
|
|
11582
11582
|
"data-state",
|
|
11583
11583
|
"active"
|
|
11584
11584
|
), v(u.getByTestId("toolkit-card-basic")).toBeInTheDocument();
|
|
11585
|
-
}),
|
|
11586
|
-
const e =
|
|
11587
|
-
|
|
11588
|
-
/* @__PURE__ */ T(
|
|
11585
|
+
}), $("switches to toolkits tab when clearing search filter", async () => {
|
|
11586
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11587
|
+
H(
|
|
11588
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11589
11589
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab")), v(u.getByTestId("tools-tab")).toHaveAttribute(
|
|
11590
11590
|
"data-state",
|
|
11591
11591
|
"active"
|
|
@@ -11595,12 +11595,12 @@ Sc("ToolkitPicker", () => {
|
|
|
11595
11595
|
"data-state",
|
|
11596
11596
|
"active"
|
|
11597
11597
|
);
|
|
11598
|
-
}),
|
|
11599
|
-
const e =
|
|
11600
|
-
|
|
11601
|
-
/* @__PURE__ */ T(
|
|
11598
|
+
}), $("switches to toolkits tab when clearing toolkit filter", async () => {
|
|
11599
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11600
|
+
H(
|
|
11601
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11602
11602
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11603
|
-
const t = u.getByTestId("toolkit-card-api_toolkit"), r =
|
|
11603
|
+
const t = u.getByTestId("toolkit-card-api_toolkit"), r = N(t).getByTestId("view-tools");
|
|
11604
11604
|
await e.click(r), v(u.getByTestId("tools-tab")).toHaveAttribute(
|
|
11605
11605
|
"data-state",
|
|
11606
11606
|
"active"
|
|
@@ -11608,32 +11608,32 @@ Sc("ToolkitPicker", () => {
|
|
|
11608
11608
|
"data-state",
|
|
11609
11609
|
"active"
|
|
11610
11610
|
);
|
|
11611
|
-
}),
|
|
11612
|
-
const e =
|
|
11613
|
-
|
|
11614
|
-
/* @__PURE__ */ T(
|
|
11611
|
+
}), $("shows and hides search filter badge when searching", async () => {
|
|
11612
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11613
|
+
H(
|
|
11614
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11615
11615
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), v(u.queryByTestId("clear-search")).not.toBeInTheDocument();
|
|
11616
11616
|
const t = u.getByTestId("search-input");
|
|
11617
11617
|
await e.type(t, "basic");
|
|
11618
11618
|
const r = u.getByTestId("clear-search");
|
|
11619
11619
|
v(r).toBeInTheDocument(), v(u.getAllByText('"basic"')).toHaveLength(1), await e.click(r), v(u.queryByTestId("clear-search")).not.toBeInTheDocument(), v(u.queryByTestId("mobile-clear-search")).not.toBeInTheDocument(), v(t).toHaveValue("");
|
|
11620
|
-
}),
|
|
11621
|
-
const e =
|
|
11622
|
-
|
|
11623
|
-
/* @__PURE__ */ T(
|
|
11620
|
+
}), $("shows desktop filter controls when filters are active", async () => {
|
|
11621
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11622
|
+
H(
|
|
11623
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11624
11624
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), v(u.queryByTestId("clear-filter")).not.toBeInTheDocument(), v(u.queryByTestId("clear-search")).not.toBeInTheDocument();
|
|
11625
|
-
const t = u.getByTestId("toolkit-card-api_toolkit"), r =
|
|
11625
|
+
const t = u.getByTestId("toolkit-card-api_toolkit"), r = N(t).getByTestId("view-tools");
|
|
11626
11626
|
await e.click(r), v(u.getByTestId("clear-filter")).toBeInTheDocument(), v(u.getByTestId("select-all")).toBeInTheDocument();
|
|
11627
|
-
const n = u.getByTestId("tool-card-secret_required_tool"), o =
|
|
11627
|
+
const n = u.getByTestId("tool-card-secret_required_tool"), o = N(n).getByRole("checkbox");
|
|
11628
11628
|
await e.click(o);
|
|
11629
11629
|
const i = u.getByTestId("search-input");
|
|
11630
11630
|
await e.type(i, "basic"), v(u.getByTestId("clear-filter")).toBeInTheDocument(), v(u.getByTestId("clear-search")).toBeInTheDocument(), v(u.getByTestId("clear-selections")).toBeInTheDocument(), await e.click(u.getByTestId("clear-search")), v(u.queryByTestId("clear-search")).not.toBeInTheDocument(), v(i).toHaveValue(""), await e.click(u.getByTestId("clear-filter")), v(u.queryByTestId("clear-filter")).not.toBeInTheDocument();
|
|
11631
|
-
}),
|
|
11632
|
-
const e =
|
|
11633
|
-
|
|
11634
|
-
/* @__PURE__ */ T(
|
|
11631
|
+
}), $("automatically clears toolkit filter when switching to toolkits tab", async () => {
|
|
11632
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11633
|
+
H(
|
|
11634
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11635
11635
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11636
|
-
const t = u.getByTestId("toolkit-card-api_toolkit"), r =
|
|
11636
|
+
const t = u.getByTestId("toolkit-card-api_toolkit"), r = N(t).getByTestId("view-tools");
|
|
11637
11637
|
await e.click(r), v(u.getByTestId("tools-tab")).toHaveAttribute(
|
|
11638
11638
|
"data-state",
|
|
11639
11639
|
"active"
|
|
@@ -11643,36 +11643,46 @@ Sc("ToolkitPicker", () => {
|
|
|
11643
11643
|
), v(u.queryByTestId("clear-filter")).not.toBeInTheDocument(), v(u.queryByTestId("mobile-clear-filter")).not.toBeInTheDocument(), v(u.getByTestId("toolkit-card-api_toolkit")).toBeInTheDocument(), v(
|
|
11644
11644
|
u.getByTestId("toolkit-card-Advanced Integration")
|
|
11645
11645
|
).toBeInTheDocument();
|
|
11646
|
-
}),
|
|
11647
|
-
const e =
|
|
11648
|
-
|
|
11646
|
+
}), $("properly clears all selections when clear all button is clicked", async () => {
|
|
11647
|
+
const e = U.setup({ pointerEventsCheck: 0 }), t = pe.fn();
|
|
11648
|
+
H(
|
|
11649
11649
|
/* @__PURE__ */ T(
|
|
11650
|
-
|
|
11650
|
+
L,
|
|
11651
11651
|
{
|
|
11652
11652
|
onSelectionChange: t,
|
|
11653
|
-
toolkitCollection:
|
|
11654
|
-
children: /* @__PURE__ */ T(
|
|
11653
|
+
toolkitCollection: F,
|
|
11654
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11655
11655
|
}
|
|
11656
11656
|
)
|
|
11657
11657
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11658
|
-
const r = u.getByTestId("toolkit-card-api_toolkit"), n =
|
|
11658
|
+
const r = u.getByTestId("toolkit-card-api_toolkit"), n = N(r).getByRole("checkbox");
|
|
11659
11659
|
await e.click(n);
|
|
11660
11660
|
const o = u.getByTestId(
|
|
11661
11661
|
"toolkit-card-Advanced Integration"
|
|
11662
|
-
), i =
|
|
11663
|
-
await e.click(i)
|
|
11664
|
-
const a = u.getByTestId("
|
|
11665
|
-
|
|
11662
|
+
), i = N(o).getByRole("checkbox");
|
|
11663
|
+
await e.click(i);
|
|
11664
|
+
const a = u.getByTestId("toolkit-card-api_toolkit"), s = N(a).getByRole(
|
|
11665
|
+
"checkbox"
|
|
11666
|
+
);
|
|
11667
|
+
v(s).toBeChecked();
|
|
11668
|
+
const l = u.getByTestId(
|
|
11669
|
+
"toolkit-card-Advanced Integration"
|
|
11670
|
+
), h = N(l).getByRole(
|
|
11671
|
+
"checkbox"
|
|
11672
|
+
);
|
|
11673
|
+
v(h).toBeChecked();
|
|
11674
|
+
const c = u.getByTestId("clear-selections");
|
|
11675
|
+
v(c).toBeInTheDocument(), await e.click(c), v(n).not.toBeChecked(), v(i).not.toBeChecked(), v(u.queryByTestId("clear-selections")).not.toBeInTheDocument(), v(u.getByText("No items selected")).toBeInTheDocument(), v(
|
|
11666
11676
|
u.getByRole("button", { name: Xv })
|
|
11667
11677
|
).toBeDisabled();
|
|
11668
|
-
}),
|
|
11669
|
-
const e =
|
|
11670
|
-
|
|
11671
|
-
/* @__PURE__ */ T(
|
|
11678
|
+
}), $("trigger shows committed toolkits/tools, not selected ones", async () => {
|
|
11679
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11680
|
+
H(
|
|
11681
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11672
11682
|
), v(u.getByTestId("toolkit-picker-trigger")).toHaveTextContent(
|
|
11673
11683
|
"Select Toolkits"
|
|
11674
11684
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11675
|
-
const t = u.getByTestId("toolkit-card-api_toolkit"), r =
|
|
11685
|
+
const t = u.getByTestId("toolkit-card-api_toolkit"), r = N(t).getByRole("checkbox");
|
|
11676
11686
|
await e.click(r), v(u.getByTestId("toolkit-picker-trigger")).toHaveTextContent(
|
|
11677
11687
|
"Select Toolkits"
|
|
11678
11688
|
), await e.click(u.getByTestId("use-tools-button")), v(u.getByTestId("toolkit-picker-trigger")).not.toHaveTextContent(
|
|
@@ -11680,26 +11690,28 @@ Sc("ToolkitPicker", () => {
|
|
|
11680
11690
|
), v(u.getByTestId("toolkit-picker-trigger")).toHaveTextContent(
|
|
11681
11691
|
Kn
|
|
11682
11692
|
);
|
|
11683
|
-
}),
|
|
11684
|
-
const e =
|
|
11685
|
-
|
|
11693
|
+
}), $("use tools button commits selections and shows them in trigger", async () => {
|
|
11694
|
+
const e = U.setup({ pointerEventsCheck: 0 }), t = pe.fn();
|
|
11695
|
+
H(
|
|
11686
11696
|
/* @__PURE__ */ T(
|
|
11687
|
-
|
|
11697
|
+
L,
|
|
11688
11698
|
{
|
|
11689
11699
|
onSelectionChange: t,
|
|
11690
|
-
toolkitCollection:
|
|
11691
|
-
children: /* @__PURE__ */ T(
|
|
11700
|
+
toolkitCollection: F,
|
|
11701
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11692
11702
|
}
|
|
11693
11703
|
)
|
|
11694
11704
|
), v(u.getByTestId("toolkit-picker-trigger")).toHaveTextContent(
|
|
11695
11705
|
"Select Toolkits"
|
|
11696
11706
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), v(u.getByTestId("toolkit-picker-dialog")).toBeInTheDocument();
|
|
11697
|
-
const r = u.getByTestId("toolkit-card-api_toolkit"), n =
|
|
11698
|
-
await e.click(n)
|
|
11707
|
+
const r = u.getByTestId("toolkit-card-api_toolkit"), n = N(r).getByRole("checkbox");
|
|
11708
|
+
await e.click(n);
|
|
11709
|
+
const o = u.getByTestId("toolkit-card-api_toolkit"), i = N(o).getByRole("checkbox");
|
|
11710
|
+
v(i).toBeChecked(), v(u.getByTestId("toolkit-picker-trigger")).toHaveTextContent(
|
|
11699
11711
|
"Select Toolkits"
|
|
11700
11712
|
);
|
|
11701
|
-
const
|
|
11702
|
-
await e.click(
|
|
11713
|
+
const a = u.getByTestId("use-tools-button");
|
|
11714
|
+
await e.click(a), v(t).toHaveBeenCalledWith({
|
|
11703
11715
|
selectedToolkits: ["api_toolkit"],
|
|
11704
11716
|
selectedTools: [
|
|
11705
11717
|
"secret_required_tool",
|
|
@@ -11717,41 +11729,43 @@ Sc("ToolkitPicker", () => {
|
|
|
11717
11729
|
), v(u.getByTestId("toolkit-picker-trigger")).toHaveTextContent(
|
|
11718
11730
|
Kn
|
|
11719
11731
|
), u.queryByTestId("toolkit-picker-dialog") && await e.click(u.getByTestId("toolkit-picker-close")), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11720
|
-
const
|
|
11732
|
+
const s = N(
|
|
11721
11733
|
u.getByTestId("toolkit-card-api_toolkit")
|
|
11722
11734
|
).getByRole("checkbox");
|
|
11723
|
-
v(
|
|
11724
|
-
}),
|
|
11725
|
-
const e =
|
|
11726
|
-
|
|
11727
|
-
/* @__PURE__ */ T(
|
|
11728
|
-
|
|
11735
|
+
v(s).toBeChecked();
|
|
11736
|
+
}), $("trigger shows tools count when countType is set to tools", async () => {
|
|
11737
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11738
|
+
H(
|
|
11739
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(
|
|
11740
|
+
D,
|
|
11729
11741
|
{
|
|
11730
11742
|
countType: "tools",
|
|
11731
11743
|
"data-testid": "toolkit-picker-trigger"
|
|
11732
11744
|
}
|
|
11733
11745
|
) })
|
|
11734
11746
|
), await e.click(u.getByTestId("toolkit-picker-trigger"));
|
|
11735
|
-
const t = u.getByTestId("toolkit-card-api_toolkit"), r =
|
|
11747
|
+
const t = u.getByTestId("toolkit-card-api_toolkit"), r = N(t).getByRole("checkbox");
|
|
11736
11748
|
await e.click(r), await e.click(u.getByTestId("use-tools-button")), v(u.getByTestId("toolkit-picker-trigger")).toHaveTextContent(
|
|
11737
11749
|
Wv
|
|
11738
11750
|
);
|
|
11739
|
-
}),
|
|
11740
|
-
const e =
|
|
11741
|
-
|
|
11751
|
+
}), $("use tools button commits selections AND closes dialog", async () => {
|
|
11752
|
+
const e = U.setup({ pointerEventsCheck: 0 }), t = pe.fn();
|
|
11753
|
+
H(
|
|
11742
11754
|
/* @__PURE__ */ T(
|
|
11743
|
-
|
|
11755
|
+
L,
|
|
11744
11756
|
{
|
|
11745
11757
|
onSelectionChange: t,
|
|
11746
|
-
toolkitCollection:
|
|
11747
|
-
children: /* @__PURE__ */ T(
|
|
11758
|
+
toolkitCollection: F,
|
|
11759
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11748
11760
|
}
|
|
11749
11761
|
)
|
|
11750
11762
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), v(u.getByTestId("toolkit-picker-dialog")).toBeInTheDocument();
|
|
11751
|
-
const r = u.getByTestId("toolkit-card-api_toolkit"), n =
|
|
11752
|
-
await e.click(n)
|
|
11753
|
-
const o = u.getByTestId("
|
|
11754
|
-
|
|
11763
|
+
const r = u.getByTestId("toolkit-card-api_toolkit"), n = N(r).getByRole("checkbox");
|
|
11764
|
+
await e.click(n);
|
|
11765
|
+
const o = u.getByTestId("toolkit-card-api_toolkit"), i = N(o).getByRole("checkbox");
|
|
11766
|
+
v(i).toBeChecked();
|
|
11767
|
+
const a = u.getByTestId("use-tools-button");
|
|
11768
|
+
await e.click(a), v(t).toHaveBeenCalledWith({
|
|
11755
11769
|
selectedToolkits: ["api_toolkit"],
|
|
11756
11770
|
selectedTools: [
|
|
11757
11771
|
"secret_required_tool",
|
|
@@ -11776,15 +11790,15 @@ Sc("ToolkitPicker", () => {
|
|
|
11776
11790
|
), v(u.getByTestId("toolkit-picker-trigger")).toHaveTextContent(
|
|
11777
11791
|
Kn
|
|
11778
11792
|
);
|
|
11779
|
-
}),
|
|
11780
|
-
const e =
|
|
11781
|
-
|
|
11793
|
+
}), $("single selection mode only allows one tool to be selected at a time", async () => {
|
|
11794
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11795
|
+
H(
|
|
11782
11796
|
/* @__PURE__ */ T(
|
|
11783
|
-
|
|
11797
|
+
L,
|
|
11784
11798
|
{
|
|
11785
11799
|
selectionMode: "single",
|
|
11786
|
-
toolkitCollection:
|
|
11787
|
-
children: /* @__PURE__ */ T(
|
|
11800
|
+
toolkitCollection: F,
|
|
11801
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11788
11802
|
}
|
|
11789
11803
|
)
|
|
11790
11804
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab"));
|
|
@@ -11794,34 +11808,40 @@ Sc("ToolkitPicker", () => {
|
|
|
11794
11808
|
v(r).not.toBeDisabled(), v(r).toHaveTextContent("Select Tool");
|
|
11795
11809
|
const n = u.getByTestId("tool-card-partial_secrets_tool");
|
|
11796
11810
|
await e.click(n), v(r).not.toBeDisabled(), v(r).toHaveTextContent("Select Tool");
|
|
11797
|
-
}),
|
|
11798
|
-
const e =
|
|
11799
|
-
|
|
11811
|
+
}), $("multi selection mode allows multiple tools to be selected", async () => {
|
|
11812
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11813
|
+
H(
|
|
11800
11814
|
/* @__PURE__ */ T(
|
|
11801
|
-
|
|
11815
|
+
L,
|
|
11802
11816
|
{
|
|
11803
11817
|
selectionMode: "multi",
|
|
11804
|
-
toolkitCollection:
|
|
11805
|
-
children: /* @__PURE__ */ T(
|
|
11818
|
+
toolkitCollection: F,
|
|
11819
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11806
11820
|
}
|
|
11807
11821
|
)
|
|
11808
11822
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab"));
|
|
11809
|
-
const t = u.getByTestId("tool-card-secret_required_tool"), r =
|
|
11810
|
-
await e.click(r)
|
|
11811
|
-
const n = u.getByTestId("tool-card-
|
|
11812
|
-
|
|
11813
|
-
const i = u.getByTestId("
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11823
|
+
const t = u.getByTestId("tool-card-secret_required_tool"), r = N(t).getByRole("checkbox");
|
|
11824
|
+
await e.click(r);
|
|
11825
|
+
const n = u.getByTestId("tool-card-secret_required_tool"), o = N(n).getByRole("checkbox");
|
|
11826
|
+
v(o).toBeChecked();
|
|
11827
|
+
const i = u.getByTestId("tool-card-partial_secrets_tool"), a = N(i).getByRole("checkbox");
|
|
11828
|
+
await e.click(a);
|
|
11829
|
+
const s = u.getByTestId("tool-card-secret_required_tool"), l = N(s).getByRole("checkbox");
|
|
11830
|
+
v(l).toBeChecked();
|
|
11831
|
+
const h = u.getByTestId("tool-card-partial_secrets_tool"), c = N(h).getByRole("checkbox");
|
|
11832
|
+
v(c).toBeChecked();
|
|
11833
|
+
const R = u.getByTestId("use-tools-button");
|
|
11834
|
+
v(R).toHaveTextContent("Use 2 Tools");
|
|
11835
|
+
}), $("single selection mode commits only the selected tool", async () => {
|
|
11836
|
+
const e = U.setup({ pointerEventsCheck: 0 }), t = pe.fn();
|
|
11837
|
+
H(
|
|
11818
11838
|
/* @__PURE__ */ T(
|
|
11819
|
-
|
|
11839
|
+
L,
|
|
11820
11840
|
{
|
|
11821
11841
|
onSelectionChange: t,
|
|
11822
11842
|
selectionMode: "single",
|
|
11823
|
-
toolkitCollection:
|
|
11824
|
-
children: /* @__PURE__ */ T(
|
|
11843
|
+
toolkitCollection: F,
|
|
11844
|
+
children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" })
|
|
11825
11845
|
}
|
|
11826
11846
|
)
|
|
11827
11847
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab"));
|
|
@@ -11837,12 +11857,12 @@ Sc("ToolkitPicker", () => {
|
|
|
11837
11857
|
},
|
|
11838
11858
|
{ timeout: 3e3 }
|
|
11839
11859
|
);
|
|
11840
|
-
}),
|
|
11841
|
-
const e =
|
|
11842
|
-
|
|
11843
|
-
/* @__PURE__ */ T(
|
|
11860
|
+
}), $("partial toolkit selection shows toolkit as committed in trigger", async () => {
|
|
11861
|
+
const e = U.setup({ pointerEventsCheck: 0 });
|
|
11862
|
+
H(
|
|
11863
|
+
/* @__PURE__ */ T(L, { toolkitCollection: F, children: /* @__PURE__ */ T(D, { "data-testid": "toolkit-picker-trigger" }) })
|
|
11844
11864
|
), await e.click(u.getByTestId("toolkit-picker-trigger")), await e.click(u.getByTestId("tools-tab"));
|
|
11845
|
-
const t = u.getByTestId("tool-card-secret_required_tool"), r =
|
|
11865
|
+
const t = u.getByTestId("tool-card-secret_required_tool"), r = N(t).getByRole("checkbox");
|
|
11846
11866
|
await e.click(r), await e.click(u.getByTestId("use-tools-button")), await fe(
|
|
11847
11867
|
() => {
|
|
11848
11868
|
v(
|