UNPKG

@innovatrics/dot-auto-capture-ui

Version:
1,222 lines 120 kB
var Ze, C, mr, _e, bn, gr, yr, vr, sn, Bt, Wt, Cr, Ve = {}, Er = [], No = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Xe = Array.isArray; function Z(e, t) { for (var n in t) e[n] = t[n]; return e; } function an(e) { e && e.parentNode && e.parentNode.removeChild(e); } function M(e, t, n) { var r, o, i, s = {}; for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i]; if (arguments.length > 2 && (s.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) s[i] === void 0 && (s[i] = e.defaultProps[i]); return je(e, s, r, o, null); } function je(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 ?? ++mr, __i: -1, __u: 0 }; return o == null && C.vnode != null && C.vnode(i), i; } function Io() { return { current: null }; } function U(e) { return e.children; } function V(e, t) { this.props = e, this.context = t; } function ke(e, t) { if (t == null) return e.__ ? ke(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" ? ke(e) : null; } function Sr(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 Sr(e); } } function jt(e) { (!e.__d && (e.__d = !0) && _e.push(e) && !pt.__r++ || bn != C.debounceRendering) && ((bn = C.debounceRendering) || gr)(pt); } function pt() { for (var e, t, n, r, o, i, s, a = 1; _e.length; ) _e.length > a && _e.sort(yr), e = _e.shift(), a = _e.length, e.__d && (n = void 0, r = void 0, o = (r = (t = e).__v).__e, i = [], s = [], t.__P && ((n = Z({}, r)).__v = r.__v + 1, C.vnode && C.vnode(n), cn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? ke(r), !!(32 & r.__u), s), n.__v = r.__v, n.__.__k[n.__i] = n, $r(i, n, s), r.__e = r.__ = null, n.__e != o && Sr(n))); pt.__r = 0; } function wr(e, t, n, r, o, i, s, a, u, l, d) { var c, h, _, g, v, E, m, p = r && r.__k || Er, b = t.length; for (u = Oo(n, t, p, u, b), c = 0; c < b; c++) (_ = n.__k[c]) != null && (h = _.__i == -1 ? Ve : p[_.__i] || Ve, _.__i = c, E = cn(e, _, h, o, i, s, a, u, l, d), g = _.__e, _.ref && h.ref != _.ref && (h.ref && ln(h.ref, null, _), d.push(_.ref, _.__c || g, _)), v == null && g != null && (v = g), (m = !!(4 & _.__u)) || h.__k === _.__k ? u = br(_, u, e, m) : typeof _.type == "function" && E !== void 0 ? u = E : g && (u = g.nextSibling), _.__u &= -7); return n.__e = v, u; } function Oo(e, t, n, r, o) { var i, s, a, u, l, d = n.length, c = d, h = 0; for (e.__k = new Array(o), i = 0; i < o; i++) (s = t[i]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[i] = je(null, s, null, null, null) : Xe(s) ? s = e.__k[i] = je(U, { children: s }, null, null, null) : s.constructor == null && s.__b > 0 ? s = e.__k[i] = je(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[i] = s, u = i + h, s.__ = e, s.__b = e.__b + 1, a = null, (l = s.__i = To(s, n, u, c)) != -1 && (c--, (a = n[l]) && (a.__u |= 2)), a == null || a.__v == null ? (l == -1 && (o > d ? h-- : o < d && h++), typeof s.type != "function" && (s.__u |= 4)) : l != u && (l == u - 1 ? h-- : l == u + 1 ? h++ : (l > u ? h-- : h++, s.__u |= 4))) : e.__k[i] = null; if (c) for (i = 0; i < d; i++) (a = n[i]) != null && (2 & a.__u) == 0 && (a.__e == r && (r = ke(a)), Nr(a, a)); return r; } function br(e, t, n, r) { var o, i; if (typeof e.type == "function") { for (o = e.__k, i = 0; o && i < o.length; i++) o[i] && (o[i].__ = e, t = br(o[i], t, n, r)); return t; } e.__e != t && (r && (t && e.type && !t.parentNode && (t = ke(e)), n.insertBefore(e.__e, t || null)), t = e.__e); do t = t && t.nextSibling; while (t != null && t.nodeType == 8); return t; } function ne(e, t) { return t = t || [], e == null || typeof e == "boolean" || (Xe(e) ? e.some(function(n) { ne(n, t); }) : t.push(e)), t; } function To(e, t, n, r) { var o, i, s, a = e.key, u = e.type, l = t[n], d = l != null && (2 & l.__u) == 0; if (l === null && a == null || d && a == l.key && u == l.type) return n; if (r > (d ? 1 : 0)) { for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) if ((l = t[s = o >= 0 ? o-- : i++]) != null && (2 & l.__u) == 0 && a == l.key && u == l.type) return s; } return -1; } function $n(e, t, n) { t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || No.test(t) ? n : n + "px"; } function tt(e, t, n, r, o) { var i, s; 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 || $n(e.style, t, ""); if (n) for (t in n) r && n[t] == r[t] || $n(e.style, t, n[t]); } else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(vr, "$1")), s = t.toLowerCase(), t = s in e || t == "onFocusOut" || t == "onFocusIn" ? s.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = sn, e.addEventListener(t, i ? Wt : Bt, i)) : e.removeEventListener(t, i ? Wt : Bt, 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 kn(e) { return function(t) { if (this.l) { var n = this.l[t.type + e]; if (t.t == null) t.t = sn++; else if (t.t < n.u) return; return n(C.event ? C.event(t) : t); } }; } function cn(e, t, n, r, o, i, s, a, u, l) { var d, c, h, _, g, v, E, m, p, b, k, I, w, y, F, W, Le, j = t.type; if (t.constructor != null) return null; 128 & n.__u && (u = !!(32 & n.__u), i = [a = t.__e = n.__e]), (d = C.__b) && d(t); e: if (typeof j == "function") try { if (m = t.props, p = "prototype" in j && j.prototype.render, b = (d = j.contextType) && r[d.__c], k = d ? b ? b.props.value : d.__ : r, n.__c ? E = (c = t.__c = n.__c).__ = c.__E : (p ? t.__c = c = new j(m, k) : (t.__c = c = new V(m, k), c.constructor = j, c.render = Ro), b && b.sub(c), c.state || (c.state = {}), c.__n = r, h = c.__d = !0, c.__h = [], c._sb = []), p && c.__s == null && (c.__s = c.state), p && j.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = Z({}, c.__s)), Z(c.__s, j.getDerivedStateFromProps(m, c.__s))), _ = c.props, g = c.state, c.__v = t, h) p && j.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), p && c.componentDidMount != null && c.__h.push(c.componentDidMount); else { if (p && j.getDerivedStateFromProps == null && m !== _ && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, k), t.__v == n.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, k) === !1) { for (t.__v != n.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(ie) { ie && (ie.__ = t); }), I = 0; I < c._sb.length; I++) c.__h.push(c._sb[I]); c._sb = [], c.__h.length && s.push(c); break e; } c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, k), p && c.componentDidUpdate != null && c.__h.push(function() { c.componentDidUpdate(_, g, v); }); } if (c.context = k, c.props = m, c.__P = e, c.__e = !1, w = C.__r, y = 0, p) { for (c.state = c.__s, c.__d = !1, w && w(t), d = c.render(c.props, c.state, c.context), F = 0; F < c._sb.length; F++) c.__h.push(c._sb[F]); c._sb = []; } else do c.__d = !1, w && w(t), d = c.render(c.props, c.state, c.context), c.state = c.__s; while (c.__d && ++y < 25); c.state = c.__s, c.getChildContext != null && (r = Z(Z({}, r), c.getChildContext())), p && !h && c.getSnapshotBeforeUpdate != null && (v = c.getSnapshotBeforeUpdate(_, g)), W = d, d != null && d.type === U && d.key == null && (W = kr(d.props.children)), a = wr(e, Xe(W) ? W : [W], t, n, r, o, i, s, a, u, l), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), E && (c.__E = c.__ = null); } catch (ie) { if (t.__v = null, u || i != null) if (ie.then) { for (t.__u |= u ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling; i[i.indexOf(a)] = null, t.__e = a; } else { for (Le = i.length; Le--; ) an(i[Le]); zt(t); } else t.__e = n.__e, t.__k = n.__k, ie.then || zt(t); C.__e(ie, t, n); } else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : a = t.__e = xo(n.__e, t, n, r, o, i, s, u, l); return (d = C.diffed) && d(t), 128 & t.__u ? void 0 : a; } function zt(e) { e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(zt); } function $r(e, t, n) { for (var r = 0; r < n.length; r++) ln(n[r], n[++r], n[++r]); C.__c && C.__c(t, e), e.some(function(o) { try { e = o.__h, o.__h = [], e.some(function(i) { i.call(o); }); } catch (i) { C.__e(i, o.__v); } }); } function kr(e) { return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Xe(e) ? e.map(kr) : Z({}, e); } function xo(e, t, n, r, o, i, s, a, u) { var l, d, c, h, _, g, v, E = n.props || Ve, 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 (l = 0; l < i.length; l++) if ((_ = i[l]) && "setAttribute" in _ == !!p && (p ? _.localName == p : _.nodeType == 3)) { e = _, i[l] = null; break; } } if (e == null) { if (p == null) return document.createTextNode(m); e = document.createElementNS(o, p, m.is && m), a && (C.__m && C.__m(t, i), a = !1), i = null; } if (p == null) E === m || a && e.data == m || (e.data = m); else { if (i = i && Ze.call(e.childNodes), !a && i != null) for (E = {}, l = 0; l < e.attributes.length; l++) E[(_ = e.attributes[l]).name] = _.value; for (l in E) if (_ = E[l], l != "children") { if (l == "dangerouslySetInnerHTML") c = _; else if (!(l in m)) { if (l == "value" && "defaultValue" in m || l == "checked" && "defaultChecked" in m) continue; tt(e, l, null, _, o); } } for (l in m) _ = m[l], l == "children" ? h = _ : l == "dangerouslySetInnerHTML" ? d = _ : l == "value" ? g = _ : l == "checked" ? v = _ : a && typeof _ != "function" || E[l] === _ || tt(e, l, _, E[l], o); if (d) a || c && (d.__html == c.__html || d.__html == e.innerHTML) || (e.innerHTML = d.__html), t.__k = []; else if (c && (e.innerHTML = ""), wr(t.type == "template" ? e.content : e, Xe(h) ? h : [h], t, n, r, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, s, i ? i[0] : n.__k && ke(n, 0), a, u), i != null) for (l = i.length; l--; ) an(i[l]); a || (l = "value", p == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[l] || p == "progress" && !g || p == "option" && g != E[l]) && tt(e, l, g, E[l], o), l = "checked", v != null && v != e[l] && tt(e, l, v, E[l], o)); } return e; } function ln(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) { C.__e(o, n); } } function Nr(e, t, n) { var r, o; if (C.unmount && C.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || ln(r, null, t)), (r = e.__c) != null) { if (r.componentWillUnmount) try { r.componentWillUnmount(); } catch (i) { C.__e(i, t); } r.base = r.__P = null; } if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Nr(r[o], t, n || typeof e.type != "function"); n || an(e.__e), e.__c = e.__ = e.__e = void 0; } function Ro(e, t, n) { return this.constructor(e, n); } function le(e, t, n) { var r, o, i, s; t == document && (t = document.documentElement), C.__ && C.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], cn(t, e = (!r && n || t).__k = M(U, null, [e]), o || Ve, Ve, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ze.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), $r(i, e, s); } function un(e, t) { le(e, t, un); } function fn(e, t, n) { var r, o, i, s, a = Z({}, e.props); for (i in e.type && e.type.defaultProps && (s = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i] === void 0 && s != null ? s[i] : t[i]; return arguments.length > 2 && (a.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), je(e.type, a, r || e.key, o || e.ref, null); } function Ir(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(s) { s.__e = !0, jt(s); }); }, this.sub = function(i) { r.add(i); var s = i.componentWillUnmount; i.componentWillUnmount = function() { r && r.delete(i), s && s.call(i); }; }), n.children; } return t.__c = "__cC" + Cr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) { return n.children(r); }).contextType = t, t; } Ze = Er.slice, C = { __e: function(e, t, n, r) { for (var o, i, s; t = t.__; ) if ((o = t.__c) && !o.__) try { if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), s = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), s = o.__d), s) return o.__E = o; } catch (a) { e = a; } throw e; } }, mr = 0, V.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), jt(this)); }, V.prototype.forceUpdate = function(e) { this.__v && (this.__e = !0, e && this.__h.push(e), jt(this)); }, V.prototype.render = U, _e = [], gr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, yr = function(e, t) { return e.__v.__b - t.__v.__b; }, pt.__r = 0, vr = /(PointerCapture)$|Capture$/i, sn = 0, Bt = kn(!1), Wt = kn(!0), Cr = 0; function mt() { return mt = 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; }, mt.apply(this, arguments); } function Or(e, t) { if (e == null) return {}; var n, r, o = {}, i = Object.keys(e); for (r = 0; r < i.length; r++) t.indexOf(n = i[r]) >= 0 || (o[n] = e[n]); return o; } var Ao = ["context", "children"], Po = ["useFragment"]; function Lo(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 = function() { Mo.call(this, r); }, o.prototype.attributeChangedCallback = Ho, o.prototype.disconnectedCallback = Uo, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, e.formAssociated && (o.formAssociated = !0), n.forEach(function(i) { Object.defineProperty(o.prototype, i, { get: function() { return this._vdom ? this._vdom.props[i] : this._props[i]; }, set: function(s) { this._vdom ? this.attributeChangedCallback(i, null, s) : (this._props || (this._props = {}), this._props[i] = s); var a = typeof s; s != null && a !== "string" && a !== "boolean" && a !== "number" || this.setAttribute(i, s); } }); }), customElements.define(t, o), o; } function Do(e) { this.getChildContext = function() { return e.context; }; var t = e.children, n = Or(e, Ao); return fn(t, n); } function Mo(e) { var t = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 }); this.dispatchEvent(t), this._vdom = M(Do, mt({}, this._props, { context: t.detail.context }), xr(this, this._vdomComponent, e)), (this.hasAttribute("hydrate") ? un : le)(this._vdom, this._root); } function Tr(e) { return e.replace(/-(\w)/g, function(t, n) { return n ? n.toUpperCase() : ""; }); } function Ho(e, t, n) { if (this._vdom) { var r = {}; r[e] = n = n ?? void 0, r[Tr(e)] = n, this._vdom = fn(this._vdom, r), le(this._vdom, this._root); } } function Uo() { le(this._vdom = null, this._root); } function Nn(e, t) { var n = this, r = e.useFragment, o = Or(e, Po); return M(r ? U : "slot", mt({}, o, { ref: function(i) { i ? (n.ref = i, n._listener || (n._listener = function(s) { s.stopPropagation(), s.detail.context = t; }, i.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener); } })); } function xr(e, t, n) { if (e.nodeType === 3) return e.data; if (e.nodeType !== 1) return null; var r = [], o = {}, i = 0, s = e.attributes, a = e.childNodes; for (i = s.length; i--; ) s[i].name !== "slot" && (o[s[i].name] = s[i].value, o[Tr(s[i].name)] = s[i].value); for (i = a.length; i--; ) { var u = xr(a[i], null, n), l = a[i].slot; l ? o[l] = M(Nn, { name: l }, u) : r[i] = u; } var d = !(!n || !n.shadow), c = t ? M(Nn, { useFragment: !d }, r) : r; return !d && t && (e.innerHTML = ""), M(t || e.nodeName.toLowerCase(), o, c); } var Fo = 0; function f(e, t, n, r, o, i) { t || (t = {}); var s, a, u = t; if ("ref" in u) for (a in u = {}, t) a == "ref" ? s = t[a] : u[a] = t[a]; var l = { type: e, props: u, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Fo, __i: -1, __u: 0, __source: o, __self: i }; if (typeof e == "function" && (s = e.defaultProps)) for (a in s) u[a] === void 0 && (u[a] = s[a]); return C.vnode && C.vnode(l), l; } const In = { SWITCH_CAMERA: "switch-camera", TOGGLE_MIRROR: "toggle-mirror" }, Ye = { CAMERA_PROPS_CHANGED: "smile-auto-capture:camera-props-changed", CONTROL: "smile-auto-capture:control", INSTRUCTION_CHANGED: "smile-auto-capture:instruction-changed", INSTRUCTION_ESCALATED: "smile-auto-capture:instruction-escalated", VIDEO_ELEMENT_SIZE: "smile-auto-capture:video-element-size", STATE_CHANGED: "smile-auto-capture:state-changed", PHASE_CHANGED: "smile-auto-capture:phase-changed" }, P = { LOADING: "loading", ERROR: "error", WAITING: "waiting", // TODO: this state may not be needed in the new architecture - consider removing on next major release version RUNNING: "running", COMPLETE: "complete", BLURRED: "blurred" }, On = { EYE_NOT_PRESENT: "eye_not_present" }, H = { 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_${On.EYE_NOT_PRESENT}`, RIGHT_EYE_NOT_PRESENT: `right_${On.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" }, X = { CANDIDATE_SELECTION: "candidate_selection", FACE_NOT_PRESENT: "face_not_present", SMILE: "smile", SMILE_CANDIDATE_SELECTION: "smile_candidate_selection", KEEP_NEUTRAL_EXPRESSION: "keep_neutral_expression" }, gt = { NEUTRAL: "NEUTRAL", SMILE: "SMILE" }; var ue, T, Pt, Tn, Ne = 0, Rr = [], x = C, xn = x.__b, Rn = x.__r, An = x.diffed, Pn = x.__c, Ln = x.unmount, Dn = x.__; function Re(e, t) { x.__h && x.__h(T, e, Ne || t), Ne = 0; var n = T.__H || (T.__H = { __: [], __h: [] }); return e >= n.__.length && n.__.push({}), n.__[e]; } function D(e) { return Ne = 1, dn(Lr, e); } function dn(e, t, n) { var r = Re(ue++, 2); if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Lr(void 0, t), function(a) { var u = r.__N ? r.__N[0] : r.__[0], l = r.t(u, a); u !== l && (r.__N = [l, r.__[1]], r.__c.setState({})); }], r.__c = T, !T.__f)) { var o = function(a, u, l) { if (!r.__c.__H) return !0; var d = r.__c.__H.__.filter(function(h) { return !!h.__c; }); if (d.every(function(h) { return !h.__N; })) return !i || i.call(this, a, u, l); var c = r.__c.props !== a; return d.forEach(function(h) { if (h.__N) { var _ = h.__[0]; h.__ = h.__N, h.__N = void 0, _ !== h.__[0] && (c = !0); } }), i && i.call(this, a, u, l) || c; }; T.__f = !0; var i = T.shouldComponentUpdate, s = T.componentWillUpdate; T.componentWillUpdate = function(a, u, l) { if (this.__e) { var d = i; i = void 0, o(a, u, l), i = d; } s && s.call(this, a, u, l); }, T.shouldComponentUpdate = o; } return r.__N || r.__; } function Q(e, t) { var n = Re(ue++, 3); !x.__s && _n(n.__H, t) && (n.__ = e, n.u = t, T.__H.__h.push(n)); } function Ae(e, t) { var n = Re(ue++, 4); !x.__s && _n(n.__H, t) && (n.__ = e, n.u = t, T.__h.push(n)); } function St(e) { return Ne = 5, re(function() { return { current: e }; }, []); } function Ar(e, t, n) { Ne = 6, Ae(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 re(e, t) { var n = Re(ue++, 7); return _n(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__; } function ce(e, t) { return Ne = 8, re(function() { return e; }, t); } function Ke(e) { var t = T.context[e.__c], n = Re(ue++, 9); return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(T)), t.props.value) : e.__; } function yt(e, t) { x.useDebugValue && x.useDebugValue(t ? t(e) : e); } function Pr() { var e = Re(ue++, 11); if (!e.__) { for (var t = T.__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 Bo() { for (var e; e = Rr.shift(); ) if (e.__P && e.__H) try { e.__H.__h.forEach(at), e.__H.__h.forEach(Gt), e.__H.__h = []; } catch (t) { e.__H.__h = [], x.__e(t, e.__v); } } x.__b = function(e) { T = null, xn && xn(e); }, x.__ = function(e, t) { e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Dn && Dn(e, t); }, x.__r = function(e) { Rn && Rn(e), ue = 0; var t = (T = e.__c).__H; t && (Pt === T ? (t.__h = [], T.__h = [], t.__.forEach(function(n) { n.__N && (n.__ = n.__N), n.u = n.__N = void 0; })) : (t.__h.forEach(at), t.__h.forEach(Gt), t.__h = [], ue = 0)), Pt = T; }, x.diffed = function(e) { An && An(e); var t = e.__c; t && t.__H && (t.__H.__h.length && (Rr.push(t) !== 1 && Tn === x.requestAnimationFrame || ((Tn = x.requestAnimationFrame) || Wo)(Bo)), t.__H.__.forEach(function(n) { n.u && (n.__H = n.u), n.u = void 0; })), Pt = T = null; }, x.__c = function(e, t) { t.some(function(n) { try { n.__h.forEach(at), n.__h = n.__h.filter(function(r) { return !r.__ || Gt(r); }); } catch (r) { t.some(function(o) { o.__h && (o.__h = []); }), t = [], x.__e(r, n.__v); } }), Pn && Pn(e, t); }, x.unmount = function(e) { Ln && Ln(e); var t, n = e.__c; n && n.__H && (n.__H.__.forEach(function(r) { try { at(r); } catch (o) { t = o; } }), n.__H = void 0, t && x.__e(t, n.__v)); }; var Mn = typeof requestAnimationFrame == "function"; function Wo(e) { var t, n = function() { clearTimeout(r), Mn && cancelAnimationFrame(t), setTimeout(e); }, r = setTimeout(n, 35); Mn && (t = requestAnimationFrame(n)); } function at(e) { var t = T, n = e.__c; typeof n == "function" && (e.__c = void 0, n()), T = t; } function Gt(e) { var t = T; e.__c = e.__(), T = t; } function _n(e, t) { return !e || e.length !== t.length || t.some(function(n, r) { return n !== e[r]; }); } function Lr(e, t) { return typeof t == "function" ? t(e) : t; } var L = function() { return L = 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; }, L.apply(this, arguments); }; function ye(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 zo = /^((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)-.*))$/, Go = /* @__PURE__ */ jo( function(e) { return zo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ); function Dr(e, t) { for (var n in t) e[n] = t[n]; return e; } function Vt(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 = D({ t: { __: n, u: t } }), o = r[0].t, i = r[1]; return Ae(function() { o.__ = n, o.u = t, Lt(o) && i({ t: o }); }, [e, n, t]), Q(function() { return Lt(o) && i({ t: o }), e(function() { Lt(o) && i({ t: o }); }); }, [e]), n; } function Lt(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 Ur(e) { return e; } function Fr() { return [!1, Hr]; } var Br = Ae; function Yt(e, t) { this.props = e, this.context = t; } function Vo(e, t) { function n(o) { var i = this.props.ref, s = i == o.ref; return !s && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !s : Vt(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.type = e, r; } (Yt.prototype = new V()).isPureReactComponent = !0, Yt.prototype.shouldComponentUpdate = function(e, t) { return Vt(this.props, e) || Vt(this.state, t); }; var Hn = C.__b; C.__b = function(e) { e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Hn && Hn(e); }; var Yo = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911; function qo(e) { function t(n) { var r = Dr({}, n); return delete r.ref, e(r, n.ref || null); } return t.$$typeof = Yo, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t; } var Un = function(e, t) { return e == null ? null : ne(ne(e).map(t)); }, Zo = { map: Un, forEach: Un, count: function(e) { return e ? ne(e).length : 0; }, only: function(e) { var t = ne(e); if (t.length !== 1) throw "Children.only"; return t[0]; }, toArray: ne }, Xo = C.__e; C.__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); } Xo(e, t, n, r); }; var Fn = C.unmount; function Wr(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 = Dr({}, 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 Wr(r, t, n); })), e; } function jr(e, t, n) { return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) { return jr(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 ct() { this.__u = 0, this.o = null, this.__b = null; } function zr(e) { var t = e.__.__c; return t && t.__a && t.__a(e); } function Ko(e) { var t, n, r, o = null; function i(s) { if (t || (t = e()).then(function(a) { a && (o = a.default || a), r = !0; }, function(a) { n = a, r = !0; }), n) throw n; if (!r) throw t; return o ? M(o, s) : null; } return i.displayName = "Lazy", i.__f = !0, i; } function Fe() { this.i = null, this.l = null; } C.unmount = function(e) { var t = e.__c; t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Fn && Fn(e); }, (ct.prototype = new V()).__c = function(e, t) { var n = t.__c, r = this; r.o == null && (r.o = []), r.o.push(n); var o = zr(r.__v), i = !1, s = function() { i || (i = !0, n.__R = null, o ? o(a) : a()); }; n.__R = s; var a = function() { if (!--r.__u) { if (r.state.__a) { var u = r.state.__a; r.__v.__k[0] = jr(u, u.__c.__P, u.__c.__O); } var l; for (r.setState({ __a: r.__b = null }); l = r.o.pop(); ) l.forceUpdate(); } }; r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s); }, ct.prototype.componentWillUnmount = function() { this.o = []; }, ct.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] = Wr(this.__b, n, r.__O = r.__P); } this.__b = null; } var o = t.__a && M(U, null, e.fallback); return o && (o.__u &= -33), [M(U, null, t.__a ? null : e.children), o]; }; var Bn = 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 Jo(e) { var t = this, n = e.h; if (t.componentWillUnmount = function() { le(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; }, 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); } }; } le(M(Qo, { context: t.context }, e.__v), t.v); } function ei(e, t) { var n = M(Jo, { __v: e, h: t }); return n.containerInfo = t, n; } (Fe.prototype = new V()).__a = function(e) { var t = this, n = zr(t.__v), r = t.l.get(e); return r[0]++, function(o) { var i = function() { t.props.revealOrder ? (r.push(o), Bn(t, e, r)) : o(); }; n ? n(i) : i(); }; }, Fe.prototype.render = function(e) { this.i = null, this.l = /* @__PURE__ */ new Map(); var t = ne(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) { Bn(e, n, t); }); }; var Gr = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, ti = /^(?: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]/, ni = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ri = /[A-Z0-9]/g, oi = typeof document < "u", ii = function(e) { return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e); }; function si(e, t, n) { return t.__k == null && (t.textContent = ""), le(e, t), typeof n == "function" && n(), e ? e.__c : null; } function ai(e, t, n) { return un(e, t), typeof n == "function" && n(), e ? e.__c : null; } V.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) { Object.defineProperty(V.prototype, e, { configurable: !0, get: function() { return this["UNSAFE_" + e]; }, set: function(t) { Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t }); } }); }); var Wn = C.event; function ci() { } function li() { return this.cancelBubble; } function ui() { return this.defaultPrevented; } C.event = function(e) { return Wn && (e = Wn(e)), e.persist = ci, e.isPropagationStopped = li, e.isDefaultPrevented = ui, e.nativeEvent = e; }; var hn, fi = { enumerable: !1, configurable: !0, get: function() { return this.class; } }, jn = C.vnode; C.vnode = function(e) { typeof e.type == "string" && (function(t) { var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1; for (var s in n) { var a = n[s]; if (!(s === "value" && "defaultValue" in n && a == null || oi && s === "children" && r === "noscript" || s === "class" || s === "className")) { var u = s.toLowerCase(); s === "defaultValue" && "value" in n && n.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : u === "translate" && a === "no" ? a = !1 : u[0] === "o" && u[1] === "n" ? u === "ondoubleclick" ? s = "ondblclick" : u !== "onchange" || r !== "input" && r !== "textarea" || ii(n.type) ? u === "onfocus" ? s = "onfocusin" : u === "onblur" ? s = "onfocusout" : ni.test(s) && (s = u) : u = s = "oninput" : i && ti.test(s) ? s = s.replace(ri, "-$&").toLowerCase() : a === null && (a = void 0), u === "oninput" && o[s = u] && (s = "oninputCapture"), o[s] = a; } } r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ne(n.children).forEach(function(l) { l.props.selected = o.value.indexOf(l.props.value) != -1; })), r == "select" && o.defaultValue != null && (o.value = ne(n.children).forEach(function(l) { l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.props.value; })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", fi)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o; })(e), e.$$typeof = Gr, jn && jn(e); }; var zn = C.__r; C.__r = function(e) { zn && zn(e), hn = e.__c; }; var Gn = C.diffed; C.diffed = function(e) { Gn && Gn(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), hn = null; }; var di = { ReactCurrentDispatcher: { current: { readContext: function(e) { return hn.__n[e.__c].props.value; }, useCallback: ce, useContext: Ke, useDebugValue: yt, useDeferredValue: Ur, useEffect: Q, useId: Pr, useImperativeHandle: Ar, useInsertionEffect: Br, useLayoutEffect: Ae, useMemo: re, useReducer: dn, useRef: St, useState: D, useSyncExternalStore: Mr, useTransition: Fr } } }; function _i(e) { return M.bind(null, e); } function wt(e) { return !!e && e.$$typeof === Gr; } function hi(e) { return wt(e) && e.type === U; } function pi(e) { return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo("); } function mi(e) { return wt(e) ? fn.apply(null, arguments) : e; } function gi(e) { return !!e.__k && (le(null, e), !0); } function yi(e) { return e && (e.base || e.nodeType === 1 && e) || null; } var vi = function(e, t) { return e(t); }, Ci = function(e, t) { return e(t); }, Ei = U, Si = wt, oe = { useState: D, useId: Pr, useReducer: dn, useEffect: Q, useLayoutEffect: Ae, useInsertionEffect: Br, useTransition: Fr, useDeferredValue: Ur, useSyncExternalStore: Mr, startTransition: Hr, useRef: St, useImperativeHandle: Ar, useMemo: re, useCallback: ce, useContext: Ke, useDebugValue: yt, version: "18.3.1", Children: Zo, render: si, hydrate: ai, unmountComponentAtNode: gi, createPortal: ei, createElement: M, createContext: Ir, createFactory: _i, cloneElement: mi, createRef: Io, Fragment: U, isValidElement: wt, isElement: Si, isFragment: hi, isMemo: pi, findDOMNode: yi, Component: V, PureComponent: Yt, memo: Vo, forwardRef: qo, flushSync: Ci, unstable_batchedUpdates: vi, StrictMode: Ei, Suspense: ct, SuspenseList: Fe, lazy: Ko, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: di }; function wi(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Dt, Vn; function bi() { return Vn || (Vn = 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 s = Object.keys(t), a = Object.keys(n); if (s.length !== a.length) return !1; for (var u = Object.prototype.hasOwnProperty.bind(n), l = 0; l < s.length; l++) { var d = s[l]; if (!u(d)) return !1; var c = t[d], h = n[d]; if (i = r ? r.call(o, c, h, d) : void 0, i === !1 || i === void 0 && c !== h) return !1; } return !0; }), Dt; } var $i = bi(); const ki = /* @__PURE__ */ wi($i); var O = "-ms-", ze = "-moz-", N = "-webkit-", Vr = "comm", bt = "rule", pn = "decl", Ni = "@import", Yr = "@keyframes", Ii = "@layer", qr = Math.abs, mn = String.fromCharCode, qt = Object.assign; function Oi(e, t) { return A(e, 0) ^ 45 ? (((t << 2 ^ A(e, 0)) << 2 ^ A(e, 1)) << 2 ^ A(e, 2)) << 2 ^ A(e, 3) : 0; } function Zr(e) { return e.trim(); } function ee(e, t) { return (e = t.exec(e)) ? e[0] : e; } function S(e, t, n) { return e.replace(t, n); } function lt(e, t, n) { return e.indexOf(t, n); } function A(e, t) { return e.charCodeAt(t) | 0; } function Ie(e, t, n) { return e.slice(t, n); } function q(e) { return e.length; } function Xr(e) { return e.length; } function Be(e, t) { return t.push(e), e; } function Ti(e, t) { return e.map(t).join(""); } function Yn(e, t) { return e.filter(function(n) { return !ee(n, t); }); } var $t = 1, Oe = 1, Kr = 0, G = 0, R = 0, Pe = ""; function kt(e, t, n, r, o, i, s, a) { return { value: e, root: t, parent: n, type: r, props: o, children: i, line: $t, column: Oe, length: s, return: "", siblings: a }; } function ae(e, t) { return qt(kt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t); } function we(e) { for (; e.root; ) e = ae(e.root, { children: [e] }); Be(e, e.siblings); } function xi() { return R; } function Ri() { return R = G > 0 ? A(Pe, --G) : 0, Oe--, R === 10 && (Oe = 1, $t--), R; } function Y() { return R = G < Kr ? A(Pe, G++) : 0, Oe++, R === 10 && (Oe = 1, $t++), R; } function me() { return A(Pe, G); } function ut() { return G; } function Nt(e, t) { return Ie(Pe, 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 Ai(e) { return $t = Oe = 1, Kr = q(Pe = e), G = 0, []; } function Pi(e) { return Pe = "", e; } function Mt(e) { return Zr(Nt(G - 1, Xt(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function Li(e) { for (; (R = me()) && R < 33; ) Y(); return Zt(e) > 2 || Zt(R) > 3 ? "" : " "; } function Di(e, t) { for (; --t && Y() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); ) ; return Nt(e, ut() + (t < 6 && me() == 32 && Y() == 32)); } function Xt(e) { for (; Y(); ) switch (R) { // ] ) " ' case e: return G; // " ' case 34: case 39: e !== 34 && e !== 39 && Xt(R); break; // ( case 40: e === 41 && Xt(e); break; // \ case 92: Y(); break; } return G; } function Mi(e, t) { for (; Y() && e + R !== 57; ) if (e + R === 84 && me() === 47) break; return "/*" + Nt(t, G - 1) + "*" + mn(e === 47 ? e : Y()); } function Hi(e) { for (; !Zt(me()); ) Y(); return Nt(e, G); } function Ui(e) { return Pi(ft("", null, null, null, [""], e = Ai(e), 0, [0], e)); } function ft(e, t, n, r, o, i, s, a, u) { for (var l = 0, d = 0, c = s, h = 0, _ = 0, g = 0, v = 1, E = 1, m = 1, p = 0, b = "", k = o, I = i, w = r, y = b; E; ) switch (g = p, p = Y()) { // ( case 40: if (g != 108 && A(y, c - 1) == 58) { lt(y += S(Mt(p), "&", "&\f"), "&\f", qr(l ? a[l - 1] : 0)) != -1 && (m = -1); break; } // " ' [ case 34: case 39: case 91: y += Mt(p); break; // \t \n \r \s case 9: case 10: case 13: case 32: y += Li(g); break; // \ case 92: y += Di(ut() - 1, 7); continue; // / case 47: switch (me()) { case 42: case 47: Be(Fi(Mi(Y(), ut()), t, n, u), u); break; default: y += "/"; } break; // { case 123 * v: a[l++] = q(y) * m; // } ; \0 case 125 * v: case 59: case 0: switch (p) { // \0 } case 0: case 125: E = 0; // ; case 59 + d: m == -1 && (y = S(y, /\f/g, "")), _ > 0 && q(y) - c && Be(_ > 32 ? Zn(y + ";", r, n, c - 1, u) : Zn(S(y, " ", "") + ";", r, n, c - 2, u), u); break; // @ ; case 59: y += ";"; // { rule/at-rule default: if (Be(w = qn(y, t, n, l, d, o, a, b, k = [], I = [], c, i), i), p === 123) if (d === 0) ft(y, t, w, w, k, i, c, a, I); else switch (h === 99 && A(y, 3) === 110 ? 100 : h) { // d l m s case 100: case 108: case 109: case 115: ft(e, w, w, r && Be(qn(e, w, w, 0, 0, o, a, b, o, k = [], c, I), I), o, I, c, a, r ? k : I); break; default: ft(y, w, w, w, [""], I, 0, a, I); } } l = d = _ = 0, v = m = 1, b = y = "", c = s; break; // : case 58: c = 1 + q(y), _ = g; default: if (v < 1) { if (p == 123) --v; else if (p == 125 && v++ == 0 && Ri() == 125) continue; } switch (y += mn(p), p * v) { // & case 38: m = d > 0 ? 1 : (y += "\f", -1); break; // , case 44: a[l++] = (q(y) - 1) * m, m = 1; break; // @ case 64: me() === 45 && (y += Mt(Y())), h = me(), d = c = q(b = y += Hi(ut())), p++; break; // - case 45: g === 45 && q(y) == 2 && (v = 0); } } return i; } function qn(e, t, n, r, o, i, s, a, u, l, d, c) { for (var h = o - 1, _ = o === 0 ? i : [""], g = Xr(_), v = 0, E = 0, m = 0; v < r; ++v) for (var p = 0, b = Ie(e, h + 1, h = qr(E = s[v])), k = e; p < g; ++p) (k = Zr(E > 0 ? _[p] + " " + b : S(b, /&\f/g, _[p]))) && (u[m++] = k); return kt(e, t, n, o === 0 ? bt : a, u, l, d, c); } function Fi(e, t, n, r) { return kt(e, t, n, Vr, mn(xi()), Ie(e, 2, -2), 0, r); } function Zn(e, t, n, r, o) { return kt(e, t, n, pn, Ie(e, 0, r), Ie(e, r + 1, -1), r, o); } function Qr(e, t, n) { switch (Oi(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: c