@innovatrics/dot-auto-capture-ui
Version:
Digital onboarding UI
1,216 lines • 120 kB
JavaScript
var Oo = Object.defineProperty;
var No = (e, t, n) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var rt = (e, t, n) => No(e, typeof t != "symbol" ? t + "" : t, n);
var Xe, v, yr, ue, xn, vr, Cr, Er, un, Ut, Bt, wr, Ge = {}, Sr = [], ko = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ke = Array.isArray;
function Z(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
function fn(e) {
e && e.parentNode && e.parentNode.removeChild(e);
}
function M(e, t, n) {
var r, o, i, a = {};
for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
if (arguments.length > 2 && (a.children = arguments.length > 3 ? Xe.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] == null && (a[i] = e.defaultProps[i]);
return ze(e, a, r, o, null);
}
function ze(e, t, n, r, o) {
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++yr, __i: -1, __u: 0 };
return o == null && v.vnode != null && v.vnode(i), i;
}
function To() {
return { current: null };
}
function V(e) {
return e.children;
}
function j(e, t) {
this.props = e, this.context = t;
}
function Se(e, t) {
if (t == null) return e.__ ? Se(e.__, e.__i + 1) : null;
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
return typeof e.type == "function" ? Se(e) : null;
}
function br(e) {
var t, n;
if ((e = e.__) != null && e.__c != null) {
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
e.__e = e.__c.base = n.__e;
break;
}
return br(e);
}
}
function zt(e) {
(!e.__d && (e.__d = !0) && ue.push(e) && !mt.__r++ || xn != v.debounceRendering) && ((xn = v.debounceRendering) || vr)(mt);
}
function mt() {
for (var e, t, n, r, o, i, a, c = 1; ue.length; ) ue.length > c && ue.sort(Cr), e = ue.shift(), c = ue.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = Z({}, r)).__v = r.__v + 1, v.vnode && v.vnode(n), dn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? Se(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, Nr(i, n, a), n.__e != o && br(n)));
mt.__r = 0;
}
function $r(e, t, n, r, o, i, a, c, s, u, f) {
var l, h, _, g, w, $, m = r && r.__k || Sr, p = t.length;
for (s = xo(n, t, m, s, p), l = 0; l < p; l++) (_ = n.__k[l]) != null && (h = _.__i == -1 ? Ge : m[_.__i] || Ge, _.__i = l, $ = dn(e, _, h, o, i, a, c, s, u, f), g = _.__e, _.ref && h.ref != _.ref && (h.ref && _n(h.ref, null, _), f.push(_.ref, _.__c || g, _)), w == null && g != null && (w = g), 4 & _.__u || h.__k === _.__k ? s = Or(_, s, e) : typeof _.type == "function" && $ !== void 0 ? s = $ : g && (s = g.nextSibling), _.__u &= -7);
return n.__e = w, s;
}
function xo(e, t, n, r, o) {
var i, a, c, s, u, f = n.length, l = f, h = 0;
for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (s = i + h, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? ze(null, a, null, null, null) : Ke(a) ? ze(V, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? ze(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, c = null, (u = a.__i = Io(a, n, s, l)) != -1 && (l--, (c = n[u]) && (c.__u |= 2)), c == null || c.__v == null ? (u == -1 && (o > f ? h-- : o < f && h++), typeof a.type != "function" && (a.__u |= 4)) : u != s && (u == s - 1 ? h-- : u == s + 1 ? h++ : (u > s ? h-- : h++, a.__u |= 4))) : e.__k[i] = null;
if (l) for (i = 0; i < f; i++) (c = n[i]) != null && (2 & c.__u) == 0 && (c.__e == r && (r = Se(c)), Tr(c, c));
return r;
}
function Or(e, t, n) {
var r, o;
if (typeof e.type == "function") {
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Or(r[o], t, n));
return t;
}
e.__e != t && (t && e.type && !n.contains(t) && (t = Se(e)), n.insertBefore(e.__e, t || null), t = e.__e);
do
t = t && t.nextSibling;
while (t != null && t.nodeType == 8);
return t;
}
function ee(e, t) {
return t = t || [], e == null || typeof e == "boolean" || (Ke(e) ? e.some(function(n) {
ee(n, t);
}) : t.push(e)), t;
}
function Io(e, t, n, r) {
var o, i, a = e.key, c = e.type, s = t[n];
if (s === null && e.key == null || s && a == s.key && c == s.type && (2 & s.__u) == 0) return n;
if (r > (s != null && (2 & s.__u) == 0 ? 1 : 0)) for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) {
if (o >= 0) {
if ((s = t[o]) && (2 & s.__u) == 0 && a == s.key && c == s.type) return o;
o--;
}
if (i < t.length) {
if ((s = t[i]) && (2 & s.__u) == 0 && a == s.key && c == s.type) return i;
i++;
}
}
return -1;
}
function In(e, t, n) {
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ko.test(t) ? n : n + "px";
}
function ot(e, t, n, r, o) {
var i;
e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
else {
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || In(e.style, t, "");
if (n) for (t in n) r && n[t] == r[t] || In(e.style, t, n[t]);
}
else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(Er, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = un, e.addEventListener(t, i ? Bt : Ut, i)) : e.removeEventListener(t, i ? Bt : Ut, i);
else {
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
e[t] = n ?? "";
break e;
} catch {
}
typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
}
}
function An(e) {
return function(t) {
if (this.l) {
var n = this.l[t.type + e];
if (t.t == null) t.t = un++;
else if (t.t < n.u) return;
return n(v.event ? v.event(t) : t);
}
};
}
function dn(e, t, n, r, o, i, a, c, s, u) {
var f, l, h, _, g, w, $, m, p, O, S, k, E, y, F, U, Pe, B = t.type;
if (t.constructor != null) return null;
128 & n.__u && (s = !!(32 & n.__u), i = [c = t.__e = n.__e]), (f = v.__b) && f(t);
e: if (typeof B == "function") try {
if (m = t.props, p = "prototype" in B && B.prototype.render, O = (f = B.contextType) && r[f.__c], S = f ? O ? O.props.value : f.__ : r, n.__c ? $ = (l = t.__c = n.__c).__ = l.__E : (p ? t.__c = l = new B(m, S) : (t.__c = l = new j(m, S), l.constructor = B, l.render = Ro), O && O.sub(l), l.props = m, l.state || (l.state = {}), l.context = S, l.__n = r, h = l.__d = !0, l.__h = [], l._sb = []), p && l.__s == null && (l.__s = l.state), p && B.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = Z({}, l.__s)), Z(l.__s, B.getDerivedStateFromProps(m, l.__s))), _ = l.props, g = l.state, l.__v = t, h) p && B.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), p && l.componentDidMount != null && l.__h.push(l.componentDidMount);
else {
if (p && B.getDerivedStateFromProps == null && m !== _ && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, S), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, S) === !1 || t.__v == n.__v) {
for (t.__v != n.__v && (l.props = m, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(ce) {
ce && (ce.__ = t);
}), k = 0; k < l._sb.length; k++) l.__h.push(l._sb[k]);
l._sb = [], l.__h.length && a.push(l);
break e;
}
l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s, S), p && l.componentDidUpdate != null && l.__h.push(function() {
l.componentDidUpdate(_, g, w);
});
}
if (l.context = S, l.props = m, l.__P = e, l.__e = !1, E = v.__r, y = 0, p) {
for (l.state = l.__s, l.__d = !1, E && E(t), f = l.render(l.props, l.state, l.context), F = 0; F < l._sb.length; F++) l.__h.push(l._sb[F]);
l._sb = [];
} else do
l.__d = !1, E && E(t), f = l.render(l.props, l.state, l.context), l.state = l.__s;
while (l.__d && ++y < 25);
l.state = l.__s, l.getChildContext != null && (r = Z(Z({}, r), l.getChildContext())), p && !h && l.getSnapshotBeforeUpdate != null && (w = l.getSnapshotBeforeUpdate(_, g)), U = f, f != null && f.type === V && f.key == null && (U = kr(f.props.children)), c = $r(e, Ke(U) ? U : [U], t, n, r, o, i, a, c, s, u), l.base = t.__e, t.__u &= -161, l.__h.length && a.push(l), $ && (l.__E = l.__ = null);
} catch (ce) {
if (t.__v = null, s || i != null) if (ce.then) {
for (t.__u |= s ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
i[i.indexOf(c)] = null, t.__e = c;
} else for (Pe = i.length; Pe--; ) fn(i[Pe]);
else t.__e = n.__e, t.__k = n.__k;
v.__e(ce, t, n);
}
else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : c = t.__e = Ao(n.__e, t, n, r, o, i, a, s, u);
return (f = v.diffed) && f(t), 128 & t.__u ? void 0 : c;
}
function Nr(e, t, n) {
for (var r = 0; r < n.length; r++) _n(n[r], n[++r], n[++r]);
v.__c && v.__c(t, e), e.some(function(o) {
try {
e = o.__h, o.__h = [], e.some(function(i) {
i.call(o);
});
} catch (i) {
v.__e(i, o.__v);
}
});
}
function kr(e) {
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ke(e) ? e.map(kr) : Z({}, e);
}
function Ao(e, t, n, r, o, i, a, c, s) {
var u, f, l, h, _, g, w, $ = n.props, m = t.props, p = t.type;
if (p == "svg" ? o = "http://www.w3.org/2000/svg" : p == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
for (u = 0; u < i.length; u++) if ((_ = i[u]) && "setAttribute" in _ == !!p && (p ? _.localName == p : _.nodeType == 3)) {
e = _, i[u] = null;
break;
}
}
if (e == null) {
if (p == null) return document.createTextNode(m);
e = document.createElementNS(o, p, m.is && m), c && (v.__m && v.__m(t, i), c = !1), i = null;
}
if (p == null) $ === m || c && e.data == m || (e.data = m);
else {
if (i = i && Xe.call(e.childNodes), $ = n.props || Ge, !c && i != null) for ($ = {}, u = 0; u < e.attributes.length; u++) $[(_ = e.attributes[u]).name] = _.value;
for (u in $) if (_ = $[u], u != "children") {
if (u == "dangerouslySetInnerHTML") l = _;
else if (!(u in m)) {
if (u == "value" && "defaultValue" in m || u == "checked" && "defaultChecked" in m) continue;
ot(e, u, null, _, o);
}
}
for (u in m) _ = m[u], u == "children" ? h = _ : u == "dangerouslySetInnerHTML" ? f = _ : u == "value" ? g = _ : u == "checked" ? w = _ : c && typeof _ != "function" || $[u] === _ || ot(e, u, _, $[u], o);
if (f) c || l && (f.__html == l.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
else if (l && (e.innerHTML = ""), $r(t.type == "template" ? e.content : e, Ke(h) ? h : [h], t, n, r, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Se(n, 0), c, s), i != null) for (u = i.length; u--; ) fn(i[u]);
c || (u = "value", p == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[u] || p == "progress" && !g || p == "option" && g != $[u]) && ot(e, u, g, $[u], o), u = "checked", w != null && w != e[u] && ot(e, u, w, $[u], o));
}
return e;
}
function _n(e, t, n) {
try {
if (typeof e == "function") {
var r = typeof e.__u == "function";
r && e.__u(), r && t == null || (e.__u = e(t));
} else e.current = t;
} catch (o) {
v.__e(o, n);
}
}
function Tr(e, t, n) {
var r, o;
if (v.unmount && v.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || _n(r, null, t)), (r = e.__c) != null) {
if (r.componentWillUnmount) try {
r.componentWillUnmount();
} catch (i) {
v.__e(i, t);
}
r.base = r.__P = null;
}
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Tr(r[o], t, n || typeof e.type != "function");
n || fn(e.__e), e.__c = e.__ = e.__e = void 0;
}
function Ro(e, t, n) {
return this.constructor(e, n);
}
function ie(e, t, n) {
var r, o, i, a;
t == document && (t = document.documentElement), v.__ && v.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], dn(t, e = (!r && n || t).__k = M(V, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Xe.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), Nr(i, e, a);
}
function hn(e, t) {
ie(e, t, hn);
}
function pn(e, t, n) {
var r, o, i, a, c = Z({}, e.props);
for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : c[i] = t[i] == null && a != null ? a[i] : t[i];
return arguments.length > 2 && (c.children = arguments.length > 3 ? Xe.call(arguments, 2) : n), ze(e.type, c, r || e.key, o || e.ref, null);
}
function xr(e) {
function t(n) {
var r, o;
return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
return o;
}, this.componentWillUnmount = function() {
r = null;
}, this.shouldComponentUpdate = function(i) {
this.props.value != i.value && r.forEach(function(a) {
a.__e = !0, zt(a);
});
}, this.sub = function(i) {
r.add(i);
var a = i.componentWillUnmount;
i.componentWillUnmount = function() {
r && r.delete(i), a && a.call(i);
};
}), n.children;
}
return t.__c = "__cC" + wr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
return n.children(r);
}).contextType = t, t;
}
Xe = Sr.slice, v = { __e: function(e, t, n, r) {
for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), a = o.__d), a) return o.__E = o;
} catch (c) {
e = c;
}
throw e;
} }, yr = 0, j.prototype.setState = function(e, t) {
var n;
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Z({}, this.state), typeof e == "function" && (e = e(Z({}, n), this.props)), e && Z(n, e), e != null && this.__v && (t && this._sb.push(t), zt(this));
}, j.prototype.forceUpdate = function(e) {
this.__v && (this.__e = !0, e && this.__h.push(e), zt(this));
}, j.prototype.render = V, ue = [], vr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Cr = function(e, t) {
return e.__v.__b - t.__v.__b;
}, mt.__r = 0, Er = /(PointerCapture)$|Capture$/i, un = 0, Ut = An(!1), Bt = An(!0), wr = 0;
function mn() {
return (mn = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}).apply(this, arguments);
}
var Po = ["context", "children"];
function Do(e) {
this.getChildContext = function() {
return e.context;
};
var t = e.children, n = function(r, o) {
if (r == null) return {};
var i, a, c = {}, s = Object.keys(r);
for (a = 0; a < s.length; a++) o.indexOf(i = s[a]) >= 0 || (c[i] = r[i]);
return c;
}(e, Po);
return pn(t, n);
}
function Lo() {
var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
this.dispatchEvent(e), this._vdom = M(Do, mn({}, this._props, { context: e.detail.context }), function t(n, r) {
if (n.nodeType === 3) return n.data;
if (n.nodeType !== 1) return null;
var o = [], i = {}, a = 0, c = n.attributes, s = n.childNodes;
for (a = c.length; a--; ) c[a].name !== "slot" && (i[c[a].name] = c[a].value, i[Ir(c[a].name)] = c[a].value);
for (a = s.length; a--; ) {
var u = t(s[a], null), f = s[a].slot;
f ? i[f] = M(Rn, { name: f }, u) : o[a] = u;
}
var l = r ? M(Rn, null, o) : o;
return M(r || n.nodeName.toLowerCase(), i, l);
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? hn : ie)(this._vdom, this._root);
}
function Ir(e) {
return e.replace(/-(\w)/g, function(t, n) {
return n ? n.toUpperCase() : "";
});
}
function Mo(e, t, n) {
if (this._vdom) {
var r = {};
r[e] = n = n ?? void 0, r[Ir(e)] = n, this._vdom = pn(this._vdom, r), ie(this._vdom, this._root);
}
}
function Ho() {
ie(this._vdom = null, this._root);
}
function Rn(e, t) {
var n = this;
return M("slot", mn({}, e, { ref: function(r) {
r ? (n.ref = r, n._listener || (n._listener = function(o) {
o.stopPropagation(), o.detail.context = t;
}, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
} }));
}
function Fo(e, t, n, r) {
function o() {
var i = Reflect.construct(HTMLElement, [], o);
return i._vdomComponent = e, i._root = i, i;
}
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Lo, o.prototype.attributeChangedCallback = Mo, o.prototype.disconnectedCallback = Ho, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
Object.defineProperty(o.prototype, i, { get: function() {
return this._vdom.props[i];
}, set: function(a) {
this._vdom ? this.attributeChangedCallback(i, null, a) : (this._props || (this._props = {}), this._props[i] = a, this.connectedCallback());
var c = typeof a;
a != null && c !== "string" && c !== "boolean" && c !== "number" || this.setAttribute(i, a);
} });
}), customElements.define(t, o);
}
var Uo = 0;
function d(e, t, n, r, o, i) {
t || (t = {});
var a, c, s = t;
if ("ref" in s) for (c in s = {}, t) c == "ref" ? a = t[c] : s[c] = t[c];
var u = { type: e, props: s, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Uo, __i: -1, __u: 0, __source: o, __self: i };
if (typeof e == "function" && (a = e.defaultProps)) for (c in a) s[c] === void 0 && (s[c] = a[c]);
return v.vnode && v.vnode(u), u;
}
const Pn = {
SWITCH_CAMERA: "switch-camera",
TOGGLE_MIRROR: "toggle-mirror"
};
var be = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "face-auto-capture:camera-props-changed", e.CONTROL = "face-auto-capture:control", e.DETECTED_FACE_CHANGED = "face-auto-capture:detected-face-changed", e.FACE_DETECTION = "face-auto-capture:face-detection", e.INSTRUCTION_CHANGED = "face-auto-capture:instruction-changed", e.STATE_CHANGED = "face-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "face-auto-capture:video-element-size", e))(be || {}), gn = /* @__PURE__ */ ((e) => (e.ANIMATION_END = "magnifeye-auto-capture:animation-end", e.CONTROL = "magnifeye-auto-capture:control", e.STATUS_CHANGED = "magnifeye-auto-capture:status-changed", e))(gn || {});
const Dn = {
EYE_NOT_PRESENT: "eye_not_present"
}, P = {
CANDIDATE_SELECTION: "candidate_selection",
FACE_TOO_CLOSE: "face_too_close",
FACE_TOO_FAR: "face_too_far",
FACE_CENTERING: "face_centering",
FACE_NOT_PRESENT: "face_not_present",
SHARPNESS_TOO_LOW: "sharpness_too_low",
BRIGHTNESS_TOO_LOW: "brightness_too_low",
BRIGHTNESS_TOO_HIGH: "brightness_too_high",
DEVICE_PITCHED: "device_pitched",
LEFT_EYE_NOT_PRESENT: `left_${Dn.EYE_NOT_PRESENT}`,
RIGHT_EYE_NOT_PRESENT: `right_${Dn.EYE_NOT_PRESENT}`,
MOUTH_NOT_PRESENT: "mouth_not_present",
MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high",
MOUTH_SCORE_TOO_LOW: "mouth_score_too_low"
}, Bo = {
LOADING: "LOADING",
ERROR: "ERROR",
WAITING: "WAITING",
RUNNING: "RUNNING"
}, Wt = {
...Bo,
DONE: "DONE"
}, Ve = {
...P,
FIT_YOUR_EYE: "fit_your_eye"
};
var Ye = /* @__PURE__ */ ((e) => (e.CLOSEUP = "CLOSEUP", e.DISTANT = "DISTANT", e.MIDDLE = "MIDDLE", e))(Ye || {});
const we = Wt;
var ae, x, Rt, Ln, $e = 0, Ar = [], I = v, Mn = I.__b, Hn = I.__r, Fn = I.diffed, Un = I.__c, Bn = I.unmount, zn = I.__;
function xe(e, t) {
I.__h && I.__h(x, e, $e || t), $e = 0;
var n = x.__H || (x.__H = { __: [], __h: [] });
return e >= n.__.length && n.__.push({}), n.__[e];
}
function H(e) {
return $e = 1, yn(Dr, e);
}
function yn(e, t, n) {
var r = xe(ae++, 2);
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Dr(void 0, t), function(c) {
var s = r.__N ? r.__N[0] : r.__[0], u = r.t(s, c);
s !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
}], r.__c = x, !x.__f)) {
var o = function(c, s, u) {
if (!r.__c.__H) return !0;
var f = r.__c.__H.__.filter(function(h) {
return !!h.__c;
});
if (f.every(function(h) {
return !h.__N;
})) return !i || i.call(this, c, s, u);
var l = r.__c.props !== c;
return f.forEach(function(h) {
if (h.__N) {
var _ = h.__[0];
h.__ = h.__N, h.__N = void 0, _ !== h.__[0] && (l = !0);
}
}), i && i.call(this, c, s, u) || l;
};
x.__f = !0;
var i = x.shouldComponentUpdate, a = x.componentWillUpdate;
x.componentWillUpdate = function(c, s, u) {
if (this.__e) {
var f = i;
i = void 0, o(c, s, u), i = f;
}
a && a.call(this, c, s, u);
}, x.shouldComponentUpdate = o;
}
return r.__N || r.__;
}
function X(e, t) {
var n = xe(ae++, 3);
!I.__s && vn(n.__H, t) && (n.__ = e, n.u = t, x.__H.__h.push(n));
}
function Ie(e, t) {
var n = xe(ae++, 4);
!I.__s && vn(n.__H, t) && (n.__ = e, n.u = t, x.__h.push(n));
}
function Je(e) {
return $e = 5, te(function() {
return { current: e };
}, []);
}
function Rr(e, t, n) {
$e = 6, Ie(function() {
if (typeof e == "function") {
var r = e(t());
return function() {
e(null), r && typeof r == "function" && r();
};
}
if (e) return e.current = t(), function() {
return e.current = null;
};
}, n == null ? n : n.concat(e));
}
function te(e, t) {
var n = xe(ae++, 7);
return vn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
}
function pe(e, t) {
return $e = 8, te(function() {
return e;
}, t);
}
function Qe(e) {
var t = x.context[e.__c], n = xe(ae++, 9);
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(x)), t.props.value) : e.__;
}
function gt(e, t) {
I.useDebugValue && I.useDebugValue(t ? t(e) : e);
}
function Pr() {
var e = xe(ae++, 11);
if (!e.__) {
for (var t = x.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
var n = t.__m || (t.__m = [0, 0]);
e.__ = "P" + n[0] + "-" + n[1]++;
}
return e.__;
}
function zo() {
for (var e; e = Ar.shift(); ) if (e.__P && e.__H) try {
e.__H.__h.forEach(lt), e.__H.__h.forEach(jt), e.__H.__h = [];
} catch (t) {
e.__H.__h = [], I.__e(t, e.__v);
}
}
I.__b = function(e) {
x = null, Mn && Mn(e);
}, I.__ = function(e, t) {
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), zn && zn(e, t);
}, I.__r = function(e) {
Hn && Hn(e), ae = 0;
var t = (x = e.__c).__H;
t && (Rt === x ? (t.__h = [], x.__h = [], t.__.forEach(function(n) {
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
})) : (t.__h.forEach(lt), t.__h.forEach(jt), t.__h = [], ae = 0)), Rt = x;
}, I.diffed = function(e) {
Fn && Fn(e);
var t = e.__c;
t && t.__H && (t.__H.__h.length && (Ar.push(t) !== 1 && Ln === I.requestAnimationFrame || ((Ln = I.requestAnimationFrame) || Wo)(zo)), t.__H.__.forEach(function(n) {
n.u && (n.__H = n.u), n.u = void 0;
})), Rt = x = null;
}, I.__c = function(e, t) {
t.some(function(n) {
try {
n.__h.forEach(lt), n.__h = n.__h.filter(function(r) {
return !r.__ || jt(r);
});
} catch (r) {
t.some(function(o) {
o.__h && (o.__h = []);
}), t = [], I.__e(r, n.__v);
}
}), Un && Un(e, t);
}, I.unmount = function(e) {
Bn && Bn(e);
var t, n = e.__c;
n && n.__H && (n.__H.__.forEach(function(r) {
try {
lt(r);
} catch (o) {
t = o;
}
}), n.__H = void 0, t && I.__e(t, n.__v));
};
var Wn = typeof requestAnimationFrame == "function";
function Wo(e) {
var t, n = function() {
clearTimeout(r), Wn && cancelAnimationFrame(t), setTimeout(e);
}, r = setTimeout(n, 100);
Wn && (t = requestAnimationFrame(n));
}
function lt(e) {
var t = x, n = e.__c;
typeof n == "function" && (e.__c = void 0, n()), x = t;
}
function jt(e) {
var t = x;
e.__c = e.__(), x = t;
}
function vn(e, t) {
return !e || e.length !== t.length || t.some(function(n, r) {
return n !== e[r];
});
}
function Dr(e, t) {
return typeof t == "function" ? t(e) : t;
}
var D = function() {
return D = Object.assign || function(t) {
for (var n, r = 1, o = arguments.length; r < o; r++) {
n = arguments[r];
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
}
return t;
}, D.apply(this, arguments);
};
function me(e, t, n) {
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
return e.concat(i || Array.prototype.slice.call(t));
}
function jo(e) {
var t = /* @__PURE__ */ Object.create(null);
return function(n) {
return t[n] === void 0 && (t[n] = e(n)), t[n];
};
}
var Go = /^((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)-.*))$/, Vo = /* @__PURE__ */ jo(
function(e) {
return Go.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
);
function Lr(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
function Gt(e, t) {
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
return !1;
}
function Mr(e, t) {
var n = t(), r = H({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
return Ie(function() {
o.__ = n, o.u = t, Pt(o) && i({ t: o });
}, [e, n, t]), X(function() {
return Pt(o) && i({ t: o }), e(function() {
Pt(o) && i({ t: o });
});
}, [e]), n;
}
function Pt(e) {
var t, n, r = e.u, o = e.__;
try {
var i = r();
return !((t = o) === (n = i) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
} catch {
return !0;
}
}
function Hr(e) {
e();
}
function Fr(e) {
return e;
}
function Ur() {
return [!1, Hr];
}
var Br = Ie;
function Vt(e, t) {
this.props = e, this.context = t;
}
function Yo(e, t) {
function n(o) {
var i = this.props.ref, a = i == o.ref;
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Gt(this.props, o);
}
function r(o) {
return this.shouldComponentUpdate = n, M(e, o);
}
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
}
(Vt.prototype = new j()).isPureReactComponent = !0, Vt.prototype.shouldComponentUpdate = function(e, t) {
return Gt(this.props, e) || Gt(this.state, t);
};
var jn = v.__b;
v.__b = function(e) {
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), jn && jn(e);
};
var Zo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
function qo(e) {
function t(n) {
var r = Lr({}, n);
return delete r.ref, e(r, n.ref || null);
}
return t.$$typeof = Zo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
}
var Gn = function(e, t) {
return e == null ? null : ee(ee(e).map(t));
}, Xo = { map: Gn, forEach: Gn, count: function(e) {
return e ? ee(e).length : 0;
}, only: function(e) {
var t = ee(e);
if (t.length !== 1) throw "Children.only";
return t[0];
}, toArray: ee }, Ko = v.__e;
v.__e = function(e, t, n, r) {
if (e.then) {
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
}
Ko(e, t, n, r);
};
var Vn = v.unmount;
function zr(e, t, n) {
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
typeof r.__c == "function" && r.__c();
}), e.__c.__H = null), (e = Lr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
return zr(r, t, n);
})), e;
}
function Wr(e, t, n) {
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
return Wr(r, t, n);
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
}
function ut() {
this.__u = 0, this.o = null, this.__b = null;
}
function jr(e) {
var t = e.__.__c;
return t && t.__a && t.__a(e);
}
function Jo(e) {
var t, n, r;
function o(i) {
if (t || (t = e()).then(function(a) {
n = a.default || a;
}, function(a) {
r = a;
}), r) throw r;
if (!n) throw t;
return M(n, i);
}
return o.displayName = "Lazy", o.__f = !0, o;
}
function Fe() {
this.i = null, this.l = null;
}
v.unmount = function(e) {
var t = e.__c;
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Vn && Vn(e);
}, (ut.prototype = new j()).__c = function(e, t) {
var n = t.__c, r = this;
r.o == null && (r.o = []), r.o.push(n);
var o = jr(r.__v), i = !1, a = function() {
i || (i = !0, n.__R = null, o ? o(c) : c());
};
n.__R = a;
var c = function() {
if (!--r.__u) {
if (r.state.__a) {
var s = r.state.__a;
r.__v.__k[0] = Wr(s, s.__c.__P, s.__c.__O);
}
var u;
for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
}
};
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
}, ut.prototype.componentWillUnmount = function() {
this.o = [];
}, ut.prototype.render = function(e, t) {
if (this.__b) {
if (this.__v.__k) {
var n = document.createElement("div"), r = this.__v.__k[0].__c;
this.__v.__k[0] = zr(this.__b, n, r.__O = r.__P);
}
this.__b = null;
}
var o = t.__a && M(V, null, e.fallback);
return o && (o.__u &= -33), [M(V, null, t.__a ? null : e.children), o];
};
var Yn = function(e, t, n) {
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
for (; n.length > 3; ) n.pop()();
if (n[1] < n[0]) break;
e.i = n = n[2];
}
};
function Qo(e) {
return this.getChildContext = function() {
return e.context;
}, e.children;
}
function ei(e) {
var t = this, n = e.h;
if (t.componentWillUnmount = function() {
ie(null, t.v), t.v = null, t.h = null;
}, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
return !0;
}, appendChild: function(o) {
this.childNodes.push(o), t.h.appendChild(o);
}, insertBefore: function(o, i) {
this.childNodes.push(o), t.h.insertBefore(o, i);
}, removeChild: function(o) {
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
} };
}
ie(M(Qo, { context: t.context }, e.__v), t.v);
}
function ti(e, t) {
var n = M(ei, { __v: e, h: t });
return n.containerInfo = t, n;
}
(Fe.prototype = new j()).__a = function(e) {
var t = this, n = jr(t.__v), r = t.l.get(e);
return r[0]++, function(o) {
var i = function() {
t.props.revealOrder ? (r.push(o), Yn(t, e, r)) : o();
};
n ? n(i) : i();
};
}, Fe.prototype.render = function(e) {
this.i = null, this.l = /* @__PURE__ */ new Map();
var t = ee(e.children);
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
return e.children;
}, Fe.prototype.componentDidUpdate = Fe.prototype.componentDidMount = function() {
var e = this;
this.l.forEach(function(t, n) {
Yn(e, n, t);
});
};
var Gr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, ni = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, ri = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, oi = /[A-Z0-9]/g, ii = typeof document < "u", ai = function(e) {
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
};
function si(e, t, n) {
return t.__k == null && (t.textContent = ""), ie(e, t), typeof n == "function" && n(), e ? e.__c : null;
}
function ci(e, t, n) {
return hn(e, t), typeof n == "function" && n(), e ? e.__c : null;
}
j.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
Object.defineProperty(j.prototype, e, { configurable: !0, get: function() {
return this["UNSAFE_" + e];
}, set: function(t) {
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
} });
});
var Zn = v.event;
function li() {
}
function ui() {
return this.cancelBubble;
}
function fi() {
return this.defaultPrevented;
}
v.event = function(e) {
return Zn && (e = Zn(e)), e.persist = li, e.isPropagationStopped = ui, e.isDefaultPrevented = fi, e.nativeEvent = e;
};
var Cn, di = { enumerable: !1, configurable: !0, get: function() {
return this.class;
} }, qn = v.vnode;
v.vnode = function(e) {
typeof e.type == "string" && function(t) {
var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
for (var a in n) {
var c = n[a];
if (!(a === "value" && "defaultValue" in n && c == null || ii && a === "children" && r === "noscript" || a === "class" || a === "className")) {
var s = a.toLowerCase();
a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && c === !0 ? c = "" : s === "translate" && c === "no" ? c = !1 : s[0] === "o" && s[1] === "n" ? s === "ondoubleclick" ? a = "ondblclick" : s !== "onchange" || r !== "input" && r !== "textarea" || ai(n.type) ? s === "onfocus" ? a = "onfocusin" : s === "onblur" ? a = "onfocusout" : ri.test(a) && (a = s) : s = a = "oninput" : i && ni.test(a) ? a = a.replace(oi, "-$&").toLowerCase() : c === null && (c = void 0), s === "oninput" && o[a = s] && (a = "oninputCapture"), o[a] = c;
}
}
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ee(n.children).forEach(function(u) {
u.props.selected = o.value.indexOf(u.props.value) != -1;
})), r == "select" && o.defaultValue != null && (o.value = ee(n.children).forEach(function(u) {
u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", di)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
}(e), e.$$typeof = Gr, qn && qn(e);
};
var Xn = v.__r;
v.__r = function(e) {
Xn && Xn(e), Cn = e.__c;
};
var Kn = v.diffed;
v.diffed = function(e) {
Kn && Kn(e);
var t = e.props, n = e.__e;
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Cn = null;
};
var _i = { ReactCurrentDispatcher: { current: { readContext: function(e) {
return Cn.__n[e.__c].props.value;
}, useCallback: pe, useContext: Qe, useDebugValue: gt, useDeferredValue: Fr, useEffect: X, useId: Pr, useImperativeHandle: Rr, useInsertionEffect: Br, useLayoutEffect: Ie, useMemo: te, useReducer: yn, useRef: Je, useState: H, useSyncExternalStore: Mr, useTransition: Ur } } };
function hi(e) {
return M.bind(null, e);
}
function wt(e) {
return !!e && e.$$typeof === Gr;
}
function pi(e) {
return wt(e) && e.type === V;
}
function mi(e) {
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
}
function gi(e) {
return wt(e) ? pn.apply(null, arguments) : e;
}
function yi(e) {
return !!e.__k && (ie(null, e), !0);
}
function vi(e) {
return e && (e.base || e.nodeType === 1 && e) || null;
}
var Ci = function(e, t) {
return e(t);
}, Ei = function(e, t) {
return e(t);
}, wi = V, Si = wt, ne = { useState: H, useId: Pr, useReducer: yn, useEffect: X, useLayoutEffect: Ie, useInsertionEffect: Br, useTransition: Ur, useDeferredValue: Fr, useSyncExternalStore: Mr, startTransition: Hr, useRef: Je, useImperativeHandle: Rr, useMemo: te, useCallback: pe, useContext: Qe, useDebugValue: gt, version: "18.3.1", Children: Xo, render: si, hydrate: ci, unmountComponentAtNode: yi, createPortal: ti, createElement: M, createContext: xr, createFactory: hi, cloneElement: gi, createRef: To, Fragment: V, isValidElement: wt, isElement: Si, isFragment: pi, isMemo: mi, findDOMNode: vi, Component: j, PureComponent: Vt, memo: Yo, forwardRef: qo, flushSync: Ei, unstable_batchedUpdates: Ci, StrictMode: wi, Suspense: ut, SuspenseList: Fe, lazy: Jo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: _i };
function bi(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Dt, Jn;
function $i() {
return Jn || (Jn = 1, Dt = function(t, n, r, o) {
var i = r ? r.call(o, t, n) : void 0;
if (i !== void 0)
return !!i;
if (t === n)
return !0;
if (typeof t != "object" || !t || typeof n != "object" || !n)
return !1;
var a = Object.keys(t), c = Object.keys(n);
if (a.length !== c.length)
return !1;
for (var s = Object.prototype.hasOwnProperty.bind(n), u = 0; u < a.length; u++) {
var f = a[u];
if (!s(f))
return !1;
var l = t[f], h = n[f];
if (i = r ? r.call(o, l, h, f) : void 0, i === !1 || i === void 0 && l !== h)
return !1;
}
return !0;
}), Dt;
}
var Oi = $i();
const Ni = /* @__PURE__ */ bi(Oi);
var T = "-ms-", We = "-moz-", N = "-webkit-", Vr = "comm", St = "rule", En = "decl", ki = "@import", Yr = "@keyframes", Ti = "@layer", Zr = Math.abs, wn = String.fromCharCode, Yt = Object.assign;
function xi(e, t) {
return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0;
}
function qr(e) {
return e.trim();
}
function J(e, t) {
return (e = t.exec(e)) ? e[0] : e;
}
function C(e, t, n) {
return e.replace(t, n);
}
function ft(e, t, n) {
return e.indexOf(t, n);
}
function R(e, t) {
return e.charCodeAt(t) | 0;
}
function Oe(e, t, n) {
return e.slice(t, n);
}
function Y(e) {
return e.length;
}
function Xr(e) {
return e.length;
}
function Ue(e, t) {
return t.push(e), e;
}
function Ii(e, t) {
return e.map(t).join("");
}
function Qn(e, t) {
return e.filter(function(n) {
return !J(n, t);
});
}
var bt = 1, Ne = 1, Kr = 0, W = 0, A = 0, Ae = "";
function $t(e, t, n, r, o, i, a, c) {
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: bt, column: Ne, length: a, return: "", siblings: c };
}
function oe(e, t) {
return Yt($t("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
}
function Ee(e) {
for (; e.root; )
e = oe(e.root, { children: [e] });
Ue(e, e.siblings);
}
function Ai() {
return A;
}
function Ri() {
return A = W > 0 ? R(Ae, --W) : 0, Ne--, A === 10 && (Ne = 1, bt--), A;
}
function G() {
return A = W < Kr ? R(Ae, W++) : 0, Ne++, A === 10 && (Ne = 1, bt++), A;
}
function _e() {
return R(Ae, W);
}
function dt() {
return W;
}
function Ot(e, t) {
return Oe(Ae, e, t);
}
function Zt(e) {
switch (e) {
// \0 \t \n \r \s whitespace token
case 0:
case 9:
case 10:
case 13:
case 32:
return 5;
// ! + , / > @ ~ isolate token
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
// ; { } breakpoint token
case 59:
case 123:
case 125:
return 4;
// : accompanied token
case 58:
return 3;
// " ' ( [ opening delimit token
case 34:
case 39:
case 40:
case 91:
return 2;
// ) ] closing delimit token
case 41:
case 93:
return 1;
}
return 0;
}
function Pi(e) {
return bt = Ne = 1, Kr = Y(Ae = e), W = 0, [];
}
function Di(e) {
return Ae = "", e;
}
function Lt(e) {
return qr(Ot(W - 1, qt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function Li(e) {
for (; (A = _e()) && A < 33; )
G();
return Zt(e) > 2 || Zt(A) > 3 ? "" : " ";
}
function Mi(e, t) {
for (; --t && G() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
;
return Ot(e, dt() + (t < 6 && _e() == 32 && G() == 32));
}
function qt(e) {
for (; G(); )
switch (A) {
// ] ) " '
case e:
return W;
// " '
case 34:
case 39:
e !== 34 && e !== 39 && qt(A);
break;
// (
case 40:
e === 41 && qt(e);
break;
// \
case 92:
G();
break;
}
return W;
}
function Hi(e, t) {
for (; G() && e + A !== 57; )
if (e + A === 84 && _e() === 47)
break;
return "/*" + Ot(t, W - 1) + "*" + wn(e === 47 ? e : G());
}
function Fi(e) {
for (; !Zt(_e()); )
G();
return Ot(e, W);
}
function Ui(e) {
return Di(_t("", null, null, null, [""], e = Pi(e), 0, [0], e));
}
function _t(e, t, n, r, o, i, a, c, s) {
for (var u = 0, f = 0, l = a, h = 0, _ = 0, g = 0, w = 1, $ = 1, m = 1, p = 0, O = "", S = o, k = i, E = r, y = O; $; )
switch (g = p, p = G()) {
// (
case 40:
if (g != 108 && R(y, l - 1) == 58) {
ft(y += C(Lt(p), "&", "&\f"), "&\f", Zr(u ? c[u - 1] : 0)) != -1 && (m = -1);
break;
}
// " ' [
case 34:
case 39:
case 91:
y += Lt(p);
break;
// \t \n \r \s
case 9:
case 10:
case 13:
case 32:
y += Li(g);
break;
// \
case 92:
y += Mi(dt() - 1, 7);
continue;
// /
case 47:
switch (_e()) {
case 42:
case 47:
Ue(Bi(Hi(G(), dt()), t, n, s), s);
break;
default:
y += "/";
}
break;
// {
case 123 * w:
c[u++] = Y(y) * m;
// } ; \0
case 125 * w:
case 59:
case 0:
switch (p) {
// \0 }
case 0:
case 125:
$ = 0;
// ;
case 59 + f:
m == -1 && (y = C(y, /\f/g, "")), _ > 0 && Y(y) - l && Ue(_ > 32 ? tr(y + ";", r, n, l - 1, s) : tr(C(y, " ", "") + ";", r, n, l - 2, s), s);
break;
// @ ;
case 59:
y += ";";
// { rule/at-rule
default:
if (Ue(E = er(y, t, n, u, f, o, c, O, S = [], k = [], l, i), i), p === 123)
if (f === 0)
_t(y, t, E, E, S, i, l, c, k);
else
switch (h === 99 && R(y, 3) === 110 ? 100 : h) {
// d l m s
case 100:
case 108:
case 109:
case 115:
_t(e, E, E, r && Ue(er(e, E, E, 0, 0, o, c, O, o, S = [], l, k), k), o, k, l, c, r ? S : k);
break;
default:
_t(y, E, E, E, [""], k, 0, c, k);
}
}
u = f = _ = 0, w = m = 1, O = y = "", l = a;
break;
// :
case 58:
l = 1 + Y(y), _ = g;
default:
if (w < 1) {
if (p == 123)
--w;
else if (p == 125 && w++ == 0 && Ri() == 125)
continue;
}
switch (y += wn(p), p * w) {
// &
case 38:
m = f > 0 ? 1 : (y += "\f", -1);
break;
// ,
case 44:
c[u++] = (Y(y) - 1) * m, m = 1;
break;
// @
case 64:
_e() === 45 && (y += Lt(G())), h = _e(), f = l = Y(O = y += Fi(dt())), p++;
break;
// -
case 45:
g === 45 && Y(y) == 2 && (w = 0);
}
}
return i;
}
function er(e, t, n, r, o, i, a, c, s, u, f, l) {
for (var h = o - 1, _ = o === 0 ? i : [""], g = Xr(_), w = 0, $ = 0, m = 0; w < r; ++w)
for (var p = 0, O = Oe(e, h + 1, h = Zr($ = a[w])), S = e; p < g; ++p)
(S = qr($ > 0 ? _[p] + " " + O : C(O, /&\f/g, _[p]))) && (s[m++] = S);
return $t(e, t, n, o === 0 ? St : c, s, u, f, l);
}
function Bi(e, t, n, r) {
return $t(e, t, n, Vr, wn(Ai()), Oe(e, 2, -2), 0, r);
}
function tr(e, t, n, r, o) {
return $t(e, t, n, En, Oe(e, 0, r), Oe(e, r + 1, -1), r, o);
}
function Jr(e, t, n) {
switch (xi(e, t)) {
// color-adjust
case 5103:
return N + "print-" + e + e;
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
case 5737:
case 4201:
case 3177:
case 3433:
case 1641:
case 4457:
case 2921:
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
case 5572:
case 6356:
case 5844:
case 3191:
case 6645:
case 3005:
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
case 6391:
case 5879:
case 5623:
case