@ansible/ansible-ui-framework
Version:
A framework for building applications using PatternFly.
1,380 lines (1,378 loc) • 3.27 MB
JavaScript
import * as x from "react";
import F, { useState as Ia, useRef as Ko, useEffect as As, forwardRef as PP, useMemo as bl, useImperativeHandle as W8, useReducer as lre, useCallback as So, createContext as v_, Fragment as MP, useContext as xo, useInsertionEffect as cre, useLayoutEffect as ure, createElement as dre, useId as pre, Component as mre } from "react";
function Tl(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function fre(e) {
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
var t = e.default;
if (typeof t == "function") {
var n = function r() {
return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
n.prototype = t.prototype;
} else n = {};
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
var a = Object.getOwnPropertyDescriptor(e, r);
Object.defineProperty(n, r, a.get ? a : {
enumerable: !0,
get: function() {
return e[r];
}
});
}), n;
}
var dw = { exports: {} }, Ub = {};
/**
* @license React
* react-jsx-runtime.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 uB;
function gre() {
if (uB) return Ub;
uB = 1;
var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
function l(u, m, f) {
var _, h = {}, S = null, E = null;
f !== void 0 && (S = "" + f), m.key !== void 0 && (S = "" + m.key), m.ref !== void 0 && (E = m.ref);
for (_ in m) r.call(m, _) && !o.hasOwnProperty(_) && (h[_] = m[_]);
if (u && u.defaultProps) for (_ in m = u.defaultProps, m) h[_] === void 0 && (h[_] = m[_]);
return { $$typeof: t, type: u, key: S, ref: E, props: h, _owner: a.current };
}
return Ub.Fragment = n, Ub.jsx = l, Ub.jsxs = l, Ub;
}
var ET = {};
/**
* @license React
* react-jsx-runtime.development.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 dB;
function _re() {
return dB || (dB = 1, process.env.NODE_ENV !== "production" && function() {
var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), C = Symbol.iterator, O = "@@iterator";
function w(ae) {
if (ae === null || typeof ae != "object")
return null;
var qe = C && ae[C] || ae[O];
return typeof qe == "function" ? qe : null;
}
var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function A(ae) {
{
for (var qe = arguments.length, dt = new Array(qe > 1 ? qe - 1 : 0), zt = 1; zt < qe; zt++)
dt[zt - 1] = arguments[zt];
D("error", ae, dt);
}
}
function D(ae, qe, dt) {
{
var zt = R.ReactDebugCurrentFrame, fn = zt.getStackAddendum();
fn !== "" && (qe += "%s", dt = dt.concat([fn]));
var rn = dt.map(function(On) {
return String(On);
});
rn.unshift("Warning: " + qe), Function.prototype.apply.call(console[ae], console, rn);
}
}
var z = !1, M = !1, G = !1, V = !1, H = !1, K;
K = Symbol.for("react.module.reference");
function j(ae) {
return !!(typeof ae == "string" || typeof ae == "function" || ae === r || ae === o || H || ae === a || ae === f || ae === _ || V || ae === E || z || M || G || typeof ae == "object" && ae !== null && (ae.$$typeof === S || ae.$$typeof === h || ae.$$typeof === l || ae.$$typeof === u || ae.$$typeof === m || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
ae.$$typeof === K || ae.getModuleId !== void 0));
}
function U(ae, qe, dt) {
var zt = ae.displayName;
if (zt)
return zt;
var fn = qe.displayName || qe.name || "";
return fn !== "" ? dt + "(" + fn + ")" : dt;
}
function Y(ae) {
return ae.displayName || "Context";
}
function W(ae) {
if (ae == null)
return null;
if (typeof ae.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof ae == "function")
return ae.displayName || ae.name || null;
if (typeof ae == "string")
return ae;
switch (ae) {
case r:
return "Fragment";
case n:
return "Portal";
case o:
return "Profiler";
case a:
return "StrictMode";
case f:
return "Suspense";
case _:
return "SuspenseList";
}
if (typeof ae == "object")
switch (ae.$$typeof) {
case u:
var qe = ae;
return Y(qe) + ".Consumer";
case l:
var dt = ae;
return Y(dt._context) + ".Provider";
case m:
return U(ae, ae.render, "ForwardRef");
case h:
var zt = ae.displayName || null;
return zt !== null ? zt : W(ae.type) || "Memo";
case S: {
var fn = ae, rn = fn._payload, On = fn._init;
try {
return W(On(rn));
} catch {
return null;
}
}
}
return null;
}
var J = Object.assign, Z = 0, pe, ue, re, te, L, ie, fe;
function $() {
}
$.__reactDisabledLog = !0;
function ge() {
{
if (Z === 0) {
pe = console.log, ue = console.info, re = console.warn, te = console.error, L = console.group, ie = console.groupCollapsed, fe = console.groupEnd;
var ae = {
configurable: !0,
enumerable: !0,
value: $,
writable: !0
};
Object.defineProperties(console, {
info: ae,
log: ae,
warn: ae,
error: ae,
group: ae,
groupCollapsed: ae,
groupEnd: ae
});
}
Z++;
}
}
function Ae() {
{
if (Z--, Z === 0) {
var ae = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: J({}, ae, {
value: pe
}),
info: J({}, ae, {
value: ue
}),
warn: J({}, ae, {
value: re
}),
error: J({}, ae, {
value: te
}),
group: J({}, ae, {
value: L
}),
groupCollapsed: J({}, ae, {
value: ie
}),
groupEnd: J({}, ae, {
value: fe
})
});
}
Z < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var ve = R.ReactCurrentDispatcher, He;
function Be(ae, qe, dt) {
{
if (He === void 0)
try {
throw Error();
} catch (fn) {
var zt = fn.stack.trim().match(/\n( *(at )?)/);
He = zt && zt[1] || "";
}
return `
` + He + ae;
}
}
var rt = !1, Ge;
{
var We = typeof WeakMap == "function" ? WeakMap : Map;
Ge = new We();
}
function xe(ae, qe) {
if (!ae || rt)
return "";
{
var dt = Ge.get(ae);
if (dt !== void 0)
return dt;
}
var zt;
rt = !0;
var fn = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var rn;
rn = ve.current, ve.current = null, ge();
try {
if (qe) {
var On = function() {
throw Error();
};
if (Object.defineProperty(On.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(On, []);
} catch (gn) {
zt = gn;
}
Reflect.construct(ae, [], On);
} else {
try {
On.call();
} catch (gn) {
zt = gn;
}
ae.call(On.prototype);
}
} else {
try {
throw Error();
} catch (gn) {
zt = gn;
}
ae();
}
} catch (gn) {
if (gn && zt && typeof gn.stack == "string") {
for (var Cn = gn.stack.split(`
`), Nr = zt.stack.split(`
`), ir = Cn.length - 1, Fn = Nr.length - 1; ir >= 1 && Fn >= 0 && Cn[ir] !== Nr[Fn]; )
Fn--;
for (; ir >= 1 && Fn >= 0; ir--, Fn--)
if (Cn[ir] !== Nr[Fn]) {
if (ir !== 1 || Fn !== 1)
do
if (ir--, Fn--, Fn < 0 || Cn[ir] !== Nr[Fn]) {
var ia = `
` + Cn[ir].replace(" at new ", " at ");
return ae.displayName && ia.includes("<anonymous>") && (ia = ia.replace("<anonymous>", ae.displayName)), typeof ae == "function" && Ge.set(ae, ia), ia;
}
while (ir >= 1 && Fn >= 0);
break;
}
}
} finally {
rt = !1, ve.current = rn, Ae(), Error.prepareStackTrace = fn;
}
var Zi = ae ? ae.displayName || ae.name : "", ko = Zi ? Be(Zi) : "";
return typeof ae == "function" && Ge.set(ae, ko), ko;
}
function Ct(ae, qe, dt) {
return xe(ae, !1);
}
function gt(ae) {
var qe = ae.prototype;
return !!(qe && qe.isReactComponent);
}
function Gt(ae, qe, dt) {
if (ae == null)
return "";
if (typeof ae == "function")
return xe(ae, gt(ae));
if (typeof ae == "string")
return Be(ae);
switch (ae) {
case f:
return Be("Suspense");
case _:
return Be("SuspenseList");
}
if (typeof ae == "object")
switch (ae.$$typeof) {
case m:
return Ct(ae.render);
case h:
return Gt(ae.type, qe, dt);
case S: {
var zt = ae, fn = zt._payload, rn = zt._init;
try {
return Gt(rn(fn), qe, dt);
} catch {
}
}
}
return "";
}
var Lt = Object.prototype.hasOwnProperty, Yt = {}, hn = R.ReactDebugCurrentFrame;
function at(ae) {
if (ae) {
var qe = ae._owner, dt = Gt(ae.type, ae._source, qe ? qe.type : null);
hn.setExtraStackFrame(dt);
} else
hn.setExtraStackFrame(null);
}
function ut(ae, qe, dt, zt, fn) {
{
var rn = Function.call.bind(Lt);
for (var On in ae)
if (rn(ae, On)) {
var Cn = void 0;
try {
if (typeof ae[On] != "function") {
var Nr = Error((zt || "React class") + ": " + dt + " type `" + On + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof ae[On] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw Nr.name = "Invariant Violation", Nr;
}
Cn = ae[On](qe, On, zt, dt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (ir) {
Cn = ir;
}
Cn && !(Cn instanceof Error) && (at(fn), A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", zt || "React class", dt, On, typeof Cn), at(null)), Cn instanceof Error && !(Cn.message in Yt) && (Yt[Cn.message] = !0, at(fn), A("Failed %s type: %s", dt, Cn.message), at(null));
}
}
}
var Et = Array.isArray;
function sn(ae) {
return Et(ae);
}
function ln(ae) {
{
var qe = typeof Symbol == "function" && Symbol.toStringTag, dt = qe && ae[Symbol.toStringTag] || ae.constructor.name || "Object";
return dt;
}
}
function ze(ae) {
try {
return je(ae), !1;
} catch {
return !0;
}
}
function je(ae) {
return "" + ae;
}
function me(ae) {
if (ze(ae))
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ln(ae)), je(ae);
}
var Ne = R.ReactCurrentOwner, Le = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Te, Me;
function Pe(ae) {
if (Lt.call(ae, "ref")) {
var qe = Object.getOwnPropertyDescriptor(ae, "ref").get;
if (qe && qe.isReactWarning)
return !1;
}
return ae.ref !== void 0;
}
function lt(ae) {
if (Lt.call(ae, "key")) {
var qe = Object.getOwnPropertyDescriptor(ae, "key").get;
if (qe && qe.isReactWarning)
return !1;
}
return ae.key !== void 0;
}
function it(ae, qe) {
typeof ae.ref == "string" && Ne.current;
}
function cn(ae, qe) {
{
var dt = function() {
Te || (Te = !0, A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", qe));
};
dt.isReactWarning = !0, Object.defineProperty(ae, "key", {
get: dt,
configurable: !0
});
}
}
function bn(ae, qe) {
{
var dt = function() {
Me || (Me = !0, A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", qe));
};
dt.isReactWarning = !0, Object.defineProperty(ae, "ref", {
get: dt,
configurable: !0
});
}
}
var se = function(ae, qe, dt, zt, fn, rn, On) {
var Cn = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: ae,
key: qe,
ref: dt,
props: On,
// Record the component responsible for creating this element.
_owner: rn
};
return Cn._store = {}, Object.defineProperty(Cn._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(Cn, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: zt
}), Object.defineProperty(Cn, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: fn
}), Object.freeze && (Object.freeze(Cn.props), Object.freeze(Cn)), Cn;
};
function Se(ae, qe, dt, zt, fn) {
{
var rn, On = {}, Cn = null, Nr = null;
dt !== void 0 && (me(dt), Cn = "" + dt), lt(qe) && (me(qe.key), Cn = "" + qe.key), Pe(qe) && (Nr = qe.ref, it(qe));
for (rn in qe)
Lt.call(qe, rn) && !Le.hasOwnProperty(rn) && (On[rn] = qe[rn]);
if (ae && ae.defaultProps) {
var ir = ae.defaultProps;
for (rn in ir)
On[rn] === void 0 && (On[rn] = ir[rn]);
}
if (Cn || Nr) {
var Fn = typeof ae == "function" ? ae.displayName || ae.name || "Unknown" : ae;
Cn && cn(On, Fn), Nr && bn(On, Fn);
}
return se(ae, Cn, Nr, fn, zt, Ne.current, On);
}
}
var Ue = R.ReactCurrentOwner, St = R.ReactDebugCurrentFrame;
function It(ae) {
if (ae) {
var qe = ae._owner, dt = Gt(ae.type, ae._source, qe ? qe.type : null);
St.setExtraStackFrame(dt);
} else
St.setExtraStackFrame(null);
}
var mn;
mn = !1;
function pt(ae) {
return typeof ae == "object" && ae !== null && ae.$$typeof === t;
}
function Ze() {
{
if (Ue.current) {
var ae = W(Ue.current.type);
if (ae)
return `
Check the render method of \`` + ae + "`.";
}
return "";
}
}
function _t(ae) {
return "";
}
var Ut = {};
function Jt(ae) {
{
var qe = Ze();
if (!qe) {
var dt = typeof ae == "string" ? ae : ae.displayName || ae.name;
dt && (qe = `
Check the top-level render call using <` + dt + ">.");
}
return qe;
}
}
function Mn(ae, qe) {
{
if (!ae._store || ae._store.validated || ae.key != null)
return;
ae._store.validated = !0;
var dt = Jt(qe);
if (Ut[dt])
return;
Ut[dt] = !0;
var zt = "";
ae && ae._owner && ae._owner !== Ue.current && (zt = " It was passed a child from " + W(ae._owner.type) + "."), It(ae), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', dt, zt), It(null);
}
}
function Kr(ae, qe) {
{
if (typeof ae != "object")
return;
if (sn(ae))
for (var dt = 0; dt < ae.length; dt++) {
var zt = ae[dt];
pt(zt) && Mn(zt, qe);
}
else if (pt(ae))
ae._store && (ae._store.validated = !0);
else if (ae) {
var fn = w(ae);
if (typeof fn == "function" && fn !== ae.entries)
for (var rn = fn.call(ae), On; !(On = rn.next()).done; )
pt(On.value) && Mn(On.value, qe);
}
}
}
function wi(ae) {
{
var qe = ae.type;
if (qe == null || typeof qe == "string")
return;
var dt;
if (typeof qe == "function")
dt = qe.propTypes;
else if (typeof qe == "object" && (qe.$$typeof === m || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
qe.$$typeof === h))
dt = qe.propTypes;
else
return;
if (dt) {
var zt = W(qe);
ut(dt, ae.props, "prop", zt, ae);
} else if (qe.PropTypes !== void 0 && !mn) {
mn = !0;
var fn = W(qe);
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", fn || "Unknown");
}
typeof qe.getDefaultProps == "function" && !qe.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function Ii(ae) {
{
for (var qe = Object.keys(ae.props), dt = 0; dt < qe.length; dt++) {
var zt = qe[dt];
if (zt !== "children" && zt !== "key") {
It(ae), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", zt), It(null);
break;
}
}
ae.ref !== null && (It(ae), A("Invalid attribute `ref` supplied to `React.Fragment`."), It(null));
}
}
var Ai = {};
function La(ae, qe, dt, zt, fn, rn) {
{
var On = j(ae);
if (!On) {
var Cn = "";
(ae === void 0 || typeof ae == "object" && ae !== null && Object.keys(ae).length === 0) && (Cn += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var Nr = _t();
Nr ? Cn += Nr : Cn += Ze();
var ir;
ae === null ? ir = "null" : sn(ae) ? ir = "array" : ae !== void 0 && ae.$$typeof === t ? (ir = "<" + (W(ae.type) || "Unknown") + " />", Cn = " Did you accidentally export a JSX literal instead of a component?") : ir = typeof ae, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ir, Cn);
}
var Fn = Se(ae, qe, dt, fn, rn);
if (Fn == null)
return Fn;
if (On) {
var ia = qe.children;
if (ia !== void 0)
if (zt)
if (sn(ia)) {
for (var Zi = 0; Zi < ia.length; Zi++)
Kr(ia[Zi], ae);
Object.freeze && Object.freeze(ia);
} else
A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Kr(ia, ae);
}
if (Lt.call(qe, "key")) {
var ko = W(ae), gn = Object.keys(qe).filter(function(vc) {
return vc !== "key";
}), un = gn.length > 0 ? "{key: someKey, " + gn.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!Ai[ko + un]) {
var Do = gn.length > 0 ? "{" + gn.join(": ..., ") + ": ...}" : "{}";
A(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, un, ko, Do, ko), Ai[ko + un] = !0;
}
}
return ae === r ? Ii(Fn) : wi(Fn), Fn;
}
}
function ts(ae, qe, dt) {
return La(ae, qe, dt, !0);
}
function Ao(ae, qe, dt) {
return La(ae, qe, dt, !1);
}
var ns = Ao, ki = ts;
ET.Fragment = r, ET.jsx = ns, ET.jsxs = ki;
}()), ET;
}
var pB;
function hre() {
return pB || (pB = 1, process.env.NODE_ENV === "production" ? dw.exports = gre() : dw.exports = _re()), dw.exports;
}
var wt = hre(), W1 = function(e, t) {
return W1 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
n.__proto__ = r;
} || function(n, r) {
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
}, W1(e, t);
};
function Q8(e, t) {
if (typeof t != "function" && t !== null)
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
W1(e, t);
function n() {
this.constructor = e;
}
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
}
var gC = function() {
return gC = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++) {
t = arguments[n];
for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
}
return e;
}, gC.apply(this, arguments);
};
function ke(e, t) {
var n = {};
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
if (e != null && typeof Object.getOwnPropertySymbols == "function")
for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
return n;
}
function K8(e, t, n, r) {
var a = arguments.length, o = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, l;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, n, r);
else for (var u = e.length - 1; u >= 0; u--) (l = e[u]) && (o = (a < 3 ? l(o) : a > 3 ? l(t, n, o) : l(t, n)) || o);
return a > 3 && o && Object.defineProperty(t, n, o), o;
}
function X8(e, t) {
return function(n, r) {
t(n, r, e);
};
}
function Z8(e, t, n, r, a, o) {
function l(R) {
if (R !== void 0 && typeof R != "function") throw new TypeError("Function expected");
return R;
}
for (var u = r.kind, m = u === "getter" ? "get" : u === "setter" ? "set" : "value", f = !t && e ? r.static ? e : e.prototype : null, _ = t || (f ? Object.getOwnPropertyDescriptor(f, r.name) : {}), h, S = !1, E = n.length - 1; E >= 0; E--) {
var C = {};
for (var O in r) C[O] = O === "access" ? {} : r[O];
for (var O in r.access) C.access[O] = r.access[O];
C.addInitializer = function(R) {
if (S) throw new TypeError("Cannot add initializers after decoration has completed");
o.push(l(R || null));
};
var w = (0, n[E])(u === "accessor" ? { get: _.get, set: _.set } : _[m], C);
if (u === "accessor") {
if (w === void 0) continue;
if (w === null || typeof w != "object") throw new TypeError("Object expected");
(h = l(w.get)) && (_.get = h), (h = l(w.set)) && (_.set = h), (h = l(w.init)) && a.unshift(h);
} else (h = l(w)) && (u === "field" ? a.unshift(h) : _[m] = h);
}
f && Object.defineProperty(f, r.name, _), S = !0;
}
function J8(e, t, n) {
for (var r = arguments.length > 2, a = 0; a < t.length; a++)
n = r ? t[a].call(e, n) : t[a].call(e);
return r ? n : void 0;
}
function eY(e) {
return typeof e == "symbol" ? e : "".concat(e);
}
function tY(e, t, n) {
return typeof t == "symbol" && (t = t.description ? "[".concat(t.description, "]") : ""), Object.defineProperty(e, "name", { configurable: !0, value: n ? "".concat(n, " ", t) : t });
}
function nY(e, t) {
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
}
function Nu(e, t, n, r) {
function a(o) {
return o instanceof n ? o : new n(function(l) {
l(o);
});
}
return new (n || (n = Promise))(function(o, l) {
function u(_) {
try {
f(r.next(_));
} catch (h) {
l(h);
}
}
function m(_) {
try {
f(r.throw(_));
} catch (h) {
l(h);
}
}
function f(_) {
_.done ? o(_.value) : a(_.value).then(u, m);
}
f((r = r.apply(e, t || [])).next());
});
}
function rY(e, t) {
var n = { label: 0, sent: function() {
if (o[0] & 1) throw o[1];
return o[1];
}, trys: [], ops: [] }, r, a, o, l = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
return l.next = u(0), l.throw = u(1), l.return = u(2), typeof Symbol == "function" && (l[Symbol.iterator] = function() {
return this;
}), l;
function u(f) {
return function(_) {
return m([f, _]);
};
}
function m(f) {
if (r) throw new TypeError("Generator is already executing.");
for (; l && (l = 0, f[0] && (n = 0)), n; ) try {
if (r = 1, a && (o = f[0] & 2 ? a.return : f[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && !(o = o.call(a, f[1])).done) return o;
switch (a = 0, o && (f = [f[0] & 2, o.value]), f[0]) {
case 0:
case 1:
o = f;
break;
case 4:
return n.label++, { value: f[1], done: !1 };
case 5:
n.label++, a = f[1], f = [0];
continue;
case 7:
f = n.ops.pop(), n.trys.pop();
continue;
default:
if (o = n.trys, !(o = o.length > 0 && o[o.length - 1]) && (f[0] === 6 || f[0] === 2)) {
n = 0;
continue;
}
if (f[0] === 3 && (!o || f[1] > o[0] && f[1] < o[3])) {
n.label = f[1];
break;
}
if (f[0] === 6 && n.label < o[1]) {
n.label = o[1], o = f;
break;
}
if (o && n.label < o[2]) {
n.label = o[2], n.ops.push(f);
break;
}
o[2] && n.ops.pop(), n.trys.pop();
continue;
}
f = t.call(e, n);
} catch (_) {
f = [6, _], a = 0;
} finally {
r = o = 0;
}
if (f[0] & 5) throw f[1];
return { value: f[0] ? f[1] : void 0, done: !0 };
}
}
var rO = Object.create ? function(e, t, n, r) {
r === void 0 && (r = n);
var a = Object.getOwnPropertyDescriptor(t, n);
(!a || ("get" in a ? !t.__esModule : a.writable || a.configurable)) && (a = { enumerable: !0, get: function() {
return t[n];
} }), Object.defineProperty(e, r, a);
} : function(e, t, n, r) {
r === void 0 && (r = n), e[r] = t[n];
};
function aY(e, t) {
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && rO(t, e, n);
}
function _C(e) {
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
if (n) return n.call(e);
if (e && typeof e.length == "number") return {
next: function() {
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function FP(e, t) {
var n = typeof Symbol == "function" && e[Symbol.iterator];
if (!n) return e;
var r = n.call(e), a, o = [], l;
try {
for (; (t === void 0 || t-- > 0) && !(a = r.next()).done; ) o.push(a.value);
} catch (u) {
l = { error: u };
} finally {
try {
a && !a.done && (n = r.return) && n.call(r);
} finally {
if (l) throw l.error;
}
}
return o;
}
function iY() {
for (var e = [], t = 0; t < arguments.length; t++)
e = e.concat(FP(arguments[t]));
return e;
}
function oY() {
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
for (var r = Array(e), a = 0, t = 0; t < n; t++)
for (var o = arguments[t], l = 0, u = o.length; l < u; l++, a++)
r[a] = o[l];
return r;
}
function sY(e, t, n) {
if (n || arguments.length === 2) for (var r = 0, a = t.length, o; r < a; r++)
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
return e.concat(o || Array.prototype.slice.call(t));
}
function o_(e) {
return this instanceof o_ ? (this.v = e, this) : new o_(e);
}
function lY(e, t, n) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var r = n.apply(e, t || []), a, o = [];
return a = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", l), a[Symbol.asyncIterator] = function() {
return this;
}, a;
function l(E) {
return function(C) {
return Promise.resolve(C).then(E, h);
};
}
function u(E, C) {
r[E] && (a[E] = function(O) {
return new Promise(function(w, R) {
o.push([E, O, w, R]) > 1 || m(E, O);
});
}, C && (a[E] = C(a[E])));
}
function m(E, C) {
try {
f(r[E](C));
} catch (O) {
S(o[0][3], O);
}
}
function f(E) {
E.value instanceof o_ ? Promise.resolve(E.value.v).then(_, h) : S(o[0][2], E);
}
function _(E) {
m("next", E);
}
function h(E) {
m("throw", E);
}
function S(E, C) {
E(C), o.shift(), o.length && m(o[0][0], o[0][1]);
}
}
function cY(e) {
var t, n;
return t = {}, r("next"), r("throw", function(a) {
throw a;
}), r("return"), t[Symbol.iterator] = function() {
return this;
}, t;
function r(a, o) {
t[a] = e[a] ? function(l) {
return (n = !n) ? { value: o_(e[a](l)), done: !1 } : o ? o(l) : l;
} : o;
}
}
function uY(e) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var t = e[Symbol.asyncIterator], n;
return t ? t.call(e) : (e = typeof _C == "function" ? _C(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
return this;
}, n);
function r(o) {
n[o] = e[o] && function(l) {
return new Promise(function(u, m) {
l = e[o](l), a(u, m, l.done, l.value);
});
};
}
function a(o, l, u, m) {
Promise.resolve(m).then(function(f) {
o({ value: f, done: u });
}, l);
}
}
function dY(e, t) {
return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
}
var bre = Object.create ? function(e, t) {
Object.defineProperty(e, "default", { enumerable: !0, value: t });
} : function(e, t) {
e.default = t;
}, Q1 = function(e) {
return Q1 = Object.getOwnPropertyNames || function(t) {
var n = [];
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (n[n.length] = r);
return n;
}, Q1(e);
};
function pY(e) {
if (e && e.__esModule) return e;
var t = {};
if (e != null)
for (var n = Q1(e), r = 0; r < n.length; r++) n[r] !== "default" && rO(t, e, n[r]);
return bre(t, e), t;
}
function mY(e) {
return e && e.__esModule ? e : { default: e };
}
function fY(e, t, n, r) {
if (n === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
}
function gY(e, t, n, r, a) {
if (r === "m") throw new TypeError("Private method is not writable");
if (r === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
if (typeof t == "function" ? e !== t || !a : !t.has(e)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return r === "a" ? a.call(e, n) : a ? a.value = n : t.set(e, n), n;
}
function _Y(e, t) {
if (t === null || typeof t != "object" && typeof t != "function") throw new TypeError("Cannot use 'in' operator on non-object");
return typeof e == "function" ? t === e : e.has(t);
}
function hY(e, t, n) {
if (t != null) {
if (typeof t != "object" && typeof t != "function") throw new TypeError("Object expected.");
var r, a;
if (n) {
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
r = t[Symbol.asyncDispose];
}
if (r === void 0) {
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
r = t[Symbol.dispose], n && (a = r);
}
if (typeof r != "function") throw new TypeError("Object not disposable.");
a && (r = function() {
try {
a.call(this);
} catch (o) {
return Promise.reject(o);
}
}), e.stack.push({ value: t, dispose: r, async: n });
} else n && e.stack.push({ async: !0 });
return t;
}
var vre = typeof SuppressedError == "function" ? SuppressedError : function(e, t, n) {
var r = new Error(n);
return r.name = "SuppressedError", r.error = e, r.suppressed = t, r;
};
function bY(e) {
function t(o) {
e.error = e.hasError ? new vre(o, e.error, "An error was suppressed during disposal.") : o, e.hasError = !0;
}
var n, r = 0;
function a() {
for (; n = e.stack.pop(); )
try {
if (!n.async && r === 1) return r = 0, e.stack.push(n), Promise.resolve().then(a);
if (n.dispose) {
var o = n.dispose.call(n.value);
if (n.async) return r |= 2, Promise.resolve(o).then(a, function(l) {
return t(l), a();
});
} else r |= 1;
} catch (l) {
t(l);
}
if (r === 1) return e.hasError ? Promise.reject(e.error) : Promise.resolve();
if (e.hasError) throw e.error;
}
return a();
}
function vY(e, t) {
return typeof e == "string" && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(n, r, a, o, l) {
return r ? t ? ".jsx" : ".js" : a && (!o || !l) ? n : a + o + "." + l.toLowerCase() + "js";
}) : e;
}
const Ere = {
__extends: Q8,
__assign: gC,
__rest: ke,
__decorate: K8,
__param: X8,
__esDecorate: Z8,
__runInitializers: J8,
__propKey: eY,
__setFunctionName: tY,
__metadata: nY,
__awaiter: Nu,
__generator: rY,
__createBinding: rO,
__exportStar: aY,
__values: _C,
__read: FP,
__spread: iY,
__spreadArrays: oY,
__spreadArray: sY,
__await: o_,
__asyncGenerator: lY,
__asyncDelegator: cY,
__asyncValues: uY,
__makeTemplateObject: dY,
__importStar: pY,
__importDefault: mY,
__classPrivateFieldGet: fY,
__classPrivateFieldSet: gY,
__classPrivateFieldIn: _Y,
__addDisposableResource: hY,
__disposeResources: bY,
__rewriteRelativeImportExtension: vY
}, Sre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
__addDisposableResource: hY,
get __assign() {
return gC;
},
__asyncDelegator: cY,
__asyncGenerator: lY,
__asyncValues: uY,
__await: o_,
__awaiter: Nu,
__classPrivateFieldGet: fY,
__classPrivateFieldIn: _Y,
__classPrivateFieldSet: gY,
__createBinding: rO,
__decorate: K8,
__disposeResources: bY,
__esDecorate: Z8,
__exportStar: aY,
__extends: Q8,
__generator: rY,
__importDefault: mY,
__importStar: pY,
__makeTemplateObject: dY,
__metadata: nY,
__param: X8,
__propKey: eY,
__read: FP,
__rest: ke,
__rewriteRelativeImportExtension: vY,
__runInitializers: J8,
__setFunctionName: tY,
__spread: iY,
__spreadArray: sY,
__spreadArrays: oY,
__values: _C,
default: Ere
}, Symbol.toStringTag, { value: "Module" }));
function ne(...e) {
const t = [], n = {}.hasOwnProperty;
return e.filter(Boolean).forEach((r) => {
const a = typeof r;
if (a === "string" || a === "number")
t.push(r);
else if (Array.isArray(r) && r.length) {
const o = ne(...r);
o && t.push(o);
} else if (a === "object")
for (const o in r)
n.call(r, o) && r[o] && t.push(o);
}), t.join(" ");
}
const $r = {
content: "pf-v6-c-content",
contentA: "pf-v6-c-content--a",
contentBlockquote: "pf-v6-c-content--blockquote",
contentDd: "pf-v6-c-content--dd",
contentDl: "pf-v6-c-content--dl",
contentDt: "pf-v6-c-content--dt",
contentH1: "pf-v6-c-content--h1",
contentH2: "pf-v6-c-content--h2",
contentH3: "pf-v6-c-content--h3",
contentH4: "pf-v6-c-content--h4",
contentH5: "pf-v6-c-content--h5",
contentH6: "pf-v6-c-content--h6",
contentHr: "pf-v6-c-content--hr",
contentLi: "pf-v6-c-content--li",
contentOl: "pf-v6-c-content--ol",
contentP: "pf-v6-c-content--p",
contentPre: "pf-v6-c-content--pre",
contentSmall: "pf-v6-c-content--small",
contentUl: "pf-v6-c-content--ul",
modifiers: {
editorial: "pf-m-editorial",
visited: "pf-m-visited",
plain: "pf-m-plain"
}
};
let yre = 0;
function Rn({ name: e, xOffset: t = 0, yOffset: n = 0, width: r, height: a, svgPath: o }) {
var l;
return l = class extends x.Component {
constructor() {
super(...arguments), this.id = `icon-title-${yre++}`;
}
render() {
const u = this.props, { title: m, className: f } = u, _ = ke(u, ["title", "className"]), h = f ? `pf-v6-svg ${f}` : "pf-v6-svg", S = !!m, E = [t, n, r, a].join(" ");
return x.createElement(
"svg",
Object.assign({ className: h, viewBox: E, fill: "currentColor", "aria-labelledby": S ? this.id : null, "aria-hidden": S ? null : !0, role: "img", width: "1em", height: "1em" }, _),
S && x.createElement("title", { id: this.id }, m),
x.createElement("path", { d: o })
);
}
}, l.displayName = e, l;
}
const Tre = {
name: "CheckCircleIcon",
height: 512,
width: 512,
svgPath: "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",
yOffset: 0,
xOffset: 0
}, E_ = Rn(Tre), Cre = {
name: "ExclamationCircleIcon",
height: 512,
width: 512,
svgPath: "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",
yOffset: 0,
xOffset: 0
}, S_ = Rn(Cre), Ore = {
name: "ExclamationTriangleIcon",
height: 512,
width: 576,
svgPath: "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",
yOffset: 0,
xOffset: 0
}, y_ = Rn(Ore), xre = {
name: "InfoCircleIcon",
height: 512,
width: 512,
svgPath: "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z",
yOffset: 0,
xOffset: 0
}, tE = Rn(xre), Nre = {
name: "BellIcon",
height: 1024,
width: 896,
svgPath: "M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z",
yOffset: 0,
xOffset: 0
}, aO = Rn(Nre);
var Rv;
(function(e) {
e.success = "success", e.error = "error", e.warning = "warning", e.default = "default";
})(Rv || (Rv = {}));
const wm = {
Space: " ",
Escape: "Escape",
Enter: "Enter"
}, EY = {
success: E_,
danger: S_,
warning: y_,
info: tE,
custom: aO
};
/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/
var SY = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], hC = /* @__PURE__ */ SY.join(","), yY = typeof Element > "u", Im = yY ? function() {
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, bC = !yY && Element.prototype.getRootNode ? function(e) {
var t;
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
} : function(e) {
return e == null ? void 0 : e.ownerDocument;
}, vC = function e(t, n) {
var r;
n === void 0 && (n = !0);
var a = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), o = a === "" || a === "true", l = o || n && t && e(t.parentNode);
return l;
}, Rre = function(e) {
var t, n = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "contenteditable");
return n === "" || n === "true";
}, TY = function(e, t, n) {
if (vC(e))
return [];
var r = Array.prototype.slice.apply(e.querySelectorAll(hC));
return t && Im.call(e, hC) && r.unshift(e), r = r.filter(n), r;
}, CY = function e(t, n, r) {
for (var a = [], o = Array.from(t); o.length; ) {
var l = o.shift();
if (!vC(l, !1))
if (l.tagName === "SLOT") {
var u = l.assignedElements(), m = u.length ? u : l.children, f = e(m, !0, r);
r.flatten ? a.push.apply(a, f) : a.push({
scopeParent: l,
candidates: f
});
} else {
var _ = Im.call(l, hC);
_ && r.filter(l) && (n || !t.includes(l)) && a.push(l);
var h = l.shadowRoot || // check for an undisclosed shadow
typeof r.getShadowRoot == "function" && r.getShadowRoot(l), S = !vC(h, !1) && (!r.shadowRootFilter || r.shadowRootFilter(l));
if (h && S) {
var E = e(h === !0 ? l.children : h.children, !0, r);
r.flatten ? a.push.apply(a, E) : a.push({
scopeParent: l,
candidates: E
});
} else
o.unshift.apply(o, l.children);
}
}
return a;
}, OY = function(e) {
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
}, hm = function(e) {
if (!e)
throw new Error("No node provided");
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Rre(e)) && !OY(e) ? 0 : e.tabIndex;
}, wre = function(e, t) {
var n = hm(e);
return n < 0 && t && !OY(e) ? 0 : n;
}, Ire = function(e, t) {
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
}, xY = function(e) {
return e.tagName === "INPUT";
}, Are = function(e) {
return xY(e) && e.type === "hidden";
}, kre = function(e) {
var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(n) {
return n.tagName === "SUMMARY";
});
return t;
}, Dre = function(e, t) {
for (var n = 0; n < e.length; n++)
if (e[n].checked && e[n].form === t)
return e[n];
}, Lre = function(e) {
if (!e.name)
return !0;
var t = e.form || bC(e), n = function(o) {
return t.querySelectorAll('input[type="radio"][name="' + o + '"]');
}, r;
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
r = n(window.CSS.escape(e.name));
else
try {
r = n(e.name);
} catch (o) {
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
}
var a = Dre(r, e.form);
return !a || a === e;
}, Pre = function(e) {
return xY(e) && e.type === "radio";
}, Mre = function(e) {
return Pre(e) && !Lre(e);
}, Fre = function(e) {
var t, n = e && bC(e), r = (t = n) === null || t === void 0 ? void 0 : t.host, a = !1;
if (n && n !== e) {
var o, l, u;
for (a = !!((o = r) !== null && o !== void 0 && (l = o.ownerDocument) !== null && l !== void 0 && l.contains(r) || e != null && (u = e.ownerDocument) !== null && u !== void 0 && u.contains(e)); !a && r; ) {
var m, f, _;
n = bC(r), r = (m = n) === null || m === void 0 ? void 0 : m.host, a = !!((f = r) !== null && f !== void 0 && (_ = f.ownerDocument) !== null && _ !== void 0 && _.contains(r));
}
}
return a;
}, mB = function(e) {
var t = e.getBoundingClientRect(), n = t.width, r = t.height;
return n === 0 && r === 0;
}, Ure = function(e, t) {
var n = t.displayCheck, r = t.getShadowRoot;
if (getComputedStyle(e).visibility === "hidden")
return !0;
var a = Im.call(e, "details>summary:first-of-type"), o = a ? e.parentElement : e;
if (Im.call(o, "details:not([open]) *"))
return !0;
if (!n || n === "full" || n === "legacy-full") {
if (typeof r == "function") {
for (var l = e; e; ) {
var u = e.parentElement, m = bC(e);
if (u && !u.shadowRoot && r(u) === !0)
return mB(e);
e.assignedSlot ? e = e.assignedSlot : !u && m !== e.ownerDocument ? e = m.host : e = u;
}
e = l;
}
if (Fre(e))
return !e.getClientRects().length;
if (n !== "legacy-full")
return !0;
} else if (n === "non-zero-area")
return mB(e);
return !1;
}, Bre = function(e) {
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
for (var t = e.parentElement; t; ) {
if (t.tagName === "FIELDSET" && t.disabled) {
for (var n = 0; n < t.children.length; n++) {
var r = t.children.item(n);
if (r.tagName === "LEGEND")
return Im.call(t, "fieldset[disabled] *") ? !0 : !r.contains(e);
}
return !0;
}
t = t.parentElement;
}
return !1;
}, EC = function(e, t) {
return !(t.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
// because we're limited in the type of selectors we can use in JSDom (see related
// note related to `candidateSelectors`)
vC(t) || Are(t) || Ure(t, e) || // For a details element with a summary, the summary element gets the focus
kre(t) || Bre(t));
}, K1 = function(e, t) {
return !(Mre(t) || hm(t) < 0 || !EC(e, t));
}, jre = function(e) {
var t = parseInt(e.getAttribute("tabindex"), 10);
return !!(isNaN(t) || t >= 0);
}, Gre = function e(t) {
var n = [], r = [];
return