react-xsd-tree
Version:
This form is used to design React Material Tree using any given XSD/ISO 20022 Json object. .
1,341 lines (1,340 loc) • 273 kB
JavaScript
import { jsx as q, jsxs as $t, Fragment as ss } from "react/jsx-runtime";
import * as E from "react";
import Ne, { forwardRef as as, useContext as cs, Children as ls, isValidElement as Wt, cloneElement as Yt, useState as us, useImperativeHandle as ds } from "react";
import Lt from "react-dom";
function C() {
return C = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, C.apply(null, arguments);
}
function fs(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function qe(e) {
if (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 o = Object.getOwnPropertyDescriptor(e, r);
Object.defineProperty(n, r, o.get ? o : {
enumerable: !0,
get: function() {
return e[r];
}
});
}), n;
}
var Wn = { exports: {} }, zt = { exports: {} }, te = {};
/** @license React v16.13.1
* 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 Ar;
function ps() {
if (Ar) return te;
Ar = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
function S(g) {
if (typeof g == "object" && g !== null) {
var $ = g.$$typeof;
switch ($) {
case t:
switch (g = g.type, g) {
case u:
case d:
case r:
case i:
case o:
case p:
return g;
default:
switch (g = g && g.$$typeof, g) {
case a:
case l:
case y:
case v:
case s:
return g;
default:
return $;
}
}
case n:
return $;
}
}
}
function w(g) {
return S(g) === d;
}
return te.AsyncMode = u, te.ConcurrentMode = d, te.ContextConsumer = a, te.ContextProvider = s, te.Element = t, te.ForwardRef = l, te.Fragment = r, te.Lazy = y, te.Memo = v, te.Portal = n, te.Profiler = i, te.StrictMode = o, te.Suspense = p, te.isAsyncMode = function(g) {
return w(g) || S(g) === u;
}, te.isConcurrentMode = w, te.isContextConsumer = function(g) {
return S(g) === a;
}, te.isContextProvider = function(g) {
return S(g) === s;
}, te.isElement = function(g) {
return typeof g == "object" && g !== null && g.$$typeof === t;
}, te.isForwardRef = function(g) {
return S(g) === l;
}, te.isFragment = function(g) {
return S(g) === r;
}, te.isLazy = function(g) {
return S(g) === y;
}, te.isMemo = function(g) {
return S(g) === v;
}, te.isPortal = function(g) {
return S(g) === n;
}, te.isProfiler = function(g) {
return S(g) === i;
}, te.isStrictMode = function(g) {
return S(g) === o;
}, te.isSuspense = function(g) {
return S(g) === p;
}, te.isValidElementType = function(g) {
return typeof g == "string" || typeof g == "function" || g === r || g === d || g === i || g === o || g === p || g === m || typeof g == "object" && g !== null && (g.$$typeof === y || g.$$typeof === v || g.$$typeof === s || g.$$typeof === a || g.$$typeof === l || g.$$typeof === h || g.$$typeof === b || g.$$typeof === x || g.$$typeof === f);
}, te.typeOf = S, te;
}
var ne = {};
/** @license React v16.13.1
* react-is.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 Dr;
function ms() {
return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
function S(I) {
return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
I === r || I === d || I === i || I === o || I === p || I === m || typeof I == "object" && I !== null && (I.$$typeof === y || I.$$typeof === v || I.$$typeof === s || I.$$typeof === a || I.$$typeof === l || I.$$typeof === h || I.$$typeof === b || I.$$typeof === x || I.$$typeof === f);
}
function w(I) {
if (typeof I == "object" && I !== null) {
var ge = I.$$typeof;
switch (ge) {
case t:
var N = I.type;
switch (N) {
case u:
case d:
case r:
case i:
case o:
case p:
return N;
default:
var xe = N && N.$$typeof;
switch (xe) {
case a:
case l:
case y:
case v:
case s:
return xe;
default:
return ge;
}
}
case n:
return ge;
}
}
}
var g = u, $ = d, k = a, H = s, G = t, z = l, _ = r, P = y, F = v, Y = n, K = i, X = o, ee = p, J = !1;
function ce(I) {
return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(I) || w(I) === u;
}
function T(I) {
return w(I) === d;
}
function R(I) {
return w(I) === a;
}
function L(I) {
return w(I) === s;
}
function D(I) {
return typeof I == "object" && I !== null && I.$$typeof === t;
}
function A(I) {
return w(I) === l;
}
function B(I) {
return w(I) === r;
}
function O(I) {
return w(I) === y;
}
function M(I) {
return w(I) === v;
}
function j(I) {
return w(I) === n;
}
function V(I) {
return w(I) === i;
}
function U(I) {
return w(I) === o;
}
function le(I) {
return w(I) === p;
}
ne.AsyncMode = g, ne.ConcurrentMode = $, ne.ContextConsumer = k, ne.ContextProvider = H, ne.Element = G, ne.ForwardRef = z, ne.Fragment = _, ne.Lazy = P, ne.Memo = F, ne.Portal = Y, ne.Profiler = K, ne.StrictMode = X, ne.Suspense = ee, ne.isAsyncMode = ce, ne.isConcurrentMode = T, ne.isContextConsumer = R, ne.isContextProvider = L, ne.isElement = D, ne.isForwardRef = A, ne.isFragment = B, ne.isLazy = O, ne.isMemo = M, ne.isPortal = j, ne.isProfiler = V, ne.isStrictMode = U, ne.isSuspense = le, ne.isValidElementType = S, ne.typeOf = w;
}()), ne;
}
var jr;
function Lo() {
return jr || (jr = 1, process.env.NODE_ENV === "production" ? zt.exports = ps() : zt.exports = ms()), zt.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var kn, Vr;
function hs() {
if (Vr) return kn;
Vr = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
function r(i) {
if (i == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(i);
}
function o() {
try {
if (!Object.assign)
return !1;
var i = new String("abc");
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
return !1;
for (var s = {}, a = 0; a < 10; a++)
s["_" + String.fromCharCode(a)] = a;
var u = Object.getOwnPropertyNames(s).map(function(l) {
return s[l];
});
if (u.join("") !== "0123456789")
return !1;
var d = {};
return "abcdefghijklmnopqrst".split("").forEach(function(l) {
d[l] = l;
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return kn = o() ? Object.assign : function(i, s) {
for (var a, u = r(i), d, l = 1; l < arguments.length; l++) {
a = Object(arguments[l]);
for (var p in a)
t.call(a, p) && (u[p] = a[p]);
if (e) {
d = e(a);
for (var m = 0; m < d.length; m++)
n.call(a, d[m]) && (u[d[m]] = a[d[m]]);
}
}
return u;
}, kn;
}
var Nn, Fr;
function rr() {
if (Fr) return Nn;
Fr = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return Nn = e, Nn;
}
var Mn, Lr;
function zo() {
return Lr || (Lr = 1, Mn = Function.call.bind(Object.prototype.hasOwnProperty)), Mn;
}
var An, zr;
function gs() {
if (zr) return An;
zr = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = rr(), n = {}, r = zo();
e = function(i) {
var s = "Warning: " + i;
typeof console < "u" && console.error(s);
try {
throw new Error(s);
} catch {
}
};
}
function o(i, s, a, u, d) {
if (process.env.NODE_ENV !== "production") {
for (var l in i)
if (r(i, l)) {
var p;
try {
if (typeof i[l] != "function") {
var m = Error(
(u || "React class") + ": " + a + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw m.name = "Invariant Violation", m;
}
p = i[l](s, l, u, a, null, t);
} catch (y) {
p = y;
}
if (p && !(p instanceof Error) && e(
(u || "React class") + ": type specification of " + a + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), p instanceof Error && !(p.message in n)) {
n[p.message] = !0;
var v = d ? d() : "";
e(
"Failed " + a + " type: " + p.message + (v ?? "")
);
}
}
}
}
return o.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (n = {});
}, An = o, An;
}
var Dn, Ur;
function ys() {
if (Ur) return Dn;
Ur = 1;
var e = Lo(), t = hs(), n = rr(), r = zo(), o = gs(), i = function() {
};
process.env.NODE_ENV !== "production" && (i = function(a) {
var u = "Warning: " + a;
typeof console < "u" && console.error(u);
try {
throw new Error(u);
} catch {
}
});
function s() {
return null;
}
return Dn = function(a, u) {
var d = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
function p(T) {
var R = T && (d && T[d] || T[l]);
if (typeof R == "function")
return R;
}
var m = "<<anonymous>>", v = {
array: b("array"),
bigint: b("bigint"),
bool: b("boolean"),
func: b("function"),
number: b("number"),
object: b("object"),
string: b("string"),
symbol: b("symbol"),
any: x(),
arrayOf: S,
element: w(),
elementType: g(),
instanceOf: $,
node: z(),
objectOf: H,
oneOf: k,
oneOfType: G,
shape: P,
exact: F
};
function y(T, R) {
return T === R ? T !== 0 || 1 / T === 1 / R : T !== T && R !== R;
}
function f(T, R) {
this.message = T, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
}
f.prototype = Error.prototype;
function h(T) {
if (process.env.NODE_ENV !== "production")
var R = {}, L = 0;
function D(B, O, M, j, V, U, le) {
if (j = j || m, U = U || M, le !== n) {
if (u) {
var I = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
);
throw I.name = "Invariant Violation", I;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var ge = j + ":" + M;
!R[ge] && // Avoid spamming the console because they are often not actionable except for lib authors
L < 3 && (i(
"You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + j + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
), R[ge] = !0, L++);
}
}
return O[M] == null ? B ? O[M] === null ? new f("The " + V + " `" + U + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new f("The " + V + " `" + U + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : T(O, M, j, V, U);
}
var A = D.bind(null, !1);
return A.isRequired = D.bind(null, !0), A;
}
function b(T) {
function R(L, D, A, B, O, M) {
var j = L[D], V = X(j);
if (V !== T) {
var U = ee(j);
return new f(
"Invalid " + B + " `" + O + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected ") + ("`" + T + "`."),
{ expectedType: T }
);
}
return null;
}
return h(R);
}
function x() {
return h(s);
}
function S(T) {
function R(L, D, A, B, O) {
if (typeof T != "function")
return new f("Property `" + O + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
var M = L[D];
if (!Array.isArray(M)) {
var j = X(M);
return new f("Invalid " + B + " `" + O + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an array."));
}
for (var V = 0; V < M.length; V++) {
var U = T(M, V, A, B, O + "[" + V + "]", n);
if (U instanceof Error)
return U;
}
return null;
}
return h(R);
}
function w() {
function T(R, L, D, A, B) {
var O = R[L];
if (!a(O)) {
var M = X(O);
return new f("Invalid " + A + " `" + B + "` of type " + ("`" + M + "` supplied to `" + D + "`, expected a single ReactElement."));
}
return null;
}
return h(T);
}
function g() {
function T(R, L, D, A, B) {
var O = R[L];
if (!e.isValidElementType(O)) {
var M = X(O);
return new f("Invalid " + A + " `" + B + "` of type " + ("`" + M + "` supplied to `" + D + "`, expected a single ReactElement type."));
}
return null;
}
return h(T);
}
function $(T) {
function R(L, D, A, B, O) {
if (!(L[D] instanceof T)) {
var M = T.name || m, j = ce(L[D]);
return new f("Invalid " + B + " `" + O + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected ") + ("instance of `" + M + "`."));
}
return null;
}
return h(R);
}
function k(T) {
if (!Array.isArray(T))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
function R(L, D, A, B, O) {
for (var M = L[D], j = 0; j < T.length; j++)
if (y(M, T[j]))
return null;
var V = JSON.stringify(T, function(le, I) {
var ge = ee(I);
return ge === "symbol" ? String(I) : I;
});
return new f("Invalid " + B + " `" + O + "` of value `" + String(M) + "` " + ("supplied to `" + A + "`, expected one of " + V + "."));
}
return h(R);
}
function H(T) {
function R(L, D, A, B, O) {
if (typeof T != "function")
return new f("Property `" + O + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
var M = L[D], j = X(M);
if (j !== "object")
return new f("Invalid " + B + " `" + O + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected an object."));
for (var V in M)
if (r(M, V)) {
var U = T(M, V, A, B, O + "." + V, n);
if (U instanceof Error)
return U;
}
return null;
}
return h(R);
}
function G(T) {
if (!Array.isArray(T))
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
for (var R = 0; R < T.length; R++) {
var L = T[R];
if (typeof L != "function")
return i(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(L) + " at index " + R + "."
), s;
}
function D(A, B, O, M, j) {
for (var V = [], U = 0; U < T.length; U++) {
var le = T[U], I = le(A, B, O, M, j, n);
if (I == null)
return null;
I.data && r(I.data, "expectedType") && V.push(I.data.expectedType);
}
var ge = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
return new f("Invalid " + M + " `" + j + "` supplied to " + ("`" + O + "`" + ge + "."));
}
return h(D);
}
function z() {
function T(R, L, D, A, B) {
return Y(R[L]) ? null : new f("Invalid " + A + " `" + B + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
}
return h(T);
}
function _(T, R, L, D, A) {
return new f(
(T || "React class") + ": " + R + " type `" + L + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
);
}
function P(T) {
function R(L, D, A, B, O) {
var M = L[D], j = X(M);
if (j !== "object")
return new f("Invalid " + B + " `" + O + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
for (var V in T) {
var U = T[V];
if (typeof U != "function")
return _(A, B, O, V, ee(U));
var le = U(M, V, A, B, O + "." + V, n);
if (le)
return le;
}
return null;
}
return h(R);
}
function F(T) {
function R(L, D, A, B, O) {
var M = L[D], j = X(M);
if (j !== "object")
return new f("Invalid " + B + " `" + O + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
var V = t({}, L[D], T);
for (var U in V) {
var le = T[U];
if (r(T, U) && typeof le != "function")
return _(A, B, O, U, ee(le));
if (!le)
return new f(
"Invalid " + B + " `" + O + "` key `" + U + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(L[D], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
);
var I = le(M, U, A, B, O + "." + U, n);
if (I)
return I;
}
return null;
}
return h(R);
}
function Y(T) {
switch (typeof T) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !T;
case "object":
if (Array.isArray(T))
return T.every(Y);
if (T === null || a(T))
return !0;
var R = p(T);
if (R) {
var L = R.call(T), D;
if (R !== T.entries) {
for (; !(D = L.next()).done; )
if (!Y(D.value))
return !1;
} else
for (; !(D = L.next()).done; ) {
var A = D.value;
if (A && !Y(A[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function K(T, R) {
return T === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
}
function X(T) {
var R = typeof T;
return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : K(R, T) ? "symbol" : R;
}
function ee(T) {
if (typeof T > "u" || T === null)
return "" + T;
var R = X(T);
if (R === "object") {
if (T instanceof Date)
return "date";
if (T instanceof RegExp)
return "regexp";
}
return R;
}
function J(T) {
var R = ee(T);
switch (R) {
case "array":
case "object":
return "an " + R;
case "boolean":
case "date":
case "regexp":
return "a " + R;
default:
return R;
}
}
function ce(T) {
return !T.constructor || !T.constructor.name ? m : T.constructor.name;
}
return v.checkPropTypes = o, v.resetWarningCache = o.resetWarningCache, v.PropTypes = v, v;
}, Dn;
}
var jn, Br;
function bs() {
if (Br) return jn;
Br = 1;
var e = rr();
function t() {
}
function n() {
}
return n.resetWarningCache = t, jn = function() {
function r(s, a, u, d, l, p) {
if (p !== e) {
var m = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
);
throw m.name = "Invariant Violation", m;
}
}
r.isRequired = r;
function o() {
return r;
}
var i = {
array: r,
bigint: r,
bool: r,
func: r,
number: r,
object: r,
string: r,
symbol: r,
any: r,
arrayOf: o,
element: r,
elementType: r,
instanceOf: o,
node: r,
objectOf: o,
oneOf: o,
oneOfType: o,
shape: o,
exact: o,
checkPropTypes: n,
resetWarningCache: t
};
return i.PropTypes = i, i;
}, jn;
}
if (process.env.NODE_ENV !== "production") {
var vs = Lo(), Es = !0;
Wn.exports = ys()(vs.isElement, Es);
} else
Wn.exports = bs()();
var xs = Wn.exports;
const c = /* @__PURE__ */ fs(xs);
function Qe(e, t, n = void 0) {
const r = {};
return Object.keys(e).forEach(
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
(o) => {
r[o] = e[o].reduce((i, s) => {
if (s) {
const a = t(s);
a !== "" && i.push(a), n && n[s] && i.push(n[s]);
}
return i;
}, []).join(" ");
}
), r;
}
function Is(e) {
return typeof e == "string";
}
function Ss(e, t, n) {
return e === void 0 || Is(e) ? t : C({}, t, {
ownerState: C({}, t.ownerState, n)
});
}
function Ts(e, t = []) {
if (e === void 0)
return {};
const n = {};
return Object.keys(e).filter((r) => r.match(/^on[A-Z]/) && typeof e[r] == "function" && !t.includes(r)).forEach((r) => {
n[r] = e[r];
}), n;
}
function Ke(e, t, n) {
return typeof e == "function" ? e(t, n) : e;
}
function de(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
if (t.includes(r)) continue;
n[r] = e[r];
}
return n;
}
function ws(e, t) {
return process.env.NODE_ENV === "production" ? () => null : function(...r) {
return e(...r) || t(...r);
};
}
function Be(e) {
if (typeof e != "object" || e === null)
return !1;
const t = Object.getPrototypeOf(e);
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
}
function Uo(e) {
if (!Be(e))
return e;
const t = {};
return Object.keys(e).forEach((n) => {
t[n] = Uo(e[n]);
}), t;
}
function De(e, t, n = {
clone: !0
}) {
const r = n.clone ? C({}, e) : e;
return Be(e) && Be(t) && Object.keys(t).forEach((o) => {
Be(t[o]) && // Avoid prototype pollution
Object.prototype.hasOwnProperty.call(e, o) && Be(e[o]) ? r[o] = De(e[o], t[o], n) : n.clone ? r[o] = Be(t[o]) ? Uo(t[o]) : t[o] : r[o] = t[o];
}), r;
}
const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: De,
isPlainObject: Be
}, Symbol.toStringTag, { value: "Module" }));
function Os(e) {
const {
prototype: t = {}
} = e;
return !!t.isReactComponent;
}
function Rs(e, t, n, r, o) {
const i = e[t], s = o || t;
if (i == null || // When server-side rendering React doesn't warn either.
// This is not an accurate check for SSR.
// This is only in place for emotion compat.
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
typeof window > "u")
return null;
let a;
return typeof i == "function" && !Os(i) && (a = "Did you accidentally provide a plain function component instead?"), a !== void 0 ? new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
}
const or = ws(c.elementType, Rs);
function Je(e) {
let t = "https://mui.com/production-error/?code=" + e;
for (let n = 1; n < arguments.length; n += 1)
t += "&args[]=" + encodeURIComponent(arguments[n]);
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
}
const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: Je
}, Symbol.toStringTag, { value: "Module" }));
var Yn = { exports: {} }, re = {};
/**
* @license React
* 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 qr;
function Ps() {
if (qr) return re;
qr = 1;
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), y;
y = Symbol.for("react.module.reference");
function f(h) {
if (typeof h == "object" && h !== null) {
var b = h.$$typeof;
switch (b) {
case e:
switch (h = h.type, h) {
case n:
case o:
case r:
case d:
case l:
return h;
default:
switch (h = h && h.$$typeof, h) {
case a:
case s:
case u:
case m:
case p:
case i:
return h;
default:
return b;
}
}
case t:
return b;
}
}
}
return re.ContextConsumer = s, re.ContextProvider = i, re.Element = e, re.ForwardRef = u, re.Fragment = n, re.Lazy = m, re.Memo = p, re.Portal = t, re.Profiler = o, re.StrictMode = r, re.Suspense = d, re.SuspenseList = l, re.isAsyncMode = function() {
return !1;
}, re.isConcurrentMode = function() {
return !1;
}, re.isContextConsumer = function(h) {
return f(h) === s;
}, re.isContextProvider = function(h) {
return f(h) === i;
}, re.isElement = function(h) {
return typeof h == "object" && h !== null && h.$$typeof === e;
}, re.isForwardRef = function(h) {
return f(h) === u;
}, re.isFragment = function(h) {
return f(h) === n;
}, re.isLazy = function(h) {
return f(h) === m;
}, re.isMemo = function(h) {
return f(h) === p;
}, re.isPortal = function(h) {
return f(h) === t;
}, re.isProfiler = function(h) {
return f(h) === o;
}, re.isStrictMode = function(h) {
return f(h) === r;
}, re.isSuspense = function(h) {
return f(h) === d;
}, re.isSuspenseList = function(h) {
return f(h) === l;
}, re.isValidElementType = function(h) {
return typeof h == "string" || typeof h == "function" || h === n || h === o || h === r || h === d || h === l || h === v || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === p || h.$$typeof === i || h.$$typeof === s || h.$$typeof === u || h.$$typeof === y || h.getModuleId !== void 0);
}, re.typeOf = f, re;
}
var oe = {};
/**
* @license React
* react-is.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 Wr;
function $s() {
return Wr || (Wr = 1, process.env.NODE_ENV !== "production" && function() {
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), y = !1, f = !1, h = !1, b = !1, x = !1, S;
S = Symbol.for("react.module.reference");
function w(N) {
return !!(typeof N == "string" || typeof N == "function" || N === n || N === o || x || N === r || N === d || N === l || b || N === v || y || f || h || typeof N == "object" && N !== null && (N.$$typeof === m || N.$$typeof === p || N.$$typeof === i || N.$$typeof === s || N.$$typeof === u || // 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.
N.$$typeof === S || N.getModuleId !== void 0));
}
function g(N) {
if (typeof N == "object" && N !== null) {
var xe = N.$$typeof;
switch (xe) {
case e:
var Ue = N.type;
switch (Ue) {
case n:
case o:
case r:
case d:
case l:
return Ue;
default:
var tt = Ue && Ue.$$typeof;
switch (tt) {
case a:
case s:
case u:
case m:
case p:
case i:
return tt;
default:
return xe;
}
}
case t:
return xe;
}
}
}
var $ = s, k = i, H = e, G = u, z = n, _ = m, P = p, F = t, Y = o, K = r, X = d, ee = l, J = !1, ce = !1;
function T(N) {
return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function R(N) {
return ce || (ce = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function L(N) {
return g(N) === s;
}
function D(N) {
return g(N) === i;
}
function A(N) {
return typeof N == "object" && N !== null && N.$$typeof === e;
}
function B(N) {
return g(N) === u;
}
function O(N) {
return g(N) === n;
}
function M(N) {
return g(N) === m;
}
function j(N) {
return g(N) === p;
}
function V(N) {
return g(N) === t;
}
function U(N) {
return g(N) === o;
}
function le(N) {
return g(N) === r;
}
function I(N) {
return g(N) === d;
}
function ge(N) {
return g(N) === l;
}
oe.ContextConsumer = $, oe.ContextProvider = k, oe.Element = H, oe.ForwardRef = G, oe.Fragment = z, oe.Lazy = _, oe.Memo = P, oe.Portal = F, oe.Profiler = Y, oe.StrictMode = K, oe.Suspense = X, oe.SuspenseList = ee, oe.isAsyncMode = T, oe.isConcurrentMode = R, oe.isContextConsumer = L, oe.isContextProvider = D, oe.isElement = A, oe.isForwardRef = B, oe.isFragment = O, oe.isLazy = M, oe.isMemo = j, oe.isPortal = V, oe.isProfiler = U, oe.isStrictMode = le, oe.isSuspense = I, oe.isSuspenseList = ge, oe.isValidElementType = w, oe.typeOf = g;
}()), oe;
}
process.env.NODE_ENV === "production" ? Yn.exports = Ps() : Yn.exports = $s();
var Yr = Yn.exports;
const ks = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
function Bo(e) {
const t = `${e}`.match(ks);
return t && t[1] || "";
}
function qo(e, t = "") {
return e.displayName || e.name || Bo(e) || t;
}
function Kr(e, t, n) {
const r = qo(t);
return e.displayName || (r !== "" ? `${n}(${r})` : n);
}
function Ns(e) {
if (e != null) {
if (typeof e == "string")
return e;
if (typeof e == "function")
return qo(e, "Component");
if (typeof e == "object")
switch (e.$$typeof) {
case Yr.ForwardRef:
return Kr(e, e.render, "ForwardRef");
case Yr.Memo:
return Kr(e, e.type, "memo");
default:
return;
}
}
}
const Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: Ns,
getFunctionName: Bo
}, Symbol.toStringTag, { value: "Module" })), ir = c.oneOfType([c.func, c.object]);
function _e(e) {
if (typeof e != "string")
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Je(7));
return e.charAt(0).toUpperCase() + e.slice(1);
}
const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: _e
}, Symbol.toStringTag, { value: "Module" }));
function Ds(e) {
return e && e.ownerDocument || document;
}
function js(e, t) {
typeof e == "function" ? e(t) : e && (e.current = t);
}
const Vs = typeof window < "u" ? E.useLayoutEffect : E.useEffect;
let Hr = 0;
function Fs(e) {
const [t, n] = E.useState(e), r = e || t;
return E.useEffect(() => {
t == null && (Hr += 1, n(`mui-${Hr}`));
}, [t]), r;
}
const Gr = E.useId;
function Ls(e) {
if (Gr !== void 0) {
const t = Gr();
return e ?? t;
}
return Fs(e);
}
function zs(e, t, n, r, o) {
if (process.env.NODE_ENV === "production")
return null;
const i = o || t;
return typeof e[t] < "u" ? new Error(`The prop \`${i}\` is not supported. Please remove it.`) : null;
}
function Us({
controlled: e,
default: t,
name: n,
state: r = "value"
}) {
const {
current: o
} = E.useRef(e !== void 0), [i, s] = E.useState(t), a = o ? e : i;
if (process.env.NODE_ENV !== "production") {
E.useEffect(() => {
o !== (e !== void 0) && console.error([`MUI: A component is changing the ${o ? "" : "un"}controlled ${r} state of ${n} to be ${o ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
`));
}, [r, n, e]);
const {
current: d
} = E.useRef(t);
E.useEffect(() => {
!o && !Object.is(d, t) && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
`));
}, [JSON.stringify(t)]);
}
const u = E.useCallback((d) => {
o || s(d);
}, []);
return [a, u];
}
function Ae(e) {
const t = E.useRef(e);
return Vs(() => {
t.current = e;
}), E.useRef((...n) => (
// @ts-expect-error hide `this`
(0, t.current)(...n)
)).current;
}
function Ze(...e) {
return E.useMemo(() => e.every((t) => t == null) ? null : (t) => {
e.forEach((n) => {
js(n, t);
});
}, e);
}
const Xr = {};
function Bs(e, t) {
const n = E.useRef(Xr);
return n.current === Xr && (n.current = e(t)), n;
}
const qs = [];
function Ws(e) {
E.useEffect(e, qs);
}
class cn {
constructor() {
this.currentId = null, this.clear = () => {
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
}, this.disposeEffect = () => this.clear;
}
static create() {
return new cn();
}
/**
* Executes `fn` after `delay`, clearing any previously scheduled call.
*/
start(t, n) {
this.clear(), this.currentId = setTimeout(() => {
this.currentId = null, n();
}, t);
}
}
function Wo() {
const e = Bs(cn.create).current;
return Ws(e.disposeEffect), e;
}
let ln = !0, Kn = !1;
const Ys = new cn(), Ks = {
text: !0,
search: !0,
url: !0,
tel: !0,
email: !0,
password: !0,
number: !0,
date: !0,
month: !0,
week: !0,
time: !0,
datetime: !0,
"datetime-local": !0
};
function Hs(e) {
const {
type: t,
tagName: n
} = e;
return !!(n === "INPUT" && Ks[t] && !e.readOnly || n === "TEXTAREA" && !e.readOnly || e.isContentEditable);
}
function Gs(e) {
e.metaKey || e.altKey || e.ctrlKey || (ln = !0);
}
function Vn() {
ln = !1;
}
function Xs() {
this.visibilityState === "hidden" && Kn && (ln = !0);
}
function Js(e) {
e.addEventListener("keydown", Gs, !0), e.addEventListener("mousedown", Vn, !0), e.addEventListener("pointerdown", Vn, !0), e.addEventListener("touchstart", Vn, !0), e.addEventListener("visibilitychange", Xs, !0);
}
function Zs(e) {
const {
target: t
} = e;
try {
return t.matches(":focus-visible");
} catch {
}
return ln || Hs(t);
}
function Qs() {
const e = E.useCallback((o) => {
o != null && Js(o.ownerDocument);
}, []), t = E.useRef(!1);
function n() {
return t.current ? (Kn = !0, Ys.start(100, () => {
Kn = !1;
}), t.current = !1, !0) : !1;
}
function r(o) {
return Zs(o) ? (t.current = !0, !0) : !1;
}
return {
isFocusVisibleRef: t,
onFocus: r,
onBlur: n,
ref: e
};
}
function en(e, t) {
const n = C({}, t);
return Object.keys(e).forEach((r) => {
if (r.toString().match(/^(components|slots)$/))
n[r] = C({}, e[r], n[r]);
else if (r.toString().match(/^(componentsProps|slotProps)$/)) {
const o = e[r] || {}, i = t[r];
n[r] = {}, !i || !Object.keys(i) ? n[r] = o : !o || !Object.keys(o) ? n[r] = i : (n[r] = C({}, i), Object.keys(o).forEach((s) => {
n[r][s] = en(o[s], i[s]);
}));
} else n[r] === void 0 && (n[r] = e[r]);
}), n;
}
const Jr = (e) => e, ea = () => {
let e = Jr;
return {
configure(t) {
e = t;
},
generate(t) {
return e(t);
},
reset() {
e = Jr;
}
};
}, ta = ea(), na = {
active: "active",
checked: "checked",
completed: "completed",
disabled: "disabled",
error: "error",
expanded: "expanded",
focused: "focused",
focusVisible: "focusVisible",
open: "open",
readOnly: "readOnly",
required: "required",
selected: "selected"
};
function Le(e, t, n = "Mui") {
const r = na[t];
return r ? `${n}-${r}` : `${ta.generate(e)}-${t}`;
}
function We(e, t, n = "Mui") {
const r = {};
return t.forEach((o) => {
r[o] = Le(e, o, n);
}), r;
}
function Yo(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) {
return Math.max(t, Math.min(e, n));
}
const ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: Yo
}, Symbol.toStringTag, { value: "Module" }));
function Ko(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") if (Array.isArray(e)) {
var o = e.length;
for (t = 0; t < o; t++) e[t] && (n = Ko(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
return r;
}
function be() {
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Ko(e)) && (r && (r += " "), r += t);
return r;
}
function Zr(e) {
if (e === void 0)
return {};
const t = {};
return Object.keys(e).filter((n) => !(n.match(/^on[A-Z]/) && typeof e[n] == "function")).forEach((n) => {
t[n] = e[n];
}), t;
}
function oa(e) {
const {
getSlotProps: t,
additionalProps: n,
externalSlotProps: r,
externalForwardedProps: o,
className: i
} = e;
if (!t) {
const v = be(n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), y = C({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), f = C({}, n, o, r);
return v.length > 0 && (f.className = v), Object.keys(y).length > 0 && (f.style = y), {
props: f,
internalRef: void 0
};
}
const s = Ts(C({}, o, r)), a = Zr(r), u = Zr(o), d = t(s), l = be(d == null ? void 0 : d.className, n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), p = C({}, d == null ? void 0 : d.style, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), m = C({}, d, n, u, a);
return l.length > 0 && (m.className = l), Object.keys(p).length > 0 && (m.style = p), {
props: m,
internalRef: d.ref
};
}
const ia = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
function ut(e) {
var t;
const {
elementType: n,
externalSlotProps: r,
ownerState: o,
skipResolvingSlotProps: i = !1
} = e, s = de(e, ia), a = i ? {} : Ke(r, o), {
props: u,
internalRef: d
} = oa(C({}, s, {
externalSlotProps: a
})), l = Ze(d, a == null ? void 0 : a.ref, (t = e.additionalProps) == null ? void 0 : t.ref);
return Ss(n, C({}, u, {
ref: l
}), o);
}
function sa(e) {
return Le("MuiRichTreeView", e);
}
We("MuiRichTreeView", ["root"]);
const sr = "$$material";
function Ho(e) {
var t = /* @__PURE__ */ Object.create(null);
return function(n) {
return t[n] === void 0 && (t[n] = e(n)), t[n];
};
}
var aa = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, ca = /* @__PURE__ */ Ho(
function(e) {
return aa.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
);
function la(e) {
if (e.sheet)
return e.sheet;
for (var t = 0; t < document.styleSheets.length; t++)
if (document.styleSheets[t].ownerNode === e)
return document.styleSheets[t];
}
function ua(e) {
var t = document.createElement("style");
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
}
var da = /* @__PURE__ */ function() {
function e(n) {
var r = this;
this._insertTag = function(o) {
var i;
r.tags.length === 0 ? r.insertionPoint ? i = r.insertionPoint.nextSibling : r.prepend ? i = r.container.firstChild : i = r.before : i = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(o, i), r.tags.push(o);
}, this.isSpeedy = n.speedy === void 0 ? process.env.NODE_ENV === "production" : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
}