UNPKG

@innovatrics/dot-auto-capture-ui

Version:
1,199 lines (1,198 loc) 143 kB
var yo = Object.defineProperty; var vo = (t, e, r) => e in t ? yo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; var Qt = (t, e, r) => vo(t, typeof e != "symbol" ? e + "" : e, r); var jt, S, dn, ut, Sr, fn, Ae, or, Pe, He, hn, zt = {}, pn = [], Co = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ge = Array.isArray; function tt(t, e) { for (var r in e) t[r] = e[r]; return t; } function _n(t) { var e = t.parentNode; e && e.removeChild(t); } function T(t, e, r) { var n, o, i, s = {}; for (i in e) i == "key" ? n = e[i] : i == "ref" ? o = e[i] : s[i] = e[i]; if (arguments.length > 2 && (s.children = arguments.length > 3 ? jt.call(arguments, 2) : r), typeof t == "function" && t.defaultProps != null) for (i in t.defaultProps) s[i] === void 0 && (s[i] = t.defaultProps[i]); return Ut(t, s, n, o, null); } function Ut(t, e, r, n, o) { var i = { type: t, props: e, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++dn, __i: -1, __u: 0 }; return o == null && S.vnode != null && S.vnode(i), i; } function wo() { return { current: null }; } function W(t) { return t.children; } function z(t, e) { this.props = t, this.context = e; } function gt(t, e) { if (e == null) return t.__ ? gt(t.__, t.__i + 1) : null; for (var r; e < t.__k.length; e++) if ((r = t.__k[e]) != null && r.__e != null) return r.__e; return typeof t.type == "function" ? gt(t) : null; } function mn(t) { var e, r; if ((t = t.__) != null && t.__c != null) { for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++) if ((r = t.__k[e]) != null && r.__e != null) { t.__e = t.__c.base = r.__e; break; } return mn(t); } } function Ze(t) { (!t.__d && (t.__d = !0) && ut.push(t) && !fe.__r++ || Sr !== S.debounceRendering) && ((Sr = S.debounceRendering) || fn)(fe); } function fe() { var t, e, r, n, o, i, s, c; for (ut.sort(Ae); t = ut.shift(); ) t.__d && (e = ut.length, n = void 0, i = (o = (r = t).__v).__e, s = [], c = [], r.__P && ((n = tt({}, o)).__v = o.__v + 1, S.vnode && S.vnode(n), ir(r.__P, n, o, r.__n, r.__P.namespaceURI, 32 & o.__u ? [i] : null, s, i ?? gt(o), !!(32 & o.__u), c), n.__v = o.__v, n.__.__k[n.__i] = n, yn(s, n, c), n.__e != i && mn(n)), ut.length > e && ut.sort(Ae)); fe.__r = 0; } function gn(t, e, r, n, o, i, s, c, u, d, h) { var l, p, f, _, L, y = n && n.__k || pn, m = e.length; for (r.__d = u, So(r, e, y), u = r.__d, l = 0; l < m; l++) (f = r.__k[l]) != null && typeof f != "boolean" && typeof f != "function" && (p = f.__i === -1 ? zt : y[f.__i] || zt, f.__i = l, ir(t, f, p, o, i, s, c, u, d, h), _ = f.__e, f.ref && p.ref != f.ref && (p.ref && ar(p.ref, null, f), h.push(f.ref, f.__c || _, f)), L == null && _ != null && (L = _), 65536 & f.__u || p.__k === f.__k ? (u && typeof f.type == "string" && !t.contains(u) && (u = gt(p)), u = Ln(f, u, t)) : typeof f.type == "function" && f.__d !== void 0 ? u = f.__d : _ && (u = _.nextSibling), f.__d = void 0, f.__u &= -196609); r.__d = u, r.__e = L; } function So(t, e, r) { var n, o, i, s, c, u = e.length, d = r.length, h = d, l = 0; for (t.__k = [], n = 0; n < u; n++) s = n + l, (o = t.__k[n] = (o = e[n]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Ut(null, o, null, null, null) : ge(o) ? Ut(W, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ut(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = t, o.__b = t.__b + 1, c = bo(o, r, s, h), o.__i = c, i = null, c !== -1 && (h--, (i = r[c]) && (i.__u |= 131072)), i == null || i.__v === null ? (c == -1 && l--, typeof o.type != "function" && (o.__u |= 65536)) : c !== s && (c == s - 1 ? l = c - s : c == s + 1 ? l++ : c > s ? h > u - s ? l += c - s : l-- : c < s && l++, c !== n + l && (o.__u |= 65536))) : (i = r[s]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == t.__d && (t.__d = gt(i)), Be(i, i, !1), r[s] = null, h--); if (h) for (n = 0; n < d; n++) (i = r[n]) != null && !(131072 & i.__u) && (i.__e == t.__d && (t.__d = gt(i)), Be(i, i)); } function Ln(t, e, r) { var n, o; if (typeof t.type == "function") { for (n = t.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = t, e = Ln(n[o], e, r)); return e; } t.__e != e && (r.insertBefore(t.__e, e || null), e = t.__e); do e = e && e.nextSibling; while (e != null && e.nodeType === 8); return e; } function et(t, e) { return e = e || [], t == null || typeof t == "boolean" || (ge(t) ? t.some(function(r) { et(r, e); }) : e.push(t)), e; } function bo(t, e, r, n) { var o = t.key, i = t.type, s = r - 1, c = r + 1, u = e[r]; if (u === null || u && o == u.key && i === u.type && !(131072 & u.__u)) return r; if (n > (u != null && !(131072 & u.__u) ? 1 : 0)) for (; s >= 0 || c < e.length; ) { if (s >= 0) { if ((u = e[s]) && !(131072 & u.__u) && o == u.key && i === u.type) return s; s--; } if (c < e.length) { if ((u = e[c]) && !(131072 & u.__u) && o == u.key && i === u.type) return c; c++; } } return -1; } function br(t, e, r) { e[0] === "-" ? t.setProperty(e, r ?? "") : t[e] = r == null ? "" : typeof r != "number" || Co.test(e) ? r : r + "px"; } function te(t, e, r, n, o) { var i; t: if (e === "style") if (typeof r == "string") t.style.cssText = r; else { if (typeof n == "string" && (t.style.cssText = n = ""), n) for (e in n) r && e in r || br(t.style, e, ""); if (r) for (e in r) n && r[e] === n[e] || br(t.style, e, r[e]); } else if (e[0] === "o" && e[1] === "n") i = e !== (e = e.replace(/(PointerCapture)$|Capture$/i, "$1")), e = e.toLowerCase() in t || e === "onFocusOut" || e === "onFocusIn" ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + i] = r, r ? n ? r.u = n.u : (r.u = or, t.addEventListener(e, i ? He : Pe, i)) : t.removeEventListener(e, i ? He : Pe, i); else { if (o == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in t) try { t[e] = r ?? ""; break t; } catch { } typeof r == "function" || (r == null || r === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, e == "popover" && r == 1 ? "" : r)); } } function Er(t) { return function(e) { if (this.l) { var r = this.l[e.type + t]; if (e.t == null) e.t = or++; else if (e.t < r.u) return; return r(S.event ? S.event(e) : e); } }; } function ir(t, e, r, n, o, i, s, c, u, d) { var h, l, p, f, _, L, y, m, g, V, b, O, w, v, H, j, Z = e.type; if (e.constructor !== void 0) return null; 128 & r.__u && (u = !!(32 & r.__u), i = [c = e.__e = r.__e]), (h = S.__b) && h(e); t: if (typeof Z == "function") try { if (m = e.props, g = "prototype" in Z && Z.prototype.render, V = (h = Z.contextType) && n[h.__c], b = h ? V ? V.props.value : h.__ : n, r.__c ? y = (l = e.__c = r.__c).__ = l.__E : (g ? e.__c = l = new Z(m, b) : (e.__c = l = new z(m, b), l.constructor = Z, l.render = Vo), V && V.sub(l), l.props = m, l.state || (l.state = {}), l.context = b, l.__n = n, p = l.__d = !0, l.__h = [], l._sb = []), g && l.__s == null && (l.__s = l.state), g && Z.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = tt({}, l.__s)), tt(l.__s, Z.getDerivedStateFromProps(m, l.__s))), f = l.props, _ = l.state, l.__v = e, p) g && Z.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), g && l.componentDidMount != null && l.__h.push(l.componentDidMount); else { if (g && Z.getDerivedStateFromProps == null && m !== f && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, b), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, b) === !1 || e.__v === r.__v)) { for (e.__v !== r.__v && (l.props = m, l.state = l.__s, l.__d = !1), e.__e = r.__e, e.__k = r.__k, e.__k.forEach(function(wt) { wt && (wt.__ = e); }), O = 0; O < l._sb.length; O++) l.__h.push(l._sb[O]); l._sb = [], l.__h.length && s.push(l); break t; } l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s, b), g && l.componentDidUpdate != null && l.__h.push(function() { l.componentDidUpdate(f, _, L); }); } if (l.context = b, l.props = m, l.__P = t, l.__e = !1, w = S.__r, v = 0, g) { for (l.state = l.__s, l.__d = !1, w && w(e), h = l.render(l.props, l.state, l.context), H = 0; H < l._sb.length; H++) l.__h.push(l._sb[H]); l._sb = []; } else do l.__d = !1, w && w(e), h = l.render(l.props, l.state, l.context), l.state = l.__s; while (l.__d && ++v < 25); l.state = l.__s, l.getChildContext != null && (n = tt(tt({}, n), l.getChildContext())), g && !p && l.getSnapshotBeforeUpdate != null && (L = l.getSnapshotBeforeUpdate(f, _)), gn(t, ge(j = h != null && h.type === W && h.key == null ? h.props.children : h) ? j : [j], e, r, n, o, i, s, c, u, d), l.base = e.__e, e.__u &= -161, l.__h.length && s.push(l), y && (l.__E = l.__ = null); } catch (wt) { e.__v = null, u || i != null ? (e.__e = c, e.__u |= u ? 160 : 32, i[i.indexOf(c)] = null) : (e.__e = r.__e, e.__k = r.__k), S.__e(wt, e, r); } else i == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = Eo(r.__e, e, r, n, o, i, s, u, d); (h = S.diffed) && h(e); } function yn(t, e, r) { e.__d = void 0; for (var n = 0; n < r.length; n++) ar(r[n], r[++n], r[++n]); S.__c && S.__c(e, t), t.some(function(o) { try { t = o.__h, o.__h = [], t.some(function(i) { i.call(o); }); } catch (i) { S.__e(i, o.__v); } }); } function Eo(t, e, r, n, o, i, s, c, u) { var d, h, l, p, f, _, L, y = r.props, m = e.props, g = e.type; if (g === "svg" ? o = "http://www.w3.org/2000/svg" : g === "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) { for (d = 0; d < i.length; d++) if ((f = i[d]) && "setAttribute" in f == !!g && (g ? f.localName === g : f.nodeType === 3)) { t = f, i[d] = null; break; } } if (t == null) { if (g === null) return document.createTextNode(m); t = document.createElementNS(o, g, m.is && m), i = null, c = !1; } if (g === null) y === m || c && t.data === m || (t.data = m); else { if (i = i && jt.call(t.childNodes), y = r.props || zt, !c && i != null) for (y = {}, d = 0; d < t.attributes.length; d++) y[(f = t.attributes[d]).name] = f.value; for (d in y) if (f = y[d], d != "children") { if (d == "dangerouslySetInnerHTML") l = f; else if (d !== "key" && !(d in m)) { if (d == "value" && "defaultValue" in m || d == "checked" && "defaultChecked" in m) continue; te(t, d, null, f, o); } } for (d in m) f = m[d], d == "children" ? p = f : d == "dangerouslySetInnerHTML" ? h = f : d == "value" ? _ = f : d == "checked" ? L = f : d === "key" || c && typeof f != "function" || y[d] === f || te(t, d, f, y[d], o); if (h) c || l && (h.__html === l.__html || h.__html === t.innerHTML) || (t.innerHTML = h.__html), e.__k = []; else if (l && (t.innerHTML = ""), gn(t, ge(p) ? p : [p], e, r, n, g === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, s, i ? i[0] : r.__k && gt(r, 0), c, u), i != null) for (d = i.length; d--; ) i[d] != null && _n(i[d]); c || (d = "value", _ !== void 0 && (_ !== t[d] || g === "progress" && !_ || g === "option" && _ !== y[d]) && te(t, d, _, y[d], o), d = "checked", L !== void 0 && L !== t[d] && te(t, d, L, y[d], o)); } return t; } function ar(t, e, r) { try { typeof t == "function" ? t(e) : t.current = e; } catch (n) { S.__e(n, r); } } function Be(t, e, r) { var n, o; if (S.unmount && S.unmount(t), (n = t.ref) && (n.current && n.current !== t.__e || ar(n, null, e)), (n = t.__c) != null) { if (n.componentWillUnmount) try { n.componentWillUnmount(); } catch (i) { S.__e(i, e); } n.base = n.__P = null; } if (n = t.__k) for (o = 0; o < n.length; o++) n[o] && Be(n[o], e, r || typeof t.type != "function"); r || t.__e == null || _n(t.__e), t.__c = t.__ = t.__e = t.__d = void 0; } function Vo(t, e, r) { return this.constructor(t, r); } function st(t, e, r) { var n, o, i, s; S.__ && S.__(t, e), o = (n = typeof r == "function") ? null : r && r.__k || e.__k, i = [], s = [], ir(e, t = (!n && r || e).__k = T(W, null, [t]), o || zt, zt, e.namespaceURI, !n && r ? [r] : o ? null : e.firstChild ? jt.call(e.childNodes) : null, i, !n && r ? r : o ? o.__e : e.firstChild, n, s), yn(i, t, s); } function sr(t, e) { st(t, e, sr); } function cr(t, e, r) { var n, o, i, s, c = tt({}, t.props); for (i in t.type && t.type.defaultProps && (s = t.type.defaultProps), e) i == "key" ? n = e[i] : i == "ref" ? o = e[i] : c[i] = e[i] === void 0 && s !== void 0 ? s[i] : e[i]; return arguments.length > 2 && (c.children = arguments.length > 3 ? jt.call(arguments, 2) : r), Ut(t.type, c, n || t.key, o || t.ref, null); } function vn(t, e) { var r = { __c: e = "__cC" + hn++, __: t, Consumer: function(n, o) { return n.children(o); }, Provider: function(n) { var o, i; return this.getChildContext || (o = [], (i = {})[e] = this, this.getChildContext = function() { return i; }, this.componentWillUnmount = function() { o = null; }, this.shouldComponentUpdate = function(s) { this.props.value !== s.value && o.some(function(c) { c.__e = !0, Ze(c); }); }, this.sub = function(s) { o.push(s); var c = s.componentWillUnmount; s.componentWillUnmount = function() { o && o.splice(o.indexOf(s), 1), c && c.call(s); }; }), n.children; } }; return r.Provider.__ = r.Consumer.contextType = r; } jt = pn.slice, S = { __e: function(t, e, r, n) { for (var o, i, s; e = e.__; ) if ((o = e.__c) && !o.__) try { if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(t)), s = o.__d), o.componentDidCatch != null && (o.componentDidCatch(t, n || {}), s = o.__d), s) return o.__E = o; } catch (c) { t = c; } throw t; } }, dn = 0, z.prototype.setState = function(t, e) { var r; r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = tt({}, this.state), typeof t == "function" && (t = t(tt({}, r), this.props)), t && tt(r, t), t != null && this.__v && (e && this._sb.push(e), Ze(this)); }, z.prototype.forceUpdate = function(t) { this.__v && (this.__e = !0, t && this.__h.push(t), Ze(this)); }, z.prototype.render = W, ut = [], fn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ae = function(t, e) { return t.__v.__b - e.__v.__b; }, fe.__r = 0, or = 0, Pe = Er(!1), He = Er(!0), hn = 0; function lr() { return (lr = Object.assign ? Object.assign.bind() : function(t) { for (var e = 1; e < arguments.length; e++) { var r = arguments[e]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]); } return t; }).apply(this, arguments); } var ko = ["context", "children"]; function Oo(t) { this.getChildContext = function() { return t.context; }; var e = t.children, r = function(n, o) { if (n == null) return {}; var i, s, c = {}, u = Object.keys(n); for (s = 0; s < u.length; s++) o.indexOf(i = u[s]) >= 0 || (c[i] = n[i]); return c; }(t, ko); return cr(e, r); } function xo() { var t = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 }); this.dispatchEvent(t), this._vdom = T(Oo, lr({}, this._props, { context: t.detail.context }), function e(r, n) { if (r.nodeType === 3) return r.data; if (r.nodeType !== 1) return null; var o = [], i = {}, s = 0, c = r.attributes, u = r.childNodes; for (s = c.length; s--; ) c[s].name !== "slot" && (i[c[s].name] = c[s].value, i[Cn(c[s].name)] = c[s].value); for (s = u.length; s--; ) { var d = e(u[s], null), h = u[s].slot; h ? i[h] = T(Vr, { name: h }, d) : o[s] = d; } var l = n ? T(Vr, null, o) : o; return T(n || r.nodeName.toLowerCase(), i, l); }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? sr : st)(this._vdom, this._root); } function Cn(t) { return t.replace(/-(\w)/g, function(e, r) { return r ? r.toUpperCase() : ""; }); } function No(t, e, r) { if (this._vdom) { var n = {}; n[t] = r = r ?? void 0, n[Cn(t)] = r, this._vdom = cr(this._vdom, n), st(this._vdom, this._root); } } function Io() { st(this._vdom = null, this._root); } function Vr(t, e) { var r = this; return T("slot", lr({}, t, { ref: function(n) { n ? (r.ref = n, r._listener || (r._listener = function(o) { o.stopPropagation(), o.detail.context = e; }, n.addEventListener("_preact", r._listener))) : r.ref.removeEventListener("_preact", r._listener); } })); } function $o(t, e, r, n) { function o() { var i = Reflect.construct(HTMLElement, [], o); return i._vdomComponent = t, i._root = i, i; } return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = xo, o.prototype.attributeChangedCallback = No, o.prototype.disconnectedCallback = Io, r = r || t.observedAttributes || Object.keys(t.propTypes || {}), o.observedAttributes = r, r.forEach(function(i) { Object.defineProperty(o.prototype, i, { get: function() { return this._vdom.props[i]; }, set: function(s) { this._vdom ? this.attributeChangedCallback(i, null, s) : (this._props || (this._props = {}), this._props[i] = s, this.connectedCallback()); var c = typeof s; s != null && c !== "string" && c !== "boolean" && c !== "number" || this.setAttribute(i, s); } }); }), customElements.define(e, o); } var Mo = 0; function a(t, e, r, n, o, i) { e || (e = {}); var s, c, u = e; if ("ref" in u) for (c in u = {}, e) c == "ref" ? s = e[c] : u[c] = e[c]; var d = { type: t, props: u, key: r, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --Mo, __i: -1, __u: 0, __source: o, __self: i }; if (typeof t == "function" && (s = t.defaultProps)) for (c in s) u[c] === void 0 && (u[c] = s[c]); return S.vnode && S.vnode(d), d; } const kr = { CONTINUE_DETECTION: "continue-detection", SWITCH_CAMERA: "switch-camera", TOGGLE_MIRROR: "toggle-mirror" }; var ht = /* @__PURE__ */ ((t) => (t.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", t.CONTROL = "document-auto-capture:control", t.DETECTED_DOCUMENT_CHANGED = "document-auto-capture:detected-document-changed", t.DOCUMENT_DETECTION = "document-auto-capture:document-detection", t.INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", t.INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", t.STATE_CHANGED = "document-auto-capture:state-changed", t.VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size", t))(ht || {}), wn = /* @__PURE__ */ ((t) => (t.CAMERA_PROPS_CHANGED = "palm-capture:camera-props-changed", t.CONTROL = "palm-capture:control", t.DETECTED_PALM_CHANGED = "palm-capture:detected-palm-changed", t.INSTRUCTION_CHANGED = "palm-capture:instruction-changed", t.STATE_CHANGED = "palm-capture:state-changed", t.VIDEO_ELEMENT_SIZE = "palm-capture:video-element-size", t))(wn || {}); const A = { CANDIDATE_SELECTION: "candidate_selection", DOCUMENT_CENTERING: "document_centering", DOCUMENT_NOT_PRESENT: "document_not_present", DOCUMENT_TOO_FAR: "document_too_far", SHARPNESS_TOO_LOW: "sharpness_too_low", BRIGHTNESS_TOO_LOW: "brightness_too_low", BRIGHTNESS_TOO_HIGH: "brightness_too_high", HOTSPOTS_PRESENT: "hotspots_present" }, q = { LOADING: "LOADING", ERROR: "ERROR", WAITING: "WAITING", RUNNING: "RUNNING" }; var ct, N, Ne, Or, Vt = 0, Sn = [], I = S, xr = I.__b, Nr = I.__r, Ir = I.diffed, $r = I.__c, Mr = I.unmount, Dr = I.__; function It(t, e) { I.__h && I.__h(N, t, Vt || e), Vt = 0; var r = N.__H || (N.__H = { __: [], __h: [] }); return t >= r.__.length && r.__.push({}), r.__[t]; } function U(t) { return Vt = 1, ur(Vn, t); } function ur(t, e, r) { var n = It(ct++, 2); if (n.t = t, !n.__c && (n.__ = [r ? r(e) : Vn(void 0, e), function(c) { var u = n.__N ? n.__N[0] : n.__[0], d = n.t(u, c); u !== d && (n.__N = [d, n.__[1]], n.__c.setState({})); }], n.__c = N, !N.u)) { var o = function(c, u, d) { if (!n.__c.__H) return !0; var h = n.__c.__H.__.filter(function(p) { return !!p.__c; }); if (h.every(function(p) { return !p.__N; })) return !i || i.call(this, c, u, d); var l = !1; return h.forEach(function(p) { if (p.__N) { var f = p.__[0]; p.__ = p.__N, p.__N = void 0, f !== p.__[0] && (l = !0); } }), !(!l && n.__c.props === c) && (!i || i.call(this, c, u, d)); }; N.u = !0; var i = N.shouldComponentUpdate, s = N.componentWillUpdate; N.componentWillUpdate = function(c, u, d) { if (this.__e) { var h = i; i = void 0, o(c, u, d), i = h; } s && s.call(this, c, u, d); }, N.shouldComponentUpdate = o; } return n.__N || n.__; } function nt(t, e) { var r = It(ct++, 3); !I.__s && dr(r.__H, e) && (r.__ = t, r.i = e, N.__H.__h.push(r)); } function $t(t, e) { var r = It(ct++, 4); !I.__s && dr(r.__H, e) && (r.__ = t, r.i = e, N.__h.push(r)); } function Yt(t) { return Vt = 5, rt(function() { return { current: t }; }, []); } function bn(t, e, r) { Vt = 6, $t(function() { return typeof t == "function" ? (t(e()), function() { return t(null); }) : t ? (t.current = e(), function() { return t.current = null; }) : void 0; }, r == null ? r : r.concat(t)); } function rt(t, e) { var r = It(ct++, 7); return dr(r.__H, e) && (r.__ = t(), r.__H = e, r.__h = t), r.__; } function pt(t, e) { return Vt = 8, rt(function() { return t; }, e); } function qt(t) { var e = N.context[t.__c], r = It(ct++, 9); return r.c = t, e ? (r.__ == null && (r.__ = !0, e.sub(N)), e.props.value) : t.__; } function he(t, e) { I.useDebugValue && I.useDebugValue(e ? e(t) : t); } function En() { var t = It(ct++, 11); if (!t.__) { for (var e = N.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__; var r = e.__m || (e.__m = [0, 0]); t.__ = "P" + r[0] + "-" + r[1]++; } return t.__; } function Do() { for (var t; t = Sn.shift(); ) if (t.__P && t.__H) try { t.__H.__h.forEach(ie), t.__H.__h.forEach(Ue), t.__H.__h = []; } catch (e) { t.__H.__h = [], I.__e(e, t.__v); } } I.__b = function(t) { N = null, xr && xr(t); }, I.__ = function(t, e) { t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Dr && Dr(t, e); }, I.__r = function(t) { Nr && Nr(t), ct = 0; var e = (N = t.__c).__H; e && (Ne === N ? (e.__h = [], N.__h = [], e.__.forEach(function(r) { r.__N && (r.__ = r.__N), r.i = r.__N = void 0; })) : (e.__h.forEach(ie), e.__h.forEach(Ue), e.__h = [], ct = 0)), Ne = N; }, I.diffed = function(t) { Ir && Ir(t); var e = t.__c; e && e.__H && (e.__H.__h.length && (Sn.push(e) !== 1 && Or === I.requestAnimationFrame || ((Or = I.requestAnimationFrame) || To)(Do)), e.__H.__.forEach(function(r) { r.i && (r.__H = r.i), r.i = void 0; })), Ne = N = null; }, I.__c = function(t, e) { e.some(function(r) { try { r.__h.forEach(ie), r.__h = r.__h.filter(function(n) { return !n.__ || Ue(n); }); } catch (n) { e.some(function(o) { o.__h && (o.__h = []); }), e = [], I.__e(n, r.__v); } }), $r && $r(t, e); }, I.unmount = function(t) { Mr && Mr(t); var e, r = t.__c; r && r.__H && (r.__H.__.forEach(function(n) { try { ie(n); } catch (o) { e = o; } }), r.__H = void 0, e && I.__e(e, r.__v)); }; var Tr = typeof requestAnimationFrame == "function"; function To(t) { var e, r = function() { clearTimeout(n), Tr && cancelAnimationFrame(e), setTimeout(t); }, n = setTimeout(r, 100); Tr && (e = requestAnimationFrame(r)); } function ie(t) { var e = N, r = t.__c; typeof r == "function" && (t.__c = void 0, r()), N = e; } function Ue(t) { var e = N; t.__c = t.__(), N = e; } function dr(t, e) { return !t || t.length !== e.length || e.some(function(r, n) { return r !== t[n]; }); } function Vn(t, e) { return typeof e == "function" ? e(t) : e; } var D = function() { return D = Object.assign || function(e) { for (var r, n = 1, o = arguments.length; n < o; n++) { r = arguments[n]; for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (e[i] = r[i]); } return e; }, D.apply(this, arguments); }; function Lt(t, e, r) { if (r || arguments.length === 2) for (var n = 0, o = e.length, i; n < o; n++) (i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]); return t.concat(i || Array.prototype.slice.call(e)); } function Ro(t) { var e = /* @__PURE__ */ Object.create(null); return function(r) { return e[r] === void 0 && (e[r] = t(r)), e[r]; }; } var Ao = /^((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)-.*))$/, Po = /* @__PURE__ */ Ro( function(t) { return Ao.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; } /* Z+1 */ ); function kn(t, e) { for (var r in e) t[r] = e[r]; return t; } function We(t, e) { for (var r in t) if (r !== "__source" && !(r in e)) return !0; for (var n in e) if (n !== "__source" && t[n] !== e[n]) return !0; return !1; } function Fe(t, e) { this.props = t, this.context = e; } function Ho(t, e) { function r(o) { var i = this.props.ref, s = i == o.ref; return !s && i && (i.call ? i(null) : i.current = null), e ? !e(this.props, o) || !s : We(this.props, o); } function n(o) { return this.shouldComponentUpdate = r, T(t, o); } return n.displayName = "Memo(" + (t.displayName || t.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n; } (Fe.prototype = new z()).isPureReactComponent = !0, Fe.prototype.shouldComponentUpdate = function(t, e) { return We(this.props, t) || We(this.state, e); }; var Rr = S.__b; S.__b = function(t) { t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), Rr && Rr(t); }; var Zo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; function Bo(t) { function e(r) { var n = kn({}, r); return delete n.ref, t(n, r.ref || null); } return e.$$typeof = Zo, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; } var Ar = function(t, e) { return t == null ? null : et(et(t).map(e)); }, Uo = { map: Ar, forEach: Ar, count: function(t) { return t ? et(t).length : 0; }, only: function(t) { var e = et(t); if (e.length !== 1) throw "Children.only"; return e[0]; }, toArray: et }, Wo = S.__e; S.__e = function(t, e, r, n) { if (t.then) { for (var o, i = e; i = i.__; ) if ((o = i.__c) && o.__c) return e.__e == null && (e.__e = r.__e, e.__k = r.__k), o.__c(t, e); } Wo(t, e, r, n); }; var Pr = S.unmount; function On(t, e, r) { return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(n) { typeof n.__c == "function" && n.__c(); }), t.__c.__H = null), (t = kn({}, t)).__c != null && (t.__c.__P === r && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(n) { return On(n, e, r); })), t; } function xn(t, e, r) { return t && r && (t.__v = null, t.__k = t.__k && t.__k.map(function(n) { return xn(n, e, r); }), t.__c && t.__c.__P === e && (t.__e && r.appendChild(t.__e), t.__c.__e = !0, t.__c.__P = r)), t; } function ae() { this.__u = 0, this.t = null, this.__b = null; } function Nn(t) { var e = t.__.__c; return e && e.__a && e.__a(t); } function Fo(t) { var e, r, n; function o(i) { if (e || (e = t()).then(function(s) { r = s.default || s; }, function(s) { n = s; }), n) throw n; if (!r) throw e; return T(r, i); } return o.displayName = "Lazy", o.__f = !0, o; } function Pt() { this.u = null, this.o = null; } S.unmount = function(t) { var e = t.__c; e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), Pr && Pr(t); }, (ae.prototype = new z()).__c = function(t, e) { var r = e.__c, n = this; n.t == null && (n.t = []), n.t.push(r); var o = Nn(n.__v), i = !1, s = function() { i || (i = !0, r.__R = null, o ? o(c) : c()); }; r.__R = s; var c = function() { if (!--n.__u) { if (n.state.__a) { var u = n.state.__a; n.__v.__k[0] = xn(u, u.__c.__P, u.__c.__O); } var d; for (n.setState({ __a: n.__b = null }); d = n.t.pop(); ) d.forceUpdate(); } }; n.__u++ || 32 & e.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), t.then(s, s); }, ae.prototype.componentWillUnmount = function() { this.t = []; }, ae.prototype.render = function(t, e) { if (this.__b) { if (this.__v.__k) { var r = document.createElement("div"), n = this.__v.__k[0].__c; this.__v.__k[0] = On(this.__b, r, n.__O = n.__P); } this.__b = null; } var o = e.__a && T(W, null, t.fallback); return o && (o.__u &= -33), [T(W, null, e.__a ? null : t.children), o]; }; var Hr = function(t, e, r) { if (++r[1] === r[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size)) for (r = t.u; r; ) { for (; r.length > 3; ) r.pop()(); if (r[1] < r[0]) break; t.u = r = r[2]; } }; function zo(t) { return this.getChildContext = function() { return t.context; }, t.children; } function Go(t) { var e = this, r = t.i; e.componentWillUnmount = function() { st(null, e.l), e.l = null, e.i = null; }, e.i && e.i !== r && e.componentWillUnmount(), e.l || (e.i = r, e.l = { nodeType: 1, parentNode: r, childNodes: [], contains: function() { return !0; }, appendChild: function(n) { this.childNodes.push(n), e.i.appendChild(n); }, insertBefore: function(n, o) { this.childNodes.push(n), e.i.appendChild(n); }, removeChild: function(n) { this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.i.removeChild(n); } }), st(T(zo, { context: e.context }, t.__v), e.l); } function jo(t, e) { var r = T(Go, { __v: t, i: e }); return r.containerInfo = e, r; } (Pt.prototype = new z()).__a = function(t) { var e = this, r = Nn(e.__v), n = e.o.get(t); return n[0]++, function(o) { var i = function() { e.props.revealOrder ? (n.push(o), Hr(e, t, n)) : o(); }; r ? r(i) : i(); }; }, Pt.prototype.render = function(t) { this.u = null, this.o = /* @__PURE__ */ new Map(); var e = et(t.children); t.revealOrder && t.revealOrder[0] === "b" && e.reverse(); for (var r = e.length; r--; ) this.o.set(e[r], this.u = [1, 0, this.u]); return t.children; }, Pt.prototype.componentDidUpdate = Pt.prototype.componentDidMount = function() { var t = this; this.o.forEach(function(e, r) { Hr(t, r, e); }); }; var In = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Yo = /^(?: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]/, qo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Xo = /[A-Z0-9]/g, Ko = typeof document < "u", Jo = function(t) { return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t); }; function Qo(t, e, r) { return e.__k == null && (e.textContent = ""), st(t, e), typeof r == "function" && r(), t ? t.__c : null; } function ti(t, e, r) { return sr(t, e), typeof r == "function" && r(), t ? t.__c : null; } z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) { Object.defineProperty(z.prototype, t, { configurable: !0, get: function() { return this["UNSAFE_" + t]; }, set: function(e) { Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e }); } }); }); var Zr = S.event; function ei() { } function ri() { return this.cancelBubble; } function ni() { return this.defaultPrevented; } S.event = function(t) { return Zr && (t = Zr(t)), t.persist = ei, t.isPropagationStopped = ri, t.isDefaultPrevented = ni, t.nativeEvent = t; }; var fr, oi = { enumerable: !1, configurable: !0, get: function() { return this.class; } }, Br = S.vnode; S.vnode = function(t) { typeof t.type == "string" && function(e) { var r = e.props, n = e.type, o = {}; for (var i in r) { var s = r[i]; if (!(i === "value" && "defaultValue" in r && s == null || Ko && i === "children" && n === "noscript" || i === "class" || i === "className")) { var c = i.toLowerCase(); i === "defaultValue" && "value" in r && r.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : c === "translate" && s === "no" ? s = !1 : c === "ondoubleclick" ? i = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || Jo(r.type) ? c === "onfocus" ? i = "onfocusin" : c === "onblur" ? i = "onfocusout" : qo.test(i) ? i = c : n.indexOf("-") === -1 && Yo.test(i) ? i = i.replace(Xo, "-$&").toLowerCase() : s === null && (s = void 0) : c = i = "oninput", c === "oninput" && o[i = c] && (i = "oninputCapture"), o[i] = s; } } n == "select" && o.multiple && Array.isArray(o.value) && (o.value = et(r.children).forEach(function(u) { u.props.selected = o.value.indexOf(u.props.value) != -1; })), n == "select" && o.defaultValue != null && (o.value = et(r.children).forEach(function(u) { u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value; })), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", oi)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), e.props = o; }(t), t.$$typeof = In, Br && Br(t); }; var Ur = S.__r; S.__r = function(t) { Ur && Ur(t), fr = t.__c; }; var Wr = S.diffed; S.diffed = function(t) { Wr && Wr(t); var e = t.props, r = t.__e; r != null && t.type === "textarea" && "value" in e && e.value !== r.value && (r.value = e.value == null ? "" : e.value), fr = null; }; var ii = { ReactCurrentDispatcher: { current: { readContext: function(t) { return fr.__n[t.__c].props.value; }, useCallback: pt, useContext: qt, useDebugValue: he, useDeferredValue: Mn, useEffect: nt, useId: En, useImperativeHandle: bn, useInsertionEffect: Tn, useLayoutEffect: $t, useMemo: rt, useReducer: ur, useRef: Yt, useState: U, useSyncExternalStore: Rn, useTransition: Dn } } }; function ai(t) { return T.bind(null, t); } function Le(t) { return !!t && t.$$typeof === In; } function si(t) { return Le(t) && t.type === W; } function ci(t) { return !!t && !!t.displayName && (typeof t.displayName == "string" || t.displayName instanceof String) && t.displayName.startsWith("Memo("); } function li(t) { return Le(t) ? cr.apply(null, arguments) : t; } function ui(t) { return !!t.__k && (st(null, t), !0); } function di(t) { return t && (t.base || t.nodeType === 1 && t) || null; } var fi = function(t, e) { return t(e); }, hi = function(t, e) { return t(e); }, pi = W; function $n(t) { t(); } function Mn(t) { return t; } function Dn() { return [!1, $n]; } var Tn = $t, _i = Le; function Rn(t, e) { var r = e(), n = U({ h: { __: r, v: e } }), o = n[0].h, i = n[1]; return $t(function() { o.__ = r, o.v = e, Ie(o) && i({ h: o }); }, [t, r, e]), nt(function() { return Ie(o) && i({ h: o }), t(function() { Ie(o) && i({ h: o }); }); }, [t]), r; } function Ie(t) { var e, r, n = t.v, o = t.__; try { var i = n(); return !((e = o) === (r = i) && (e !== 0 || 1 / e == 1 / r) || e != e && r != r); } catch { return !0; } } var ot = { useState: U, useId: En, useReducer: ur, useEffect: nt, useLayoutEffect: $t, useInsertionEffect: Tn, useTransition: Dn, useDeferredValue: Mn, useSyncExternalStore: Rn, startTransition: $n, useRef: Yt, useImperativeHandle: bn, useMemo: rt, useCallback: pt, useContext: qt, useDebugValue: he, version: "17.0.2", Children: Uo, render: Qo, hydrate: ti, unmountComponentAtNode: ui, createPortal: jo, createElement: T, createContext: vn, createFactory: ai, cloneElement: li, createRef: wo, Fragment: W, isValidElement: Le, isElement: _i, isFragment: si, isMemo: ci, findDOMNode: di, Component: z, PureComponent: Fe, memo: Ho, forwardRef: Bo, flushSync: hi, unstable_batchedUpdates: fi, StrictMode: pi, Suspense: ae, SuspenseList: Pt, lazy: Fo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ii }; function mi(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } var gi = function(e, r, n, o) { var i = n ? n.call(o, e, r) : void 0; if (i !== void 0) return !!i; if (e === r) return !0; if (typeof e != "object" || !e || typeof r != "object" || !r) return !1; var s = Object.keys(e), c = Object.keys(r); if (s.length !== c.length) return !1; for (var u = Object.prototype.hasOwnProperty.bind(r), d = 0; d < s.length; d++) { var h = s[d]; if (!u(h)) return !1; var l = e[h], p = r[h]; if (i = n ? n.call(o, l, p, h) : void 0, i === !1 || i === void 0 && l !== p) return !1; } return !0; }; const Li = /* @__PURE__ */ mi(gi); var x = "-ms-", Wt = "-moz-", k = "-webkit-", An = "comm", ye = "rule", hr = "decl", yi = "@import", Pn = "@keyframes", vi = "@layer", Hn = Math.abs, pr = String.fromCharCode, ze = Object.assign; function Ci(t, e) { return M(t, 0) ^ 45 ? (((e << 2 ^ M(t, 0)) << 2 ^ M(t, 1)) << 2 ^ M(t, 2)) << 2 ^ M(t, 3) : 0; } function Zn(t) { return t.trim(); } function J(t, e) { return (t = e.exec(t)) ? t[0] : t; } function C(t, e, r) { return t.replace(e, r); } function se(t, e, r) { return t.indexOf(e, r); } function M(t, e) { return t.charCodeAt(e) | 0; } function kt(t, e, r) { return t.slice(e, r); } function Y(t) { return t.length; } function Bn(t) { return t.length; } function Ht(t, e) { return e.push(t), t; } function wi(t, e) { return t.map(e).join(""); } function Fr(t, e) { return t.filter(function(r) { return !J(r, e); }); } var ve = 1, Ot = 1, Un = 0, F = 0, $ = 0, Mt = ""; function Ce(t, e, r, n, o, i, s, c) { return { value: t, root: e, parent: r, type: n, props: o, children: i, line: ve, column: Ot, length: s, return: "", siblings: c }; } function at(t, e) { return ze(Ce("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e); } function bt(t) { for (; t.root; ) t = at(t.root, { children: [t] }); Ht(t, t.siblings); } function Si() { return $; } function bi() { return $ = F > 0 ? M(Mt, --F) : 0, Ot--, $ === 10 && (Ot = 1, ve--), $; } function G() { return $ = F < Un ? M(Mt, F++) : 0, Ot++, $ === 10 && (Ot = 1, ve++), $; } function _t() { return M(Mt, F); } function ce() { return F; } function we(t, e) { return kt(Mt, t, e); } function Ge(t) { switch (t) { case 0: case 9: case 10: case 13: case 32: return 5; case 33: case 43: case 44: case 47: case 62: case 64: case 126: case 59: case 123: case 125: return 4; case 58: return 3; case 34: case 39: case 40: case 91: return 2; case 41: case 93: return 1; } return 0; } function Ei(t) { return ve = Ot = 1, Un = Y(Mt = t), F = 0, []; } function Vi(t) { return Mt = "", t; } function $e(t) { return Zn(we(F - 1, je(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } function ki(t) { for (; ($ = _t()) && $ < 33; ) G(); return Ge(t) > 2 || Ge($) > 3 ? "" : " "; } function Oi(t, e) { for (; --e && G() && !($ < 48 || $ > 102 || $ > 57 && $ < 65 || $ > 70 && $ < 97); ) ; return we(t, ce() + (e < 6 && _t() == 32 && G() == 32)); } function je(t) { for (; G(); ) switch ($) { case t: return F; case 34: case 39: t !== 34 && t !== 39 && je($); break; case 40: t === 41 && je(t); break; case 92: G(); break; } return F; } function xi(t, e) { for (; G() && t + $ !== 57; ) if (t + $ === 84 && _t() === 47) break; return "/*" + we(e, F - 1) + "*" + pr(t === 47 ? t : G()); } function Ni(t) { for (; !Ge(_t()); ) G(); return we(t, F); } function Ii(t) { return Vi(le("", null, null, null, [""], t = Ei(t), 0, [0], t)); } function le(t, e, r, n, o, i, s, c, u) { for (var d = 0, h = 0, l = s, p = 0, f = 0, _ = 0, L = 1, y = 1, m = 1, g = 0, V = "", b = o, O = i, w = n, v = V; y; ) switch (_ = g, g = G()) { case 40: if (_ != 108 && M(v, l - 1) == 58) { se(v += C($e(g), "&", "&\f"), "&\f", Hn(d ? c[d - 1] : 0)) != -1 && (m = -1); break; } case 34: case 39: case 91: v += $e(g); break; case 9: case 10: case 13: case 32: v += ki(_); break; case 92: v += Oi(ce() - 1, 7); continue; case 47: switch (_t()) { case 42: case 47: Ht($i(xi(G(), ce()), e, r, u), u); break; default: v += "/"; } break; case 123 * L: c[d++] = Y(v) * m; case 125 * L: case 59: case 0: switch (g) { case 0: case 125: y = 0; case 59 + h: m == -1 && (v = C(v, /\f/g, "")), f > 0 && Y(v) - l && Ht(f > 32 ? Gr(v + ";", n, r, l - 1, u) : Gr(C(v, " ", "") + ";", n, r, l - 2, u), u); break; case 59: v += ";"; default: if (Ht(w = zr(v, e, r, d, h, o, c, V, b = [], O = [], l, i), i), g === 123) if (h === 0) le(v, e, w, w, b, i, l, c, O); else switch (p === 99 && M(v, 3) === 110 ? 100 : p) { case 100: case 108: case 109: case 115: le(t, w, w, n && Ht(zr(t, w, w, 0, 0, o, c, V, o, b = [], l, O), O), o, O, l, c, n ? b : O); break; default: le(v, w, w, w, [""], O, 0, c, O); } } d = h = f = 0, L = m = 1, V = v = "", l = s; break; case 58: l = 1 + Y(v), f = _; default: if (L < 1) { if (g == 123) --L; else if (g == 125 && L++ == 0 && bi() == 125) continue; } switch (v += pr(g), g * L) { case 38: m = h > 0 ? 1 : (v += "\f", -1); break; case 44: c[d++] = (Y(v) - 1) * m, m = 1; break; case 64: _t() === 45 && (v += $e(G())), p = _t(), h = l = Y(V = v += Ni(ce())), g++; break; case 45: _ === 45 && Y(v) == 2 && (L = 0); } } return i; } function zr(t, e, r, n, o, i, s, c, u, d, h, l) { for (var p = o - 1, f = o === 0 ? i : [""], _ = Bn(f), L = 0, y = 0, m = 0; L < n; ++L) for (var g = 0, V = kt(t, p + 1, p = Hn(y = s[L])), b = t; g < _; ++g) (b = Zn(y > 0 ? f[g] + " " + V : C(V, /&\f/g, f[g]))) && (u[m++] = b); return Ce(t, e, r, o === 0 ? ye : c, u, d, h, l); } function $i(t, e, r, n) { return Ce(t, e, r, An, pr(Si()), kt(t, 2, -2), 0, n); } function Gr(t, e, r, n, o) { return Ce(t, e, r, hr, kt(t, 0, n), kt(t, n + 1, -1), n, o); } function Wn(t, e, r) { switch (Ci(t, e)) { case 5103: return k + "print-" + t + t; case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: return k + t + t; case 4789: return Wt + t + t; case 5349: case 4246: case 4810: case 6968: case 2756: return k + t + Wt + t + x + t + t; case 5936: switch (M(t, e + 11)) { case 114: return k + t + x + C(t, /[svh]\w+-[tblr]{2}/, "tb") + t; case 108: return k + t + x + C(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t; case 45: return k + t + x + C(t, /[svh]\w+-[tblr]{2}/, "lr") + t; } case 6828: case 4268: case 2903: return k + t + x + t + t; case 6165: return k + t + x + "flex-" + t + t; case 5187: return k + t + C(t, /(\w+).+(:[^]+)/, k + "box-$1$2" + x + "flex-$1$2") + t; case 5443: return k + t + x + "flex-item-" + C(t, /flex-|-self/g, "") + (J(t, /flex-|baseline/) ? "" : x + "grid-row-" + C(t, /flex-|-self/g, "")) + t; case 4675: return k + t + x + "flex-line-pack" + C(t, /align-content|flex-|-self/g, "") + t; case 5548: return k + t + x + C(t, "shrink", "negative") + t; case 5292: return k + t + x + C(t, "basis", "preferred-size") + t; case 6060: return k + "box-" + C(t, "-grow", "") + k + t + x + C(t, "grow", "positive") + t; case 4554: return k + C(t, /([^-])(transform)/g, "$1" + k + "$2") + t; case 6187: return C(C(C(t, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), t, "") + t;