mongodb-chatbot-ui
Version:
UI React components for the MongoDB Assistant
1,684 lines • 287 kB
JavaScript
import { jsx as Cr } from "react/jsx-runtime";
import { c as ho, a as Bc } from "./emotion-css.esm.js";
import te, { useState as yl, useCallback as Lc, useEffect as kc, lazy as Dc, Suspense as jc } from "react";
import { a as Q, c as Ko, h as Fc, g as Hc, t as Ae, i as Uc, p as zc, q as Wc, v as Vc, x as hl, y as Ge, A as ee, B as Gc, D as Yc, G as Jr, H as fu, I as Kc, J as pu, K as Xc, M as Jc, N as Qc, O as Zc, m as ye, d as mu, Q as ed, z as rd, b as vu, R as td, Z as ad, U as nd, T as od, n as Qr, F as Oe, w as bu } from "./index2.js";
import { c as yu } from "./polished.esm.js";
import { i as ld, o as id, L as gl, d as Rl, g as Cl, Y as _l, T as ud, Z as sd } from "./index10.js";
import { p as cd } from "./X.js";
import { H as dd } from "./index6.js";
import { r as fr, p as hu, i as fd, c as gu, a as pd, o as md } from "./index3.js";
import { useChatbotContext as vd } from "./useChatbotContext.js";
import "./glyphCommon-cTThlth0.js";
import "./index7.js";
import "./ChatbotProvider.js";
var qe = {}, Xo = { exports: {} };
Xo.exports;
(function(e) {
const t = (o = 0) => (l) => `\x1B[${38 + o};5;${l}m`, a = (o = 0) => (l, u, i) => `\x1B[${38 + o};2;${l};${u};${i}m`;
function n() {
const o = /* @__PURE__ */ new Map(), l = {
modifier: {
reset: [0, 0],
// 21 isn't widely supported and 22 does the same thing
bold: [1, 22],
dim: [2, 22],
italic: [3, 23],
underline: [4, 24],
overline: [53, 55],
inverse: [7, 27],
hidden: [8, 28],
strikethrough: [9, 29]
},
color: {
black: [30, 39],
red: [31, 39],
green: [32, 39],
yellow: [33, 39],
blue: [34, 39],
magenta: [35, 39],
cyan: [36, 39],
white: [37, 39],
// Bright color
blackBright: [90, 39],
redBright: [91, 39],
greenBright: [92, 39],
yellowBright: [93, 39],
blueBright: [94, 39],
magentaBright: [95, 39],
cyanBright: [96, 39],
whiteBright: [97, 39]
},
bgColor: {
bgBlack: [40, 49],
bgRed: [41, 49],
bgGreen: [42, 49],
bgYellow: [43, 49],
bgBlue: [44, 49],
bgMagenta: [45, 49],
bgCyan: [46, 49],
bgWhite: [47, 49],
// Bright color
bgBlackBright: [100, 49],
bgRedBright: [101, 49],
bgGreenBright: [102, 49],
bgYellowBright: [103, 49],
bgBlueBright: [104, 49],
bgMagentaBright: [105, 49],
bgCyanBright: [106, 49],
bgWhiteBright: [107, 49]
}
};
l.color.gray = l.color.blackBright, l.bgColor.bgGray = l.bgColor.bgBlackBright, l.color.grey = l.color.blackBright, l.bgColor.bgGrey = l.bgColor.bgBlackBright;
for (const [u, i] of Object.entries(l)) {
for (const [s, f] of Object.entries(i))
l[s] = {
open: `\x1B[${f[0]}m`,
close: `\x1B[${f[1]}m`
}, i[s] = l[s], o.set(f[0], f[1]);
Object.defineProperty(l, u, {
value: i,
enumerable: !1
});
}
return Object.defineProperty(l, "codes", {
value: o,
enumerable: !1
}), l.color.close = "\x1B[39m", l.bgColor.close = "\x1B[49m", l.color.ansi256 = t(), l.color.ansi16m = a(), l.bgColor.ansi256 = t(10), l.bgColor.ansi16m = a(10), Object.defineProperties(l, {
rgbToAnsi256: {
value: (u, i, s) => u === i && i === s ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(i / 255 * 5) + Math.round(s / 255 * 5),
enumerable: !1
},
hexToRgb: {
value: (u) => {
const i = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));
if (!i)
return [0, 0, 0];
let { colorString: s } = i.groups;
s.length === 3 && (s = s.split("").map((d) => d + d).join(""));
const f = Number.parseInt(s, 16);
return [
f >> 16 & 255,
f >> 8 & 255,
f & 255
];
},
enumerable: !1
},
hexToAnsi256: {
value: (u) => l.rgbToAnsi256(...l.hexToRgb(u)),
enumerable: !1
}
}), l;
}
Object.defineProperty(e, "exports", {
enumerable: !0,
get: n
});
})(Xo);
var Ru = Xo.exports, ue = {};
Object.defineProperty(ue, "__esModule", {
value: !0
});
ue.printIteratorEntries = yd;
ue.printIteratorValues = hd;
ue.printListItems = gd;
ue.printObjectProperties = Rd;
const bd = (e, r) => {
const t = Object.keys(e).sort(r);
return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(e).forEach((a) => {
Object.getOwnPropertyDescriptor(e, a).enumerable && t.push(a);
}), t;
};
function yd(e, r, t, a, n, o, l = ": ") {
let u = "", i = e.next();
if (!i.done) {
u += r.spacingOuter;
const s = t + r.indent;
for (; !i.done; ) {
const f = o(
i.value[0],
r,
s,
a,
n
), d = o(
i.value[1],
r,
s,
a,
n
);
u += s + f + l + d, i = e.next(), i.done ? r.min || (u += ",") : u += "," + r.spacingInner;
}
u += r.spacingOuter + t;
}
return u;
}
function hd(e, r, t, a, n, o) {
let l = "", u = e.next();
if (!u.done) {
l += r.spacingOuter;
const i = t + r.indent;
for (; !u.done; )
l += i + o(u.value, r, i, a, n), u = e.next(), u.done ? r.min || (l += ",") : l += "," + r.spacingInner;
l += r.spacingOuter + t;
}
return l;
}
function gd(e, r, t, a, n, o) {
let l = "";
if (e.length) {
l += r.spacingOuter;
const u = t + r.indent;
for (let i = 0; i < e.length; i++)
l += u, i in e && (l += o(e[i], r, u, a, n)), i < e.length - 1 ? l += "," + r.spacingInner : r.min || (l += ",");
l += r.spacingOuter + t;
}
return l;
}
function Rd(e, r, t, a, n, o) {
let l = "";
const u = bd(e, r.compareKeys);
if (u.length) {
l += r.spacingOuter;
const i = t + r.indent;
for (let s = 0; s < u.length; s++) {
const f = u[s], d = o(f, r, i, a, n), m = o(e[f], r, i, a, n);
l += i + d + ": " + m, s < u.length - 1 ? l += "," + r.spacingInner : r.min || (l += ",");
}
l += r.spacingOuter + t;
}
return l;
}
var he = {};
Object.defineProperty(he, "__esModule", {
value: !0
});
he.test = he.serialize = he.default = void 0;
var El = ue, Ar = function() {
return typeof globalThis < "u" ? globalThis : typeof Ar < "u" ? Ar : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
}(), Un = Ar["jest-symbol-do-not-touch"] || Ar.Symbol;
const Cd = typeof Un == "function" && Un.for ? Un.for("jest.asymmetricMatcher") : 1267621, _r = " ", Cu = (e, r, t, a, n, o) => {
const l = e.toString();
return l === "ArrayContaining" || l === "ArrayNotContaining" ? ++a > r.maxDepth ? "[" + l + "]" : l + _r + "[" + (0, El.printListItems)(
e.sample,
r,
t,
a,
n,
o
) + "]" : l === "ObjectContaining" || l === "ObjectNotContaining" ? ++a > r.maxDepth ? "[" + l + "]" : l + _r + "{" + (0, El.printObjectProperties)(
e.sample,
r,
t,
a,
n,
o
) + "}" : l === "StringMatching" || l === "StringNotMatching" || l === "StringContaining" || l === "StringNotContaining" ? l + _r + o(e.sample, r, t, a, n) : e.toAsymmetricMatcher();
};
he.serialize = Cu;
const _u = (e) => e && e.$$typeof === Cd;
he.test = _u;
const _d = {
serialize: Cu,
test: _u
};
var Ed = _d;
he.default = Ed;
var ge = {}, Pd = ({ onlyFirst: e = !1 } = {}) => {
const r = [
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
].join("|");
return new RegExp(r, e ? void 0 : "g");
};
Object.defineProperty(ge, "__esModule", {
value: !0
});
ge.test = ge.serialize = ge.default = void 0;
var Eu = Pu(Pd), A = Pu(Ru);
function Pu(e) {
return e && e.__esModule ? e : { default: e };
}
const wd = (e) => e.replace((0, Eu.default)(), (r) => {
switch (r) {
case A.default.red.close:
case A.default.green.close:
case A.default.cyan.close:
case A.default.gray.close:
case A.default.white.close:
case A.default.yellow.close:
case A.default.bgRed.close:
case A.default.bgGreen.close:
case A.default.bgYellow.close:
case A.default.inverse.close:
case A.default.dim.close:
case A.default.bold.close:
case A.default.reset.open:
case A.default.reset.close:
return "</>";
case A.default.red.open:
return "<red>";
case A.default.green.open:
return "<green>";
case A.default.cyan.open:
return "<cyan>";
case A.default.gray.open:
return "<gray>";
case A.default.white.open:
return "<white>";
case A.default.yellow.open:
return "<yellow>";
case A.default.bgRed.open:
return "<bgRed>";
case A.default.bgGreen.open:
return "<bgGreen>";
case A.default.bgYellow.open:
return "<bgYellow>";
case A.default.inverse.open:
return "<inverse>";
case A.default.dim.open:
return "<dim>";
case A.default.bold.open:
return "<bold>";
default:
return "";
}
}), wu = (e) => typeof e == "string" && !!e.match((0, Eu.default)());
ge.test = wu;
const qu = (e, r, t, a, n, o) => o(wd(e), r, t, a, n);
ge.serialize = qu;
const qd = {
serialize: qu,
test: wu
};
var xd = qd;
ge.default = xd;
var Re = {};
Object.defineProperty(Re, "__esModule", {
value: !0
});
Re.test = Re.serialize = Re.default = void 0;
var Pl = ue;
const Sd = " ", xu = ["DOMStringMap", "NamedNodeMap"], $d = /^(HTML\w*Collection|NodeList)$/, Td = (e) => xu.indexOf(e) !== -1 || $d.test(e), Su = (e) => e && e.constructor && !!e.constructor.name && Td(e.constructor.name);
Re.test = Su;
const Od = (e) => e.constructor.name === "NamedNodeMap", $u = (e, r, t, a, n, o) => {
const l = e.constructor.name;
return ++a > r.maxDepth ? "[" + l + "]" : (r.min ? "" : l + Sd) + (xu.indexOf(l) !== -1 ? "{" + (0, Pl.printObjectProperties)(
Od(e) ? Array.from(e).reduce((u, i) => (u[i.name] = i.value, u), {}) : { ...e },
r,
t,
a,
n,
o
) + "}" : "[" + (0, Pl.printListItems)(
Array.from(e),
r,
t,
a,
n,
o
) + "]");
};
Re.serialize = $u;
const Md = {
serialize: $u,
test: Su
};
var Ad = Md;
Re.default = Ad;
var Ce = {}, F = {}, Jo = {};
Object.defineProperty(Jo, "__esModule", {
value: !0
});
Jo.default = Id;
function Id(e) {
return e.replace(/</g, "<").replace(/>/g, ">");
}
Object.defineProperty(F, "__esModule", {
value: !0
});
F.printText = F.printProps = F.printElementAsLeaf = F.printElement = F.printComment = F.printChildren = void 0;
var Tu = Nd(Jo);
function Nd(e) {
return e && e.__esModule ? e : { default: e };
}
const Bd = (e, r, t, a, n, o, l) => {
const u = a + t.indent, i = t.colors;
return e.map((s) => {
const f = r[s];
let d = l(f, t, u, n, o);
return typeof f != "string" && (d.indexOf(`
`) !== -1 && (d = t.spacingOuter + u + d + t.spacingOuter + a), d = "{" + d + "}"), t.spacingInner + a + i.prop.open + s + i.prop.close + "=" + i.value.open + d + i.value.close;
}).join("");
};
F.printProps = Bd;
const Ld = (e, r, t, a, n, o) => e.map(
(l) => r.spacingOuter + t + (typeof l == "string" ? Ou(l, r) : o(l, r, t, a, n))
).join("");
F.printChildren = Ld;
const Ou = (e, r) => {
const t = r.colors.content;
return t.open + (0, Tu.default)(e) + t.close;
};
F.printText = Ou;
const kd = (e, r) => {
const t = r.colors.comment;
return t.open + "<!--" + (0, Tu.default)(e) + "-->" + t.close;
};
F.printComment = kd;
const Dd = (e, r, t, a, n) => {
const o = a.colors.tag;
return o.open + "<" + e + (r && o.close + r + a.spacingOuter + n + o.open) + (t ? ">" + o.close + t + a.spacingOuter + n + o.open + "</" + e : (r && !a.min ? "" : " ") + "/") + ">" + o.close;
};
F.printElement = Dd;
const jd = (e, r) => {
const t = r.colors.tag;
return t.open + "<" + e + t.close + " …" + t.open + " />" + t.close;
};
F.printElementAsLeaf = jd;
Object.defineProperty(Ce, "__esModule", {
value: !0
});
Ce.test = Ce.serialize = Ce.default = void 0;
var ke = F;
const Fd = 1, Mu = 3, Au = 8, Iu = 11, Hd = /^((HTML|SVG)\w*)?Element$/, Ud = (e) => {
try {
return typeof e.hasAttribute == "function" && e.hasAttribute("is");
} catch {
return !1;
}
}, zd = (e) => {
const r = e.constructor.name, { nodeType: t, tagName: a } = e, n = typeof a == "string" && a.includes("-") || Ud(e);
return t === Fd && (Hd.test(r) || n) || t === Mu && r === "Text" || t === Au && r === "Comment" || t === Iu && r === "DocumentFragment";
}, Nu = (e) => {
var r;
return (e == null || (r = e.constructor) === null || r === void 0 ? void 0 : r.name) && zd(e);
};
Ce.test = Nu;
function Wd(e) {
return e.nodeType === Mu;
}
function Vd(e) {
return e.nodeType === Au;
}
function zn(e) {
return e.nodeType === Iu;
}
const Bu = (e, r, t, a, n, o) => {
if (Wd(e))
return (0, ke.printText)(e.data, r);
if (Vd(e))
return (0, ke.printComment)(e.data, r);
const l = zn(e) ? "DocumentFragment" : e.tagName.toLowerCase();
return ++a > r.maxDepth ? (0, ke.printElementAsLeaf)(l, r) : (0, ke.printElement)(
l,
(0, ke.printProps)(
zn(e) ? [] : Array.from(e.attributes).map((u) => u.name).sort(),
zn(e) ? {} : Array.from(e.attributes).reduce((u, i) => (u[i.name] = i.value, u), {}),
r,
t + r.indent,
a,
n,
o
),
(0, ke.printChildren)(
Array.prototype.slice.call(e.childNodes || e.children),
r,
t + r.indent,
a,
n,
o
),
r,
t
);
};
Ce.serialize = Bu;
const Gd = {
serialize: Bu,
test: Nu
};
var Yd = Gd;
Ce.default = Yd;
var _e = {};
Object.defineProperty(_e, "__esModule", {
value: !0
});
_e.test = _e.serialize = _e.default = void 0;
var or = ue;
const Kd = "@@__IMMUTABLE_ITERABLE__@@", Xd = "@@__IMMUTABLE_LIST__@@", Jd = "@@__IMMUTABLE_KEYED__@@", Qd = "@@__IMMUTABLE_MAP__@@", wl = "@@__IMMUTABLE_ORDERED__@@", Zd = "@@__IMMUTABLE_RECORD__@@", ef = "@@__IMMUTABLE_SEQ__@@", rf = "@@__IMMUTABLE_SET__@@", tf = "@@__IMMUTABLE_STACK__@@", ze = (e) => "Immutable." + e, Zr = (e) => "[" + e + "]", lr = " ", ql = "…", af = (e, r, t, a, n, o, l) => ++a > r.maxDepth ? Zr(ze(l)) : ze(l) + lr + "{" + (0, or.printIteratorEntries)(
e.entries(),
r,
t,
a,
n,
o
) + "}";
function nf(e) {
let r = 0;
return {
next() {
if (r < e._keys.length) {
const t = e._keys[r++];
return {
done: !1,
value: [t, e.get(t)]
};
}
return {
done: !0,
value: void 0
};
}
};
}
const of = (e, r, t, a, n, o) => {
const l = ze(e._name || "Record");
return ++a > r.maxDepth ? Zr(l) : l + lr + "{" + (0, or.printIteratorEntries)(
nf(e),
r,
t,
a,
n,
o
) + "}";
}, lf = (e, r, t, a, n, o) => {
const l = ze("Seq");
return ++a > r.maxDepth ? Zr(l) : e[Jd] ? l + lr + "{" + // from Immutable collection of entries or from ECMAScript object
(e._iter || e._object ? (0, or.printIteratorEntries)(
e.entries(),
r,
t,
a,
n,
o
) : ql) + "}" : l + lr + "[" + (e._iter || // from Immutable collection of values
e._array || // from ECMAScript array
e._collection || // from ECMAScript collection in immutable v4
e._iterable ? (0, or.printIteratorValues)(
e.values(),
r,
t,
a,
n,
o
) : ql) + "]";
}, Wn = (e, r, t, a, n, o, l) => ++a > r.maxDepth ? Zr(ze(l)) : ze(l) + lr + "[" + (0, or.printIteratorValues)(
e.values(),
r,
t,
a,
n,
o
) + "]", Lu = (e, r, t, a, n, o) => e[Qd] ? af(
e,
r,
t,
a,
n,
o,
e[wl] ? "OrderedMap" : "Map"
) : e[Xd] ? Wn(
e,
r,
t,
a,
n,
o,
"List"
) : e[rf] ? Wn(
e,
r,
t,
a,
n,
o,
e[wl] ? "OrderedSet" : "Set"
) : e[tf] ? Wn(
e,
r,
t,
a,
n,
o,
"Stack"
) : e[ef] ? lf(e, r, t, a, n, o) : of(e, r, t, a, n, o);
_e.serialize = Lu;
const ku = (e) => e && (e[Kd] === !0 || e[Zd] === !0);
_e.test = ku;
const uf = {
serialize: Lu,
test: ku
};
var sf = uf;
_e.default = sf;
var Ee = {}, go = { exports: {} }, T = {};
/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var xl;
function cf() {
if (xl)
return T;
xl = 1;
var e = 60103, r = 60106, t = 60107, a = 60108, n = 60114, o = 60109, l = 60110, u = 60112, i = 60113, s = 60120, f = 60115, d = 60116, m = 60121, _ = 60122, x = 60117, E = 60129, S = 60131;
if (typeof Symbol == "function" && Symbol.for) {
var c = Symbol.for;
e = c("react.element"), r = c("react.portal"), t = c("react.fragment"), a = c("react.strict_mode"), n = c("react.profiler"), o = c("react.provider"), l = c("react.context"), u = c("react.forward_ref"), i = c("react.suspense"), s = c("react.suspense_list"), f = c("react.memo"), d = c("react.lazy"), m = c("react.block"), _ = c("react.server.block"), x = c("react.fundamental"), E = c("react.debug_trace_mode"), S = c("react.legacy_hidden");
}
function g(h) {
if (typeof h == "object" && h !== null) {
var q = h.$$typeof;
switch (q) {
case e:
switch (h = h.type, h) {
case t:
case n:
case a:
case i:
case s:
return h;
default:
switch (h = h && h.$$typeof, h) {
case l:
case u:
case d:
case f:
case o:
return h;
default:
return q;
}
}
case r:
return q;
}
}
}
var C = o, R = e, P = u, p = t, v = d, y = f, M = r, L = n, k = a, D = i;
return T.ContextConsumer = l, T.ContextProvider = C, T.Element = R, T.ForwardRef = P, T.Fragment = p, T.Lazy = v, T.Memo = y, T.Portal = M, T.Profiler = L, T.StrictMode = k, T.Suspense = D, T.isAsyncMode = function() {
return !1;
}, T.isConcurrentMode = function() {
return !1;
}, T.isContextConsumer = function(h) {
return g(h) === l;
}, T.isContextProvider = function(h) {
return g(h) === o;
}, T.isElement = function(h) {
return typeof h == "object" && h !== null && h.$$typeof === e;
}, T.isForwardRef = function(h) {
return g(h) === u;
}, T.isFragment = function(h) {
return g(h) === t;
}, T.isLazy = function(h) {
return g(h) === d;
}, T.isMemo = function(h) {
return g(h) === f;
}, T.isPortal = function(h) {
return g(h) === r;
}, T.isProfiler = function(h) {
return g(h) === n;
}, T.isStrictMode = function(h) {
return g(h) === a;
}, T.isSuspense = function(h) {
return g(h) === i;
}, T.isValidElementType = function(h) {
return typeof h == "string" || typeof h == "function" || h === t || h === n || h === E || h === a || h === i || h === s || h === S || typeof h == "object" && h !== null && (h.$$typeof === d || h.$$typeof === f || h.$$typeof === o || h.$$typeof === l || h.$$typeof === u || h.$$typeof === x || h.$$typeof === m || h[0] === _);
}, T.typeOf = g, T;
}
var O = {}, Sl;
function df() {
return Sl || (Sl = 1, Q.env.NODE_ENV !== "production" && function() {
var e = 60103, r = 60106, t = 60107, a = 60108, n = 60114, o = 60109, l = 60110, u = 60112, i = 60113, s = 60120, f = 60115, d = 60116, m = 60121, _ = 60122, x = 60117, E = 60129, S = 60131;
if (typeof Symbol == "function" && Symbol.for) {
var c = Symbol.for;
e = c("react.element"), r = c("react.portal"), t = c("react.fragment"), a = c("react.strict_mode"), n = c("react.profiler"), o = c("react.provider"), l = c("react.context"), u = c("react.forward_ref"), i = c("react.suspense"), s = c("react.suspense_list"), f = c("react.memo"), d = c("react.lazy"), m = c("react.block"), _ = c("react.server.block"), x = c("react.fundamental"), c("react.scope"), c("react.opaque.id"), E = c("react.debug_trace_mode"), c("react.offscreen"), S = c("react.legacy_hidden");
}
var g = !1;
function C(w) {
return !!(typeof w == "string" || typeof w == "function" || w === t || w === n || w === E || w === a || w === i || w === s || w === S || g || typeof w == "object" && w !== null && (w.$$typeof === d || w.$$typeof === f || w.$$typeof === o || w.$$typeof === l || w.$$typeof === u || w.$$typeof === x || w.$$typeof === m || w[0] === _));
}
function R(w) {
if (typeof w == "object" && w !== null) {
var Hn = w.$$typeof;
switch (Hn) {
case e:
var Rr = w.type;
switch (Rr) {
case t:
case n:
case a:
case i:
case s:
return Rr;
default:
var bl = Rr && Rr.$$typeof;
switch (bl) {
case l:
case u:
case d:
case f:
case o:
return bl;
default:
return Hn;
}
}
case r:
return Hn;
}
}
}
var P = l, p = o, v = e, y = u, M = t, L = d, k = f, D = r, h = n, q = a, j = i, N = !1, U = !1;
function z(w) {
return N || (N = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function Le(w) {
return U || (U = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function gr(w) {
return R(w) === l;
}
function qc(w) {
return R(w) === o;
}
function xc(w) {
return typeof w == "object" && w !== null && w.$$typeof === e;
}
function Sc(w) {
return R(w) === u;
}
function $c(w) {
return R(w) === t;
}
function Tc(w) {
return R(w) === d;
}
function Oc(w) {
return R(w) === f;
}
function Mc(w) {
return R(w) === r;
}
function Ac(w) {
return R(w) === n;
}
function Ic(w) {
return R(w) === a;
}
function Nc(w) {
return R(w) === i;
}
O.ContextConsumer = P, O.ContextProvider = p, O.Element = v, O.ForwardRef = y, O.Fragment = M, O.Lazy = L, O.Memo = k, O.Portal = D, O.Profiler = h, O.StrictMode = q, O.Suspense = j, O.isAsyncMode = z, O.isConcurrentMode = Le, O.isContextConsumer = gr, O.isContextProvider = qc, O.isElement = xc, O.isForwardRef = Sc, O.isFragment = $c, O.isLazy = Tc, O.isMemo = Oc, O.isPortal = Mc, O.isProfiler = Ac, O.isStrictMode = Ic, O.isSuspense = Nc, O.isValidElementType = C, O.typeOf = R;
}()), O;
}
Q.env.NODE_ENV === "production" ? go.exports = cf() : go.exports = df();
var ff = go.exports;
Object.defineProperty(Ee, "__esModule", {
value: !0
});
Ee.test = Ee.serialize = Ee.default = void 0;
var Te = pf(ff), Er = F;
function Du(e) {
if (typeof WeakMap != "function")
return null;
var r = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap();
return (Du = function(a) {
return a ? t : r;
})(e);
}
function pf(e, r) {
if (!r && e && e.__esModule)
return e;
if (e === null || typeof e != "object" && typeof e != "function")
return { default: e };
var t = Du(r);
if (t && t.has(e))
return t.get(e);
var a = {}, n = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var o in e)
if (o !== "default" && Object.prototype.hasOwnProperty.call(e, o)) {
var l = n ? Object.getOwnPropertyDescriptor(e, o) : null;
l && (l.get || l.set) ? Object.defineProperty(a, o, l) : a[o] = e[o];
}
return a.default = e, t && t.set(e, a), a;
}
const ju = (e, r = []) => (Array.isArray(e) ? e.forEach((t) => {
ju(t, r);
}) : e != null && e !== !1 && r.push(e), r), $l = (e) => {
const r = e.type;
if (typeof r == "string")
return r;
if (typeof r == "function")
return r.displayName || r.name || "Unknown";
if (Te.isFragment(e))
return "React.Fragment";
if (Te.isSuspense(e))
return "React.Suspense";
if (typeof r == "object" && r !== null) {
if (Te.isContextProvider(e))
return "Context.Provider";
if (Te.isContextConsumer(e))
return "Context.Consumer";
if (Te.isForwardRef(e)) {
if (r.displayName)
return r.displayName;
const t = r.render.displayName || r.render.name || "";
return t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef";
}
if (Te.isMemo(e)) {
const t = r.displayName || r.type.displayName || r.type.name || "";
return t !== "" ? "Memo(" + t + ")" : "Memo";
}
}
return "UNDEFINED";
}, mf = (e) => {
const { props: r } = e;
return Object.keys(r).filter((t) => t !== "children" && r[t] !== void 0).sort();
}, Fu = (e, r, t, a, n, o) => ++a > r.maxDepth ? (0, Er.printElementAsLeaf)($l(e), r) : (0, Er.printElement)(
$l(e),
(0, Er.printProps)(
mf(e),
e.props,
r,
t + r.indent,
a,
n,
o
),
(0, Er.printChildren)(
ju(e.props.children),
r,
t + r.indent,
a,
n,
o
),
r,
t
);
Ee.serialize = Fu;
const Hu = (e) => e != null && Te.isElement(e);
Ee.test = Hu;
const vf = {
serialize: Fu,
test: Hu
};
var bf = vf;
Ee.default = bf;
var Pe = {};
Object.defineProperty(Pe, "__esModule", {
value: !0
});
Pe.test = Pe.serialize = Pe.default = void 0;
var Pr = F, Ir = function() {
return typeof globalThis < "u" ? globalThis : typeof Ir < "u" ? Ir : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
}(), Vn = Ir["jest-symbol-do-not-touch"] || Ir.Symbol;
const yf = typeof Vn == "function" && Vn.for ? Vn.for("react.test.json") : 245830487, hf = (e) => {
const { props: r } = e;
return r ? Object.keys(r).filter((t) => r[t] !== void 0).sort() : [];
}, Uu = (e, r, t, a, n, o) => ++a > r.maxDepth ? (0, Pr.printElementAsLeaf)(e.type, r) : (0, Pr.printElement)(
e.type,
e.props ? (0, Pr.printProps)(
hf(e),
e.props,
r,
t + r.indent,
a,
n,
o
) : "",
e.children ? (0, Pr.printChildren)(
e.children,
r,
t + r.indent,
a,
n,
o
) : "",
r,
t
);
Pe.serialize = Uu;
const zu = (e) => e && e.$$typeof === yf;
Pe.test = zu;
const gf = {
serialize: Uu,
test: zu
};
var Rf = gf;
Pe.default = Rf;
Object.defineProperty(qe, "__esModule", {
value: !0
});
qe.default = qe.DEFAULT_OPTIONS = void 0;
var Cf = qe.format = ts, Wu = qe.plugins = void 0, _f = xe(Ru), Xe = ue, Ef = xe(
he
), Pf = xe(ge), wf = xe(Re), qf = xe(Ce), xf = xe(_e), Sf = xe(Ee), $f = xe(
Pe
);
function xe(e) {
return e && e.__esModule ? e : { default: e };
}
const Vu = Object.prototype.toString, Tf = Date.prototype.toISOString, Of = Error.prototype.toString, Tl = RegExp.prototype.toString, Gn = (e) => typeof e.constructor == "function" && e.constructor.name || "Object", Mf = (e) => typeof window < "u" && e === window, Af = /^Symbol\((.*)\)(.*)$/, If = /\n/gi;
class Gu extends Error {
constructor(r, t) {
super(r), this.stack = t, this.name = this.constructor.name;
}
}
function Nf(e) {
return e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" || e === "[object Uint8ClampedArray]" || e === "[object Uint16Array]" || e === "[object Uint32Array]";
}
function Bf(e) {
return Object.is(e, -0) ? "-0" : String(e);
}
function Lf(e) {
return `${e}n`;
}
function Ol(e, r) {
return r ? "[Function " + (e.name || "anonymous") + "]" : "[Function]";
}
function Ml(e) {
return String(e).replace(Af, "Symbol($1)");
}
function Al(e) {
return "[" + Of.call(e) + "]";
}
function Yu(e, r, t, a) {
if (e === !0 || e === !1)
return "" + e;
if (e === void 0)
return "undefined";
if (e === null)
return "null";
const n = typeof e;
if (n === "number")
return Bf(e);
if (n === "bigint")
return Lf(e);
if (n === "string")
return a ? '"' + e.replace(/"|\\/g, "\\$&") + '"' : '"' + e + '"';
if (n === "function")
return Ol(e, r);
if (n === "symbol")
return Ml(e);
const o = Vu.call(e);
return o === "[object WeakMap]" ? "WeakMap {}" : o === "[object WeakSet]" ? "WeakSet {}" : o === "[object Function]" || o === "[object GeneratorFunction]" ? Ol(e, r) : o === "[object Symbol]" ? Ml(e) : o === "[object Date]" ? isNaN(+e) ? "Date { NaN }" : Tf.call(e) : o === "[object Error]" ? Al(e) : o === "[object RegExp]" ? t ? Tl.call(e).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : Tl.call(e) : e instanceof Error ? Al(e) : null;
}
function Ku(e, r, t, a, n, o) {
if (n.indexOf(e) !== -1)
return "[Circular]";
n = n.slice(), n.push(e);
const l = ++a > r.maxDepth, u = r.min;
if (r.callToJSON && !l && e.toJSON && typeof e.toJSON == "function" && !o)
return fe(e.toJSON(), r, t, a, n, !0);
const i = Vu.call(e);
return i === "[object Arguments]" ? l ? "[Arguments]" : (u ? "" : "Arguments ") + "[" + (0, Xe.printListItems)(
e,
r,
t,
a,
n,
fe
) + "]" : Nf(i) ? l ? "[" + e.constructor.name + "]" : (u || !r.printBasicPrototype && e.constructor.name === "Array" ? "" : e.constructor.name + " ") + "[" + (0, Xe.printListItems)(
e,
r,
t,
a,
n,
fe
) + "]" : i === "[object Map]" ? l ? "[Map]" : "Map {" + (0, Xe.printIteratorEntries)(
e.entries(),
r,
t,
a,
n,
fe,
" => "
) + "}" : i === "[object Set]" ? l ? "[Set]" : "Set {" + (0, Xe.printIteratorValues)(
e.values(),
r,
t,
a,
n,
fe
) + "}" : l || Mf(e) ? "[" + Gn(e) + "]" : (u || !r.printBasicPrototype && Gn(e) === "Object" ? "" : Gn(e) + " ") + "{" + (0, Xe.printObjectProperties)(
e,
r,
t,
a,
n,
fe
) + "}";
}
function kf(e) {
return e.serialize != null;
}
function Xu(e, r, t, a, n, o) {
let l;
try {
l = kf(e) ? e.serialize(r, t, a, n, o, fe) : e.print(
r,
(u) => fe(u, t, a, n, o),
(u) => {
const i = a + t.indent;
return i + u.replace(If, `
` + i);
},
{
edgeSpacing: t.spacingOuter,
min: t.min,
spacing: t.spacingInner
},
t.colors
);
} catch (u) {
throw new Gu(u.message, u.stack);
}
if (typeof l != "string")
throw new Error(
`pretty-format: Plugin must return type "string" but instead returned "${typeof l}".`
);
return l;
}
function Ju(e, r) {
for (let t = 0; t < e.length; t++)
try {
if (e[t].test(r))
return e[t];
} catch (a) {
throw new Gu(a.message, a.stack);
}
return null;
}
function fe(e, r, t, a, n, o) {
const l = Ju(r.plugins, e);
if (l !== null)
return Xu(l, e, r, t, a, n);
const u = Yu(
e,
r.printFunctionName,
r.escapeRegex,
r.escapeString
);
return u !== null ? u : Ku(
e,
r,
t,
a,
n,
o
);
}
const Qo = {
comment: "gray",
content: "reset",
prop: "yellow",
tag: "cyan",
value: "green"
}, Qu = Object.keys(Qo), K = {
callToJSON: !0,
compareKeys: void 0,
escapeRegex: !1,
escapeString: !0,
highlight: !1,
indent: 2,
maxDepth: 1 / 0,
min: !1,
plugins: [],
printBasicPrototype: !0,
printFunctionName: !0,
theme: Qo
};
qe.DEFAULT_OPTIONS = K;
function Df(e) {
if (Object.keys(e).forEach((r) => {
if (!K.hasOwnProperty(r))
throw new Error(`pretty-format: Unknown option "${r}".`);
}), e.min && e.indent !== void 0 && e.indent !== 0)
throw new Error(
'pretty-format: Options "min" and "indent" cannot be used together.'
);
if (e.theme !== void 0) {
if (e.theme === null)
throw new Error('pretty-format: Option "theme" must not be null.');
if (typeof e.theme != "object")
throw new Error(
`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`
);
}
}
const jf = (e) => Qu.reduce((r, t) => {
const a = e.theme && e.theme[t] !== void 0 ? e.theme[t] : Qo[t], n = a && _f.default[a];
if (n && typeof n.close == "string" && typeof n.open == "string")
r[t] = n;
else
throw new Error(
`pretty-format: Option "theme" has a key "${t}" whose value "${a}" is undefined in ansi-styles.`
);
return r;
}, /* @__PURE__ */ Object.create(null)), Ff = () => Qu.reduce((e, r) => (e[r] = {
close: "",
open: ""
}, e), /* @__PURE__ */ Object.create(null)), Zu = (e) => e && e.printFunctionName !== void 0 ? e.printFunctionName : K.printFunctionName, es = (e) => e && e.escapeRegex !== void 0 ? e.escapeRegex : K.escapeRegex, rs = (e) => e && e.escapeString !== void 0 ? e.escapeString : K.escapeString, Il = (e) => {
var r;
return {
callToJSON: e && e.callToJSON !== void 0 ? e.callToJSON : K.callToJSON,
colors: e && e.highlight ? jf(e) : Ff(),
compareKeys: e && typeof e.compareKeys == "function" ? e.compareKeys : K.compareKeys,
escapeRegex: es(e),
escapeString: rs(e),
indent: e && e.min ? "" : Hf(
e && e.indent !== void 0 ? e.indent : K.indent
),
maxDepth: e && e.maxDepth !== void 0 ? e.maxDepth : K.maxDepth,
min: e && e.min !== void 0 ? e.min : K.min,
plugins: e && e.plugins !== void 0 ? e.plugins : K.plugins,
printBasicPrototype: (r = e == null ? void 0 : e.printBasicPrototype) !== null && r !== void 0 ? r : !0,
printFunctionName: Zu(e),
spacingInner: e && e.min ? " " : `
`,
spacingOuter: e && e.min ? "" : `
`
};
};
function Hf(e) {
return new Array(e + 1).join(" ");
}
function ts(e, r) {
if (r && (Df(r), r.plugins)) {
const a = Ju(r.plugins, e);
if (a !== null)
return Xu(a, e, Il(r), "", 0, []);
}
const t = Yu(
e,
Zu(r),
es(r),
rs(r)
);
return t !== null ? t : Ku(e, Il(r), "", 0, []);
}
const Uf = {
AsymmetricMatcher: Ef.default,
ConvertAnsi: Pf.default,
DOMCollection: wf.default,
DOMElement: qf.default,
Immutable: xf.default,
ReactElement: Sf.default,
ReactTestComponent: $f.default
};
Wu = qe.plugins = Uf;
var zf = ts;
qe.default = zf;
var Wf = Object.prototype.toString;
function Nl(e) {
return typeof e == "function" || Wf.call(e) === "[object Function]";
}
function Vf(e) {
var r = Number(e);
return isNaN(r) ? 0 : r === 0 || !isFinite(r) ? r : (r > 0 ? 1 : -1) * Math.floor(Math.abs(r));
}
var Gf = Math.pow(2, 53) - 1;
function Yf(e) {
var r = Vf(e);
return Math.min(Math.max(r, 0), Gf);
}
function X(e, r) {
var t = Array, a = Object(e);
if (e == null)
throw new TypeError("Array.from requires an array-like object - not null or undefined");
if (typeof r < "u" && !Nl(r))
throw new TypeError("Array.from: when provided, the second argument must be a function");
for (var n = Yf(a.length), o = Nl(t) ? Object(new t(n)) : new Array(n), l = 0, u; l < n; )
u = a[l], r ? o[l] = r(u, l) : o[l] = u, l += 1;
return o.length = n, o;
}
function ir(e) {
"@babel/helpers - typeof";
return ir = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
return typeof r;
} : function(r) {
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
}, ir(e);
}
function Kf(e, r) {
if (!(e instanceof r))
throw new TypeError("Cannot call a class as a function");
}
function Bl(e, r) {
for (var t = 0; t < r.length; t++) {
var a = r[t];
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, as(a.key), a);
}
}
function Xf(e, r, t) {
return r && Bl(e.prototype, r), t && Bl(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
}
function Jf(e, r, t) {
return r = as(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
}
function as(e) {
var r = Qf(e, "string");
return ir(r) === "symbol" ? r : String(r);
}
function Qf(e, r) {
if (ir(e) !== "object" || e === null)
return e;
var t = e[Symbol.toPrimitive];
if (t !== void 0) {
var a = t.call(e, r || "default");
if (ir(a) !== "object")
return a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (r === "string" ? String : Number)(e);
}
var Zf = /* @__PURE__ */ function() {
function e() {
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
Kf(this, e), Jf(this, "items", void 0), this.items = r;
}
return Xf(e, [{
key: "add",
value: function(t) {
return this.has(t) === !1 && this.items.push(t), this;
}
}, {
key: "clear",
value: function() {
this.items = [];
}
}, {
key: "delete",
value: function(t) {
var a = this.items.length;
return this.items = this.items.filter(function(n) {
return n !== t;
}), a !== this.items.length;
}
}, {
key: "forEach",
value: function(t) {
var a = this;
this.items.forEach(function(n) {
t(n, n, a);
});
}
}, {
key: "has",
value: function(t) {
return this.items.indexOf(t) !== -1;
}
}, {
key: "size",
get: function() {
return this.items.length;
}
}]), e;
}();
const ep = typeof Set > "u" ? Set : Zf;
function H(e) {
var r;
return (
// eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
(r = e.localName) !== null && r !== void 0 ? r : (
// eslint-disable-next-line no-restricted-properties -- required for the fallback
e.tagName.toLowerCase()
)
);
}
var rp = {
article: "article",
aside: "complementary",
button: "button",
datalist: "listbox",
dd: "definition",
details: "group",
dialog: "dialog",
dt: "term",
fieldset: "group",
figure: "figure",
// WARNING: Only with an accessible name
form: "form",
footer: "contentinfo",
h1: "heading",
h2: "heading",
h3: "heading",
h4: "heading",
h5: "heading",
h6: "heading",
header: "banner",
hr: "separator",
html: "document",
legend: "legend",
li: "listitem",
math: "math",
main: "main",
menu: "list",
nav: "navigation",
ol: "list",
optgroup: "group",
// WARNING: Only in certain context
option: "option",
output: "status",
progress: "progressbar",
// WARNING: Only with an accessible name
section: "region",
summary: "button",
table: "table",
tbody: "rowgroup",
textarea: "textbox",
tfoot: "rowgroup",
// WARNING: Only in certain context
td: "cell",
th: "columnheader",
thead: "rowgroup",
tr: "row",
ul: "list"
}, tp = {
caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
};
function ap(e, r) {
return [
"aria-atomic",
"aria-busy",
"aria-controls",
"aria-current",
"aria-describedby",
"aria-details",
// "disabled",
"aria-dropeffect",
// "errormessage",
"aria-flowto",
"aria-grabbed",
// "haspopup",
"aria-hidden",
// "invalid",
"aria-keyshortcuts",
"aria-label",
"aria-labelledby",
"aria-live",
"aria-owns",
"aria-relevant",
"aria-roledescription"
].some(function(t) {
var a;
return e.hasAttribute(t) && !((a = tp[r]) !== null && a !== void 0 && a.has(t));
});
}
function ns(e, r) {
return ap(e, r);
}
function np(e) {
var r = lp(e);
if (r === null || r === "presentation") {
var t = op(e);
if (r !== "presentation" || ns(e, t || ""))
return t;
}
return r;
}
function op(e) {
var r = rp[H(e)];
if (r !== void 0)
return r;
switch (H(e)) {
case "a":
case "area":
case "link":
if (e.hasAttribute("href"))
return "link";
break;
case "img":
return e.getAttribute("alt") === "" && !ns(e, "img") ? "presentation" : "img";
case "input": {
var t = e, a = t.type;
switch (a) {
case "button":
case "image":
case "reset":
case "submit":
return "button";
case "checkbox":
case "radio":
return a;
case "range":
return "slider";
case "email":
case "tel":
case "text":
case "url":
return e.hasAttribute("list") ? "combobox" : "textbox";
case "search":
return e.hasAttribute("list") ? "combobox" : "searchbox";
case "number":
return "spinbutton";
default:
return null;
}
}
case "select":
return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox";
}
return null;
}
function lp(e) {
var r = e.getAttribute("role");
if (r !== null) {
var t = r.trim().split(" ")[0];
if (t.length > 0)
return t;
}
return null;
}
function B(e) {
return e !== null && e.nodeType === e.ELEMENT_NODE;
}
function os(e) {
return B(e) && H(e) === "caption";
}
function Sr(e) {
return B(e) && H(e) === "input";
}
function ip(e) {
return B(e) && H(e) === "optgroup";
}
function up(e) {
return B(e) && H(e) === "select";
}
function sp(e) {
return B(e) && H(e) === "table";
}
function cp(e) {
return B(e) && H(e) === "textarea";
}
function dp(e) {
var r = e.ownerDocument === null ? e : e.ownerDocument, t = r.defaultView;
if (t === null)
throw new TypeError("no window available");
return t;
}
function fp(e) {
return B(e) && H(e) === "fieldset";
}
function pp(e) {
return B(e) && H(e) === "legend";
}
function mp(e) {
return B(e) && H(e) === "slot";
}
function vp(e) {
return B(e) && e.ownerSVGElement !== void 0;
}
function bp(e) {
return B(e) && H(e) === "svg";
}
function yp(e) {
return vp(e) && H(e) === "title";
}
function Nr(e, r) {
if (B(e) && e.hasAttribute(r)) {
var t = e.getAttribute(r).split(" "), a = e.getRootNode ? e.getRootNode() : e.ownerDocument;
return t.map(function(n) {
return a.getElementById(n);
}).filter(
function(n) {
return n !== null;
}
// TODO: why does this not narrow?
);
}
return [];
}
function le(e, r) {
return B(e) ? r.indexOf(np(e)) !== -1 : !1;
}
function hp(e) {
return e.trim().replace(/\s\s+/g, " ");
}
function gp(e, r) {
if (!B(e))
return !1;
if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true")
return !0;
var t = r(e);
return t.getPropertyValue("display") === "none" || t.getPropertyValue("visibility") === "hidden";
}
function Rp(e) {
return le(e, ["button", "combobox", "listbox", "textbox"]) || ls(e, "range");
}
function ls(e, r) {
if (!B(e))
return !1;
switch (r) {
case "range":
return le(e, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
default:
throw new TypeError("No knowledge about abstract role '".concat(r, "'. This is likely a bug :("));
}
}
function Ll(e, r) {
var t = X(e.querySelectorAll(r));
return Nr(e, "aria-owns").forEach(function(a) {
t.push.apply(t, X(a.querySelectorAll(r)));
}), t;
}
function Cp(e) {
return up(e) ? e.selectedOptions || Ll(e, "[selected]") : Ll(e, '[aria-selected="true"]');
}
function _p(e) {
return le(e, ["none", "presentation"]);
}
function Ep(e) {
return os(e);
}
function Pp(e) {
return le(e, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
}
function wp(e) {
return !1;
}
function qp(e) {
return Sr(e) || cp(e) ? e.value : e.textContent || "";
}
function kl(e) {
var r = e.getPropertyValue("content");
return /^["'].*["']$/.test(r) ? r.slice(1, -1) : "";
}
function is(e) {
var r = H(e);
return r === "button" || r === "input" && e.getAttribute("type") !== "hidden" || r === "meter" || r === "output" || r === "progress" || r === "select" || r === "textarea";
}
function us(e) {
if (is(e))
return e;
var r = null;
return e.childNodes.forEach(function(t) {
if (r === null && B(t)) {
var a = us(t);
a !== null && (r = a);
}
}), r;
}
function xp(e) {
if (e.control !== void 0)
return e.control;
var r = e.getAttribute("for");
return r !== null ? e.ownerDocument.getElementById(r) : us(e);
}
function Sp(e) {
var r = e.labels;
if (r === null)
return r;
if (r !== void 0)
return X(r);
if (!is(e))
return null;
var t = e.ownerDocument;
return X(t.querySelectorAll("label")).filter(function(a) {
return xp(a) === e;
});
}
function $p(e) {
var r = e.assignedNodes();
return r.length === 0 ? X(e.childNodes) : r;
}
function ss(e) {
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new ep(), a = dp(e), n = r.compute, o = n === void 0 ? "name" : n, l = r.computedStyleSupportsPseudoElements, u = l === void 0 ? r.getComputedStyle !== void 0 : l, i = r.getComputedStyle, s = i === void 0 ? a.getComputedStyle.bind(a) : i, f = r.hidden, d = f === void 0 ? !1 : f;
function m(c, g) {
var C = "";
if (B(c) && u) {
var R = s(c, "::before"), P = kl(R);
C = "".concat(P, " ").concat(C);
}
var p = mp(c) ? $p(c) : X(c.childNodes).concat(Nr(c, "aria-owns"));
if (p.forEach(function(M) {
var L = S(M, {
isEmbeddedInLabel: g.isEmbeddedInLabel,
isReferenced: !1,
recursion: !0
}), k = B(M) ? s(M).getPropertyValue("display") : "inline", D = k !== "inline" ? " " : "";
C += "".concat(D).concat(L).concat(D);
}), B(c) && u) {
var v = s(c, "::after"), y = kl(v);
C = "".concat(C, " ").concat(y);
}
return C.trim();
}
function _(c, g) {
var C = c.getAttributeNode(g);
return C !== null && !t.has(C) && C.value.trim() !== "" ? (t.add(C), C.value) : null;
}
function x(c) {
return B(c) ? _(c, "title") : null;
}
function E(c) {
if (!B(c))
return null;
if (fp(c)) {
t.add(c);
for (var g = X(c.childNodes), C = 0; C < g.length; C += 1) {
var R = g[C];
if (pp(R))
return S(R, {
isEmbeddedInLabel: !1,
isReferenced: !1,
recursion: !1
});
}
} else if (sp(c)) {
t.add(c);
for (var P = X(c.childNodes), p = 0; p < P.length; p += 1) {
var v = P[p];
if (os(v))
return S(v, {
isEmbeddedInLabel: !1,
isReferenced: !1,
recursion: !1
});
}
} else if (bp(c)) {
t.add(c);
for (var y = X(c.childNodes), M = 0; M < y.length; M += 1) {
var L = y[M];
if (yp(L))
return L.textContent;
}
return null;
} else if (H(c) === "img" || H(c) === "area") {
var k = _(c, "alt");
if (k !== null)
return k;
} else if (ip(c)) {
var D = _(c, "label");
if (D !== null)
return D;
}
if (Sr(c) && (c.type === "button" || c.type === "submit" || c.type === "reset")) {
var h = _(c, "value");
if (h !== null)
return h;
if (c.type === "submit")
return "Submit";
if (c.type === "reset")
return "Reset";
}
var q = Sp(c);
if (q !== null && q.length !== 0)
return t.add(c), X(q).map(function(z) {
return S(z, {
isEmbeddedInLabel: !0,
isReferenced: !1,
recursion: !0
});
}).filter(function(z) {
return z.length > 0;
}).join(" ");
if (Sr(c) && c.type === "image") {
var j = _(c, "alt");
if (j !== null)
return j;
var N = _(c, "title");
return N !== null ? N : "Submit Query";
}
if (le(c, ["button"])) {
var U = m(c, {
isEmbeddedInLabel: !1,
isReferenced: !1
});
if (U !== "")
return U;
}
return null;
}
function S(c, g) {
if (t.has(c))
return "";
if (!d && gp(c, s) && !g.isReferenced)
return t.add(c), "";
var C = B(c) ? c.getAttributeNode("aria-labelledby") : null, R = C !== null && !t.has(C) ? Nr(c, "aria-labelledby") : [];
if (o === "name" && !g.isReferenced && R.length > 0)
return t.add(C), R.map(function(k) {
return S(k, {
isEmbeddedInLabel: g.isEmbeddedInLabel,
isReferenced: !0,
// this isn't recursion as specified, otherwise we would skip
// `aria-label` in
// <input id="myself" aria-label="foo" aria-labelledby="myself"
recursion: !1
});
}).join(" ");
var P = g.recursion && Rp(c) && o === "name";
if (!P) {
var p = (B(c) && c.getAttribute("aria-label") || "").trim();
if (p !== "" && o === "name")
return t.add(c), p;
if (!_p(c)) {
var v = E(c);
if (v !== null)
return t.add(c), v;
}
}
if (le(c, ["menu"]))
return t.add(c), "";
if (P || g.isEmbeddedInLabel || g.isReferenced) {
if (le(c, ["combobox", "listbox"])) {
t.add(c);
var y = C