/*! For license information please see 99af5d3a.js.LICENSE.txt */ (self.wpRiseJsonp = self.wpRiseJsonp || []).push([ [ "vendors-node_modules_articulate_ducks_index_js-node_modules_articulate_funky_lib_assemble_js--875384", ], { 97411: function (e, t, n) { var r = n(87555), i = n(31730), o = n(97218); e.exports = function (e) { var t = o.CancelToken.source(), n = i({ cancelToken: t.token }, e); return new r(function (e, r) { return o(n).then(r).catch(e), t.cancel.bind(t); }); }; }, 87555: function (e, t, n) { var r = n(79862), i = n(91486), o = n(22876).type("Async"), a = n(22876).typeFn(o(), 5), s = n(92244), u = n(91469), c = n(84449), l = n(57598), f = n(91508), d = n(8317), p = n(57778), h = n(23092), g = n(52387), m = n(83606), y = n(28950), v = function (e) { return b(function (t, n) { return n(e); }); }; function b(e) { var t; if (!h(e)) throw new TypeError("Async: Function required"); var n = v, r = function () { return "Async" + i(e); }; function u(t, n, r) { if (!h(t) || !h(n)) throw new TypeError( "Async.fork: Reject and resolve functions required" ); var i = !1, o = !1, a = h(r) ? r : f, s = function (e, t) { if (!o) return (o = !0), i ? f() : e(t); }, u = e(s.bind(null, t), s.bind(null, n)), c = h(u) ? u : f; return l(function () { return a((c(), void (i = !0))); }); } function d(e) { return function (t) { if (!h(t)) throw new TypeError("Async." + e + ": Function required"); return b(function (e, n) { return u(e, c(n, t)); }); }; } function p(e) { return function (t, n) { if (!h(t) || !h(n)) throw new TypeError( "Async." + e + ": Functions required for both arguments" ); return b(function (e, r) { return u(c(e, t), c(r, n)); }); }; } function g(e) { return function (t) { if (!y(b, t)) throw new TypeError("Async." + e + ": Async required"); return b(function (e, n) { var r = f, i = f; return ( (r = u(function () { i = t.fork(e, n); }, n)), l(function () { return i(r()); }) ); }); }; } function m(e) { return function (t) { if (!h(t)) throw new TypeError( "Async." + e + ": Async returning function required" ); return b(function (n, r) { var i = f, o = f; return ( (i = u(n, function (i) { var a = t(i); if (!y(b, a)) throw new TypeError( "Async." + e + ": Function must return another Async" ); o = a.fork(n, r); })), l(function () { return o(i()); }) ); }); }; } return ( ((t = { fork: u, toPromise: function () { return new Promise(function (e, t) { u(t, e); }); }, inspect: r, toString: r, type: o, swap: function (e, t) { if (!h(e) || !h(t)) throw new TypeError( "Async.swap: Functions required for both arguments" ); return b(function (n, r) { return u(c(r, e), c(n, t)); }); }, race: function (e) { if (!y(b, e)) throw new TypeError("Async.race: Async required"); return b(function (t, n) { var r = l(function (e, r) { return e ? n(r) : t(r); }), i = r.bind(null, !0), o = r.bind(null, !1), a = u(o, i), s = e.fork(o, i); return function () { a(), s(); }; }); }, coalesce: function (e, t) { if (!h(e) || !h(t)) throw new TypeError( "Async.coalesce: Functions required for both arguments" ); return b(function (n, r) { return u(c(r, e), c(r, t)); }); }, ap: function (e) { if (!y(b, e)) throw new TypeError("Async.ap: Async required"); return b(function (t, n) { var r = null, i = null, o = !1, a = !1, s = !1, f = l(t); function d() { !s && o && a && c(n, r)(i); } var p = u(f, function (e) { if (!h(e)) throw new TypeError( "Async.ap: Wrapped value must be a function" ); (o = !0), (r = e), d(); }), g = e.fork(f, function (e) { (a = !0), (i = e), d(); }); return function () { p(), g(), (s = !0); }; }); }, of: n, alt: g("alt"), bimap: p("bimap"), map: d("map"), chain: m("chain"), bichain: function (e, t) { var n = "Async.bichain: Both arguments must be Async returning functions"; if (!h(e) || !h(t)) throw new TypeError(n); return b(function (r, i) { var o = f, a = f; function s(e) { return function (t) { var o = e(t); if (!y(b, o)) throw new TypeError(n); a = o.fork(r, i); }; } return ( (o = u(s(e), s(t))), l(function () { return a(o()); }) ); }); }, })[s.of] = n), (t[s.alt] = g(s.alt)), (t[s.bimap] = p(s.bimap)), (t[s.map] = d(s.map)), (t[s.chain] = m(s.chain)), (t["@@type"] = a), (t.constructor = b), t ); } (b.of = v), (b.type = o), (b[s.of] = v), (b["@@type"] = a), (b.Rejected = function (e) { return b(function (t) { return t(e); }); }), (b.Resolved = v), (b.fromPromise = function (e) { if (!h(e)) throw new TypeError( "Async.fromPromise: Promise returning function required" ); return function () { var t = arguments; return b(function (n, r) { var i = e.apply(null, t); if (!m(i)) throw new TypeError( "Async.fromPromise: Promise returning function required" ); i.then(r, n); }); }; }), (b.fromNode = function (e, t) { if (!h(e)) throw new TypeError("Async.fromNode: CPS function required"); return function () { for (var n = [], r = arguments.length; r--; ) n[r] = arguments[r]; return b(function (r, i) { e.apply( t, n.concat(function (e, t) { return e ? r(e) : i(t); }) ); }); }; }), (b.all = function (e) { if ( !p(e) || !e.reduce(function (e, t) { return e && y(b, t); }, !0) ) throw new TypeError( "Async.all: Foldable structure of Asyncs required" ); return d(e) ? u.sequence(b.of, e) : e.sequence(b.of); }), (b.rejectAfter = function (e, t) { if (!(g(e) && e >= 0)) throw new TypeError( "Async.rejectAfter: Positive Integer required for first argument" ); return b(function (n) { var r = setTimeout(function () { n(t); }, e); return function () { clearTimeout(r); }; }); }), (b.resolveAfter = function (e, t) { if (!(g(e) && e >= 0)) throw new TypeError( "Async.resolveAfter: Positive Integer required for first argument" ); return b(function (n, r) { var i = setTimeout(function () { r(t); }, e); return function () { clearTimeout(i); }; }); }), (b["@@implements"] = r(["alt", "ap", "bimap", "chain", "map", "of"])), (e.exports = b); }, 91508: function (e) { e.exports = Function.prototype; }, 60068: function (e, t, n) { var r = n(61510), i = n(55769); e.exports = function (e) { return function (t) { return r(e) ? e.of(t) : i(Array, e) ? [t] : e(t); }; }; }, 91469: function (e, t, n) { var r = n(62497), i = n(8317), o = n(34281), a = n(23092), s = n(28950), u = n(85504), c = n(60068), l = function (e) { return e; }, f = function (e) { return function (t) { return e.concat(t); }; }; function d(e, t) { return function (n, o) { var a = t(o); if ((!r(n) && !i(n)) || !s(n, a)) throw new TypeError( "Array." + e + ": Must wrap Applys of the same type" ); return i(a) ? h( n, p(function (e) { return f([e]); }, a) ) : a .map(function (e) { return f([e]); }) .ap(n); }; } var p = function (e, t) { return t.map(function (t) { return e(t); }); }; function h(e, t) { if ( !t.length || !t.reduce(function (e, t) { return e && a(t); }, !0) ) throw new TypeError("Array.ap: Second Array must all be functions"); return t.reduce(function (t, n) { return t.concat(p(n, e)); }, []); } e.exports = { ap: h, chain: function (e, t) { return t.reduce(function (t, n) { var r = e(n); if (!i(r)) throw new TypeError("Array.chain: Function must return an Array"); return t.concat(r); }, []); }, fold: function (e) { if (o(e)) throw new TypeError( "Array.fold: Non-empty Array of Semigroups required" ); var t = e[0]; if (!u(t)) throw new TypeError( "Array.fold: Must contain Semigroups of the same type" ); return e.reduce(function (e, t) { if (!s(e, t)) throw new TypeError( "Array.fold: Must contain Semigroups of the same type" ); return e.concat(t); }); }, foldMap: function (e, t) { if (o(t)) throw new TypeError("Array.foldMap: Non-empty Array required"); var n = e(t[0]); if (!u(n)) throw new TypeError( "Array.foldMap: Provided function must return Semigroups of the same type" ); return 1 === t.length ? n : t.slice(1).reduce(function (t, n) { var r = e(n); if (!s(t, r) || !u(r)) throw new TypeError( "Array.foldMap: Provided function must return Semigroups of the same type" ); return t.concat(r); }, n); }, map: p, sequence: function (e, t) { var n = c(e); return t.reduceRight(d("sequence", l), n([])); }, set: function (e, t, n) { var r = n.slice(); return (r[e] = t), r; }, traverse: function (e, t, n) { var r = c(e); return n.reduceRight(d("traverse", t), r([])); }, unset: function (e, t) { return t.slice(0, e).concat(t.slice(e + 1)); }, }; }, 84449: function (e) { e.exports = function (e, t) { return function (n) { return e(t(n)); }; }; }, 92955: function (e, t, n) { var r = n(23092); function i(e, t) { return r(e) ? (e.length > 1 ? e.bind(null, t) : e.call(null, t)) : e; } e.exports = function e(t) { return function () { for (var n = [], o = arguments.length; o--; ) n[o] = arguments[o]; var a = n.length ? n : [void 0]; if (a.length < t.length) return e(Function.bind.apply(t, [null].concat(a))); var s = a.length === t.length ? t.apply(null, a) : a.reduce(i, t); return r(s) ? e(s) : s; }; }; }, 93548: function (e, t, n) { var r = n(28950), i = n(97922), o = n(98399), a = n(8761), s = n(92244), u = function (e, t) { return e.valueOf() === t.valueOf(); }, c = { Array: function (e, t) { return e.length === t.length && l(e, t); }, Date: function (e, t) { return i(e.valueOf(), t.valueOf()); }, Error: function (e, t) { return e.name === t.name && e.message === t.message; }, Object: function (e, t) { return Object.keys(e).length === Object.keys(t).length && l(e, t); }, RegExp: function (e, t) { return ( e.source === t.source && e.ignoreCase === t.ignoreCase && e.global === t.global && e.multiline === t.multiline && e.unicode === t.unicode ); }, }; function l(e, t) { for (var n in e) if (!f(e[n], t[n])) return !1; return !0; } function f(e, t) { return ( !!i(e, t) || (!!r(e, t) && (o("equals", e) ? (t[s.equals] || t.equals).call(t, e) : (c[a(e)] || u)(e, t))) ); } e.exports = f; }, 92244: function (e) { e.exports = { alt: "fantasy-land/alt", bimap: "fantasy-land/bimap", chain: "fantasy-land/chain", compose: "fantasy-land/compose", concat: "fantasy-land/concat", contramap: "fantasy-land/contramap", empty: "fantasy-land/empty", equals: "fantasy-land/equals", extend: "fantasy-land/extend", filter: "fantasy-land/filter", id: "fantasy-land/id", map: "fantasy-land/map", of: "fantasy-land/of", promap: "fantasy-land/promap", reduce: "fantasy-land/reduce", zero: "fantasy-land/zero", }; }, 98399: function (e, t, n) { var r = n(23092), i = n(92244); e.exports = function (e, t) { return ( !!t && ((function (e, t) { return r(t[i[e]]) || r(t[e]); })(e, t) || (function (e, t) { return r(t["@@implements"]) && !!t["@@implements"](e); })(e, t)) ); }; }, 79862: function (e) { e.exports = function (e) { return function (t) { return -1 !== e.indexOf(t); }; }; }, 91486: function (e, t, n) { var r = n(8317), i = n(23092), o = n(43945), a = n(43111), s = n(40903), u = n(40415); function c(e) { return e && i(e.inspect) ? " " + e.inspect() : i(e) ? " Function" : r(e) ? " [" + (((t = e).length ? t.map(c).reduce(function (e, t) { return e + "," + t; }) : t) + " ]") : o(e) ? " { " + Object.keys(e) .reduce(function (t, n) { return t.concat([n + ":" + c(e[n])]); }, []) .join(", ") + " }" : a(e) ? ' "' + e + '"' : s(e) || u(e) ? " " + e.toString() : " " + e; var t; } e.exports = c; }, 61510: function (e, t, n) { var r = n(98399), i = n(62497); e.exports = function (e) { return i(e) && (r("of", e) || r("of", e.constructor)); }; }, 62497: function (e, t, n) { var r = n(98399), i = n(12584); e.exports = function (e) { return i(e) && r("ap", e); }; }, 8317: function (e) { e.exports = function (e) { return Array.isArray(e); }; }, 40415: function (e) { e.exports = function (e) { return ( "[object Date]" === Object.prototype.toString.apply(e) && !isNaN(e.valueOf()) ); }; }, 34281: function (e, t, n) { var r = n(43945), i = n(84061), o = n(93548), a = n(92244); e.exports = function (e) { if (i(e)) { var t = e.constructor[a.empty] || e.constructor.empty || e.empty; return o(e, t()); } return r(e) ? !Object.keys(e).length : !e || void 0 === e.length || !e.length; }; }, 57778: function (e, t, n) { var r = n(98399); e.exports = function (e) { return !!e && r("reduce", e); }; }, 23092: function (e) { e.exports = function (e) { return "function" == typeof e; }; }, 12584: function (e, t, n) { var r = n(98399); e.exports = function (e) { return !!e && r("map", e); }; }, 52387: function (e, t, n) { var r = n(51544); e.exports = function (e) { return r(e) && isFinite(e) && Math.floor(e) === e; }; }, 84061: function (e, t, n) { var r = n(98399), i = n(85504); e.exports = function (e) { return i(e) && (r("empty", e) || r("empty", e.constructor)); }; }, 51544: function (e) { e.exports = function (e) { return "number" == typeof e && !isNaN(e); }; }, 43945: function (e) { var t = Object.prototype.toString; e.exports = function (e) { return !!e && "[object Object]" === t.call(e); }; }, 83606: function (e, t, n) { var r = n(23092); e.exports = function (e) { return !!e && r(e.then) && r(e.catch); }; }, 97922: function (e) { e.exports = function (e, t) { return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t; }; }, 28950: function (e, t, n) { var r = n(92955), i = n(23092), o = n(8761); e.exports = r(function (e, t) { var n = o(e), r = o(t); return n === r || (i(e) && e.name === r) || (i(t) && t.name === n); }); }, 85504: function (e, t, n) { var r = n(43111), i = n(98399); e.exports = function (e) { return r(e) || (!!e && i("concat", e)); }; }, 43111: function (e) { e.exports = function (e) { return "string" == typeof e; }; }, 40903: function (e) { e.exports = function (e) { return "symbol" == typeof e; }; }, 55769: function (e, t, n) { var r = n(23092); e.exports = function (e, t) { return r(t) && (e === t || e.name === t.name); }; }, 57598: function (e) { e.exports = function (e) { var t, n; return function () { return t || ((t = !0), (n = e.apply(null, arguments))), n; }; }; }, 8761: function (e, t, n) { var r = n(23092); e.exports = function (e) { return e && r(e.type) ? e.type() : {}.toString.call(e).slice(8, -1); }; }, 22876: function (e) { var t = { unk: function () { return "unknown"; }, All: function () { return "All"; }, Any: function () { return "Any"; }, Arrow: function () { return "Arrow"; }, Assign: function () { return "Assign"; }, Async: function () { return "Async"; }, Const: function (e) { return "Const(" + e + ")"; }, Either: function () { return "Either"; }, Endo: function () { return "Endo"; }, Equiv: function () { return "Equiv"; }, First: function () { return "First"; }, Identity: function () { return "Identity"; }, IO: function () { return "IO"; }, Last: function () { return "Last"; }, List: function () { return "List"; }, Max: function () { return "Max"; }, Maybe: function () { return "Maybe"; }, Min: function () { return "Min"; }, Pair: function () { return "Pair"; }, Pred: function () { return "Pred"; }, Prod: function () { return "Prod"; }, Reader: function () { return "Reader"; }, Result: function () { return "Result"; }, Star: function () { return "Star"; }, State: function () { return "State"; }, Sum: function () { return "Sum"; }, Tuple: function (e) { return e + "-Tuple"; }, Unit: function () { return "Unit"; }, Writer: function () { return "Writer"; }, }, n = function (e) { return t[e] || t.unk; }; e.exports = { proxy: function (e, t) { return { type: function () { return n(e)(t); }, }; }, type: n, typeFn: function (e, t, r) { return "crocks/" + n(e)(r) + "@" + (t || 0); }, }; }, 96249: function (e, t, n) { (t.action = n(54769)), n(47697), (t.error = n(82769)), (t.handle = n(54345)), n(6154), (t.onSuccess = n(11869)), (t.sideEffect = n(21159)); }, 54769: function (e, t, n) { var r = n(43825); e.exports = r(function (e, t) { return { type: e, payload: t }; }); }, 47697: function (e, t, n) { var r = n(43825); e.exports = r(function (e, t) { return [t, e]; }); }, 82769: function (e, t, n) { var r = n(43825); e.exports = r(function (e, t) { return { type: e, payload: t, error: !0 }; }); }, 54345: function (e, t, n) { var r = n(43825); e.exports = r(function (e, t) { return function (n, r) { void 0 === n && (n = e); var i = r.type, o = r.payload, a = r.error; return t[i] ? t[i](n, o, a) : n; }; }); }, 6154: function (e) { e.exports = function (e, t, n) { return n && console.error(t), e; }; }, 11869: function (e) { e.exports = function (e) { return function (t, n, r) { return r ? t : e(t, n); }; }; }, 21159: function (e, t, n) { var r = n(67125), i = n(59146); e.exports = function (e) { return i(e).map(r({ type: "SIDE_EFFECT" })); }; }, 59146: function (e, t, n) { var r = n(63707), i = n(98652), o = n(66473).type("IO"), a = n(95097), s = n(85998), u = n(21064), c = function (e) { return l(function () { return e; }); }; function l(e) { if (!s(e)) throw new TypeError("IO: Must wrap a function"); function t(t) { if (!s(t)) throw new TypeError("IO.chain: Function required"); return l(function () { var n = t(e()); if (!u(l, n)) throw new TypeError("IO.chain: Function must return an IO"); return n.run(); }); } return { inspect: function () { return "IO" + i(e); }, run: e, type: o, map: function (t) { if (!s(t)) throw new TypeError("IO.map: Function required"); return l(a(t, e)); }, ap: function (e) { if (!u(l, e)) throw new TypeError("IO.ap: IO required"); return t(function (t) { return e.map(t); }); }, of: c, chain: t, }; } (l.of = c), (l.type = o), (l["@@implements"] = r(["ap", "chain", "map", "of"])), (e.exports = l); }, 67125: function (e, t, n) { var r = n(26182); e.exports = r(n(31701)); }, 96956: function (e) { e.exports = function (e) { return Array.prototype.slice.call(e); }; }, 95097: function (e) { e.exports = function (e, t) { return function (n) { return e(t(n)); }; }; }, 31701: function (e) { e.exports = function (e) { return function () { return e; }; }; }, 26182: function (e, t, n) { var r = n(96956), i = n(85998); function o(e, t) { return i(e) ? (e.length > 1 ? e.bind(null, t) : e.call(null, t)) : e; } e.exports = function e(t) { return function () { var n = r(arguments), a = n.length ? n : [void 0]; if (a.length < t.length) return e(Function.bind.apply(t, [null].concat(a))); var s = a.length === t.length ? t.apply(null, a) : a.reduce(o, t); return i(s) ? e(s) : s; }; }; }, 63707: function (e) { e.exports = function (e) { return function (t) { return -1 !== e.indexOf(t); }; }; }, 98652: function (e, t, n) { var r = n(80434), i = n(85998), o = n(16626), a = n(58570); function s(e) { return e && i(e.inspect) ? " " + e.inspect() : i(e) ? " Function" : r(e) ? " [" + (((t = e).length ? t.map(s).reduce(function (e, t) { return e + "," + t; }) : t) + " ]") : o(e) ? " {}" : a(e) ? ' "' + e + '"' : " " + e; var t; } e.exports = s; }, 80434: function (e) { e.exports = function (e) { return Array.isArray(e); }; }, 85998: function (e) { e.exports = function (e) { return "function" == typeof e; }; }, 65026: function (e) { e.exports = function (e) { return null == e || Number.isNaN(e); }; }, 16626: function (e) { e.exports = function (e) { return !!e && e.toString && "[object Object]" === e.toString(); }; }, 21064: function (e, t, n) { var r = n(26182), i = n(80434), o = n(85998), a = n(65026); function s(e) { return !!e && o(e.type); } function u(e) { return i(e) ? "array" : typeof e; } e.exports = r(function (e, t) { return s(e) || s(t) ? (function (e, t) { return s(e) && s(t) && e.type() === t.type(); })(e, t) : a(e) || a(t) ? e === t : (function (e, t) { return ( e.name === t.constructor.name || t.name === e.constructor.name ); })(e, t) || u(e) === u(t); }); }, 58570: function (e) { e.exports = function (e) { return "string" == typeof e; }; }, 66473: function (e) { var t = { unk: function () { return "unknown"; }, All: function () { return "All"; }, Any: function () { return "Any"; }, Arrow: function () { return "Arrow"; }, Assign: function () { return "Assign"; }, Async: function () { return "Async"; }, Const: function () { return "Const"; }, Either: function () { return "Either"; }, Endo: function () { return "Endo"; }, First: function () { return "First"; }, Identity: function () { return "Identity"; }, IO: function () { return "IO"; }, Last: function () { return "Last"; }, List: function () { return "List"; }, Max: function () { return "Max"; }, Maybe: function () { return "Maybe"; }, Min: function () { return "Min"; }, Pair: function () { return "Pair"; }, Pred: function () { return "Pred"; }, Prod: function () { return "Prod"; }, Reader: function () { return "Reader"; }, Result: function () { return "Result"; }, Star: function () { return "Star"; }, State: function () { return "State"; }, Sum: function () { return "Sum"; }, Unit: function () { return "Unit"; }, Writer: function () { return "Writer"; }, }, n = function (e) { return t[e] || t.unk; }; e.exports = { proxy: function (e) { return { type: n(e) }; }, type: n, }; }, 43825: function (e, t, n) { var r = n(26182), i = n(85998); e.exports = function (e) { if (!i(e)) throw new TypeError("curry: Function required"); return r(e); }; }, 22673: function (e, t, n) { var r = n(4240), i = n(30449), o = function (e) { for (var t = [], n = arguments.length - 1; n-- > 0; ) t[n] = arguments[n + 1]; var i = function (e) { var n = typeof e; return "function" === n ? e.apply(void 0, t) : e && "object" === n ? o.apply(void 0, [e].concat(t)) : e; }; return r(i, e); }; e.exports = i(o); }, 37990: function (e, t, n) { var r = n(87988), i = n(79762), o = n(54456), a = n(44216); e.exports = a(3, function (e, t) { return i(r(e), [t, o]); }); }, 30449: function (e, t, n) { var r = n(12637), i = n(15866), o = n(96323), a = n(48215), s = n(48283), u = n(4240), c = n(81250), l = n(47929), f = n(3189), d = o(function (e, t) { return typeof t === e; }), p = function (e) { return l(u(h), Math.max, 0, f(e)); }, h = i([ [d("object"), p], [d("function"), s], [c, r(0)], ]); e.exports = o(function (e, t) { for (var n = [], r = arguments.length - 2; r-- > 0; ) n[r] = arguments[r + 2]; var i = p(t), o = a(i + 1, e); return 0 === n.length ? 0 === i ? function () { for (var e = [], n = arguments.length; n--; ) e[n] = arguments[n]; return o.apply(void 0, [t].concat(e)); } : o(t) : o.apply(void 0, [t].concat(n)); }); }, 8727: function (e, t, n) { var r = n(87988), i = n(79762), o = n(69868), a = n(26039), s = n(3273), u = n(44216), c = n(45724); e.exports = u(3, function (e, t) { return c(a(e), i(r(t), [s(e), o(e)])); }); }, 62023: function (e, t, n) { var r = n(96323), i = function (e, t) { for (var n in ((t = Object.assign({}, t)), e)) if (n in t) { var r = e[n]; "object" == typeof r ? (t[n] = i(r, t[n])) : ((t[r] = t[n]), delete t[n]); } return t; }; e.exports = r(i); }, 81250: function (e, t, n) { var r = n(12637)(!0); e.exports = r; }, 12637: function (e, t, n) { var r = n(38151)(function (e) { return function () { return e; }; }); e.exports = r; }, 87988: function (e, t, n) { var r = n(34525)(function (e, t, n) { var r = {}; for (var i in n) r[i] = n[i]; return (r[e] = t), r; }); e.exports = r; }, 61232: function (e, t, n) { var r = n(65102), i = n(22909)(function (e, t) { return r(e.length, function () { return e.apply(t, arguments); }); }); e.exports = i; }, 15866: function (e, t, n) { var r = n(65102), i = n(38151), o = n(4240), a = n(26188), s = n(53330), u = i(function (e) { var t = s( a, 0, o(function (e) { return e[0].length; }, e) ); return r(t, function () { for (var t = 0; t < e.length; ) { if (e[t][0].apply(this, arguments)) return e[t][1].apply(this, arguments); t += 1; } }); }); e.exports = u; }, 79762: function (e, t, n) { var r = n(22909), i = n(48624), o = n(48215), a = n(26188), s = n(30387), u = n(53330), c = r(function (e, t) { return o(u(a, 0, s("length", t)), function () { var n = arguments, r = this; return e.apply( r, i(function (e) { return e.apply(r, n); }, t) ); }); }); e.exports = c; }, 96323: function (e, t, n) { var r = n(38151), i = n(48215), o = r(function (e) { return i(e.length, e); }); e.exports = o; }, 48215: function (e, t, n) { var r = n(65102), i = n(38151), o = n(22909), a = n(10593), s = o(function (e, t) { return 1 === e ? i(t) : r(e, a(e, [], t)); }); e.exports = s; }, 69868: function (e, t, n) { var r = n(22909)(function (e, t) { var n = {}; for (var r in t) n[r] = t[r]; return delete n[e], n; }); e.exports = r; }, 26039: function (e, t, n) { var r = n(22909)(function (e, t) { return e in t; }); e.exports = r; }, 54456: function (e, t, n) { var r = n(38151)(n(80975)); e.exports = r; }, 65102: function (e) { e.exports = function (e, t) { switch (e) { case 0: return function () { return t.apply(this, arguments); }; case 1: return function (e) { return t.apply(this, arguments); }; case 2: return function (e, n) { return t.apply(this, arguments); }; case 3: return function (e, n, r) { return t.apply(this, arguments); }; case 4: return function (e, n, r, i) { return t.apply(this, arguments); }; case 5: return function (e, n, r, i, o) { return t.apply(this, arguments); }; case 6: return function (e, n, r, i, o, a) { return t.apply(this, arguments); }; case 7: return function (e, n, r, i, o, a, s) { return t.apply(this, arguments); }; case 8: return function (e, n, r, i, o, a, s, u) { return t.apply(this, arguments); }; case 9: return function (e, n, r, i, o, a, s, u, c) { return t.apply(this, arguments); }; case 10: return function (e, n, r, i, o, a, s, u, c, l) { return t.apply(this, arguments); }; default: throw new Error( "First argument to _arity must be a non-negative integer no greater than ten" ); } }; }, 38151: function (e, t, n) { var r = n(14816); e.exports = function (e) { return function t(n) { return 0 === arguments.length || r(n) ? t : e.apply(this, arguments); }; }; }, 22909: function (e, t, n) { var r = n(38151), i = n(14816); e.exports = function (e) { return function t(n, o) { switch (arguments.length) { case 0: return t; case 1: return i(n) ? t : r(function (t) { return e(n, t); }); default: return i(n) && i(o) ? t : i(n) ? r(function (t) { return e(t, o); }) : i(o) ? r(function (t) { return e(n, t); }) : e(n, o); } }; }; }, 34525: function (e, t, n) { var r = n(38151), i = n(22909), o = n(14816); e.exports = function (e) { return function t(n, a, s) { switch (arguments.length) { case 0: return t; case 1: return o(n) ? t : i(function (t, r) { return e(n, t, r); }); case 2: return o(n) && o(a) ? t : o(n) ? i(function (t, n) { return e(t, a, n); }) : o(a) ? i(function (t, r) { return e(n, t, r); }) : r(function (t) { return e(n, a, t); }); default: return o(n) && o(a) && o(s) ? t : o(n) && o(a) ? i(function (t, n) { return e(t, n, s); }) : o(n) && o(s) ? i(function (t, n) { return e(t, a, n); }) : o(a) && o(s) ? i(function (t, r) { return e(n, t, r); }) : o(n) ? r(function (t) { return e(t, a, s); }) : o(a) ? r(function (t) { return e(n, t, s); }) : o(s) ? r(function (t) { return e(n, a, t); }) : e(n, a, s); } }; }; }, 10593: function (e, t, n) { var r = n(65102), i = n(14816); e.exports = function e(t, n, o) { return function () { for ( var a = [], s = 0, u = t, c = 0; c < n.length || s < arguments.length; ) { var l; c < n.length && (!i(n[c]) || s >= arguments.length) ? (l = n[c]) : ((l = arguments[s]), (s += 1)), (a[c] = l), i(l) || (u -= 1), (c += 1); } return u <= 0 ? o.apply(this, a) : r(u, e(t, a, o)); }; }; }, 5083: function (e, t, n) { var r = n(66417), i = n(96573); e.exports = function (e, t, n) { return function () { if (0 === arguments.length) return n(); var o = Array.prototype.slice.call(arguments, 0), a = o.pop(); if (!r(a)) { for (var s = 0; s < e.length; ) { if ("function" == typeof a[e[s]]) return a[e[s]].apply(a, o); s += 1; } if (i(a)) { var u = t.apply(null, o); return u(a); } } return n.apply(this, arguments); }; }; }, 41789: function (e) { e.exports = function (e, t) { return Object.prototype.hasOwnProperty.call(t, e); }; }, 80975: function (e) { e.exports = function (e) { return e; }; }, 98256: function (e, t, n) { var r = n(41789), i = Object.prototype.toString; e.exports = function () { return "[object Arguments]" === i.call(arguments) ? function (e) { return "[object Arguments]" === i.call(e); } : function (e) { return r("callee", e); }; }; }, 66417: function (e) { e.exports = Array.isArray || function (e) { return ( null != e && e.length >= 0 && "[object Array]" === Object.prototype.toString.call(e) ); }; }, 29230: function (e, t, n) { var r = n(38151), i = n(66417), o = n(56479), a = r(function (e) { return ( !!i(e) || (!!e && "object" == typeof e && !o(e) && (1 === e.nodeType ? !!e.length : 0 === e.length || (e.length > 0 && e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1)))) ); }); e.exports = a; }, 5366: function (e) { e.exports = function (e) { return "[object Number]" === Object.prototype.toString.call(e); }; }, 14816: function (e) { e.exports = function (e) { return ( null != e && "object" == typeof e && !0 === e["@@functional/placeholder"] ); }; }, 56479: function (e) { e.exports = function (e) { return "[object String]" === Object.prototype.toString.call(e); }; }, 96573: function (e) { e.exports = function (e) { return "function" == typeof e["@@transducer/step"]; }; }, 48624: function (e) { e.exports = function (e, t) { for (var n = 0, r = t.length, i = Array(r); n < r; ) (i[n] = e(t[n])), (n += 1); return i; }; }, 36258: function (e, t, n) { var r = n(29230), i = n(92870), o = n(61232); function a(e, t, n) { for (var r = n.next(); !r.done; ) { if ( (t = e["@@transducer/step"](t, r.value)) && t["@@transducer/reduced"] ) { t = t["@@transducer/value"]; break; } r = n.next(); } return e["@@transducer/result"](t); } function s(e, t, n, r) { return e["@@transducer/result"](n[r](o(e["@@transducer/step"], e), t)); } var u = "undefined" != typeof Symbol ? Symbol.iterator : "@@iterator"; e.exports = function (e, t, n) { if (("function" == typeof e && (e = i(e)), r(n))) return (function (e, t, n) { for (var r = 0, i = n.length; r < i; ) { if ( (t = e["@@transducer/step"](t, n[r])) && t["@@transducer/reduced"] ) { t = t["@@transducer/value"]; break; } r += 1; } return e["@@transducer/result"](t); })(e, t, n); if ("function" == typeof n["fantasy-land/reduce"]) return s(e, t, n, "fantasy-land/reduce"); if (null != n[u]) return a(e, t, n[u]()); if ("function" == typeof n.next) return a(e, t, n); if ("function" == typeof n.reduce) return s(e, t, n, "reduce"); throw new TypeError("reduce: list must be array or iterable"); }; }, 46417: function (e) { e.exports = { init: function () { return this.xf["@@transducer/init"](); }, result: function (e) { return this.xf["@@transducer/result"](e); }, }; }, 85833: function (e, t, n) { var r = n(22909), i = n(46417), o = (function () { function e(e, t) { (this.xf = t), (this.f = e); } return ( (e.prototype["@@transducer/init"] = i.init), (e.prototype["@@transducer/result"] = i.result), (e.prototype["@@transducer/step"] = function (e, t) { return this.xf["@@transducer/step"](e, this.f(t)); }), e ); })(), a = r(function (e, t) { return new o(e, t); }); e.exports = a; }, 92870: function (e) { var t = (function () { function e(e) { this.f = e; } return ( (e.prototype["@@transducer/init"] = function () { throw new Error("init not implemented on XWrap"); }), (e.prototype["@@transducer/result"] = function (e) { return e; }), (e.prototype["@@transducer/step"] = function (e, t) { return this.f(e, t); }), e ); })(); e.exports = function (e) { return new t(e); }; }, 83444: function (e, t, n) { var r = n(38151), i = n(41789), o = n(98256), a = !{ toString: null }.propertyIsEnumerable("toString"), s = [ "constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString", ], u = (function () { "use strict"; return arguments.propertyIsEnumerable("length"); })(), c = function (e, t) { for (var n = 0; n < e.length; ) { if (e[n] === t) return !0; n += 1; } return !1; }, l = r( "function" != typeof Object.keys || u ? function (e) { if (Object(e) !== e) return []; var t, n, r = [], l = u && o(e); for (t in e) !i(t, e) || (l && "length" === t) || (r[r.length] = t); if (a) for (n = s.length - 1; n >= 0; ) i((t = s[n]), e) && !c(r, t) && (r[r.length] = t), (n -= 1); return r; } : function (e) { return Object(e) !== e ? [] : Object.keys(e); } ); e.exports = l; }, 48283: function (e, t, n) { var r = n(38151), i = n(5366), o = r(function (e) { return null != e && i(e.length) ? e.length : NaN; }); e.exports = o; }, 4240: function (e, t, n) { var r = n(22909), i = n(5083), o = n(48624), a = n(36258), s = n(85833), u = n(48215), c = n(83444), l = r( i(["fantasy-land/map", "map"], s, function (e, t) { switch (Object.prototype.toString.call(t)) { case "[object Function]": return u(t.length, function () { return e.call(this, t.apply(this, arguments)); }); case "[object Object]": return a( function (n, r) { return (n[r] = e(t[r])), n; }, {}, c(t) ); default: return o(e, t); } }) ); e.exports = l; }, 26188: function (e, t, n) { var r = n(22909)(function (e, t) { return t > e ? t : e; }); e.exports = r; }, 47229: function (e, t, n) { var r = n(22909)(function (e, t) { for (var n = t, r = 0; r < e.length; ) { if (null == n) return; (n = n[e[r]]), (r += 1); } return n; }); e.exports = r; }, 30387: function (e, t, n) { var r = n(22909), i = n(4240), o = n(3273), a = r(function (e, t) { return i(o(e), t); }); e.exports = a; }, 3273: function (e, t, n) { var r = n(22909), i = n(47229), o = r(function (e, t) { return i([e], t); }); e.exports = o; }, 53330: function (e, t, n) { var r = n(34525)(n(36258)); e.exports = r; }, 47929: function (e, t, n) { var r = n(36258), i = n(92870), o = n(48215)(4, function (e, t, n, o) { return r(e("function" == typeof t ? i(t) : t), n, o); }); e.exports = o; }, 44216: function (e, t, n) { var r = n(22909), i = n(48215), o = r(function (e, t) { return i(e, function () { for (var n, r = 1, i = t, o = 0; r <= e && "function" == typeof i; ) (n = r === e ? arguments.length : o + i.length), (i = i.apply( this, Array.prototype.slice.call(arguments, o, n) )), (r += 1), (o = n); return i; }); }); e.exports = o; }, 3189: function (e, t, n) { var r = n(38151), i = n(83444), o = r(function (e) { for (var t = i(e), n = t.length, r = [], o = 0; o < n; ) (r[o] = e[t[o]]), (o += 1); return r; }); e.exports = o; }, 45724: function (e, t, n) { var r = n(34525)(function (e, t, n) { return e(n) ? t(n) : n; }); e.exports = r; }, 33072: function (e, t, n) { "use strict"; t.Z = void 0; var r, i = (function (e) { if (e && e.__esModule) return e; if (null === e || ("object" !== s(e) && "function" != typeof e)) return { default: e }; var t = a(); if (t && t.has(e)) return t.get(e); var n = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var i in e) if (Object.prototype.hasOwnProperty.call(e, i)) { var o = r ? Object.getOwnPropertyDescriptor(e, i) : null; o && (o.get || o.set) ? Object.defineProperty(n, i, o) : (n[i] = e[i]); } (n.default = e), t && t.set(e, n); return n; })(n(28416)), o = (r = n(90285)) && r.__esModule ? r : { default: r }; function a() { if ("function" != typeof WeakMap) return null; var e = new WeakMap(); return ( (a = function () { return e; }), e ); } function s(e) { return ( (s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }), s(e) ); } function u(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (t) { return Object.getOwnPropertyDescriptor(e, t).enumerable; })), n.push.apply(n, r); } return n; } function c(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? u(Object(n), !0).forEach(function (t) { l(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u(Object(n)).forEach(function (t) { Object.defineProperty( e, t, Object.getOwnPropertyDescriptor(n, t) ); }); } return e; } function l(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = n), e ); } function f(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } function d(e, t) { return ( (d = Object.setPrototypeOf || function (e, t) { return (e.__proto__ = t), e; }), d(e, t) ); } function p(e) { var t = (function () { if ("undefined" == typeof Reflect || !Reflect.construct) return !1; if (Reflect.construct.sham) return !1; if ("function" == typeof Proxy) return !0; try { return ( Date.prototype.toString.call( Reflect.construct(Date, [], function () {}) ), !0 ); } catch (e) { return !1; } })(); return function () { var n, r = m(e); if (t) { var i = m(this).constructor; n = Reflect.construct(r, arguments, i); } else n = r.apply(this, arguments); return h(this, n); }; } function h(e, t) { return !t || ("object" !== s(t) && "function" != typeof t) ? g(e) : t; } function g(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } function m(e) { return ( (m = Object.setPrototypeOf ? Object.getPrototypeOf : function (e) { return e.__proto__ || Object.getPrototypeOf(e); }), m(e) ); } var y = (function (e) { !(function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function" ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 }, })), t && d(e, t); })(s, e); var t, n, r, a = p(s); function s(e) { var t; return ( (function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, s), ((t = a.call(this, e)).state = {}), (t.setDimensions = t.setDimensions.bind(g(t))), (t.shouldBeFullWidth = t.shouldBeFullWidth.bind(g(t))), (t.getParentDimensions = t.getParentDimensions.bind(g(t))), (t.addTabTrapListeners = t.addTabTrapListeners.bind(g(t))), (t.getFocusableElementsFromControl = t.getFocusableElementsFromControl.bind(g(t))), (t.getVisibleControls = t.getVisibleControls.bind(g(t))), (t.trapFocusForward = t.trapFocusForward.bind(g(t))), (t.addTrapFocusForwardEvent = t.addTrapFocusForwardEvent.bind( g(t) )), (t.removeTrapFocusForwardEvent = t.removeTrapFocusForwardEvent.bind( g(t) )), (t.trapFocusReverse = t.trapFocusReverse.bind(g(t))), (t.addTrapFocusReverseEvent = t.addTrapFocusReverseEvent.bind( g(t) )), (t.removeTrapFocusReverseEvent = t.removeTrapFocusReverseEvent.bind( g(t) )), (t.trapFocusReverseBigPlayButton = t.trapFocusReverseBigPlayButton.bind(g(t))), (t.addTrapFocusReverseEventBigPlayButton = t.addTrapFocusReverseEventBigPlayButton.bind(g(t))), (t.removeTrapFocusReverseEventBigPlayButton = t.removeTrapFocusReverseEventBigPlayButton.bind(g(t))), t ); } return ( (t = s), (r = [ { key: "defaultProps", get: function () { return { aspectRatio: 9 / 16, fullWidth: !1, fullWidthAt: 0, options: { preload: "auto", controls: !0, controlBar: { remainingTimeDisplay: !0, children: [ "playToggle", "currentTimeDisplay", "timeDivider", "durationDisplay", "progressControl", "liveDisplay", "seekToLive", "remainingTimeDisplay", "customControlSpacer", "playbackRateMenuButton", "chaptersButton", "descriptionsButton", "subsCapsButton", "audioTrackButton", "fullscreenToggle", "volumePanel", ], volumePanel: { inline: !1 }, }, }, }; }, }, ]), (n = [ { key: "componentDidMount", value: function () { window.addEventListener("resize", this.setDimensions), (this.player = (0, o.default)( this.video, this.options, function () { this.on("ended", function () { this.posterImage.show(), this.bigPlayButton.show(), this.currentTime(0); }); } )), this.player.on("fullscreenchange", this.addTabTrapListeners), this.setDimensions(); }, }, { key: "componentWillUnmount", value: function () { this.player && this.player.dispose(), window.removeEventListener("resize", this.setDimensions); }, }, { key: "addTabTrapListeners", value: function () { var e = this.getVisibleControls(), t = e[e.length - 1], n = e[0], r = this.player.getChild("BigPlayButton"); document.fullscreenElement && (r.on("focus", this.addTrapFocusReverseEventBigPlayButton), r.on("blur", this.removeTrapFocusReverseEventBigPlayButton), n.on("focus", this.addTrapFocusReverseEvent), n.on("blur", this.removeTrapFocusReverseEvent), t.on("focus", this.addTrapFocusForwardEvent), t.on("blur", this.removeTrapFocusForwardEvent)), document.fullscreenElement || (r.off("focus", this.addTrapFocusReverseEventBigPlayButton), r.off( "blur", this.removeTrapFocusReverseEventBigPlayButton ), this.removeTrapFocusReverseEventBigPlayButton(), n.off("focus", this.addTrapFocusReverseEvent), n.off("blur", this.removeTrapFocusReverseEvent), this.removeTrapFocusReverseEvent(), t.off("focus", this.addTrapFocusForwardEvent), t.off("blur", this.removeTrapFocusForwardEvent), this.removeTrapFocusForwardEvent()); }, }, { key: "getParentPadding", value: function () { var e = window.getComputedStyle( this.container.parentNode, null ), t = function (e, t) { return parseInt(e.getPropertyValue(t), 10) || 0; }; return { top: t(e, "padding-top"), bottom: t(e, "padding-bottom"), }; }, }, { key: "getParentDimensions", value: function () { var e = this.container.parentNode.getBoundingClientRect(), t = e.width, n = e.height, r = this.getParentPadding(); return { parentHeight: n - r.top - r.bottom, parentWidth: t }; }, }, { key: "getFocusableElementsFromControl", value: function (e) { return "VolumePanel" === e.name() ? e.children().flatMap(function (e) { return e.children(); }) : e; }, }, { key: "getVisibleControls", value: function () { return this.player .getChild("ControlBar") .children() .flatMap(this.getFocusableElementsFromControl) .filter(function (e) { return !e.el().classList.contains("vjs-hidden"); }); }, }, { key: "trapFocusForward", value: function (e) { "Tab" !== e.key || e.shiftKey || (e.preventDefault(), this.player.getAttribute("class").includes("vjs-playing") ? this.getVisibleControls()[0].focus() : this.player.getChild("BigPlayButton").focus()); }, }, { key: "addTrapFocusForwardEvent", value: function () { document.addEventListener("keydown", this.trapFocusForward); }, }, { key: "removeTrapFocusForwardEvent", value: function () { var e = this; setTimeout(function () { document.removeEventListener("keydown", e.trapFocusForward); }, 1); }, }, { key: "trapFocusReverse", value: function (e) { if ("Tab" === e.key && e.shiftKey) if ( (e.preventDefault(), this.player.getAttribute("class").includes("vjs-playing")) ) { var t = this.getVisibleControls(); t[t.length - 1].focus(); } else this.player.getChild("BigPlayButton").focus(); }, }, { key: "addTrapFocusReverseEvent", value: function () { document.addEventListener("keydown", this.trapFocusReverse); }, }, { key: "removeTrapFocusReverseEvent", value: function () { var e = this; setTimeout(function () { document.removeEventListener("keydown", e.trapFocusReverse); }, 1); }, }, { key: "trapFocusReverseBigPlayButton", value: function (e) { if ("Tab" === e.key && e.shiftKey) { e.preventDefault(); var t = this.getVisibleControls(); t[t.length - 1].focus(); } }, }, { key: "addTrapFocusReverseEventBigPlayButton", value: function () { document.addEventListener( "keydown", this.trapFocusReverseBigPlayButton ); }, }, { key: "removeTrapFocusReverseEventBigPlayButton", value: function () { var e = this; setTimeout(function () { document.removeEventListener( "keydown", e.trapFocusReverseBigPlayButton ); }, 1); }, }, { key: "render", value: function () { var e = this, t = { className: "video-js vjs-default-skin", ref: function (t) { e.video = t; }, poster: this.props.poster, }; return ( this.props.crossOrigin && (t.crossOrigin = this.props.crossOrigin), i.default.createElement( "div", { className: "videoContainer", style: this.state.dimensions, ref: function (t) { e.container = t; }, }, i.default.createElement("video", t, this.props.children) ) ); }, }, { key: "shouldBeFullWidth", value: function () { var e = this.props, t = e.aspectRatio, n = e.fullWidth, r = e.fullWidthAt, i = this.getParentDimensions(), o = i.parentWidth, a = i.parentHeight; return n || o * t <= a || (r && window.innerWidth < r); }, }, { key: "setDimensions", value: function () { var e = this.props.aspectRatio, t = this.getParentDimensions(), n = t.parentWidth, r = t.parentHeight, i = this.shouldBeFullWidth(), o = i ? n : r / e, a = i ? n * e : r; this.setState({ dimensions: { width: o, height: a } }); }, }, { key: "snapshot", value: function () { var e = document.createElement("canvas"), t = e.getContext("2d"), n = this.player.videoHeight(), r = this.player.videoWidth(); return ( (e.width = r), (e.height = n), t.drawImage(this.video, 0, 0, r, n), e.toDataURL("image/png") ); }, }, { key: "options", get: function () { var e, t, n; return ( null === (e = this.props.options) || void 0 === e || null === (t = e.controlBar) || void 0 === t ? void 0 : t.children ) ? this.props.options : c( c({}, this.props.options), {}, { controlBar: c( c( {}, null === (n = this.props.options) || void 0 === n ? void 0 : n.controlBar ), {}, { children: this.constructor.defaultProps.options.controlBar .children, } ), } ); }, }, ]) && f(t.prototype, n), r && f(t, r), s ); })(i.Component); t.Z = y; }, 22908: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.BlockSettingsType = void 0); const r = n(2098); t.BlockSettingsType = r.Type.Record(r.Type.String(), r.Type.Any()); }, 44389: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertCourse = t.isCourse = t.CourseType = void 0); const r = n(2098), i = n(91124), o = n(61999), a = n(45234); (t.CourseType = r.Type.Object({ id: r.Type.Union([r.Type.String(), r.Type.Number()]), originalId: r.Type.Optional(r.Type.String()), author: r.Type.Optional(r.Type.String()), selectedAuthorId: r.Type.String(), color: r.Type.String(), title: r.Type.String(), sharePassword: r.Type.String(), description: r.Type.String(), copyOf: r.Type.Optional(r.Type.String()), order: r.Type.BigInt(), media: r.Type.Record(r.Type.String(), o.MediaAnyType), lessons: r.Type.Array(r.Type.String()), jobs: r.Type.Array(r.Type.String()), labelSetId: r.Type.String(), deleted: r.Type.Boolean(), createdAt: r.Type.Date(), updatedAt: r.Type.Date(), markComplete: r.Type.Boolean(), isDefault: r.Type.Boolean(), ready: r.Type.Boolean(), reviewId: r.Type.String(), exportSettings: r.Type.Record(r.Type.String(), r.Type.Any()), headingTypefaceId: r.Type.Optional(r.Type.String()), bodyTypefaceId: r.Type.Optional(r.Type.String()), uiTypefaceId: r.Type.Optional(r.Type.String()), tenantId: r.Type.Optional(r.Type.String()), showLessonCount: r.Type.Boolean(), showNavigationButtons: r.Type.Boolean(), allowSearch: r.Type.Boolean(), animateBlockEntrance: r.Type.Boolean(), transferredAt: r.Type.Optional(r.Type.Date()), allowCopy: r.Type.Boolean(), enableVideoPlaybackSpeed: r.Type.Boolean(), jobType: r.Type.Optional(r.Type.String()), partnerContentId: r.Type.Optional(r.Type.String()), theme: r.Type.Optional(i.CourseThemeType), type: r.Type.Optional(r.Type.Literal("onePage")), features: r.Type.Record(r.Type.String(), r.Type.Boolean()), mondrian: r.Type.Optional(r.Type.Unknown()), lastImportedXliff: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Null()]) ), locale: r.Type.Optional(r.Type.Union([r.Type.String(), r.Type.Null()])), sourceCourseLocaleId: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Number(), r.Type.Null()]) ), experiments: r.Type.Optional( r.Type.Union([ r.Type.Record(r.Type.String(), r.Type.Unknown()), r.Type.Null(), ]) ), navigationMode: r.Type.Union([ r.Type.Literal("restricted"), r.Type.Literal("free"), ]), fonts: r.Type.Optional( r.Type.Object({ ui: r.Type.Record(r.Type.Literal("font"), r.Type.String()), body: r.Type.Record(r.Type.Literal("font"), r.Type.String()), headings: r.Type.Record(r.Type.Literal("font"), r.Type.String()), }) ), coverImage: r.Type.Optional( r.Type.Object({ alpha: r.Type.Optional( r.Type.Integer({ minimum: 0, maximum: 100 }) ), displaySidebar: r.Type.Optional(r.Type.Boolean()), media: o.MediaImageRecordType, }) ), sidebarMode: r.Type.Union([ r.Type.Literal("closed"), r.Type.Literal("open"), r.Type.Literal("hidden"), ]), cardImage: r.Type.Optional( r.Type.Object({ media: o.MediaImageRecordType }) ), lessonHeaderImage: r.Type.Optional( r.Type.Object({ alpha: r.Type.Optional(r.Type.Number({ minimum: 0, maximum: 1 })), media: o.MediaImageRecordType, overlayColor: r.Type.Optional( r.Type.Union([ r.Type.Literal("LIGHT"), r.Type.Literal("DARK"), r.Type.Literal("ACCENT"), ]) ), }) ), overlayNavigationImage: r.Type.Optional( r.Type.Object({ alpha: r.Type.Optional(r.Type.Number({ minimum: 0, maximum: 1 })), media: o.MediaImageRecordType, }) ), })), (t.isCourse = (0, a.makeIsFunction)(t.CourseType)), (t.assertCourse = (0, a.makeAssertFunction)(t.CourseType)); }, 91124: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.CourseThemeType = void 0); const r = n(2098); t.CourseThemeType = r.Type.Object({ themeId: r.Type.String(), allowSearch: r.Type.Boolean(), animateBlockEntrance: r.Type.Boolean(), blockCorners: r.Type.Union([ r.Type.Literal("ROUNDED"), r.Type.Literal("SQUARED"), ]), blockPaddingBottom: r.Type.Integer({ minimum: 0 }), blockPaddingTop: r.Type.Integer({ minimum: 0 }), colorAccent: r.Type.String(), compactShowLessonCount: r.Type.Boolean(), coverImage: r.Type.String(), coverImageAlpha: r.Type.Integer({ minimum: 0, maximum: 100 }), coverImageDefault: r.Type.String(), enableVideoPlaybackSpeed: r.Type.Boolean(), hideCoverPage: r.Type.Boolean(), hideLessonHeaders: r.Type.Boolean(), lessonHeaderColor: r.Type.Optional(r.Type.String()), lessonHeaderImage: r.Type.String(), lessonHeaderImageAlpha: r.Type.Number({ minimum: 0, maximum: 1 }), navigation: r.Type.Boolean(), navigationRestricted: r.Type.Boolean(), showAuthor: r.Type.Boolean(), showLessonCount: r.Type.Boolean(), showNavigationButtons: r.Type.Boolean(), sidebarStartsOpen: r.Type.Boolean(), bodyTypefaceId: r.Type.String(), headingTypefaceId: r.Type.String(), uiTypefaceId: r.Type.String(), buttonScheme: r.Type.Union([ r.Type.Literal("ACCENT"), r.Type.Literal("DARK"), r.Type.Literal("LIGHT"), r.Type.Literal("TINT"), ]), coverPageType: r.Type.Union([ r.Type.Literal("ACCENT"), r.Type.Literal("CENTERED"), r.Type.Literal("CENTERED_ACCENT_TINT"), r.Type.Literal("CENTERED_OVERLAY"), r.Type.Literal("CENTERED_IMAGE"), r.Type.Literal("IMAGE"), r.Type.Literal("LEFT"), r.Type.Literal("LEFT_OVERLAY"), r.Type.Literal("SPLIT_LEFT"), r.Type.Literal("SPLIT_LEFT_IMAGE"), r.Type.Literal("SPLIT_RIGHT"), r.Type.Literal("SPLIT_RIGHT_IMAGE"), r.Type.Literal("TWO_THIRDS_LEFT_IMAGE"), r.Type.Literal("TWO_THIRDS_RIGHT_IMAGE"), r.Type.Literal("WHITE"), ]), accentContrast: r.Type.Union([ r.Type.Literal("AUTO"), r.Type.Literal("BLACK"), r.Type.Literal("LIGHT"), r.Type.Literal("DARK"), ]), navigationType: r.Type.Union([ r.Type.Literal("COMPACT"), r.Type.Literal("OVERLAY"), r.Type.Literal("SIDEBAR"), ]), navigationStyle: r.Type.Union([ r.Type.Literal("DARK"), r.Type.Literal("DARK_ACCENT"), r.Type.Literal("DARK_IMAGE"), r.Type.Literal("LIGHT"), r.Type.Literal("LIGHT_ACCENT"), r.Type.Literal("LIGHT_IMAGE"), ]), lessonHeaderSize: r.Type.Union([ r.Type.Literal("LARGE"), r.Type.Literal("MEDIUM"), r.Type.Literal("SMALL"), ]), buttonInlineStyle: r.Type.Union([ r.Type.Literal("ROUNDED"), r.Type.Literal("SQUARED"), ]), lessonHeaderStyle: r.Type.Union([ r.Type.Literal("ACCENT"), r.Type.Literal("BLACK"), r.Type.Literal("COLOR"), r.Type.Literal("DARK"), r.Type.Literal("GRAY"), r.Type.Literal("IMAGE"), r.Type.Literal("LIGHT"), r.Type.Literal("TINT"), ]), buttonNavigationStyle: r.Type.Union([ r.Type.Literal("FULL"), r.Type.Literal("FLOATING"), r.Type.Literal("FLOATING_FULL"), ]), lessonHeaderImageColor: r.Type.Union([ r.Type.Literal("ACCENT"), r.Type.Literal("DARK"), r.Type.Literal("LIGHT"), ]), customColorLessonHeaderContrast: r.Type.Union([ r.Type.Literal("AUTO"), r.Type.Literal("BLACK"), r.Type.Literal("LIGHT"), r.Type.Literal("DARK"), ]), blockNavigationType: r.Type.Optional( r.Type.Union([r.Type.Literal("CONTINOUS"), r.Type.Literal("STEPPED")]) ), coverImageColor: r.Type.Optional( r.Type.Union([ r.Type.Literal("ACCENT"), r.Type.Literal("DARK"), r.Type.Literal("LIGHT"), ]) ), }); }, 59050: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.FontType = void 0); const r = n(2098); t.FontType = r.Type.Object({ default: r.Type.Boolean(), id: r.Type.Union([r.Type.String(), r.Type.Number()]), key: r.Type.String(), name: r.Type.String(), style: r.Type.String(), weight: r.Type.String(), }); }, 25993: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.LabelSetType = void 0); const r = n(2098), i = n(86178); t.LabelSetType = r.Type.Object({ author: r.Type.Optional(r.Type.String()), createdAt: r.Type.String(), defaultId: r.Type.Optional(r.Type.Number()), defaultSet: r.Type.Boolean(), deleted: r.Type.Boolean(), id: r.Type.String(), iso639Code: r.Type.String(), labels: i.LabelsType, name: r.Type.String(), transferredAt: r.Type.Optional(r.Type.String()), updatedAt: r.Type.String(), }); }, 86178: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.LabelsType = void 0); const r = n(2098); t.LabelsType = r.Type.Object({ a11yAnswerLive: r.Type.String(), a11yAuthorPrefix: r.Type.String(), a11yBlockChartBar: r.Type.String(), a11yBlockChartLine: r.Type.String(), a11yBlockChartPie: r.Type.String(), a11yBlockCode: r.Type.String(), a11yBlockEmbed: r.Type.String(), a11yBlockFlashcardBack: r.Type.String(), a11yBlockFlashcardFront: r.Type.String(), a11yBlockFlashcardGrid: r.Type.String(), a11yBlockFlashcardStack: r.Type.String(), a11yBlockKnowledgeCheck: r.Type.String(), a11yBlockKnowledgeCheckFIB: r.Type.String(), a11yBlockKnowledgeCheckM: r.Type.String(), a11yBlockKnowledgeCheckMC: r.Type.String(), a11yBlockKnowledgeCheckMR: r.Type.String(), a11yBlockQuoteCarousel: r.Type.String(), a11yBlockQuoteCarouselRoleDescription: r.Type.String(), a11yBlockQuoteCarouselSlideControls: r.Type.String(), a11yBlockQuoteCarouselSlideControlsGoToNext: r.Type.String(), a11yBlockQuoteCarouselSlideControlsGoToPrevious: r.Type.String(), a11yBlockQuoteCarouselSlideControlsGoToSlide: r.Type.String(), a11yBlockQuoteCarouselSlidePreposition: r.Type.String(), a11yBlockQuoteCarouselSlideRoleDescription: r.Type.String(), a11yBlockStoryline: r.Type.String(), a11yBlockTimeline: r.Type.String(), a11yCarouselNext: r.Type.String(), a11yCarouselPrevious: r.Type.String(), a11yCorrectLive: r.Type.String(), a11yExcelIcon: r.Type.String(), a11yFileIcon: r.Type.String(), a11yGroupAudioPlayer: r.Type.String(), a11yGroupVideoPlayer: r.Type.String(), a11yLabeledGraphicBlock: r.Type.String(), a11yLabeledGraphicButtonMarker: r.Type.String(), a11yLabeledGraphicIconPlus: r.Type.String(), a11yLabeledGraphicIconDot: r.Type.String(), a11yLabeledGraphicIconInformation: r.Type.String(), a11yLabeledGraphicIconQuestion: r.Type.String(), a11yLabeledGraphicIconCheck: r.Type.String(), a11yLabeledGraphicIconX: r.Type.String(), a11yLabeledGraphicIconHeart: r.Type.String(), a11yLabeledGraphicIconPin: r.Type.String(), a11yLabeledGraphicIconArrowLeft: r.Type.String(), a11yLabeledGraphicIconArrowRight: r.Type.String(), a11yLabeledGraphicIconArrowUp: r.Type.String(), a11yLabeledGraphicIconArrowDown: r.Type.String(), a11yLabeledGraphicIconArrowUpLeft: r.Type.String(), a11yLabeledGraphicIconArrowUpRight: r.Type.String(), a11yLabeledGraphicIconArrowDownLeft: r.Type.String(), a11yLabeledGraphicIconArrowDownRight: r.Type.String(), a11yLabeledGraphicUnviewed: r.Type.String(), a11yLabeledGraphicViewed: r.Type.String(), a11yMediaPause: r.Type.String(), a11yMediaPlay: r.Type.String(), a11yMediaSeek: r.Type.String(), a11yNavigationMenuClose: r.Type.String(), a11yNavigationMenuOpen: r.Type.String(), a11yPageMarker: r.Type.String(), a11yPDFIcon: r.Type.String(), a11yPPTIcon: r.Type.String(), a11yQuizFailed: r.Type.String(), a11yQuizFeedback: r.Type.String(), a11yQuizPassed: r.Type.String(), a11yQuizReviewCorrectlyChecked: r.Type.String(), a11yQuizReviewCorrectlySelected: r.Type.String(), a11yQuizReviewCorrectlyUnchecked: r.Type.String(), a11yQuizReviewCorrectlyUnselected: r.Type.String(), a11yQuizReviewIncorrectlyChecked: r.Type.String(), a11yQuizReviewIncorrectlySelected: r.Type.String(), a11yQuizReviewIncorrectlyUnchecked: r.Type.String(), a11yQuizReviewIncorrectlyUnselected: r.Type.String(), a11yRegionMainLesson: r.Type.String(), a11yRegionMainOverview: r.Type.String(), a11yRegionNavLesson: r.Type.String(), a11yRegionNavOverview: r.Type.String(), a11yRestrictedNav: r.Type.String(), a11yRTFIcon: r.Type.String(), a11ySearchClose: r.Type.String(), a11ySearchInput: r.Type.String(), a11ySearchOpen: r.Type.String(), a11yStatusAdditionalContent: r.Type.String(), a11yStatusContinued: r.Type.String(), a11yUnzoomImage: r.Type.String(), a11yWordIcon: r.Type.String(), a11yZipIcon: r.Type.String(), a11yZoomImage: r.Type.String(), courseStart: r.Type.String(), courseResume: r.Type.String(), courseDetails: r.Type.String(), courseExit: r.Type.String(), courseHome: r.Type.String(), courseSkipToLesson: r.Type.String(), lessonName: r.Type.String(), lessonPreposition: r.Type.String(), lessonComplete: r.Type.String(), lessonRestricted: r.Type.String(), quizStart: r.Type.String(), quizQuestion: r.Type.String(), quizSubmit: r.Type.String(), quizRequireAnswer: r.Type.String(), quizNext: r.Type.String(), quizIncorrect: r.Type.String(), quizCorrect: r.Type.String(), quizResults: r.Type.String(), quizScore: r.Type.String(), quizPassing: r.Type.String(), quizTakeAgain: r.Type.String(), quizAcceptableResponses: r.Type.String(), quizAnswerPlaceholder: r.Type.String(), quizRequirePassingScore: r.Type.String(), quizContinue: r.Type.String(), processStepName: r.Type.String(), processStepPreposition: r.Type.String(), processNextStep: r.Type.String(), processLessonName: r.Type.String(), processComplete: r.Type.String(), processStart: r.Type.String(), processStartAgain: r.Type.String(), processSwipe: r.Type.String(), sortingCardsCorrect: r.Type.String(), sortingReplay: r.Type.String(), embedViewOn: r.Type.String(), embedReadMore: r.Type.String(), blocksClickToFlip: r.Type.String(), blocksPreposition: r.Type.String(), salutation: r.Type.String(), exitMessage: r.Type.String(), overviewPageTitleSuffix: r.Type.String(), lessonSidebarLandmark: r.Type.String(), hamburgerButtonLabel: r.Type.String(), timelineLandmark: r.Type.String(), timelineCardGroupPrefix: r.Type.String(), labeledGraphicMarkerLabel: r.Type.String(), labeledGraphicBubbleLabel: r.Type.String(), labeledGraphicPreviousMarkerLabel: r.Type.String(), labeledGraphicNextMarkerLabel: r.Type.String(), audioPlayerGroup: r.Type.String(), seekSliderLabel: r.Type.String(), playButtonLabel: r.Type.String(), pauseButtonLabel: r.Type.String(), videoPlayerGroup: r.Type.String(), embedPlayerGroup: r.Type.String(), embedPhotoGroup: r.Type.String(), embedLinkGroup: r.Type.String(), noteGroup: r.Type.String(), statementGroup: r.Type.String(), numberedListGroup: r.Type.String(), checkboxListGroup: r.Type.String(), bulletedListGroup: r.Type.String(), quoteGroup: r.Type.String(), lessonContentLandmark: r.Type.String(), imageGalleryGroup: r.Type.String(), imageAndTextGroup: r.Type.String(), textOnImageGroup: r.Type.String(), embedVideoGroup: r.Type.String(), codeGroup: r.Type.String(), attachmentGroup: r.Type.String(), numberedDividerGroup: r.Type.String(), accordionGroup: r.Type.String(), tabGroup: r.Type.String(), flashcardStackGroup: r.Type.String(), flashcardGridGroup: r.Type.String(), buttonGroup: r.Type.String(), buttonStackGroup: r.Type.String(), knowledgeCheckGroup: r.Type.String(), storylineGroup: r.Type.String(), processLandmark: r.Type.String(), labeledGraphicLandmark: r.Type.String(), sortingLandmark: r.Type.String(), urlEmbedLandmark: r.Type.String(), flashcardFrontLabel: r.Type.String(), flashcardBackLabel: r.Type.String(), previousFlashCardLabel: r.Type.String(), nextFlashCardLabel: r.Type.String(), feedbackGroup: r.Type.String(), search: r.Type.String(), result: r.Type.String(), results: r.Type.String(), noResults: r.Type.String(), scenarioTryAgain: r.Type.String(), scenarioContinue: r.Type.String(), scenarioComplete: r.Type.String(), scenarioStartOver: r.Type.String(), progressPieUnstarted: r.Type.String(), progressPieCompleted: r.Type.String(), progressPieClickToComplete: r.Type.String(), progressPieClickToReset: r.Type.String(), progressPieQuizFailed: r.Type.String(), }); }, 97916: function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); }, 22539: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuestionBank = t.isQuestionBank = t.QuestionBankType = void 0); const r = n(2098), i = n(53280), o = n(45234); (t.QuestionBankType = r.Type.Object({ authorId: r.Type.String(), deleted: r.Type.Boolean(), folderId: r.Type.Union([r.Type.String(), r.Type.Null()]), id: r.Type.String(), lastEditedBy: r.Type.String(), questions: r.Type.Array(i.BlockItemKnowledgeCheckType), title: r.Type.String(), updatedAt: r.Type.String(), version: r.Type.Literal(1), })), (t.isQuestionBank = (0, o.makeIsFunction)(t.QuestionBankType)), (t.assertQuestionBank = (0, o.makeAssertFunction)(t.QuestionBankType)); }, 3714: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertBlock = t.isBlock = t.BlockType = void 0); const r = n(2098), i = n(22908), o = n(45234); (t.BlockType = r.Type.Object({ id: r.Type.Union([r.Type.String(), r.Type.Number()]), type: r.Type.String(), family: r.Type.String(), variant: r.Type.String(), settings: i.BlockSettingsType, })), (t.isBlock = (0, o.makeIsFunction)(t.BlockType)), (t.assertBlock = (0, o.makeAssertFunction)(t.BlockType)); }, 9823: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isBlockAccordion = t.assertBlockAccordion = t.BlockAccordionType = void 0); const r = n(2098), i = n(45234), o = n(66141), a = n(36357); (t.BlockAccordionType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("interactive"), variant: r.Type.Literal("accordion"), items: r.Type.Array(a.BlockItemAccordionType), }), ])), (t.assertBlockAccordion = (0, i.makeAssertFunction)( t.BlockAccordionType )), (t.isBlockAccordion = (0, i.makeIsFunction)(t.BlockAccordionType)); }, 16417: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.BlockAnyType = void 0); const r = n(2098), i = n(9823), o = n(6120), a = n(88090), s = n(61388), u = n(43616), c = n(80002), l = n(75804), f = n(82301), d = n(93680), p = n(77479), h = n(26288), g = n(33759), m = n(79846), y = n(72587), v = n(72246), b = n(69874), _ = n(96119), w = n(64292); t.BlockAnyType = r.Type.Union([ i.BlockAccordionType, o.BlockButtonStackType, o.BlockButtonType, s.BlockContinueType, u.BlockDividerType, a.BlockFlashcardType, c.BlockImageType, l.BlockKnowledgeCheckAnyType, f.BlockLabeledGraphicType, d.BlockListType, p.BlockProcessType, h.BlockQuoteType, g.BlockScenarioType, m.BlockSortingType, a.BlockStackType, y.BlockStatementType, v.BlockStorylineType, b.BlockTabsType, _.BlockTextType, w.BlockTimelineType, ]); }, 6120: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isBlockButtonStack = t.assertBlockButtonStack = t.BlockButtonStackType = t.isBlockButton = t.assertBlockButton = t.BlockButtonType = void 0); const r = n(2098), i = n(45234), o = n(66141), a = n(15384); (t.BlockButtonType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("buttons"), variant: r.Type.Literal("button"), items: r.Type.Array(a.BlockItemButtonType), }), ])), (t.assertBlockButton = (0, i.makeAssertFunction)(t.BlockButtonType)), (t.isBlockButton = (0, i.makeIsFunction)(t.BlockButtonType)), (t.BlockButtonStackType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("buttons"), variant: r.Type.Literal("button stack"), items: r.Type.Array(a.BlockItemButtonType), }), ])), (t.assertBlockButtonStack = (0, i.makeAssertFunction)( t.BlockButtonStackType )), (t.isBlockButtonStack = (0, i.makeIsFunction)(t.BlockButtonStackType)); }, 88090: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isBlockStack = t.assertBlockStack = t.BlockStackType = t.isBlockFlashcard = t.assertBlockFlashcard = t.BlockFlashcardType = void 0); const r = n(2098), i = n(45234), o = n(66141), a = n(28038); (t.BlockFlashcardType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("flashcard"), variant: r.Type.Literal("flashcard"), items: r.Type.Array(a.BlockItemCardType), }), ])), (t.assertBlockFlashcard = (0, i.makeAssertFunction)( t.BlockFlashcardType )), (t.isBlockFlashcard = (0, i.makeIsFunction)(t.BlockFlashcardType)), (t.BlockStackType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("flashcard"), variant: r.Type.Literal("stack"), items: r.Type.Array(a.BlockItemCardType), }), ])), (t.assertBlockStack = (0, i.makeAssertFunction)(t.BlockStackType)), (t.isBlockStack = (0, i.makeIsFunction)(t.BlockStackType)); }, 61388: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertContinueBlock = t.isContinueBlock = t.BlockContinueType = void 0); const r = n(2098), i = n(45234), o = n(3714), a = n(51889); (t.BlockContinueType = r.Type.Composite([ o.BlockType, r.Type.Object({ type: r.Type.Literal("divider"), family: r.Type.Literal("continue"), variant: r.Type.Literal("continue"), items: r.Type.Tuple([a.BlockItemContinueType]), }), ])), (t.isContinueBlock = (0, i.makeIsFunction)(t.BlockContinueType)), (t.assertContinueBlock = (0, i.makeAssertFunction)( t.BlockContinueType )); }, 43616: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertDividerBlock = t.isDividerBlock = t.BlockDividerType = void 0); const r = n(2098), i = n(45234), o = n(3714); (t.BlockDividerType = r.Type.Composite([ o.BlockType, r.Type.Object({ type: r.Type.Literal("divider"), family: r.Type.Literal("divider"), variant: r.Type.Union([ r.Type.Literal("divider"), r.Type.Literal("numbered divider"), r.Type.Literal("spacing divider"), ]), items: r.Type.Tuple([]), }), ])), (t.isDividerBlock = (0, i.makeIsFunction)(t.BlockDividerType)), (t.assertDividerBlock = (0, i.makeAssertFunction)(t.BlockDividerType)); }, 80002: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertImageBlock = t.isImageBlock = t.BlockImageType = void 0); const r = n(2098), i = n(45234), o = n(3714), a = n(58642); (t.BlockImageType = r.Type.Composite([ o.BlockType, r.Type.Object({ type: r.Type.Literal("image"), family: r.Type.Union([ r.Type.Literal("image"), r.Type.Literal("gallery"), ]), variant: r.Type.Union([ r.Type.Literal("hero"), r.Type.Literal("full"), r.Type.Literal("text aside"), r.Type.Literal("text overlay"), r.Type.Literal("centered"), r.Type.Literal("two column"), r.Type.Literal("three column"), r.Type.Literal("four column"), ]), items: r.Type.Array(a.BlockItemImageType), }), ])), (t.isImageBlock = (0, i.makeIsFunction)(t.BlockImageType)), (t.assertImageBlock = (0, i.makeAssertFunction)(t.BlockImageType)); }, 66141: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isInteractiveBlock = t.assertInteractiveBlock = t.BlockInteractiveType = t.BlockInteractiveBaseType = void 0); const r = n(2098), i = n(45234), o = n(3714), a = n(9823), s = n(6120), u = n(88090), c = n(82301), l = n(77479), f = n(33759), d = n(79846), p = n(72246), h = n(69874), g = n(64292); (t.BlockInteractiveBaseType = r.Type.Composite([ o.BlockType, r.Type.Object({ type: r.Type.Literal("interactive") }), ])), (t.BlockInteractiveType = r.Type.Union([ a.BlockAccordionType, s.BlockButtonType, s.BlockButtonStackType, u.BlockFlashcardType, c.BlockLabeledGraphicType, l.BlockProcessType, f.BlockScenarioType, d.BlockSortingType, u.BlockStackType, p.BlockStorylineType, h.BlockTabsType, g.BlockTimelineType, ])), (t.assertInteractiveBlock = (0, i.makeAssertFunction)( t.BlockInteractiveType )), (t.isInteractiveBlock = (0, i.makeIsFunction)(t.BlockInteractiveType)); }, 75804: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isKnowledgeCheckBlockQuestionBank = t.isKnowledgeCheckBlockMatching = t.isKnowledgeCheckBlockMultipleResponse = t.isKnowledgeCheckBlockMultipleChoice = t.isKnowledgeCheckBlockFillIn = t.isKnowledgeBlock = t.assertKnowledgeCheckBlockQuestionBank = t.assertKnowledgeCheckBlockMatching = t.assertKnowledgeCheckBlockMultipleResponse = t.assertKnowledgeCheckBlockMultipleChoice = t.assertKnowledgeCheckBlockFillIn = t.assertKnowledgeBlock = t.BlockKnowledgeCheckAnyType = t.BlockKnowledgeCheckMultipleResponseType = t.BlockKnowledgeCheckMultipleChoiceType = t.BlockKnowledgeCheckMatchingType = t.BlockKnowledgeCheckFillInType = t.BlockKnowledgeCheckQuestionBankType = void 0); const r = n(2098), i = n(61999), o = n(45234), a = n(3714), s = n(64246), u = n(50041), c = n(93900), l = n(80656), f = n(21245), d = r.Type.Composite([ a.BlockType, r.Type.Object({ type: r.Type.Literal("knowledgeCheck"), family: r.Type.Literal("knowledgeCheck"), background: r.Type.Optional(i.MediaImageType), }), ]); (t.BlockKnowledgeCheckQuestionBankType = r.Type.Composite([ d, r.Type.Object({ variant: r.Type.Literal("draw from question bank"), items: r.Type.Tuple([f.BlockItemQuestionBankType]), }), ])), (t.BlockKnowledgeCheckFillInType = r.Type.Composite([ d, r.Type.Object({ variant: r.Type.Literal("fillin"), items: r.Type.Tuple([s.BlockItemFillInType]), }), ])), (t.BlockKnowledgeCheckMatchingType = r.Type.Composite([ d, r.Type.Object({ variant: r.Type.Literal("matching"), items: r.Type.Tuple([u.BlockItemMatchingType]), }), ])), (t.BlockKnowledgeCheckMultipleChoiceType = r.Type.Composite([ d, r.Type.Object({ variant: r.Type.Literal("multiple choice"), items: r.Type.Tuple([c.BlockItemMultipleChoiceType]), }), ])), (t.BlockKnowledgeCheckMultipleResponseType = r.Type.Composite([ d, r.Type.Object({ variant: r.Type.Literal("multiple response"), items: r.Type.Tuple([l.BlockItemMultipleResponseType]), }), ])), (t.BlockKnowledgeCheckAnyType = r.Type.Union([ t.BlockKnowledgeCheckQuestionBankType, t.BlockKnowledgeCheckFillInType, t.BlockKnowledgeCheckMatchingType, t.BlockKnowledgeCheckMultipleChoiceType, t.BlockKnowledgeCheckMultipleResponseType, ])), (t.assertKnowledgeBlock = (0, o.makeAssertFunction)( t.BlockKnowledgeCheckAnyType )), (t.assertKnowledgeCheckBlockFillIn = (0, o.makeAssertFunction)( s.BlockItemFillInType )), (t.assertKnowledgeCheckBlockMultipleChoice = (0, o.makeAssertFunction)( t.BlockKnowledgeCheckMultipleChoiceType )), (t.assertKnowledgeCheckBlockMultipleResponse = (0, o.makeAssertFunction)(t.BlockKnowledgeCheckMultipleResponseType)), (t.assertKnowledgeCheckBlockMatching = (0, o.makeAssertFunction)( t.BlockKnowledgeCheckMatchingType )), (t.assertKnowledgeCheckBlockQuestionBank = (0, o.makeAssertFunction)( t.BlockKnowledgeCheckQuestionBankType )), (t.isKnowledgeBlock = (0, o.makeIsFunction)( t.BlockKnowledgeCheckAnyType )), (t.isKnowledgeCheckBlockFillIn = (0, o.makeIsFunction)( s.BlockItemFillInType )), (t.isKnowledgeCheckBlockMultipleChoice = (0, o.makeIsFunction)( t.BlockKnowledgeCheckMultipleChoiceType )), (t.isKnowledgeCheckBlockMultipleResponse = (0, o.makeIsFunction)( t.BlockKnowledgeCheckMultipleResponseType )), (t.isKnowledgeCheckBlockMatching = (0, o.makeIsFunction)( t.BlockKnowledgeCheckMatchingType )), (t.isKnowledgeCheckBlockQuestionBank = (0, o.makeIsFunction)( t.BlockKnowledgeCheckQuestionBankType )); }, 82301: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isBlockLabeledGraphic = t.assertBlockLabeledGraphic = t.BlockLabeledGraphicType = void 0); const r = n(2098), i = n(80996), o = n(45234), a = n(66141), s = n(8790); (t.BlockLabeledGraphicType = r.Type.Composite([ a.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("interactive-fullscreen"), variant: r.Type.Literal("labeledgraphic"), items: r.Type.Array(s.BlockItemLabeledGraphicType), media: i.MediaImageRecordType, }), ])), (t.assertBlockLabeledGraphic = (0, o.makeAssertFunction)( t.BlockLabeledGraphicType )), (t.isBlockLabeledGraphic = (0, o.makeIsFunction)( t.BlockLabeledGraphicType )); }, 93680: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertListBlock = t.isListBlock = t.BlockListType = t.BlockVariantList = t.BlockFamilyList = t.BlockTypeList = void 0); const r = n(2098), i = n(45234), o = n(3714), a = n(88014); (t.BlockTypeList = r.Type.Literal("list")), (t.BlockFamilyList = r.Type.Literal("list")), (t.BlockVariantList = r.Type.Union([ r.Type.Literal("bulleted"), r.Type.Literal("checkboxes"), r.Type.Literal("numbered"), ])), (t.BlockListType = r.Type.Composite([ o.BlockType, r.Type.Object({ type: t.BlockTypeList, family: t.BlockFamilyList, variant: t.BlockVariantList, items: r.Type.Array(a.BlockItemListType), }), ])), (t.isListBlock = (0, i.makeIsFunction)(t.BlockListType)), (t.assertListBlock = (0, i.makeAssertFunction)(t.BlockListType)); }, 77479: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isBlockProcess = t.assertBlockProcess = t.BlockProcessType = void 0); const r = n(2098), i = n(45234), o = n(66141), a = n(82993); (t.BlockProcessType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("interactive-fullscreen"), variant: r.Type.Literal("process"), items: r.Type.Array(a.BlockItemProcessType), }), ])), (t.assertBlockProcess = (0, i.makeAssertFunction)(t.BlockProcessType)), (t.isBlockProcess = (0, i.makeIsFunction)(t.BlockProcessType)); }, 26288: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuoteBlock = t.isQuoteBlock = t.BlockQuoteType = t.BlockVariantQuote = t.BlockFamilyQuote = t.BlockTypeQuote = void 0); const r = n(2098), i = n(45234), o = n(3714), a = n(38876); (t.BlockTypeQuote = r.Type.Literal("quote")), (t.BlockFamilyQuote = r.Type.Literal("quote")), (t.BlockVariantQuote = r.Type.Union([ r.Type.Literal("a"), r.Type.Literal("b"), r.Type.Literal("background"), r.Type.Literal("c"), r.Type.Literal("carousel"), r.Type.Literal("d"), ])), (t.BlockQuoteType = r.Type.Composite([ o.BlockType, r.Type.Object({ type: t.BlockTypeQuote, family: t.BlockFamilyQuote, variant: t.BlockVariantQuote, items: r.Type.Array(a.BlockItemQuoteType), }), ])), (t.isQuoteBlock = (0, i.makeIsFunction)(t.BlockQuoteType)), (t.assertQuoteBlock = (0, i.makeAssertFunction)(t.BlockQuoteType)); }, 33759: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isBlockScenario = t.assertBlockScenario = t.BlockScenarioType = void 0); const r = n(2098), i = n(45234), o = n(66141), a = n(55722); (t.BlockScenarioType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("interactive-fullscreen"), variant: r.Type.Literal("scenario"), items: r.Type.Array(a.BlockItemScenarioType), }), ])), (t.assertBlockScenario = (0, i.makeAssertFunction)( t.BlockScenarioType )), (t.isBlockScenario = (0, i.makeIsFunction)(t.BlockScenarioType)); }, 79846: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isBlockSorting = t.assertBlockSorting = t.BlockSortingType = void 0); const r = n(2098), i = n(45234), o = n(66141), a = n(74563); (t.BlockSortingType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("interactive-fullscreen"), variant: r.Type.Literal("sorting"), items: r.Type.Array(a.BlockItemSortingType), piles: r.Type.Array( r.Type.Object({ id: r.Type.Union([r.Type.String(), r.Type.Number()]), title: r.Type.String(), }) ), }), ])), (t.assertBlockSorting = (0, i.makeAssertFunction)(t.BlockSortingType)), (t.isBlockSorting = (0, i.makeIsFunction)(t.BlockSortingType)); }, 72587: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertStatementBlock = t.isStatementBlock = t.BlockStatementType = void 0); const r = n(2098), i = n(45234), o = n(3714), a = n(85288); (t.BlockStatementType = r.Type.Composite([ o.BlockType, r.Type.Object({ type: r.Type.Union([ r.Type.Literal("text"), r.Type.Literal("impact"), ]), family: r.Type.Literal("impact"), variant: r.Type.Union([ r.Type.Literal("a"), r.Type.Literal("b"), r.Type.Literal("c"), r.Type.Literal("d"), r.Type.Literal("note"), ]), items: r.Type.Array(a.BlockItemStatementType), }), ])), (t.isStatementBlock = (0, i.makeIsFunction)(t.BlockStatementType)), (t.assertStatementBlock = (0, i.makeAssertFunction)( t.BlockStatementType )); }, 72246: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertStorylineBlock = t.isStorylineBlock = t.BlockStorylineType = void 0); const r = n(2098), i = n(45234), o = n(3714), a = n(36716); (t.BlockStorylineType = r.Type.Composite([ o.BlockType, r.Type.Object({ type: r.Type.Literal("interactive"), family: r.Type.Literal("360"), variant: r.Type.Literal("storyline"), items: r.Type.Tuple([a.BlockItemStorylineType]), }), ])), (t.isStorylineBlock = (0, i.makeIsFunction)(t.BlockStorylineType)), (t.assertStorylineBlock = (0, i.makeAssertFunction)( t.BlockStorylineType )); }, 69874: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isBlockTabs = t.assertBlockTabs = t.BlockTabsType = void 0); const r = n(2098), i = n(45234), o = n(66141), a = n(76061); (t.BlockTabsType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("interactive"), variant: r.Type.Literal("tabs"), items: r.Type.Array(a.BlockItemTabsType), }), ])), (t.assertBlockTabs = (0, i.makeAssertFunction)(t.BlockTabsType)), (t.isBlockTabs = (0, i.makeIsFunction)(t.BlockTabsType)); }, 96119: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.createTextBlock = t.assertTextBlock = t.isTextBlock = t.BlockTextType = void 0); const r = n(92981), i = n(2098), o = n(32477), a = n(45234), s = n(3714), u = n(49747); (t.BlockTextType = i.Type.Composite([ s.BlockType, i.Type.Object({ type: i.Type.Literal("text"), family: i.Type.Literal("text"), variant: i.Type.Union([ i.Type.Literal("paragraph"), i.Type.Literal("heading"), i.Type.Literal("subheading"), i.Type.Literal("heading paragraph"), i.Type.Literal("subheading paragraph"), i.Type.Literal("two column"), i.Type.Literal("three column"), i.Type.Literal("four column"), i.Type.Literal("table"), ]), items: i.Type.Array(u.BlockItemTextType, { maxItems: 4 }), }), ])), (t.isTextBlock = (0, a.makeIsFunction)(t.BlockTextType)), (t.assertTextBlock = (0, a.makeAssertFunction)(t.BlockTextType)), (t.createTextBlock = function (e) { const n = o.Value.Create(t.BlockTextType); (n.id = (0, r.createId)()), (n.variant = e.variant); const i = o.Value.Create(u.BlockItemTextType); return ( (i.id = (0, r.createId)()), (i.heading = e.heading), (i.paragraph = e.paragraph), (n.items = [i]), n ); }); }, 64292: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isBlockTimeline = t.assertBlockTimeline = t.BlockTimelineType = void 0); const r = n(2098), i = n(45234), o = n(66141), a = n(47689); (t.BlockTimelineType = r.Type.Composite([ o.BlockInteractiveBaseType, r.Type.Object({ family: r.Type.Literal("interactive-fullscreen"), variant: r.Type.Literal("timeline"), items: r.Type.Array(a.BlockItemTimelineType), }), ])), (t.assertBlockTimeline = (0, i.makeAssertFunction)( t.BlockTimelineType )), (t.isBlockTimeline = (0, i.makeIsFunction)(t.BlockTimelineType)); }, 53280: function (e, t, n) { "use strict"; var r = (this && this.__createBinding) || (Object.create ? function (e, t, n, r) { void 0 === r && (r = n); var i = Object.getOwnPropertyDescriptor(t, n); (i && !("get" in i ? !t.__esModule : i.writable || i.configurable)) || (i = { enumerable: !0, get: function () { return t[n]; }, }), Object.defineProperty(e, r, i); } : function (e, t, n, r) { void 0 === r && (r = n), (e[r] = t[n]); }), i = (this && this.__exportStar) || function (e, t) { for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n); }; Object.defineProperty(t, "__esModule", { value: !0 }), i(n(3714), t), i(n(9823), t), i(n(16417), t), i(n(6120), t), i(n(88090), t), i(n(61388), t), i(n(43616), t), i(n(80002), t), i(n(66141), t), i(n(75804), t), i(n(82301), t), i(n(93680), t), i(n(77479), t), i(n(26288), t), i(n(33759), t), i(n(79846), t), i(n(72587), t), i(n(72246), t), i(n(69874), t), i(n(96119), t), i(n(64292), t), i(n(51889), t); }, 71041: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertBlockItem = t.isBlockItem = t.BlockItemType = void 0); const r = n(2098), i = n(45234); (t.BlockItemType = r.Type.Object({ id: r.Type.Union([r.Type.String(), r.Type.Number()]), })), (t.isBlockItem = (0, i.makeIsFunction)(t.BlockItemType)), (t.assertBlockItem = (0, i.makeAssertFunction)(t.BlockItemType)); }, 36357: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertAccordionBlockItem = t.isAccordionBlockItem = t.BlockItemAccordionType = void 0); const r = n(2098), i = n(61999), o = n(45234), a = n(71041); (t.BlockItemAccordionType = r.Type.Composite([ a.BlockItemType, r.Type.Object({ title: r.Type.String(), description: r.Type.String(), media: r.Type.Optional(i.MediaRecordType), settings: r.Type.Optional( r.Type.Object({ disableZoom: r.Type.Optional(r.Type.Boolean()), fullEmbed: r.Type.Optional(r.Type.Boolean()), }) ), }), ])), (t.isAccordionBlockItem = (0, o.makeIsFunction)( t.BlockItemAccordionType )), (t.assertAccordionBlockItem = (0, o.makeAssertFunction)( t.BlockItemAccordionType )); }, 56628: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.BlockItemAnyType = void 0); const r = n(2098), i = n(36357), o = n(15384), a = n(28038), s = n(82971), u = n(64246), c = n(58642), l = n(85814), f = n(8790), d = n(88014), p = n(50041), h = n(93900), g = n(80656), m = n(82993), y = n(21245), v = n(38876), b = n(55722), _ = n(74563), w = n(85288), T = n(36716), x = n(76061), S = n(49747), k = n(47689); t.BlockItemAnyType = r.Type.Union([ i.BlockItemAccordionType, o.BlockItemButtonType, a.BlockItemCardType, s.BlockItemContinueType, u.BlockItemFillInType, c.BlockItemImageType, l.BlockItemKnowledgeCheckType, f.BlockItemLabeledGraphicType, d.BlockItemListType, p.BlockItemMatchingType, h.BlockItemMultipleChoiceType, g.BlockItemMultipleResponseType, m.BlockItemProcessType, y.BlockItemQuestionBankType, v.BlockItemQuoteType, b.BlockItemScenarioType, _.BlockItemSortingType, w.BlockItemStatementType, T.BlockItemStorylineType, x.BlockItemTabsType, S.BlockItemTextType, k.BlockItemTimelineType, ]); }, 15384: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertButtonBlockItem = t.isButtonBlockItem = t.BlockItemButtonType = void 0); const r = n(2098), i = n(45234), o = n(71041); (t.BlockItemButtonType = r.Type.Composite([ o.BlockItemType, r.Type.Object({ type: r.Type.Union([ r.Type.Literal("link"), r.Type.Literal("relative-url"), r.Type.Literal("email"), r.Type.Literal("exit-course"), r.Type.Literal("lesson"), ]), label: r.Type.String(), description: r.Type.String(), destination: r.Type.String(), }), ])), (t.isButtonBlockItem = (0, i.makeIsFunction)(t.BlockItemButtonType)), (t.assertButtonBlockItem = (0, i.makeAssertFunction)( t.BlockItemButtonType )); }, 28038: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertCardBlockItem = t.isCardBlockItem = t.BlockItemCardType = void 0); const r = n(2098), i = n(61999), o = n(45234), a = n(71041), s = r.Type.Object({ type: r.Type.Union([ r.Type.Literal("image"), r.Type.Literal("fullimage"), r.Type.Literal("description"), ]), description: r.Type.String(), media: r.Type.Optional(i.MediaRecordType), }); (t.BlockItemCardType = r.Type.Composite([ a.BlockItemType, r.Type.Object({ back: s, front: s }), ])), (t.isCardBlockItem = (0, o.makeIsFunction)(t.BlockItemCardType)), (t.assertCardBlockItem = (0, o.makeAssertFunction)( t.BlockItemCardType )); }, 82971: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertContinueBlockItem = t.isContinueBlockItem = t.BlockItemContinueType = void 0); const r = n(2098), i = n(45234), o = n(71041); (t.BlockItemContinueType = r.Type.Composite([ o.BlockItemType, r.Type.Object({ title: r.Type.String(), completeHint: r.Type.String(), buttonColor: r.Type.Union([ r.Type.Literal("brand"), r.Type.Literal("gray"), r.Type.Literal("black"), ]), type: r.Type.Union([ r.Type.Literal(""), r.Type.Literal("completeBlock"), r.Type.Literal("completeAll"), ]), }), ])), (t.isContinueBlockItem = (0, i.makeIsFunction)( t.BlockItemContinueType )), (t.assertContinueBlockItem = (0, i.makeAssertFunction)( t.BlockItemContinueType )); }, 64246: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertFillInBlockItem = t.isFillInBlockItem = t.BlockItemFillInType = void 0); const r = n(2098), i = n(45234), o = n(85814); (t.BlockItemFillInType = r.Type.Composite([ o.BlockItemKnowledgeCheckType, r.Type.Object({ type: r.Type.Literal("FILL_IN_THE_BLANK") }), ])), (t.isFillInBlockItem = (0, i.makeIsFunction)(t.BlockItemFillInType)), (t.assertFillInBlockItem = (0, i.makeAssertFunction)( t.BlockItemFillInType )); }, 58642: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.BlockItemImageType = void 0); const r = n(2098), i = n(61999), o = n(71041); t.BlockItemImageType = r.Type.Composite([ o.BlockItemType, r.Type.Object({ caption: r.Type.Optional(r.Type.String()), paragraph: r.Type.Optional(r.Type.String()), media: i.MediaImageRecordType, }), ]); }, 85814: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.BlockItemKnowledgeCheckType = t.BlockItemKnowledgeCheckFeedbackType = t.BlockItemKnowledgeCheckAnswerType = void 0); const r = n(2098), i = n(61999), o = n(71041); (t.BlockItemKnowledgeCheckAnswerType = r.Type.Object({ id: r.Type.Union([r.Type.String(), r.Type.Number()]), title: r.Type.String(), correct: r.Type.Boolean(), feedback: r.Type.Optional(r.Type.String()), })), (t.BlockItemKnowledgeCheckFeedbackType = r.Type.Object({ feedback: r.Type.Optional(r.Type.String()), feedbackType: r.Type.Optional( r.Type.Union([ r.Type.Literal("ANY"), r.Type.Literal("CORRECT_INCORRECT"), r.Type.Literal("CHOICE"), ]) ), feedbackCorrect: r.Type.Optional(r.Type.String()), feedbackIncorrect: r.Type.Optional(r.Type.String()), })), (t.BlockItemKnowledgeCheckType = r.Type.Composite([ o.BlockItemType, t.BlockItemKnowledgeCheckFeedbackType, r.Type.Object({ title: r.Type.String(), answers: r.Type.Array(t.BlockItemKnowledgeCheckAnswerType), media: r.Type.Optional(i.MediaRecordType), settings: r.Type.Optional(i.MediaSettingsType), isCaseSensitive: r.Type.Optional(r.Type.Boolean()), }), ])); }, 8790: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertLabeledGraphicBlockItem = t.isLabeledGraphicBlockItem = t.BlockItemLabeledGraphicType = void 0); const r = n(2098), i = n(87791), o = n(45234), a = n(71041); (t.BlockItemLabeledGraphicType = r.Type.Composite([ a.BlockItemType, r.Type.Object({ x: r.Type.Integer(), y: r.Type.Integer(), icon: r.Type.String(), title: r.Type.String(), isActive: r.Type.Boolean(), description: r.Type.String(), media: r.Type.Optional(i.MediaRecordType), }), ])), (t.isLabeledGraphicBlockItem = (0, o.makeIsFunction)( t.BlockItemLabeledGraphicType )), (t.assertLabeledGraphicBlockItem = (0, o.makeAssertFunction)( t.BlockItemLabeledGraphicType )); }, 88014: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertListBlockItem = t.isListBlockItem = t.BlockItemListType = void 0); const r = n(2098), i = n(45234), o = n(71041); (t.BlockItemListType = r.Type.Composite([ o.BlockItemType, r.Type.Object({ paragraph: r.Type.Optional(r.Type.String()), number: r.Type.Optional(r.Type.String()), }), ])), (t.isListBlockItem = (0, i.makeIsFunction)(t.BlockItemListType)), (t.assertListBlockItem = (0, i.makeAssertFunction)( t.BlockItemListType )); }, 50041: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertMatchingBlockItem = t.isMatchingBlockItem = t.BlockItemMatchingType = void 0); const r = n(2098), i = n(45234), o = n(85814); (t.BlockItemMatchingType = r.Type.Composite([ o.BlockItemKnowledgeCheckType, r.Type.Object({ type: r.Type.Literal("MATCHING"), answers: r.Type.Composite([ o.BlockItemKnowledgeCheckType.answers, r.Type.Object({ matchTitle: r.Type.String() }), ]), }), ])), (t.isMatchingBlockItem = (0, i.makeIsFunction)( t.BlockItemMatchingType )), (t.assertMatchingBlockItem = (0, i.makeAssertFunction)( t.BlockItemMatchingType )); }, 93900: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertMultipleChoiceBlockItem = t.isMultipleChoiceBlockItem = t.BlockItemMultipleChoiceType = void 0); const r = n(2098), i = n(45234), o = n(85814); (t.BlockItemMultipleChoiceType = r.Type.Composite([ o.BlockItemKnowledgeCheckType, r.Type.Object({ type: r.Type.Literal("MULTIPLE_CHOICE") }), ])), (t.isMultipleChoiceBlockItem = (0, i.makeIsFunction)( t.BlockItemMultipleChoiceType )), (t.assertMultipleChoiceBlockItem = (0, i.makeAssertFunction)( t.BlockItemMultipleChoiceType )); }, 80656: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertMultipleResponseBlockItem = t.isMultipleResponseBlockItem = t.BlockItemMultipleResponseType = void 0); const r = n(2098), i = n(45234), o = n(85814); (t.BlockItemMultipleResponseType = r.Type.Composite([ o.BlockItemKnowledgeCheckType, r.Type.Object({ type: r.Type.Literal("MULTIPLE_RESPONSE"), correct: r.Type.String(), corrects: r.Type.Array(r.Type.String()), }), ])), (t.isMultipleResponseBlockItem = (0, i.makeIsFunction)( t.BlockItemMultipleResponseType )), (t.assertMultipleResponseBlockItem = (0, i.makeAssertFunction)( t.BlockItemMultipleResponseType )); }, 82993: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertProcessBlockItem = t.isProcessBlockItem = t.BlockItemProcessType = void 0); const r = n(2098), i = n(45234), o = n(71041); (t.BlockItemProcessType = r.Type.Composite([ o.BlockItemType, r.Type.Object({ type: r.Type.Union([ r.Type.Literal("intro"), r.Type.Literal("summary"), r.Type.Literal("step"), ]), title: r.Type.String(), isHidden: r.Type.Boolean(), description: r.Type.String(), }), ])), (t.isProcessBlockItem = (0, i.makeIsFunction)(t.BlockItemProcessType)), (t.assertProcessBlockItem = (0, i.makeAssertFunction)( t.BlockItemProcessType )); }, 21245: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuestionBankBlockItem = t.isQuestionBankBlockItem = t.BlockItemQuestionBankType = void 0); const r = n(2098), i = n(45234), o = n(85814); (t.BlockItemQuestionBankType = r.Type.Composite([ o.BlockItemKnowledgeCheckType, r.Type.Object({ type: r.Type.Literal("DRAW_FROM_QUESTION_BANK"), questionBankId: r.Type.String(), questionBankTitle: r.Type.String(), questionBankUpdatedAt: r.Type.String(), drawCount: r.Type.Number(), questions: r.Type.Array(o.BlockItemKnowledgeCheckType), }), ])), (t.isQuestionBankBlockItem = (0, i.makeIsFunction)( t.BlockItemQuestionBankType )), (t.assertQuestionBankBlockItem = (0, i.makeAssertFunction)( t.BlockItemQuestionBankType )); }, 38876: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuoteBlockItem = t.isQuoteBlockItem = t.BlockItemQuoteType = void 0); const r = n(2098), i = n(61999), o = n(45234), a = n(71041); (t.BlockItemQuoteType = r.Type.Composite([ a.BlockItemType, r.Type.Object({ name: r.Type.String(), avatar: r.Type.Object({ media: i.MediaImageRecordType }), paragraph: r.Type.String(), background: r.Type.Optional( r.Type.Object({ media: i.MediaImageRecordType }) ), }), ])), (t.isQuoteBlockItem = (0, o.makeIsFunction)(t.BlockItemQuoteType)), (t.assertQuoteBlockItem = (0, o.makeAssertFunction)( t.BlockItemQuoteType )); }, 55722: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertScenarioBlockItem = t.isScenarioBlockItem = t.BlockItemScenarioType = void 0); const r = n(2098), i = n(80996), o = n(45234), a = n(71041), s = r.Type.Union([ r.Type.Literal("next"), r.Type.Literal("slide"), r.Type.Literal("end"), ]), u = r.Type.Object({ scene: r.Type.String(), slide: r.Type.String() }), c = r.Type.Object({ id: r.Type.String(), goTo: s, action: r.Type.Union([ r.Type.Literal("continue"), r.Type.Literal("tryAgain"), ]), emotion: r.Type.String(), feedback: r.Type.String(), nextSlide: r.Type.Optional(u), description: r.Type.String(), }), l = r.Type.Object({ id: r.Type.String(), title: r.Type.String(), goTo: s, type: r.Type.Union([ r.Type.Literal("dialogue"), r.Type.Literal("text"), ]), emotion: r.Type.String(), nextSlide: r.Type.Optional(u), responses: r.Type.Array(c), description: r.Type.String(), hasCharacter: r.Type.Boolean(), }), f = r.Type.Composite([ i.MediaImageType, r.Type.Object({ id: r.Type.String(), filters: r.Type.Array( r.Type.Object({ name: r.Type.String(), value: r.Type.String() }) ), }), ]), d = r.Type.Object({ id: r.Type.String(), name: r.Type.String(), src: r.Type.String(), poses: r.Type.Optional(r.Type.Record(r.Type.String(), f)), }); (t.BlockItemScenarioType = r.Type.Composite([ a.BlockItemType, r.Type.Object({ title: r.Type.String(), character: d, slides: r.Type.Array(l), }), ])), (t.isScenarioBlockItem = (0, o.makeIsFunction)( t.BlockItemScenarioType )), (t.assertScenarioBlockItem = (0, o.makeAssertFunction)( t.BlockItemScenarioType )); }, 74563: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertSortingBlockItem = t.isSortingBlockItem = t.BlockItemSortingType = void 0); const r = n(2098), i = n(45234), o = n(71041); (t.BlockItemSortingType = r.Type.Composite([ o.BlockItemType, r.Type.Object({ title: r.Type.String(), pileId: r.Type.Union([r.Type.String(), r.Type.Number()]), }), ])), (t.isSortingBlockItem = (0, i.makeIsFunction)(t.BlockItemSortingType)), (t.assertSortingBlockItem = (0, i.makeAssertFunction)( t.BlockItemSortingType )); }, 85288: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertStatementBlockItem = t.isStatementBlockItem = t.BlockItemStatementType = void 0); const r = n(2098), i = n(45234), o = n(71041); (t.BlockItemStatementType = r.Type.Composite([ o.BlockItemType, r.Type.Object({ paragraph: r.Type.Optional(r.Type.String()) }), ])), (t.isStatementBlockItem = (0, i.makeIsFunction)( t.BlockItemStatementType )), (t.assertStatementBlockItem = (0, i.makeAssertFunction)( t.BlockItemStatementType )); }, 36716: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.BlockItemStorylineType = void 0); const r = n(2098), i = n(41800), o = n(71041); t.BlockItemStorylineType = r.Type.Composite([ o.BlockItemType, r.Type.Object({ media: i.MediaStorylineRecordType }), ]); }, 76061: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertTabsBlockItem = t.isTabsBlockItem = t.BlockItemTabsType = void 0); const r = n(2098), i = n(61999), o = n(45234), a = n(71041); (t.BlockItemTabsType = r.Type.Composite([ a.BlockItemType, r.Type.Object({ title: r.Type.String(), description: r.Type.String(), media: r.Type.Optional(i.MediaRecordType), settings: r.Type.Optional( r.Type.Object({ disableZoom: r.Type.Optional(r.Type.Boolean()), fullEmbed: r.Type.Optional(r.Type.Boolean()), }) ), }), ])), (t.isTabsBlockItem = (0, o.makeIsFunction)(t.BlockItemTabsType)), (t.assertTabsBlockItem = (0, o.makeAssertFunction)( t.BlockItemTabsType )); }, 49747: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertTextBlockItem = t.isTextBlockItem = t.BlockItemTextType = void 0); const r = n(2098), i = n(45234), o = n(71041); (t.BlockItemTextType = r.Type.Composite([ o.BlockItemType, r.Type.Object({ heading: r.Type.Optional(r.Type.String()), paragraph: r.Type.Optional(r.Type.String()), }), ])), (t.isTextBlockItem = (0, i.makeIsFunction)(t.BlockItemTextType)), (t.assertTextBlockItem = (0, i.makeAssertFunction)( t.BlockItemTextType )); }, 47689: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertTimelineBlockItem = t.isTimelineBlockItem = t.BlockItemTimelineType = void 0); const r = n(2098), i = n(61999), o = n(45234), a = n(71041); (t.BlockItemTimelineType = r.Type.Composite([ a.BlockItemType, r.Type.Object({ date: r.Type.String(), title: r.Type.String(), description: r.Type.String(), media: r.Type.Optional(i.MediaRecordType), settings: r.Type.Optional(i.MediaSettingsType), }), ])), (t.isTimelineBlockItem = (0, o.makeIsFunction)( t.BlockItemTimelineType )), (t.assertTimelineBlockItem = (0, o.makeAssertFunction)( t.BlockItemTimelineType )); }, 51889: function (e, t, n) { "use strict"; var r = (this && this.__createBinding) || (Object.create ? function (e, t, n, r) { void 0 === r && (r = n); var i = Object.getOwnPropertyDescriptor(t, n); (i && !("get" in i ? !t.__esModule : i.writable || i.configurable)) || (i = { enumerable: !0, get: function () { return t[n]; }, }), Object.defineProperty(e, r, i); } : function (e, t, n, r) { void 0 === r && (r = n), (e[r] = t[n]); }), i = (this && this.__exportStar) || function (e, t) { for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n); }; Object.defineProperty(t, "__esModule", { value: !0 }), i(n(71041), t), i(n(36357), t), i(n(56628), t), i(n(15384), t), i(n(28038), t), i(n(82971), t), i(n(64246), t), i(n(58642), t), i(n(85814), t), i(n(8790), t), i(n(88014), t), i(n(50041), t), i(n(93900), t), i(n(80656), t), i(n(82993), t), i(n(21245), t), i(n(38876), t), i(n(55722), t), i(n(74563), t), i(n(85288), t), i(n(36716), t), i(n(76061), t), i(n(49747), t), i(n(47689), t); }, 46710: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertChange = t.isChange = t.ChangeType = t.ChangePathType = t.CommandType = t.UpdateCommandType = void 0); const r = n(2098), i = n(45234); (t.UpdateCommandType = r.Type.Object({ type: r.Type.Literal("update"), oldValue: r.Type.Unknown(), newValue: r.Type.Unknown(), })), (t.CommandType = t.UpdateCommandType), (t.ChangePathType = r.Type.Array( r.Type.Union([ r.Type.String(), r.Type.Record( r.Type.String(), r.Type.Union([r.Type.String(), r.Type.Number()]) ), ]) )), (t.ChangeType = r.Type.Object({ id: r.Type.String(), path: t.ChangePathType, proposedAt: r.Type.String(), proposedBy: r.Type.String(), source: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Null()]) ), locale: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Null()]) ), command: t.CommandType, })), (t.isChange = (0, i.makeIsFunction)(t.ChangeType)), (t.assertChange = (0, i.makeAssertFunction)(t.ChangeType)); }, 85113: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertChangeset = t.isChangeset = t.ChangesetType = void 0); const r = n(2098), i = n(45234), o = n(46710); (t.ChangesetType = r.Type.Array(o.ChangeType, { minItems: 1 })), (t.isChangeset = (0, i.makeIsFunction)(t.ChangesetType)), (t.assertChangeset = (0, i.makeAssertFunction)(t.ChangesetType)); }, 65389: function (e, t, n) { "use strict"; var r = (this && this.__createBinding) || (Object.create ? function (e, t, n, r) { void 0 === r && (r = n); var i = Object.getOwnPropertyDescriptor(t, n); (i && !("get" in i ? !t.__esModule : i.writable || i.configurable)) || (i = { enumerable: !0, get: function () { return t[n]; }, }), Object.defineProperty(e, r, i); } : function (e, t, n, r) { void 0 === r && (r = n), (e[r] = t[n]); }), i = (this && this.__exportStar) || function (e, t) { for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n); }; Object.defineProperty(t, "__esModule", { value: !0 }), i(n(46710), t), i(n(85113), t), i(n(82898), t); }, 82898: function (e, t, n) { "use strict"; var r = (this && this.__importDefault) || function (e) { return e && e.__esModule ? e : { default: e }; }; Object.defineProperty(t, "__esModule", { value: !0 }), (t.getCaptionAtPath = t.applyChangeset = t.deconstructPath = void 0); const i = n(32477), o = r(n(64063)), a = n(25422), s = [ "allowCopy", "author", "bodyTypefaceId", "courseId", "createdAt", "deleted", "duplicatedFromId", "experiments", "exportSettings", "headingTypefaceId", "icon", "id", "isPartnerContentAuthor", "jobs", "labelSetId", "lastImportedXliff", "lastUpdatedBy", "originalId", "partnerContentId", "ready", "reviewId", "selectedAuthorId", "shareId", "sourceCourseLocaleId", "sourceLessonLocaleId", "tenantId", "transferredAt", "type", "uiTypefaceId", "updatedAt", ]; function u(e) { return "string" == typeof e ? void 0 : e.id; } (t.deconstructPath = function (e) { const [t] = e; if ("course" === t) return { type: "course" }; if ("lessons" === t) { const [, t, n, r] = e, i = u(t); if (null != i) { const t = "items" === n ? u(r) : void 0, o = e.findIndex((e) => "captions" === e); if (-1 !== o) { const n = u(e[o + 1]); if (null != n) return { type: "caption", lessonId: i, itemId: t, captionId: n.toString(), }; } return { type: "lesson", lessonId: i, itemId: t }; } } return null; }), (t.applyChangeset = function (e, t, n) { let r = n; const i = new Array(), o = new Array(); for (const n of t) { const t = c[n.command.type]; if (null == t) { o.push({ change: n, reason: `Command type "${n.command.type}" not supported`, }); continue; } const a = t(e, n, r); switch (a.type) { case "accepted": (r = a.result), i.push(n); break; case "discarded": o.push({ change: n, reason: a.reason }); } } return { result: r, accepted: i, discarded: o }; }); const c = { update: function (e, t, n) { return l(e, t.path, t.command.newValue, n); }, }; function l(e, t, n, r) { const [i, ...a] = t; if (e.length > 0) return (0, o.default)(e, t.slice(0, e.length)) ? l([], t.slice(e.length), n, r) : { type: "discarded", reason: "Path does not begin with given prefix", }; if (null == i) return { type: "accepted", result: n }; if (null == r) return { type: "discarded", reason: `No value at property "${JSON.stringify(i)}"`, }; if ("string" == typeof i) { if (s.includes(i)) return { type: "discarded", reason: `Property "${i}" is not allowed to be changed`, }; if ("object" != typeof r || !(i in r)) return { type: "discarded", reason: `No value at property "${i}"` }; const t = l(e, a, n, r[i]); switch (t.type) { case "accepted": return { type: "accepted", result: f(i, t.result, r) }; case "discarded": return t; } } if (!Array.isArray(r)) return { type: "discarded", reason: `Expected array for ref "${JSON.stringify(i)}"`, }; const u = r.findIndex((e) => d(i, e)); if (-1 === u) return { type: "discarded", reason: `Ref "${JSON.stringify(i)}" not found`, }; const c = l(e, a, n, r[u]); switch (c.type) { case "accepted": return { type: "accepted", result: f(u, c.result, r) }; case "discarded": return c; } } function f(e, t, n) { if (Array.isArray(n)) { const r = Number(e); if (Number.isInteger(r)) return [...n.slice(0, r), t, ...n.slice(r + 1)]; } return { ...n, [e]: t }; } function d(e, t) { return null != t && Object.entries(e).every(([e, n]) => t[e] === n); } function p(e, t, n, r) { const [a, ...s] = n; if (t.length > 0) return (0, o.default)(t, n.slice(0, t.length)) ? p(e, [], n.slice(t.length), r) : null; if (null == a) return i.Value.Check(e, r) ? r : null; if (null == r) return null; if ("string" == typeof a) return p(e, t, s, r[a]); if (!Array.isArray(r)) return null; const u = r.findIndex((e) => d(a, e)); return -1 === u ? null : p(e, t, s, r[u]); } t.getCaptionAtPath = function (e, t, n) { const r = t.findIndex((e) => "captions" === e); if (-1 === r) return null; if (null === u(t[r + 1])) return null; const i = t.slice(0, r + 2), o = p(a.CaptionType, e, i, n); return null == o ? null : { path: i, result: o }; }; }, 75612: function (e, t, n) { "use strict"; var r = (this && this.__createBinding) || (Object.create ? function (e, t, n, r) { void 0 === r && (r = n); var i = Object.getOwnPropertyDescriptor(t, n); (i && !("get" in i ? !t.__esModule : i.writable || i.configurable)) || (i = { enumerable: !0, get: function () { return t[n]; }, }), Object.defineProperty(e, r, i); } : function (e, t, n, r) { void 0 === r && (r = n), (e[r] = t[n]); }), i = (this && this.__exportStar) || function (e, t) { for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n); }; Object.defineProperty(t, "__esModule", { value: !0 }), (t.RiseContentAssertionError = void 0), i(n(53280), t), i(n(22908), t), i(n(65389), t), i(n(44389), t), i(n(91124), t), i(n(59050), t), i(n(86178), t), i(n(25993), t), i(n(3881), t), i(n(61999), t), i(n(97916), t), i(n(22539), t), i(n(42331), t), i(n(53916), t); var o = n(45234); Object.defineProperty(t, "RiseContentAssertionError", { enumerable: !0, get: function () { return o.RiseContentAssertionError; }, }); }, 23988: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertLesson = t.isLesson = t.LessonType = void 0); const r = n(2098), i = n(61999), o = n(45234); (t.LessonType = r.Type.Object({ author: r.Type.String(), courseId: r.Type.String(), createdAt: r.Type.Date(), deleted: r.Type.Boolean(), description: r.Type.String(), id: r.Type.Union([r.Type.String(), r.Type.Number()]), items: r.Type.Array(r.Type.Any()), media: r.Type.Record(r.Type.String(), i.MediaAnyType), piles: r.Type.Array(r.Type.Any()), ready: r.Type.Boolean(), title: r.Type.String(), type: r.Type.String(), updatedAt: r.Type.Date(), duplicatedFromId: r.Type.Optional(r.Type.String()), headerImage: r.Type.Optional(i.MediaImageType), icon: r.Type.Optional( r.Type.Union([ r.Type.Literal("Article"), r.Type.Literal("Interaction"), r.Type.Literal("Quiz"), r.Type.Literal("Video"), ]) ), isPartnerContentAuthor: r.Type.Optional(r.Type.Boolean()), lastUpdatedBy: r.Type.Optional(r.Type.String()), originalId: r.Type.Optional(r.Type.String()), position: r.Type.Optional(r.Type.Integer()), selectedAuthorId: r.Type.Optional(r.Type.String()), transferredAt: r.Type.Optional(r.Type.Date()), sourceLessonLocaleId: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Number(), r.Type.Null()]) ), })), (t.isLesson = (0, o.makeIsFunction)(t.LessonType)), (t.assertLesson = (0, o.makeAssertFunction)(t.LessonType)); }, 45841: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.AnyLessonType = void 0); const r = n(2098), i = n(37656), o = n(19211), a = n(60551); t.AnyLessonType = r.Type.Union([ i.BlocksLessonType, a.SectionLessonType, o.QuizLessonType, ]); }, 37656: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertBlockLesson = t.isBlockLesson = t.BlocksLessonType = void 0); const r = n(2098), i = n(53280), o = n(45234), a = n(23988); (t.BlocksLessonType = r.Type.Composite([ a.LessonType, r.Type.Object({ type: r.Type.Literal("blocks"), items: r.Type.Array(i.BlockType), }), ])), (t.isBlockLesson = (0, o.makeIsFunction)(t.BlocksLessonType)), (t.assertBlockLesson = (0, o.makeAssertFunction)(t.BlocksLessonType)); }, 19211: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuizLesson = t.isQuizLesson = t.QuizLessonType = void 0); const r = n(2098), i = n(78963), o = n(45234), a = n(23988); (t.QuizLessonType = r.Type.Composite([ a.LessonType, r.Type.Object({ type: r.Type.Literal("quiz"), items: r.Type.Array(i.QuizItemAny), settings: r.Type.Object({ passingScore: r.Type.Optional(r.Type.Integer()), randomizeQuestionOrder: r.Type.Optional(r.Type.Boolean()), revealAnswers: r.Type.Optional(r.Type.String()), retryCount: r.Type.Optional(r.Type.Integer()), shuffleAnswerChoices: r.Type.Optional(r.Type.Boolean()), }), }), ])), (t.isQuizLesson = (0, o.makeIsFunction)(t.QuizLessonType)), (t.assertQuizLesson = (0, o.makeAssertFunction)(t.QuizLessonType)); }, 60551: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertSectionLesson = t.isSectionLesson = t.SectionLessonType = void 0); const r = n(2098), i = n(45234), o = n(23988); (t.SectionLessonType = r.Type.Composite([ o.LessonType, r.Type.Object({ type: r.Type.Literal("section") }), ])), (t.isSectionLesson = (0, i.makeIsFunction)(t.SectionLessonType)), (t.assertSectionLesson = (0, i.makeAssertFunction)( t.SectionLessonType )); }, 3881: function (e, t, n) { "use strict"; var r = (this && this.__createBinding) || (Object.create ? function (e, t, n, r) { void 0 === r && (r = n); var i = Object.getOwnPropertyDescriptor(t, n); (i && !("get" in i ? !t.__esModule : i.writable || i.configurable)) || (i = { enumerable: !0, get: function () { return t[n]; }, }), Object.defineProperty(e, r, i); } : function (e, t, n, r) { void 0 === r && (r = n), (e[r] = t[n]); }), i = (this && this.__exportStar) || function (e, t) { for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n); }; Object.defineProperty(t, "__esModule", { value: !0 }), i(n(23988), t), i(n(45841), t), i(n(37656), t), i(n(19211), t), i(n(60551), t); }, 25422: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.CaptionType = void 0); const r = n(2098); t.CaptionType = r.Type.Object({ id: r.Type.String(), key: r.Type.String(), code: r.Type.String(), name: r.Type.Optional(r.Type.String()), filename: r.Type.String(), url: r.Type.Optional(r.Type.String()), }); }, 84103: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.MediaAnyType = void 0); const r = n(2098), i = n(90713), o = n(61988), a = n(80996), s = n(41800), u = n(86433); t.MediaAnyType = r.Type.Union([ i.MediaAudioType, o.MediaEmbedType, a.MediaImageType, u.MediaVideoType, s.MediaStorylineType, ]); }, 90713: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.MediaAudioRecordType = t.MediaAudioType = void 0); const r = n(2098); (t.MediaAudioType = r.Type.Object({ type: r.Type.Literal("audio"), key: r.Type.String(), duration: r.Type.Number({ minimum: 0 }), originalUrl: r.Type.Optional(r.Type.String()), pause: r.Type.Optional(r.Type.Boolean()), })), (t.MediaAudioRecordType = r.Type.Object({ audio: t.MediaAudioType })); }, 61988: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.MediaEmbedRecordType = t.MediaEmbedType = void 0); const r = n(2098); (t.MediaEmbedType = r.Type.Object({ type: r.Type.Literal("embed"), embedType: r.Type.Union([ r.Type.Literal("link"), r.Type.Literal("photo"), r.Type.Literal("video"), r.Type.Literal("iframe"), ]), src: r.Type.String(), originalUrl: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Null()]) ), provider: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Null()]) ), providerUrl: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Null()]) ), thumbnail: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Null()]) ), favicon: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Null()]) ), title: r.Type.Optional(r.Type.Union([r.Type.String(), r.Type.Null()])), description: r.Type.Optional( r.Type.Union([r.Type.String(), r.Type.Null()]) ), useRelativePath: r.Type.Optional(r.Type.Boolean()), pause: r.Type.Optional(r.Type.Boolean()), })), (t.MediaEmbedRecordType = r.Type.Object({ embed: t.MediaEmbedType })); }, 80996: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.MediaImageRecordType = t.MediaImageType = void 0); const r = n(2098), i = r.Type.Object({ type: r.Type.Optional(r.Type.Literal("image")), key: r.Type.String(), src: r.Type.Optional(r.Type.String()), thumbnail: r.Type.Optional(r.Type.String()), thumbnailKey: r.Type.Optional(r.Type.String()), originalUrl: r.Type.Optional(r.Type.String()), overlayColor: r.Type.Optional(r.Type.String()), alpha: r.Type.Optional(r.Type.Number({ minimum: 0, maximum: 1 })), crushedKey: r.Type.Optional(r.Type.String()), useCrushedKey: r.Type.Optional(r.Type.Boolean()), alt: r.Type.Optional(r.Type.String()), fillWidth: r.Type.Optional(r.Type.Boolean()), align: r.Type.Optional( r.Type.Union([ r.Type.Literal("left"), r.Type.Literal("center"), r.Type.Literal("right"), ]) ), }); (t.MediaImageType = r.Type.Composite([ i, r.Type.Object({ isSquare: r.Type.Optional(r.Type.Boolean()), originalImage: r.Type.Optional(i), dimensions: r.Type.Optional( r.Type.Object({ height: r.Type.Integer({ minimum: 0 }), left: r.Type.Integer({ minimum: 0 }), originalHeight: r.Type.Integer({ minimum: 0 }), originalWidth: r.Type.Integer({ minimum: 0 }), top: r.Type.Integer({ minimum: 0 }), width: r.Type.Integer({ minimum: 0 }), }) ), }), ])), (t.MediaImageRecordType = r.Type.Object({ image: t.MediaImageType })); }, 87791: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.MediaRecordType = void 0); const r = n(2098), i = n(90713), o = n(61988), a = n(80996), s = n(41800), u = n(86433); t.MediaRecordType = r.Type.Partial( r.Type.Composite([ i.MediaAudioRecordType, o.MediaEmbedRecordType, a.MediaImageRecordType, s.MediaStorylineRecordType, u.MediaVideoRecordType, ]) ); }, 6914: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.MediaSettingsType = void 0); const r = n(2098); t.MediaSettingsType = r.Type.Object({ disableZoom: r.Type.Optional(r.Type.Boolean()), fullEmbed: r.Type.Optional(r.Type.Boolean()), showMetaData: r.Type.Optional(r.Type.Boolean()), }); }, 41800: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.MediaStorylineRecordType = t.MediaStorylineType = void 0); const r = n(2098); (t.MediaStorylineType = r.Type.Object({ type: r.Type.Literal("storyline"), src: r.Type.String(), title: r.Type.String(), thumbnail: r.Type.Optional(r.Type.String()), processing: r.Type.Optional(r.Type.Boolean()), contentPrefix: r.Type.String(), meta: r.Type.Object({ title: r.Type.String(), version: r.Type.String(), course_id: r.Type.String(), thumbnail: r.Type.String(), stage: r.Type.Object({ width: r.Type.Number(), height: r.Type.Number(), }), player: r.Type.Object({ name: r.Type.String(), width: r.Type.Number(), height: r.Type.Number(), }), scenes: r.Type.Array(r.Type.Object({ title: r.Type.String() })), slides: r.Type.Array( r.Type.Object({ id: r.Type.String(), title: r.Type.String(), scene_index: r.Type.String(), }) ), }), })), (t.MediaStorylineRecordType = r.Type.Object({ storyline: t.MediaStorylineType, })); }, 86433: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.MediaVideoRecordType = t.MediaVideoType = void 0); const r = n(2098), i = n(25422); (t.MediaVideoType = r.Type.Object({ type: r.Type.Literal("video"), key: r.Type.String(), url: r.Type.String(), poster: r.Type.Optional(r.Type.String()), duration: r.Type.Number({ minimum: 0 }), inputKey: r.Type.String(), thumbnail: r.Type.Optional(r.Type.String()), captionUID: r.Type.Optional(r.Type.String()), originalUrl: r.Type.Optional(r.Type.String()), transcodeId: r.Type.Optional(r.Type.String()), pause: r.Type.Optional(r.Type.Boolean()), captions: r.Type.Optional(r.Type.Array(i.CaptionType)), })), (t.MediaVideoRecordType = r.Type.Object({ video: t.MediaVideoType })); }, 61999: function (e, t, n) { "use strict"; var r = (this && this.__createBinding) || (Object.create ? function (e, t, n, r) { void 0 === r && (r = n); var i = Object.getOwnPropertyDescriptor(t, n); (i && !("get" in i ? !t.__esModule : i.writable || i.configurable)) || (i = { enumerable: !0, get: function () { return t[n]; }, }), Object.defineProperty(e, r, i); } : function (e, t, n, r) { void 0 === r && (r = n), (e[r] = t[n]); }), i = (this && this.__exportStar) || function (e, t) { for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n); }; Object.defineProperty(t, "__esModule", { value: !0 }), i(n(25422), t), i(n(84103), t), i(n(90713), t), i(n(61988), t), i(n(80996), t), i(n(87791), t), i(n(6914), t), i(n(41800), t), i(n(86433), t); }, 66234: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.QuizItemType = t.QuizItemSettingsType = t.QuizItemFeedbackType = t.QuizItemAnswerType = void 0); const r = n(2098), i = n(61999); (t.QuizItemAnswerType = r.Type.Object({ id: r.Type.Union([r.Type.String(), r.Type.Number()]), title: r.Type.String(), feedback: r.Type.Optional(r.Type.String()), })), (t.QuizItemFeedbackType = r.Type.Object({ feedback: r.Type.Optional(r.Type.String()), feedbackType: r.Type.Optional( r.Type.Union([ r.Type.Literal("ANY"), r.Type.Literal("CORRECT_INCORRECT"), r.Type.Literal("CHOICE"), ]) ), feedbackCorrect: r.Type.Optional(r.Type.String()), feedbackIncorrect: r.Type.Optional(r.Type.String()), })), (t.QuizItemSettingsType = r.Type.Object({ isCaseSensitive: r.Type.Optional(r.Type.Boolean()), })), (t.QuizItemType = r.Type.Composite([ t.QuizItemFeedbackType, r.Type.Object({ id: r.Type.Union([r.Type.String(), r.Type.Number()]), title: r.Type.String(), media: r.Type.Optional(i.MediaRecordType), answers: r.Type.Array(t.QuizItemAnswerType), settings: r.Type.Optional(t.QuizItemSettingsType), }), ])); }, 78963: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuizItem = t.isQuizItem = t.QuizItemAny = void 0); const r = n(2098), i = n(45234), o = n(29446), a = n(12701), s = n(78784), u = n(17861), c = n(87233); (t.QuizItemAny = r.Type.Union([ o.QuizItemFillinType, u.QuizItemMultipleResponseType, s.QuizItemMultipleChoiceType, c.QuizItemQuestionBankType, a.QuizItemMatchingType, ])), (t.isQuizItem = (0, i.makeIsFunction)(t.QuizItemAny)), (t.assertQuizItem = (0, i.makeAssertFunction)(t.QuizItemAny)); }, 29446: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuizItemFillin = t.isQuizItemFillin = t.QuizItemFillinType = void 0); const r = n(2098), i = n(45234), o = n(66234); (t.QuizItemFillinType = r.Type.Composite([ o.QuizItemType, r.Type.Object({ type: r.Type.Literal("FILL_IN_THE_BLANK") }), ])), (t.isQuizItemFillin = (0, i.makeIsFunction)(t.QuizItemFillinType)), (t.assertQuizItemFillin = (0, i.makeAssertFunction)( t.QuizItemFillinType )); }, 12701: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuizItemMatching = t.isQuizItemMatching = t.QuizItemMatchingType = void 0); const r = n(2098), i = n(45234), o = n(66234); (t.QuizItemMatchingType = r.Type.Composite([ o.QuizItemType, r.Type.Object({ type: r.Type.Literal("MATCHING"), answers: r.Type.Composite([ o.QuizItemType.answers, r.Type.Object({ matchTitle: r.Type.String() }), ]), }), ])), (t.isQuizItemMatching = (0, i.makeIsFunction)(t.QuizItemMatchingType)), (t.assertQuizItemMatching = (0, i.makeAssertFunction)( t.QuizItemMatchingType )); }, 78784: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuizItemMultipleChoice = t.isQuizItemMultipleChoice = t.QuizItemMultipleChoiceType = void 0); const r = n(2098), i = n(45234), o = n(66234); (t.QuizItemMultipleChoiceType = r.Type.Composite([ o.QuizItemType, r.Type.Object({ type: r.Type.Literal("MULTIPLE_CHOICE"), correct: r.Type.String(), corrects: r.Type.Array(r.Type.String(), { minItems: 1, maxItems: 1 }), }), ])), (t.isQuizItemMultipleChoice = (0, i.makeIsFunction)( t.QuizItemMultipleChoiceType )), (t.assertQuizItemMultipleChoice = (0, i.makeAssertFunction)( t.QuizItemMultipleChoiceType )); }, 17861: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuizItemMultipleResponse = t.isQuizItemMultipleResponse = t.QuizItemMultipleResponseType = void 0); const r = n(2098), i = n(45234), o = n(66234); (t.QuizItemMultipleResponseType = r.Type.Composite([ o.QuizItemType, r.Type.Object({ type: r.Type.Literal("MULTIPLE_RESPONSE"), corrects: r.Type.Array(r.Type.String()), }), ])), (t.isQuizItemMultipleResponse = (0, i.makeIsFunction)( t.QuizItemMultipleResponseType )), (t.assertQuizItemMultipleResponse = (0, i.makeAssertFunction)( t.QuizItemMultipleResponseType )); }, 87233: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.assertQuizItemQuestionBank = t.isQuizItemQuestionBank = t.QuizItemQuestionBankType = void 0); const r = n(2098), i = n(45234), o = n(66234); (t.QuizItemQuestionBankType = r.Type.Composite([ o.QuizItemType, r.Type.Object({ type: r.Type.Literal("DRAW_FROM_QUESTION_BANK"), questionBankId: r.Type.String(), questionBankTitle: r.Type.String(), questionBankUpdatedAt: r.Type.String(), drawCount: r.Type.Number(), questions: r.Type.Array( r.Type.Object({ id: r.Type.Union([r.Type.String(), r.Type.Number()]), type: r.Type.Literal("MULTIPLE_CHOICE"), title: r.Type.String(), correct: r.Type.String(), answers: o.QuizItemType.answers, }) ), }), ])), (t.isQuizItemQuestionBank = (0, i.makeIsFunction)( t.QuizItemQuestionBankType )), (t.assertQuizItemQuestionBank = (0, i.makeAssertFunction)( t.QuizItemQuestionBankType )); }, 42331: function (e, t, n) { "use strict"; var r = (this && this.__createBinding) || (Object.create ? function (e, t, n, r) { void 0 === r && (r = n); var i = Object.getOwnPropertyDescriptor(t, n); (i && !("get" in i ? !t.__esModule : i.writable || i.configurable)) || (i = { enumerable: !0, get: function () { return t[n]; }, }), Object.defineProperty(e, r, i); } : function (e, t, n, r) { void 0 === r && (r = n), (e[r] = t[n]); }), i = (this && this.__exportStar) || function (e, t) { for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n); }; Object.defineProperty(t, "__esModule", { value: !0 }), i(n(66234), t), i(n(29446), t), i(n(12701), t), i(n(78784), t), i(n(17861), t), i(n(87233), t); }, 69117: function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); }, 62427: function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); }, 48796: function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); }, 53916: function (e, t, n) { "use strict"; var r = (this && this.__createBinding) || (Object.create ? function (e, t, n, r) { void 0 === r && (r = n); var i = Object.getOwnPropertyDescriptor(t, n); (i && !("get" in i ? !t.__esModule : i.writable || i.configurable)) || (i = { enumerable: !0, get: function () { return t[n]; }, }), Object.defineProperty(e, r, i); } : function (e, t, n, r) { void 0 === r && (r = n), (e[r] = t[n]); }), i = (this && this.__exportStar) || function (e, t) { for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n); }; Object.defineProperty(t, "__esModule", { value: !0 }), i(n(69117), t), i(n(62427), t), i(n(48796), t); }, 45234: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.makeAssertFunction = t.makeIsFunction = t.RiseContentAssertionError = void 0); const r = n(32477); class i extends AggregateError {} (t.RiseContentAssertionError = i), (t.makeIsFunction = function (e) { return function (t) { return r.Value.Check(e, t); }; }), (t.makeAssertFunction = function (e) { return function (t) { if (!r.Value.Check(e, t)) throw new i(r.Value.Errors(e, t)); }; }); }, 64057: function (e, t, n) { var r = n(88635), i = n(93645), o = n(64430); e.exports = i(function (e, t, n) { var i = {}; return function () { for (var a = [], s = arguments.length; s--; ) a[s] = arguments[s]; return o(function () { var o = t.apply(null, a); return ( i[o] || ((i[o] = {}), (i[o].async = r(function (e, t) { Object.assign(i[o], { reject: e, resolve: t }); }))), clearTimeout(i[o].timeout), (i[o].timeout = setTimeout(function () { var e = i[o], t = e.reject, r = e.resolve; n.apply(null, a).fork(t, r), delete i[o]; }, e)), i[o].async ); }); }; }); }, 71066: function (e, t, n) { var r = n(88635), i = n(93645), o = n(64430), a = n(12269); e.exports = i(function (e, t, n) { var i = {}, s = function (e) { i[e].last = Date.now(); var t = i[e], r = t.args, o = t.reject, a = t.resolve; n.apply(null, r).fork(o, a), delete i[e].args, delete i[e].timeout; }; return function () { for (var n = [], u = arguments.length; u--; ) n[u] = arguments[u]; return o(function () { var o = t.apply(null, n); i[o] || ((i[o] = {}), (i[o].async = r(function (e, t) { Object.assign(i[o], { reject: e, resolve: t }); }))), (i[o].args = n); var u = Date.now() - (i[o].last || 0); if (!i[o].timeout) { var c = a(0, e - u); i[o].timeout = setTimeout(s.bind(null, o), c); } return i[o].async; }); }; }); }, 88635: function (e, t, n) { var r = n(67607), i = n(91421), o = n(49761).type("Async"), a = n(49761).typeFn(o(), 3), s = n(70911), u = n(64388), c = n(2167), l = n(79025), f = n(89411), d = n(19380), p = n(97798), h = n(48326), g = n(91042), m = n(96774), y = n(32126), v = function (e) { return b(function (t, n) { return n(e); }); }; function b(e) { var t; if (!h(e)) throw new TypeError("Async: Function required"); var n = v, r = function () { return "Async" + i(e); }; function u(t, n, r) { if (!h(t) || !h(n)) throw new TypeError( "Async.fork: Reject and resolve functions required" ); var i = !1, o = !1, a = h(r) ? r : f, s = function (e, t) { if (!o) return (o = !0), i ? f() : e(t); }, u = e(s.bind(null, t), s.bind(null, n)), c = h(u) ? u : f; return l(function () { return a((c(), void (i = !0))); }); } function d(e) { return function (t) { if (!h(t)) throw new TypeError("Async." + e + ": Function required"); return b(function (e, n) { return u(e, c(n, t)); }); }; } function p(e) { return function (t, n) { if (!h(t) || !h(n)) throw new TypeError( "Async." + e + ": Functions required for both arguments" ); return b(function (e, r) { return u(c(e, t), c(r, n)); }); }; } function g(e) { return function (t) { if (!y(b, t)) throw new TypeError("Async." + e + ": Async required"); return b(function (e, n) { var r = f, i = f; return ( (r = u(function () { i = t.fork(e, n); }, n)), l(function () { return i(r()); }) ); }); }; } function m(e) { return function (t) { if (!h(t)) throw new TypeError( "Async." + e + ": Async returning function required" ); return b(function (n, r) { var i = f, o = f; return ( (i = u(n, function (i) { var a = t(i); if (!y(b, a)) throw new TypeError( "Async." + e + ": Function must return another Async" ); o = a.fork(n, r); })), l(function () { return o(i()); }) ); }); }; } return ( ((t = { fork: u, toPromise: function () { return new Promise(function (e, t) { u(t, e); }); }, inspect: r, toString: r, type: o, swap: function (e, t) { if (!h(e) || !h(t)) throw new TypeError( "Async.swap: Functions required for both arguments" ); return b(function (n, r) { return u(c(r, e), c(n, t)); }); }, race: function (e) { if (!y(b, e)) throw new TypeError("Async.race: Async required"); return b(function (t, n) { var r = l(function (e, r) { return e ? n(r) : t(r); }), i = r.bind(null, !0), o = r.bind(null, !1), a = u(o, i), s = e.fork(o, i); return function () { a(), s(); }; }); }, coalesce: function (e, t) { if (!h(e) || !h(t)) throw new TypeError( "Async.coalesce: Functions required for both arguments" ); return b(function (n, r) { return u(c(r, e), c(r, t)); }); }, ap: function (e) { if (!y(b, e)) throw new TypeError("Async.ap: Async required"); return b(function (t, n) { var r = null, i = null, o = !1, a = !1, s = !1, f = l(t); function d() { !s && o && a && c(n, r)(i); } var p = u(f, function (e) { if (!h(e)) throw new TypeError( "Async.ap: Wrapped value must be a function" ); (o = !0), (r = e), d(); }), g = e.fork(f, function (e) { (a = !0), (i = e), d(); }); return function () { p(), g(), (s = !0); }; }); }, of: n, alt: g("alt"), bimap: p("bimap"), map: d("map"), chain: m("chain"), })[s.of] = n), (t[s.alt] = g(s.alt)), (t[s.bimap] = p(s.bimap)), (t[s.map] = d(s.map)), (t[s.chain] = m(s.chain)), (t["@@type"] = a), (t.constructor = b), t ); } (b.of = v), (b.type = o), (b[s.of] = v), (b["@@type"] = a), (b.Rejected = function (e) { return b(function (t) { return t(e); }); }), (b.Resolved = v), (b.fromPromise = function (e) { if (!h(e)) throw new TypeError( "Async.fromPromise: Promise returning function required" ); return function () { var t = arguments; return b(function (n, r) { var i = e.apply(null, t); if (!m(i)) throw new TypeError( "Async.fromPromise: Promise returning function required" ); i.then(r).catch(n); }); }; }), (b.fromNode = function (e, t) { if (!h(e)) throw new TypeError("Async.fromNode: CPS function required"); return function () { for (var n = [], r = arguments.length; r--; ) n[r] = arguments[r]; return b(function (r, i) { e.apply( t, n.concat(function (e, t) { return e ? r(e) : i(t); }) ); }); }; }), (b.all = function (e) { if ( !p(e) || !e.reduce(function (e, t) { return e && y(b, t); }, !0) ) throw new TypeError( "Async.all: Foldable structure of Asyncs required" ); return d(e) ? u.sequence(b.of, e) : e.sequence(b.of); }), (b.rejectAfter = function (e, t) { if (!(g(e) && e >= 0)) throw new TypeError( "Async.rejectAfter: Positive Integer required for first argument" ); return b(function (n) { var r = setTimeout(function () { n(t); }, e); return function () { clearTimeout(r); }; }); }), (b.resolveAfter = function (e, t) { if (!(g(e) && e >= 0)) throw new TypeError( "Async.resolveAfter: Positive Integer required for first argument" ); return b(function (n, r) { var i = setTimeout(function () { r(t); }, e); return function () { clearTimeout(i); }; }); }), (b["@@implements"] = r(["alt", "ap", "bimap", "chain", "map", "of"])), (e.exports = b); }, 64430: function (e, t, n) { var r = n(67607), i = n(91421), o = n(49761).type("IO"), a = n(49761).typeFn(o(), 2), s = n(70911), u = n(2167), c = n(48326), l = n(32126), f = function (e) { return d(function () { return e; }); }; function d(e) { var t; if (!c(e)) throw new TypeError("IO: Must wrap a function"); var n = f, r = function () { return "IO" + i(e); }; function p(t) { return function (n) { if (!c(n)) throw new TypeError("IO." + t + ": Function required"); return d(u(n, e)); }; } function h(t) { return function (n) { if (!c(n)) throw new TypeError("IO." + t + ": Function required"); return d(function () { var r = n(e()); if (!l(d, r)) throw new TypeError("IO." + t + ": Function must return an IO"); return r.run(); }); }; } return ( ((t = { inspect: r, toString: r, run: e, type: o, ap: function (t) { if (!l(d, t)) throw new TypeError("IO.ap: IO required"); return d(function () { var n = e(); if (!c(n)) throw new TypeError( "IO.ap: Wrapped value must be a function" ); return t.map(n).run(); }); }, of: n, map: p("map"), chain: h("chain"), })[s.of] = n), (t[s.map] = p(s.map)), (t[s.chain] = h(s.chain)), (t["@@type"] = a), (t.constructor = d), t ); } (d.of = f), (d.type = o), (d[s.of] = f), (d["@@type"] = a), (d["@@implements"] = r(["ap", "chain", "map", "of"])), (e.exports = d); }, 89411: function (e) { e.exports = Function.prototype; }, 31646: function (e, t, n) { var r = n(67158), i = n(60060); e.exports = function (e) { return function (t) { return r(e) ? e.of(t) : i(Array, e) ? [t] : e(t); }; }; }, 64388: function (e, t, n) { var r = n(86827), i = n(19380), o = n(30191), a = n(48326), s = n(32126), u = n(33748), c = n(31646), l = function (e) { return e; }, f = function (e) { return function (t) { return e.concat(t); }; }; function d(e, t) { return function (n, o) { var a = t(o); if ((!r(n) && !i(n)) || !s(n, a)) throw new TypeError( "Array." + e + ": Must wrap Applys of the same type" ); return i(a) ? h( n, p(function (e) { return f([e]); }, a) ) : a .map(function (e) { return f([e]); }) .ap(n); }; } var p = function (e, t) { return t.map(function (t) { return e(t); }); }; function h(e, t) { if ( !t.length || !t.reduce(function (e, t) { return e && a(t); }, !0) ) throw new TypeError("Array.ap: Second Array must all be functions"); return t.reduce(function (t, n) { return t.concat(p(n, e)); }, []); } e.exports = { ap: h, chain: function (e, t) { return t.reduce(function (t, n) { var r = e(n); if (!i(r)) throw new TypeError("Array.chain: Function must return an Array"); return t.concat(r); }, []); }, fold: function (e) { if (o(e)) throw new TypeError( "Array.fold: Non-empty Array of Semigroups required" ); var t = e[0]; if (!u(t)) throw new TypeError( "Array.fold: Must contain Semigroups of the same type" ); return e.reduce(function (e, t) { if (!s(e, t)) throw new TypeError( "Array.fold: Must contain Semigroups of the same type" ); return e.concat(t); }); }, foldMap: function (e, t) { if (o(t)) throw new TypeError("Array.foldMap: Non-empty Array required"); var n = e(t[0]); if (!u(n)) throw new TypeError( "Array.foldMap: Provided function must return Semigroups of the same type" ); return 1 === t.length ? n : t.slice(1).reduce(function (t, n) { var r = e(n); if (!s(t, r) || !u(r)) throw new TypeError( "Array.foldMap: Provided function must return Semigroups of the same type" ); return t.concat(r); }, n); }, map: p, sequence: function (e, t) { var n = c(e); return t.reduceRight(d("sequence", l), n([])); }, traverse: function (e, t, n) { var r = c(e); return n.reduceRight(d("traverse", t), r([])); }, }; }, 2167: function (e) { e.exports = function (e, t) { return function (n) { return e(t(n)); }; }; }, 37989: function (e, t, n) { var r = n(48326); function i(e, t) { return r(e) ? (e.length > 1 ? e.bind(null, t) : e.call(null, t)) : e; } e.exports = function e(t) { return function () { for (var n = [], o = arguments.length; o--; ) n[o] = arguments[o]; var a = n.length ? n : [void 0]; if (a.length < t.length) return e(Function.bind.apply(t, [null].concat(a))); var s = a.length === t.length ? t.apply(null, a) : a.reduce(i, t); return r(s) ? e(s) : s; }; }; }, 70911: function (e) { e.exports = { alt: "fantasy-land/alt", bimap: "fantasy-land/bimap", chain: "fantasy-land/chain", compose: "fantasy-land/compose", concat: "fantasy-land/concat", contramap: "fantasy-land/contramap", empty: "fantasy-land/empty", equals: "fantasy-land/equals", extend: "fantasy-land/extend", id: "fantasy-land/id", map: "fantasy-land/map", of: "fantasy-land/of", promap: "fantasy-land/promap", reduce: "fantasy-land/reduce", zero: "fantasy-land/zero", }; }, 33333: function (e, t, n) { var r = n(48326), i = n(70911); e.exports = function (e, t) { return ( !!t && ((function (e, t) { return r(t[i[e]]) || r(t[e]); })(e, t) || (function (e, t) { return r(t["@@implements"]) && !!t["@@implements"](e); })(e, t)) ); }; }, 67607: function (e) { e.exports = function (e) { return function (t) { return -1 !== e.indexOf(t); }; }; }, 91421: function (e, t, n) { var r = n(19380), i = n(48326), o = n(22323), a = n(47071), s = n(77136); function u(e) { return e && i(e.inspect) ? " " + e.inspect() : i(e) ? " Function" : r(e) ? " [" + (((t = e).length ? t.map(u).reduce(function (e, t) { return e + "," + t; }) : t) + " ]") : o(e) ? " { " + Object.keys(e) .reduce(function (t, n) { return t.concat([n + ":" + u(e[n])]); }, []) .join(", ") + " }" : a(e) ? ' "' + e + '"' : s(e) ? " " + e.toString() : " " + e; var t; } e.exports = u; }, 67158: function (e, t, n) { var r = n(33333), i = n(86827); e.exports = function (e) { return i(e) && (r("of", e) || r("of", e.constructor)); }; }, 86827: function (e, t, n) { var r = n(33333), i = n(99574); e.exports = function (e) { return i(e) && r("ap", e); }; }, 19380: function (e) { e.exports = function (e) { return Array.isArray(e); }; }, 30191: function (e, t, n) { var r = n(22323); e.exports = function (e) { return r(e) ? !Object.keys(e).length : !e || void 0 === e.length || !e.length; }; }, 97798: function (e, t, n) { var r = n(33333); e.exports = function (e) { return !!e && r("reduce", e); }; }, 48326: function (e) { e.exports = function (e) { return "function" == typeof e; }; }, 99574: function (e, t, n) { var r = n(33333); e.exports = function (e) { return !!e && r("map", e); }; }, 91042: function (e, t, n) { var r = n(29241); e.exports = function (e) { return r(e) && isFinite(e) && Math.floor(e) === e; }; }, 29241: function (e) { e.exports = function (e) { return "number" == typeof e && !isNaN(e); }; }, 22323: function (e) { var t = Object.prototype.toString; e.exports = function (e) { return !!e && "[object Object]" === t.call(e); }; }, 96774: function (e, t, n) { var r = n(48326); e.exports = function (e) { return !!e && r(e.then) && r(e.catch); }; }, 32126: function (e, t, n) { var r = n(37989), i = n(48326), o = n(21223); e.exports = r(function (e, t) { var n = o(e), r = o(t); return n === r || (i(e) && e.name === r) || (i(t) && t.name === n); }); }, 33748: function (e, t, n) { var r = n(47071), i = n(33333); e.exports = function (e) { return r(e) || (!!e && i("concat", e)); }; }, 47071: function (e) { e.exports = function (e) { return "string" == typeof e; }; }, 77136: function (e) { e.exports = function (e) { return "symbol" == typeof e; }; }, 60060: function (e, t, n) { var r = n(48326); e.exports = function (e, t) { return r(t) && (e === t || e.name === t.name); }; }, 79025: function (e) { e.exports = function (e) { var t, n; return function () { return t || ((t = !0), (n = e.apply(null, arguments))), n; }; }; }, 21223: function (e, t, n) { var r = n(48326); e.exports = function (e) { return e && r(e.type) ? e.type() : {}.toString.call(e).slice(8, -1); }; }, 49761: function (e) { var t = { unk: function () { return "unknown"; }, All: function () { return "All"; }, Any: function () { return "Any"; }, Arrow: function () { return "Arrow"; }, Assign: function () { return "Assign"; }, Async: function () { return "Async"; }, Const: function () { return "Const"; }, Either: function () { return "Either"; }, Endo: function () { return "Endo"; }, Equiv: function () { return "Equiv"; }, First: function () { return "First"; }, Identity: function () { return "Identity"; }, IO: function () { return "IO"; }, Last: function () { return "Last"; }, List: function () { return "List"; }, Max: function () { return "Max"; }, Maybe: function () { return "Maybe"; }, Min: function () { return "Min"; }, Pair: function () { return "Pair"; }, Pred: function () { return "Pred"; }, Prod: function () { return "Prod"; }, Reader: function () { return "Reader"; }, Result: function () { return "Result"; }, Star: function () { return "Star"; }, State: function () { return "State"; }, Sum: function () { return "Sum"; }, Tuple: function (e) { return e + "-Tuple"; }, Unit: function () { return "Unit"; }, Writer: function () { return "Writer"; }, }, n = function (e) { return t[e] || t.unk; }; e.exports = { proxy: function (e) { return { type: n(e) }; }, type: n, typeFn: function (e, t, r) { return "crocks/" + n(e)(r) + "@" + (t || 0); }, }; }, 93645: function (e, t, n) { var r = n(66747), i = n(90061), o = r(function (e) { return i(e.length, e); }); e.exports = o; }, 90061: function (e, t, n) { var r = n(53998), i = n(66747), o = n(45018), a = n(70267), s = o(function (e, t) { return 1 === e ? i(t) : r(e, a(e, [], t)); }); e.exports = s; }, 53998: function (e) { e.exports = function (e, t) { switch (e) { case 0: return function () { return t.apply(this, arguments); }; case 1: return function (e) { return t.apply(this, arguments); }; case 2: return function (e, n) { return t.apply(this, arguments); }; case 3: return function (e, n, r) { return t.apply(this, arguments); }; case 4: return function (e, n, r, i) { return t.apply(this, arguments); }; case 5: return function (e, n, r, i, o) { return t.apply(this, arguments); }; case 6: return function (e, n, r, i, o, a) { return t.apply(this, arguments); }; case 7: return function (e, n, r, i, o, a, s) { return t.apply(this, arguments); }; case 8: return function (e, n, r, i, o, a, s, u) { return t.apply(this, arguments); }; case 9: return function (e, n, r, i, o, a, s, u, c) { return t.apply(this, arguments); }; case 10: return function (e, n, r, i, o, a, s, u, c, l) { return t.apply(this, arguments); }; default: throw new Error( "First argument to _arity must be a non-negative integer no greater than ten" ); } }; }, 66747: function (e, t, n) { var r = n(79178); e.exports = function (e) { return function t(n) { return 0 === arguments.length || r(n) ? t : e.apply(this, arguments); }; }; }, 45018: function (e, t, n) { var r = n(66747), i = n(79178); e.exports = function (e) { return function t(n, o) { switch (arguments.length) { case 0: return t; case 1: return i(n) ? t : r(function (t) { return e(n, t); }); default: return i(n) && i(o) ? t : i(n) ? r(function (t) { return e(t, o); }) : i(o) ? r(function (t) { return e(n, t); }) : e(n, o); } }; }; }, 70267: function (e, t, n) { var r = n(53998), i = n(79178); e.exports = function e(t, n, o) { return function () { for ( var a = [], s = 0, u = t, c = 0; c < n.length || s < arguments.length; ) { var l; c < n.length && (!i(n[c]) || s >= arguments.length) ? (l = n[c]) : ((l = arguments[s]), (s += 1)), (a[c] = l), i(l) || (u -= 1), (c += 1); } return u <= 0 ? o.apply(this, a) : r(u, e(t, a, o)); }; }; }, 79178: function (e) { e.exports = function (e) { return ( null != e && "object" == typeof e && !0 === e["@@functional/placeholder"] ); }; }, 12269: function (e, t, n) { var r = n(45018)(function (e, t) { return t > e ? t : e; }); e.exports = r; }, 52512: function (e, t, n) { var r = n(80988); e.exports = r; }, 98998: function (e, t, n) { var r = n(59092); e.exports = r; }, 64272: function (e, t, n) { var r = n(533); e.exports = r; }, 72584: function (e, t, n) { var r = n(38006); e.exports = r; }, 65451: function (e, t, n) { var r = n(77234); e.exports = r; }, 19214: function (e, t, n) { var r = n(18234); e.exports = r; }, 18668: function (e, t, n) { var r = n(21527); e.exports = r; }, 52973: function (e, t, n) { var r = n(12702); e.exports = r; }, 27092: function (e, t, n) { var r = n(56053); e.exports = r; }, 74040: function (e, t, n) { var r = n(42690); e.exports = r; }, 25029: function (e, t, n) { var r = n(97318); e.exports = r; }, 14622: function (e, t, n) { var r = n(46545); e.exports = r; }, 85332: function (e, t, n) { var r = n(1597); e.exports = r; }, 95268: function (e, t, n) { var r = n(76788); e.exports = r; }, 26632: function (e, t, n) { var r = n(58015); e.exports = r; }, 83140: function (e, t, n) { var r = n(10320); e.exports = r; }, 76094: function (e, t, n) { var r = n(11787); e.exports = r; }, 60315: function (e, t, n) { var r = n(69213); e.exports = r; }, 53605: function (e, t, n) { var r = n(844); e.exports = r; }, 42208: function (e, t, n) { var r = n(65012); e.exports = r; }, 46686: function (e, t, n) { var r = n(60073); e.exports = r; }, 54827: function (e, t, n) { var r = n(20996); e.exports = r; }, 83268: function (e, t, n) { var r = n(87935); e.exports = r; }, 77109: function (e, t, n) { var r = n(13437); e.exports = r; }, 1779: function (e, t, n) { var r = n(55085); e.exports = r; }, 79814: function (e, t, n) { var r = n(91156); e.exports = r; }, 15443: function (e, t, n) { var r = n(96256); e.exports = r; }, 46207: function (e, t, n) { var r = n(4817); e.exports = r; }, 57897: function (e, t, n) { var r = n(39795); e.exports = r; }, 36168: function (e, t, n) { var r = n(112); e.exports = r; }, 13262: function (e, t, n) { var r = n(62586); e.exports = r; }, 96264: function (e, t, n) { var r = n(67837); e.exports = r; }, 6764: function (e, t, n) { var r = n(70216); e.exports = r; }, 51308: function (e, t, n) { var r = n(77426); e.exports = r; }, 31826: function (e, t, n) { var r = n(94998); e.exports = r; }, 74037: function (e, t, n) { var r = n(21845); e.exports = r; }, 8434: function (e, t, n) { var r = n(89281); e.exports = r; }, 14286: function (e, t, n) { var r = n(63353); e.exports = r; }, 24430: function (e, t, n) { var r = n(41930); e.exports = r; }, 39384: function (e, t, n) { var r = n(18350); e.exports = r; }, 39701: function (e, t, n) { var r = n(35802); e.exports = r; }, 73363: function (e, t, n) { var r = n(52102); e.exports = r; }, 70446: function (e, t, n) { var r = n(24033); e.exports = r; }, 16929: function (e, t, n) { var r = n(75049); e.exports = r; }, 23809: function (e, t, n) { var r = n(63802); e.exports = r; }, 79574: function (e, t, n) { var r = n(12998); e.exports = r; }, 51112: function (e, t, n) { var r = n(43296); e.exports = r; }, 44671: function (e, t, n) { var r = n(86272); e.exports = r; }, 85857: function (e, t, n) { var r = n(86775); n(52711), n(29097), n(73225), n(45392), n(71638), n(53933), n(21366), (e.exports = r); }, 8655: function (e, t, n) { var r = n(36866); n(20795), (e.exports = r); }, 65845: function (e, t, n) { var r = n(17276); e.exports = r; }, 51386: function (e, t, n) { var r = n(97698); e.exports = r; }, 27847: function (e, t, n) { var r = n(41314); e.exports = r; }, 71155: function (e, t, n) { var r = n(34883); e.exports = r; }, 7618: function (e, t, n) { var r = n(78212); e.exports = r; }, 89508: function (e, t, n) { n(70185), n(34521); var r = n(5058); e.exports = r.Array.from; }, 10197: function (e, t, n) { n(81847); var r = n(5058); e.exports = r.Array.isArray; }, 37595: function (e, t, n) { n(79398); var r = n(80003); e.exports = r("Array").concat; }, 53199: function (e, t, n) { n(30963), n(30277); var r = n(80003); e.exports = r("Array").entries; }, 26375: function (e, t, n) { n(99632); var r = n(80003); e.exports = r("Array").fill; }, 4572: function (e, t, n) { n(38215); var r = n(80003); e.exports = r("Array").filter; }, 1955: function (e, t, n) { n(11688); var r = n(80003); e.exports = r("Array").findIndex; }, 99449: function (e, t, n) { n(79435); var r = n(80003); e.exports = r("Array").find; }, 36906: function (e, t, n) { n(82356); var r = n(80003); e.exports = r("Array").forEach; }, 6051: function (e, t, n) { n(93455); var r = n(80003); e.exports = r("Array").includes; }, 77874: function (e, t, n) { n(25749); var r = n(80003); e.exports = r("Array").indexOf; }, 41297: function (e, t, n) { n(30963), n(30277); var r = n(80003); e.exports = r("Array").keys; }, 17166: function (e, t, n) { n(94889); var r = n(80003); e.exports = r("Array").map; }, 54237: function (e, t, n) { n(11229); var r = n(80003); e.exports = r("Array").reverse; }, 45173: function (e, t, n) { n(1859); var r = n(80003); e.exports = r("Array").slice; }, 26454: function (e, t, n) { n(76237); var r = n(80003); e.exports = r("Array").sort; }, 82157: function (e, t, n) { n(30963), n(30277); var r = n(80003); e.exports = r("Array").values; }, 64362: function (e, t, n) { n(98039); var r = n(80003); e.exports = r("Function").bind; }, 60047: function (e, t, n) { n(30963), n(70185); var r = n(4187); e.exports = r; }, 23009: function (e, t, n) { n(67399), (e.exports = n(82202)); }, 78894: function (e, t, n) { var r = n(41535), i = n(64362), o = Function.prototype; e.exports = function (e) { var t = e.bind; return e === o || (r(o, e) && t === o.bind) ? i : t; }; }, 15473: function (e, t, n) { var r = n(41535), i = n(37595), o = Array.prototype; e.exports = function (e) { var t = e.concat; return e === o || (r(o, e) && t === o.concat) ? i : t; }; }, 90488: function (e, t, n) { var r = n(41535), i = n(69782), o = String.prototype; e.exports = function (e) { var t = e.endsWith; return "string" == typeof e || e === o || (r(o, e) && t === o.endsWith) ? i : t; }; }, 42774: function (e, t, n) { var r = n(41535), i = n(26375), o = Array.prototype; e.exports = function (e) { var t = e.fill; return e === o || (r(o, e) && t === o.fill) ? i : t; }; }, 74760: function (e, t, n) { var r = n(41535), i = n(4572), o = Array.prototype; e.exports = function (e) { var t = e.filter; return e === o || (r(o, e) && t === o.filter) ? i : t; }; }, 91093: function (e, t, n) { var r = n(41535), i = n(1955), o = Array.prototype; e.exports = function (e) { var t = e.findIndex; return e === o || (r(o, e) && t === o.findIndex) ? i : t; }; }, 52246: function (e, t, n) { var r = n(41535), i = n(99449), o = Array.prototype; e.exports = function (e) { var t = e.find; return e === o || (r(o, e) && t === o.find) ? i : t; }; }, 23163: function (e, t, n) { var r = n(41535), i = n(6051), o = n(76200), a = Array.prototype, s = String.prototype; e.exports = function (e) { var t = e.includes; return e === a || (r(a, e) && t === a.includes) ? i : "string" == typeof e || e === s || (r(s, e) && t === s.includes) ? o : t; }; }, 97993: function (e, t, n) { var r = n(41535), i = n(77874), o = Array.prototype; e.exports = function (e) { var t = e.indexOf; return e === o || (r(o, e) && t === o.indexOf) ? i : t; }; }, 51597: function (e, t, n) { var r = n(41535), i = n(17166), o = Array.prototype; e.exports = function (e) { var t = e.map; return e === o || (r(o, e) && t === o.map) ? i : t; }; }, 27893: function (e, t, n) { var r = n(41535), i = n(84364), o = String.prototype; e.exports = function (e) { var t = e.padStart; return "string" == typeof e || e === o || (r(o, e) && t === o.padStart) ? i : t; }; }, 77276: function (e, t, n) { var r = n(41535), i = n(54237), o = Array.prototype; e.exports = function (e) { var t = e.reverse; return e === o || (r(o, e) && t === o.reverse) ? i : t; }; }, 12066: function (e, t, n) { var r = n(41535), i = n(45173), o = Array.prototype; e.exports = function (e) { var t = e.slice; return e === o || (r(o, e) && t === o.slice) ? i : t; }; }, 19721: function (e, t, n) { var r = n(41535), i = n(26454), o = Array.prototype; e.exports = function (e) { var t = e.sort; return e === o || (r(o, e) && t === o.sort) ? i : t; }; }, 5783: function (e, t, n) { var r = n(41535), i = n(88932), o = String.prototype; e.exports = function (e) { var t = e.startsWith; return "string" == typeof e || e === o || (r(o, e) && t === o.startsWith) ? i : t; }; }, 27866: function (e, t, n) { var r = n(41535), i = n(17227), o = String.prototype; e.exports = function (e) { var t = e.trim; return "string" == typeof e || e === o || (r(o, e) && t === o.trim) ? i : t; }; }, 68563: function (e, t, n) { n(19737); var r = n(5058), i = n(26477); r.JSON || (r.JSON = { stringify: JSON.stringify }), (e.exports = function (e, t, n) { return i(r.JSON.stringify, null, arguments); }); }, 72627: function (e, t, n) { n(30963), n(12297), n(30277), n(70185); var r = n(5058); e.exports = r.Map; }, 3456: function (e, t, n) { n(8544); var r = n(5058); e.exports = r.Math.cbrt; }, 55727: function (e, t, n) { n(63041); var r = n(5058); e.exports = r.Math.log10; }, 83070: function (e, t, n) { n(83560); var r = n(5058); e.exports = r.Math.sign; }, 54358: function (e, t, n) { n(39467); var r = n(5058); e.exports = r.Number.isInteger; }, 89345: function (e, t, n) { n(504); var r = n(5058); e.exports = r.Number.isNaN; }, 65028: function (e, t, n) { n(99421), (e.exports = 9007199254740991); }, 10273: function (e, t, n) { n(64564); var r = n(5058); e.exports = r.Object.assign; }, 19999: function (e, t, n) { n(13365); var r = n(5058).Object; e.exports = function (e, t) { return r.create(e, t); }; }, 14116: function (e, t, n) { n(42883); var r = n(5058).Object, i = (e.exports = function (e, t, n) { return r.defineProperty(e, t, n); }); r.defineProperty.sham && (i.sham = !0); }, 70060: function (e, t, n) { n(74152); var r = n(5058); e.exports = r.Object.entries; }, 24573: function (e, t, n) { n(18909); var r = n(5058).Object, i = (e.exports = function (e, t) { return r.getOwnPropertyDescriptor(e, t); }); r.getOwnPropertyDescriptor.sham && (i.sham = !0); }, 33298: function (e, t, n) { n(51690); var r = n(5058); e.exports = r.Object.getOwnPropertyDescriptors; }, 68561: function (e, t, n) { n(21006); var r = n(5058); e.exports = r.Object.getOwnPropertySymbols; }, 69304: function (e, t, n) { n(22569); var r = n(5058); e.exports = r.Object.getPrototypeOf; }, 50688: function (e, t, n) { n(93424); var r = n(5058); e.exports = r.Object.is; }, 84802: function (e, t, n) { n(44261); var r = n(5058); e.exports = r.Object.keys; }, 76929: function (e, t, n) { n(9652); var r = n(5058); e.exports = r.Object.setPrototypeOf; }, 46660: function (e, t, n) { n(76818); var r = n(5058); e.exports = r.Object.values; }, 15716: function (e, t, n) { n(72750), n(30963), n(30277), n(57491), n(49230), n(33978), n(39952), n(70185); var r = n(5058); e.exports = r.Promise; }, 27313: function (e, t, n) { n(24679); var r = n(5058); e.exports = r.Reflect.construct; }, 78284: function (e, t, n) { n(22382); var r = n(5058); e.exports = r.Reflect.get; }, 70284: function (e, t, n) { n(30963), n(30277), n(1753), n(70185); var r = n(5058); e.exports = r.Set; }, 69782: function (e, t, n) { n(28107); var r = n(80003); e.exports = r("String").endsWith; }, 76200: function (e, t, n) { n(2126); var r = n(80003); e.exports = r("String").includes; }, 84364: function (e, t, n) { n(28051); var r = n(80003); e.exports = r("String").padStart; }, 88932: function (e, t, n) { n(914); var r = n(80003); e.exports = r("String").startsWith; }, 17227: function (e, t, n) { n(77485); var r = n(80003); e.exports = r("String").trim; }, 49457: function (e, t, n) { n(79398), n(30277), n(21006), n(63112), n(42019), n(24435), n(93427), n(42526), n(3314), n(25202), n(46916), n(19206), n(28458), n(43743), n(1283), n(17294), n(26287), n(78655), n(15913), n(77014); var r = n(5058); e.exports = r.Symbol; }, 71080: function (e, t, n) { n(30963), n(30277), n(70185), n(42526); var r = n(88239); e.exports = r.f("iterator"); }, 8025: function (e, t, n) { n(14109), n(1283); var r = n(88239); e.exports = r.f("toPrimitive"); }, 37836: function (e, t, n) { n(30963), n(30277), n(40140); var r = n(5058); e.exports = r.WeakMap; }, 51714: function (e, t, n) { e.exports = n(92275); }, 25122: function (e, t, n) { e.exports = n(90022); }, 78458: function (e, t, n) { e.exports = n(13078); }, 34153: function (e, t, n) { e.exports = n(71686); }, 65600: function (e, t, n) { e.exports = n(13265); }, 28266: function (e, t, n) { e.exports = n(11864); }, 44399: function (e, t, n) { e.exports = n(38413); }, 39367: function (e, t, n) { e.exports = n(65453); }, 22005: function (e, t, n) { e.exports = n(9827); }, 34748: function (e, t, n) { e.exports = n(8729); }, 83696: function (e, t, n) { e.exports = n(58485); }, 76516: function (e, t, n) { e.exports = n(9459); }, 56368: function (e, t, n) { e.exports = n(58254); }, 93739: function (e, t, n) { e.exports = n(22593); }, 89151: function (e, t, n) { e.exports = n(65020); }, 17654: function (e, t, n) { e.exports = n(71359); }, 57762: function (e, t, n) { e.exports = n(63623); }, 81004: function (e, t, n) { e.exports = n(78163); }, 13885: function (e, t, n) { e.exports = n(49862); }, 89329: function (e, t, n) { e.exports = n(35638); }, 38755: function (e, t, n) { e.exports = n(28346); }, 55781: function (e, t, n) { e.exports = n(95088); }, 53185: function (e, t, n) { e.exports = n(35690); }, 88235: function (e, t, n) { e.exports = n(82863); }, 59829: function (e, t, n) { e.exports = n(13373); }, 65560: function (e, t, n) { e.exports = n(65820); }, 41047: function (e, t, n) { e.exports = n(98220); }, 40911: function (e, t, n) { e.exports = n(86681); }, 85655: function (e, t, n) { e.exports = n(93805); }, 23482: function (e, t, n) { e.exports = n(56305); }, 87034: function (e, t, n) { e.exports = n(45828); }, 83734: function (e, t, n) { e.exports = n(86243); }, 20711: function (e, t, n) { e.exports = n(20177); }, 86488: function (e, t, n) { e.exports = n(91733); }, 8827: function (e, t, n) { e.exports = n(69953); }, 56581: function (e, t, n) { e.exports = n(49959); }, 41633: function (e, t, n) { e.exports = n(20199); }, 20344: function (e, t, n) { e.exports = n(94269); }, 48909: function (e, t, n) { e.exports = n(10603); }, 6258: function (e, t, n) { e.exports = n(68248); }, 57602: function (e, t, n) { e.exports = n(43630); }, 11024: function (e, t, n) { e.exports = n(84735); }, 44705: function (e, t, n) { e.exports = n(88511); }, 12232: function (e, t, n) { e.exports = n(49769); }, 44565: function (e, t, n) { e.exports = n(77201); }, 73637: function (e, t, n) { e.exports = n(11738); }, 80407: function (e, t, n) { e.exports = n(20459); }, 19502: function (e, t, n) { e.exports = n(25793); }, 63969: function (e, t, n) { e.exports = n(31373); }, 21085: function (e, t, n) { e.exports = n(22041); }, 21277: function (e, t, n) { e.exports = n(78149); }, 90007: function (e, t, n) { e.exports = n(43760); }, 34976: function (e, t, n) { e.exports = n(21929); }, 41680: function (e, t, n) { e.exports = n(16571); }, 95214: function (e, t, n) { e.exports = n(23001); }, 92275: function (e, t, n) { var r = n(52512); e.exports = r; }, 90022: function (e, t, n) { var r = n(98998); e.exports = r; }, 13078: function (e, t, n) { var r = n(64272); e.exports = r; }, 71686: function (e, t, n) { n(24031); var r = n(72584); e.exports = r; }, 13265: function (e, t, n) { var r = n(65451); e.exports = r; }, 11864: function (e, t, n) { var r = n(19214); e.exports = r; }, 38413: function (e, t, n) { var r = n(18668); e.exports = r; }, 65453: function (e, t, n) { var r = n(52973); e.exports = r; }, 9827: function (e, t, n) { var r = n(27092); e.exports = r; }, 8729: function (e, t, n) { var r = n(74040); e.exports = r; }, 58485: function (e, t, n) { var r = n(25029); e.exports = r; }, 9459: function (e, t, n) { var r = n(14622); e.exports = r; }, 58254: function (e, t, n) { var r = n(85332); e.exports = r; }, 22593: function (e, t, n) { var r = n(95268); e.exports = r; }, 65020: function (e, t, n) { var r = n(26632); e.exports = r; }, 71359: function (e, t, n) { var r = n(83140); e.exports = r; }, 63623: function (e, t, n) { var r = n(76094); e.exports = r; }, 78163: function (e, t, n) { var r = n(60315); e.exports = r; }, 49862: function (e, t, n) { var r = n(53605); e.exports = r; }, 35638: function (e, t, n) { var r = n(42208); e.exports = r; }, 28346: function (e, t, n) { var r = n(46686); e.exports = r; }, 95088: function (e, t, n) { var r = n(54827); e.exports = r; }, 35690: function (e, t, n) { var r = n(83268); e.exports = r; }, 82863: function (e, t, n) { var r = n(77109); e.exports = r; }, 13373: function (e, t, n) { var r = n(1779); e.exports = r; }, 65820: function (e, t, n) { var r = n(79814); n(45952), n(78043), n(17017), n(85967), n(16005), n(3556), n(81582), n(72910), n(33709), n(22547), n(97803), n(53014), n(91688), n(26346), n(49459), n(15851), n(93434), n(88415), n(49663), n(59405), (e.exports = r); }, 98220: function (e, t, n) { var r = n(15443); e.exports = r; }, 86681: function (e, t, n) { var r = n(46207); e.exports = r; }, 93805: function (e, t, n) { var r = n(57897); e.exports = r; }, 56305: function (e, t, n) { var r = n(36168); e.exports = r; }, 45828: function (e, t, n) { var r = n(13262); e.exports = r; }, 86243: function (e, t, n) { var r = n(96264); e.exports = r; }, 20177: function (e, t, n) { var r = n(6764); e.exports = r; }, 91733: function (e, t, n) { var r = n(51308); e.exports = r; }, 69953: function (e, t, n) { var r = n(31826); e.exports = r; }, 49959: function (e, t, n) { var r = n(74037); e.exports = r; }, 20199: function (e, t, n) { var r = n(8434); e.exports = r; }, 94269: function (e, t, n) { var r = n(14286); e.exports = r; }, 10603: function (e, t, n) { var r = n(24430); e.exports = r; }, 68248: function (e, t, n) { var r = n(39384); e.exports = r; }, 43630: function (e, t, n) { var r = n(39701); e.exports = r; }, 84735: function (e, t, n) { var r = n(73363); e.exports = r; }, 88511: function (e, t, n) { var r = n(70446); e.exports = r; }, 49769: function (e, t, n) { var r = n(16929); e.exports = r; }, 77201: function (e, t, n) { var r = n(23809); n(33239), n(82564), n(25361), n(94781), (e.exports = r); }, 11738: function (e, t, n) { var r = n(79574); e.exports = r; }, 20459: function (e, t, n) { var r = n(51112); e.exports = r; }, 25793: function (e, t, n) { var r = n(44671); e.exports = r; }, 31373: function (e, t, n) { var r = n(85857); n(84170), n(62808), n(82745), n(84070), n(25277), n(34943), n(28404), n(40269), n(91239), n(53180), n(85405), n(81090), n(70146), n(1240), n(80734), n(21946), n(20985), n(76035), (e.exports = r); }, 22041: function (e, t, n) { var r = n(8655); n(34419), n(54596), n(44505), n(57049), n(29545), n(72481), n(52208), (e.exports = r); }, 78149: function (e, t, n) { var r = n(65845); e.exports = r; }, 43760: function (e, t, n) { var r = n(51386); e.exports = r; }, 21929: function (e, t, n) { var r = n(27847); e.exports = r; }, 16571: function (e, t, n) { var r = n(71155); e.exports = r; }, 23001: function (e, t, n) { var r = n(7618); n(70185), n(33976), n(58959), n(63037), n(38894), n(4762), (e.exports = r); }, 86148: function (e, t, n) { var r = n(16615), i = n(37254), o = TypeError; e.exports = function (e) { if (r(e)) return e; throw o(i(e) + " is not a function"); }; }, 31413: function (e, t, n) { var r = n(68630), i = n(37254), o = TypeError; e.exports = function (e) { if (r(e)) return e; throw o(i(e) + " is not a constructor"); }; }, 7655: function (e, t, n) { var r = n(37254); e.exports = function (e) { if ( "object" == typeof e && "size" in e && "has" in e && "get" in e && "set" in e && "delete" in e && "entries" in e ) return e; throw TypeError(r(e) + " is not a map"); }; }, 65838: function (e, t, n) { var r = n(16615), i = String, o = TypeError; e.exports = function (e) { if ("object" == typeof e || r(e)) return e; throw o("Can't set " + i(e) + " as a prototype"); }; }, 20902: function (e, t, n) { var r = n(37254); e.exports = function (e) { if ( "object" == typeof e && "size" in e && "has" in e && "add" in e && "delete" in e && "keys" in e ) return e; throw TypeError(r(e) + " is not a set"); }; }, 82271: function (e, t, n) { var r = n(37254); e.exports = function (e) { if ("object" == typeof e && "has" in e && "get" in e && "set" in e) return e; throw TypeError(r(e) + " is not a weakmap"); }; }, 7272: function (e) { e.exports = function () {}; }, 77423: function (e, t, n) { var r = n(41535), i = TypeError; e.exports = function (e, t) { if (r(t, e)) return e; throw i("Incorrect invocation"); }; }, 64950: function (e, t, n) { var r = n(66106), i = String, o = TypeError; e.exports = function (e) { if (r(e)) return e; throw o(i(e) + " is not an object"); }; }, 89724: function (e, t, n) { var r = n(13315); e.exports = r(function () { if ("function" == typeof ArrayBuffer) { var e = new ArrayBuffer(8); Object.isExtensible(e) && Object.defineProperty(e, "a", { value: 8 }); } }); }, 8660: function (e, t, n) { "use strict"; var r = n(66504), i = n(4351), o = n(33268); e.exports = function (e) { for ( var t = r(this), n = o(t), a = arguments.length, s = i(a > 1 ? arguments[1] : void 0, n), u = a > 2 ? arguments[2] : void 0, c = void 0 === u ? n : i(u, n); c > s; ) t[s++] = e; return t; }; }, 99308: function (e, t, n) { "use strict"; var r = n(2912).forEach, i = n(16680)("forEach"); e.exports = i ? [].forEach : function (e) { return r(this, e, arguments.length > 1 ? arguments[1] : void 0); }; }, 4133: function (e, t, n) { "use strict"; var r = n(1912), i = n(93344), o = n(66504), a = n(5300), s = n(57517), u = n(68630), c = n(33268), l = n(79869), f = n(27390), d = n(4187), p = Array; e.exports = function (e) { var t = o(e), n = u(this), h = arguments.length, g = h > 1 ? arguments[1] : void 0, m = void 0 !== g; m && (g = r(g, h > 2 ? arguments[2] : void 0)); var y, v, b, _, w, T, x = d(t), S = 0; if (!x || (this === p && s(x))) for (y = c(t), v = n ? new this(y) : p(y); y > S; S++) (T = m ? g(t[S], S) : t[S]), l(v, S, T); else for ( w = (_ = f(t, x)).next, v = n ? new this() : []; !(b = i(w, _)).done; S++ ) (T = m ? a(_, g, [b.value, S], !0) : b.value), l(v, S, T); return (v.length = S), v; }; }, 89830: function (e, t, n) { var r = n(51015), i = n(4351), o = n(33268), a = function (e) { return function (t, n, a) { var s, u = r(t), c = o(u), l = i(a, c); if (e && n != n) { for (; c > l; ) if ((s = u[l++]) != s) return !0; } else for (; c > l; l++) if ((e || l in u) && u[l] === n) return e || l || 0; return !e && -1; }; }; e.exports = { includes: a(!0), indexOf: a(!1) }; }, 2912: function (e, t, n) { var r = n(1912), i = n(32108), o = n(66864), a = n(66504), s = n(33268), u = n(48071), c = i([].push), l = function (e) { var t = 1 == e, n = 2 == e, i = 3 == e, l = 4 == e, f = 6 == e, d = 7 == e, p = 5 == e || f; return function (h, g, m, y) { for ( var v, b, _ = a(h), w = o(_), T = r(g, m), x = s(w), S = 0, k = y || u, E = t ? k(h, x) : n || d ? k(h, 0) : void 0; x > S; S++ ) if ((p || S in w) && ((b = T((v = w[S]), S, _)), e)) if (t) E[S] = b; else if (b) switch (e) { case 3: return !0; case 5: return v; case 6: return S; case 2: c(E, v); } else switch (e) { case 4: return !1; case 7: c(E, v); } return f ? -1 : i || l ? l : E; }; }; e.exports = { forEach: l(0), map: l(1), filter: l(2), some: l(3), every: l(4), find: l(5), findIndex: l(6), filterReject: l(7), }; }, 71319: function (e, t, n) { var r = n(13315), i = n(77431), o = n(67544), a = i("species"); e.exports = function (e) { return ( o >= 51 || !r(function () { var t = []; return ( ((t.constructor = {})[a] = function () { return { foo: 1 }; }), 1 !== t[e](Boolean).foo ); }) ); }; }, 16680: function (e, t, n) { "use strict"; var r = n(13315); e.exports = function (e, t) { var n = [][e]; return ( !!n && r(function () { n.call( null, t || function () { return 1; }, 1 ); }) ); }; }, 21960: function (e, t, n) { var r = n(4351), i = n(33268), o = n(79869), a = Array, s = Math.max; e.exports = function (e, t, n) { for ( var u = i(e), c = r(t, u), l = r(void 0 === n ? u : n, u), f = a(s(l - c, 0)), d = 0; c < l; c++, d++ ) o(f, d, e[c]); return (f.length = d), f; }; }, 76253: function (e, t, n) { var r = n(32108); e.exports = r([].slice); }, 65702: function (e, t, n) { var r = n(21960), i = Math.floor, o = function (e, t) { var n = e.length, u = i(n / 2); return n < 8 ? a(e, t) : s(e, o(r(e, 0, u), t), o(r(e, u), t), t); }, a = function (e, t) { for (var n, r, i = e.length, o = 1; o < i; ) { for (r = o, n = e[o]; r && t(e[r - 1], n) > 0; ) e[r] = e[--r]; r !== o++ && (e[r] = n); } return e; }, s = function (e, t, n, r) { for (var i = t.length, o = n.length, a = 0, s = 0; a < i || s < o; ) e[a + s] = a < i && s < o ? r(t[a], n[s]) <= 0 ? t[a++] : n[s++] : a < i ? t[a++] : n[s++]; return e; }; e.exports = o; }, 33037: function (e, t, n) { var r = n(55345), i = n(68630), o = n(66106), a = n(77431)("species"), s = Array; e.exports = function (e) { var t; return ( r(e) && ((t = e.constructor), ((i(t) && (t === s || r(t.prototype))) || (o(t) && null === (t = t[a]))) && (t = void 0)), void 0 === t ? s : t ); }; }, 48071: function (e, t, n) { var r = n(33037); e.exports = function (e, t) { return new (r(e))(0 === t ? 0 : t); }; }, 5300: function (e, t, n) { var r = n(64950), i = n(6861); e.exports = function (e, t, n, o) { try { return o ? t(r(n)[0], n[1]) : t(n); } catch (t) { i(e, "throw", t); } }; }, 54341: function (e) { e.exports = function (e, t) { return 1 == t ? function (t, n) { return t[e](n); } : function (t, n, r) { return t[e](n, r); }; }; }, 94337: function (e, t, n) { var r = n(77431)("iterator"), i = !1; try { var o = 0, a = { next: function () { return { done: !!o++ }; }, return: function () { i = !0; }, }; (a[r] = function () { return this; }), Array.from(a, function () { throw 2; }); } catch (e) {} e.exports = function (e, t) { if (!t && !i) return !1; var n = !1; try { var o = {}; (o[r] = function () { return { next: function () { return { done: (n = !0) }; }, }; }), e(o); } catch (e) {} return n; }; }, 80222: function (e, t, n) { var r = n(32108), i = r({}.toString), o = r("".slice); e.exports = function (e) { return o(i(e), 8, -1); }; }, 50176: function (e, t, n) { var r = n(60639), i = n(16615), o = n(80222), a = n(77431)("toStringTag"), s = Object, u = "Arguments" == o( (function () { return arguments; })() ); e.exports = r ? o : function (e) { var t, n, r; return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (n = (function (e, t) { try { return e[t]; } catch (e) {} })((t = s(e)), a)) ? n : u ? o(t) : "Object" == (r = o(t)) && i(t.callee) ? "Arguments" : r; }; }, 37571: function (e, t, n) { "use strict"; var r = n(1912), i = n(93344), o = n(86148), a = n(31413), s = n(48056), u = n(4553), c = [].push; e.exports = function (e) { var t, n, l, f, d = arguments.length, p = d > 1 ? arguments[1] : void 0; return ( a(this), (t = void 0 !== p) && o(p), s(e) ? new this() : ((n = []), t ? ((l = 0), (f = r(p, d > 2 ? arguments[2] : void 0)), u(e, function (e) { i(c, n, f(e, l++)); })) : u(e, c, { that: n }), new this(n)) ); }; }, 98836: function (e, t, n) { "use strict"; var r = n(76253); e.exports = function () { return new this(r(arguments)); }; }, 30870: function (e, t, n) { "use strict"; var r = n(26779).f, i = n(58743), o = n(92671), a = n(1912), s = n(77423), u = n(48056), c = n(4553), l = n(7112), f = n(78462), d = n(971), p = n(92290), h = n(54581).fastKey, g = n(90293), m = g.set, y = g.getterFor; e.exports = { getConstructor: function (e, t, n, l) { var f = e(function (e, r) { s(e, d), m(e, { type: t, index: i(null), first: void 0, last: void 0, size: 0, }), p || (e.size = 0), u(r) || c(r, e[l], { that: e, AS_ENTRIES: n }); }), d = f.prototype, g = y(t), v = function (e, t, n) { var r, i, o = g(e), a = b(e, t); return ( a ? (a.value = n) : ((o.last = a = { index: (i = h(t, !0)), key: t, value: n, previous: (r = o.last), next: void 0, removed: !1, }), o.first || (o.first = a), r && (r.next = a), p ? o.size++ : e.size++, "F" !== i && (o.index[i] = a)), e ); }, b = function (e, t) { var n, r = g(e), i = h(t); if ("F" !== i) return r.index[i]; for (n = r.first; n; n = n.next) if (n.key == t) return n; }; return ( o(d, { clear: function () { for (var e = g(this), t = e.index, n = e.first; n; ) (n.removed = !0), n.previous && (n.previous = n.previous.next = void 0), delete t[n.index], (n = n.next); (e.first = e.last = void 0), p ? (e.size = 0) : (this.size = 0); }, delete: function (e) { var t = this, n = g(t), r = b(t, e); if (r) { var i = r.next, o = r.previous; delete n.index[r.index], (r.removed = !0), o && (o.next = i), i && (i.previous = o), n.first == r && (n.first = i), n.last == r && (n.last = o), p ? n.size-- : t.size--; } return !!r; }, forEach: function (e) { for ( var t, n = g(this), r = a(e, arguments.length > 1 ? arguments[1] : void 0); (t = t ? t.next : n.first); ) for (r(t.value, t.key, this); t && t.removed; ) t = t.previous; }, has: function (e) { return !!b(this, e); }, }), o( d, n ? { get: function (e) { var t = b(this, e); return t && t.value; }, set: function (e, t) { return v(this, 0 === e ? 0 : e, t); }, } : { add: function (e) { return v(this, (e = 0 === e ? 0 : e), e); }, } ), p && r(d, "size", { get: function () { return g(this).size; }, }), f ); }, setStrong: function (e, t, n) { var r = t + " Iterator", i = y(t), o = y(r); l( e, t, function (e, t) { m(this, { type: r, target: e, state: i(e), kind: t, last: void 0, }); }, function () { for (var e = o(this), t = e.kind, n = e.last; n && n.removed; ) n = n.previous; return e.target && (e.last = n = n ? n.next : e.state.first) ? f( "keys" == t ? n.key : "values" == t ? n.value : [n.key, n.value], !1 ) : ((e.target = void 0), f(void 0, !0)); }, n ? "entries" : "values", !n, !0 ), d(t); }, }; }, 39017: function (e, t, n) { "use strict"; var r = n(32108), i = n(92671), o = n(54581).getWeakData, a = n(77423), s = n(64950), u = n(48056), c = n(66106), l = n(4553), f = n(2912), d = n(79728), p = n(90293), h = p.set, g = p.getterFor, m = f.find, y = f.findIndex, v = r([].splice), b = 0, _ = function (e) { return e.frozen || (e.frozen = new w()); }, w = function () { this.entries = []; }, T = function (e, t) { return m(e.entries, function (e) { return e[0] === t; }); }; (w.prototype = { get: function (e) { var t = T(this, e); if (t) return t[1]; }, has: function (e) { return !!T(this, e); }, set: function (e, t) { var n = T(this, e); n ? (n[1] = t) : this.entries.push([e, t]); }, delete: function (e) { var t = y(this.entries, function (t) { return t[0] === e; }); return ~t && v(this.entries, t, 1), !!~t; }, }), (e.exports = { getConstructor: function (e, t, n, r) { var f = e(function (e, i) { a(e, p), h(e, { type: t, id: b++, frozen: void 0 }), u(i) || l(i, e[r], { that: e, AS_ENTRIES: n }); }), p = f.prototype, m = g(t), y = function (e, t, n) { var r = m(e), i = o(s(t), !0); return !0 === i ? _(r).set(t, n) : (i[r.id] = n), e; }; return ( i(p, { delete: function (e) { var t = m(this); if (!c(e)) return !1; var n = o(e); return !0 === n ? _(t).delete(e) : n && d(n, t.id) && delete n[t.id]; }, has: function (e) { var t = m(this); if (!c(e)) return !1; var n = o(e); return !0 === n ? _(t).has(e) : n && d(n, t.id); }, }), i( p, n ? { get: function (e) { var t = m(this); if (c(e)) { var n = o(e); return !0 === n ? _(t).get(e) : n ? n[t.id] : void 0; } }, set: function (e, t) { return y(this, e, t); }, } : { add: function (e) { return y(this, e, !0); }, } ), f ); }, }); }, 27166: function (e, t, n) { "use strict"; var r = n(65609), i = n(82202), o = n(54581), a = n(13315), s = n(93446), u = n(4553), c = n(77423), l = n(16615), f = n(66106), d = n(34026), p = n(26779).f, h = n(2912).forEach, g = n(92290), m = n(90293), y = m.set, v = m.getterFor; e.exports = function (e, t, n) { var m, b = -1 !== e.indexOf("Map"), _ = -1 !== e.indexOf("Weak"), w = b ? "set" : "add", T = i[e], x = T && T.prototype, S = {}; if ( g && l(T) && (_ || (x.forEach && !a(function () { new T().entries().next(); }))) ) { var k = (m = t(function (t, n) { y(c(t, k), { type: e, collection: new T() }), null != n && u(n, t[w], { that: t, AS_ENTRIES: b }); })).prototype, E = v(e); h( [ "add", "clear", "delete", "forEach", "get", "has", "set", "keys", "values", "entries", ], function (e) { var t = "add" == e || "set" == e; !(e in x) || (_ && "clear" == e) || s(k, e, function (n, r) { var i = E(this).collection; if (!t && _ && !f(n)) return "get" == e && void 0; var o = i[e](0 === n ? 0 : n, r); return t ? this : o; }); } ), _ || p(k, "size", { configurable: !0, get: function () { return E(this).collection.size; }, }); } else (m = n.getConstructor(t, e, b, w)), o.enable(); return ( d(m, e, !1, !0), (S[e] = m), r({ global: !0, forced: !0 }, S), _ || n.setStrong(m, e, b), m ); }; }, 80359: function (e, t, n) { var r = n(79728), i = n(1271), o = n(40406), a = n(26779); e.exports = function (e, t, n) { for (var s = i(t), u = a.f, c = o.f, l = 0; l < s.length; l++) { var f = s[l]; r(e, f) || (n && r(n, f)) || u(e, f, c(t, f)); } }; }, 45023: function (e, t, n) { var r = n(77431)("match"); e.exports = function (e) { var t = /./; try { "/./"[e](t); } catch (n) { try { return (t[r] = !1), "/./"[e](t); } catch (e) {} } return !1; }; }, 49723: function (e, t, n) { var r = n(13315); e.exports = !r(function () { function e() {} return ( (e.prototype.constructor = null), Object.getPrototypeOf(new e()) !== e.prototype ); }); }, 78462: function (e) { e.exports = function (e, t) { return { value: e, done: t }; }; }, 93446: function (e, t, n) { var r = n(92290), i = n(26779), o = n(42630); e.exports = r ? function (e, t, n) { return i.f(e, t, o(1, n)); } : function (e, t, n) { return (e[t] = n), e; }; }, 42630: function (e) { e.exports = function (e, t) { return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: t, }; }; }, 79869: function (e, t, n) { "use strict"; var r = n(70738), i = n(26779), o = n(42630); e.exports = function (e, t, n) { var a = r(t); a in e ? i.f(e, a, o(0, n)) : (e[a] = n); }; }, 80674: function (e, t, n) { var r = n(26779); e.exports = function (e, t, n) { return r.f(e, t, n); }; }, 46037: function (e, t, n) { var r = n(93446); e.exports = function (e, t, n, i) { return i && i.enumerable ? (e[t] = n) : r(e, t, n), e; }; }, 92671: function (e, t, n) { var r = n(46037); e.exports = function (e, t, n) { for (var i in t) n && n.unsafe && e[i] ? (e[i] = t[i]) : r(e, i, t[i], n); return e; }; }, 13143: function (e, t, n) { var r = n(82202), i = Object.defineProperty; e.exports = function (e, t) { try { i(r, e, { value: t, configurable: !0, writable: !0 }); } catch (n) { r[e] = t; } return t; }; }, 74114: function (e, t, n) { "use strict"; var r = n(37254), i = TypeError; e.exports = function (e, t) { if (!delete e[t]) throw i("Cannot delete property " + r(t) + " of " + r(e)); }; }, 92290: function (e, t, n) { var r = n(13315); e.exports = !r(function () { return ( 7 != Object.defineProperty({}, 1, { get: function () { return 7; }, })[1] ); }); }, 794: function (e) { var t = "object" == typeof document && document.all, n = void 0 === t && void 0 !== t; e.exports = { all: t, IS_HTMLDDA: n }; }, 13696: function (e, t, n) { var r = n(82202), i = n(66106), o = r.document, a = i(o) && i(o.createElement); e.exports = function (e) { return a ? o.createElement(e) : {}; }; }, 58981: function (e) { var t = TypeError; e.exports = function (e) { if (e > 9007199254740991) throw t("Maximum allowed index exceeded"); return e; }; }, 80196: function (e) { e.exports = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0, }; }, 38823: function (e, t, n) { var r = n(26023).match(/firefox\/(\d+)/i); e.exports = !!r && +r[1]; }, 60495: function (e, t, n) { var r = n(30880), i = n(61353); e.exports = !r && !i && "object" == typeof window && "object" == typeof document; }, 30880: function (e) { e.exports = "object" == typeof Deno && Deno && "object" == typeof Deno.version; }, 51918: function (e, t, n) { var r = n(26023); e.exports = /MSIE|Trident/.test(r); }, 85697: function (e, t, n) { var r = n(26023), i = n(82202); e.exports = /ipad|iphone|ipod/i.test(r) && void 0 !== i.Pebble; }, 87812: function (e, t, n) { var r = n(26023); e.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(r); }, 61353: function (e, t, n) { var r = n(80222), i = n(82202); e.exports = "process" == r(i.process); }, 51881: function (e, t, n) { var r = n(26023); e.exports = /web0s(?!.*chrome)/i.test(r); }, 26023: function (e, t, n) { var r = n(68520); e.exports = r("navigator", "userAgent") || ""; }, 67544: function (e, t, n) { var r, i, o = n(82202), a = n(26023), s = o.process, u = o.Deno, c = (s && s.versions) || (u && u.version), l = c && c.v8; l && (i = (r = l.split("."))[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])), !i && a && (!(r = a.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = a.match(/Chrome\/(\d+)/)) && (i = +r[1]), (e.exports = i); }, 92323: function (e, t, n) { var r = n(26023).match(/AppleWebKit\/(\d+)\./); e.exports = !!r && +r[1]; }, 80003: function (e, t, n) { var r = n(5058); e.exports = function (e) { return r[e + "Prototype"]; }; }, 51816: function (e) { e.exports = [ "constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf", ]; }, 8604: function (e, t, n) { var r = n(32108), i = Error, o = r("".replace), a = String(i("zxcasd").stack), s = /\n\s*at [^:]*:[^\n]*/, u = s.test(a); e.exports = function (e, t) { if (u && "string" == typeof e && !i.prepareStackTrace) for (; t--; ) e = o(e, s, ""); return e; }; }, 44774: function (e, t, n) { var r = n(13315), i = n(42630); e.exports = !r(function () { var e = Error("a"); return ( !("stack" in e) || (Object.defineProperty(e, "stack", i(1, 7)), 7 !== e.stack) ); }); }, 65609: function (e, t, n) { "use strict"; var r = n(82202), i = n(26477), o = n(40352), a = n(16615), s = n(40406).f, u = n(30646), c = n(5058), l = n(1912), f = n(93446), d = n(79728), p = function (e) { var t = function (n, r, o) { if (this instanceof t) { switch (arguments.length) { case 0: return new e(); case 1: return new e(n); case 2: return new e(n, r); } return new e(n, r, o); } return i(e, this, arguments); }; return (t.prototype = e.prototype), t; }; e.exports = function (e, t) { var n, i, h, g, m, y, v, b, _, w = e.target, T = e.global, x = e.stat, S = e.proto, k = T ? r : x ? r[w] : (r[w] || {}).prototype, E = T ? c : c[w] || f(c, w, {})[w], O = E.prototype; for (g in t) (i = !(n = u(T ? g : w + (x ? "." : "#") + g, e.forced)) && k && d(k, g)), (y = E[g]), i && (v = e.dontCallGetSet ? (_ = s(k, g)) && _.value : k[g]), (m = i && v ? v : t[g]), (i && typeof y == typeof m) || ((b = e.bind && i ? l(m, r) : e.wrap && i ? p(m) : S && a(m) ? o(m) : m), (e.sham || (m && m.sham) || (y && y.sham)) && f(b, "sham", !0), f(E, g, b), S && (d(c, (h = w + "Prototype")) || f(c, h, {}), f(c[h], g, m), e.real && O && (n || !O[g]) && f(O, g, m))); }; }, 13315: function (e) { e.exports = function (e) { try { return !!e(); } catch (e) { return !0; } }; }, 96959: function (e, t, n) { var r = n(13315); e.exports = !r(function () { return Object.isExtensible(Object.preventExtensions({})); }); }, 26477: function (e, t, n) { var r = n(38482), i = Function.prototype, o = i.apply, a = i.call; e.exports = ("object" == typeof Reflect && Reflect.apply) || (r ? a.bind(o) : function () { return a.apply(o, arguments); }); }, 1912: function (e, t, n) { var r = n(40352), i = n(86148), o = n(38482), a = r(r.bind); e.exports = function (e, t) { return ( i(e), void 0 === t ? e : o ? a(e, t) : function () { return e.apply(t, arguments); } ); }; }, 38482: function (e, t, n) { var r = n(13315); e.exports = !r(function () { var e = function () {}.bind(); return "function" != typeof e || e.hasOwnProperty("prototype"); }); }, 74908: function (e, t, n) { "use strict"; var r = n(32108), i = n(86148), o = n(66106), a = n(79728), s = n(76253), u = n(38482), c = Function, l = r([].concat), f = r([].join), d = {}, p = function (e, t, n) { if (!a(d, t)) { for (var r = [], i = 0; i < t; i++) r[i] = "a[" + i + "]"; d[t] = c("C,a", "return new C(" + f(r, ",") + ")"); } return d[t](e, n); }; e.exports = u ? c.bind : function (e) { var t = i(this), n = t.prototype, r = s(arguments, 1), a = function () { var n = l(r, s(arguments)); return this instanceof a ? p(t, n.length, n) : t.apply(e, n); }; return o(n) && (a.prototype = n), a; }; }, 93344: function (e, t, n) { var r = n(38482), i = Function.prototype.call; e.exports = r ? i.bind(i) : function () { return i.apply(i, arguments); }; }, 40637: function (e, t, n) { var r = n(92290), i = n(79728), o = Function.prototype, a = r && Object.getOwnPropertyDescriptor, s = i(o, "name"), u = s && "something" === function () {}.name, c = s && (!r || (r && a(o, "name").configurable)); e.exports = { EXISTS: s, PROPER: u, CONFIGURABLE: c }; }, 40352: function (e, t, n) { var r = n(80222), i = n(32108); e.exports = function (e) { if ("Function" === r(e)) return i(e); }; }, 32108: function (e, t, n) { var r = n(38482), i = Function.prototype, o = i.call, a = r && i.bind.bind(o, o); e.exports = r ? a : function (e) { return function () { return o.apply(e, arguments); }; }; }, 68520: function (e, t, n) { var r = n(5058), i = n(82202), o = n(16615), a = function (e) { return o(e) ? e : void 0; }; e.exports = function (e, t) { return arguments.length < 2 ? a(r[e]) || a(i[e]) : (r[e] && r[e][t]) || (i[e] && i[e][t]); }; }, 4187: function (e, t, n) { var r = n(50176), i = n(72173), o = n(48056), a = n(87551), s = n(77431)("iterator"); e.exports = function (e) { if (!o(e)) return i(e, s) || i(e, "@@iterator") || a[r(e)]; }; }, 27390: function (e, t, n) { var r = n(93344), i = n(86148), o = n(64950), a = n(37254), s = n(4187), u = TypeError; e.exports = function (e, t) { var n = arguments.length < 2 ? s(e) : t; if (i(n)) return o(r(n, e)); throw u(a(e) + " is not iterable"); }; }, 72173: function (e, t, n) { var r = n(86148), i = n(48056); e.exports = function (e, t) { var n = e[t]; return i(n) ? void 0 : r(n); }; }, 47029: function (e, t, n) { var r = n(86148), i = n(64950), o = n(93344), a = n(36225), s = TypeError, u = function (e, t, n, r) { (this.set = e), (this.size = t), (this.has = n), (this.keys = r); }; (u.prototype = { getIterator: function () { return i(o(this.keys, this.set)); }, includes: function (e) { return o(this.has, this.set, e); }, }), (e.exports = function (e) { i(e); var t = +e.size; if (t != t) throw s("Invalid size"); return new u(e, a(t), r(e.has), r(e.keys)); }); }, 82202: function (e, t, n) { var r = function (e) { return e && e.Math == Math && e; }; e.exports = r("object" == typeof globalThis && globalThis) || r("object" == typeof window && window) || r("object" == typeof self && self) || r("object" == typeof n.g && n.g) || (function () { return this; })() || Function("return this")(); }, 79728: function (e, t, n) { var r = n(32108), i = n(66504), o = r({}.hasOwnProperty); e.exports = Object.hasOwn || function (e, t) { return o(i(e), t); }; }, 3641: function (e) { e.exports = {}; }, 22189: function (e, t, n) { var r = n(82202); e.exports = function (e, t) { var n = r.console; n && n.error && (1 == arguments.length ? n.error(e) : n.error(e, t)); }; }, 48238: function (e, t, n) { var r = n(68520); e.exports = r("document", "documentElement"); }, 61916: function (e, t, n) { var r = n(92290), i = n(13315), o = n(13696); e.exports = !r && !i(function () { return ( 7 != Object.defineProperty(o("div"), "a", { get: function () { return 7; }, }).a ); }); }, 66864: function (e, t, n) { var r = n(32108), i = n(13315), o = n(80222), a = Object, s = r("".split); e.exports = i(function () { return !a("z").propertyIsEnumerable(0); }) ? function (e) { return "String" == o(e) ? s(e, "") : a(e); } : a; }, 78693: function (e, t, n) { var r = n(32108), i = n(16615), o = n(24156), a = r(Function.toString); i(o.inspectSource) || (o.inspectSource = function (e) { return a(e); }), (e.exports = o.inspectSource); }, 90249: function (e, t, n) { var r = n(66106), i = n(93446); e.exports = function (e, t) { r(t) && "cause" in t && i(e, "cause", t.cause); }; }, 54581: function (e, t, n) { var r = n(65609), i = n(32108), o = n(3641), a = n(66106), s = n(79728), u = n(26779).f, c = n(46289), l = n(32751), f = n(57380), d = n(60853), p = n(96959), h = !1, g = d("meta"), m = 0, y = function (e) { u(e, g, { value: { objectID: "O" + m++, weakData: {} } }); }, v = (e.exports = { enable: function () { (v.enable = function () {}), (h = !0); var e = c.f, t = i([].splice), n = {}; (n[g] = 1), e(n).length && ((c.f = function (n) { for (var r = e(n), i = 0, o = r.length; i < o; i++) if (r[i] === g) { t(r, i, 1); break; } return r; }), r( { target: "Object", stat: !0, forced: !0 }, { getOwnPropertyNames: l.f } )); }, fastKey: function (e, t) { if (!a(e)) return "symbol" == typeof e ? e : ("string" == typeof e ? "S" : "P") + e; if (!s(e, g)) { if (!f(e)) return "F"; if (!t) return "E"; y(e); } return e[g].objectID; }, getWeakData: function (e, t) { if (!s(e, g)) { if (!f(e)) return !0; if (!t) return !1; y(e); } return e[g].weakData; }, onFreeze: function (e) { return p && h && f(e) && !s(e, g) && y(e), e; }, }); o[g] = !0; }, 90293: function (e, t, n) { var r, i, o, a = n(27103), s = n(82202), u = n(66106), c = n(93446), l = n(79728), f = n(24156), d = n(22434), p = n(3641), h = "Object already initialized", g = s.TypeError, m = s.WeakMap; if (a || f.state) { var y = f.state || (f.state = new m()); (y.get = y.get), (y.has = y.has), (y.set = y.set), (r = function (e, t) { if (y.has(e)) throw g(h); return (t.facade = e), y.set(e, t), t; }), (i = function (e) { return y.get(e) || {}; }), (o = function (e) { return y.has(e); }); } else { var v = d("state"); (p[v] = !0), (r = function (e, t) { if (l(e, v)) throw g(h); return (t.facade = e), c(e, v, t), t; }), (i = function (e) { return l(e, v) ? e[v] : {}; }), (o = function (e) { return l(e, v); }); } e.exports = { set: r, get: i, has: o, enforce: function (e) { return o(e) ? i(e) : r(e, {}); }, getterFor: function (e) { return function (t) { var n; if (!u(t) || (n = i(t)).type !== e) throw g("Incompatible receiver, " + e + " required"); return n; }; }, }; }, 57517: function (e, t, n) { var r = n(77431), i = n(87551), o = r("iterator"), a = Array.prototype; e.exports = function (e) { return void 0 !== e && (i.Array === e || a[o] === e); }; }, 55345: function (e, t, n) { var r = n(80222); e.exports = Array.isArray || function (e) { return "Array" == r(e); }; }, 16615: function (e, t, n) { var r = n(794), i = r.all; e.exports = r.IS_HTMLDDA ? function (e) { return "function" == typeof e || e === i; } : function (e) { return "function" == typeof e; }; }, 68630: function (e, t, n) { var r = n(32108), i = n(13315), o = n(16615), a = n(50176), s = n(68520), u = n(78693), c = function () {}, l = [], f = s("Reflect", "construct"), d = /^\s*(?:class|function)\b/, p = r(d.exec), h = !d.exec(c), g = function (e) { if (!o(e)) return !1; try { return f(c, l, e), !0; } catch (e) { return !1; } }, m = function (e) { if (!o(e)) return !1; switch (a(e)) { case "AsyncFunction": case "GeneratorFunction": case "AsyncGeneratorFunction": return !1; } try { return h || !!p(d, u(e)); } catch (e) { return !0; } }; (m.sham = !0), (e.exports = !f || i(function () { var e; return ( g(g.call) || !g(Object) || !g(function () { e = !0; }) || e ); }) ? m : g); }, 24753: function (e, t, n) { var r = n(79728); e.exports = function (e) { return void 0 !== e && (r(e, "value") || r(e, "writable")); }; }, 30646: function (e, t, n) { var r = n(13315), i = n(16615), o = /#|\.prototype\./, a = function (e, t) { var n = u[s(e)]; return n == l || (n != c && (i(t) ? r(t) : !!t)); }, s = (a.normalize = function (e) { return String(e).replace(o, ".").toLowerCase(); }), u = (a.data = {}), c = (a.NATIVE = "N"), l = (a.POLYFILL = "P"); e.exports = a; }, 70832: function (e, t, n) { var r = n(66106), i = Math.floor; e.exports = Number.isInteger || function (e) { return !r(e) && isFinite(e) && i(e) === e; }; }, 15545: function (e, t, n) { var r = n(50176), i = n(79728), o = n(48056), a = n(77431), s = n(87551), u = a("iterator"), c = Object; e.exports = function (e) { if (o(e)) return !1; var t = c(e); return void 0 !== t[u] || "@@iterator" in t || i(s, r(t)); }; }, 48056: function (e) { e.exports = function (e) { return null == e; }; }, 66106: function (e, t, n) { var r = n(16615), i = n(794), o = i.all; e.exports = i.IS_HTMLDDA ? function (e) { return "object" == typeof e ? null !== e : r(e) || e === o; } : function (e) { return "object" == typeof e ? null !== e : r(e); }; }, 54956: function (e) { e.exports = !0; }, 42149: function (e, t, n) { var r = n(66106), i = n(80222), o = n(77431)("match"); e.exports = function (e) { var t; return r(e) && (void 0 !== (t = e[o]) ? !!t : "RegExp" == i(e)); }; }, 23506: function (e, t, n) { var r = n(68520), i = n(16615), o = n(41535), a = n(82754), s = Object; e.exports = a ? function (e) { return "symbol" == typeof e; } : function (e) { var t = r("Symbol"); return i(t) && o(t.prototype, s(e)); }; }, 71967: function (e, t, n) { var r = n(93344); e.exports = function (e, t, n) { for (var i, o, a = n || e.next; !(i = r(a, e)).done; ) if (void 0 !== (o = t(i.value))) return o; }; }, 4553: function (e, t, n) { var r = n(1912), i = n(93344), o = n(64950), a = n(37254), s = n(57517), u = n(33268), c = n(41535), l = n(27390), f = n(4187), d = n(6861), p = TypeError, h = function (e, t) { (this.stopped = e), (this.result = t); }, g = h.prototype; e.exports = function (e, t, n) { var m, y, v, b, _, w, T, x = n && n.that, S = !(!n || !n.AS_ENTRIES), k = !(!n || !n.IS_RECORD), E = !(!n || !n.IS_ITERATOR), O = !(!n || !n.INTERRUPTED), C = r(t, x), L = function (e) { return m && d(m, "normal", e), new h(!0, e); }, A = function (e) { return S ? (o(e), O ? C(e[0], e[1], L) : C(e[0], e[1])) : O ? C(e, L) : C(e); }; if (k) m = e.iterator; else if (E) m = e; else { if (!(y = f(e))) throw p(a(e) + " is not iterable"); if (s(y)) { for (v = 0, b = u(e); b > v; v++) if ((_ = A(e[v])) && c(g, _)) return _; return new h(!1); } m = l(e, y); } for (w = k ? e.next : m.next; !(T = i(w, m)).done; ) { try { _ = A(T.value); } catch (e) { d(m, "throw", e); } if ("object" == typeof _ && _ && c(g, _)) return _; } return new h(!1); }; }, 6861: function (e, t, n) { var r = n(93344), i = n(64950), o = n(72173); e.exports = function (e, t, n) { var a, s; i(e); try { if (!(a = o(e, "return"))) { if ("throw" === t) throw n; return n; } a = r(a, e); } catch (e) { (s = !0), (a = e); } if ("throw" === t) throw n; if (s) throw a; return i(a), n; }; }, 8287: function (e, t, n) { "use strict"; var r = n(59718).IteratorPrototype, i = n(58743), o = n(42630), a = n(34026), s = n(87551), u = function () { return this; }; e.exports = function (e, t, n, c) { var l = t + " Iterator"; return ( (e.prototype = i(r, { next: o(+!c, n) })), a(e, l, !1, !0), (s[l] = u), e ); }; }, 7112: function (e, t, n) { "use strict"; var r = n(65609), i = n(93344), o = n(54956), a = n(40637), s = n(16615), u = n(8287), c = n(29569), l = n(11244), f = n(34026), d = n(93446), p = n(46037), h = n(77431), g = n(87551), m = n(59718), y = a.PROPER, v = a.CONFIGURABLE, b = m.IteratorPrototype, _ = m.BUGGY_SAFARI_ITERATORS, w = h("iterator"), T = "keys", x = "values", S = "entries", k = function () { return this; }; e.exports = function (e, t, n, a, h, m, E) { u(n, t, a); var O, C, L, A = function (e) { if (e === h && D) return D; if (!_ && e in P) return P[e]; switch (e) { case T: case x: case S: return function () { return new n(this, e); }; } return function () { return new n(this); }; }, I = t + " Iterator", M = !1, P = e.prototype, R = P[w] || P["@@iterator"] || (h && P[h]), D = (!_ && R) || A(h), j = ("Array" == t && P.entries) || R; if ( (j && (O = c(j.call(new e()))) !== Object.prototype && O.next && (o || c(O) === b || (l ? l(O, b) : s(O[w]) || p(O, w, k)), f(O, I, !0, !0), o && (g[I] = k)), y && h == x && R && R.name !== x && (!o && v ? d(P, "name", x) : ((M = !0), (D = function () { return i(R, this); }))), h) ) if (((C = { values: A(x), keys: m ? D : A(T), entries: A(S) }), E)) for (L in C) (_ || M || !(L in P)) && p(P, L, C[L]); else r({ target: t, proto: !0, forced: _ || M }, C); return ( (o && !E) || P[w] === D || p(P, w, D, { name: h }), (g[t] = D), C ); }; }, 59718: function (e, t, n) { "use strict"; var r, i, o, a = n(13315), s = n(16615), u = n(66106), c = n(58743), l = n(29569), f = n(46037), d = n(77431), p = n(54956), h = d("iterator"), g = !1; [].keys && ("next" in (o = [].keys()) ? (i = l(l(o))) !== Object.prototype && (r = i) : (g = !0)), !u(r) || a(function () { var e = {}; return r[h].call(e) !== e; }) ? (r = {}) : p && (r = c(r)), s(r[h]) || f(r, h, function () { return this; }), (e.exports = { IteratorPrototype: r, BUGGY_SAFARI_ITERATORS: g }); }, 87551: function (e) { e.exports = {}; }, 33268: function (e, t, n) { var r = n(39875); e.exports = function (e) { return r(e.length); }; }, 74833: function (e, t, n) { var r = n(68520), i = n(54341), o = r("Map"); e.exports = { Map: o, set: i("set", 2), get: i("get", 1), has: i("has", 1), remove: i("delete", 1), proto: o.prototype, }; }, 36686: function (e, t, n) { var r = n(71967); e.exports = function (e, t, n) { return n ? r(e.entries(), function (e) { return t(e[1], e[0]); }) : e.forEach(t); }; }, 92731: function (e, t, n) { "use strict"; var r = n(93344), i = n(86148), o = n(16615), a = n(64950), s = TypeError; e.exports = function (e, t) { var n, u = a(this), c = i(u.get), l = i(u.has), f = i(u.set), d = arguments.length > 2 ? arguments[2] : void 0; if (!o(t) && !o(d)) throw s("At least one callback required"); return ( r(l, u, e) ? ((n = r(c, u, e)), o(t) && ((n = t(n)), r(f, u, e, n))) : o(d) && ((n = d()), r(f, u, e, n)), n ); }; }, 45475: function (e) { var t = Math.log, n = Math.LOG10E; e.exports = Math.log10 || function (e) { return t(e) * n; }; }, 79014: function (e) { e.exports = Math.sign || function (e) { var t = +e; return 0 == t || t != t ? t : t < 0 ? -1 : 1; }; }, 59798: function (e) { var t = Math.ceil, n = Math.floor; e.exports = Math.trunc || function (e) { var r = +e; return (r > 0 ? n : t)(r); }; }, 75404: function (e, t, n) { var r, i, o, a, s, u, c, l, f = n(82202), d = n(1912), p = n(40406).f, h = n(91085).set, g = n(87812), m = n(85697), y = n(51881), v = n(61353), b = f.MutationObserver || f.WebKitMutationObserver, _ = f.document, w = f.process, T = f.Promise, x = p(f, "queueMicrotask"), S = x && x.value; S || ((r = function () { var e, t; for (v && (e = w.domain) && e.exit(); i; ) { (t = i.fn), (i = i.next); try { t(); } catch (e) { throw (i ? a() : (o = void 0), e); } } (o = void 0), e && e.enter(); }), g || v || y || !b || !_ ? !m && T && T.resolve ? (((c = T.resolve(void 0)).constructor = T), (l = d(c.then, c)), (a = function () { l(r); })) : v ? (a = function () { w.nextTick(r); }) : ((h = d(h, f)), (a = function () { h(r); })) : ((s = !0), (u = _.createTextNode("")), new b(r).observe(u, { characterData: !0 }), (a = function () { u.data = s = !s; }))), (e.exports = S || function (e) { var t = { fn: e, next: void 0 }; o && (o.next = t), i || ((i = t), a()), (o = t); }); }, 12290: function (e, t, n) { "use strict"; var r = n(86148), i = TypeError, o = function (e) { var t, n; (this.promise = new e(function (e, r) { if (void 0 !== t || void 0 !== n) throw i("Bad Promise constructor"); (t = e), (n = r); })), (this.resolve = r(t)), (this.reject = r(n)); }; e.exports.f = function (e) { return new o(e); }; }, 46914: function (e, t, n) { var r = n(91841); e.exports = function (e, t) { return void 0 === e ? (arguments.length < 2 ? "" : t) : r(e); }; }, 43708: function (e, t, n) { var r = n(42149), i = TypeError; e.exports = function (e) { if (r(e)) throw i("The method doesn't accept regular expressions"); return e; }; }, 13110: function (e, t, n) { "use strict"; var r = n(92290), i = n(32108), o = n(93344), a = n(13315), s = n(12569), u = n(74749), c = n(37222), l = n(66504), f = n(66864), d = Object.assign, p = Object.defineProperty, h = i([].concat); e.exports = !d || a(function () { if ( r && 1 !== d( { b: 1 }, d( p({}, "a", { enumerable: !0, get: function () { p(this, "b", { value: 3, enumerable: !1 }); }, }), { b: 2 } ) ).b ) return !0; var e = {}, t = {}, n = Symbol(), i = "abcdefghijklmnopqrst"; return ( (e[n] = 7), i.split("").forEach(function (e) { t[e] = e; }), 7 != d({}, e)[n] || s(d({}, t)).join("") != i ); }) ? function (e, t) { for ( var n = l(e), i = arguments.length, a = 1, d = u.f, p = c.f; i > a; ) for ( var g, m = f(arguments[a++]), y = d ? h(s(m), d(m)) : s(m), v = y.length, b = 0; v > b; ) (g = y[b++]), (r && !o(p, m, g)) || (n[g] = m[g]); return n; } : d; }, 58743: function (e, t, n) { var r, i = n(64950), o = n(79297), a = n(51816), s = n(3641), u = n(48238), c = n(13696), l = n(22434), f = l("IE_PROTO"), d = function () {}, p = function (e) { return ""), e.close(), l = e.F; n--; ) delete l.prototype[o[n]]; return l(); }; (e.exports = Object.create || function (e, t) { var n; return ( null !== e ? ((c.prototype = r(e)), (n = new c()), (c.prototype = null), (n[u] = e)) : (n = l()), void 0 === t ? n : i(n, t) ); }), (n(3501)[u] = !0); }, 36048: function (e, t, n) { var r = n(19781), i = n(3070), o = n(19670), a = n(81956); e.exports = r ? Object.defineProperties : function (e, t) { o(e); for (var n, r = a(t), s = r.length, u = 0; s > u; ) i.f(e, (n = r[u++]), t[n]); return e; }; }, 3070: function (e, t, n) { var r = n(19781), i = n(64664), o = n(19670), a = n(57593), s = Object.defineProperty; t.f = r ? s : function (e, t, n) { if ((o(e), (t = a(t, !0)), o(n), i)) try { return s(e, t, n); } catch (e) {} if ("get" in n || "set" in n) throw TypeError("Accessors not supported"); return "value" in n && (e[t] = n.value), e; }; }, 31236: function (e, t, n) { var r = n(19781), i = n(55296), o = n(79114), a = n(45656), s = n(57593), u = n(86656), c = n(64664), l = Object.getOwnPropertyDescriptor; t.f = r ? l : function (e, t) { if (((e = a(e)), (t = s(t, !0)), c)) try { return l(e, t); } catch (e) {} if (u(e, t)) return o(!i.f.call(e, t), e[t]); }; }, 1156: function (e, t, n) { var r = n(45656), i = n(8006).f, o = {}.toString, a = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; e.exports.f = function (e) { return a && "[object Window]" == o.call(e) ? (function (e) { try { return i(e); } catch (e) { return a.slice(); } })(e) : i(r(e)); }; }, 8006: function (e, t, n) { var r = n(16324), i = n(80748).concat("length", "prototype"); t.f = Object.getOwnPropertyNames || function (e) { return r(e, i); }; }, 25181: function (e, t) { t.f = Object.getOwnPropertySymbols; }, 79518: function (e, t, n) { var r = n(86656), i = n(47908), o = n(6200)("IE_PROTO"), a = n(49920), s = Object.prototype; e.exports = a ? Object.getPrototypeOf : function (e) { return ( (e = i(e)), r(e, o) ? e[o] : "function" == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object ? s : null ); }; }, 16324: function (e, t, n) { var r = n(86656), i = n(45656), o = n(41318)(!1), a = n(3501); e.exports = function (e, t) { var n, s = i(e), u = 0, c = []; for (n in s) !r(a, n) && r(s, n) && c.push(n); for (; t.length > u; ) r(s, (n = t[u++])) && (~o(c, n) || c.push(n)); return c; }; }, 81956: function (e, t, n) { var r = n(16324), i = n(80748); e.exports = Object.keys || function (e) { return r(e, i); }; }, 55296: function (e, t) { "use strict"; var n = {}.propertyIsEnumerable, r = Object.getOwnPropertyDescriptor, i = r && !n.call({ 1: 2 }, 1); t.f = i ? function (e) { var t = r(this, e); return !!t && t.enumerable; } : n; }, 27674: function (e, t, n) { var r = n(99475); e.exports = Object.setPrototypeOf || ("__proto__" in {} ? (function () { var e, t = !1, n = {}; try { (e = Object.getOwnPropertyDescriptor( Object.prototype, "__proto__" ).set).call(n, []), (t = n instanceof Array); } catch (e) {} return function (n, i) { return r(n, i), t ? e.call(n, i) : (n.__proto__ = i), n; }; })() : void 0); }, 44699: function (e, t, n) { var r = n(81956), i = n(45656), o = n(55296).f; e.exports = function (e, t) { for (var n, a = i(e), s = r(a), u = s.length, c = 0, l = []; u > c; ) o.call(a, (n = s[c++])) && l.push(t ? [n, a[n]] : a[n]); return l; }; }, 90288: function (e, t, n) { "use strict"; var r = n(70648), i = {}; (i[n(5112)("toStringTag")] = "z"), (e.exports = "[object z]" !== String(i) ? function () { return "[object " + r(this) + "]"; } : i.toString); }, 53887: function (e, t, n) { var r = n(8006), i = n(25181), o = n(19670), a = n(17854).Reflect; e.exports = (a && a.ownKeys) || function (e) { var t = r.f(o(e)), n = i.f; return n ? t.concat(n(e)) : t; }; }, 3677: function (e, t, n) { var r = n(17854).parseFloat, i = n(53111), o = n(81361), a = 1 / r(o + "-0") != -1 / 0; e.exports = a ? function (e) { var t = i(String(e), 3), n = r(t); return 0 === n && "-" == t.charAt(0) ? -0 : n; } : r; }, 88620: function (e, t, n) { var r = n(17854).parseInt, i = n(53111), o = n(81361), a = /^[-+]?0[xX]/, s = 8 !== r(o + "08") || 22 !== r(o + "0x16"); e.exports = s ? function (e, t) { var n = i(String(e), 3); return r(n, t >>> 0 || (a.test(n) ? 16 : 10)); } : r; }, 40857: function (e, t, n) { e.exports = n(17854); }, 12534: function (e) { e.exports = function (e) { try { return { error: !1, value: e() }; } catch (e) { return { error: !0, value: e }; } }; }, 69478: function (e, t, n) { var r = n(19670), i = n(70111), o = n(78523); e.exports = function (e, t) { if ((r(e), i(t) && t.constructor === e)) return t; var n = o.f(e); return (0, n.resolve)(t), n.promise; }; }, 33611: function (e) { "use strict"; var t = 2147483647, n = /[^\0-\u007E]/, r = /[\u002E\u3002\uFF0E\uFF61]/g, i = "Overflow: input needs wider integers to process", o = Math.floor, a = String.fromCharCode, s = function (e) { return e + 22 + 75 * (e < 26); }, u = function (e, t, n) { var r = 0; for (e = n ? o(e / 700) : e >> 1, e += o(e / t); e > 455; r += 36) e = o(e / 35); return o(r + (36 * e) / (e + 38)); }, c = function (e) { var n = []; e = (function (e) { for (var t = [], n = 0, r = e.length; n < r; ) { var i = e.charCodeAt(n++); if (i >= 55296 && i <= 56319 && n < r) { var o = e.charCodeAt(n++); 56320 == (64512 & o) ? t.push(((1023 & i) << 10) + (1023 & o) + 65536) : (t.push(i), n--); } else t.push(i); } return t; })(e); var r, c, l = e.length, f = 128, d = 0, p = 72; for (r = 0; r < e.length; r++) (c = e[r]) < 128 && n.push(a(c)); var h = n.length, g = h; for (h && n.push("-"); g < l; ) { var m = t; for (r = 0; r < e.length; r++) (c = e[r]) >= f && c < m && (m = c); var y = g + 1; if (m - f > o((t - d) / y)) throw RangeError(i); for (d += (m - f) * y, f = m, r = 0; r < e.length; r++) { if ((c = e[r]) < f && ++d > t) throw RangeError(i); if (c == f) { for (var v = d, b = 36; ; b += 36) { var _ = b <= p ? 1 : b >= p + 26 ? 26 : b - p; if (v < _) break; var w = v - _, T = 36 - _; n.push(a(s(_ + (w % T)))), (v = o(w / T)); } n.push(a(s(v))), (p = u(d, y, g == h)), (d = 0), ++g; } } ++d, ++f; } return n.join(""); }; e.exports = function (e) { var t, i, o = [], a = e.toLowerCase().replace(r, ".").split("."); for (t = 0; t < a.length; t++) (i = a[t]), o.push(n.test(i) ? "xn--" + c(i) : i); return o.join("."); }; }, 12248: function (e, t, n) { var r = n(31320); e.exports = function (e, t, n) { for (var i in t) r(e, i, t[i], n); return e; }; }, 31320: function (e, t, n) { var r = n(17854), i = n(95185), o = n(86656), a = n(83505), s = n(92521), u = n(29909), c = u.get, l = u.enforce, f = String(s).split("toString"); n(72309)("inspectSource", function (e) { return s.call(e); }), (e.exports = function (e, t, n, s) { var u = !!s && !!s.unsafe, c = !!s && !!s.enumerable, d = !!s && !!s.noTargetGet; "function" == typeof n && ("string" != typeof t || o(n, "name") || i(n, "name", t), (l(n).source = f.join("string" == typeof t ? t : ""))), e !== r ? (u ? !d && e[t] && (c = !0) : delete e[t], c ? (e[t] = n) : i(e, t, n)) : c ? (e[t] = n) : a(t, n); })(Function.prototype, "toString", function () { return ("function" == typeof this && c(this).source) || s.call(this); }); }, 97651: function (e, t, n) { var r = n(84326), i = n(22261); e.exports = function (e, t) { var n = e.exec; if ("function" == typeof n) { var o = n.call(e, t); if ("object" != typeof o) throw TypeError( "RegExp exec method returned something other than an Object or null" ); return o; } if ("RegExp" !== r(e)) throw TypeError("RegExp#exec called on incompatible receiver"); return i.call(e, t); }; }, 22261: function (e, t, n) { "use strict"; var r, i, o = n(67066), a = RegExp.prototype.exec, s = String.prototype.replace, u = a, c = ((r = /a/), (i = /b*/g), a.call(r, "a"), a.call(i, "a"), 0 !== r.lastIndex || 0 !== i.lastIndex), l = void 0 !== /()??/.exec("")[1]; (c || l) && (u = function (e) { var t, n, r, i, u = this; return ( l && (n = new RegExp("^" + u.source + "$(?!\\s)", o.call(u))), c && (t = u.lastIndex), (r = a.call(u, e)), c && r && (u.lastIndex = u.global ? r.index + r[0].length : t), l && r && r.length > 1 && s.call(r[0], n, function () { for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (r[i] = void 0); }), r ); }), (e.exports = u); }, 67066: function (e, t, n) { "use strict"; var r = n(19670); e.exports = function () { var e = r(this), t = ""; return ( e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.unicode && (t += "u"), e.sticky && (t += "y"), t ); }; }, 84488: function (e) { e.exports = function (e) { if (null == e) throw TypeError("Can't call method on " + e); return e; }; }, 81150: function (e) { e.exports = Object.is || function (e, t) { return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t; }; }, 83505: function (e, t, n) { var r = n(17854), i = n(95185); e.exports = function (e, t) { try { i(r, e, t); } catch (n) { r[e] = t; } return t; }; }, 96340: function (e, t, n) { "use strict"; var r = n(35005), i = n(3070), o = n(19781), a = n(5112)("species"); e.exports = function (e) { var t = r(e), n = i.f; o && t && !t[a] && n(t, a, { configurable: !0, get: function () { return this; }, }); }; }, 58003: function (e, t, n) { var r = n(3070).f, i = n(86656), o = n(5112)("toStringTag"); e.exports = function (e, t, n) { e && !i((e = n ? e : e.prototype), o) && r(e, o, { configurable: !0, value: t }); }; }, 6200: function (e, t, n) { var r = n(72309)("keys"), i = n(69711); e.exports = function (e) { return r[e] || (r[e] = i(e)); }; }, 72309: function (e, t, n) { var r = n(17854), i = n(83505), o = "__core-js_shared__", a = r[o] || i(o, {}); (e.exports = function (e, t) { return a[e] || (a[e] = void 0 !== t ? t : {}); })("versions", []).push({ version: "3.0.1", mode: n(31913) ? "pure" : "global", copyright: "© 2019 Denis Pushkarev (zloirock.ru)", }); }, 36637: function (e, t, n) { "use strict"; var r = n(47293); e.exports = function (e, t) { var n = [][e]; return ( !n || !r(function () { n.call( null, t || function () { throw 1; }, 1 ); }) ); }; }, 36707: function (e, t, n) { var r = n(19670), i = n(13099), o = n(5112)("species"); e.exports = function (e, t) { var n, a = r(e).constructor; return void 0 === a || null == (n = r(a)[o]) ? t : i(n); }; }, 95866: function (e, t, n) { var r = n(99958), i = n(84488); e.exports = function (e, t, n) { var o, a, s = String(i(e)), u = r(t), c = s.length; return u < 0 || u >= c ? n ? "" : void 0 : (o = s.charCodeAt(u)) < 55296 || o > 56319 || u + 1 === c || (a = s.charCodeAt(u + 1)) < 56320 || a > 57343 ? n ? s.charAt(u) : o : n ? s.slice(u, u + 2) : a - 56320 + ((o - 55296) << 10) + 65536; }; }, 76650: function (e, t, n) { var r = n(17466), i = n(38415), o = n(84488); e.exports = function (e, t, n, a) { var s, u, c = String(o(e)), l = c.length, f = void 0 === n ? " " : String(n), d = r(t); return d <= l || "" == f ? c : ((s = d - l), (u = i.call(f, Math.ceil(s / f.length))).length > s && (u = u.slice(0, s)), a ? u + c : c + u); }; }, 38415: function (e, t, n) { "use strict"; var r = n(99958), i = n(84488); e.exports = "".repeat || function (e) { var t = String(i(this)), n = "", o = r(e); if (o < 0 || o == 1 / 0) throw RangeError("Wrong number of repetitions"); for (; o > 0; (o >>>= 1) && (t += t)) 1 & o && (n += t); return n; }; }, 53111: function (e, t, n) { var r = n(84488), i = "[" + n(81361) + "]", o = RegExp("^" + i + i + "*"), a = RegExp(i + i + "*$"); e.exports = function (e, t) { return ( (e = String(r(e))), 1 & t && (e = e.replace(o, "")), 2 & t && (e = e.replace(a, "")), e ); }; }, 20261: function (e, t, n) { var r, i, o, a = n(17854), s = n(84326), u = n(30244), c = n(60490), l = n(80317), f = a.setImmediate, d = a.clearImmediate, p = a.process, h = a.MessageChannel, g = a.Dispatch, m = 0, y = {}, v = "onreadystatechange", b = function () { var e = +this; if (y.hasOwnProperty(e)) { var t = y[e]; delete y[e], t(); } }, _ = function (e) { b.call(e.data); }; (f && d) || ((f = function (e) { for (var t = [], n = 1; arguments.length > n; ) t.push(arguments[n++]); return ( (y[++m] = function () { ("function" == typeof e ? e : Function(e)).apply(void 0, t); }), r(m), m ); }), (d = function (e) { delete y[e]; }), "process" == s(p) ? (r = function (e) { p.nextTick(u(b, e, 1)); }) : g && g.now ? (r = function (e) { g.now(u(b, e, 1)); }) : h ? ((o = (i = new h()).port2), (i.port1.onmessage = _), (r = u(o.postMessage, o, 1))) : a.addEventListener && "function" == typeof postMessage && !a.importScripts ? ((r = function (e) { a.postMessage(e + "", "*"); }), a.addEventListener("message", _, !1)) : (r = v in l("script") ? function (e) { c.appendChild(l("script")).onreadystatechange = function () { c.removeChild(this), b.call(e); }; } : function (e) { setTimeout(u(b, e, 1), 0); })), (e.exports = { set: f, clear: d }); }, 50863: function (e, t, n) { var r = n(84326); e.exports = function (e) { if ("number" != typeof e && "Number" != r(e)) throw TypeError("Incorrect invocation"); return +e; }; }, 51400: function (e, t, n) { var r = n(99958), i = Math.max, o = Math.min; e.exports = function (e, t) { var n = r(e); return n < 0 ? i(n + t, 0) : o(n, t); }; }, 57067: function (e, t, n) { var r = n(99958), i = n(17466); e.exports = function (e) { if (void 0 === e) return 0; var t = r(e), n = i(t); if (t !== n) throw RangeError("Wrong length or index"); return n; }; }, 45656: function (e, t, n) { var r = n(68361), i = n(84488); e.exports = function (e) { return r(i(e)); }; }, 99958: function (e) { var t = Math.ceil, n = Math.floor; e.exports = function (e) { return isNaN((e = +e)) ? 0 : (e > 0 ? n : t)(e); }; }, 17466: function (e, t, n) { var r = n(99958), i = Math.min; e.exports = function (e) { return e > 0 ? i(r(e), 9007199254740991) : 0; }; }, 47908: function (e, t, n) { var r = n(84488); e.exports = function (e) { return Object(r(e)); }; }, 84590: function (e, t, n) { var r = n(99958); e.exports = function (e, t) { var n = r(e); if (n < 0 || n % t) throw RangeError("Wrong offset"); return n; }; }, 57593: function (e, t, n) { var r = n(70111); e.exports = function (e, t) { if (!r(e)) return e; var n, i; if (t && "function" == typeof (n = e.toString) && !r((i = n.call(e)))) return i; if ("function" == typeof (n = e.valueOf) && !r((i = n.call(e)))) return i; if (!t && "function" == typeof (n = e.toString) && !r((i = n.call(e)))) return i; throw TypeError("Can't convert object to primitive value"); }; }, 19843: function (e, t, n) { "use strict"; if (n(19781)) { var r = n(17854), i = n(82109), o = n(6500), a = n(90260), s = n(13331), u = n(25787), c = n(79114), l = n(95185), f = n(17466), d = n(57067), p = n(84590), h = n(57593), g = n(86656), m = n(70648), y = n(70111), v = n(70030), b = n(27674), _ = n(8006).f, w = n(97321), T = n(77550)(0), x = n(96340), S = n(3070), k = n(31236), E = n(29909), O = E.get, C = E.set, L = S.f, A = k.f, I = r.RangeError, M = s.ArrayBuffer, P = s.DataView, R = a.NATIVE_ARRAY_BUFFER_VIEWS, D = a.TYPED_ARRAY_TAG, j = a.TypedArray, N = a.TypedArrayPrototype, B = a.aTypedArrayConstructor, U = a.isTypedArray, F = "BYTES_PER_ELEMENT", z = "Wrong length", H = function (e, t) { for (var n = 0, r = t.length, i = new (B(e))(r); r > n; ) i[n] = t[n++]; return i; }, q = function (e, t) { L(e, t, { get: function () { return O(this)[t]; }, }); }, Z = function (e) { var t; return ( e instanceof M || "ArrayBuffer" == (t = m(e)) || "SharedArrayBuffer" == t ); }, V = function (e, t) { return ( U(e) && "symbol" != typeof t && t in e && String(+t) == String(t) ); }, W = function (e, t) { return V(e, (t = h(t, !0))) ? c(2, e[t]) : A(e, t); }, $ = function (e, t, n) { return !(V(e, (t = h(t, !0))) && y(n) && g(n, "value")) || g(n, "get") || g(n, "set") || n.configurable || (g(n, "writable") && !n.writable) || (g(n, "enumerable") && !n.enumerable) ? L(e, t, n) : ((e[t] = n.value), e); }; R || ((k.f = W), (S.f = $), q(N, "buffer"), q(N, "byteOffset"), q(N, "byteLength"), q(N, "length")), i( { target: "Object", stat: !0, forced: !R }, { getOwnPropertyDescriptor: W, defineProperty: $ } ), (e.exports = function (e, t, n, a) { var s = e + (a ? "Clamped" : "") + "Array", c = "get" + e, h = "set" + e, g = r[s], m = g, S = m && m.prototype, k = {}, E = function (e, n) { L(e, n, { get: function () { return (function (e, n) { var r = O(e); return r.view[c](n * t + r.byteOffset, !0); })(this, n); }, set: function (e) { return (function (e, n, r) { var i = O(e); a && (r = (r = Math.round(r)) < 0 ? 0 : r > 255 ? 255 : 255 & r), i.view[h](n * t + i.byteOffset, r, !0); })(this, n, e); }, enumerable: !0, }); }; R ? o && ((m = n(function (e, n, r, i) { return ( u(e, m, s), y(n) ? Z(n) ? void 0 !== i ? new g(n, p(r, t), i) : void 0 !== r ? new g(n, p(r, t)) : new g(n) : U(n) ? H(m, n) : w.call(m, n) : new g(d(n)) ); })), b && b(m, j), T(_(g), function (e) { e in m || l(m, e, g[e]); }), (m.prototype = S)) : ((m = n(function (e, n, r, i) { u(e, m, s); var o, a, c, l = 0, h = 0; if (y(n)) { if (!Z(n)) return U(n) ? H(m, n) : w.call(m, n); (o = n), (h = p(r, t)); var g = n.byteLength; if (void 0 === i) { if (g % t) throw I(z); if ((a = g - h) < 0) throw I(z); } else if ((a = f(i) * t) + h > g) throw I(z); c = a / t; } else (c = d(n)), (o = new M((a = c * t))); for ( C(e, { buffer: o, byteOffset: h, byteLength: a, length: c, view: new P(o), }); l < c; ) E(e, l++); })), b && b(m, j), (S = m.prototype = v(N))), S.constructor !== m && l(S, "constructor", m), D && l(S, D, s), (k[s] = m), i({ global: !0, forced: m != g, sham: !R }, k), F in m || l(m, F, t), F in S || l(S, F, t), x(s); }); } else e.exports = function () {}; }, 97321: function (e, t, n) { var r = n(47908), i = n(17466), o = n(71246), a = n(97659), s = n(30244), u = n(90260).aTypedArrayConstructor; e.exports = function (e) { var t, n, c, l, f, d = r(e), p = arguments.length, h = p > 1 ? arguments[1] : void 0, g = void 0 !== h, m = o(d); if (null != m && !a(m)) for (f = m.call(d), d = []; !(l = f.next()).done; ) d.push(l.value); for ( g && p > 2 && (h = s(h, arguments[2], 2)), n = i(d.length), c = new (u(this))(n), t = 0; n > t; t++ ) c[t] = g ? h(d[t], t) : d[t]; return c; }; }, 6500: function (e, t, n) { var r = n(17854), i = n(47293), o = n(17072), a = n(90260).NATIVE_ARRAY_BUFFER_VIEWS, s = r.ArrayBuffer, u = r.Int8Array; e.exports = !a || !i(function () { u(1); }) || !i(function () { new u(-1); }) || !o(function (e) { new u(), new u(null), new u(1.5), new u(e); }, !0) || i(function () { return 1 !== new u(new s(2), 1, void 0).length; }); }, 69711: function (e) { var t = 0, n = Math.random(); e.exports = function (e) { return "Symbol(".concat( void 0 === e ? "" : e, ")_", (++t + n).toString(36) ); }; }, 20227: function (e, t, n) { var r = n(17854).navigator; e.exports = (r && r.userAgent) || ""; }, 99475: function (e, t, n) { var r = n(70111), i = n(19670); e.exports = function (e, t) { if ((i(e), !r(t) && null !== t)) throw TypeError("Can't set " + String(t) + " as a prototype"); }; }, 28468: function (e, t, n) { var r = n(47850), i = n(84488); e.exports = function (e, t, n) { if (r(t)) throw TypeError("String.prototype." + n + " doesn't accept regex"); return String(i(e)); }; }, 27428: function (e, t, n) { var r = n(20227); e.exports = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r); }, 5112: function (e, t, n) { var r = n(72309)("wks"), i = n(69711), o = n(17854).Symbol, a = n(30133); e.exports = function (e) { return r[e] || (r[e] = (a && o[e]) || (a ? o : i)("Symbol." + e)); }; }, 81361: function (e) { e.exports = "\t\n\v\f\r                 \u2028\u2029\ufeff"; }, 96805: function (e, t, n) { t.f = n(5112); }, 18264: function (e, t, n) { "use strict"; var r = "ArrayBuffer", i = n(13331).ArrayBuffer, o = n(17854).ArrayBuffer; n(82109)({ global: !0, forced: o !== i }, { ArrayBuffer: i }), n(96340)(r); }, 39575: function (e, t, n) { "use strict"; var r = n(13331), i = n(19670), o = n(51400), a = n(17466), s = n(36707), u = r.ArrayBuffer, c = r.DataView, l = u.prototype.slice, f = n(47293)(function () { return !new u(2).slice(1, void 0).byteLength; }); n(82109)( { target: "ArrayBuffer", proto: !0, unsafe: !0, forced: f }, { slice: function (e, t) { if (void 0 !== l && void 0 === t) return l.call(i(this), e); for ( var n = i(this).byteLength, r = o(e, n), f = o(void 0 === t ? n : t, n), d = new (s(this, u))(a(f - r)), p = new c(this), h = new c(d), g = 0; r < f; ) h.setUint8(g++, p.getUint8(r++)); return d; }, } ); }, 92222: function (e, t, n) { "use strict"; var r = n(43157), i = n(70111), o = n(47908), a = n(17466), s = n(86135), u = n(65417), c = n(5112)("isConcatSpreadable"), l = 9007199254740991, f = "Maximum allowed index exceeded", d = !n(47293)(function () { var e = []; return (e[c] = !1), e.concat()[0] !== e; }), p = n(81194)("concat"), h = function (e) { if (!i(e)) return !1; var t = e[c]; return void 0 !== t ? !!t : r(e); }, g = !d || !p; n(82109)( { target: "Array", proto: !0, forced: g }, { concat: function (e) { var t, n, r, i, c, d = o(this), p = u(d, 0), g = 0; for (t = -1, r = arguments.length; t < r; t++) if (h((c = -1 === t ? d : arguments[t]))) { if (g + (i = a(c.length)) > l) throw TypeError(f); for (n = 0; n < i; n++, g++) n in c && s(p, g, c[n]); } else { if (g >= l) throw TypeError(f); s(p, g++, c); } return (p.length = g), p; }, } ); }, 50545: function (e, t, n) { n(82109)({ target: "Array", proto: !0 }, { copyWithin: n(1048) }), n(51223)("copyWithin"); }, 43290: function (e, t, n) { n(82109)({ target: "Array", proto: !0 }, { fill: n(21285) }), n(51223)("fill"); }, 57327: function (e, t, n) { "use strict"; var r = n(77550)(2), i = n(81194)("filter"); n(82109)( { target: "Array", proto: !0, forced: !i }, { filter: function (e) { return r(this, e, arguments[1]); }, } ); }, 34553: function (e, t, n) { "use strict"; var r = n(77550)(6), i = "findIndex", o = !0; i in [] && Array(1).findIndex(function () { o = !1; }), n(82109)( { target: "Array", proto: !0, forced: o }, { findIndex: function (e) { return r(this, e, arguments.length > 1 ? arguments[1] : void 0); }, } ), n(51223)(i); }, 69826: function (e, t, n) { "use strict"; var r = n(77550)(5), i = "find", o = !0; i in [] && Array(1).find(function () { o = !1; }), n(82109)( { target: "Array", proto: !0, forced: o }, { find: function (e) { return r(this, e, arguments.length > 1 ? arguments[1] : void 0); }, } ), n(51223)(i); }, 86535: function (e, t, n) { "use strict"; var r = n(6790), i = n(47908), o = n(17466), a = n(13099), s = n(65417); n(82109)( { target: "Array", proto: !0 }, { flatMap: function (e) { var t, n = i(this), u = o(n.length); return ( a(e), ((t = s(n, 0)).length = r(t, n, n, u, 0, 1, e, arguments[1])), t ); }, } ); }, 84944: function (e, t, n) { "use strict"; var r = n(6790), i = n(47908), o = n(17466), a = n(99958), s = n(65417); n(82109)( { target: "Array", proto: !0 }, { flat: function () { var e = arguments[0], t = i(this), n = o(t.length), u = s(t, 0); return (u.length = r(u, t, t, n, 0, void 0 === e ? 1 : a(e))), u; }, } ); }, 91038: function (e, t, n) { var r = !n(17072)(function (e) { Array.from(e); }); n(82109)({ target: "Array", stat: !0, forced: r }, { from: n(48457) }); }, 26699: function (e, t, n) { "use strict"; var r = n(41318)(!0); n(82109)( { target: "Array", proto: !0 }, { includes: function (e) { return r(this, e, arguments.length > 1 ? arguments[1] : void 0); }, } ), n(51223)("includes"); }, 66992: function (e, t, n) { "use strict"; var r = n(45656), i = n(51223), o = n(97497), a = n(29909), s = n(70654), u = "Array Iterator", c = a.set, l = a.getterFor(u); (e.exports = s( Array, "Array", function (e, t) { c(this, { type: u, target: r(e), index: 0, kind: t }); }, function () { var e = l(this), t = e.target, n = e.kind, r = e.index++; return !t || r >= t.length ? ((e.target = void 0), { value: void 0, done: !0 }) : "keys" == n ? { value: r, done: !1 } : "values" == n ? { value: t[r], done: !1 } : { value: [r, t[r]], done: !1 }; }, "values" )), (o.Arguments = o.Array), i("keys"), i("values"), i("entries"); }, 69600: function (e, t, n) { "use strict"; var r = n(45656), i = [].join, o = n(68361) != Object, a = n(36637)("join", ","); n(82109)( { target: "Array", proto: !0, forced: o || a }, { join: function (e) { return i.call(r(this), void 0 === e ? "," : e); }, } ); }, 21249: function (e, t, n) { "use strict"; var r = n(77550)(1), i = n(81194)("map"); n(82109)( { target: "Array", proto: !0, forced: !i }, { map: function (e) { return r(this, e, arguments[1]); }, } ); }, 26572: function (e, t, n) { "use strict"; var r = n(86135), i = n(47293)(function () { function e() {} return !(Array.of.call(e) instanceof e); }); n(82109)( { target: "Array", stat: !0, forced: i }, { of: function () { for ( var e = 0, t = arguments.length, n = new ("function" == typeof this ? this : Array)(t); t > e; ) r(n, e, arguments[e++]); return (n.length = t), n; }, } ); }, 65069: function (e, t, n) { "use strict"; var r = n(43157), i = [].reverse, o = [1, 2]; n(82109)( { target: "Array", proto: !0, forced: String(o) === String(o.reverse()), }, { reverse: function () { return r(this) && (this.length = this.length), i.call(this); }, } ); }, 47042: function (e, t, n) { "use strict"; var r = n(70111), i = n(43157), o = n(51400), a = n(17466), s = n(45656), u = n(86135), c = n(5112)("species"), l = [].slice, f = Math.max, d = n(81194)("slice"); n(82109)( { target: "Array", proto: !0, forced: !d }, { slice: function (e, t) { var n, d, p, h = s(this), g = a(h.length), m = o(e, g), y = o(void 0 === t ? g : t, g); if ( i(h) && ("function" != typeof (n = h.constructor) || (n !== Array && !i(n.prototype)) ? r(n) && null === (n = n[c]) && (n = void 0) : (n = void 0), n === Array || void 0 === n) ) return l.call(h, m, y); for ( d = new (void 0 === n ? Array : n)(f(y - m, 0)), p = 0; m < y; m++, p++ ) m in h && u(d, p, h[m]); return (d.length = p), d; }, } ); }, 2707: function (e, t, n) { "use strict"; var r = n(13099), i = n(47908), o = n(47293), a = [].sort, s = [1, 2, 3], u = o(function () { s.sort(void 0); }), c = o(function () { s.sort(null); }), l = n(36637)("sort"), f = u || !c || l; n(82109)( { target: "Array", proto: !0, forced: f }, { sort: function (e) { return void 0 === e ? a.call(i(this)) : a.call(i(this), r(e)); }, } ); }, 38706: function (e, t, n) { n(96340)("Array"); }, 40561: function (e, t, n) { "use strict"; var r = n(51400), i = n(99958), o = n(17466), a = n(47908), s = n(65417), u = n(86135), c = Math.max, l = Math.min, f = 9007199254740991, d = "Maximum allowed length exceeded", p = n(81194)("splice"); n(82109)( { target: "Array", proto: !0, forced: !p }, { splice: function (e, t) { var n, p, h, g, m, y, v = a(this), b = o(v.length), _ = r(e, b), w = arguments.length; if ( (0 === w ? (n = p = 0) : 1 === w ? ((n = 0), (p = b - _)) : ((n = w - 2), (p = l(c(i(t), 0), b - _))), b + n - p > f) ) throw TypeError(d); for (h = s(v, p), g = 0; g < p; g++) (m = _ + g) in v && u(h, g, v[m]); if (((h.length = p), n < p)) { for (g = _; g < b - p; g++) (y = g + n), (m = g + p) in v ? (v[y] = v[m]) : delete v[y]; for (g = b; g > b - p + n; g--) delete v[g - 1]; } else if (n > p) for (g = b - p; g > _; g--) (y = g + n - 1), (m = g + p - 1) in v ? (v[y] = v[m]) : delete v[y]; for (g = 0; g < n; g++) v[g + _] = arguments[g + 2]; return (v.length = b - p + n), h; }, } ); }, 99244: function (e, t, n) { n(51223)("flatMap"); }, 33792: function (e, t, n) { n(51223)("flat"); }, 96078: function (e, t, n) { var r = n(95185), i = n(5112)("toPrimitive"), o = n(38709), a = Date.prototype; i in a || r(a, i, o); }, 4855: function (e, t, n) { "use strict"; var r = n(70111), i = n(3070), o = n(79518), a = n(5112)("hasInstance"), s = Function.prototype; a in s || i.f(s, a, { value: function (e) { if ("function" != typeof this || !r(e)) return !1; if (!r(this.prototype)) return e instanceof this; for (; (e = o(e)); ) if (this.prototype === e) return !0; return !1; }, }); }, 68309: function (e, t, n) { var r = n(19781), i = n(3070).f, o = Function.prototype, a = o.toString, s = /^\s*function ([^ (]*)/, u = "name"; r && !(u in o) && i(o, u, { configurable: !0, get: function () { try { return a.call(this).match(s)[1]; } catch (e) { return ""; } }, }); }, 73706: function (e, t, n) { n(58003)(n(17854).JSON, "JSON", !0); }, 51532: function (e, t, n) { "use strict"; e.exports = n(77710)( "Map", function (e) { return function () { return e(this, arguments.length > 0 ? arguments[0] : void 0); }; }, n(95631), !0 ); }, 99752: function (e, t, n) { var r = n(26513), i = Math.acosh, o = Math.log, a = Math.sqrt, s = Math.LN2, u = !i || 710 != Math.floor(i(Number.MAX_VALUE)) || i(1 / 0) != 1 / 0; n(82109)( { target: "Math", stat: !0, forced: u }, { acosh: function (e) { return (e = +e) < 1 ? NaN : e > 94906265.62425156 ? o(e) + s : r(e - 1 + a(e - 1) * a(e + 1)); }, } ); }, 82376: function (e, t, n) { var r = Math.asinh, i = Math.log, o = Math.sqrt; n(82109)( { target: "Math", stat: !0, forced: !(r && 1 / r(0) > 0) }, { asinh: function e(t) { return isFinite((t = +t)) && 0 != t ? t < 0 ? -e(-t) : i(t + o(t * t + 1)) : t; }, } ); }, 73181: function (e, t, n) { var r = Math.atanh, i = Math.log; n(82109)( { target: "Math", stat: !0, forced: !(r && 1 / r(-0) < 0) }, { atanh: function (e) { return 0 == (e = +e) ? e : i((1 + e) / (1 - e)) / 2; }, } ); }, 23484: function (e, t, n) { var r = n(64310), i = Math.abs, o = Math.pow; n(82109)( { target: "Math", stat: !0 }, { cbrt: function (e) { return r((e = +e)) * o(i(e), 1 / 3); }, } ); }, 2388: function (e, t, n) { var r = Math.floor, i = Math.log, o = Math.LOG2E; n(82109)( { target: "Math", stat: !0 }, { clz32: function (e) { return (e >>>= 0) ? 31 - r(i(e + 0.5) * o) : 32; }, } ); }, 88621: function (e, t, n) { var r = n(66736), i = Math.cosh, o = Math.abs, a = Math.E; n(82109)( { target: "Math", stat: !0, forced: !i || i(710) === 1 / 0 }, { cosh: function (e) { var t = r(o(e) - 1) + 1; return (t + 1 / (t * a * a)) * (a / 2); }, } ); }, 60403: function (e, t, n) { var r = n(66736); n(82109)( { target: "Math", stat: !0, forced: r != Math.expm1 }, { expm1: r } ); }, 84755: function (e, t, n) { n(82109)({ target: "Math", stat: !0 }, { fround: n(26130) }); }, 25438: function (e, t, n) { var r = Math.abs, i = Math.sqrt; n(82109)( { target: "Math", stat: !0 }, { hypot: function (e, t) { for (var n, o, a = 0, s = 0, u = arguments.length, c = 0; s < u; ) c < (n = r(arguments[s++])) ? ((a = a * (o = c / n) * o + 1), (c = n)) : (a += n > 0 ? (o = n / c) * o : n); return c === 1 / 0 ? 1 / 0 : c * i(a); }, } ); }, 90332: function (e, t, n) { var r = Math.imul, i = n(47293)(function () { return -5 != r(4294967295, 5) || 2 != r.length; }); n(82109)( { target: "Math", stat: !0, forced: i }, { imul: function (e, t) { var n = 65535, r = +e, i = +t, o = n & r, a = n & i; return ( 0 | (o * a + ((((n & (r >>> 16)) * a + o * (n & (i >>> 16))) << 16) >>> 0)) ); }, } ); }, 40658: function (e, t, n) { var r = Math.log, i = Math.LOG10E; n(82109)( { target: "Math", stat: !0 }, { log10: function (e) { return r(e) * i; }, } ); }, 40197: function (e, t, n) { n(82109)({ target: "Math", stat: !0 }, { log1p: n(26513) }); }, 44914: function (e, t, n) { var r = Math.log, i = Math.LN2; n(82109)( { target: "Math", stat: !0 }, { log2: function (e) { return r(e) / i; }, } ); }, 52420: function (e, t, n) { n(82109)({ target: "Math", stat: !0 }, { sign: n(64310) }); }, 60160: function (e, t, n) { var r = n(66736), i = Math.abs, o = Math.exp, a = Math.E, s = n(47293)(function () { return -2e-17 != Math.sinh(-2e-17); }); n(82109)( { target: "Math", stat: !0, forced: s }, { sinh: function (e) { return i((e = +e)) < 1 ? (r(e) - r(-e)) / 2 : (o(e - 1) - o(-e - 1)) * (a / 2); }, } ); }, 60970: function (e, t, n) { var r = n(66736), i = Math.exp; n(82109)( { target: "Math", stat: !0 }, { tanh: function (e) { var t = r((e = +e)), n = r(-e); return t == 1 / 0 ? 1 : n == 1 / 0 ? -1 : (t - n) / (i(e) + i(-e)); }, } ); }, 10408: function (e, t, n) { n(58003)(Math, "Math", !0); }, 73689: function (e, t, n) { var r = Math.ceil, i = Math.floor; n(82109)( { target: "Math", stat: !0 }, { trunc: function (e) { return (e > 0 ? i : r)(e); }, } ); }, 9653: function (e, t, n) { "use strict"; var r = n(17854), i = n(54705), o = n(86656), a = n(84326), s = n(79587), u = n(57593), c = n(47293), l = n(8006).f, f = n(31236).f, d = n(3070).f, p = n(53111), h = "Number", g = r.Number, m = g.prototype, y = a(n(70030)(m)) == h, v = "trim" in String.prototype, b = function (e) { var t, n, r, i, o, a, s, c, l = u(e, !1); if ("string" == typeof l && l.length > 2) if ( 43 === (t = (l = v ? l.trim() : p(l, 3)).charCodeAt(0)) || 45 === t ) { if (88 === (n = l.charCodeAt(2)) || 120 === n) return NaN; } else if (48 === t) { switch (l.charCodeAt(1)) { case 66: case 98: (r = 2), (i = 49); break; case 79: case 111: (r = 8), (i = 55); break; default: return +l; } for (a = (o = l.slice(2)).length, s = 0; s < a; s++) if ((c = o.charCodeAt(s)) < 48 || c > i) return NaN; return parseInt(o, r); } return +l; }; if (i(h, !g(" 0o1") || !g("0b1") || g("+0x1"))) { for ( var _, w = function (e) { var t = arguments.length < 1 ? 0 : e, n = this; return n instanceof w && (y ? c(function () { m.valueOf.call(n); }) : a(n) != h) ? s(new g(b(t)), n, w) : b(t); }, T = n(19781) ? l(g) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split( "," ), x = 0; T.length > x; x++ ) o(g, (_ = T[x])) && !o(w, _) && d(w, _, f(g, _)); (w.prototype = m), (m.constructor = w), n(31320)(r, h, w); } }, 93299: function (e, t, n) { n(82109)({ target: "Number", stat: !0 }, { EPSILON: Math.pow(2, -52) }); }, 35192: function (e, t, n) { n(82109)({ target: "Number", stat: !0 }, { isFinite: n(77023) }); }, 33161: function (e, t, n) { n(82109)({ target: "Number", stat: !0 }, { isInteger: n(18730) }); }, 44048: function (e, t, n) { n(82109)( { target: "Number", stat: !0 }, { isNaN: function (e) { return e != e; }, } ); }, 78285: function (e, t, n) { var r = n(18730), i = Math.abs; n(82109)( { target: "Number", stat: !0 }, { isSafeInteger: function (e) { return r(e) && i(e) <= 9007199254740991; }, } ); }, 44363: function (e, t, n) { n(82109)( { target: "Number", stat: !0 }, { MAX_SAFE_INTEGER: 9007199254740991 } ); }, 55994: function (e, t, n) { n(82109)( { target: "Number", stat: !0 }, { MIN_SAFE_INTEGER: -9007199254740991 } ); }, 61874: function (e, t, n) { var r = n(3677); n(82109)( { target: "Number", stat: !0, forced: Number.parseFloat != r }, { parseFloat: r } ); }, 9494: function (e, t, n) { var r = n(88620); n(82109)( { target: "Number", stat: !0, forced: Number.parseInt != r }, { parseInt: r } ); }, 56977: function (e, t, n) { "use strict"; var r = n(99958), i = n(50863), o = n(38415), a = (1).toFixed, s = Math.floor, u = [0, 0, 0, 0, 0, 0], c = function (e, t) { for (var n = -1, r = t; ++n < 6; ) (r += e * u[n]), (u[n] = r % 1e7), (r = s(r / 1e7)); }, l = function (e) { for (var t = 6, n = 0; --t >= 0; ) (n += u[t]), (u[t] = s(n / e)), (n = (n % e) * 1e7); }, f = function () { for (var e = 6, t = ""; --e >= 0; ) if ("" !== t || 0 === e || 0 !== u[e]) { var n = String(u[e]); t = "" === t ? n : t + o.call("0", 7 - n.length) + n; } return t; }, d = function (e, t, n) { return 0 === t ? n : t % 2 == 1 ? d(e, t - 1, n * e) : d(e * e, t / 2, n); }; n(82109)( { target: "Number", proto: !0, forced: (a && ("0.000" !== (8e-5).toFixed(3) || "1" !== (0.9).toFixed(0) || "1.25" !== (1.255).toFixed(2) || "1000000000000000128" !== (0xde0b6b3a7640080).toFixed(0))) || !n(47293)(function () { a.call({}); }), }, { toFixed: function (e) { var t, n, a, s, u = i(this), p = r(e), h = "", g = "0"; if (p < 0 || p > 20) throw RangeError("Incorrect fraction digits"); if (u != u) return "NaN"; if (u <= -1e21 || u >= 1e21) return String(u); if ((u < 0 && ((h = "-"), (u = -u)), u > 1e-21)) if ( ((t = (function (e) { for (var t = 0, n = e; n >= 4096; ) (t += 12), (n /= 4096); for (; n >= 2; ) (t += 1), (n /= 2); return t; })(u * d(2, 69, 1)) - 69), (n = t < 0 ? u * d(2, -t, 1) : u / d(2, t, 1)), (n *= 4503599627370496), (t = 52 - t) > 0) ) { for (c(0, n), a = p; a >= 7; ) c(1e7, 0), (a -= 7); for (c(d(10, a, 1), 0), a = t - 1; a >= 23; ) l(1 << 23), (a -= 23); l(1 << a), c(1, 1), l(2), (g = f()); } else c(0, n), c(1 << -t, 0), (g = f() + o.call("0", p)); return (g = p > 0 ? h + ((s = g.length) <= p ? "0." + o.call("0", p - s) + g : g.slice(0, s - p) + "." + g.slice(s - p)) : h + g); }, } ); }, 19601: function (e, t, n) { var r = n(21574); n(82109)( { target: "Object", stat: !0, forced: Object.assign !== r }, { assign: r } ); }, 59595: function (e, t, n) { "use strict"; var r = n(47908), i = n(13099), o = n(3070), a = n(41301); n(19781) && n(82109)( { target: "Object", proto: !0, forced: a }, { __defineGetter__: function (e, t) { o.f(r(this), e, { get: i(t), enumerable: !0, configurable: !0 }); }, } ); }, 35500: function (e, t, n) { "use strict"; var r = n(47908), i = n(13099), o = n(3070), a = n(41301); n(19781) && n(82109)( { target: "Object", proto: !0, forced: a }, { __defineSetter__: function (e, t) { o.f(r(this), e, { set: i(t), enumerable: !0, configurable: !0 }); }, } ); }, 69720: function (e, t, n) { var r = n(44699); n(82109)( { target: "Object", stat: !0 }, { entries: function (e) { return r(e, !0); }, } ); }, 43371: function (e, t, n) { var r = n(70111), i = n(62423).onFreeze, o = Object.freeze, a = n(76677), s = n(47293)(function () { o(1); }); n(82109)( { target: "Object", stat: !0, forced: s, sham: !a }, { freeze: function (e) { return o && r(e) ? o(i(e)) : e; }, } ); }, 38559: function (e, t, n) { var r = n(20408), i = n(86135); n(82109)( { target: "Object", stat: !0 }, { fromEntries: function (e) { var t = {}; return ( r( e, function (e, n) { i(t, e, n); }, void 0, !0 ), t ); }, } ); }, 38880: function (e, t, n) { var r = n(45656), i = n(31236).f, o = n(19781), a = n(47293)(function () { i(1); }), s = !o || a; n(82109)( { target: "Object", stat: !0, forced: s, sham: !o }, { getOwnPropertyDescriptor: function (e, t) { return i(r(e), t); }, } ); }, 49337: function (e, t, n) { var r = n(19781), i = n(53887), o = n(45656), a = n(31236), s = n(86135); n(82109)( { target: "Object", stat: !0, sham: !r }, { getOwnPropertyDescriptors: function (e) { for ( var t, n, r = o(e), u = a.f, c = i(r), l = {}, f = 0; c.length > f; ) void 0 !== (n = u(r, (t = c[f++]))) && s(l, t, n); return l; }, } ); }, 36210: function (e, t, n) { var r = n(1156).f, i = n(47293)(function () { Object.getOwnPropertyNames(1); }); n(82109)( { target: "Object", stat: !0, forced: i }, { getOwnPropertyNames: r } ); }, 30489: function (e, t, n) { var r = n(47908), i = n(79518), o = n(49920), a = n(47293)(function () { i(1); }); n(82109)( { target: "Object", stat: !0, forced: a, sham: !o }, { getPrototypeOf: function (e) { return i(r(e)); }, } ); }, 41825: function (e, t, n) { var r = n(70111), i = Object.isExtensible, o = n(47293)(function () { i(1); }); n(82109)( { target: "Object", stat: !0, forced: o }, { isExtensible: function (e) { return !!r(e) && (!i || i(e)); }, } ); }, 98410: function (e, t, n) { var r = n(70111), i = Object.isFrozen, o = n(47293)(function () { i(1); }); n(82109)( { target: "Object", stat: !0, forced: o }, { isFrozen: function (e) { return !r(e) || (!!i && i(e)); }, } ); }, 72200: function (e, t, n) { var r = n(70111), i = Object.isSealed, o = n(47293)(function () { i(1); }); n(82109)( { target: "Object", stat: !0, forced: o }, { isSealed: function (e) { return !r(e) || (!!i && i(e)); }, } ); }, 43304: function (e, t, n) { n(82109)({ target: "Object", stat: !0 }, { is: n(81150) }); }, 47941: function (e, t, n) { var r = n(47908), i = n(81956), o = n(47293)(function () { i(1); }); n(82109)( { target: "Object", stat: !0, forced: o }, { keys: function (e) { return i(r(e)); }, } ); }, 94869: function (e, t, n) { "use strict"; var r = n(47908), i = n(57593), o = n(79518), a = n(31236).f, s = n(41301); n(19781) && n(82109)( { target: "Object", proto: !0, forced: s }, { __lookupGetter__: function (e) { var t, n = r(this), s = i(e, !0); do { if ((t = a(n, s))) return t.get; } while ((n = o(n))); }, } ); }, 33952: function (e, t, n) { "use strict"; var r = n(47908), i = n(57593), o = n(79518), a = n(31236).f, s = n(41301); n(19781) && n(82109)( { target: "Object", proto: !0, forced: s }, { __lookupSetter__: function (e) { var t, n = r(this), s = i(e, !0); do { if ((t = a(n, s))) return t.set; } while ((n = o(n))); }, } ); }, 57227: function (e, t, n) { var r = n(70111), i = n(62423).onFreeze, o = Object.preventExtensions, a = n(76677), s = n(47293)(function () { o(1); }); n(82109)( { target: "Object", stat: !0, forced: s, sham: !a }, { preventExtensions: function (e) { return o && r(e) ? o(i(e)) : e; }, } ); }, 60514: function (e, t, n) { var r = n(70111), i = n(62423).onFreeze, o = Object.seal, a = n(76677), s = n(47293)(function () { o(1); }); n(82109)( { target: "Object", stat: !0, forced: s, sham: !a }, { seal: function (e) { return o && r(e) ? o(i(e)) : e; }, } ); }, 41539: function (e, t, n) { var r = n(90288), i = Object.prototype; r !== i.toString && n(31320)(i, "toString", r, { unsafe: !0 }); }, 26833: function (e, t, n) { var r = n(44699); n(82109)( { target: "Object", stat: !0 }, { values: function (e) { return r(e); }, } ); }, 17727: function (e, t, n) { "use strict"; var r = n(35005), i = n(36707), o = n(69478); n(82109)( { target: "Promise", proto: !0, real: !0 }, { finally: function (e) { var t = i(this, r("Promise")), n = "function" == typeof e; return this.then( n ? function (n) { return o(t, e()).then(function () { return n; }); } : e, n ? function (n) { return o(t, e()).then(function () { throw n; }); } : e ); }, } ); }, 88674: function (e, t, n) { "use strict"; var r, i, o, a = "Promise", s = n(31913), u = n(17854), c = n(82109), l = n(70111), f = n(13099), d = n(25787), p = n(84326), h = n(20408), g = n(17072), m = n(36707), y = n(20261).set, v = n(95948), b = n(69478), _ = n(842), w = n(78523), T = n(12534), x = n(20227), S = n(5112)("species"), k = n(29909), E = n(54705), O = k.get, C = k.set, L = k.getterFor(a), A = u.Promise, I = u.TypeError, M = u.document, P = u.process, R = u.fetch, D = P && P.versions, j = (D && D.v8) || "", N = w.f, B = N, U = "process" == p(P), F = !!(M && M.createEvent && u.dispatchEvent), z = "unhandledrejection", H = E(a, function () { var e = A.resolve(1), t = function () {}, n = ((e.constructor = {})[S] = function (e) { e(t, t); }); return !( (U || "function" == typeof PromiseRejectionEvent) && (!s || e.finally) && e.then(t) instanceof n && 0 !== j.indexOf("6.6") && -1 === x.indexOf("Chrome/66") ); }), q = H || !g(function (e) { A.all(e).catch(function () {}); }), Z = function (e) { var t; return !(!l(e) || "function" != typeof (t = e.then)) && t; }, V = function (e, t, n) { if (!t.notified) { t.notified = !0; var r = t.reactions; v(function () { for ( var i = t.value, o = 1 == t.state, a = 0, s = function (n) { var r, a, s, u = o ? n.ok : n.fail, c = n.resolve, l = n.reject, f = n.domain; try { u ? (o || (2 === t.rejection && Y(e, t), (t.rejection = 1)), !0 === u ? (r = i) : (f && f.enter(), (r = u(i)), f && (f.exit(), (s = !0))), r === n.promise ? l(I("Promise-chain cycle")) : (a = Z(r)) ? a.call(r, c, l) : c(r)) : l(i); } catch (e) { f && !s && f.exit(), l(e); } }; r.length > a; ) s(r[a++]); (t.reactions = []), (t.notified = !1), n && !t.rejection && $(e, t); }); } }, W = function (e, t, n) { var r, i; F ? (((r = M.createEvent("Event")).promise = t), (r.reason = n), r.initEvent(e, !1, !0), u.dispatchEvent(r)) : (r = { promise: t, reason: n }), (i = u["on" + e]) ? i(r) : e === z && _("Unhandled promise rejection", n); }, $ = function (e, t) { y.call(u, function () { var n, r = t.value; if ( G(t) && ((n = T(function () { U ? P.emit("unhandledRejection", r, e) : W(z, e, r); })), (t.rejection = U || G(t) ? 2 : 1), n.error) ) throw n.value; }); }, G = function (e) { return 1 !== e.rejection && !e.parent; }, Y = function (e, t) { y.call(u, function () { U ? P.emit("rejectionHandled", e) : W("rejectionhandled", e, t.value); }); }, K = function (e, t, n, r) { return function (i) { e(t, n, i, r); }; }, X = function (e, t, n, r) { t.done || ((t.done = !0), r && (t = r), (t.value = n), (t.state = 2), V(e, t, !0)); }, Q = function (e, t, n, r) { if (!t.done) { (t.done = !0), r && (t = r); try { if (e === n) throw I("Promise can't be resolved itself"); var i = Z(n); i ? v(function () { var r = { done: !1 }; try { i.call(n, K(Q, e, r, t), K(X, e, r, t)); } catch (n) { X(e, r, n, t); } }) : ((t.value = n), (t.state = 1), V(e, t, !1)); } catch (n) { X(e, { done: !1 }, n, t); } } }; H && ((A = function (e) { d(this, A, a), f(e), r.call(this); var t = O(this); try { e(K(Q, this, t), K(X, this, t)); } catch (e) { X(this, t, e); } }), ((r = function (e) { C(this, { type: a, done: !1, notified: !1, parent: !1, reactions: [], rejection: !1, state: 0, value: void 0, }); }).prototype = n(12248)(A.prototype, { then: function (e, t) { var n = L(this), r = N(m(this, A)); return ( (r.ok = "function" != typeof e || e), (r.fail = "function" == typeof t && t), (r.domain = U ? P.domain : void 0), (n.parent = !0), n.reactions.push(r), 0 != n.state && V(this, n, !1), r.promise ); }, catch: function (e) { return this.then(void 0, e); }, })), (i = function () { var e = new r(), t = O(e); (this.promise = e), (this.resolve = K(Q, e, t)), (this.reject = K(X, e, t)); }), (w.f = N = function (e) { return e === A || e === o ? new i(e) : B(e); }), s || "function" != typeof R || c( { global: !0, enumerable: !0, forced: !0 }, { fetch: function (e) { return b(A, R.apply(u, arguments)); }, } )), c({ global: !0, wrap: !0, forced: H }, { Promise: A }), n(58003)(A, a, !1, !0), n(96340)(a), (o = n(40857).Promise), c( { target: a, stat: !0, forced: H }, { reject: function (e) { var t = N(this); return t.reject.call(void 0, e), t.promise; }, } ), c( { target: a, stat: !0, forced: s || H }, { resolve: function (e) { return b(s && this === o ? A : this, e); }, } ), c( { target: a, stat: !0, forced: q }, { all: function (e) { var t = this, n = N(t), r = n.resolve, i = n.reject, o = T(function () { var n = [], o = 0, a = 1; h(e, function (e) { var s = o++, u = !1; n.push(void 0), a++, t.resolve(e).then(function (e) { u || ((u = !0), (n[s] = e), --a || r(n)); }, i); }), --a || r(n); }); return o.error && i(o.value), n.promise; }, race: function (e) { var t = this, n = N(t), r = n.reject, i = T(function () { h(e, function (e) { t.resolve(e).then(n.resolve, r); }); }); return i.error && r(i.value), n.promise; }, } ); }, 36535: function (e, t, n) { var r = n(13099), i = n(19670), o = (n(17854).Reflect || {}).apply, a = Function.apply, s = !n(47293)(function () { o(function () {}); }); n(82109)( { target: "Reflect", stat: !0, forced: s }, { apply: function (e, t, n) { return r(e), i(n), o ? o(e, t, n) : a.call(e, t, n); }, } ); }, 12419: function (e, t, n) { var r = n(70030), i = n(13099), o = n(19670), a = n(70111), s = n(47293), u = n(27065), c = (n(17854).Reflect || {}).construct, l = s(function () { function e() {} return !(c(function () {}, [], e) instanceof e); }), f = !s(function () { c(function () {}); }), d = l || f; n(82109)( { target: "Reflect", stat: !0, forced: d, sham: d }, { construct: function (e, t) { i(e), o(t); var n = arguments.length < 3 ? e : i(arguments[2]); if (f && !l) return c(e, t, n); if (e == n) { switch (t.length) { case 0: return new e(); case 1: return new e(t[0]); case 2: return new e(t[0], t[1]); case 3: return new e(t[0], t[1], t[2]); case 4: return new e(t[0], t[1], t[2], t[3]); } var s = [null]; return s.push.apply(s, t), new (u.apply(e, s))(); } var d = n.prototype, p = r(a(d) ? d : Object.prototype), h = Function.apply.call(e, p, t); return a(h) ? h : p; }, } ); }, 69596: function (e, t, n) { var r = n(3070), i = n(19670), o = n(57593), a = n(19781), s = n(47293)(function () { Reflect.defineProperty(r.f({}, 1, { value: 1 }), 1, { value: 2 }); }); n(82109)( { target: "Reflect", stat: !0, forced: s, sham: !a }, { defineProperty: function (e, t, n) { i(e), (t = o(t, !0)), i(n); try { return r.f(e, t, n), !0; } catch (e) { return !1; } }, } ); }, 52586: function (e, t, n) { var r = n(31236).f, i = n(19670); n(82109)( { target: "Reflect", stat: !0 }, { deleteProperty: function (e, t) { var n = r(i(e), t); return !(n && !n.configurable) && delete e[t]; }, } ); }, 95683: function (e, t, n) { var r = n(31236), i = n(19670), o = n(19781); n(82109)( { target: "Reflect", stat: !0, sham: !o }, { getOwnPropertyDescriptor: function (e, t) { return r.f(i(e), t); }, } ); }, 39361: function (e, t, n) { var r = n(79518), i = n(19670), o = n(49920); n(82109)( { target: "Reflect", stat: !0, sham: !o }, { getPrototypeOf: function (e) { return r(i(e)); }, } ); }, 74819: function (e, t, n) { var r = n(31236), i = n(79518), o = n(86656), a = n(70111), s = n(19670); n(82109)( { target: "Reflect", stat: !0 }, { get: function e(t, n) { var u, c, l = arguments.length < 3 ? t : arguments[2]; return s(t) === l ? t[n] : (u = r.f(t, n)) ? o(u, "value") ? u.value : void 0 === u.get ? void 0 : u.get.call(l) : a((c = i(t))) ? e(c, n, l) : void 0; }, } ); }, 51037: function (e, t, n) { n(82109)( { target: "Reflect", stat: !0 }, { has: function (e, t) { return t in e; }, } ); }, 5898: function (e, t, n) { var r = n(19670), i = Object.isExtensible; n(82109)( { target: "Reflect", stat: !0 }, { isExtensible: function (e) { return r(e), !i || i(e); }, } ); }, 67556: function (e, t, n) { n(82109)({ target: "Reflect", stat: !0 }, { ownKeys: n(53887) }); }, 14361: function (e, t, n) { var r = n(35005), i = n(19670), o = n(76677); n(82109)( { target: "Reflect", stat: !0, sham: !o }, { preventExtensions: function (e) { i(e); try { var t = r("Object", "preventExtensions"); return t && t(e), !0; } catch (e) { return !1; } }, } ); }, 39532: function (e, t, n) { var r = n(27674), i = n(99475); r && n(82109)( { target: "Reflect", stat: !0 }, { setPrototypeOf: function (e, t) { i(e, t); try { return r(e, t), !0; } catch (e) { return !1; } }, } ); }, 83593: function (e, t, n) { var r = n(3070), i = n(31236), o = n(79518), a = n(86656), s = n(79114), u = n(19670), c = n(70111); n(82109)( { target: "Reflect", stat: !0 }, { set: function e(t, n, l) { var f, d, p = arguments.length < 4 ? t : arguments[3], h = i.f(u(t), n); if (!h) { if (c((d = o(t)))) return e(d, n, l, p); h = s(0); } if (a(h, "value")) { if (!1 === h.writable || !c(p)) return !1; if ((f = i.f(p, n))) { if (f.get || f.set || !1 === f.writable) return !1; (f.value = l), r.f(p, n, f); } else r.f(p, n, s(0, l)); return !0; } return void 0 !== h.set && (h.set.call(p, l), !0); }, } ); }, 24603: function (e, t, n) { var r = n(19781), i = n(5112)("match"), o = n(17854), a = n(54705), s = n(79587), u = n(3070).f, c = n(8006).f, l = n(47850), f = n(67066), d = n(31320), p = n(47293), h = o.RegExp, g = h.prototype, m = /a/g, y = /a/g, v = new h(m) !== m; if ( a( "RegExp", r && (!v || p(function () { return ( (y[i] = !1), h(m) != m || h(y) == y || "/a/i" != h(m, "i") ); })) ) ) { for ( var b = function (e, t) { var n = this instanceof b, r = l(e), i = void 0 === t; return !n && r && e.constructor === b && i ? e : s( v ? new h(r && !i ? e.source : e, t) : h( (r = e instanceof b) ? e.source : e, r && i ? f.call(e) : t ), n ? this : g, b ); }, _ = function (e) { (e in b) || u(b, e, { configurable: !0, get: function () { return h[e]; }, set: function (t) { h[e] = t; }, }); }, w = c(h), T = 0; T < w.length; ) _(w[T++]); (g.constructor = b), (b.prototype = g), d(o, "RegExp", b); } n(96340)("RegExp"); }, 74916: function (e, t, n) { "use strict"; var r = n(22261); n(82109)( { target: "RegExp", proto: !0, forced: /./.exec !== r }, { exec: r } ); }, 92087: function (e, t, n) { n(19781) && "g" != /./g.flags && n(3070).f(RegExp.prototype, "flags", { configurable: !0, get: n(67066), }); }, 39714: function (e, t, n) { "use strict"; var r = n(19670), i = n(47293), o = n(67066), a = n(19781), s = "toString", u = /./.toString, c = i(function () { return "/a/b" != u.call({ source: "a", flags: "b" }); }), l = u.name != s; (c || l) && n(31320)( RegExp.prototype, s, function () { var e = r(this); return "/".concat( e.source, "/", "flags" in e ? e.flags : !a && e instanceof RegExp ? o.call(e) : void 0 ); }, { unsafe: !0 } ); }, 70189: function (e, t, n) { "use strict"; e.exports = n(77710)( "Set", function (e) { return function () { return e(this, arguments.length > 0 ? arguments[0] : void 0); }; }, n(95631) ); }, 15218: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("anchor"); n(82109)( { target: "String", proto: !0, forced: i }, { anchor: function (e) { return r(this, "a", "name", e); }, } ); }, 74475: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("big"); n(82109)( { target: "String", proto: !0, forced: i }, { big: function () { return r(this, "big", "", ""); }, } ); }, 57929: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("blink"); n(82109)( { target: "String", proto: !0, forced: i }, { blink: function () { return r(this, "blink", "", ""); }, } ); }, 50915: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("bold"); n(82109)( { target: "String", proto: !0, forced: i }, { bold: function () { return r(this, "b", "", ""); }, } ); }, 79841: function (e, t, n) { "use strict"; var r = n(95866); n(82109)( { target: "String", proto: !0 }, { codePointAt: function (e) { return r(this, e); }, } ); }, 27852: function (e, t, n) { "use strict"; var r = n(17466), i = n(28468), o = "endsWith", a = "".endsWith, s = Math.min, u = n(84964)(o); n(82109)( { target: "String", proto: !0, forced: !u }, { endsWith: function (e) { var t = i(this, e, o), n = arguments.length > 1 ? arguments[1] : void 0, u = r(t.length), c = void 0 === n ? u : s(r(n), u), l = String(e); return a ? a.call(t, l, c) : t.slice(c - l.length, c) === l; }, } ); }, 29253: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("fixed"); n(82109)( { target: "String", proto: !0, forced: i }, { fixed: function () { return r(this, "tt", "", ""); }, } ); }, 42125: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("fontcolor"); n(82109)( { target: "String", proto: !0, forced: i }, { fontcolor: function (e) { return r(this, "font", "color", e); }, } ); }, 78830: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("fontsize"); n(82109)( { target: "String", proto: !0, forced: i }, { fontsize: function (e) { return r(this, "font", "size", e); }, } ); }, 94953: function (e, t, n) { var r = n(51400), i = String.fromCharCode, o = String.fromCodePoint, a = !!o && 1 != o.length; n(82109)( { target: "String", stat: !0, forced: a }, { fromCodePoint: function (e) { for (var t, n = [], o = arguments.length, a = 0; o > a; ) { if (((t = +arguments[a++]), r(t, 1114111) !== t)) throw RangeError(t + " is not a valid code point"); n.push( t < 65536 ? i(t) : i(55296 + ((t -= 65536) >> 10), (t % 1024) + 56320) ); } return n.join(""); }, } ); }, 32023: function (e, t, n) { "use strict"; var r = n(28468), i = "includes", o = n(84964)(i); n(82109)( { target: "String", proto: !0, forced: !o }, { includes: function (e) { return !!~r(this, e, i).indexOf( e, arguments.length > 1 ? arguments[1] : void 0 ); }, } ); }, 58734: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("italics"); n(82109)( { target: "String", proto: !0, forced: i }, { italics: function () { return r(this, "i", "", ""); }, } ); }, 78783: function (e, t, n) { "use strict"; var r = n(95866), i = n(29909), o = n(70654), a = "String Iterator", s = i.set, u = i.getterFor(a); o( String, "String", function (e) { s(this, { type: a, string: String(e), index: 0 }); }, function () { var e, t = u(this), n = t.string, i = t.index; return i >= n.length ? { value: void 0, done: !0 } : ((e = r(n, i, !0)), (t.index += e.length), { value: e, done: !1 }); } ); }, 29254: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("link"); n(82109)( { target: "String", proto: !0, forced: i }, { link: function (e) { return r(this, "a", "href", e); }, } ); }, 4723: function (e, t, n) { "use strict"; var r = n(19670), i = n(17466), o = n(84488), a = n(31530), s = n(97651); n(27007)("match", 1, function (e, t, n) { return [ function (t) { var n = o(this), r = null == t ? void 0 : t[e]; return void 0 !== r ? r.call(t, n) : new RegExp(t)[e](String(n)); }, function (e) { var o = n(t, e, this); if (o.done) return o.value; var u = r(e), c = String(this); if (!u.global) return s(u, c); var l = u.unicode; u.lastIndex = 0; for (var f, d = [], p = 0; null !== (f = s(u, c)); ) { var h = String(f[0]); (d[p] = h), "" === h && (u.lastIndex = a(c, i(u.lastIndex), l)), p++; } return 0 === p ? null : d; }, ]; }); }, 66528: function (e, t, n) { "use strict"; var r = n(76650), i = n(27428); n(82109)( { target: "String", proto: !0, forced: i }, { padEnd: function (e) { return r(this, e, arguments.length > 1 ? arguments[1] : void 0, !1); }, } ); }, 83112: function (e, t, n) { "use strict"; var r = n(76650), i = n(27428); n(82109)( { target: "String", proto: !0, forced: i }, { padStart: function (e) { return r(this, e, arguments.length > 1 ? arguments[1] : void 0, !0); }, } ); }, 38992: function (e, t, n) { var r = n(45656), i = n(17466); n(82109)( { target: "String", stat: !0 }, { raw: function (e) { for ( var t = r(e.raw), n = i(t.length), o = arguments.length, a = [], s = 0; n > s; ) a.push(String(t[s++])), s < o && a.push(String(arguments[s])); return a.join(""); }, } ); }, 82481: function (e, t, n) { n(82109)({ target: "String", proto: !0 }, { repeat: n(38415) }); }, 15306: function (e, t, n) { "use strict"; var r = n(19670), i = n(47908), o = n(17466), a = n(99958), s = n(84488), u = n(31530), c = n(97651), l = Math.max, f = Math.min, d = Math.floor, p = /\$([$&`']|\d\d?|<[^>]*>)/g, h = /\$([$&`']|\d\d?)/g; n(27007)("replace", 2, function (e, t, n) { return [ function (n, r) { var i = s(this), o = null == n ? void 0 : n[e]; return void 0 !== o ? o.call(n, i, r) : t.call(String(i), n, r); }, function (e, i) { var s = n(t, e, this, i); if (s.done) return s.value; var d = r(e), p = String(this), h = "function" == typeof i; h || (i = String(i)); var m = d.global; if (m) { var y = d.unicode; d.lastIndex = 0; } for (var v = []; ; ) { var b = c(d, p); if (null === b) break; if ((v.push(b), !m)) break; "" === String(b[0]) && (d.lastIndex = u(p, o(d.lastIndex), y)); } for (var _, w = "", T = 0, x = 0; x < v.length; x++) { b = v[x]; for ( var S = String(b[0]), k = l(f(a(b.index), p.length), 0), E = [], O = 1; O < b.length; O++ ) E.push(void 0 === (_ = b[O]) ? _ : String(_)); var C = b.groups; if (h) { var L = [S].concat(E, k, p); void 0 !== C && L.push(C); var A = String(i.apply(void 0, L)); } else A = g(S, p, k, E, C, i); k >= T && ((w += p.slice(T, k) + A), (T = k + S.length)); } return w + p.slice(T); }, ]; function g(e, n, r, o, a, s) { var u = r + e.length, c = o.length, l = h; return ( void 0 !== a && ((a = i(a)), (l = p)), t.call(s, l, function (t, i) { var s; switch (i.charAt(0)) { case "$": return "$"; case "&": return e; case "`": return n.slice(0, r); case "'": return n.slice(u); case "<": s = a[i.slice(1, -1)]; break; default: var l = +i; if (0 === l) return t; if (l > c) { var f = d(l / 10); return 0 === f ? t : f <= c ? void 0 === o[f - 1] ? i.charAt(1) : o[f - 1] + i.charAt(1) : t; } s = o[l - 1]; } return void 0 === s ? "" : s; }) ); } }); }, 64765: function (e, t, n) { "use strict"; var r = n(19670), i = n(84488), o = n(81150), a = n(97651); n(27007)("search", 1, function (e, t, n) { return [ function (t) { var n = i(this), r = null == t ? void 0 : t[e]; return void 0 !== r ? r.call(t, n) : new RegExp(t)[e](String(n)); }, function (e) { var i = n(t, e, this); if (i.done) return i.value; var s = r(e), u = String(this), c = s.lastIndex; o(c, 0) || (s.lastIndex = 0); var l = a(s, u); return ( o(s.lastIndex, c) || (s.lastIndex = c), null === l ? -1 : l.index ); }, ]; }); }, 37268: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("small"); n(82109)( { target: "String", proto: !0, forced: i }, { small: function () { return r(this, "small", "", ""); }, } ); }, 23123: function (e, t, n) { "use strict"; var r = n(47850), i = n(19670), o = n(84488), a = n(36707), s = n(31530), u = n(17466), c = n(97651), l = n(22261), f = n(47293), d = [].push, p = Math.min, h = 4294967295, g = !f(function () { return !RegExp(h, "y"); }); n(27007)( "split", 2, function (e, t, n) { var f; return ( (f = "c" == "abbc".split(/(b)*/)[1] || 4 != "test".split(/(?:)/, -1).length || 2 != "ab".split(/(?:ab)*/).length || 4 != ".".split(/(.?)(.?)/).length || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function (e, n) { var i = String(o(this)), a = void 0 === n ? h : n >>> 0; if (0 === a) return []; if (void 0 === e) return [i]; if (!r(e)) return t.call(i, e, a); for ( var s, u, c, f = [], p = (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.unicode ? "u" : "") + (e.sticky ? "y" : ""), g = 0, m = new RegExp(e.source, p + "g"); (s = l.call(m, i)) && !( (u = m.lastIndex) > g && (f.push(i.slice(g, s.index)), s.length > 1 && s.index < i.length && d.apply(f, s.slice(1)), (c = s[0].length), (g = u), f.length >= a) ); ) m.lastIndex === s.index && m.lastIndex++; return ( g === i.length ? (!c && m.test("")) || f.push("") : f.push(i.slice(g)), f.length > a ? f.slice(0, a) : f ); } : "0".split(void 0, 0).length ? function (e, n) { return void 0 === e && 0 === n ? [] : t.call(this, e, n); } : t), [ function (t, n) { var r = o(this), i = null == t ? void 0 : t[e]; return void 0 !== i ? i.call(t, r, n) : f.call(String(r), t, n); }, function (e, r) { var o = n(f, e, this, r, f !== t); if (o.done) return o.value; var l = i(e), d = String(this), m = a(l, RegExp), y = l.unicode, v = (l.ignoreCase ? "i" : "") + (l.multiline ? "m" : "") + (l.unicode ? "u" : "") + (g ? "y" : "g"), b = new m(g ? l : "^(?:" + l.source + ")", v), _ = void 0 === r ? h : r >>> 0; if (0 === _) return []; if (0 === d.length) return null === c(b, d) ? [d] : []; for (var w = 0, T = 0, x = []; T < d.length; ) { b.lastIndex = g ? T : 0; var S, k = c(b, g ? d : d.slice(T)); if ( null === k || (S = p(u(b.lastIndex + (g ? 0 : T)), d.length)) === w ) T = s(d, T, y); else { if ((x.push(d.slice(w, T)), x.length === _)) return x; for (var E = 1; E <= k.length - 1; E++) if ((x.push(k[E]), x.length === _)) return x; T = w = S; } } return x.push(d.slice(w)), x; }, ] ); }, !g ); }, 23157: function (e, t, n) { "use strict"; var r = n(17466), i = n(28468), o = "startsWith", a = n(84964)(o), s = "".startsWith; n(82109)( { target: "String", proto: !0, forced: !a }, { startsWith: function (e) { var t = i(this, e, o), n = r( Math.min(arguments.length > 1 ? arguments[1] : void 0, t.length) ), a = String(e); return s ? s.call(t, a, n) : t.slice(n, n + a.length) === a; }, } ); }, 7397: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("strike"); n(82109)( { target: "String", proto: !0, forced: i }, { strike: function () { return r(this, "strike", "", ""); }, } ); }, 60086: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("sub"); n(82109)( { target: "String", proto: !0, forced: i }, { sub: function () { return r(this, "sub", "", ""); }, } ); }, 80623: function (e, t, n) { "use strict"; var r = n(14230), i = n(12098)("sup"); n(82109)( { target: "String", proto: !0, forced: i }, { sup: function () { return r(this, "sup", "", ""); }, } ); }, 48702: function (e, t, n) { "use strict"; var r = n(53111), i = n(8711)("trimEnd"), o = i ? function () { return r(this, 2); } : "".trimEnd; n(82109)( { target: "String", proto: !0, forced: i }, { trimEnd: o, trimRight: o } ); }, 55674: function (e, t, n) { "use strict"; var r = n(53111), i = n(8711)("trimStart"), o = i ? function () { return r(this, 1); } : "".trimStart; n(82109)( { target: "String", proto: !0, forced: i }, { trimStart: o, trimLeft: o } ); }, 73210: function (e, t, n) { "use strict"; var r = n(53111), i = n(8711)("trim"); n(82109)( { target: "String", proto: !0, forced: i }, { trim: function () { return r(this, 3); }, } ); }, 72443: function (e, t, n) { n(97235)("asyncIterator"); }, 41817: function (e, t, n) { "use strict"; var r = n(19781), i = n(86656), o = n(70111), a = n(3070).f, s = n(99920), u = n(17854).Symbol; if ( r && "function" == typeof u && (!("description" in u.prototype) || void 0 !== u().description) ) { var c = {}, l = function () { var e = arguments.length < 1 || void 0 === arguments[0] ? void 0 : String(arguments[0]), t = this instanceof l ? new u(e) : void 0 === e ? u() : u(e); return "" === e && (c[t] = !0), t; }; s(l, u); var f = (l.prototype = u.prototype); f.constructor = l; var d = f.toString, p = "Symbol(test)" == String(u("test")), h = /^Symbol\((.*)\)[^)]+$/; a(f, "description", { configurable: !0, get: function () { var e = o(this) ? this.valueOf() : this, t = d.call(e); if (i(c, e)) return ""; var n = p ? t.slice(7, -1) : t.replace(h, "$1"); return "" === n ? void 0 : n; }, }), n(82109)({ global: !0, forced: !0 }, { Symbol: l }); } }, 92401: function (e, t, n) { n(97235)("hasInstance"); }, 8722: function (e, t, n) { n(97235)("isConcatSpreadable"); }, 32165: function (e, t, n) { n(97235)("iterator"); }, 82526: function (e, t, n) { "use strict"; var r = n(17854), i = n(86656), o = n(19781), a = n(31913), s = n(82109), u = n(31320), c = n(3501), l = n(47293), f = n(72309), d = n(58003), p = n(69711), h = n(5112), g = n(96805), m = n(97235), y = n(6294), v = n(43157), b = n(19670), _ = n(70111), w = n(45656), T = n(57593), x = n(79114), S = n(70030), k = n(1156), E = n(31236), O = n(3070), C = n(55296), L = n(95185), A = n(81956), I = n(6200)("hidden"), M = n(29909), P = "Symbol", R = M.set, D = M.getterFor(P), j = E.f, N = O.f, B = k.f, U = r.Symbol, F = r.JSON, z = F && F.stringify, H = h("toPrimitive"), q = C.f, Z = f("symbol-registry"), V = f("symbols"), W = f("op-symbols"), $ = f("wks"), G = Object.prototype, Y = r.QObject, K = n(30133), X = !Y || !Y.prototype || !Y.prototype.findChild, Q = o && l(function () { return ( 7 != S( N({}, "a", { get: function () { return N(this, "a", { value: 7 }).a; }, }) ).a ); }) ? function (e, t, n) { var r = j(G, t); r && delete G[t], N(e, t, n), r && e !== G && N(G, t, r); } : N, J = function (e, t) { var n = (V[e] = S(U.prototype)); return ( R(n, { type: P, tag: e, description: t }), o || (n.description = t), n ); }, ee = K && "symbol" == typeof U.iterator ? function (e) { return "symbol" == typeof e; } : function (e) { return Object(e) instanceof U; }, te = function (e, t, n) { return ( e === G && te(W, t, n), b(e), (t = T(t, !0)), b(n), i(V, t) ? (n.enumerable ? (i(e, I) && e[I][t] && (e[I][t] = !1), (n = S(n, { enumerable: x(0, !1) }))) : (i(e, I) || N(e, I, x(1, {})), (e[I][t] = !0)), Q(e, t, n)) : N(e, t, n) ); }, ne = function (e, t) { b(e); for (var n, r = y((t = w(t))), i = 0, o = r.length; o > i; ) te(e, (n = r[i++]), t[n]); return e; }, re = function (e) { var t = q.call(this, (e = T(e, !0))); return ( !(this === G && i(V, e) && !i(W, e)) && (!(t || !i(this, e) || !i(V, e) || (i(this, I) && this[I][e])) || t) ); }, ie = function (e, t) { if (((e = w(e)), (t = T(t, !0)), e !== G || !i(V, t) || i(W, t))) { var n = j(e, t); return ( !n || !i(V, t) || (i(e, I) && e[I][t]) || (n.enumerable = !0), n ); } }, oe = function (e) { for (var t, n = B(w(e)), r = [], o = 0; n.length > o; ) i(V, (t = n[o++])) || i(c, t) || r.push(t); return r; }, ae = function (e) { for ( var t, n = e === G, r = B(n ? W : w(e)), o = [], a = 0; r.length > a; ) !i(V, (t = r[a++])) || (n && !i(G, t)) || o.push(V[t]); return o; }; K || ((U = function () { if (this instanceof U) throw TypeError("Symbol is not a constructor"); var e = void 0 === arguments[0] ? void 0 : String(arguments[0]), t = p(e), n = function (e) { this === G && n.call(W, e), i(this, I) && i(this[I], t) && (this[I][t] = !1), Q(this, t, x(1, e)); }; return o && X && Q(G, t, { configurable: !0, set: n }), J(t, e); }), u(U.prototype, "toString", function () { return D(this).tag; }), (C.f = re), (O.f = te), (E.f = ie), (n(8006).f = k.f = oe), (n(25181).f = ae), o && (N(U.prototype, "description", { configurable: !0, get: function () { return D(this).description; }, }), a || u(G, "propertyIsEnumerable", re, { unsafe: !0 })), (g.f = function (e) { return J(h(e), e); })), s({ global: !0, wrap: !0, forced: !K, sham: !K }, { Symbol: U }); for (var se = A($), ue = 0; se.length > ue; ) m(se[ue++]); s( { target: P, stat: !0, forced: !K }, { for: function (e) { return i(Z, (e += "")) ? Z[e] : (Z[e] = U(e)); }, keyFor: function (e) { if (!ee(e)) throw TypeError(e + " is not a symbol"); for (var t in Z) if (Z[t] === e) return t; }, useSetter: function () { X = !0; }, useSimple: function () { X = !1; }, } ), s( { target: "Object", stat: !0, forced: !K, sham: !o }, { create: function (e, t) { return void 0 === t ? S(e) : ne(S(e), t); }, defineProperty: te, defineProperties: ne, getOwnPropertyDescriptor: ie, } ), s( { target: "Object", stat: !0, forced: !K }, { getOwnPropertyNames: oe, getOwnPropertySymbols: ae } ), F && s( { target: "JSON", stat: !0, forced: !K || l(function () { var e = U(); return ( "[null]" != z([e]) || "{}" != z({ a: e }) || "{}" != z(Object(e)) ); }), }, { stringify: function (e) { for (var t, n, r = [e], i = 1; arguments.length > i; ) r.push(arguments[i++]); if (((n = t = r[1]), (_(t) || void 0 !== e) && !ee(e))) return ( v(t) || (t = function (e, t) { if ( ("function" == typeof n && (t = n.call(this, e, t)), !ee(t)) ) return t; }), (r[1] = t), z.apply(F, r) ); }, } ), U.prototype[H] || L(U.prototype, H, U.prototype.valueOf), d(U, P), (c[I] = !0); }, 69007: function (e, t, n) { n(97235)("match"); }, 83510: function (e, t, n) { n(97235)("replace"); }, 41840: function (e, t, n) { n(97235)("search"); }, 6982: function (e, t, n) { n(97235)("species"); }, 32159: function (e, t, n) { n(97235)("split"); }, 96649: function (e, t, n) { n(97235)("toPrimitive"); }, 39341: function (e, t, n) { n(97235)("toStringTag"); }, 60543: function (e, t, n) { n(97235)("unscopables"); }, 92990: function (e, t, n) { "use strict"; var r = n(1048), i = n(90260), o = i.aTypedArray; i.exportProto("copyWithin", function (e, t) { return r.call( o(this), e, t, arguments.length > 2 ? arguments[2] : void 0 ); }); }, 18927: function (e, t, n) { "use strict"; var r = n(77550)(4), i = n(90260), o = i.aTypedArray; i.exportProto("every", function (e) { return r(o(this), e, arguments.length > 1 ? arguments[1] : void 0); }); }, 33105: function (e, t, n) { "use strict"; var r = n(21285), i = n(90260), o = i.aTypedArray; i.exportProto("fill", function (e) { return r.apply(o(this), arguments); }); }, 35035: function (e, t, n) { "use strict"; var r = n(36707), i = n(90260), o = n(77550)(2), a = i.aTypedArray, s = i.aTypedArrayConstructor; i.exportProto("filter", function (e) { for ( var t = o(a(this), e, arguments.length > 1 ? arguments[1] : void 0), n = r(this, this.constructor), i = 0, u = t.length, c = new (s(n))(u); u > i; ) c[i] = t[i++]; return c; }); }, 7174: function (e, t, n) { "use strict"; var r = n(77550)(6), i = n(90260), o = i.aTypedArray; i.exportProto("findIndex", function (e) { return r(o(this), e, arguments.length > 1 ? arguments[1] : void 0); }); }, 74345: function (e, t, n) { "use strict"; var r = n(77550)(5), i = n(90260), o = i.aTypedArray; i.exportProto("find", function (e) { return r(o(this), e, arguments.length > 1 ? arguments[1] : void 0); }); }, 44197: function (e, t, n) { n(19843)("Float32", 4, function (e) { return function (t, n, r) { return e(this, t, n, r); }; }); }, 76495: function (e, t, n) { n(19843)("Float64", 8, function (e) { return function (t, n, r) { return e(this, t, n, r); }; }); }, 32846: function (e, t, n) { "use strict"; var r = n(77550)(0), i = n(90260), o = i.aTypedArray; i.exportProto("forEach", function (e) { r(o(this), e, arguments.length > 1 ? arguments[1] : void 0); }); }, 98145: function (e, t, n) { "use strict"; var r = n(6500), i = n(90260), o = n(97321); i.exportStatic("from", o, r); }, 44731: function (e, t, n) { "use strict"; var r = n(41318)(!0), i = n(90260), o = i.aTypedArray; i.exportProto("includes", function (e) { return r(o(this), e, arguments.length > 1 ? arguments[1] : void 0); }); }, 77209: function (e, t, n) { "use strict"; var r = n(41318)(!1), i = n(90260), o = i.aTypedArray; i.exportProto("indexOf", function (e) { return r(o(this), e, arguments.length > 1 ? arguments[1] : void 0); }); }, 35109: function (e, t, n) { n(19843)("Int16", 2, function (e) { return function (t, n, r) { return e(this, t, n, r); }; }); }, 65125: function (e, t, n) { n(19843)("Int32", 4, function (e) { return function (t, n, r) { return e(this, t, n, r); }; }); }, 87145: function (e, t, n) { n(19843)("Int8", 1, function (e) { return function (t, n, r) { return e(this, t, n, r); }; }); }, 96319: function (e, t, n) { "use strict"; var r = n(66992), i = n(17854).Uint8Array, o = n(90260), a = n(5112)("iterator"), s = r.values, u = r.keys, c = r.entries, l = o.aTypedArray, f = o.exportProto, d = i && i.prototype[a], p = !!d && ("values" == d.name || null == d.name), h = function () { return s.call(l(this)); }; f("entries", function () { return c.call(l(this)); }), f("keys", function () { return u.call(l(this)); }), f("values", h, !p), f(a, h, !p); }, 58867: function (e, t, n) { "use strict"; var r = n(90260), i = r.aTypedArray, o = [].join; r.exportProto("join", function (e) { return o.apply(i(this), arguments); }); }, 37789: function (e, t, n) { "use strict"; var r = n(86583), i = n(90260), o = i.aTypedArray; i.exportProto("lastIndexOf", function (e) { return r.apply(o(this), arguments); }); }, 33739: function (e, t, n) { "use strict"; var r = n(36707), i = n(90260), o = i.aTypedArray, a = i.aTypedArrayConstructor, s = n(77550)(1, function (e, t) { return new (a(r(e, e.constructor)))(t); }); i.exportProto("map", function (e) { return s(o(this), e, arguments.length > 1 ? arguments[1] : void 0); }); }, 95206: function (e, t, n) { "use strict"; var r = n(6500), i = n(90260), o = i.aTypedArrayConstructor; i.exportStatic( "of", function () { for (var e = 0, t = arguments.length, n = new (o(this))(t); t > e; ) n[e] = arguments[e++]; return n; }, r ); }, 14483: function (e, t, n) { "use strict"; var r = n(90260), i = r.aTypedArray, o = [].reduceRight; r.exportProto("reduceRight", function (e) { return o.apply(i(this), arguments); }); }, 29368: function (e, t, n) { "use strict"; var r = n(90260), i = r.aTypedArray, o = [].reduce; r.exportProto("reduce", function (e) { return o.apply(i(this), arguments); }); }, 12056: function (e, t, n) { "use strict"; var r = n(90260), i = r.aTypedArray; r.exportProto("reverse", function () { for ( var e, t = this, n = i(t).length, r = Math.floor(n / 2), o = 0; o < r; ) (e = t[o]), (t[o++] = t[--n]), (t[n] = e); return t; }); }, 3462: function (e, t, n) { "use strict"; var r = n(17466), i = n(84590), o = n(47908), a = n(90260), s = a.aTypedArray, u = n(47293)(function () { new Int8Array(1).set({}); }); a.exportProto( "set", function (e) { s(this); var t = i(arguments[1], 1), n = this.length, a = o(e), u = r(a.length), c = 0; if (u + t > n) throw RangeError("Wrong length"); for (; c < u; ) this[t + c] = a[c++]; }, u ); }, 30678: function (e, t, n) { "use strict"; var r = n(36707), i = n(90260), o = i.aTypedArray, a = i.aTypedArrayConstructor, s = [].slice, u = n(47293)(function () { new Int8Array(1).slice(); }); i.exportProto( "slice", function (e, t) { for ( var n = s.call(o(this), e, t), i = r(this, this.constructor), u = 0, c = n.length, l = new (a(i))(c); c > u; ) l[u] = n[u++]; return l; }, u ); }, 27462: function (e, t, n) { "use strict"; var r = n(77550)(3), i = n(90260), o = i.aTypedArray; i.exportProto("some", function (e) { return r(o(this), e, arguments.length > 1 ? arguments[1] : void 0); }); }, 33824: function (e, t, n) { "use strict"; var r = n(90260), i = r.aTypedArray, o = [].sort; r.exportProto("sort", function (e) { return o.call(i(this), e); }); }, 55021: function (e, t, n) { "use strict"; var r = n(17466), i = n(51400), o = n(36707), a = n(90260), s = a.aTypedArray; a.exportProto("subarray", function (e, t) { var n = s(this), a = n.length, u = i(e, a); return new (o(n, n.constructor))( n.buffer, n.byteOffset + u * n.BYTES_PER_ELEMENT, r((void 0 === t ? a : i(t, a)) - u) ); }); }, 12974: function (e, t, n) { "use strict"; var r = n(17854).Int8Array, i = n(47293), o = n(90260), a = o.aTypedArray, s = [].toLocaleString, u = [].slice, c = !!r && i(function () { s.call(new r(1)); }), l = i(function () { return [1, 2].toLocaleString() != new r([1, 2]).toLocaleString(); }) || !i(function () { r.prototype.toLocaleString.call([1, 2]); }); o.exportProto( "toLocaleString", function () { return s.apply(c ? u.call(a(this)) : a(this), arguments); }, l ); }, 15016: function (e, t, n) { "use strict"; var r = n(17854).Uint8Array, i = r && r.prototype, o = n(90260), a = [].toString, s = [].join; n(47293)(function () { a.call({}); }) && (a = function () { return s.call(this); }), o.exportProto("toString", a, (i || {}).toString != a); }, 8255: function (e, t, n) { n(19843)("Uint16", 2, function (e) { return function (t, n, r) { return e(this, t, n, r); }; }); }, 29135: function (e, t, n) { n(19843)("Uint32", 4, function (e) { return function (t, n, r) { return e(this, t, n, r); }; }); }, 82472: function (e, t, n) { n(19843)("Uint8", 1, function (e) { return function (t, n, r) { return e(this, t, n, r); }; }); }, 49743: function (e, t, n) { n(19843)( "Uint8", 1, function (e) { return function (t, n, r) { return e(this, t, n, r); }; }, !0 ); }, 4129: function (e, t, n) { "use strict"; var r, i = n(17854), o = n(12248), a = n(62423), s = n(29320), u = n(70111), c = n(29909).enforce, l = n(68536), f = !i.ActiveXObject && "ActiveXObject" in i, d = Object.isExtensible, p = function (e) { return function () { return e(this, arguments.length > 0 ? arguments[0] : void 0); }; }, h = (e.exports = n(77710)("WeakMap", p, s, !0, !0)); if (l && f) { (r = s.getConstructor(p, "WeakMap", !0)), (a.REQUIRED = !0); var g = h.prototype, m = g.delete, y = g.has, v = g.get, b = g.set; o(g, { delete: function (e) { if (u(e) && !d(e)) { var t = c(this); return ( t.frozen || (t.frozen = new r()), m.call(this, e) || t.frozen.delete(e) ); } return m.call(this, e); }, has: function (e) { if (u(e) && !d(e)) { var t = c(this); return ( t.frozen || (t.frozen = new r()), y.call(this, e) || t.frozen.has(e) ); } return y.call(this, e); }, get: function (e) { if (u(e) && !d(e)) { var t = c(this); return ( t.frozen || (t.frozen = new r()), y.call(this, e) ? v.call(this, e) : t.frozen.get(e) ); } return v.call(this, e); }, set: function (e, t) { if (u(e) && !d(e)) { var n = c(this); n.frozen || (n.frozen = new r()), y.call(this, e) ? b.call(this, e, t) : n.frozen.set(e, t); } else b.call(this, e, t); return this; }, }); } }, 38478: function (e, t, n) { "use strict"; n(77710)( "WeakSet", function (e) { return function () { return e(this, arguments.length > 0 ? arguments[0] : void 0); }; }, n(29320), !1, !0 ); }, 54747: function (e, t, n) { var r = n(48324), i = n(18533), o = n(95185), a = n(17854); for (var s in r) { var u = a[s], c = u && u.prototype; if (c && c.forEach !== i) try { o(c, "forEach", i); } catch (e) { c.forEach = i; } } }, 33948: function (e, t, n) { var r = n(48324), i = n(66992), o = n(17854), a = n(95185), s = n(5112), u = s("iterator"), c = s("toStringTag"), l = i.values; for (var f in r) { var d = o[f], p = d && d.prototype; if (p) { if (p[u] !== l) try { a(p, u, l); } catch (e) { p[u] = l; } if ((p[c] || a(p, c, f), r[f])) for (var h in i) if (p[h] !== i[h]) try { a(p, h, i[h]); } catch (e) { p[h] = i[h]; } } } }, 84633: function (e, t, n) { var r = n(17854), i = n(20261), o = !r.setImmediate || !r.clearImmediate; n(82109)( { global: !0, bind: !0, enumerable: !0, forced: o }, { setImmediate: i.set, clearImmediate: i.clear } ); }, 85844: function (e, t, n) { var r = n(95948), i = n(17854).process, o = "process" == n(84326)(i); n(82109)( { global: !0, enumerable: !0, noTargetGet: !0 }, { queueMicrotask: function (e) { var t = o && i.domain; r(t ? t.bind(e) : e); }, } ); }, 41637: function (e, t, n) { "use strict"; n(66992); var r = n(590), i = n(31320), o = n(12248), a = n(24994), s = n(29909), u = n(25787), c = n(86656), l = n(30244), f = n(19670), d = n(70111), p = n(18554), h = n(71246), g = n(5112)("iterator"), m = "URLSearchParams", y = "URLSearchParamsIterator", v = s.set, b = s.getterFor(m), _ = s.getterFor(y), w = /\+/g, T = Array(4), x = function (e) { return ( T[e - 1] || (T[e - 1] = RegExp("((?:%[\\da-f]{2}){" + e + "})", "gi")) ); }, S = function (e) { try { return decodeURIComponent(e); } catch (t) { return e; } }, k = function (e) { for (var t = e.replace(w, " "), n = 4; n; ) t = t.replace(x(n--), S); return t; }, E = /[!'()~]|%20/g, O = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", }, C = function (e) { return O[e]; }, L = function (e) { return encodeURIComponent(e).replace(E, C); }, A = function (e, t) { if (t) for (var n, r, i = t.split("&"), o = 0; o < i.length; ) (n = i[o++]).length && ((r = n.split("=")), e.push({ key: k(r.shift()), value: k(r.join("=")) })); return e; }, I = function (e) { (this.entries.length = 0), A(this.entries, e); }, M = function (e, t) { if (e < t) throw TypeError("Not enough arguments"); }, P = a( function (e, t) { v(this, { type: y, iterator: p(b(e).entries), kind: t }); }, "Iterator", function () { var e = _(this), t = e.kind, n = e.iterator.next(), r = n.value; return ( n.done || (n.value = "keys" === t ? r.key : "values" === t ? r.value : [r.key, r.value]), n ); } ), R = function () { u(this, R, m); var e, t, n, r, i, o, a, s = arguments.length > 0 ? arguments[0] : void 0, l = this, g = []; if ( (v(l, { type: m, entries: g, updateURL: null, updateSearchParams: I, }), void 0 !== s) ) if (d(s)) if ("function" == typeof (e = h(s))) for (t = e.call(s); !(n = t.next()).done; ) { if ( (i = (r = p(f(n.value))).next()).done || (o = r.next()).done || !r.next().done ) throw TypeError("Expected sequence with length 2"); g.push({ key: i.value + "", value: o.value + "" }); } else for (a in s) c(s, a) && g.push({ key: a, value: s[a] + "" }); else A( g, "string" == typeof s ? "?" === s.charAt(0) ? s.slice(1) : s : s + "" ); }, D = R.prototype; o( D, { append: function (e, t) { M(arguments.length, 2); var n = b(this); n.entries.push({ key: e + "", value: t + "" }), n.updateURL && n.updateURL(); }, delete: function (e) { M(arguments.length, 1); for ( var t = b(this), n = t.entries, r = e + "", i = 0; i < n.length; ) n[i].key === r ? n.splice(i, 1) : i++; t.updateURL && t.updateURL(); }, get: function (e) { M(arguments.length, 1); for (var t = b(this).entries, n = e + "", r = 0; r < t.length; r++) if (t[r].key === n) return t[r].value; return null; }, getAll: function (e) { M(arguments.length, 1); for ( var t = b(this).entries, n = e + "", r = [], i = 0; i < t.length; i++ ) t[i].key === n && r.push(t[i].value); return r; }, has: function (e) { M(arguments.length, 1); for (var t = b(this).entries, n = e + "", r = 0; r < t.length; ) if (t[r++].key === n) return !0; return !1; }, set: function (e, t) { M(arguments.length, 1); for ( var n, r = b(this), i = r.entries, o = !1, a = e + "", s = t + "", u = 0; u < i.length; u++ ) (n = i[u]).key === a && (o ? i.splice(u--, 1) : ((o = !0), (n.value = s))); o || i.push({ key: a, value: s }), r.updateURL && r.updateURL(); }, sort: function () { var e, t, n, r = b(this), i = r.entries, o = i.slice(); for (i.length = 0, t = 0; t < o.length; t++) { for (e = o[t], n = 0; n < t; n++) if (i[n].key > e.key) { i.splice(n, 0, e); break; } n === t && i.push(e); } r.updateURL && r.updateURL(); }, forEach: function (e) { for ( var t, n = b(this).entries, r = l(e, arguments.length > 1 ? arguments[1] : void 0, 3), i = 0; i < n.length; ) r((t = n[i++]).value, t.key, this); }, keys: function () { return new P(this, "keys"); }, values: function () { return new P(this, "values"); }, entries: function () { return new P(this, "entries"); }, }, { enumerable: !0 } ), i(D, g, D.entries), i( D, "toString", function () { for (var e, t = b(this).entries, n = [], r = 0; r < t.length; ) (e = t[r++]), n.push(L(e.key) + "=" + L(e.value)); return n.join("&"); }, { enumerable: !0 } ), n(58003)(R, m), n(82109)({ global: !0, forced: !r }, { URLSearchParams: R }), (e.exports = { URLSearchParams: R, getState: b }); }, 60285: function (e, t, n) { "use strict"; n(78783); var r, i = n(19781), o = n(590), a = n(17854).URL, s = n(36048), u = n(31320), c = n(25787), l = n(86656), f = n(21574), d = n(48457), p = n(95866), h = n(33611), g = n(41637), m = g.URLSearchParams, y = g.getState, v = n(29909), b = v.set, _ = v.getterFor("URL"), w = Math.pow, T = "Invalid scheme", x = "Invalid host", S = "Invalid port", k = /[a-zA-Z]/, E = /[a-zA-Z0-9+\-.]/, O = /\d/, C = /^(0x|0X)/, L = /^[0-7]+$/, A = /^\d+$/, I = /^[0-9A-Fa-f]+$/, M = /\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/, P = /\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/, R = /^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, D = /\u0009|\u000A|\u000D/g, j = function (e, t) { var n, r, i; if ("[" == t.charAt(0)) { if ("]" != t.charAt(t.length - 1)) return x; if (!(n = B(t.slice(1, -1)))) return x; e.host = n; } else if (W(e)) { if (((t = h(t)), M.test(t))) return x; if (null === (n = N(t))) return x; e.host = n; } else { if (P.test(t)) return x; for (n = "", r = d(t), i = 0; i < r.length; i++) n += Z(r[i], F); e.host = n; } }, N = function (e) { var t, n, r, i, o, a, s, u = e.split("."); if ( ("" == u[u.length - 1] && u.length && u.pop(), (t = u.length) > 4) ) return e; for (n = [], r = 0; r < t; r++) { if ("" == (i = u[r])) return e; if ( ((o = 10), i.length > 1 && "0" == i.charAt(0) && ((o = C.test(i) ? 16 : 8), (i = i.slice(8 == o ? 1 : 2))), "" === i) ) a = 0; else { if (!(10 == o ? A : 8 == o ? L : I).test(i)) return e; a = parseInt(i, o); } n.push(a); } for (r = 0; r < t; r++) if (((a = n[r]), r == t - 1)) { if (a >= w(256, 5 - t)) return null; } else if (a > 255) return null; for (s = n.pop(), r = 0; r < n.length; r++) s += n[r] * w(256, 3 - r); return s; }, B = function (e) { var t, n, r, i, o, a, s, u = [0, 0, 0, 0, 0, 0, 0, 0], c = 0, l = null, f = 0, d = function () { return e.charAt(f); }; if (":" == d()) { if (":" != e.charAt(1)) return; (f += 2), (l = ++c); } for (; d(); ) { if (8 == c) return; if (":" != d()) { for (t = n = 0; n < 4 && I.test(d()); ) (t = 16 * t + parseInt(d(), 16)), f++, n++; if ("." == d()) { if (0 == n) return; if (((f -= n), c > 6)) return; for (r = 0; d(); ) { if (((i = null), r > 0)) { if (!("." == d() && r < 4)) return; f++; } if (!O.test(d())) return; for (; O.test(d()); ) { if (((o = parseInt(d(), 10)), null === i)) i = o; else { if (0 == i) return; i = 10 * i + o; } if (i > 255) return; f++; } (u[c] = 256 * u[c] + i), (2 != ++r && 4 != r) || c++; } if (4 != r) return; break; } if (":" == d()) { if ((f++, !d())) return; } else if (d()) return; u[c++] = t; } else { if (null !== l) return; f++, (l = ++c); } } if (null !== l) for (a = c - l, c = 7; 0 != c && a > 0; ) (s = u[c]), (u[c--] = u[l + a - 1]), (u[l + --a] = s); else if (8 != c) return; return u; }, U = function (e) { var t, n, r, i; if ("number" == typeof e) { for (t = [], n = 0; n < 4; n++) t.unshift(e % 256), (e = Math.floor(e / 256)); return t.join("."); } if ("object" == typeof e) { for ( t = "", r = (function (e) { for (var t = null, n = 1, r = null, i = 0, o = 0; o < 8; o++) 0 !== e[o] ? (i > n && ((t = r), (n = i)), (r = null), (i = 0)) : (null === r && (r = o), ++i); return i > n && ((t = r), (n = i)), t; })(e), n = 0; n < 8; n++ ) (i && 0 === e[n]) || (i && (i = !1), r === n ? ((t += n ? ":" : "::"), (i = !0)) : ((t += e[n].toString(16)), n < 7 && (t += ":"))); return "[" + t + "]"; } return e; }, F = {}, z = f({}, F, { " ": 1, '"': 1, "<": 1, ">": 1, "`": 1 }), H = f({}, z, { "#": 1, "?": 1, "{": 1, "}": 1 }), q = f({}, H, { "/": 1, ":": 1, ";": 1, "=": 1, "@": 1, "[": 1, "\\": 1, "]": 1, "^": 1, "|": 1, }), Z = function (e, t) { var n = p(e, 0); return n > 32 && n < 127 && !l(t, e) ? e : encodeURIComponent(e); }, V = { ftp: 21, file: null, gopher: 70, http: 80, https: 443, ws: 80, wss: 443, }, W = function (e) { return l(V, e.scheme); }, $ = function (e) { return "" != e.username || "" != e.password; }, G = function (e) { return !e.host || e.cannotBeABaseURL || "file" == e.scheme; }, Y = function (e, t) { var n; return ( 2 == e.length && k.test(e.charAt(0)) && (":" == (n = e.charAt(1)) || (!t && "|" == n)) ); }, K = function (e) { var t; return ( e.length > 1 && Y(e.slice(0, 2)) && (2 == e.length || "/" === (t = e.charAt(2)) || "\\" === t || "?" === t || "#" === t) ); }, X = function (e) { var t = e.path, n = t.length; !n || ("file" == e.scheme && 1 == n && Y(t[0], !0)) || t.pop(); }, Q = function (e) { return "." === e || "%2e" === e.toLowerCase(); }, J = {}, ee = {}, te = {}, ne = {}, re = {}, ie = {}, oe = {}, ae = {}, se = {}, ue = {}, ce = {}, le = {}, fe = {}, de = {}, pe = {}, he = {}, ge = {}, me = {}, ye = {}, ve = {}, be = {}, _e = function (e, t, n, i) { var o, a, s, u, c, f = n || J, p = 0, h = "", g = !1, m = !1, y = !1; for ( n || ((e.scheme = ""), (e.username = ""), (e.password = ""), (e.host = null), (e.port = null), (e.path = []), (e.query = null), (e.fragment = null), (e.cannotBeABaseURL = !1), (t = t.replace(R, ""))), t = t.replace(D, ""), o = d(t); p <= o.length; ) { switch (((a = o[p]), f)) { case J: if (!a || !k.test(a)) { if (n) return T; f = te; continue; } (h += a.toLowerCase()), (f = ee); break; case ee: if (a && (E.test(a) || "+" == a || "-" == a || "." == a)) h += a.toLowerCase(); else { if (":" != a) { if (n) return T; (h = ""), (f = te), (p = 0); continue; } if ( n && (W(e) != l(V, h) || ("file" == h && ($(e) || null !== e.port)) || ("file" == e.scheme && !e.host)) ) return; if (((e.scheme = h), n)) return void ( W(e) && V[e.scheme] == e.port && (e.port = null) ); (h = ""), "file" == e.scheme ? (f = de) : W(e) && i && i.scheme == e.scheme ? (f = ne) : W(e) ? (f = ae) : "/" == o[p + 1] ? ((f = re), p++) : ((e.cannotBeABaseURL = !0), e.path.push(""), (f = ye)); } break; case te: if (!i || (i.cannotBeABaseURL && "#" != a)) return T; if (i.cannotBeABaseURL && "#" == a) { (e.scheme = i.scheme), (e.path = i.path.slice()), (e.query = i.query), (e.fragment = ""), (e.cannotBeABaseURL = !0), (f = be); break; } f = "file" == i.scheme ? de : ie; continue; case ne: if ("/" != a || "/" != o[p + 1]) { f = ie; continue; } (f = se), p++; break; case re: if ("/" == a) { f = ue; break; } f = me; continue; case ie: if (((e.scheme = i.scheme), a == r)) (e.username = i.username), (e.password = i.password), (e.host = i.host), (e.port = i.port), (e.path = i.path.slice()), (e.query = i.query); else if ("/" == a || ("\\" == a && W(e))) f = oe; else if ("?" == a) (e.username = i.username), (e.password = i.password), (e.host = i.host), (e.port = i.port), (e.path = i.path.slice()), (e.query = ""), (f = ve); else { if ("#" != a) { (e.username = i.username), (e.password = i.password), (e.host = i.host), (e.port = i.port), (e.path = i.path.slice()), e.path.pop(), (f = me); continue; } (e.username = i.username), (e.password = i.password), (e.host = i.host), (e.port = i.port), (e.path = i.path.slice()), (e.query = i.query), (e.fragment = ""), (f = be); } break; case oe: if (!W(e) || ("/" != a && "\\" != a)) { if ("/" != a) { (e.username = i.username), (e.password = i.password), (e.host = i.host), (e.port = i.port), (f = me); continue; } f = ue; } else f = se; break; case ae: if (((f = se), "/" != a || "/" != h.charAt(p + 1))) continue; p++; break; case se: if ("/" != a && "\\" != a) { f = ue; continue; } break; case ue: if ("@" == a) { g && (h = "%40" + h), (g = !0), (s = d(h)); for (var v = 0; v < s.length; v++) { var b = s[v]; if (":" != b || y) { var _ = Z(b, q); y ? (e.password += _) : (e.username += _); } else y = !0; } h = ""; } else if ( a == r || "/" == a || "?" == a || "#" == a || ("\\" == a && W(e)) ) { if (g && "" == h) return "Invalid authority"; (p -= d(h).length + 1), (h = ""), (f = ce); } else h += a; break; case ce: case le: if (n && "file" == e.scheme) { f = he; continue; } if (":" != a || m) { if ( a == r || "/" == a || "?" == a || "#" == a || ("\\" == a && W(e)) ) { if (W(e) && "" == h) return x; if (n && "" == h && ($(e) || null !== e.port)) return; if ((u = j(e, h))) return u; if (((h = ""), (f = ge), n)) return; continue; } "[" == a ? (m = !0) : "]" == a && (m = !1), (h += a); } else { if ("" == h) return x; if ((u = j(e, h))) return u; if (((h = ""), (f = fe), n == le)) return; } break; case fe: if (!O.test(a)) { if ( a == r || "/" == a || "?" == a || "#" == a || ("\\" == a && W(e)) || n ) { if ("" != h) { var w = parseInt(h, 10); if (w > 65535) return S; (e.port = W(e) && w === V[e.scheme] ? null : w), (h = ""); } if (n) return; f = ge; continue; } return S; } h += a; break; case de: if (((e.scheme = "file"), "/" == a || "\\" == a)) f = pe; else { if (!i || "file" != i.scheme) { f = me; continue; } if (a == r) (e.host = i.host), (e.path = i.path.slice()), (e.query = i.query); else if ("?" == a) (e.host = i.host), (e.path = i.path.slice()), (e.query = ""), (f = ve); else { if ("#" != a) { K(o.slice(p).join("")) || ((e.host = i.host), (e.path = i.path.slice()), X(e)), (f = me); continue; } (e.host = i.host), (e.path = i.path.slice()), (e.query = i.query), (e.fragment = ""), (f = be); } } break; case pe: if ("/" == a || "\\" == a) { f = he; break; } i && "file" == i.scheme && !K(o.slice(p).join("")) && (Y(i.path[0], !0) ? e.path.push(i.path[0]) : (e.host = i.host)), (f = me); continue; case he: if (a == r || "/" == a || "\\" == a || "?" == a || "#" == a) { if (!n && Y(h)) f = me; else if ("" == h) { if (((e.host = ""), n)) return; f = ge; } else { if ((u = j(e, h))) return u; if (("localhost" == e.host && (e.host = ""), n)) return; (h = ""), (f = ge); } continue; } h += a; break; case ge: if (W(e)) { if (((f = me), "/" != a && "\\" != a)) continue; } else if (n || "?" != a) if (n || "#" != a) { if (a != r && ((f = me), "/" != a)) continue; } else (e.fragment = ""), (f = be); else (e.query = ""), (f = ve); break; case me: if ( a == r || "/" == a || ("\\" == a && W(e)) || (!n && ("?" == a || "#" == a)) ) { if ( (".." === (c = (c = h).toLowerCase()) || "%2e." === c || ".%2e" === c || "%2e%2e" === c ? (X(e), "/" == a || ("\\" == a && W(e)) || e.path.push("")) : Q(h) ? "/" == a || ("\\" == a && W(e)) || e.path.push("") : ("file" == e.scheme && !e.path.length && Y(h) && (e.host && (e.host = ""), (h = h.charAt(0) + ":")), e.path.push(h)), (h = ""), "file" == e.scheme && (a == r || "?" == a || "#" == a)) ) for (; e.path.length > 1 && "" === e.path[0]; ) e.path.shift(); "?" == a ? ((e.query = ""), (f = ve)) : "#" == a && ((e.fragment = ""), (f = be)); } else h += Z(a, H); break; case ye: "?" == a ? ((e.query = ""), (f = ve)) : "#" == a ? ((e.fragment = ""), (f = be)) : a != r && (e.path[0] += Z(a, F)); break; case ve: n || "#" != a ? a != r && ("'" == a && W(e) ? (e.query += "%27") : (e.query += "#" == a ? "%23" : Z(a, F))) : ((e.fragment = ""), (f = be)); break; case be: a != r && (e.fragment += Z(a, z)); } p++; } }, we = function (e) { var t, n, r = c(this, we, "URL"), o = arguments.length > 1 ? arguments[1] : void 0, a = String(e), s = b(r, { type: "URL" }); if (void 0 !== o) if (o instanceof we) t = _(o); else if ((n = _e((t = {}), String(o)))) throw TypeError(n); if ((n = _e(s, a, null, t))) throw TypeError(n); var u = (s.searchParams = new m()), l = y(u); l.updateSearchParams(s.query), (l.updateURL = function () { s.query = String(u) || null; }), i || ((r.href = xe.call(r)), (r.origin = Se.call(r)), (r.protocol = ke.call(r)), (r.username = Ee.call(r)), (r.password = Oe.call(r)), (r.host = Ce.call(r)), (r.hostname = Le.call(r)), (r.port = Ae.call(r)), (r.pathname = Ie.call(r)), (r.search = Me.call(r)), (r.searchParams = Pe.call(r)), (r.hash = Re.call(r))); }, Te = we.prototype, xe = function () { var e = _(this), t = e.scheme, n = e.username, r = e.password, i = e.host, o = e.port, a = e.path, s = e.query, u = e.fragment, c = t + ":"; return ( null !== i ? ((c += "//"), $(e) && (c += n + (r ? ":" + r : "") + "@"), (c += U(i)), null !== o && (c += ":" + o)) : "file" == t && (c += "//"), (c += e.cannotBeABaseURL ? a[0] : a.length ? "/" + a.join("/") : ""), null !== s && (c += "?" + s), null !== u && (c += "#" + u), c ); }, Se = function () { var e = _(this), t = e.scheme, n = e.port; if ("blob" == t) try { return new URL(t.path[0]).origin; } catch (e) { return "null"; } return "file" != t && W(e) ? t + "://" + U(e.host) + (null !== n ? ":" + n : "") : "null"; }, ke = function () { return _(this).scheme + ":"; }, Ee = function () { return _(this).username; }, Oe = function () { return _(this).password; }, Ce = function () { var e = _(this), t = e.host, n = e.port; return null === t ? "" : null === n ? U(t) : U(t) + ":" + n; }, Le = function () { var e = _(this).host; return null === e ? "" : U(e); }, Ae = function () { var e = _(this).port; return null === e ? "" : String(e); }, Ie = function () { var e = _(this), t = e.path; return e.cannotBeABaseURL ? t[0] : t.length ? "/" + t.join("/") : ""; }, Me = function () { var e = _(this).query; return e ? "?" + e : ""; }, Pe = function () { return _(this).searchParams; }, Re = function () { var e = _(this).fragment; return e ? "#" + e : ""; }, De = function (e, t) { return { get: e, set: t, configurable: !0, enumerable: !0 }; }; if ( (i && s(Te, { href: De(xe, function (e) { var t = _(this), n = String(e), r = _e(t, n); if (r) throw TypeError(r); y(t.searchParams).updateSearchParams(t.query); }), origin: De(Se), protocol: De(ke, function (e) { var t = _(this); _e(t, String(e) + ":", J); }), username: De(Ee, function (e) { var t = _(this), n = d(String(e)); if (!G(t)) { t.username = ""; for (var r = 0; r < n.length; r++) t.username += Z(n[r], q); } }), password: De(Oe, function (e) { var t = _(this), n = d(String(e)); if (!G(t)) { t.password = ""; for (var r = 0; r < n.length; r++) t.password += Z(n[r], q); } }), host: De(Ce, function (e) { var t = _(this); t.cannotBeABaseURL || _e(t, String(e), ce); }), hostname: De(Le, function (e) { var t = _(this); t.cannotBeABaseURL || _e(t, String(e), le); }), port: De(Ae, function (e) { var t = _(this); G(t) || ("" == (e = String(e)) ? (t.port = null) : _e(t, e, fe)); }), pathname: De(Ie, function (e) { var t = _(this); t.cannotBeABaseURL || ((t.path = []), _e(t, e + "", ge)); }), search: De(Me, function (e) { var t = _(this); "" == (e = String(e)) ? (t.query = null) : ("?" == e.charAt(0) && (e = e.slice(1)), (t.query = ""), _e(t, e, ve)), y(t.searchParams).updateSearchParams(t.query); }), searchParams: De(Pe), hash: De(Re, function (e) { var t = _(this); "" != (e = String(e)) ? ("#" == e.charAt(0) && (e = e.slice(1)), (t.fragment = ""), _e(t, e, be)) : (t.fragment = null); }), }), u( Te, "toJSON", function () { return xe.call(this); }, { enumerable: !0 } ), u( Te, "toString", function () { return xe.call(this); }, { enumerable: !0 } ), a) ) { var je = a.createObjectURL, Ne = a.revokeObjectURL; je && u(we, "createObjectURL", function (e) { return je.apply(a, arguments); }), Ne && u(we, "revokeObjectURL", function (e) { return Ne.apply(a, arguments); }); } n(58003)(we, "URL"), n(82109)({ global: !0, forced: !o, sham: !i }, { URL: we }); }, 83753: function (e, t, n) { "use strict"; n(82109)( { target: "URL", proto: !0, enumerable: !0 }, { toJSON: function () { return URL.prototype.toString.call(this); }, } ); }, 49420: function (e, t, n) { var r = n(13621), i = n(37729), o = n(3724), a = n(15408).type("Any"), s = n(15408).typeFn(a(), 2), u = n(84863), c = n(37356), l = n(36352), f = n(49439), d = function () { return p(!1); }; function p(e) { var t, n = l(e) ? d().valueOf() : e; if (!arguments.length || c(n)) throw new TypeError("Any: Non-function value required"); var r = function () { return !!n; }, h = d, g = function () { return "Any" + i(r()); }, m = function (e) { return f(p, e) && o(n, e.valueOf()); }; function y(e) { return function (t) { if (!f(p, t)) throw new TypeError("Any." + e + ": Any required"); return p(t.valueOf() || r()); }; } return ( ((t = { inspect: g, toString: g, equals: m, valueOf: r, type: a, empty: h, })["@@type"] = s), (t.concat = y("concat")), (t[u.equals] = m), (t[u.concat] = y(u.concat)), (t[u.empty] = h), (t.constructor = p), t ); } (p["@@implements"] = r(["equals", "concat", "empty"])), (p.empty = d), (p.type = a), (p[u.empty] = d), (p["@@type"] = s), (e.exports = p); }, 94066: function (e, t, n) { var r = n(13621), i = n(37729), o = n(15408).type("Async"), a = n(15408).typeFn(o(), 5), s = n(84863), u = n(42319), c = n(89064), l = n(21825), f = n(49177), d = n(33385), p = n(34798), h = n(37356), g = n(65224), m = n(79753), y = n(49439), v = function (e) { return b(function (t, n) { return n(e); }); }; function b(e) { var t; if (!h(e)) throw new TypeError("Async: Function required"); var n = v, r = function () { return "Async" + i(e); }; function u(t, n, r) { if (!h(t) || !h(n)) throw new TypeError( "Async.fork: Reject and resolve functions required" ); var i = !1, o = !1, a = h(r) ? r : f, s = function (e, t) { if (!o) return (o = !0), i ? f() : e(t); }, u = e(s.bind(null, t), s.bind(null, n)), c = h(u) ? u : f; return l(function () { return a((c(), void (i = !0))); }); } function d(e) { return function (t) { if (!h(t)) throw new TypeError("Async." + e + ": Function required"); return b(function (e, n) { return u(e, c(n, t)); }); }; } function p(e) { return function (t, n) { if (!h(t) || !h(n)) throw new TypeError( "Async." + e + ": Functions required for both arguments" ); return b(function (e, r) { return u(c(e, t), c(r, n)); }); }; } function g(e) { return function (t) { if (!y(b, t)) throw new TypeError("Async." + e + ": Async required"); return b(function (e, n) { var r = f, i = f; return ( (r = u(function () { i = t.fork(e, n); }, n)), l(function () { return i(r()); }) ); }); }; } function m(e) { return function (t) { if (!h(t)) throw new TypeError( "Async." + e + ": Async returning function required" ); return b(function (n, r) { var i = f, o = f; return ( (i = u(n, function (i) { var a = t(i); if (!y(b, a)) throw new TypeError( "Async." + e + ": Function must return another Async" ); o = a.fork(n, r); })), l(function () { return o(i()); }) ); }); }; } return ( ((t = { fork: u, toPromise: function () { return new Promise(function (e, t) { u(t, e); }); }, inspect: r, toString: r, type: o, swap: function (e, t) { if (!h(e) || !h(t)) throw new TypeError( "Async.swap: Functions required for both arguments" ); return b(function (n, r) { return u(c(r, e), c(n, t)); }); }, race: function (e) { if (!y(b, e)) throw new TypeError("Async.race: Async required"); return b(function (t, n) { var r = l(function (e, r) { return e ? n(r) : t(r); }), i = r.bind(null, !0), o = r.bind(null, !1), a = u(o, i), s = e.fork(o, i); return function () { a(), s(); }; }); }, coalesce: function (e, t) { if (!h(e) || !h(t)) throw new TypeError( "Async.coalesce: Functions required for both arguments" ); return b(function (n, r) { return u(c(r, e), c(r, t)); }); }, ap: function (e) { if (!y(b, e)) throw new TypeError("Async.ap: Async required"); return b(function (t, n) { var r = null, i = null, o = !1, a = !1, s = !1, f = l(t); function d() { !s && o && a && c(n, r)(i); } var p = u(f, function (e) { if (!h(e)) throw new TypeError( "Async.ap: Wrapped value must be a function" ); (o = !0), (r = e), d(); }), g = e.fork(f, function (e) { (a = !0), (i = e), d(); }); return function () { p(), g(), (s = !0); }; }); }, of: n, alt: g("alt"), bimap: p("bimap"), map: d("map"), chain: m("chain"), bichain: function (e, t) { var n = "Async.bichain: Both arguments must be Async returning functions"; if (!h(e) || !h(t)) throw new TypeError(n); return b(function (r, i) { var o = f, a = f; function s(e) { return function (t) { var o = e(t); if (!y(b, o)) throw new TypeError(n); a = o.fork(r, i); }; } return ( (o = u(s(e), s(t))), l(function () { return a(o()); }) ); }); }, })[s.of] = n), (t[s.alt] = g(s.alt)), (t[s.bimap] = p(s.bimap)), (t[s.map] = d(s.map)), (t[s.chain] = m(s.chain)), (t["@@type"] = a), (t.constructor = b), t ); } (b.of = v), (b.type = o), (b[s.of] = v), (b["@@type"] = a), (b.Rejected = function (e) { return b(function (t) { return t(e); }); }), (b.Resolved = v), (b.fromPromise = function (e) { if (!h(e)) throw new TypeError( "Async.fromPromise: Promise returning function required" ); return function () { var t = arguments; return b(function (n, r) { var i = e.apply(null, t); if (!m(i)) throw new TypeError( "Async.fromPromise: Promise returning function required" ); i.then(r, n); }); }; }), (b.fromNode = function (e, t) { if (!h(e)) throw new TypeError("Async.fromNode: CPS function required"); return function () { for (var n = [], r = arguments.length; r--; ) n[r] = arguments[r]; return b(function (r, i) { e.apply( t, n.concat(function (e, t) { return e ? r(e) : i(t); }) ); }); }; }), (b.all = function (e) { if ( !p(e) || !e.reduce(function (e, t) { return e && y(b, t); }, !0) ) throw new TypeError( "Async.all: Foldable structure of Asyncs required" ); return d(e) ? u.sequence(b.of, e) : e.sequence(b.of); }), (b.rejectAfter = function (e, t) { if (!(g(e) && e >= 0)) throw new TypeError( "Async.rejectAfter: Positive Integer required for first argument" ); return b(function (n) { var r = setTimeout(function () { n(t); }, e); return function () { clearTimeout(r); }; }); }), (b.resolveAfter = function (e, t) { if (!(g(e) && e >= 0)) throw new TypeError( "Async.resolveAfter: Positive Integer required for first argument" ); return b(function (n, r) { var i = setTimeout(function () { r(t); }, e); return function () { clearTimeout(i); }; }); }), (b["@@implements"] = r(["alt", "ap", "bimap", "chain", "map", "of"])), (e.exports = b); }, 72956: function (e, t, n) { var r = n(78310), i = r.Nothing, o = r.Just, a = n(81097), s = n(87201), u = n(89339); e.exports = s(function (e, t) { if (!u(e)) throw new TypeError( "safe: Pred or predicate function required for first argument" ); return a(e, t) ? o(t) : i(); }); }, 83023: function (e, t, n) { var r = n(89064), i = n(87201), o = n(89339), a = n(37356), s = n(72956); e.exports = i(function (e, t) { if (!o(e)) throw new TypeError( "safeLift: Pred or predicate function required for first argument" ); if (!a(t)) throw new TypeError( "safeLift: Function required for second argument" ); return r( (function (e) { return function (t) { return t.map(e); }; })(t), s(e) ); }); }, 68621: function (e, t, n) { var r = n(14917), i = n(87201), o = n(60280), a = n(37356), s = n(49439), u = n(92715); e.exports = i(function (e, t) { if (a(e) && a(t)) return function (n) { return r(e(n), t(n)); }; if (s((n = e), t) && u(n) && o(n) && a(n.first) && a(n.second)) return e .first() .compose(t.second()) .contramap(function (e) { return r(e, e); }); var n; throw new TypeError( "fanout: Arrows, Functions or Stars of the same type required for both arguments" ); }); }, 56169: function (e, t, n) { e.exports = n(5655); }, 98038: function (e, t, n) { var r = n(87201), i = n(37356); e.exports = r(function (e, t) { if (!i(t)) throw new TypeError("applyTo: Function required for second argument"); return t(e); }); }, 23385: function (e, t, n) { var r = n(87201), i = n(37356); e.exports = r(function (e, t, n, o) { if (!i(e) || !i(t) || !i(n)) throw new TypeError( "converge: Functions required for first three arguments" ); return r(e)(t(o), n(o)); }); }, 9730: function (e, t, n) { var r = n(87201), i = n(37356); e.exports = r(function (e, t, n) { if (!i(e)) throw new TypeError("flip: Function required for first argument"); return r(e)(n, t); }); }, 60740: function (e) { e.exports = function (e) { return e; }; }, 47088: function (e, t, n) { var r = n(87201), i = n(37356); e.exports = r(function (e, t, n) { if (!i(e) || !i(t)) throw new TypeError( "substitution: Functions required for first two arguments" ); return r(e)(n, t(n)); }); }, 78310: function (e, t, n) { var r = n(55841), i = n(3724), o = n(13621), a = n(41519), s = n(37729), u = n(15408).type("Maybe"), c = n(15408).typeFn(u(), 4), l = n(84863), f = n(68534), d = n(89064), p = n(38142), h = n(15909), g = n(33385), m = n(37356), y = n(49439), v = function (e) { return function () { return e; }; }, b = function (e) { return e; }, _ = r({ Nothing: [], Just: ["a"] }), w = _.Nothing, T = _.Just; (E.Nothing = d(E, w)), (E.Just = d(E, T)); var x = d(E, T), S = d(E, w); function k(e) { if (!h(e) && !g(e)) throw new TypeError("Maybe.sequence: Must wrap an Apply"); return e.map(x); } function E(e) { var t; if (!arguments.length) throw new TypeError( "Maybe: Must wrap something, try using Nothing or Just constructors" ); var n = _.includes(e) ? e : T(e), r = x, o = S, w = function (e) { return L(v(e), b); }, O = function (e) { return ( y(E, e) && L(v(e.either(v(!0), v(!1))), function (t) { return e.either(v(!1), function (e) { return i(e, t); }); }) ); }, C = function () { return L(v("Nothing"), function (e) { return "Just" + s(e); }); }; function L(e, t) { if (!m(e) || !m(t)) throw new TypeError( "Maybe.either: Requires both left and right functions" ); return _.caseOf({ Nothing: e, Just: t }, n); } function A(e) { return function (t) { if (!y(E, t)) throw new TypeError( "Maybe." + e + ": Maybe of Semigroup required" ); return L(E.Nothing, a("Maybe." + e, t)); }; } function I(e, t) { if (!m(e) || !m(t)) throw new TypeError( "Maybe.coalesce: Requires both left and right functions" ); return E.Just(L(e, t)); } function M(e, t) { var n = "Maybe.bichain: Both arguments must be Maybe returning functions"; if (!m(e) || !m(t)) throw new TypeError(n); var r = L(e, t); if (!y(E, r)) throw new TypeError(n); return r; } function P(e) { return function (t) { if (!m(t)) throw new TypeError("Maybe." + e + ": Function required"); return L(E.Nothing, d(E.Just, t)); }; } function R(e) { return function (t) { if (!y(E, t)) throw new TypeError("Maybe." + e + ": Maybe required"); return L(v(t), E.Just); }; } function D(e) { var t = w(v(void 0)); if (!m(t)) throw new TypeError("Maybe.ap: Wrapped value must be a function"); if (!y(E, e)) throw new TypeError("Maybe.ap: Maybe required"); return L(E.Nothing, e.map); } function j(e) { return function (t) { if (!m(t)) throw new TypeError("Maybe." + e + ": Function required"); var n = L(E.Nothing, t); if (!y(E, n)) throw new TypeError( "Maybe." + e + ": Function must return a Maybe" ); return n; }; } function N(e) { if (!p(e) && !m(e)) throw new TypeError( "Maybe.sequence: Applicative TypeRep or Apply returning function required" ); var t = f(e); return L(d(t, E.Nothing), k); } function B(e, t) { if (!p(e) && !m(e)) throw new TypeError( "Maybe.traverse: Applicative TypeRep or Apply returning function required for first argument" ); if (!m(t)) throw new TypeError( "Maybe.traverse: Apply returning function required for second argument" ); var n = f(e), r = L(d(n, E.Nothing), t); if (!h(r) && !g(r)) throw new TypeError( "Maybe.traverse: Both functions must return an Apply of the same type" ); return L(v(r), v(r.map(x))); } return ( ((t = { inspect: C, toString: C, either: L, option: w, type: u, equals: O, bichain: M, coalesce: I, zero: o, ap: D, of: r, sequence: N, traverse: B, alt: R("alt"), chain: j("chain"), concat: A("concat"), map: P("map"), })[l.zero] = o), (t[l.of] = r), (t[l.equals] = O), (t[l.alt] = R(l.alt)), (t[l.concat] = A(l.concat)), (t[l.map] = P(l.map)), (t[l.chain] = j(l.chain)), (t["@@type"] = c), (t.constructor = E), t ); } (E.of = x), (E.zero = S), (E.type = u), (E[l.of] = x), (E[l.zero] = S), (E["@@type"] = c), (E["@@implements"] = o([ "alt", "ap", "chain", "concat", "equals", "map", "of", "traverse", "zero", ])), (e.exports = E); }, 14917: function (e, t, n) { var r = n(3724), i = n(13621), o = n(37729), a = n(15408).type("Pair"), s = n(15408).typeFn(a(), 4), u = n(84863), c = n(38142), l = n(15909), f = n(33385), d = n(37356), p = n(49439), h = n(32105); function g(e, t) { var n; if (arguments.length < 2) throw new TypeError("Pair: Must provide a first and second value"); var i = function () { return e; }, m = function () { return t; }, y = function () { return "Pair(" + o(e) + "," + o(t) + " )"; }, v = function () { return [e, t]; }; function b(e) { if (!d(e)) throw new TypeError("Pair.merge: Binary function required"); return e(i(), m()); } function _(e) { return p(g, e) && r(e.fst(), i()) && r(e.snd(), m()); } function w(e) { return function (t) { if (!p(g, t)) throw new TypeError("Pair." + e + ": Pair required"); var n = i(), r = m(), o = t.fst(), a = t.snd(); if (!h(n) || !h(r)) throw new TypeError( "Pair." + e + ": Both Pairs must contain Semigroups of the same type" ); if (!p(n, o) || !p(r, a)) throw new TypeError( "Pair." + e + ": Both Pairs must contain Semigroups of the same type" ); return g(n.concat(o), r.concat(a)); }; } function T(n, r) { if (!d(n) || !d(r)) throw new TypeError( "Pair.swap: Requires both left and right functions" ); return g(r(t), n(e)); } function x(n) { return function (r) { if (!d(r)) throw new TypeError("Pair." + n + ": Function required"); return g(e, r(t)); }; } function S(n) { return function (r, i) { if (!d(r) || !d(i)) throw new TypeError( "Pair." + n + ": Function required for both arguments" ); return g(r(e), i(t)); }; } function k(e) { if (!p(g, e)) throw new TypeError("Pair.ap: Pair required"); var t = m(); if (!d(t)) throw new TypeError("Pair.ap: Function required for second value"); var n = i(), r = e.fst(); if (!h(n) || !p(n, r)) throw new TypeError( "Pair.ap: Semigroups of the same type is required for first values" ); return g(n.concat(r), t(e.snd())); } function E(e) { return function (t) { var n = i(); if (!d(t)) throw new TypeError("Pair." + e + ": Function required"); if (!h(n)) throw new TypeError( "Pair." + e + ": Semigroups of the same type required for first values" ); var r = t(m()); if (!p(g, r)) throw new TypeError( "Pair." + e + ": Function must return a Pair" ); var o = r.fst(); if (!p(n, o)) throw new TypeError( "Pair." + e + ": Semigroups of the same type required for first values" ); return g(n.concat(o), r.snd()); }; } function O(n) { if (!c(n) && !d(n)) throw new TypeError( "Pair.sequence: Applicative TypeRep or Apply returning function required" ); if (!l(t) && !f(t)) throw new TypeError( "Pair.sequence: Must wrap an Apply in the second" ); return t.map(function (t) { return g(e, t); }); } function C(n, r) { if (!c(n) && !d(n)) throw new TypeError( "Pair.traverse: Applicative TypeRep or Apply returning function required for first argument" ); if (!d(r)) throw new TypeError( "Pair.traverse: Apply returning function required for second argument" ); var i = r(t); if (!l(i) && !f(i)) throw new TypeError( "Pair.traverse: Both functions must return an Apply of the same type" ); return i.map(function (t) { return g(e, t); }); } function L(n) { return function (r) { if (!d(r)) throw new TypeError("Pair." + n + ": Function required"); return g(e, r(g(e, t))); }; } return ( ((n = { inspect: y, toString: y, fst: i, snd: m, toArray: v, type: a, merge: b, equals: _, swap: T, ap: k, sequence: O, traverse: C, concat: w("concat"), map: x("map"), bimap: S("bimap"), chain: E("chain"), extend: L("extend"), })[u.equals] = _), (n[u.concat] = w(u.concat)), (n[u.map] = x(u.map)), (n[u.bimap] = S(u.bimap)), (n[u.chain] = E(u.chain)), (n[u.extend] = L(u.extend)), (n["@@type"] = s), (n.constructor = g), n ); } (g.type = a), (g["@@type"] = s), (g["@@implements"] = i([ "ap", "bimap", "chain", "concat", "extend", "equals", "map", "traverse", ])), (e.exports = g); }, 5655: function (e, t, n) { var r = n(13621), i = n(37729), o = n(15408).type("Pred"), a = n(15408).typeFn(o(), 2), s = n(84863), u = n(89064), c = n(37356), l = n(49439), f = function () { return d(function () { return !0; }); }; function d(e) { var t; if (!c(e)) throw new TypeError("Pred: Predicate function required"); var n = function (t) { return !!e(t); }, r = function () { return "Pred" + i(n); }, p = f; function h(e) { return function (t) { if (!l(d, t)) throw new TypeError("Pred." + e + ": Pred required"); return d(function (e) { return !!n(e) && !!t.runWith(e); }); }; } function g(e) { return function (t) { if (!c(t)) throw new TypeError("Pred." + e + ": Function required"); return d(u(n, t)); }; } return ( ((t = { inspect: r, toString: r, runWith: n, type: o, valueOf: function () { return n; }, empty: p, concat: h("concat"), contramap: g("contramap"), })[s.empty] = p), (t[s.concat] = h(s.concat)), (t[s.contramap] = g(s.contramap)), (t["@@type"] = a), (t.constructor = d), t ); } (d.empty = f), (d.type = o), (d[s.empty] = f), (d["@@type"] = a), (d["@@implements"] = r(["concat", "contramap", "empty"])), (e.exports = d); }, 49177: function (e) { e.exports = Function.prototype; }, 68534: function (e, t, n) { var r = n(38142), i = n(55881); e.exports = function (e) { return function (t) { return r(e) ? e.of(t) : i(Array, e) ? [t] : e(t); }; }; }, 42319: function (e, t, n) { var r = n(15909), i = n(33385), o = n(84926), a = n(37356), s = n(49439), u = n(32105), c = n(68534), l = function (e) { return e; }, f = function (e) { return function (t) { return e.concat(t); }; }; function d(e, t) { return function (n, o) { var a = t(o); if ((!r(n) && !i(n)) || !s(n, a)) throw new TypeError( "Array." + e + ": Must wrap Applys of the same type" ); return i(a) ? h( n, p(function (e) { return f([e]); }, a) ) : a .map(function (e) { return f([e]); }) .ap(n); }; } var p = function (e, t) { return t.map(function (t) { return e(t); }); }; function h(e, t) { if ( !t.length || !t.reduce(function (e, t) { return e && a(t); }, !0) ) throw new TypeError("Array.ap: Second Array must all be functions"); return t.reduce(function (t, n) { return t.concat(p(n, e)); }, []); } e.exports = { ap: h, chain: function (e, t) { return t.reduce(function (t, n) { var r = e(n); if (!i(r)) throw new TypeError("Array.chain: Function must return an Array"); return t.concat(r); }, []); }, fold: function (e) { if (o(e)) throw new TypeError( "Array.fold: Non-empty Array of Semigroups required" ); var t = e[0]; if (!u(t)) throw new TypeError( "Array.fold: Must contain Semigroups of the same type" ); return e.reduce(function (e, t) { if (!s(e, t)) throw new TypeError( "Array.fold: Must contain Semigroups of the same type" ); return e.concat(t); }); }, foldMap: function (e, t) { if (o(t)) throw new TypeError("Array.foldMap: Non-empty Array required"); var n = e(t[0]); if (!u(n)) throw new TypeError( "Array.foldMap: Provided function must return Semigroups of the same type" ); return 1 === t.length ? n : t.slice(1).reduce(function (t, n) { var r = e(n); if (!s(t, r) || !u(r)) throw new TypeError( "Array.foldMap: Provided function must return Semigroups of the same type" ); return t.concat(r); }, n); }, map: p, sequence: function (e, t) { var n = c(e); return t.reduceRight(d("sequence", l), n([])); }, set: function (e, t, n) { var r = n.slice(); return (r[e] = t), r; }, traverse: function (e, t, n) { var r = c(e); return n.reduceRight(d("traverse", t), r([])); }, unset: function (e, t) { return t.slice(0, e).concat(t.slice(e + 1)); }, }; }, 89064: function (e) { e.exports = function (e, t) { return function (n) { return e(t(n)); }; }; }, 87201: function (e, t, n) { var r = n(37356), i = "@@crocks/curried"; function o(e, t) { return r(e) ? (e.length > 1 ? e.bind(null, t) : e.call(null, t)) : e; } e.exports = function e(t) { if (t[i]) return t; function n() { for (var n = [], i = arguments.length; i--; ) n[i] = arguments[i]; var a = n.length ? n : [void 0]; if (a.length < t.length) return e(Function.bind.apply(t, [null].concat(a))); var s = a.length === t.length ? t.apply(null, a) : a.reduce(o, t); return r(s) ? e(s) : s; } return ( Object.defineProperty(n, i, { enumerable: !1, writable: !1, value: !0, }), n ); }; }, 55841: function (e, t, n) { var r = n(87201), i = n(33385), o = n(84926), a = n(37356), s = n(77531), u = n(84340), c = function (e) { return function () { return e; }; }; function l(e) { return function (t, n) { var r = n.tag, i = e[r()].reduce(function (e, t) { return e.concat([n[t].value()]); }, []); return t[r()].apply(null, i); }; } var f = function (e) { return function (t) { return !!t && a(t.tag) && -1 !== Object.keys(e).indexOf(t.tag()); }; }; e.exports = function (e) { if (!s(e) || o(e)) throw new TypeError( "defineUnion: Argument must be an Object containing definition lists" ); return Object.keys(e).reduce( function (t, n) { var r = e[n]; if ( !i(r) || !r.reduce(function (e, t) { return ( e && (function (e) { return u(e) && e.length; })(t) ); }, !0) ) throw new TypeError( "defineUnion: Definitions must be a list of non-empty string identifiers" ); return ( (t[n] = (function (e, t) { return function () { for (var n = [], r = arguments.length; r--; ) n[r] = arguments[r]; return e.reduce( function (e, t, r) { return (e[t] = { value: c(n[r]) }), e; }, { tag: c(t) } ); }; })(r, n)), t ); }, { caseOf: r(l(e)), includes: r(f(e)) } ); }; }, 3724: function (e, t, n) { var r = n(49439), i = n(64803), o = n(4828), a = n(66130), s = n(84863), u = function (e, t) { return e.valueOf() === t.valueOf(); }, c = { Array: function (e, t) { return e.length === t.length && l(e, t); }, Date: function (e, t) { return i(e.valueOf(), t.valueOf()); }, Error: function (e, t) { return e.name === t.name && e.message === t.message; }, Object: function (e, t) { return Object.keys(e).length === Object.keys(t).length && l(e, t); }, RegExp: function (e, t) { return ( e.source === t.source && e.ignoreCase === t.ignoreCase && e.global === t.global && e.multiline === t.multiline && e.unicode === t.unicode ); }, }; function l(e, t) { for (var n in e) if (!f(e[n], t[n])) return !1; return !0; } function f(e, t) { return ( !!i(e, t) || (!!r(e, t) && (o("equals", e) ? (t[s.equals] || t.equals).call(t, e) : (c[a(e)] || u)(e, t))) ); } e.exports = f; }, 84863: function (e) { e.exports = { alt: "fantasy-land/alt", bimap: "fantasy-land/bimap", chain: "fantasy-land/chain", compose: "fantasy-land/compose", concat: "fantasy-land/concat", contramap: "fantasy-land/contramap", empty: "fantasy-land/empty", equals: "fantasy-land/equals", extend: "fantasy-land/extend", filter: "fantasy-land/filter", id: "fantasy-land/id", map: "fantasy-land/map", of: "fantasy-land/of", promap: "fantasy-land/promap", reduce: "fantasy-land/reduce", zero: "fantasy-land/zero", }; }, 4828: function (e, t, n) { var r = n(37356), i = n(84863); e.exports = function (e, t) { return ( !!t && ((function (e, t) { return r(t[i[e]]) || r(t[e]); })(e, t) || (function (e, t) { return r(t["@@implements"]) && !!t["@@implements"](e); })(e, t)) ); }; }, 13621: function (e) { e.exports = function (e) { return function (t) { return -1 !== e.indexOf(t); }; }; }, 41519: function (e, t, n) { var r = n(49439), i = n(32105); e.exports = function (e, t) { return function (n) { if (!i(n)) throw new TypeError( e + ": Both containers must contain Semigroups of the same type" ); return t.map(function (t) { if (!r(n, t)) throw new TypeError( e + ": Both containers must contain Semigroups of the same type" ); return n.concat(t); }); }; }; }, 37729: function (e, t, n) { var r = n(33385), i = n(37356), o = n(77531), a = n(84340), s = n(22296), u = n(10757); function c(e) { return e && i(e.inspect) ? " " + e.inspect() : i(e) ? " Function" : r(e) ? " [" + (((t = e).length ? t.map(c).reduce(function (e, t) { return e + "," + t; }) : t) + " ]") : o(e) ? " { " + Object.keys(e) .reduce(function (t, n) { return t.concat([n + ":" + c(e[n])]); }, []) .join(", ") + " }" : a(e) ? ' "' + e + '"' : s(e) || u(e) ? " " + e.toString() : " " + e; var t; } e.exports = c; }, 38142: function (e, t, n) { var r = n(4828), i = n(15909); e.exports = function (e) { return i(e) && (r("of", e) || r("of", e.constructor)); }; }, 15909: function (e, t, n) { var r = n(4828), i = n(13264); e.exports = function (e) { return i(e) && r("ap", e); }; }, 33385: function (e) { e.exports = function (e) { return Array.isArray(e); }; }, 83317: function (e, t, n) { var r = n(4828), i = n(13264); e.exports = function (e) { return i(e) && r("bimap", e); }; }, 47455: function (e, t, n) { var r = n(4828), i = n(15909); e.exports = function (e) { return i(e) && r("chain", e); }; }, 60280: function (e, t, n) { var r = n(4828); e.exports = function (e) { return !!e && r("contramap", e); }; }, 10757: function (e) { e.exports = function (e) { return ( "[object Date]" === Object.prototype.toString.apply(e) && !isNaN(e.valueOf()) ); }; }, 84926: function (e, t, n) { var r = n(77531), i = n(52803), o = n(3724), a = n(84863); e.exports = function (e) { if (i(e)) { var t = e.constructor[a.empty] || e.constructor.empty || e.empty; return o(e, t()); } return r(e) ? !Object.keys(e).length : !e || void 0 === e.length || !e.length; }; }, 34798: function (e, t, n) { var r = n(4828); e.exports = function (e) { return !!e && r("reduce", e); }; }, 37356: function (e) { e.exports = function (e) { return "function" == typeof e; }; }, 13264: function (e, t, n) { var r = n(4828); e.exports = function (e) { return !!e && r("map", e); }; }, 65224: function (e, t, n) { var r = n(19724); e.exports = function (e) { return r(e) && isFinite(e) && Math.floor(e) === e; }; }, 52803: function (e, t, n) { var r = n(4828), i = n(32105); e.exports = function (e) { return i(e) && (r("empty", e) || r("empty", e.constructor)); }; }, 36352: function (e) { e.exports = function (e) { return null == e || e != e; }; }, 19724: function (e) { e.exports = function (e) { return "number" == typeof e && !isNaN(e); }; }, 77531: function (e) { var t = Object.prototype.toString; e.exports = function (e) { return !!e && "[object Object]" === t.call(e); }; }, 89339: function (e, t, n) { var r = n(15408).proxy("Pred"), i = n(37356), o = n(49439); e.exports = function (e) { return i(e) || o(r, e); }; }, 79753: function (e, t, n) { var r = n(37356); e.exports = function (e) { return !!e && r(e.then) && r(e.catch); }; }, 64803: function (e) { e.exports = function (e, t) { return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t; }; }, 49439: function (e, t, n) { var r = n(87201), i = n(37356), o = n(66130); e.exports = r(function (e, t) { var n = o(e), r = o(t); return n === r || (i(e) && e.name === r) || (i(t) && t.name === n); }); }, 32105: function (e, t, n) { var r = n(84340), i = n(4828); e.exports = function (e) { return r(e) || (!!e && i("concat", e)); }; }, 92715: function (e, t, n) { var r = n(4828); e.exports = function (e) { return !!e && r("compose", e); }; }, 84340: function (e) { e.exports = function (e) { return "string" == typeof e; }; }, 22296: function (e) { e.exports = function (e) { return "symbol" == typeof e; }; }, 55881: function (e, t, n) { var r = n(37356); e.exports = function (e, t) { return r(t) && (e === t || e.name === t.name); }; }, 32271: function (e, t, n) { var r = n(89064); e.exports = function (e, t, n) { return n.reduce( ((i = r(e, t)), function (e, t) { return e.concat(i(t)); }), e.empty() ); var i; }; }, 50694: function (e) { function t(e) { return function (t, n) { var r = e[n]; return void 0 !== r && (t[n] = r), t; }; } function n(e, n) { var r = Object.keys(n).reduce(t(n), {}); return Object.keys(e).reduce(t(e), r); } e.exports = { assign: n, filter: function (e, t) { return Object.keys(t).reduce(function (n, r) { return e(t[r]) && (n[r] = t[r]), n; }, {}); }, map: function (e, t) { return Object.keys(t).reduce(function (n, r) { return (n[r] = e(t[r])), n; }, {}); }, set: function (e, t, r) { var i; return n((((i = {})[e] = t), i), r); }, unset: function (e, t) { return Object.keys(t).reduce(function (n, r) { return void 0 !== t[r] && r !== e && (n[r] = t[r]), n; }, {}); }, }; }, 21825: function (e) { e.exports = function (e) { var t, n; return function () { return t || ((t = !0), (n = e.apply(null, arguments))), n; }; }; }, 81097: function (e, t, n) { var r = n(37356); e.exports = function (e, t) { return r(e) ? e(t) : e.runWith(t); }; }, 66130: function (e, t, n) { var r = n(37356); e.exports = function (e) { return e && r(e.type) ? e.type() : {}.toString.call(e).slice(8, -1); }; }, 15408: function (e) { var t = { unk: function () { return "unknown"; }, All: function () { return "All"; }, Any: function () { return "Any"; }, Arrow: function () { return "Arrow"; }, Assign: function () { return "Assign"; }, Async: function () { return "Async"; }, Const: function (e) { return "Const(" + e + ")"; }, Either: function () { return "Either"; }, Endo: function () { return "Endo"; }, Equiv: function () { return "Equiv"; }, First: function () { return "First"; }, Identity: function () { return "Identity"; }, IO: function () { return "IO"; }, Last: function () { return "Last"; }, List: function () { return "List"; }, Max: function () { return "Max"; }, Maybe: function () { return "Maybe"; }, Min: function () { return "Min"; }, Pair: function () { return "Pair"; }, Pred: function () { return "Pred"; }, Prod: function () { return "Prod"; }, Reader: function () { return "Reader"; }, Result: function () { return "Result"; }, Star: function () { return "Star"; }, State: function () { return "State"; }, Sum: function () { return "Sum"; }, Tuple: function (e) { return e + "-Tuple"; }, Unit: function () { return "Unit"; }, Writer: function () { return "Writer"; }, }, n = function (e) { return t[e] || t.unk; }; e.exports = { proxy: function (e, t) { return { type: function () { return n(e)(t); }, }; }, type: n, typeFn: function (e, t, r) { return "crocks/" + n(e)(r) + "@" + (t || 0); }, }; }, 92373: function (e, t, n) { var r = n(87201), i = n(77531), o = n(50694); e.exports = r(function (e, t) { if (!i(e) || !i(t)) throw new TypeError("assign: Objects required for both arguments"); return o.assign(e, t); }); }, 16896: function (e, t, n) { var r = n(94709); e.exports = r.origFn("assoc"); }, 30269: function (e, t, n) { var r = n(37356), i = "compose: Functions required"; function o(e, t) { if (!r(t)) throw new TypeError(i); return function () { for (var n = [], r = arguments.length; r--; ) n[r] = arguments[r]; return t.call(null, e.apply(null, n)); }; } e.exports = function () { for (var e = [], t = arguments.length; t--; ) e[t] = arguments[t]; if (!arguments.length) throw new TypeError(i); var n = e.slice().reverse(), a = n[0]; if (!r(a)) throw new TypeError(i); var s = n.slice(1).concat(function (e) { return e; }); return s.reduce(o, a); }; }, 32207: function (e, t, n) { var r = n(87201), i = n(37356); e.exports = function (e) { if (!i(e)) throw new TypeError("curry: Function required"); return r(e); }; }, 54547: function (e, t, n) { var r = n(87201), i = n(34798), o = n(37356), a = n(52803), s = n(32271); e.exports = r(function (e, t, n) { if (!a(e)) throw new TypeError("mreduceMap: Monoid required for first argument"); if (!o(t)) throw new TypeError( "mreduceMap: Function required for second argument" ); if (!i(n)) throw new TypeError( "mreduceMap: Foldable required for third argument" ); return s(e, t, n).valueOf(); }); }, 74646: function (e, t, n) { var r = n(87201), i = n(34798), o = n(77531); e.exports = r(function (e, t) { if (!i(e)) throw new TypeError("omit: Foldable required for first argument"); if (!o(t)) throw new TypeError("omit: Object required for second argument"); return Object.keys(t).reduce( (function (e, t) { return function (n, r) { var i; return -1 === e.indexOf(r) && void 0 !== t[r] ? Object.assign(n, (((i = {})[r] = t[r]), i)) : n; }; })(e, t), {} ); }); }, 94709: function (e, t, n) { var r = n(87201), i = n(33385), o = n(65224), a = n(77531), s = n(84340), u = n(42319), c = n(50694); function l(e) { return r(function (t, n, r) { if (a(r)) { if (s(t)) return c.set(t, n, r); throw new TypeError( e + ": String required for first argument when third argument is an Object" ); } if (i(r)) { if (o(t) && t >= 0) return u.set(t, n, r); throw new TypeError( e + ": Positive Integer required for first argument when third argument is an Array" ); } throw new TypeError( e + ": Object or Array required for third argument" ); }); } var f = l("setProp"); (f.origFn = l), (e.exports = f); }, 55130: function (e, t, n) { var r = n(87201), i = n(89339), o = n(81097); e.exports = r(function (e, t) { if (!i(e) || !i(t)) throw new TypeError( "and: Preds or predicate functions required for first two arguments" ); return function (n) { return !(!o(e, n) || !o(t, n)); }; }); }, 99325: function (e, t, n) { var r = n(87201), i = n(89339), o = n(81097); e.exports = r(function (e, t) { if (!i(e)) throw new TypeError( "not: Pred or predicate function required for first argument" ); return !o(e, t); }); }, 79963: function (e, t, n) { var r = n(87201), i = n(89339), o = n(81097); e.exports = r(function (e, t) { if (!i(e) || !i(t)) throw new TypeError( "or: Preds or predicate functions required for first two arguments" ); return function (n) { return !(!o(e, n) && !o(t, n)); }; }); }, 99993: function (e, t, n) { var r = n(87201), i = n(83317), o = n(37356), a = n(84863); e.exports = r(function (e, t, n) { if (!o(e) || !o(t)) throw new TypeError( "bimap: Functions required for first two arguments" ); if (!i(n)) throw new TypeError("bimap: Bifunctor required for third argument"); return (n[a.bimap] || n.bimap).call(n, e, t); }); }, 85745: function (e, t, n) { var r = n(42319).chain, i = n(87201), o = n(33385), a = n(47455), s = n(37356), u = n(84863); e.exports = i(function (e, t) { if (!s(e)) throw new TypeError( "chain: Chain returning function required for first argument" ); if (!a(t) && !o(t)) throw new TypeError( "chain: Chain of the same type required for second argument" ); return o(t) ? r(e, t) : (t[u.chain] || t.chain).call(t, e); }); }, 46164: function (e, t, n) { var r = n(87201), i = n(49439), o = n(32105), a = n(84863); e.exports = r(function (e, t) { if (!o(t) || !i(e, t)) throw new TypeError( "concat: Semigroups of the same type required for both arguments" ); return (t[a.concat] || t.concat).call(t, e); }); }, 69879: function (e, t, n) { var r = n(89064), i = n(87201), o = n(37356), a = n(60280), s = n(84863); e.exports = i(function (e, t) { if (!o(e)) throw new TypeError( "contramap: Function required for first argument" ); if (o(t)) return r(t, e); if (a(t)) return (t[s.contramap] || t.contramap).call(t, e); throw new TypeError( "contramap: Function or Contavariant Functor of the same type required for second argument" ); }); }, 33796: function (e, t, n) { var r = n(89064), i = n(87201), o = n(33385), a = n(77531), s = n(37356), u = n(13264), c = n(42319), l = n(50694), f = n(84863); e.exports = i(function (e, t) { if (!s(e)) throw new TypeError("map: Function required for first argument"); if (s(t)) return r(e, t); if (o(t)) return c.map(e, t); if (t && u(t)) return (t[f.map] || t.map).call(t, e); if (a(t)) return l.map(e, t); throw new TypeError( "map: Object, Function or Functor of the same type required for second argument" ); }); }, 4549: function (e, t, n) { var r = n(87201), i = n(37356); e.exports = r(function (e, t) { if (!i(e)) throw new TypeError("merge: Function required for first argument"); if (!t || !i(t.merge)) throw new TypeError( "merge: Pair or Tuple required for second argument" ); return t.merge(e); }); }, 52788: function (e, t, n) { var r = n(87201), i = n(37356); e.exports = r(function (e, t) { if (!t || !i(t.option)) throw new TypeError( "option: Last argument must be a Maybe, First or Last" ); return t.option(e); }); }, 9386: function (e, t, n) { var r = n(87201), i = n(34798), o = n(37356), a = n(84863); e.exports = r(function (e, t, n) { if (!o(e)) throw new TypeError("reduce: Function required for first argument"); if (!i(n)) throw new TypeError("reduce: Foldable required for third argument"); return (n[a.reduce] || n.reduce).call(n, e, t); }); }, 93530: function (e, t, n) { e.exports = n(33385); }, 53485: function (e, t, n) { e.exports = n(84926); }, 7578: function (e, t, n) { e.exports = n(37356); }, 99062: function (e, t, n) { e.exports = n(36352); }, 59837: function (e, t, n) { e.exports = n(19724); }, 27632: function (e, t, n) { e.exports = n(77531); }, 47392: function (e, t, n) { e.exports = n(84340); }, 9449: function (e) { !(function (t) { "use strict"; var n = 0, r = Math.pow(36, 4), i = function (e, t) { var n = "000000000" + e; return n.substr(n.length - t); }, o = function () { return i(((Math.random() * r) << 0).toString(36), 4); }, a = function () { return (n = n < r ? n : 0), ++n - 1; }, s = function () { var e = new Date().getTime().toString(36), t = s.fingerprint(), n = o() + o(); return "c" + e + i(a().toString(36), 4) + t + n; }; (s.slug = function () { var e, t = new Date().getTime().toString(36), n = s.fingerprint().slice(0, 1) + s.fingerprint().slice(-1), r = o().slice(-2); return (e = a().toString(36).slice(-4)), t.slice(-2) + e + n + r; }), (s.globalCount = function () { var e = (function () { var e, t = 0; for (e in window) t++; return t; })(); return ( (s.globalCount = function () { return e; }), e ); }), (s.fingerprint = function () { return i( ( navigator.mimeTypes.length + navigator.userAgent.length ).toString(36) + s.globalCount().toString(36), 4 ); }), t.register ? t.register("cuid", s) : (e.exports = s); })(this.applitude || this); }, 46138: function (e, t, n) { var r = n(53850), i = n(45863), o = n(69933); (o.elementNames.__proto__ = null), (o.attributeNames.__proto__ = null); var a = { __proto__: null, style: !0, script: !0, xmp: !0, iframe: !0, noembed: !0, noframes: !0, plaintext: !0, noscript: !0, }; var s = { __proto__: null, area: !0, base: !0, basefont: !0, br: !0, col: !0, command: !0, embed: !0, frame: !0, hr: !0, img: !0, input: !0, isindex: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0, }, u = (e.exports = function (e, t) { Array.isArray(e) || e.cheerio || (e = [e]), (t = t || {}); for (var n = "", i = 0; i < e.length; i++) { var o = e[i]; "root" === o.type ? (n += u(o.children, t)) : r.isTag(o) ? (n += l(o, t)) : o.type === r.Directive ? (n += f(o)) : o.type === r.Comment ? (n += h(o)) : o.type === r.CDATA ? (n += p(o)) : (n += d(o, t)); } return n; }), c = [ "mi", "mo", "mn", "ms", "mtext", "annotation-xml", "foreignObject", "desc", "title", ]; function l(e, t) { "foreign" === t.xmlMode && ((e.name = o.elementNames[e.name] || e.name), e.parent && c.indexOf(e.parent.name) >= 0 && (t = Object.assign({}, t, { xmlMode: !1 }))), !t.xmlMode && ["svg", "math"].indexOf(e.name) >= 0 && (t = Object.assign({}, t, { xmlMode: "foreign" })); var n = "<" + e.name, r = (function (e, t) { if (e) { var n, r = ""; for (var a in e) (n = e[a]), r && (r += " "), "foreign" === t.xmlMode && (a = o.attributeNames[a] || a), (r += a), ((null !== n && "" !== n) || t.xmlMode) && (r += '="' + (t.decodeEntities ? i.encodeXML(n) : n.replace(/\"/g, """)) + '"'); return r; } })(e.attribs, t); return ( r && (n += " " + r), !t.xmlMode || (e.children && 0 !== e.children.length) ? ((n += ">"), e.children && (n += u(e.children, t)), (s[e.name] && !t.xmlMode) || (n += "")) : (n += "/>"), n ); } function f(e) { return "<" + e.data + ">"; } function d(e, t) { var n = e.data || ""; return ( !t.decodeEntities || (e.parent && e.parent.name in a) || (n = i.encodeXML(n)), n ); } function p(e) { return ""; } function h(e) { return "\x3c!--" + e.data + "--\x3e"; } }, 53850: function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isTag = function (e) { return "tag" === e.type || "script" === e.type || "style" === e.type; }), (t.Text = "text"), (t.Directive = "directive"), (t.Comment = "comment"), (t.Script = "script"), (t.Style = "style"), (t.Tag = "tag"), (t.CDATA = "cdata"), (t.Doctype = "doctype"); }, 64431: function (e) { e.exports = { Text: "text", Directive: "directive", Comment: "comment", Script: "script", Style: "style", Tag: "tag", CDATA: "cdata", Doctype: "doctype", isTag: function (e) { return "tag" === e.type || "script" === e.type || "style" === e.type; }, }; }, 12417: function (e, t, n) { var r = e.exports; [n(43346), n(85010), n(26765), n(98043), n(23905), n(74975)].forEach( function (e) { Object.keys(e).forEach(function (t) { r[t] = e[t].bind(r); }); } ); }, 74975: function (e, t) { t.removeSubsets = function (e) { for (var t, n, r, i = e.length; --i > -1; ) { for (t = n = e[i], e[i] = null, r = !0; n; ) { if (e.indexOf(n) > -1) { (r = !1), e.splice(i, 1); break; } n = n.parent; } r && (e[i] = t); } return e; }; var n = 1, r = 2, i = 4, o = 8, a = 16, s = (t.compareDocumentPosition = function (e, t) { var s, u, c, l, f, d, p = [], h = []; if (e === t) return 0; for (s = e; s; ) p.unshift(s), (s = s.parent); for (s = t; s; ) h.unshift(s), (s = s.parent); for (d = 0; p[d] === h[d]; ) d++; return 0 === d ? n : ((c = (u = p[d - 1]).children), (l = p[d]), (f = h[d]), c.indexOf(l) > c.indexOf(f) ? u === t ? i | a : i : u === e ? r | o : r); }); t.uniqueSort = function (e) { var t, n, o = e.length; for (e = e.slice(); --o > -1; ) (t = e[o]), (n = e.indexOf(t)) > -1 && n < o && e.splice(o, 1); return ( e.sort(function (e, t) { var n = s(e, t); return n & r ? -1 : n & i ? 1 : 0; }), e ); }; }, 23905: function (e, t, n) { var r = n(64431), i = (t.isTag = r.isTag); t.testElement = function (e, t) { for (var n in e) if (e.hasOwnProperty(n)) { if ("tag_name" === n) { if (!i(t) || !e.tag_name(t.name)) return !1; } else if ("tag_type" === n) { if (!e.tag_type(t.type)) return !1; } else if ("tag_contains" === n) { if (i(t) || !e.tag_contains(t.data)) return !1; } else if (!t.attribs || !e[n](t.attribs[n])) return !1; } else; return !0; }; var o = { tag_name: function (e) { return "function" == typeof e ? function (t) { return i(t) && e(t.name); } : "*" === e ? i : function (t) { return i(t) && t.name === e; }; }, tag_type: function (e) { return "function" == typeof e ? function (t) { return e(t.type); } : function (t) { return t.type === e; }; }, tag_contains: function (e) { return "function" == typeof e ? function (t) { return !i(t) && e(t.data); } : function (t) { return !i(t) && t.data === e; }; }, }; function a(e, t) { return "function" == typeof t ? function (n) { return n.attribs && t(n.attribs[e]); } : function (n) { return n.attribs && n.attribs[e] === t; }; } function s(e, t) { return function (n) { return e(n) || t(n); }; } (t.getElements = function (e, t, n, r) { var i = Object.keys(e).map(function (t) { var n = e[t]; return t in o ? o[t](n) : a(t, n); }); return 0 === i.length ? [] : this.filter(i.reduce(s), t, n, r); }), (t.getElementById = function (e, t, n) { return ( Array.isArray(t) || (t = [t]), this.findOne(a("id", e), t, !1 !== n) ); }), (t.getElementsByTagName = function (e, t, n, r) { return this.filter(o.tag_name(e), t, n, r); }), (t.getElementsByTagType = function (e, t, n, r) { return this.filter(o.tag_type(e), t, n, r); }); }, 26765: function (e, t) { (t.removeElement = function (e) { if ( (e.prev && (e.prev.next = e.next), e.next && (e.next.prev = e.prev), e.parent) ) { var t = e.parent.children; t.splice(t.lastIndexOf(e), 1); } }), (t.replaceElement = function (e, t) { var n = (t.prev = e.prev); n && (n.next = t); var r = (t.next = e.next); r && (r.prev = t); var i = (t.parent = e.parent); if (i) { var o = i.children; o[o.lastIndexOf(e)] = t; } }), (t.appendChild = function (e, t) { if (((t.parent = e), 1 !== e.children.push(t))) { var n = e.children[e.children.length - 2]; (n.next = t), (t.prev = n), (t.next = null); } }), (t.append = function (e, t) { var n = e.parent, r = e.next; if (((t.next = r), (t.prev = e), (e.next = t), (t.parent = n), r)) { if (((r.prev = t), n)) { var i = n.children; i.splice(i.lastIndexOf(r), 0, t); } } else n && n.children.push(t); }), (t.prepend = function (e, t) { var n = e.parent; if (n) { var r = n.children; r.splice(r.lastIndexOf(e), 0, t); } e.prev && (e.prev.next = t), (t.parent = n), (t.prev = e.prev), (t.next = e), (e.prev = t); }); }, 98043: function (e, t, n) { var r = n(64431).isTag; function i(e, t, n, r) { for ( var o, a = [], s = 0, u = t.length; s < u && !(e(t[s]) && (a.push(t[s]), --r <= 0)) && ((o = t[s].children), !( n && o && o.length > 0 && ((o = i(e, o, n, r)), (a = a.concat(o)), (r -= o.length) <= 0) )); s++ ); return a; } e.exports = { filter: function (e, t, n, r) { Array.isArray(t) || (t = [t]); ("number" == typeof r && isFinite(r)) || (r = 1 / 0); return i(e, t, !1 !== n, r); }, find: i, findOneChild: function (e, t) { for (var n = 0, r = t.length; n < r; n++) if (e(t[n])) return t[n]; return null; }, findOne: function e(t, n) { for (var i = null, o = 0, a = n.length; o < a && !i; o++) r(n[o]) && (t(n[o]) ? (i = n[o]) : n[o].children.length > 0 && (i = e(t, n[o].children))); return i; }, existsOne: function e(t, n) { for (var i = 0, o = n.length; i < o; i++) if ( r(n[i]) && (t(n[i]) || (n[i].children.length > 0 && e(t, n[i].children))) ) return !0; return !1; }, findAll: function (e, t) { var n = [], i = t.slice(); for (; i.length; ) { var o = i.shift(); r(o) && (o.children && o.children.length > 0 && i.unshift.apply(i, o.children), e(o) && n.push(o)); } return n; }, }; }, 43346: function (e, t, n) { var r = n(64431), i = n(46138), o = r.isTag; e.exports = { getInnerHTML: function (e, t) { return e.children ? e.children .map(function (e) { return i(e, t); }) .join("") : ""; }, getOuterHTML: i, getText: function e(t) { return Array.isArray(t) ? t.map(e).join("") : o(t) ? "br" === t.name ? "\n" : e(t.children) : t.type === r.CDATA ? e(t.children) : t.type === r.Text ? t.data : ""; }, }; }, 85010: function (e, t) { var n = (t.getChildren = function (e) { return e.children; }), r = (t.getParent = function (e) { return e.parent; }); (t.getSiblings = function (e) { var t = r(e); return t ? n(t) : [e]; }), (t.getAttributeValue = function (e, t) { return e.attribs && e.attribs[t]; }), (t.hasAttrib = function (e, t) { return !!e.attribs && hasOwnProperty.call(e.attribs, t); }), (t.getName = function (e) { return e.name; }); }, 62988: function (e, t, n) { var r = n(61755), i = n(26665).each; function o(e, t) { (this.query = e), (this.isUnconditional = t), (this.handlers = []), (this.mql = window.matchMedia(e)); var n = this; (this.listener = function (e) { (n.mql = e.currentTarget || e), n.assess(); }), this.mql.addListener(this.listener); } (o.prototype = { constuctor: o, addHandler: function (e) { var t = new r(e); this.handlers.push(t), this.matches() && t.on(); }, removeHandler: function (e) { var t = this.handlers; i(t, function (n, r) { if (n.equals(e)) return n.destroy(), !t.splice(r, 1); }); }, matches: function () { return this.mql.matches || this.isUnconditional; }, clear: function () { i(this.handlers, function (e) { e.destroy(); }), this.mql.removeListener(this.listener), (this.handlers.length = 0); }, assess: function () { var e = this.matches() ? "on" : "off"; i(this.handlers, function (t) { t[e](); }); }, }), (e.exports = o); }, 38177: function (e, t, n) { var r = n(62988), i = n(26665), o = i.each, a = i.isFunction, s = i.isArray; function u() { if (!window.matchMedia) throw new Error( "matchMedia not present, legacy browsers require a polyfill" ); (this.queries = {}), (this.browserIsIncapable = !window.matchMedia("only all").matches); } (u.prototype = { constructor: u, register: function (e, t, n) { var i = this.queries, u = n && this.browserIsIncapable; return ( i[e] || (i[e] = new r(e, u)), a(t) && (t = { match: t }), s(t) || (t = [t]), o(t, function (t) { a(t) && (t = { match: t }), i[e].addHandler(t); }), this ); }, unregister: function (e, t) { var n = this.queries[e]; return ( n && (t ? n.removeHandler(t) : (n.clear(), delete this.queries[e])), this ); }, }), (e.exports = u); }, 61755: function (e) { function t(e) { (this.options = e), !e.deferSetup && this.setup(); } (t.prototype = { constructor: t, setup: function () { this.options.setup && this.options.setup(), (this.initialised = !0); }, on: function () { !this.initialised && this.setup(), this.options.match && this.options.match(); }, off: function () { this.options.unmatch && this.options.unmatch(); }, destroy: function () { this.options.destroy ? this.options.destroy() : this.off(); }, equals: function (e) { return this.options === e || this.options.match === e; }, }), (e.exports = t); }, 26665: function (e) { e.exports = { isFunction: function (e) { return "function" == typeof e; }, isArray: function (e) { return "[object Array]" === Object.prototype.toString.apply(e); }, each: function (e, t) { for (var n = 0, r = e.length; n < r && !1 !== t(e[n], n); n++); }, }; }, 24974: function (e, t, n) { var r = n(38177); e.exports = new r(); }, 44076: function (e, t, n) { "use strict"; var r = (this && this.__importDefault) || function (e) { return e && e.__esModule ? e : { default: e }; }; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(n(59323)), o = r(n(29591)), a = r(n(2586)), s = r(n(26)); function u(e) { var t = Object.keys(e).join("|"), n = l(e), r = new RegExp( "&(?:" + (t += "|#[xX][\\da-fA-F]+|#\\d+") + ");", "g" ); return function (e) { return String(e).replace(r, n); }; } (t.decodeXML = u(a.default)), (t.decodeHTMLStrict = u(i.default)); var c = function (e, t) { return e < t ? 1 : -1; }; function l(e) { return function (t) { return "#" === t.charAt(1) ? "X" === t.charAt(2) || "x" === t.charAt(2) ? s.default(parseInt(t.substr(3), 16)) : s.default(parseInt(t.substr(2), 10)) : e[t.slice(1, -1)]; }; } t.decodeHTML = (function () { for ( var e = Object.keys(o.default).sort(c), t = Object.keys(i.default).sort(c), n = 0, r = 0; n < t.length; n++ ) e[r] === t[n] ? ((t[n] += ";?"), r++) : (t[n] += ";"); var a = new RegExp( "&(?:" + t.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g" ), s = l(i.default); function u(e) { return ";" !== e.substr(-1) && (e += ";"), s(e); } return function (e) { return String(e).replace(a, u); }; })(); }, 26: function (e, t, n) { "use strict"; var r = (this && this.__importDefault) || function (e) { return e && e.__esModule ? e : { default: e }; }; Object.defineProperty(t, "__esModule", { value: !0 }); var i = r(n(33600)); t.default = function (e) { if ((e >= 55296 && e <= 57343) || e > 1114111) return "�"; e in i.default && (e = i.default[e]); var t = ""; return ( e > 65535 && ((e -= 65536), (t += String.fromCharCode(((e >>> 10) & 1023) | 55296)), (e = 56320 | (1023 & e))), (t += String.fromCharCode(e)) ); }; }, 87322: function (e, t, n) { "use strict"; var r = (this && this.__importDefault) || function (e) { return e && e.__esModule ? e : { default: e }; }; Object.defineProperty(t, "__esModule", { value: !0 }); var i = u(r(n(2586)).default), o = c(i); t.encodeXML = h(i, o); var a = u(r(n(59323)).default), s = c(a); function u(e) { return Object.keys(e) .sort() .reduce(function (t, n) { return (t[e[n]] = "&" + n + ";"), t; }, {}); } function c(e) { var t = [], n = []; return ( Object.keys(e).forEach(function (e) { return 1 === e.length ? t.push("\\" + e) : n.push(e); }), n.unshift("[" + t.join("") + "]"), new RegExp(n.join("|"), "g") ); } t.encodeHTML = h(a, s); var l = /[^\0-\x7F]/g, f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; function d(e) { return "&#x" + e.charCodeAt(0).toString(16).toUpperCase() + ";"; } function p(e, t) { return ( "&#x" + (1024 * (e.charCodeAt(0) - 55296) + e.charCodeAt(1) - 56320 + 65536) .toString(16) .toUpperCase() + ";" ); } function h(e, t) { return function (n) { return n .replace(t, function (t) { return e[t]; }) .replace(f, p) .replace(l, d); }; } var g = c(i); t.escape = function (e) { return e.replace(g, d).replace(f, p).replace(l, d); }; }, 45863: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = n(44076), i = n(87322); (t.decode = function (e, t) { return (!t || t <= 0 ? r.decodeXML : r.decodeHTML)(e); }), (t.decodeStrict = function (e, t) { return (!t || t <= 0 ? r.decodeXML : r.decodeHTMLStrict)(e); }), (t.encode = function (e, t) { return (!t || t <= 0 ? i.encodeXML : i.encodeHTML)(e); }); var o = n(87322); (t.encodeXML = o.encodeXML), (t.encodeHTML = o.encodeHTML), (t.escape = o.escape), (t.encodeHTML4 = o.encodeHTML), (t.encodeHTML5 = o.encodeHTML); var a = n(44076); (t.decodeXML = a.decodeXML), (t.decodeHTML = a.decodeHTML), (t.decodeHTMLStrict = a.decodeHTMLStrict), (t.decodeHTML4 = a.decodeHTML), (t.decodeHTML5 = a.decodeHTML), (t.decodeHTML4Strict = a.decodeHTMLStrict), (t.decodeHTML5Strict = a.decodeHTMLStrict), (t.decodeXMLStrict = a.decodeXML); }, 88541: function (e, t) { var n, r, i; !(function (o) { "use strict"; var a = o.setTimeout, s = o.clearTimeout, u = o.XMLHttpRequest, c = o.XDomainRequest, l = o.ActiveXObject, f = o.EventSource, d = o.document, p = o.Promise, h = o.fetch, g = o.Response, m = o.TextDecoder, y = o.TextEncoder, v = o.AbortController; if ( ("undefined" == typeof window || "readyState" in d || null != d.body || ((d.readyState = "loading"), window.addEventListener( "load", function (e) { d.readyState = "complete"; }, !1 )), null == u && (u = function () { return new l("Microsoft.XMLHTTP"); }), null == Object.create && (Object.create = function (e) { function t() {} return (t.prototype = e), new t(); }), null == v) ) { var b = h; (h = function (e, t) { var n = t.signal; return b(e, { headers: t.headers, credentials: t.credentials, cache: t.cache, }).then(function (e) { var t = e.body.getReader(); return ( (n._reader = t), n._aborted && n._reader.cancel(), { status: e.status, statusText: e.statusText, headers: e.headers, body: { getReader: function () { return t; }, }, } ); }); }), (v = function () { (this.signal = { _reader: null, _aborted: !1 }), (this.abort = function () { null != this.signal._reader && this.signal._reader.cancel(), (this.signal._aborted = !0); }); }); } function _() { (this.bitsNeeded = 0), (this.codePoint = 0); } _.prototype.decode = function (e) { function t(e, t, n) { if (1 === n) return e >= 128 >> t && e << t <= 2047; if (2 === n) return ( (e >= 2048 >> t && e << t <= 55295) || (e >= 57344 >> t && e << t <= 65535) ); if (3 === n) return e >= 65536 >> t && e << t <= 1114111; throw new Error(); } function n(e, t) { if (6 === e) return t >> 6 > 15 ? 3 : t > 31 ? 2 : 1; if (12 === e) return t > 15 ? 3 : 2; if (18 === e) return 3; throw new Error(); } for ( var r = 65533, i = "", o = this.bitsNeeded, a = this.codePoint, s = 0; s < e.length; s += 1 ) { var u = e[s]; 0 !== o && (u < 128 || u > 191 || !t((a << 6) | (63 & u), o - 6, n(o, a))) && ((o = 0), (a = r), (i += String.fromCharCode(a))), 0 === o ? (u >= 0 && u <= 127 ? ((o = 0), (a = u)) : u >= 192 && u <= 223 ? ((o = 6), (a = 31 & u)) : u >= 224 && u <= 239 ? ((o = 12), (a = 15 & u)) : u >= 240 && u <= 247 ? ((o = 18), (a = 7 & u)) : ((o = 0), (a = r)), 0 === o || t(a, o, n(o, a)) || ((o = 0), (a = r))) : ((o -= 6), (a = (a << 6) | (63 & u))), 0 === o && (a <= 65535 ? (i += String.fromCharCode(a)) : ((i += String.fromCharCode( 55296 + ((a - 65535 - 1) >> 10) )), (i += String.fromCharCode( 56320 + ((a - 65535 - 1) & 1023) )))); } return (this.bitsNeeded = o), (this.codePoint = a), i; }; (null != m && null != y && (function () { try { return ( "test" === new m().decode(new y().encode("test"), { stream: !0 }) ); } catch (e) { console.debug( "TextDecoder does not support streaming option. Using polyfill instead: " + e ); } return !1; })()) || (m = _); var w = function () {}; function T(e) { (this.withCredentials = !1), (this.readyState = 0), (this.status = 0), (this.statusText = ""), (this.responseText = ""), (this.onprogress = w), (this.onload = w), (this.onerror = w), (this.onreadystatechange = w), (this._contentType = ""), (this._xhr = e), (this._sendTimeout = 0), (this._abort = w); } function x(e) { return e.replace(/[A-Z]/g, function (e) { return String.fromCharCode(e.charCodeAt(0) + 32); }); } function S(e) { for ( var t = Object.create(null), n = e.split("\r\n"), r = 0; r < n.length; r += 1 ) { var i = n[r].split(": "), o = i.shift(), a = i.join(": "); t[x(o)] = a; } this._map = t; } function k() {} function E(e) { this._headers = e; } function O() {} function C() { this._listeners = Object.create(null); } function L(e) { a(function () { throw e; }, 0); } function A(e) { (this.type = e), (this.target = void 0); } function I(e, t) { A.call(this, e), (this.data = t.data), (this.lastEventId = t.lastEventId); } function M(e, t) { A.call(this, e), (this.status = t.status), (this.statusText = t.statusText), (this.headers = t.headers); } function P(e, t) { A.call(this, e), (this.error = t.error); } (T.prototype.open = function (e, t) { this._abort(!0); var n = this, r = this._xhr, i = 1, o = 0; this._abort = function (e) { 0 !== n._sendTimeout && (s(n._sendTimeout), (n._sendTimeout = 0)), (1 !== i && 2 !== i && 3 !== i) || ((i = 4), (r.onload = w), (r.onerror = w), (r.onabort = w), (r.onprogress = w), (r.onreadystatechange = w), r.abort(), 0 !== o && (s(o), (o = 0)), e || ((n.readyState = 4), n.onabort(null), n.onreadystatechange())), (i = 0); }; var c = function () { if (1 === i) { var e = 0, t = "", o = void 0; if ("contentType" in r) (e = 200), (t = "OK"), (o = r.contentType); else try { (e = r.status), (t = r.statusText), (o = r.getResponseHeader("Content-Type")); } catch (n) { (e = 0), (t = ""), (o = void 0); } 0 !== e && ((i = 2), (n.readyState = 2), (n.status = e), (n.statusText = t), (n._contentType = o), n.onreadystatechange()); } }, l = function () { if ((c(), 2 === i || 3 === i)) { i = 3; var e = ""; try { e = r.responseText; } catch (e) {} (n.readyState = 3), (n.responseText = e), n.onprogress(); } }, f = function (e, t) { if ( ((null != t && null != t.preventDefault) || (t = { preventDefault: w }), l(), 1 === i || 2 === i || 3 === i) ) { if ( ((i = 4), 0 !== o && (s(o), (o = 0)), (n.readyState = 4), "load" === e) ) n.onload(t); else if ("error" === e) n.onerror(t); else { if ("abort" !== e) throw new TypeError(); n.onabort(t); } n.onreadystatechange(); } }, d = function () { (o = a(function () { d(); }, 500)), 3 === r.readyState && l(); }; "onload" in r && (r.onload = function (e) { f("load", e); }), "onerror" in r && (r.onerror = function (e) { f("error", e); }), "onabort" in r && (r.onabort = function (e) { f("abort", e); }), "onprogress" in r && (r.onprogress = l), "onreadystatechange" in r && (r.onreadystatechange = function (e) { !(function (e) { null != r && (4 === r.readyState ? ("onload" in r && "onerror" in r && "onabort" in r) || f("" === r.responseText ? "error" : "load", e) : 3 === r.readyState ? "onprogress" in r || l() : 2 === r.readyState && c()); })(e); }), (!("contentType" in r) && "ontimeout" in u.prototype) || (t += (-1 === t.indexOf("?") ? "?" : "&") + "padding=true"), r.open(e, t, !0), "readyState" in r && (o = a(function () { d(); }, 0)); }), (T.prototype.abort = function () { this._abort(!1); }), (T.prototype.getResponseHeader = function (e) { return this._contentType; }), (T.prototype.setRequestHeader = function (e, t) { var n = this._xhr; "setRequestHeader" in n && n.setRequestHeader(e, t); }), (T.prototype.getAllResponseHeaders = function () { return ( (null != this._xhr.getAllResponseHeaders && this._xhr.getAllResponseHeaders()) || "" ); }), (T.prototype.send = function () { if ( ("ontimeout" in u.prototype && ("sendAsBinary" in u.prototype || "mozAnon" in u.prototype)) || null == d || null == d.readyState || "complete" === d.readyState ) { var e = this._xhr; "withCredentials" in e && (e.withCredentials = this.withCredentials); try { e.send(void 0); } catch (e) { throw e; } } else { var t = this; t._sendTimeout = a(function () { (t._sendTimeout = 0), t.send(); }, 4); } }), (S.prototype.get = function (e) { return this._map[x(e)]; }), null != u && null == u.HEADERS_RECEIVED && (u.HEADERS_RECEIVED = 2), (k.prototype.open = function (e, t, n, r, i, o, a) { e.open("GET", i); var s = 0; for (var c in ((e.onprogress = function () { var t = e.responseText.slice(s); (s += t.length), n(t); }), (e.onerror = function (e) { e.preventDefault(), r(new Error("NetworkError")); }), (e.onload = function () { r(null); }), (e.onabort = function () { r(null); }), (e.onreadystatechange = function () { if (e.readyState === u.HEADERS_RECEIVED) { var n = e.status, r = e.statusText, i = e.getResponseHeader("Content-Type"), o = e.getAllResponseHeaders(); t(n, r, i, new S(o)); } }), (e.withCredentials = o), a)) Object.prototype.hasOwnProperty.call(a, c) && e.setRequestHeader(c, a[c]); return e.send(), e; }), (E.prototype.get = function (e) { return this._headers.get(e); }), (O.prototype.open = function (e, t, n, r, i, o, a) { var s = null, u = new v(), c = u.signal, l = new m(); return ( h(i, { headers: a, credentials: o ? "include" : "same-origin", signal: c, cache: "no-store", }) .then(function (e) { return ( (s = e.body.getReader()), t( e.status, e.statusText, e.headers.get("Content-Type"), new E(e.headers) ), new p(function (e, t) { var r = function () { s.read() .then(function (t) { if (t.done) e(void 0); else { var i = l.decode(t.value, { stream: !0 }); n(i), r(); } }) .catch(function (e) { t(e); }); }; r(); }) ); }) .catch(function (e) { return "AbortError" === e.name ? void 0 : e; }) .then(function (e) { r(e); }), { abort: function () { null != s && s.cancel(), u.abort(); }, } ); }), (C.prototype.dispatchEvent = function (e) { e.target = this; var t = this._listeners[e.type]; if (null != t) for (var n = t.length, r = 0; r < n; r += 1) { var i = t[r]; try { "function" == typeof i.handleEvent ? i.handleEvent(e) : i.call(this, e); } catch (e) { L(e); } } }), (C.prototype.addEventListener = function (e, t) { e = String(e); var n = this._listeners, r = n[e]; null == r && ((r = []), (n[e] = r)); for (var i = !1, o = 0; o < r.length; o += 1) r[o] === t && (i = !0); i || r.push(t); }), (C.prototype.removeEventListener = function (e, t) { e = String(e); var n = this._listeners, r = n[e]; if (null != r) { for (var i = [], o = 0; o < r.length; o += 1) r[o] !== t && i.push(r[o]); 0 === i.length ? delete n[e] : (n[e] = i); } }), (I.prototype = Object.create(A.prototype)), (M.prototype = Object.create(A.prototype)), (P.prototype = Object.create(A.prototype)); var R = -1, D = -1, j = /^text\/event\-stream;?(\s*charset\=utf\-8)?$/i, N = function (e, t) { var n = null == e ? t : parseInt(e, 10); return n != n && (n = t), B(n); }, B = function (e) { return Math.min(Math.max(e, 1e3), 18e6); }, U = function (e, t, n) { try { "function" == typeof t && t.call(e, n); } catch (e) { L(e); } }; function F(e, t) { C.call(this), (t = t || {}), (this.onopen = void 0), (this.onmessage = void 0), (this.onerror = void 0), (this.url = void 0), (this.readyState = void 0), (this.withCredentials = void 0), (this.headers = void 0), (this._close = void 0), (function (e, t, n) { t = String(t); var r = Boolean(n.withCredentials), i = B(1e3), o = N(n.heartbeatTimeout, 45e3), l = "", f = i, d = !1, p = 0, h = n.headers || {}, g = n.Transport, m = z && null == g ? void 0 : new T( null != g ? new g() : (null != u && "withCredentials" in u.prototype) || null == c ? new u() : new c() ), y = null != g && "string" != typeof g ? new g() : null == m ? new O() : new k(), v = void 0, b = 0, _ = R, w = "", x = "", S = "", E = "", C = 0, L = 0, A = 0, F = function (t, n, r, o) { if (0 === _) if (200 === t && null != r && j.test(r)) { (_ = 1), (d = !0), (f = i), (e.readyState = 1); var a = new M("open", { status: t, statusText: n, headers: o, }); e.dispatchEvent(a), U(e, e.onopen, a); } else { var s = ""; 200 !== t ? (n && (n = n.replace(/\s+/g, " ")), (s = "EventSource's response has a status " + t + " " + n + " that is not 200. Aborting the connection.")) : (s = "EventSource's response has a Content-Type specifying an unsupported type: " + (null == r ? "-" : r.replace(/\s+/g, " ")) + ". Aborting the connection."), Z(); a = new M("error", { status: t, statusText: n, headers: o, }); e.dispatchEvent(a), U(e, e.onerror, a), console.error(s); } }, H = function (t) { if (1 === _) { for (var n = -1, r = 0; r < t.length; r += 1) { ((h = t.charCodeAt(r)) !== "\n".charCodeAt(0) && h !== "\r".charCodeAt(0)) || (n = r); } var u = (-1 !== n ? E : "") + t.slice(0, n + 1); (E = (-1 === n ? E : "") + t.slice(n + 1)), "" !== t && ((d = !0), (p += t.length)); for (var c = 0; c < u.length; c += 1) { var h = u.charCodeAt(c); if (C === D && h === "\n".charCodeAt(0)) C = 0; else if ( (C === D && (C = 0), h === "\r".charCodeAt(0) || h === "\n".charCodeAt(0)) ) { if (0 !== C) { 1 === C && (A = c + 1); var g = u.slice(L, A - 1), m = u.slice( A + (A < c && u.charCodeAt(A) === " ".charCodeAt(0) ? 1 : 0), c ); "data" === g ? ((w += "\n"), (w += m)) : "id" === g ? (x = m) : "event" === g ? (S = m) : "retry" === g ? ((i = N(m, i)), (f = i)) : "heartbeatTimeout" === g && ((o = N(m, o)), 0 !== b && (s(b), (b = a(function () { V(); }, o)))); } if (0 === C) { if ("" !== w) { (l = x), "" === S && (S = "message"); var y = new I(S, { data: w.slice(1), lastEventId: x, }); if ( (e.dispatchEvent(y), "open" === S ? U(e, e.onopen, y) : "message" === S ? U(e, e.onmessage, y) : "error" === S && U(e, e.onerror, y), 2 === _) ) return; } (w = ""), (S = ""); } C = h === "\r".charCodeAt(0) ? D : 0; } else 0 === C && ((L = c), (C = 1)), 1 === C ? h === ":".charCodeAt(0) && ((A = c + 1), (C = 2)) : 2 === C && (C = 3); } } }, q = function (t) { if (1 === _ || 0 === _) { (_ = R), 0 !== b && (s(b), (b = 0)), (b = a(function () { V(); }, f)), (f = B(Math.min(16 * i, 2 * f))), (e.readyState = 0); var n = new P("error", { error: t }); e.dispatchEvent(n), U(e, e.onerror, n); } }, Z = function () { (_ = 2), null != v && (v.abort(), (v = void 0)), 0 !== b && (s(b), (b = 0)), (e.readyState = 2); }, V = function () { if (((b = 0), _ === R)) { (d = !1), (p = 0), (b = a(function () { V(); }, o)), (_ = 0), (w = ""), (S = ""), (x = l), (E = ""), (L = 0), (A = 0), (C = 0); var n = t; "data:" !== t.slice(0, 5) && "blob:" !== t.slice(0, 5) && "" !== l && (n += (-1 === t.indexOf("?") ? "?" : "&") + "lastEventId=" + encodeURIComponent(l)); var r = e.withCredentials, i = { Accept: "text/event-stream" }, s = e.headers; if (null != s) for (var u in s) Object.prototype.hasOwnProperty.call(s, u) && (i[u] = s[u]); try { v = y.open(m, F, H, q, n, r, i); } catch (e) { throw (Z(), e); } } else d || null == v ? ((d = !1), (b = a(function () { V(); }, o))) : (q( new Error( "No activity within " + o + " milliseconds. " + (0 === _ ? "No response received." : p + " chars received.") + " Reconnecting." ) ), null != v && (v.abort(), (v = void 0))); }; (e.url = t), (e.readyState = 0), (e.withCredentials = r), (e.headers = h), (e._close = Z), V(); })(this, e, t); } var z = null != h && null != g && "body" in g.prototype; (F.prototype = Object.create(C.prototype)), (F.prototype.CONNECTING = 0), (F.prototype.OPEN = 1), (F.prototype.CLOSED = 2), (F.prototype.close = function () { this._close(); }), (F.CONNECTING = 0), (F.OPEN = 1), (F.CLOSED = 2), (F.prototype.withCredentials = void 0); var H = f; null == u || (null != f && "withCredentials" in f.prototype) || (H = F), (function (o) { if ("object" == typeof e.exports) { var a = o(t); void 0 !== a && (e.exports = a); } else (r = [t]), void 0 === (i = "function" == typeof (n = o) ? n.apply(t, r) : n) || (e.exports = i); })(function (e) { (e.EventSourcePolyfill = F), (e.NativeEventSource = f), (e.EventSource = H); }); })( "undefined" != typeof window ? window : "undefined" != typeof self ? self : this ); }, 26729: function (e) { "use strict"; var t = Object.prototype.hasOwnProperty, n = "~"; function r() {} function i(e, t, n) { (this.fn = e), (this.context = t), (this.once = n || !1); } function o(e, t, r, o, a) { if ("function" != typeof r) throw new TypeError("The listener must be a function"); var s = new i(r, o || e, a), u = n ? n + t : t; return ( e._events[u] ? e._events[u].fn ? (e._events[u] = [e._events[u], s]) : e._events[u].push(s) : ((e._events[u] = s), e._eventsCount++), e ); } function a(e, t) { 0 == --e._eventsCount ? (e._events = new r()) : delete e._events[t]; } function s() { (this._events = new r()), (this._eventsCount = 0); } Object.create && ((r.prototype = Object.create(null)), new r().__proto__ || (n = !1)), (s.prototype.eventNames = function () { var e, r, i = []; if (0 === this._eventsCount) return i; for (r in (e = this._events)) t.call(e, r) && i.push(n ? r.slice(1) : r); return Object.getOwnPropertySymbols ? i.concat(Object.getOwnPropertySymbols(e)) : i; }), (s.prototype.listeners = function (e) { var t = n ? n + e : e, r = this._events[t]; if (!r) return []; if (r.fn) return [r.fn]; for (var i = 0, o = r.length, a = new Array(o); i < o; i++) a[i] = r[i].fn; return a; }), (s.prototype.listenerCount = function (e) { var t = n ? n + e : e, r = this._events[t]; return r ? (r.fn ? 1 : r.length) : 0; }), (s.prototype.emit = function (e, t, r, i, o, a) { var s = n ? n + e : e; if (!this._events[s]) return !1; var u, c, l = this._events[s], f = arguments.length; if (l.fn) { switch ((l.once && this.removeListener(e, l.fn, void 0, !0), f)) { case 1: return l.fn.call(l.context), !0; case 2: return l.fn.call(l.context, t), !0; case 3: return l.fn.call(l.context, t, r), !0; case 4: return l.fn.call(l.context, t, r, i), !0; case 5: return l.fn.call(l.context, t, r, i, o), !0; case 6: return l.fn.call(l.context, t, r, i, o, a), !0; } for (c = 1, u = new Array(f - 1); c < f; c++) u[c - 1] = arguments[c]; l.fn.apply(l.context, u); } else { var d, p = l.length; for (c = 0; c < p; c++) switch ( (l[c].once && this.removeListener(e, l[c].fn, void 0, !0), f) ) { case 1: l[c].fn.call(l[c].context); break; case 2: l[c].fn.call(l[c].context, t); break; case 3: l[c].fn.call(l[c].context, t, r); break; case 4: l[c].fn.call(l[c].context, t, r, i); break; default: if (!u) for (d = 1, u = new Array(f - 1); d < f; d++) u[d - 1] = arguments[d]; l[c].fn.apply(l[c].context, u); } } return !0; }), (s.prototype.on = function (e, t, n) { return o(this, e, t, n, !1); }), (s.prototype.once = function (e, t, n) { return o(this, e, t, n, !0); }), (s.prototype.removeListener = function (e, t, r, i) { var o = n ? n + e : e; if (!this._events[o]) return this; if (!t) return a(this, o), this; var s = this._events[o]; if (s.fn) s.fn !== t || (i && !s.once) || (r && s.context !== r) || a(this, o); else { for (var u = 0, c = [], l = s.length; u < l; u++) (s[u].fn !== t || (i && !s[u].once) || (r && s[u].context !== r)) && c.push(s[u]); c.length ? (this._events[o] = 1 === c.length ? c[0] : c) : a(this, o); } return this; }), (s.prototype.removeAllListeners = function (e) { var t; return ( e ? ((t = n ? n + e : e), this._events[t] && a(this, t)) : ((this._events = new r()), (this._eventsCount = 0)), this ); }), (s.prototype.off = s.prototype.removeListener), (s.prototype.addListener = s.prototype.on), (s.prefixed = n), (s.EventEmitter = s), (e.exports = s); }, 17187: function (e) { "use strict"; var t, n = "object" == typeof Reflect ? Reflect : null, r = n && "function" == typeof n.apply ? n.apply : function (e, t, n) { return Function.prototype.apply.call(e, t, n); }; t = n && "function" == typeof n.ownKeys ? n.ownKeys : Object.getOwnPropertySymbols ? function (e) { return Object.getOwnPropertyNames(e).concat( Object.getOwnPropertySymbols(e) ); } : function (e) { return Object.getOwnPropertyNames(e); }; var i = Number.isNaN || function (e) { return e != e; }; function o() { o.init.call(this); } (e.exports = o), (e.exports.once = function (e, t) { return new Promise(function (n, r) { function i(n) { e.removeListener(t, o), r(n); } function o() { "function" == typeof e.removeListener && e.removeListener("error", i), n([].slice.call(arguments)); } g(e, t, o, { once: !0 }), "error" !== t && (function (e, t, n) { "function" == typeof e.on && g(e, "error", t, n); })(e, i, { once: !0 }); }); }), (o.EventEmitter = o), (o.prototype._events = void 0), (o.prototype._eventsCount = 0), (o.prototype._maxListeners = void 0); var a = 10; function s(e) { if ("function" != typeof e) throw new TypeError( 'The "listener" argument must be of type Function. Received type ' + typeof e ); } function u(e) { return void 0 === e._maxListeners ? o.defaultMaxListeners : e._maxListeners; } function c(e, t, n, r) { var i, o, a; if ( (s(n), void 0 === (o = e._events) ? ((o = e._events = Object.create(null)), (e._eventsCount = 0)) : (void 0 !== o.newListener && (e.emit("newListener", t, n.listener ? n.listener : n), (o = e._events)), (a = o[t])), void 0 === a) ) (a = o[t] = n), ++e._eventsCount; else if ( ("function" == typeof a ? (a = o[t] = r ? [n, a] : [a, n]) : r ? a.unshift(n) : a.push(n), (i = u(e)) > 0 && a.length > i && !a.warned) ) { a.warned = !0; var c = new Error( "Possible EventEmitter memory leak detected. " + a.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit" ); (c.name = "MaxListenersExceededWarning"), (c.emitter = e), (c.type = t), (c.count = a.length), (function (e) { console && console.warn && console.warn(e); })(c); } return e; } function l() { if (!this.fired) return ( this.target.removeListener(this.type, this.wrapFn), (this.fired = !0), 0 === arguments.length ? this.listener.call(this.target) : this.listener.apply(this.target, arguments) ); } function f(e, t, n) { var r = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, i = l.bind(r); return (i.listener = n), (r.wrapFn = i), i; } function d(e, t, n) { var r = e._events; if (void 0 === r) return []; var i = r[t]; return void 0 === i ? [] : "function" == typeof i ? n ? [i.listener || i] : [i] : n ? (function (e) { for (var t = new Array(e.length), n = 0; n < t.length; ++n) t[n] = e[n].listener || e[n]; return t; })(i) : h(i, i.length); } function p(e) { var t = this._events; if (void 0 !== t) { var n = t[e]; if ("function" == typeof n) return 1; if (void 0 !== n) return n.length; } return 0; } function h(e, t) { for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e[r]; return n; } function g(e, t, n, r) { if ("function" == typeof e.on) r.once ? e.once(t, n) : e.on(t, n); else { if ("function" != typeof e.addEventListener) throw new TypeError( 'The "emitter" argument must be of type EventEmitter. Received type ' + typeof e ); e.addEventListener(t, function i(o) { r.once && e.removeEventListener(t, i), n(o); }); } } Object.defineProperty(o, "defaultMaxListeners", { enumerable: !0, get: function () { return a; }, set: function (e) { if ("number" != typeof e || e < 0 || i(e)) throw new RangeError( 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + "." ); a = e; }, }), (o.init = function () { (void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events) || ((this._events = Object.create(null)), (this._eventsCount = 0)), (this._maxListeners = this._maxListeners || void 0); }), (o.prototype.setMaxListeners = function (e) { if ("number" != typeof e || e < 0 || i(e)) throw new RangeError( 'The value of "n" is out of range. It must be a non-negative number. Received ' + e + "." ); return (this._maxListeners = e), this; }), (o.prototype.getMaxListeners = function () { return u(this); }), (o.prototype.emit = function (e) { for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]); var i = "error" === e, o = this._events; if (void 0 !== o) i = i && void 0 === o.error; else if (!i) return !1; if (i) { var a; if ((t.length > 0 && (a = t[0]), a instanceof Error)) throw a; var s = new Error( "Unhandled error." + (a ? " (" + a.message + ")" : "") ); throw ((s.context = a), s); } var u = o[e]; if (void 0 === u) return !1; if ("function" == typeof u) r(u, this, t); else { var c = u.length, l = h(u, c); for (n = 0; n < c; ++n) r(l[n], this, t); } return !0; }), (o.prototype.addListener = function (e, t) { return c(this, e, t, !1); }), (o.prototype.on = o.prototype.addListener), (o.prototype.prependListener = function (e, t) { return c(this, e, t, !0); }), (o.prototype.once = function (e, t) { return s(t), this.on(e, f(this, e, t)), this; }), (o.prototype.prependOnceListener = function (e, t) { return s(t), this.prependListener(e, f(this, e, t)), this; }), (o.prototype.removeListener = function (e, t) { var n, r, i, o, a; if ((s(t), void 0 === (r = this._events))) return this; if (void 0 === (n = r[e])) return this; if (n === t || n.listener === t) 0 == --this._eventsCount ? (this._events = Object.create(null)) : (delete r[e], r.removeListener && this.emit("removeListener", e, n.listener || t)); else if ("function" != typeof n) { for (i = -1, o = n.length - 1; o >= 0; o--) if (n[o] === t || n[o].listener === t) { (a = n[o].listener), (i = o); break; } if (i < 0) return this; 0 === i ? n.shift() : (function (e, t) { for (; t + 1 < e.length; t++) e[t] = e[t + 1]; e.pop(); })(n, i), 1 === n.length && (r[e] = n[0]), void 0 !== r.removeListener && this.emit("removeListener", e, a || t); } return this; }), (o.prototype.off = o.prototype.removeListener), (o.prototype.removeAllListeners = function (e) { var t, n, r; if (void 0 === (n = this._events)) return this; if (void 0 === n.removeListener) return ( 0 === arguments.length ? ((this._events = Object.create(null)), (this._eventsCount = 0)) : void 0 !== n[e] && (0 == --this._eventsCount ? (this._events = Object.create(null)) : delete n[e]), this ); if (0 === arguments.length) { var i, o = Object.keys(n); for (r = 0; r < o.length; ++r) "removeListener" !== (i = o[r]) && this.removeAllListeners(i); return ( this.removeAllListeners("removeListener"), (this._events = Object.create(null)), (this._eventsCount = 0), this ); } if ("function" == typeof (t = n[e])) this.removeListener(e, t); else if (void 0 !== t) for (r = t.length - 1; r >= 0; r--) this.removeListener(e, t[r]); return this; }), (o.prototype.listeners = function (e) { return d(this, e, !0); }), (o.prototype.rawListeners = function (e) { return d(this, e, !1); }), (o.listenerCount = function (e, t) { return "function" == typeof e.listenerCount ? e.listenerCount(t) : p.call(e, t); }), (o.prototype.listenerCount = p), (o.prototype.eventNames = function () { return this._eventsCount > 0 ? t(this._events) : []; }); }, 64063: function (e) { "use strict"; e.exports = function e(t, n) { if (t === n) return !0; if (t && n && "object" == typeof t && "object" == typeof n) { if (t.constructor !== n.constructor) return !1; var r, i, o; if (Array.isArray(t)) { if ((r = t.length) != n.length) return !1; for (i = r; 0 != i--; ) if (!e(t[i], n[i])) return !1; return !0; } if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags; if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf(); if (t.toString !== Object.prototype.toString) return t.toString() === n.toString(); if ((r = (o = Object.keys(t)).length) !== Object.keys(n).length) return !1; for (i = r; 0 != i--; ) if (!Object.prototype.hasOwnProperty.call(n, o[i])) return !1; for (i = r; 0 != i--; ) { var a = o[i]; if (!e(t[a], n[a])) return !1; } return !0; } return t != t && n != n; }; }, 38252: function (e) { "use strict"; e.exports = function e(t, n) { if (t === n) return !0; if (t && n && "object" == typeof t && "object" == typeof n) { if (t.constructor !== n.constructor) return !1; var r, i, o; if (Array.isArray(t)) { if ((r = t.length) != n.length) return !1; for (i = r; 0 != i--; ) if (!e(t[i], n[i])) return !1; return !0; } if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags; if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf(); if (t.toString !== Object.prototype.toString) return t.toString() === n.toString(); if ((r = (o = Object.keys(t)).length) !== Object.keys(n).length) return !1; for (i = r; 0 != i--; ) if (!Object.prototype.hasOwnProperty.call(n, o[i])) return !1; for (i = r; 0 != i--; ) { var a = o[i]; if (("_owner" !== a || !t.$$typeof) && !e(t[a], n[a])) return !1; } return !0; } return t != t && n != n; }; }, 99376: function (e, t) { var n = Object.keys; t.D = function (e, t) { if (e === t) return !0; if (!(e instanceof Object && t instanceof Object)) return !1; for (var r = n(e), i = r.length, o = 0; o < i; o++) if (!(r[o] in t)) return !1; for (o = 0; o < i; o++) if (e[r[o]] !== t[r[o]]) return !1; return i === n(t).length; }; }, 42317: function (e, t, n) { "use strict"; !(function (t) { var n = /^(b|B)$/, r = { iec: { bits: [ "b", "Kib", "Mib", "Gib", "Tib", "Pib", "Eib", "Zib", "Yib", ], bytes: [ "B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB", ], }, jedec: { bits: ["b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb"], bytes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], }, }, i = { iec: [ "", "kibi", "mebi", "gibi", "tebi", "pebi", "exbi", "zebi", "yobi", ], jedec: [ "", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta", ], }; function o(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, o = [], a = 0, s = void 0, u = void 0, c = void 0, l = void 0, f = void 0, d = void 0, p = void 0, h = void 0, g = void 0, m = void 0, y = void 0, v = void 0, b = void 0, _ = void 0; if (isNaN(e)) throw new Error("Invalid arguments"); return ( (c = !0 === t.bits), (y = !0 === t.unix), (u = t.base || 2), (m = void 0 !== t.round ? t.round : y ? 1 : 2), (v = void 0 !== t.spacer ? t.spacer : y ? "" : " "), (_ = t.symbols || t.suffixes || {}), (b = (2 === u && t.standard) || "jedec"), (g = t.output || "string"), (f = !0 === t.fullform), (d = t.fullforms instanceof Array ? t.fullforms : []), (s = void 0 !== t.exponent ? t.exponent : -1), (l = u > 2 ? 1e3 : 1024), (p = (h = Number(e)) < 0) && (h = -h), (-1 === s || isNaN(s)) && (s = Math.floor(Math.log(h) / Math.log(l))) < 0 && (s = 0), s > 8 && (s = 8), 0 === h ? ((o[0] = 0), (o[1] = y ? "" : r[b][c ? "bits" : "bytes"][s])) : ((a = h / (2 === u ? Math.pow(2, 10 * s) : Math.pow(1e3, s))), c && (a *= 8) >= l && s < 8 && ((a /= l), s++), (o[0] = Number(a.toFixed(s > 0 ? m : 0))), (o[1] = 10 === u && 1 === s ? c ? "kb" : "kB" : r[b][c ? "bits" : "bytes"][s]), y && ((o[1] = "jedec" === b ? o[1].charAt(0) : s > 0 ? o[1].replace(/B$/, "") : o[1]), n.test(o[1]) && ((o[0] = Math.floor(o[0])), (o[1] = "")))), p && (o[0] = -o[0]), (o[1] = _[o[1]] || o[1]), "array" === g ? o : "exponent" === g ? s : "object" === g ? { value: o[0], suffix: o[1], symbol: o[1] } : (f && (o[1] = d[s] ? d[s] : i[b][s] + (c ? "bit" : "byte") + (1 === o[0] ? "" : "s")), o.join(v)) ); } (o.partial = function (e) { return function (t) { return o(t, e); }; }), (e.exports = o); })("undefined" != typeof window ? window : n.g); }, 70936: function (e, t, n) { "use strict"; (t.__esModule = !0), (t.isFSA = function (e) { return o.default(e) && void 0 !== e.type && Object.keys(e).every(s); }), (t.isError = function (e) { return !0 === e.error; }); var r, i = n(8146), o = (r = i) && r.__esModule ? r : { default: r }, a = ["type", "payload", "error", "meta"]; function s(e) { return a.indexOf(e) > -1; } }, 11334: function () { !(function () { if ( "undefined" != typeof window && "undefined" != typeof document && "undefined" != typeof HTMLElement ) { var e = !1; try { var t = document.createElement("div"); t.addEventListener( "focus", function (e) { e.preventDefault(), e.stopPropagation(); }, !0 ), t.focus( Object.defineProperty({}, "preventScroll", { get: function () { e = !0; }, }) ); } catch (e) {} if (void 0 === HTMLElement.prototype.nativeFocus && !e) { HTMLElement.prototype.nativeFocus = HTMLElement.prototype.focus; var n = function (e) { for (var t = 0; t < e.length; t++) (e[t][0].scrollTop = e[t][1]), (e[t][0].scrollLeft = e[t][2]); e = []; }; HTMLElement.prototype.focus = function (e) { if (e && e.preventScroll) { var t = (function (e) { for ( var t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement; t && t !== r; ) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push([t, t.scrollTop, t.scrollLeft]), (t = t.parentNode); return (t = r), n.push([t, t.scrollTop, t.scrollLeft]), n; })(this); this.nativeFocus(), "function" == typeof setTimeout ? setTimeout(function () { n(t); }, 0) : n(t); } else this.nativeFocus(); }; } } })(); }, 86382: function () { "use strict"; !(function () { function e(e) { for (var t = []; (e = e.parentNode || e.host || e.defaultView); ) t.push(e); return t; } function t(e) { return function (t) { var n = void 0 !== t.getAttribute ? t.getAttribute("class") || "" : void 0; void 0 !== n && -1 === n.indexOf(e) && t.setAttribute("class", n.concat(" ", e).trim()); }; } var n = ["\n", "\t", " ", "\r"]; try { "undefined" != typeof window && document.querySelector(":focus-within"); } catch (r) { return (function () { var r = function (r) { if (!i) { window.requestAnimationFrame(function () { (i = !1), "blur" === r.type && Array.prototype.slice.call(e(r.target)).forEach( (function (e) { return function (t) { var r = void 0 !== t.getAttribute ? t.getAttribute("class") || "" : void 0; if (r) { var i = r.indexOf(e); 0 <= i && (0 === i || 0 <= n.indexOf(r.charAt(i - 1))) && ("" === (r = r.replace(e, "").trim()) ? t.removeAttribute("class") : t.setAttribute("class", r)); } }; })("focus-within") ), "focus" === r.type && Array.prototype.slice .call(e(r.target)) .forEach(t("focus-within")); }); var i = !0; } }; return ( document.addEventListener("focus", r, !0), document.addEventListener("blur", r, !0), t("js-focus-within")(document.body), !0 ); })(); } })(); }, 37347: function (e) { !(function () { function t(e, t) { document.addEventListener ? e.addEventListener("scroll", t, !1) : e.attachEvent("scroll", t); } function n(e) { (this.a = document.createElement("div")), this.a.setAttribute("aria-hidden", "true"), this.a.appendChild(document.createTextNode(e)), (this.b = document.createElement("span")), (this.c = document.createElement("span")), (this.h = document.createElement("span")), (this.f = document.createElement("span")), (this.g = -1), (this.b.style.cssText = "max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;"), (this.c.style.cssText = "max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;"), (this.f.style.cssText = "max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;"), (this.h.style.cssText = "display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;"), this.b.appendChild(this.h), this.c.appendChild(this.f), this.a.appendChild(this.b), this.a.appendChild(this.c); } function r(e, t) { e.a.style.cssText = "max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:" + t + ";"; } function i(e) { var t = e.a.offsetWidth, n = t + 100; return ( (e.f.style.width = n + "px"), (e.c.scrollLeft = n), (e.b.scrollLeft = e.b.scrollWidth + 100), e.g !== t && ((e.g = t), !0) ); } function o(e, n) { function r() { var e = o; i(e) && e.a.parentNode && n(e.g); } var o = e; t(e.b, r), t(e.c, r), i(e); } function a(e, t) { var n = t || {}; (this.family = e), (this.style = n.style || "normal"), (this.weight = n.weight || "normal"), (this.stretch = n.stretch || "normal"); } var s = null, u = null, c = null, l = null; function f() { return null === l && (l = !!document.fonts), l; } function d() { if (null === c) { var e = document.createElement("div"); try { e.style.font = "condensed 100px sans-serif"; } catch (e) {} c = "" !== e.style.font; } return c; } function p(e, t) { return [e.style, e.weight, d() ? e.stretch : "", "100px", t].join( " " ); } (a.prototype.load = function (e, t) { var i = this, a = e || "BESbswy", c = 0, l = t || 3e3, d = new Date().getTime(); return new Promise(function (e, t) { if ( f() && !(function () { if (null === u) if (f() && /Apple/.test(window.navigator.vendor)) { var e = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec( window.navigator.userAgent ); u = !!e && 603 > parseInt(e[1], 10); } else u = !1; return u; })() ) { var h = new Promise(function (e, t) { !(function n() { new Date().getTime() - d >= l ? t(Error(l + "ms timeout exceeded")) : document.fonts .load(p(i, '"' + i.family + '"'), a) .then(function (t) { 1 <= t.length ? e() : setTimeout(n, 25); }, t); })(); }), g = new Promise(function (e, t) { c = setTimeout(function () { t(Error(l + "ms timeout exceeded")); }, l); }); Promise.race([g, h]).then(function () { clearTimeout(c), e(i); }, t); } else !(function (e) { document.body ? e() : document.addEventListener ? document.addEventListener("DOMContentLoaded", function t() { document.removeEventListener("DOMContentLoaded", t), e(); }) : document.attachEvent("onreadystatechange", function t() { ("interactive" != document.readyState && "complete" != document.readyState) || (document.detachEvent("onreadystatechange", t), e()); }); })(function () { function u() { var t; (t = (-1 != m && -1 != y) || (-1 != m && -1 != v) || (-1 != y && -1 != v)) && ((t = m != y && m != v && y != v) || (null === s && ((t = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec( window.navigator.userAgent )), (s = !!t && (536 > parseInt(t[1], 10) || (536 === parseInt(t[1], 10) && 11 >= parseInt(t[2], 10))))), (t = s && ((m == b && y == b && v == b) || (m == _ && y == _ && v == _) || (m == w && y == w && v == w)))), (t = !t)), t && (T.parentNode && T.parentNode.removeChild(T), clearTimeout(c), e(i)); } var f = new n(a), h = new n(a), g = new n(a), m = -1, y = -1, v = -1, b = -1, _ = -1, w = -1, T = document.createElement("div"); (T.dir = "ltr"), r(f, p(i, "sans-serif")), r(h, p(i, "serif")), r(g, p(i, "monospace")), T.appendChild(f.a), T.appendChild(h.a), T.appendChild(g.a), document.body.appendChild(T), (b = f.a.offsetWidth), (_ = h.a.offsetWidth), (w = g.a.offsetWidth), (function e() { if (new Date().getTime() - d >= l) T.parentNode && T.parentNode.removeChild(T), t(Error(l + "ms timeout exceeded")); else { var n = document.hidden; (!0 !== n && void 0 !== n) || ((m = f.a.offsetWidth), (y = h.a.offsetWidth), (v = g.a.offsetWidth), u()), (c = setTimeout(e, 50)); } })(), o(f, function (e) { (m = e), u(); }), r(f, p(i, '"' + i.family + '",sans-serif')), o(h, function (e) { (y = e), u(); }), r(h, p(i, '"' + i.family + '",serif')), o(g, function (e) { (v = e), u(); }), r(g, p(i, '"' + i.family + '",monospace')); }); }); }), (e.exports = a); })(); }, 89144: function (e, t, n) { var r, i = void 0 !== n.g ? n.g : "undefined" != typeof window ? window : {}, o = n(25893); "undefined" != typeof document ? (r = document) : (r = i["__GLOBAL_DOCUMENT_CACHE@4"]) || (r = i["__GLOBAL_DOCUMENT_CACHE@4"] = o), (e.exports = r); }, 58908: function (e, t, n) { var r; (r = "undefined" != typeof window ? window : void 0 !== n.g ? n.g : "undefined" != typeof self ? self : {}), (e.exports = r); }, 52121: function (e, t, n) { "use strict"; n.d(t, { q_: function () { return P; }, }); var r = n(30670), i = n.n(r), o = n(41143), a = n.n(o); function s(e) { return "/" === e.charAt(0); } function u(e, t) { for (var n = t, r = n + 1, i = e.length; r < i; n += 1, r += 1) e[n] = e[r]; e.pop(); } var c = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "", n = (e && e.split("/")) || [], r = (t && t.split("/")) || [], i = e && s(e), o = t && s(t), a = i || o; if ( (e && s(e) ? (r = n) : n.length && (r.pop(), (r = r.concat(n))), !r.length) ) return "/"; var c = void 0; if (r.length) { var l = r[r.length - 1]; c = "." === l || ".." === l || "" === l; } else c = !1; for (var f = 0, d = r.length; d >= 0; d--) { var p = r[d]; "." === p ? u(r, d) : ".." === p ? (u(r, d), f++) : f && (u(r, d), f--); } if (!a) for (; f--; f) r.unshift(".."); !a || "" === r[0] || (r[0] && s(r[0])) || r.unshift(""); var h = r.join("/"); return c && "/" !== h.substr(-1) && (h += "/"), h; }, l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }; var f = function e(t, n) { if (t === n) return !0; if (null == t || null == n) return !1; if (Array.isArray(t)) return ( Array.isArray(n) && t.length === n.length && t.every(function (t, r) { return e(t, n[r]); }) ); var r = void 0 === t ? "undefined" : l(t); if (r !== (void 0 === n ? "undefined" : l(n))) return !1; if ("object" === r) { var i = t.valueOf(), o = n.valueOf(); if (i !== t || o !== n) return e(i, o); var a = Object.keys(t), s = Object.keys(n); return ( a.length === s.length && a.every(function (r) { return e(t[r], n[r]); }) ); } return !1; }, d = function (e) { return "/" === e.charAt(0) ? e : "/" + e; }, p = function (e) { return "/" === e.charAt(0) ? e.substr(1) : e; }, h = function (e, t) { return new RegExp("^" + t + "(\\/|\\?|#|$)", "i").test(e); }, g = function (e, t) { return h(e, t) ? e.substr(t.length) : e; }, m = function (e) { return "/" === e.charAt(e.length - 1) ? e.slice(0, -1) : e; }, y = function (e) { var t = e.pathname, n = e.search, r = e.hash, i = t || "/"; return ( n && "?" !== n && (i += "?" === n.charAt(0) ? n : "?" + n), r && "#" !== r && (i += "#" === r.charAt(0) ? r : "#" + r), i ); }, v = Object.assign || 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; }, b = function (e, t, n, r) { var i = void 0; "string" == typeof e ? ((i = (function (e) { var t = e || "/", n = "", r = "", i = t.indexOf("#"); -1 !== i && ((r = t.substr(i)), (t = t.substr(0, i))); var o = t.indexOf("?"); return ( -1 !== o && ((n = t.substr(o)), (t = t.substr(0, o))), { pathname: t, search: "?" === n ? "" : n, hash: "#" === r ? "" : r, } ); })(e)), (i.state = t)) : (void 0 === (i = v({}, e)).pathname && (i.pathname = ""), i.search ? "?" !== i.search.charAt(0) && (i.search = "?" + i.search) : (i.search = ""), i.hash ? "#" !== i.hash.charAt(0) && (i.hash = "#" + i.hash) : (i.hash = ""), void 0 !== t && void 0 === i.state && (i.state = t)); try { i.pathname = decodeURI(i.pathname); } catch (e) { throw e instanceof URIError ? new URIError( 'Pathname "' + i.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.' ) : e; } return ( n && (i.key = n), r ? i.pathname ? "/" !== i.pathname.charAt(0) && (i.pathname = c(i.pathname, r.pathname)) : (i.pathname = r.pathname) : i.pathname || (i.pathname = "/"), i ); }, _ = function (e, t) { return ( e.pathname === t.pathname && e.search === t.search && e.hash === t.hash && e.key === t.key && f(e.state, t.state) ); }, w = function () { var e = null, t = []; return { setPrompt: function (t) { return ( i()(null == e, "A history supports only one prompt at a time"), (e = t), function () { e === t && (e = null); } ); }, confirmTransitionTo: function (t, n, r, o) { if (null != e) { var a = "function" == typeof e ? e(t, n) : e; "string" == typeof a ? "function" == typeof r ? r(a, o) : (i()( !1, "A history needs a getUserConfirmation function in order to use a prompt message" ), o(!0)) : o(!1 !== a); } else o(!0); }, appendListener: function (e) { var n = !0, r = function () { n && e.apply(void 0, arguments); }; return ( t.push(r), function () { (n = !1), (t = t.filter(function (e) { return e !== r; })); } ); }, notifyListeners: function () { for (var e = arguments.length, n = Array(e), r = 0; r < e; r++) n[r] = arguments[r]; t.forEach(function (e) { return e.apply(void 0, n); }); }, }; }, T = !( "undefined" == typeof window || !window.document || !window.document.createElement ), x = function (e, t, n) { return e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent("on" + t, n); }, S = function (e, t, n) { return e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent("on" + t, n); }, k = function (e, t) { return t(window.confirm(e)); }, E = function () { return -1 === window.navigator.userAgent.indexOf("Firefox"); }, O = ("function" == typeof Symbol && Symbol.iterator, Object.assign, Object.assign || 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; }), C = "hashchange", L = { hashbang: { encodePath: function (e) { return "!" === e.charAt(0) ? e : "!/" + p(e); }, decodePath: function (e) { return "!" === e.charAt(0) ? e.substr(1) : e; }, }, noslash: { encodePath: p, decodePath: d }, slash: { encodePath: d, decodePath: d }, }, A = function () { var e = window.location.href, t = e.indexOf("#"); return -1 === t ? "" : e.substring(t + 1); }, I = function (e) { return (window.location.hash = e); }, M = function (e) { var t = window.location.href.indexOf("#"); window.location.replace( window.location.href.slice(0, t >= 0 ? t : 0) + "#" + e ); }, P = function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; a()(T, "Hash history needs a DOM"); var t = window.history, n = E(), r = e.getUserConfirmation, o = void 0 === r ? k : r, s = e.hashType, u = void 0 === s ? "slash" : s, c = e.basename ? m(d(e.basename)) : "", l = L[u], f = l.encodePath, p = l.decodePath, v = function () { var e = p(A()); return ( i()( !c || h(e, c), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + e + '" to begin with "' + c + '".' ), c && (e = g(e, c)), b(e) ); }, P = w(), R = function (e) { O(te, e), (te.length = t.length), P.notifyListeners(te.location, te.action); }, D = !1, j = null, N = function () { var e = A(), t = f(e); if (e !== t) M(t); else { var n = v(), r = te.location; if (!D && _(r, n)) return; if (j === y(n)) return; (j = null), B(n); } }, B = function (e) { if (D) (D = !1), R(); else { P.confirmTransitionTo(e, "POP", o, function (t) { t ? R({ action: "POP", location: e }) : U(e); }); } }, U = function (e) { var t = te.location, n = q.lastIndexOf(y(t)); -1 === n && (n = 0); var r = q.lastIndexOf(y(e)); -1 === r && (r = 0); var i = n - r; i && ((D = !0), $(i)); }, F = A(), z = f(F); F !== z && M(z); var H = v(), q = [y(H)], Z = function (e) { return "#" + f(c + y(e)); }, V = function (e, t) { i()( void 0 === t, "Hash history cannot push state; it is ignored" ); var n = "PUSH", r = b(e, void 0, void 0, te.location); P.confirmTransitionTo(r, n, o, function (e) { if (e) { var t = y(r), o = f(c + t); if (A() !== o) { (j = t), I(o); var a = q.lastIndexOf(y(te.location)), s = q.slice(0, -1 === a ? 0 : a + 1); s.push(t), (q = s), R({ action: n, location: r }); } else i()( !1, "Hash history cannot PUSH the same path; a new entry will not be added to the history stack" ), R(); } }); }, W = function (e, t) { i()( void 0 === t, "Hash history cannot replace state; it is ignored" ); var n = "REPLACE", r = b(e, void 0, void 0, te.location); P.confirmTransitionTo(r, n, o, function (e) { if (e) { var t = y(r), i = f(c + t); A() !== i && ((j = t), M(i)); var o = q.indexOf(y(te.location)); -1 !== o && (q[o] = t), R({ action: n, location: r }); } }); }, $ = function (e) { i()( n, "Hash history go(n) causes a full page reload in this browser" ), t.go(e); }, G = function () { return $(-1); }, Y = function () { return $(1); }, K = 0, X = function (e) { 1 === (K += e) ? x(window, C, N) : 0 === K && S(window, C, N); }, Q = !1, J = function () { var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0], t = P.setPrompt(e); return ( Q || (X(1), (Q = !0)), function () { return Q && ((Q = !1), X(-1)), t(); } ); }, ee = function (e) { var t = P.appendListener(e); return ( X(1), function () { X(-1), t(); } ); }, te = { length: t.length, action: "POP", location: H, createHref: Z, push: V, replace: W, go: $, goBack: G, goForward: Y, block: J, listen: ee, }; return te; }; "function" == typeof Symbol && Symbol.iterator, Object.assign; }, 8679: function (e, t, n) { "use strict"; var r = n(59864), i = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0, }, o = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0, }, a = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0, }, s = {}; function u(e) { return r.isMemo(e) ? a : s[e.$$typeof] || i; } (s[r.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0, }), (s[r.Memo] = a); var c = Object.defineProperty, l = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, h = Object.prototype; e.exports = function e(t, n, r) { if ("string" != typeof n) { if (h) { var i = p(n); i && i !== h && e(t, i, r); } var a = l(n); f && (a = a.concat(f(n))); for (var s = u(t), g = u(n), m = 0; m < a.length; ++m) { var y = a[m]; if (!(o[y] || (r && r[y]) || (g && g[y]) || (s && s[y]))) { var v = d(n, y); try { c(t, y, v); } catch (e) {} } } } return t; }; }, 95449: function (e, t, n) { function r(e) { (this._cbs = e || {}), (this.events = []); } e.exports = r; var i = n(23719).EVENTS; Object.keys(i).forEach(function (e) { if (0 === i[e]) (e = "on" + e), (r.prototype[e] = function () { this.events.push([e]), this._cbs[e] && this._cbs[e](); }); else if (1 === i[e]) (e = "on" + e), (r.prototype[e] = function (t) { this.events.push([e, t]), this._cbs[e] && this._cbs[e](t); }); else { if (2 !== i[e]) throw Error("wrong number of arguments"); (e = "on" + e), (r.prototype[e] = function (t, n) { this.events.push([e, t, n]), this._cbs[e] && this._cbs[e](t, n); }); } }), (r.prototype.onreset = function () { (this.events = []), this._cbs.onreset && this._cbs.onreset(); }), (r.prototype.restart = function () { this._cbs.onreset && this._cbs.onreset(); for (var e = 0, t = this.events.length; e < t; e++) if (this._cbs[this.events[e][0]]) { var n = this.events[e].length; 1 === n ? this._cbs[this.events[e][0]]() : 2 === n ? this._cbs[this.events[e][0]](this.events[e][1]) : this._cbs[this.events[e][0]]( this.events[e][1], this.events[e][2] ); } }); }, 63870: function (e, t, n) { var r = n(23719), i = r.DomHandler, o = r.DomUtils; function a(e, t) { this.init(e, t); } function s(e, t) { return o.getElementsByTagName(e, t, !0); } function u(e, t) { return o.getElementsByTagName(e, t, !0, 1)[0]; } function c(e, t, n) { return o.getText(o.getElementsByTagName(e, t, n, 1)).trim(); } function l(e, t, n, r, i) { var o = c(n, r, i); o && (e[t] = o); } n(35717)(a, i), (a.prototype.init = i); var f = function (e) { return "rss" === e || "feed" === e || "rdf:RDF" === e; }; (a.prototype.onend = function () { var e, t, n = {}, r = u(f, this.dom); r && ("feed" === r.name ? ((t = r.children), (n.type = "atom"), l(n, "id", "id", t), l(n, "title", "title", t), (e = u("link", t)) && (e = e.attribs) && (e = e.href) && (n.link = e), l(n, "description", "subtitle", t), (e = c("updated", t)) && (n.updated = new Date(e)), l(n, "author", "email", t, !0), (n.items = s("entry", t).map(function (e) { var t, n = {}; return ( l(n, "id", "id", (e = e.children)), l(n, "title", "title", e), (t = u("link", e)) && (t = t.attribs) && (t = t.href) && (n.link = t), (t = c("summary", e) || c("content", e)) && (n.description = t), (t = c("updated", e)) && (n.pubDate = new Date(t)), n ); }))) : ((t = u("channel", r.children).children), (n.type = r.name.substr(0, 3)), (n.id = ""), l(n, "title", "title", t), l(n, "link", "link", t), l(n, "description", "description", t), (e = c("lastBuildDate", t)) && (n.updated = new Date(e)), l(n, "author", "managingEditor", t, !0), (n.items = s("item", r.children).map(function (e) { var t, n = {}; return ( l(n, "id", "guid", (e = e.children)), l(n, "title", "title", e), l(n, "link", "link", e), l(n, "description", "description", e), (t = c("pubDate", e)) && (n.pubDate = new Date(t)), n ); })))), (this.dom = n), i.prototype._handleCallback.call( this, r ? null : Error("couldn't find root of feed") ); }), (e.exports = a); }, 50763: function (e, t, n) { var r = n(39889), i = { input: !0, option: !0, optgroup: !0, select: !0, button: !0, datalist: !0, textarea: !0, }, o = { tr: { tr: !0, th: !0, td: !0 }, th: { th: !0 }, td: { thead: !0, th: !0, td: !0 }, body: { head: !0, link: !0, script: !0 }, li: { li: !0 }, p: { p: !0 }, h1: { p: !0 }, h2: { p: !0 }, h3: { p: !0 }, h4: { p: !0 }, h5: { p: !0 }, h6: { p: !0 }, select: i, input: i, output: i, button: i, datalist: i, textarea: i, option: { option: !0 }, optgroup: { optgroup: !0 }, }, a = { __proto__: null, area: !0, base: !0, basefont: !0, br: !0, col: !0, command: !0, embed: !0, frame: !0, hr: !0, img: !0, input: !0, isindex: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0, path: !0, circle: !0, ellipse: !0, line: !0, rect: !0, use: !0, stop: !0, polyline: !0, polygon: !0, }, s = /\s|\//; function u(e, t) { (this._options = t || {}), (this._cbs = e || {}), (this._tagname = ""), (this._attribname = ""), (this._attribvalue = ""), (this._attribs = null), (this._stack = []), (this.startIndex = 0), (this.endIndex = null), (this._lowerCaseTagNames = "lowerCaseTags" in this._options ? !!this._options.lowerCaseTags : !this._options.xmlMode), (this._lowerCaseAttributeNames = "lowerCaseAttributeNames" in this._options ? !!this._options.lowerCaseAttributeNames : !this._options.xmlMode), this._options.Tokenizer && (r = this._options.Tokenizer), (this._tokenizer = new r(this._options, this)), this._cbs.onparserinit && this._cbs.onparserinit(this); } n(35717)(u, n(17187).EventEmitter), (u.prototype._updatePosition = function (e) { null === this.endIndex ? this._tokenizer._sectionStart <= e ? (this.startIndex = 0) : (this.startIndex = this._tokenizer._sectionStart - e) : (this.startIndex = this.endIndex + 1), (this.endIndex = this._tokenizer.getAbsoluteIndex()); }), (u.prototype.ontext = function (e) { this._updatePosition(1), this.endIndex--, this._cbs.ontext && this._cbs.ontext(e); }), (u.prototype.onopentagname = function (e) { if ( (this._lowerCaseTagNames && (e = e.toLowerCase()), (this._tagname = e), !this._options.xmlMode && e in o) ) for ( var t; (t = this._stack[this._stack.length - 1]) in o[e]; this.onclosetag(t) ); (!this._options.xmlMode && e in a) || this._stack.push(e), this._cbs.onopentagname && this._cbs.onopentagname(e), this._cbs.onopentag && (this._attribs = {}); }), (u.prototype.onopentagend = function () { this._updatePosition(1), this._attribs && (this._cbs.onopentag && this._cbs.onopentag(this._tagname, this._attribs), (this._attribs = null)), !this._options.xmlMode && this._cbs.onclosetag && this._tagname in a && this._cbs.onclosetag(this._tagname), (this._tagname = ""); }), (u.prototype.onclosetag = function (e) { if ( (this._updatePosition(1), this._lowerCaseTagNames && (e = e.toLowerCase()), !this._stack.length || (e in a && !this._options.xmlMode)) ) this._options.xmlMode || ("br" !== e && "p" !== e) || (this.onopentagname(e), this._closeCurrentTag()); else { var t = this._stack.lastIndexOf(e); if (-1 !== t) if (this._cbs.onclosetag) for (t = this._stack.length - t; t--; ) this._cbs.onclosetag(this._stack.pop()); else this._stack.length = t; else "p" !== e || this._options.xmlMode || (this.onopentagname(e), this._closeCurrentTag()); } }), (u.prototype.onselfclosingtag = function () { this._options.xmlMode || this._options.recognizeSelfClosing ? this._closeCurrentTag() : this.onopentagend(); }), (u.prototype._closeCurrentTag = function () { var e = this._tagname; this.onopentagend(), this._stack[this._stack.length - 1] === e && (this._cbs.onclosetag && this._cbs.onclosetag(e), this._stack.pop()); }), (u.prototype.onattribname = function (e) { this._lowerCaseAttributeNames && (e = e.toLowerCase()), (this._attribname = e); }), (u.prototype.onattribdata = function (e) { this._attribvalue += e; }), (u.prototype.onattribend = function () { this._cbs.onattribute && this._cbs.onattribute(this._attribname, this._attribvalue), this._attribs && !Object.prototype.hasOwnProperty.call( this._attribs, this._attribname ) && (this._attribs[this._attribname] = this._attribvalue), (this._attribname = ""), (this._attribvalue = ""); }), (u.prototype._getInstructionName = function (e) { var t = e.search(s), n = t < 0 ? e : e.substr(0, t); return this._lowerCaseTagNames && (n = n.toLowerCase()), n; }), (u.prototype.ondeclaration = function (e) { if (this._cbs.onprocessinginstruction) { var t = this._getInstructionName(e); this._cbs.onprocessinginstruction("!" + t, "!" + e); } }), (u.prototype.onprocessinginstruction = function (e) { if (this._cbs.onprocessinginstruction) { var t = this._getInstructionName(e); this._cbs.onprocessinginstruction("?" + t, "?" + e); } }), (u.prototype.oncomment = function (e) { this._updatePosition(4), this._cbs.oncomment && this._cbs.oncomment(e), this._cbs.oncommentend && this._cbs.oncommentend(); }), (u.prototype.oncdata = function (e) { this._updatePosition(1), this._options.xmlMode || this._options.recognizeCDATA ? (this._cbs.oncdatastart && this._cbs.oncdatastart(), this._cbs.ontext && this._cbs.ontext(e), this._cbs.oncdataend && this._cbs.oncdataend()) : this.oncomment("[CDATA[" + e + "]]"); }), (u.prototype.onerror = function (e) { this._cbs.onerror && this._cbs.onerror(e); }), (u.prototype.onend = function () { if (this._cbs.onclosetag) for ( var e = this._stack.length; e > 0; this._cbs.onclosetag(this._stack[--e]) ); this._cbs.onend && this._cbs.onend(); }), (u.prototype.reset = function () { this._cbs.onreset && this._cbs.onreset(), this._tokenizer.reset(), (this._tagname = ""), (this._attribname = ""), (this._attribs = null), (this._stack = []), this._cbs.onparserinit && this._cbs.onparserinit(this); }), (u.prototype.parseComplete = function (e) { this.reset(), this.end(e); }), (u.prototype.write = function (e) { this._tokenizer.write(e); }), (u.prototype.end = function (e) { this._tokenizer.end(e); }), (u.prototype.pause = function () { this._tokenizer.pause(); }), (u.prototype.resume = function () { this._tokenizer.resume(); }), (u.prototype.parseChunk = u.prototype.write), (u.prototype.done = u.prototype.end), (e.exports = u); }, 76321: function (e, t, n) { function r(e) { this._cbs = e || {}; } e.exports = r; var i = n(23719).EVENTS; Object.keys(i).forEach(function (e) { if (0 === i[e]) (e = "on" + e), (r.prototype[e] = function () { this._cbs[e] && this._cbs[e](); }); else if (1 === i[e]) (e = "on" + e), (r.prototype[e] = function (t) { this._cbs[e] && this._cbs[e](t); }); else { if (2 !== i[e]) throw Error("wrong number of arguments"); (e = "on" + e), (r.prototype[e] = function (t, n) { this._cbs[e] && this._cbs[e](t, n); }); } }); }, 89924: function (e, t, n) { e.exports = i; var r = n(83621); function i(e) { r.call(this, new o(this), e); } function o(e) { this.scope = e; } n(35717)(i, r), (i.prototype.readable = !0); var a = n(23719).EVENTS; Object.keys(a).forEach(function (e) { if (0 === a[e]) o.prototype["on" + e] = function () { this.scope.emit(e); }; else if (1 === a[e]) o.prototype["on" + e] = function (t) { this.scope.emit(e, t); }; else { if (2 !== a[e]) throw Error("wrong number of arguments!"); o.prototype["on" + e] = function (t, n) { this.scope.emit(e, t, n); }; } }); }, 39889: function (e, t, n) { e.exports = ve; var r, i, o = n(58894), a = n(23042), s = n(60317), u = n(51373), c = 0, l = c++, f = c++, d = c++, p = c++, h = c++, g = c++, m = c++, y = c++, v = c++, b = c++, _ = c++, w = c++, T = c++, x = c++, S = c++, k = c++, E = c++, O = c++, C = c++, L = c++, A = c++, I = c++, M = c++, P = c++, R = c++, D = c++, j = c++, N = c++, B = c++, U = c++, F = c++, z = c++, H = c++, q = c++, Z = c++, V = c++, W = c++, $ = c++, G = c++, Y = c++, K = c++, X = c++, Q = c++, J = c++, ee = c++, te = c++, ne = c++, re = c++, ie = c++, oe = c++, ae = c++, se = c++, ue = c++, ce = c++, le = c++, fe = 0, de = fe++, pe = fe++, he = fe++; function ge(e) { return ( " " === e || "\n" === e || "\t" === e || "\f" === e || "\r" === e ); } function me(e, t, n) { var r = e.toLowerCase(); return e === r ? function (e) { e === r ? (this._state = t) : ((this._state = n), this._index--); } : function (i) { i === r || i === e ? (this._state = t) : ((this._state = n), this._index--); }; } function ye(e, t) { var n = e.toLowerCase(); return function (r) { r === n || r === e ? (this._state = t) : ((this._state = d), this._index--); }; } function ve(e, t) { (this._state = l), (this._buffer = ""), (this._sectionStart = 0), (this._index = 0), (this._bufferOffset = 0), (this._baseState = l), (this._special = de), (this._cbs = t), (this._running = !0), (this._ended = !1), (this._xmlMode = !(!e || !e.xmlMode)), (this._decodeEntities = !(!e || !e.decodeEntities)); } (ve.prototype._stateText = function (e) { "<" === e ? (this._index > this._sectionStart && this._cbs.ontext(this._getSection()), (this._state = f), (this._sectionStart = this._index)) : this._decodeEntities && this._special === de && "&" === e && (this._index > this._sectionStart && this._cbs.ontext(this._getSection()), (this._baseState = l), (this._state = ae), (this._sectionStart = this._index)); }), (ve.prototype._stateBeforeTagName = function (e) { "/" === e ? (this._state = h) : "<" === e ? (this._cbs.ontext(this._getSection()), (this._sectionStart = this._index)) : ">" === e || this._special !== de || ge(e) ? (this._state = l) : "!" === e ? ((this._state = S), (this._sectionStart = this._index + 1)) : "?" === e ? ((this._state = E), (this._sectionStart = this._index + 1)) : ((this._state = this._xmlMode || ("s" !== e && "S" !== e) ? d : F), (this._sectionStart = this._index)); }), (ve.prototype._stateInTagName = function (e) { ("/" === e || ">" === e || ge(e)) && (this._emitToken("onopentagname"), (this._state = y), this._index--); }), (ve.prototype._stateBeforeCloseingTagName = function (e) { ge(e) || (">" === e ? (this._state = l) : this._special !== de ? "s" === e || "S" === e ? (this._state = z) : ((this._state = l), this._index--) : ((this._state = g), (this._sectionStart = this._index))); }), (ve.prototype._stateInCloseingTagName = function (e) { (">" === e || ge(e)) && (this._emitToken("onclosetag"), (this._state = m), this._index--); }), (ve.prototype._stateAfterCloseingTagName = function (e) { ">" === e && ((this._state = l), (this._sectionStart = this._index + 1)); }), (ve.prototype._stateBeforeAttributeName = function (e) { ">" === e ? (this._cbs.onopentagend(), (this._state = l), (this._sectionStart = this._index + 1)) : "/" === e ? (this._state = p) : ge(e) || ((this._state = v), (this._sectionStart = this._index)); }), (ve.prototype._stateInSelfClosingTag = function (e) { ">" === e ? (this._cbs.onselfclosingtag(), (this._state = l), (this._sectionStart = this._index + 1)) : ge(e) || ((this._state = y), this._index--); }), (ve.prototype._stateInAttributeName = function (e) { ("=" === e || "/" === e || ">" === e || ge(e)) && (this._cbs.onattribname(this._getSection()), (this._sectionStart = -1), (this._state = b), this._index--); }), (ve.prototype._stateAfterAttributeName = function (e) { "=" === e ? (this._state = _) : "/" === e || ">" === e ? (this._cbs.onattribend(), (this._state = y), this._index--) : ge(e) || (this._cbs.onattribend(), (this._state = v), (this._sectionStart = this._index)); }), (ve.prototype._stateBeforeAttributeValue = function (e) { '"' === e ? ((this._state = w), (this._sectionStart = this._index + 1)) : "'" === e ? ((this._state = T), (this._sectionStart = this._index + 1)) : ge(e) || ((this._state = x), (this._sectionStart = this._index), this._index--); }), (ve.prototype._stateInAttributeValueDoubleQuotes = function (e) { '"' === e ? (this._emitToken("onattribdata"), this._cbs.onattribend(), (this._state = y)) : this._decodeEntities && "&" === e && (this._emitToken("onattribdata"), (this._baseState = this._state), (this._state = ae), (this._sectionStart = this._index)); }), (ve.prototype._stateInAttributeValueSingleQuotes = function (e) { "'" === e ? (this._emitToken("onattribdata"), this._cbs.onattribend(), (this._state = y)) : this._decodeEntities && "&" === e && (this._emitToken("onattribdata"), (this._baseState = this._state), (this._state = ae), (this._sectionStart = this._index)); }), (ve.prototype._stateInAttributeValueNoQuotes = function (e) { ge(e) || ">" === e ? (this._emitToken("onattribdata"), this._cbs.onattribend(), (this._state = y), this._index--) : this._decodeEntities && "&" === e && (this._emitToken("onattribdata"), (this._baseState = this._state), (this._state = ae), (this._sectionStart = this._index)); }), (ve.prototype._stateBeforeDeclaration = function (e) { this._state = "[" === e ? I : "-" === e ? O : k; }), (ve.prototype._stateInDeclaration = function (e) { ">" === e && (this._cbs.ondeclaration(this._getSection()), (this._state = l), (this._sectionStart = this._index + 1)); }), (ve.prototype._stateInProcessingInstruction = function (e) { ">" === e && (this._cbs.onprocessinginstruction(this._getSection()), (this._state = l), (this._sectionStart = this._index + 1)); }), (ve.prototype._stateBeforeComment = function (e) { "-" === e ? ((this._state = C), (this._sectionStart = this._index + 1)) : (this._state = k); }), (ve.prototype._stateInComment = function (e) { "-" === e && (this._state = L); }), (ve.prototype._stateAfterComment1 = function (e) { this._state = "-" === e ? A : C; }), (ve.prototype._stateAfterComment2 = function (e) { ">" === e ? (this._cbs.oncomment( this._buffer.substring(this._sectionStart, this._index - 2) ), (this._state = l), (this._sectionStart = this._index + 1)) : "-" !== e && (this._state = C); }), (ve.prototype._stateBeforeCdata1 = me("C", M, k)), (ve.prototype._stateBeforeCdata2 = me("D", P, k)), (ve.prototype._stateBeforeCdata3 = me("A", R, k)), (ve.prototype._stateBeforeCdata4 = me("T", D, k)), (ve.prototype._stateBeforeCdata5 = me("A", j, k)), (ve.prototype._stateBeforeCdata6 = function (e) { "[" === e ? ((this._state = N), (this._sectionStart = this._index + 1)) : ((this._state = k), this._index--); }), (ve.prototype._stateInCdata = function (e) { "]" === e && (this._state = B); }), (ve.prototype._stateAfterCdata1 = ((r = "]"), (i = U), function (e) { e === r && (this._state = i); })), (ve.prototype._stateAfterCdata2 = function (e) { ">" === e ? (this._cbs.oncdata( this._buffer.substring(this._sectionStart, this._index - 2) ), (this._state = l), (this._sectionStart = this._index + 1)) : "]" !== e && (this._state = N); }), (ve.prototype._stateBeforeSpecial = function (e) { "c" === e || "C" === e ? (this._state = H) : "t" === e || "T" === e ? (this._state = Q) : ((this._state = d), this._index--); }), (ve.prototype._stateBeforeSpecialEnd = function (e) { this._special !== pe || ("c" !== e && "C" !== e) ? this._special !== he || ("t" !== e && "T" !== e) ? (this._state = l) : (this._state = ne) : (this._state = $); }), (ve.prototype._stateBeforeScript1 = ye("R", q)), (ve.prototype._stateBeforeScript2 = ye("I", Z)), (ve.prototype._stateBeforeScript3 = ye("P", V)), (ve.prototype._stateBeforeScript4 = ye("T", W)), (ve.prototype._stateBeforeScript5 = function (e) { ("/" === e || ">" === e || ge(e)) && (this._special = pe), (this._state = d), this._index--; }), (ve.prototype._stateAfterScript1 = me("R", G, l)), (ve.prototype._stateAfterScript2 = me("I", Y, l)), (ve.prototype._stateAfterScript3 = me("P", K, l)), (ve.prototype._stateAfterScript4 = me("T", X, l)), (ve.prototype._stateAfterScript5 = function (e) { ">" === e || ge(e) ? ((this._special = de), (this._state = g), (this._sectionStart = this._index - 6), this._index--) : (this._state = l); }), (ve.prototype._stateBeforeStyle1 = ye("Y", J)), (ve.prototype._stateBeforeStyle2 = ye("L", ee)), (ve.prototype._stateBeforeStyle3 = ye("E", te)), (ve.prototype._stateBeforeStyle4 = function (e) { ("/" === e || ">" === e || ge(e)) && (this._special = he), (this._state = d), this._index--; }), (ve.prototype._stateAfterStyle1 = me("Y", re, l)), (ve.prototype._stateAfterStyle2 = me("L", ie, l)), (ve.prototype._stateAfterStyle3 = me("E", oe, l)), (ve.prototype._stateAfterStyle4 = function (e) { ">" === e || ge(e) ? ((this._special = de), (this._state = g), (this._sectionStart = this._index - 5), this._index--) : (this._state = l); }), (ve.prototype._stateBeforeEntity = me("#", se, ue)), (ve.prototype._stateBeforeNumericEntity = me("X", le, ce)), (ve.prototype._parseNamedEntityStrict = function () { if (this._sectionStart + 1 < this._index) { var e = this._buffer.substring(this._sectionStart + 1, this._index), t = this._xmlMode ? u : a; t.hasOwnProperty(e) && (this._emitPartial(t[e]), (this._sectionStart = this._index + 1)); } }), (ve.prototype._parseLegacyEntity = function () { var e = this._sectionStart + 1, t = this._index - e; for (t > 6 && (t = 6); t >= 2; ) { var n = this._buffer.substr(e, t); if (s.hasOwnProperty(n)) return ( this._emitPartial(s[n]), void (this._sectionStart += t + 1) ); t--; } }), (ve.prototype._stateInNamedEntity = function (e) { ";" === e ? (this._parseNamedEntityStrict(), this._sectionStart + 1 < this._index && !this._xmlMode && this._parseLegacyEntity(), (this._state = this._baseState)) : (e < "a" || e > "z") && (e < "A" || e > "Z") && (e < "0" || e > "9") && (this._xmlMode || this._sectionStart + 1 === this._index || (this._baseState !== l ? "=" !== e && this._parseNamedEntityStrict() : this._parseLegacyEntity()), (this._state = this._baseState), this._index--); }), (ve.prototype._decodeNumericEntity = function (e, t) { var n = this._sectionStart + e; if (n !== this._index) { var r = this._buffer.substring(n, this._index), i = parseInt(r, t); this._emitPartial(o(i)), (this._sectionStart = this._index); } else this._sectionStart--; this._state = this._baseState; }), (ve.prototype._stateInNumericEntity = function (e) { ";" === e ? (this._decodeNumericEntity(2, 10), this._sectionStart++) : (e < "0" || e > "9") && (this._xmlMode ? (this._state = this._baseState) : this._decodeNumericEntity(2, 10), this._index--); }), (ve.prototype._stateInHexEntity = function (e) { ";" === e ? (this._decodeNumericEntity(3, 16), this._sectionStart++) : (e < "a" || e > "f") && (e < "A" || e > "F") && (e < "0" || e > "9") && (this._xmlMode ? (this._state = this._baseState) : this._decodeNumericEntity(3, 16), this._index--); }), (ve.prototype._cleanup = function () { this._sectionStart < 0 ? ((this._buffer = ""), (this._bufferOffset += this._index), (this._index = 0)) : this._running && (this._state === l ? (this._sectionStart !== this._index && this._cbs.ontext(this._buffer.substr(this._sectionStart)), (this._buffer = ""), (this._bufferOffset += this._index), (this._index = 0)) : this._sectionStart === this._index ? ((this._buffer = ""), (this._bufferOffset += this._index), (this._index = 0)) : ((this._buffer = this._buffer.substr(this._sectionStart)), (this._index -= this._sectionStart), (this._bufferOffset += this._sectionStart)), (this._sectionStart = 0)); }), (ve.prototype.write = function (e) { this._ended && this._cbs.onerror(Error(".write() after done!")), (this._buffer += e), this._parse(); }), (ve.prototype._parse = function () { for (; this._index < this._buffer.length && this._running; ) { var e = this._buffer.charAt(this._index); this._state === l ? this._stateText(e) : this._state === f ? this._stateBeforeTagName(e) : this._state === d ? this._stateInTagName(e) : this._state === h ? this._stateBeforeCloseingTagName(e) : this._state === g ? this._stateInCloseingTagName(e) : this._state === m ? this._stateAfterCloseingTagName(e) : this._state === p ? this._stateInSelfClosingTag(e) : this._state === y ? this._stateBeforeAttributeName(e) : this._state === v ? this._stateInAttributeName(e) : this._state === b ? this._stateAfterAttributeName(e) : this._state === _ ? this._stateBeforeAttributeValue(e) : this._state === w ? this._stateInAttributeValueDoubleQuotes(e) : this._state === T ? this._stateInAttributeValueSingleQuotes(e) : this._state === x ? this._stateInAttributeValueNoQuotes(e) : this._state === S ? this._stateBeforeDeclaration(e) : this._state === k ? this._stateInDeclaration(e) : this._state === E ? this._stateInProcessingInstruction(e) : this._state === O ? this._stateBeforeComment(e) : this._state === C ? this._stateInComment(e) : this._state === L ? this._stateAfterComment1(e) : this._state === A ? this._stateAfterComment2(e) : this._state === I ? this._stateBeforeCdata1(e) : this._state === M ? this._stateBeforeCdata2(e) : this._state === P ? this._stateBeforeCdata3(e) : this._state === R ? this._stateBeforeCdata4(e) : this._state === D ? this._stateBeforeCdata5(e) : this._state === j ? this._stateBeforeCdata6(e) : this._state === N ? this._stateInCdata(e) : this._state === B ? this._stateAfterCdata1(e) : this._state === U ? this._stateAfterCdata2(e) : this._state === F ? this._stateBeforeSpecial(e) : this._state === z ? this._stateBeforeSpecialEnd(e) : this._state === H ? this._stateBeforeScript1(e) : this._state === q ? this._stateBeforeScript2(e) : this._state === Z ? this._stateBeforeScript3(e) : this._state === V ? this._stateBeforeScript4(e) : this._state === W ? this._stateBeforeScript5(e) : this._state === $ ? this._stateAfterScript1(e) : this._state === G ? this._stateAfterScript2(e) : this._state === Y ? this._stateAfterScript3(e) : this._state === K ? this._stateAfterScript4(e) : this._state === X ? this._stateAfterScript5(e) : this._state === Q ? this._stateBeforeStyle1(e) : this._state === J ? this._stateBeforeStyle2(e) : this._state === ee ? this._stateBeforeStyle3(e) : this._state === te ? this._stateBeforeStyle4(e) : this._state === ne ? this._stateAfterStyle1(e) : this._state === re ? this._stateAfterStyle2(e) : this._state === ie ? this._stateAfterStyle3(e) : this._state === oe ? this._stateAfterStyle4(e) : this._state === ae ? this._stateBeforeEntity(e) : this._state === se ? this._stateBeforeNumericEntity(e) : this._state === ue ? this._stateInNamedEntity(e) : this._state === ce ? this._stateInNumericEntity(e) : this._state === le ? this._stateInHexEntity(e) : this._cbs.onerror(Error("unknown _state"), this._state), this._index++; } this._cleanup(); }), (ve.prototype.pause = function () { this._running = !1; }), (ve.prototype.resume = function () { (this._running = !0), this._index < this._buffer.length && this._parse(), this._ended && this._finish(); }), (ve.prototype.end = function (e) { this._ended && this._cbs.onerror(Error(".end() after done!")), e && this.write(e), (this._ended = !0), this._running && this._finish(); }), (ve.prototype._finish = function () { this._sectionStart < this._index && this._handleTrailingData(), this._cbs.onend(); }), (ve.prototype._handleTrailingData = function () { var e = this._buffer.substr(this._sectionStart); this._state === N || this._state === B || this._state === U ? this._cbs.oncdata(e) : this._state === C || this._state === L || this._state === A ? this._cbs.oncomment(e) : this._state !== ue || this._xmlMode ? this._state !== ce || this._xmlMode ? this._state !== le || this._xmlMode ? this._state !== d && this._state !== y && this._state !== _ && this._state !== b && this._state !== v && this._state !== T && this._state !== w && this._state !== x && this._state !== g && this._cbs.ontext(e) : (this._decodeNumericEntity(3, 16), this._sectionStart < this._index && ((this._state = this._baseState), this._handleTrailingData())) : (this._decodeNumericEntity(2, 10), this._sectionStart < this._index && ((this._state = this._baseState), this._handleTrailingData())) : (this._parseLegacyEntity(), this._sectionStart < this._index && ((this._state = this._baseState), this._handleTrailingData())); }), (ve.prototype.reset = function () { ve.call( this, { xmlMode: this._xmlMode, decodeEntities: this._decodeEntities }, this._cbs ); }), (ve.prototype.getAbsoluteIndex = function () { return this._bufferOffset + this._index; }), (ve.prototype._getSection = function () { return this._buffer.substring(this._sectionStart, this._index); }), (ve.prototype._emitToken = function (e) { this._cbs[e](this._getSection()), (this._sectionStart = -1); }), (ve.prototype._emitPartial = function (e) { this._baseState !== l ? this._cbs.onattribdata(e) : this._cbs.ontext(e); }); }, 83621: function (e, t, n) { e.exports = s; var r = n(50763), i = n(42830).Writable || n(50247).Writable, o = n(32553).s, a = n(48764).Buffer; function s(e, t) { var n = (this._parser = new r(e, t)), a = (this._decoder = new o()); i.call(this, { decodeStrings: !1 }), this.once("finish", function () { n.end(a.end()); }); } n(35717)(s, i), (i.prototype._write = function (e, t, n) { e instanceof a && (e = this._decoder.write(e)), this._parser.write(e), n(); }); }, 23719: function (e, t, n) { var r = n(50763), i = n(29730); function o(t, n) { return delete e.exports[t], (e.exports[t] = n), n; } e.exports = { Parser: r, Tokenizer: n(39889), ElementType: n(64431), DomHandler: i, get FeedHandler() { return o("FeedHandler", n(63870)); }, get Stream() { return o("Stream", n(89924)); }, get WritableStream() { return o("WritableStream", n(83621)); }, get ProxyHandler() { return o("ProxyHandler", n(76321)); }, get DomUtils() { return o("DomUtils", n(12417)); }, get CollectingHandler() { return o("CollectingHandler", n(95449)); }, DefaultHandler: i, get RssHandler() { return o("RssHandler", this.FeedHandler); }, parseDOM: function (e, t) { var n = new i(t); return new r(n, t).end(e), n.dom; }, parseFeed: function (t, n) { var i = new e.exports.FeedHandler(n); return new r(i, n).end(t), i.dom; }, createDomStream: function (e, t, n) { var o = new i(e, t, n); return new r(o, t); }, EVENTS: { attribute: 2, cdatastart: 0, cdataend: 0, text: 1, processinginstruction: 2, comment: 1, commentend: 0, closetag: 1, opentag: 2, opentagname: 1, error: 1, end: 0, }, }; }, 29730: function (e, t, n) { var r = n(64431), i = /\s+/g, o = n(16805), a = n(7359); function s(e, t, n) { "object" == typeof e ? ((n = t), (t = e), (e = null)) : "function" == typeof t && ((n = t), (t = u)), (this._callback = e), (this._options = t || u), (this._elementCB = n), (this.dom = []), (this._done = !1), (this._tagStack = []), (this._parser = this._parser || null); } var u = { normalizeWhitespace: !1, withStartIndices: !1, withEndIndices: !1, }; (s.prototype.onparserinit = function (e) { this._parser = e; }), (s.prototype.onreset = function () { s.call(this, this._callback, this._options, this._elementCB); }), (s.prototype.onend = function () { this._done || ((this._done = !0), (this._parser = null), this._handleCallback(null)); }), (s.prototype._handleCallback = s.prototype.onerror = function (e) { if ("function" == typeof this._callback) this._callback(e, this.dom); else if (e) throw e; }), (s.prototype.onclosetag = function () { var e = this._tagStack.pop(); this._options.withEndIndices && e && (e.endIndex = this._parser.endIndex), this._elementCB && this._elementCB(e); }), (s.prototype._createDomElement = function (e) { if (!this._options.withDomLvl1) return e; var t; for (var n in ((t = "tag" === e.type ? Object.create(a) : Object.create(o)), e)) e.hasOwnProperty(n) && (t[n] = e[n]); return t; }), (s.prototype._addDomElement = function (e) { var t = this._tagStack[this._tagStack.length - 1], n = t ? t.children : this.dom, r = n[n.length - 1]; (e.next = null), this._options.withStartIndices && (e.startIndex = this._parser.startIndex), this._options.withEndIndices && (e.endIndex = this._parser.endIndex), r ? ((e.prev = r), (r.next = e)) : (e.prev = null), n.push(e), (e.parent = t || null); }), (s.prototype.onopentag = function (e, t) { var n = { type: "script" === e ? r.Script : "style" === e ? r.Style : r.Tag, name: e, attribs: t, children: [], }, i = this._createDomElement(n); this._addDomElement(i), this._tagStack.push(i); }), (s.prototype.ontext = function (e) { var t, n = this._options.normalizeWhitespace || this._options.ignoreWhitespace; if ( !this._tagStack.length && this.dom.length && (t = this.dom[this.dom.length - 1]).type === r.Text ) n ? (t.data = (t.data + e).replace(i, " ")) : (t.data += e); else if ( this._tagStack.length && (t = this._tagStack[this._tagStack.length - 1]) && (t = t.children[t.children.length - 1]) && t.type === r.Text ) n ? (t.data = (t.data + e).replace(i, " ")) : (t.data += e); else { n && (e = e.replace(i, " ")); var o = this._createDomElement({ data: e, type: r.Text }); this._addDomElement(o); } }), (s.prototype.oncomment = function (e) { var t = this._tagStack[this._tagStack.length - 1]; if (t && t.type === r.Comment) t.data += e; else { var n = { data: e, type: r.Comment }, i = this._createDomElement(n); this._addDomElement(i), this._tagStack.push(i); } }), (s.prototype.oncdatastart = function () { var e = { children: [{ data: "", type: r.Text }], type: r.CDATA }, t = this._createDomElement(e); this._addDomElement(t), this._tagStack.push(t); }), (s.prototype.oncommentend = s.prototype.oncdataend = function () { this._tagStack.pop(); }), (s.prototype.onprocessinginstruction = function (e, t) { var n = this._createDomElement({ name: e, data: t, type: r.Directive, }); this._addDomElement(n); }), (e.exports = s); }, 7359: function (e, t, n) { var r = n(16805), i = (e.exports = Object.create(r)), o = { tagName: "name" }; Object.keys(o).forEach(function (e) { var t = o[e]; Object.defineProperty(i, e, { get: function () { return this[t] || null; }, set: function (e) { return (this[t] = e), e; }, }); }); }, 16805: function (e) { var t = (e.exports = { get firstChild() { var e = this.children; return (e && e[0]) || null; }, get lastChild() { var e = this.children; return (e && e[e.length - 1]) || null; }, get nodeType() { return r[this.type] || r.element; }, }), n = { tagName: "name", childNodes: "children", parentNode: "parent", previousSibling: "prev", nextSibling: "next", nodeValue: "data", }, r = { element: 1, text: 3, cdata: 4, comment: 8 }; Object.keys(n).forEach(function (e) { var r = n[e]; Object.defineProperty(t, e, { get: function () { return this[r] || null; }, set: function (e) { return (this[r] = e), e; }, }); }); }, 58894: function (e, t, n) { var r = n(42968); e.exports = function (e) { if ((e >= 55296 && e <= 57343) || e > 1114111) return "�"; e in r && (e = r[e]); var t = ""; e > 65535 && ((e -= 65536), (t += String.fromCharCode(((e >>> 10) & 1023) | 55296)), (e = 56320 | (1023 & e))); return (t += String.fromCharCode(e)); }; }, 80645: function (e, t) { (t.read = function (e, t, n, r, i) { var o, a, s = 8 * i - r - 1, u = (1 << s) - 1, c = u >> 1, l = -7, f = n ? i - 1 : 0, d = n ? -1 : 1, p = e[t + f]; for ( f += d, o = p & ((1 << -l) - 1), p >>= -l, l += s; l > 0; o = 256 * o + e[t + f], f += d, l -= 8 ); for ( a = o & ((1 << -l) - 1), o >>= -l, l += r; l > 0; a = 256 * a + e[t + f], f += d, l -= 8 ); if (0 === o) o = 1 - c; else { if (o === u) return a ? NaN : (1 / 0) * (p ? -1 : 1); (a += Math.pow(2, r)), (o -= c); } return (p ? -1 : 1) * a * Math.pow(2, o - r); }), (t.write = function (e, t, n, r, i, o) { var a, s, u, c = 8 * o - i - 1, l = (1 << c) - 1, f = l >> 1, d = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = r ? 0 : o - 1, h = r ? 1 : -1, g = t < 0 || (0 === t && 1 / t < 0) ? 1 : 0; for ( t = Math.abs(t), isNaN(t) || t === 1 / 0 ? ((s = isNaN(t) ? 1 : 0), (a = l)) : ((a = Math.floor(Math.log(t) / Math.LN2)), t * (u = Math.pow(2, -a)) < 1 && (a--, (u *= 2)), (t += a + f >= 1 ? d / u : d * Math.pow(2, 1 - f)) * u >= 2 && (a++, (u /= 2)), a + f >= l ? ((s = 0), (a = l)) : a + f >= 1 ? ((s = (t * u - 1) * Math.pow(2, i)), (a += f)) : ((s = t * Math.pow(2, f - 1) * Math.pow(2, i)), (a = 0))); i >= 8; e[n + p] = 255 & s, p += h, s /= 256, i -= 8 ); for ( a = (a << i) | s, c += i; c > 0; e[n + p] = 255 & a, p += h, a /= 256, c -= 8 ); e[n + p - h] |= 128 * g; }); }, 35717: function (e) { "function" == typeof Object.create ? (e.exports = function (e, t) { t && ((e.super_ = t), (e.prototype = Object.create(t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, }))); }) : (e.exports = function (e, t) { if (t) { e.super_ = t; var n = function () {}; (n.prototype = t.prototype), (e.prototype = new n()), (e.prototype.constructor = e); } }); }, 31425: function (e) { !(function (t) { var n = 0, r = !1, i = function (e) { for (var t = e.target; t !== document.body && t !== document; ) { var r = window.getComputedStyle(t); if (!r) break; if ("INPUT" === t.nodeName && "range" === t.getAttribute("type")) return; var i = r.getPropertyValue("-webkit-overflow-scrolling"), o = r.getPropertyValue("overflow-y"), a = parseInt(r.getPropertyValue("height"), 10), s = "touch" === i && ("auto" === o || "scroll" === o), u = t.scrollHeight > t.offsetHeight; if (s && u) { var c = e.touches ? e.touches[0].screenY : e.screenY, l = n <= c && 0 === t.scrollTop, f = n >= c && t.scrollHeight - t.scrollTop === a; return void ((l || f) && e.preventDefault()); } t = t.parentNode; } e.preventDefault(); }, o = function (e) { n = e.touches ? e.touches[0].screenY : e.screenY; }, a = function () { window.addEventListener("touchstart", o, !1), window.addEventListener("touchmove", i, !1), (r = !0); }, s = document.createElement("div"); document.documentElement.appendChild(s), (s.style.WebkitOverflowScrolling = "touch"); var u = "getComputedStyle" in window && "touch" === window.getComputedStyle(s)["-webkit-overflow-scrolling"]; document.documentElement.removeChild(s), u && a(); var c = { enable: a, disable: function () { window.removeEventListener("touchstart", o, !1), window.removeEventListener("touchmove", i, !1), (r = !1); }, isEnabled: function () { return r; }, }; e.exports && (e.exports = c), "function" == typeof t.define ? (0, t.define)("iNoBounce", [], function () { return c; }) : (t.iNoBounce = c); })(this); }, 43083: function (e) { e.exports = (function e(t, n, r) { function i(a, s) { if (!n[a]) { if (!t[a]) { if (o) return o(a, !0); var u = new Error("Cannot find module '" + a + "'"); throw ((u.code = "MODULE_NOT_FOUND"), u); } var c = (n[a] = { exports: {} }); t[a][0].call( c.exports, function (e) { var n = t[a][1][e]; return i(n || e); }, c, c.exports, e, t, n, r ); } return n[a].exports; } for (var o = void 0, a = 0; a < r.length; a++) i(r[a]); return i; })( { 1: [ function (e, t, n) { "use strict"; "undefined" == typeof window ? (t.exports = function (t) { return e("./src/utils/window").init(t), e("./src/index"); }) : (t.exports = e("./src/index")); }, { "./src/index": 19, "./src/utils/window": 52 }, ], 2: [ function (e, t, n) { "use strict"; function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } var i = e("./utils/extend.js"); function o(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; if (e.immediatePropagationStopped) break; r(e); } } var a = (function () { function e(t) { r(this, e), (this.options = i({}, t || {})); } return ( (e.prototype.fire = function (e) { var t = void 0, n = "on" + e.type, r = this.global; (t = this[e.type]) && o(e, t), this[n] && this[n](e), !e.propagationStopped && r && (t = r[e.type]) && o(e, t); }), (e.prototype.on = function (e, t) { this[e] ? this[e].push(t) : (this[e] = [t]); }), (e.prototype.off = function (e, t) { var n = this[e], r = n ? n.indexOf(t) : -1; -1 !== r && n.splice(r, 1), ((n && 0 === n.length) || !t) && (this[e] = void 0); }), e ); })(); t.exports = a; }, { "./utils/extend.js": 41 }, ], 3: [ function (e, t, n) { "use strict"; function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } var i = e("./utils/extend"), o = e("./utils/getOriginXY"), a = e("./defaultOptions"), s = e("./utils/Signals").new(), u = (function () { function e(t, n, u, c, l, f) { var d = arguments.length > 6 && void 0 !== arguments[6] && arguments[6]; r(this, e); var p = t.target, h = ((p && p.options) || a).deltaSource, g = o(p, l, u), m = "start" === c, y = "end" === c, v = m ? t.startCoords : t.curCoords, b = t.prevEvent; l = l || t.element; var _ = i({}, v.page), w = i({}, v.client); (_.x -= g.x), (_.y -= g.y), (w.x -= g.x), (w.y -= g.y), (this.ctrlKey = n.ctrlKey), (this.altKey = n.altKey), (this.shiftKey = n.shiftKey), (this.metaKey = n.metaKey), (this.button = n.button), (this.buttons = n.buttons), (this.target = l), (this.currentTarget = l), (this.relatedTarget = f || null), (this.preEnd = d), (this.type = u + (c || "")), (this.interaction = t), (this.interactable = p), (this.t0 = m ? t.downTimes[t.downTimes.length - 1] : b.t0); var T = { interaction: t, event: n, action: u, phase: c, element: l, related: f, page: _, client: w, coords: v, starting: m, ending: y, deltaSource: h, iEvent: this, }; s.fire("set-xy", T), y ? ((this.pageX = b.pageX), (this.pageY = b.pageY), (this.clientX = b.clientX), (this.clientY = b.clientY)) : ((this.pageX = _.x), (this.pageY = _.y), (this.clientX = w.x), (this.clientY = w.y)), (this.x0 = t.startCoords.page.x - g.x), (this.y0 = t.startCoords.page.y - g.y), (this.clientX0 = t.startCoords.client.x - g.x), (this.clientY0 = t.startCoords.client.y - g.y), s.fire("set-delta", T), (this.timeStamp = v.timeStamp), (this.dt = t.pointerDelta.timeStamp), (this.duration = this.timeStamp - this.t0), (this.speed = t.pointerDelta[h].speed), (this.velocityX = t.pointerDelta[h].vx), (this.velocityY = t.pointerDelta[h].vy), (this.swipe = y || "inertiastart" === c ? this.getSwipe() : null), s.fire("new", T); } return ( (e.prototype.getSwipe = function () { var e = this.interaction; if ( e.prevEvent.speed < 600 || this.timeStamp - e.prevEvent.timeStamp > 150 ) return null; var t = (180 * Math.atan2( e.prevEvent.velocityY, e.prevEvent.velocityX )) / Math.PI, n = 22.5; t < 0 && (t += 360); var r = 135 - n <= t && t < 225 + n, i = 225 - n <= t && t < 315 + n; return { up: i, down: !i && 45 - n <= t && t < 135 + n, left: r, right: !r && (315 - n <= t || t < 45 + n), angle: t, speed: e.prevEvent.speed, velocity: { x: e.prevEvent.velocityX, y: e.prevEvent.velocityY, }, }; }), (e.prototype.preventDefault = function () {}), (e.prototype.stopImmediatePropagation = function () { this.immediatePropagationStopped = this.propagationStopped = !0; }), (e.prototype.stopPropagation = function () { this.propagationStopped = !0; }), e ); })(); s.on("set-delta", function (e) { var t = e.iEvent, n = e.interaction, r = e.starting, i = e.deltaSource, o = r ? t : n.prevEvent; "client" === i ? ((t.dx = t.clientX - o.clientX), (t.dy = t.clientY - o.clientY)) : ((t.dx = t.pageX - o.pageX), (t.dy = t.pageY - o.pageY)); }), (u.signals = s), (t.exports = u); }, { "./defaultOptions": 18, "./utils/Signals": 34, "./utils/extend": 41, "./utils/getOriginXY": 42, }, ], 4: [ function (e, t, n) { "use strict"; function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } var i = e("./utils/clone"), o = e("./utils/is"), a = e("./utils/events"), s = e("./utils/extend"), u = e("./actions/base"), c = e("./scope"), l = e("./Eventable"), f = e("./defaultOptions"), d = e("./utils/Signals").new(), p = e("./utils/domUtils"), h = p.getElementRect, g = p.nodeContains, m = p.trySelector, y = p.matchesSelector, v = e("./utils/window").getWindow, b = e("./utils/arr").contains, _ = e("./utils/browser").wheelEvent; c.interactables = []; var w = (function () { function e(t, n) { r(this, e), (n = n || {}), (this.target = t), (this.events = new l()), (this._context = n.context || c.document), (this._win = v(m(t) ? this._context : t)), (this._doc = this._win.document), d.fire("new", { target: t, options: n, interactable: this, win: this._win, }), c.addDocument(this._doc, this._win), c.interactables.push(this), this.set(n); } return ( (e.prototype.setOnEvents = function (e, t) { var n = "on" + e; return ( o.function(t.onstart) && (this.events[n + "start"] = t.onstart), o.function(t.onmove) && (this.events[n + "move"] = t.onmove), o.function(t.onend) && (this.events[n + "end"] = t.onend), o.function(t.oninertiastart) && (this.events[n + "inertiastart"] = t.oninertiastart), this ); }), (e.prototype.setPerAction = function (e, t) { for (var n in t) n in f[e] && (o.object(t[n]) ? ((this.options[e][n] = i(this.options[e][n] || {})), s(this.options[e][n], t[n]), o.object(f.perAction[n]) && "enabled" in f.perAction[n] && (this.options[e][n].enabled = !1 !== t[n].enabled)) : o.bool(t[n]) && o.object(f.perAction[n]) ? (this.options[e][n].enabled = t[n]) : void 0 !== t[n] && (this.options[e][n] = t[n])); }), (e.prototype.getRect = function (e) { return ( (e = e || this.target), o.string(this.target) && !o.element(e) && (e = this._context.querySelector(this.target)), h(e) ); }), (e.prototype.rectChecker = function (e) { return o.function(e) ? ((this.getRect = e), this) : null === e ? (delete this.options.getRect, this) : this.getRect; }), (e.prototype._backCompatOption = function (e, t) { if (m(t) || o.object(t)) { this.options[e] = t; for (var n = 0; n < u.names.length; n++) { var r = u.names[n]; this.options[r][e] = t; } return this; } return this.options[e]; }), (e.prototype.origin = function (e) { return this._backCompatOption("origin", e); }), (e.prototype.deltaSource = function (e) { return "page" === e || "client" === e ? ((this.options.deltaSource = e), this) : this.options.deltaSource; }), (e.prototype.context = function () { return this._context; }), (e.prototype.inContext = function (e) { return ( this._context === e.ownerDocument || g(this._context, e) ); }), (e.prototype.fire = function (e) { return this.events.fire(e), this; }), (e.prototype._onOffMultiple = function (e, t, n, r) { if ( (o.string(t) && -1 !== t.search(" ") && (t = t.trim().split(/ +/)), o.array(t)) ) { for (var i = 0; i < t.length; i++) { var a = t[i]; this[e](a, n, r); } return !0; } if (o.object(t)) { for (var s in t) this[e](s, t[s], n); return !0; } }), (e.prototype.on = function (t, n, r) { return ( this._onOffMultiple("on", t, n, r) || ("wheel" === t && (t = _), b(e.eventTypes, t) ? this.events.on(t, n) : o.string(this.target) ? a.addDelegate(this.target, this._context, t, n, r) : a.add(this.target, t, n, r)), this ); }), (e.prototype.off = function (t, n, r) { return ( this._onOffMultiple("off", t, n, r) || ("wheel" === t && (t = _), b(e.eventTypes, t) ? this.events.off(t, n) : o.string(this.target) ? a.removeDelegate( this.target, this._context, t, n, r ) : a.remove(this.target, t, n, r)), this ); }), (e.prototype.set = function (t) { o.object(t) || (t = {}), (this.options = i(f.base)); var n = i(f.perAction); for (var r in u.methodDict) { var a = u.methodDict[r]; (this.options[r] = i(f[r])), this.setPerAction(r, n), this[a](t[r]); } for (var s = 0; s < e.settingsMethods.length; s++) { var c = e.settingsMethods[s]; (this.options[c] = f.base[c]), c in t && this[c](t[c]); } return ( d.fire("set", { options: t, interactable: this }), this ); }), (e.prototype.unset = function () { if ((a.remove(this.target, "all"), o.string(this.target))) for (var e in a.delegatedEvents) { var t = a.delegatedEvents[e]; t.selectors[0] === this.target && t.contexts[0] === this._context && (t.selectors.splice(0, 1), t.contexts.splice(0, 1), t.listeners.splice(0, 1), t.selectors.length || (t[e] = null)), a.remove(this._context, e, a.delegateListener), a.remove(this._context, e, a.delegateUseCapture, !0); } else a.remove(this, "all"); d.fire("unset", { interactable: this }), c.interactables.splice(c.interactables.indexOf(this), 1); for (var n = 0; n < (c.interactions || []).length; n++) { var r = (c.interactions || [])[n]; r.target === this && r.interacting() && !r._ending && r.stop(); } return c.interact; }), e ); })(); (c.interactables.indexOfElement = function (e, t) { t = t || c.document; for (var n = 0; n < this.length; n++) { var r = this[n]; if (r.target === e && r._context === t) return n; } return -1; }), (c.interactables.get = function (e, t, n) { var r = this[this.indexOfElement(e, t && t.context)]; return r && (o.string(e) || n || r.inContext(e)) ? r : null; }), (c.interactables.forEachMatch = function (e, t) { for (var n = 0; n < this.length; n++) { var r = this[n], i = void 0; if ( ((o.string(r.target) ? o.element(e) && y(e, r.target) : e === r.target) && r.inContext(e) && (i = t(r)), void 0 !== i) ) return i; } }), (w.eventTypes = c.eventTypes = []), (w.signals = d), (w.settingsMethods = [ "deltaSource", "origin", "preventDefault", "rectChecker", ]), (t.exports = w); }, { "./Eventable": 2, "./actions/base": 6, "./defaultOptions": 18, "./scope": 33, "./utils/Signals": 34, "./utils/arr": 35, "./utils/browser": 36, "./utils/clone": 37, "./utils/domUtils": 39, "./utils/events": 40, "./utils/extend": 41, "./utils/is": 46, "./utils/window": 52, }, ], 5: [ function (e, t, n) { "use strict"; function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } var i = e("./scope"), o = e("./utils"), a = e("./utils/events"), s = e("./utils/browser"), u = e("./utils/domObjects"), c = e("./utils/interactionFinder"), l = e("./utils/Signals").new(), f = {}, d = [ "pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", ], p = 0; i.interactions = []; for ( var h = (function () { function e(t) { var n = t.pointerType; r(this, e), (this.target = null), (this.element = null), (this.prepared = { name: null, axis: null, edges: null, }), (this.pointers = []), (this.pointerIds = []), (this.downTargets = []), (this.downTimes = []), (this.prevCoords = { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0, }), (this.curCoords = { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0, }), (this.startCoords = { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0, }), (this.pointerDelta = { page: { x: 0, y: 0, vx: 0, vy: 0, speed: 0 }, client: { x: 0, y: 0, vx: 0, vy: 0, speed: 0 }, timeStamp: 0, }), (this.downEvent = null), (this.downPointer = {}), (this._eventTarget = null), (this._curEventTarget = null), (this.prevEvent = null), (this.pointerIsDown = !1), (this.pointerWasMoved = !1), (this._interacting = !1), (this._ending = !1), (this.pointerType = n), l.fire("new", this), i.interactions.push(this); } return ( (e.prototype.pointerDown = function (e, t, n) { var r = this.updatePointer(e, t, !0); l.fire("down", { pointer: e, event: t, eventTarget: n, pointerIndex: r, interaction: this, }); }), (e.prototype.start = function (e, t, n) { this.interacting() || !this.pointerIsDown || this.pointerIds.length < ("gesture" === e.name ? 2 : 1) || (-1 === i.interactions.indexOf(this) && i.interactions.push(this), o.copyAction(this.prepared, e), (this.target = t), (this.element = n), l.fire("action-start", { interaction: this, event: this.downEvent, })); }), (e.prototype.pointerMove = function (t, n, r) { this.simulation || (this.updatePointer(t), o.setCoords(this.curCoords, this.pointers)); var i = this.curCoords.page.x === this.prevCoords.page.x && this.curCoords.page.y === this.prevCoords.page.y && this.curCoords.client.x === this.prevCoords.client.x && this.curCoords.client.y === this.prevCoords.client.y, a = void 0, s = void 0; this.pointerIsDown && !this.pointerWasMoved && ((a = this.curCoords.client.x - this.startCoords.client.x), (s = this.curCoords.client.y - this.startCoords.client.y), (this.pointerWasMoved = o.hypot(a, s) > e.pointerMoveTolerance)); var u = { pointer: t, pointerIndex: this.getPointerIndex(t), event: n, eventTarget: r, dx: a, dy: s, duplicate: i, interaction: this, interactingBeforeMove: this.interacting(), }; i || o.setCoordDeltas( this.pointerDelta, this.prevCoords, this.curCoords ), l.fire("move", u), i || (this.interacting() && this.doMove(u), this.pointerWasMoved && o.copyCoords(this.prevCoords, this.curCoords)); }), (e.prototype.doMove = function (e) { (e = o.extend( { pointer: this.pointers[0], event: this.prevEvent, eventTarget: this._eventTarget, interaction: this, }, e || {} )), l.fire("before-action-move", e), this._dontFireMove || l.fire("action-move", e), (this._dontFireMove = !1); }), (e.prototype.pointerUp = function (e, t, n, r) { var i = this.getPointerIndex(e); l.fire(/cancel$/i.test(t.type) ? "cancel" : "up", { pointer: e, pointerIndex: i, event: t, eventTarget: n, curEventTarget: r, interaction: this, }), this.simulation || this.end(t), (this.pointerIsDown = !1), this.removePointer(e, t); }), (e.prototype.end = function (e) { (this._ending = !0), (e = e || this.prevEvent), this.interacting() && l.fire("action-end", { event: e, interaction: this, }), this.stop(), (this._ending = !1); }), (e.prototype.currentAction = function () { return this._interacting ? this.prepared.name : null; }), (e.prototype.interacting = function () { return this._interacting; }), (e.prototype.stop = function () { l.fire("stop", { interaction: this }), this._interacting && (l.fire("stop-active", { interaction: this }), l.fire("stop-" + this.prepared.name, { interaction: this, })), (this.target = this.element = null), (this._interacting = !1), (this.prepared.name = this.prevEvent = null); }), (e.prototype.getPointerIndex = function (e) { return "mouse" === this.pointerType || "pen" === this.pointerType ? 0 : this.pointerIds.indexOf(o.getPointerId(e)); }), (e.prototype.updatePointer = function (e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : t && /(down|start)$/i.test(t.type), r = o.getPointerId(e), i = this.getPointerIndex(e); return ( -1 === i && ((i = this.pointerIds.length), (this.pointerIds[i] = r)), n && l.fire("update-pointer-down", { pointer: e, event: t, down: n, pointerId: r, pointerIndex: i, interaction: this, }), (this.pointers[i] = e), i ); }), (e.prototype.removePointer = function (e, t) { var n = this.getPointerIndex(e); -1 !== n && (l.fire("remove-pointer", { pointer: e, event: t, pointerIndex: n, interaction: this, }), this.pointers.splice(n, 1), this.pointerIds.splice(n, 1), this.downTargets.splice(n, 1), this.downTimes.splice(n, 1)); }), (e.prototype._updateEventTargets = function (e, t) { (this._eventTarget = e), (this._curEventTarget = t); }), e ); })(), g = 0; g < d.length; g++ ) { var m = d[g]; f[m] = y(m); } function y(e) { return function (t) { var n = o.getPointerType(t), r = o.getEventTargets(t), a = r[0], u = r[1], l = []; if (s.supportsTouch && /touch/.test(t.type)) { p = new Date().getTime(); for (var f = 0; f < t.changedTouches.length; f++) { var d = t.changedTouches[f], g = c.search(d, t.type, a); l.push([d, g || new h({ pointerType: n })]); } } else { var m = !1; if (!s.supportsPointerEvent && /mouse/.test(t.type)) { for (var y = 0; y < i.interactions.length && !m; y++) m = "mouse" !== i.interactions[y].pointerType && i.interactions[y].pointerIsDown; m = m || new Date().getTime() - p < 500 || 0 === t.timeStamp; } if (!m) { var v = c.search(t, t.type, a); v || (v = new h({ pointerType: n })), l.push([t, v]); } } for (var b = 0; b < l.length; b++) { var _ = l[b], w = _[0], T = _[1]; T._updateEventTargets(a, u), T[e](w, t, a, u); } }; } function v(e) { for (var t = 0; t < i.interactions.length; t++) { var n = i.interactions[t]; n.end(e), l.fire("endall", { event: e, interaction: n }); } } var b = {}, _ = s.pEventTypes; function w(e, t) { var n = e.doc, r = 0 === t.indexOf("add") ? a.add : a.remove; for (var o in i.delegatedEvents) r(n, o, a.delegateListener), r(n, o, a.delegateUseCapture, !0); for (var u in b) r(n, u, b[u], s.isIOS ? { passive: !1 } : void 0); } u.PointerEvent ? ((b[_.down] = f.pointerDown), (b[_.move] = f.pointerMove), (b[_.up] = f.pointerUp), (b[_.cancel] = f.pointerUp)) : ((b.mousedown = f.pointerDown), (b.mousemove = f.pointerMove), (b.mouseup = f.pointerUp), (b.touchstart = f.pointerDown), (b.touchmove = f.pointerMove), (b.touchend = f.pointerUp), (b.touchcancel = f.pointerUp)), (b.blur = v), l.on("update-pointer-down", function (e) { var t = e.interaction, n = e.pointer, r = e.pointerId, i = e.pointerIndex, a = e.event, s = e.eventTarget, u = e.down; (t.pointerIds[i] = r), (t.pointers[i] = n), u && (t.pointerIsDown = !0), t.interacting() || (o.setCoords(t.startCoords, t.pointers), o.copyCoords(t.curCoords, t.startCoords), o.copyCoords(t.prevCoords, t.startCoords), (t.downEvent = a), (t.downTimes[i] = t.curCoords.timeStamp), (t.downTargets[i] = s || (a && o.getEventTargets(a)[0])), (t.pointerWasMoved = !1), o.pointerExtend(t.downPointer, n)); }), i.signals.on("add-document", w), i.signals.on("remove-document", w), (h.pointerMoveTolerance = 1), (h.doOnInteractions = y), (h.endAll = v), (h.signals = l), (h.docEvents = b), (i.endAllInteractions = v), (t.exports = h); }, { "./scope": 33, "./utils": 44, "./utils/Signals": 34, "./utils/browser": 36, "./utils/domObjects": 38, "./utils/events": 40, "./utils/interactionFinder": 45, }, ], 6: [ function (e, t, n) { "use strict"; var r = e("../Interaction"), i = e("../InteractEvent"), o = { firePrepared: a, names: [], methodDict: {} }; function a(e, t, n, r) { var o = e.prepared.name, a = new i(e, t, o, n, e.element, null, r); e.target.fire(a), (e.prevEvent = a); } r.signals.on("action-start", function (e) { var t = e.interaction, n = e.event; (t._interacting = !0), a(t, n, "start"); }), r.signals.on("action-move", function (e) { var t = e.interaction; if ((a(t, e.event, "move", e.preEnd), !t.interacting())) return !1; }), r.signals.on("action-end", function (e) { a(e.interaction, e.event, "end"); }), (t.exports = o); }, { "../InteractEvent": 3, "../Interaction": 5 }, ], 7: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../utils"), o = e("../InteractEvent"), a = e("../Interactable"), s = e("../Interaction"), u = e("../defaultOptions"), c = { defaults: { enabled: !1, mouseButtons: null, origin: null, snap: null, restrict: null, inertia: null, autoScroll: null, startAxis: "xy", lockAxis: "xy", }, checker: function (e, t, n) { var r = n.options.drag; return r.enabled ? { name: "drag", axis: "start" === r.lockAxis ? r.startAxis : r.lockAxis, } : null; }, getCursor: function () { return "move"; }, }; s.signals.on("before-action-move", function (e) { var t = e.interaction; if ("drag" === t.prepared.name) { var n = t.prepared.axis; "x" === n ? ((t.curCoords.page.y = t.startCoords.page.y), (t.curCoords.client.y = t.startCoords.client.y), (t.pointerDelta.page.speed = Math.abs( t.pointerDelta.page.vx )), (t.pointerDelta.client.speed = Math.abs( t.pointerDelta.client.vx )), (t.pointerDelta.client.vy = 0), (t.pointerDelta.page.vy = 0)) : "y" === n && ((t.curCoords.page.x = t.startCoords.page.x), (t.curCoords.client.x = t.startCoords.client.x), (t.pointerDelta.page.speed = Math.abs( t.pointerDelta.page.vy )), (t.pointerDelta.client.speed = Math.abs( t.pointerDelta.client.vy )), (t.pointerDelta.client.vx = 0), (t.pointerDelta.page.vx = 0)); } }), o.signals.on("new", function (e) { var t = e.iEvent, n = e.interaction; if ("dragmove" === t.type) { var r = n.prepared.axis; "x" === r ? ((t.pageY = n.startCoords.page.y), (t.clientY = n.startCoords.client.y), (t.dy = 0)) : "y" === r && ((t.pageX = n.startCoords.page.x), (t.clientX = n.startCoords.client.x), (t.dx = 0)); } }), (a.prototype.draggable = function (e) { return i.is.object(e) ? ((this.options.drag.enabled = !1 !== e.enabled), this.setPerAction("drag", e), this.setOnEvents("drag", e), /^(xy|x|y|start)$/.test(e.lockAxis) && (this.options.drag.lockAxis = e.lockAxis), /^(xy|x|y)$/.test(e.startAxis) && (this.options.drag.startAxis = e.startAxis), this) : i.is.bool(e) ? ((this.options.drag.enabled = e), e || (this.ondragstart = this.ondragstart = this.ondragend = null), this) : this.options.drag; }), (r.drag = c), r.names.push("drag"), i.merge(a.eventTypes, [ "dragstart", "dragmove", "draginertiastart", "draginertiaresume", "dragend", ]), (r.methodDict.drag = "draggable"), (u.drag = c.defaults), (t.exports = c); }, { "../InteractEvent": 3, "../Interactable": 4, "../Interaction": 5, "../defaultOptions": 18, "../utils": 44, "./base": 6, }, ], 8: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../utils"), o = e("../scope"), a = e("../interact"), s = e("../InteractEvent"), u = e("../Interactable"), c = e("../Interaction"), l = e("../defaultOptions"), f = { defaults: { enabled: !1, accept: null, overlap: "pointer" }, }, d = !1; function p(e, t) { for ( var n = [], r = [], a = 0; a < o.interactables.length; a++ ) { var s = o.interactables[a]; if (s.options.drop.enabled) { var u = s.options.drop.accept; if ( !( (i.is.element(u) && u !== t) || (i.is.string(u) && !i.matchesSelector(t, u)) ) ) for ( var c = i.is.string(s.target) ? s._context.querySelectorAll(s.target) : [s.target], l = 0; l < c.length; l++ ) { var f = c[l]; f !== t && (n.push(s), r.push(f)); } } } return { elements: r, dropzones: n }; } function h(e, t) { for (var n = void 0, r = 0; r < e.dropzones.length; r++) { var i = e.dropzones[r], o = e.elements[r]; o !== n && ((t.target = o), i.fire(t)), (n = o); } } function g(e, t) { var n = p(e, t); (e.dropzones = n.dropzones), (e.elements = n.elements), (e.rects = []); for (var r = 0; r < e.dropzones.length; r++) e.rects[r] = e.dropzones[r].getRect(e.elements[r]); } function m(e, t, n) { var r = e.interaction, o = []; d && g(r.activeDrops, n); for (var a = 0; a < r.activeDrops.dropzones.length; a++) { var s = r.activeDrops.dropzones[a], u = r.activeDrops.elements[a], c = r.activeDrops.rects[a]; o.push(s.dropCheck(e, t, r.target, n, u, c) ? u : null); } var l = i.indexOfDeepestElement(o); return { dropzone: r.activeDrops.dropzones[l] || null, element: r.activeDrops.elements[l] || null, }; } function y(e, t, n) { var r = { enter: null, leave: null, activate: null, deactivate: null, move: null, drop: null, }, o = { dragEvent: n, interaction: e, target: e.dropElement, dropzone: e.dropTarget, relatedTarget: n.target, draggable: n.interactable, timeStamp: n.timeStamp, }; return ( e.dropElement !== e.prevDropElement && (e.prevDropTarget && ((r.leave = i.extend({ type: "dragleave" }, o)), (n.dragLeave = r.leave.target = e.prevDropElement), (n.prevDropzone = r.leave.dropzone = e.prevDropTarget)), e.dropTarget && ((r.enter = { dragEvent: n, interaction: e, target: e.dropElement, dropzone: e.dropTarget, relatedTarget: n.target, draggable: n.interactable, timeStamp: n.timeStamp, type: "dragenter", }), (n.dragEnter = e.dropElement), (n.dropzone = e.dropTarget))), "dragend" === n.type && e.dropTarget && ((r.drop = i.extend({ type: "drop" }, o)), (n.dropzone = e.dropTarget), (n.relatedTarget = e.dropElement)), "dragstart" === n.type && ((r.activate = i.extend({ type: "dropactivate" }, o)), (r.activate.target = null), (r.activate.dropzone = null)), "dragend" === n.type && ((r.deactivate = i.extend({ type: "dropdeactivate" }, o)), (r.deactivate.target = null), (r.deactivate.dropzone = null)), "dragmove" === n.type && e.dropTarget && ((r.move = i.extend({ dragmove: n, type: "dropmove" }, o)), (n.dropzone = e.dropTarget)), r ); } function v(e, t) { var n = e.activeDrops, r = e.prevDropTarget, i = e.dropTarget, o = e.dropElement; t.leave && r.fire(t.leave), t.move && i.fire(t.move), t.enter && i.fire(t.enter), t.drop && i.fire(t.drop), t.deactivate && h(n, t.deactivate), (e.prevDropTarget = i), (e.prevDropElement = o); } c.signals.on("action-start", function (e) { var t = e.interaction, n = e.event; if ("drag" === t.prepared.name) { (t.activeDrops.dropzones = []), (t.activeDrops.elements = []), (t.activeDrops.rects = []), (t.dropEvents = null), t.dynamicDrop || g(t.activeDrops, t.element); var r = y(t, n, t.prevEvent); r.activate && h(t.activeDrops, r.activate); } }), s.signals.on("new", function (e) { var t = e.interaction, n = e.iEvent, r = e.event; if ("dragmove" === n.type || "dragend" === n.type) { var i = n, o = m(i, r, t.element); (t.dropTarget = o.dropzone), (t.dropElement = o.element), (t.dropEvents = y(t, r, i)); } }), c.signals.on("action-move", function (e) { var t = e.interaction; "drag" === t.prepared.name && v(t, t.dropEvents); }), c.signals.on("action-end", function (e) { var t = e.interaction; "drag" === t.prepared.name && v(t, t.dropEvents); }), c.signals.on("stop-drag", function (e) { var t = e.interaction; (t.activeDrops = { dropzones: null, elements: null, rects: null, }), (t.dropEvents = null); }), (u.prototype.dropzone = function (e) { return i.is.object(e) ? ((this.options.drop.enabled = !1 !== e.enabled), i.is.function(e.ondrop) && (this.events.ondrop = e.ondrop), i.is.function(e.ondropactivate) && (this.events.ondropactivate = e.ondropactivate), i.is.function(e.ondropdeactivate) && (this.events.ondropdeactivate = e.ondropdeactivate), i.is.function(e.ondragenter) && (this.events.ondragenter = e.ondragenter), i.is.function(e.ondragleave) && (this.events.ondragleave = e.ondragleave), i.is.function(e.ondropmove) && (this.events.ondropmove = e.ondropmove), /^(pointer|center)$/.test(e.overlap) ? (this.options.drop.overlap = e.overlap) : i.is.number(e.overlap) && (this.options.drop.overlap = Math.max( Math.min(1, e.overlap), 0 )), "accept" in e && (this.options.drop.accept = e.accept), "checker" in e && (this.options.drop.checker = e.checker), this) : i.is.bool(e) ? ((this.options.drop.enabled = e), e || (this.ondragenter = this.ondragleave = this.ondrop = this.ondropactivate = this.ondropdeactivate = null), this) : this.options.drop; }), (u.prototype.dropCheck = function (e, t, n, r, o, a) { var s = !1; if (!(a = a || this.getRect(o))) return ( !!this.options.drop.checker && this.options.drop.checker(e, t, s, this, o, n, r) ); var u = this.options.drop.overlap; if ("pointer" === u) { var c = i.getOriginXY(n, r, "drag"), l = i.getPageXY(e); (l.x += c.x), (l.y += c.y); var f = l.x > a.left && l.x < a.right, d = l.y > a.top && l.y < a.bottom; s = f && d; } var p = n.getRect(r); if (p && "center" === u) { var h = p.left + p.width / 2, g = p.top + p.height / 2; s = h >= a.left && h <= a.right && g >= a.top && g <= a.bottom; } return ( p && i.is.number(u) && (s = (Math.max( 0, Math.min(a.right, p.right) - Math.max(a.left, p.left) ) * Math.max( 0, Math.min(a.bottom, p.bottom) - Math.max(a.top, p.top) )) / (p.width * p.height) >= u), this.options.drop.checker && (s = this.options.drop.checker(e, t, s, this, o, n, r)), s ); }), u.signals.on("unset", function (e) { e.interactable.dropzone(!1); }), u.settingsMethods.push("dropChecker"), c.signals.on("new", function (e) { (e.dropTarget = null), (e.dropElement = null), (e.prevDropTarget = null), (e.prevDropElement = null), (e.dropEvents = null), (e.activeDrops = { dropzones: [], elements: [], rects: [], }); }), c.signals.on("stop", function (e) { var t = e.interaction; t.dropTarget = t.dropElement = t.prevDropTarget = t.prevDropElement = null; }), (a.dynamicDrop = function (e) { return i.is.bool(e) ? ((d = e), a) : d; }), i.merge(u.eventTypes, [ "dragenter", "dragleave", "dropactivate", "dropdeactivate", "dropmove", "drop", ]), (r.methodDict.drop = "dropzone"), (l.drop = f.defaults), (t.exports = f); }, { "../InteractEvent": 3, "../Interactable": 4, "../Interaction": 5, "../defaultOptions": 18, "../interact": 21, "../scope": 33, "../utils": 44, "./base": 6, }, ], 9: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../utils"), o = e("../InteractEvent"), a = e("../Interactable"), s = e("../Interaction"), u = e("../defaultOptions"), c = { defaults: { enabled: !1, origin: null, restrict: null }, checker: function (e, t, n, r, i) { return i.pointerIds.length >= 2 ? { name: "gesture" } : null; }, getCursor: function () { return ""; }, }; o.signals.on("new", function (e) { var t = e.iEvent, n = e.interaction; "gesturestart" === t.type && ((t.ds = 0), (n.gesture.startDistance = n.gesture.prevDistance = t.distance), (n.gesture.startAngle = n.gesture.prevAngle = t.angle), (n.gesture.scale = 1)); }), o.signals.on("new", function (e) { var t = e.iEvent, n = e.interaction; "gesturemove" === t.type && ((t.ds = t.scale - n.gesture.scale), n.target.fire(t), (n.gesture.prevAngle = t.angle), (n.gesture.prevDistance = t.distance), t.scale === 1 / 0 || null === t.scale || void 0 === t.scale || isNaN(t.scale) || (n.gesture.scale = t.scale)); }), (a.prototype.gesturable = function (e) { return i.is.object(e) ? ((this.options.gesture.enabled = !1 !== e.enabled), this.setPerAction("gesture", e), this.setOnEvents("gesture", e), this) : i.is.bool(e) ? ((this.options.gesture.enabled = e), e || (this.ongesturestart = this.ongesturestart = this.ongestureend = null), this) : this.options.gesture; }), o.signals.on("set-delta", function (e) { var t = e.interaction, n = e.iEvent, r = e.action, a = e.event, s = e.starting, u = e.ending, c = e.deltaSource; if ("gesture" === r) { var l = t.pointers; (n.touches = [l[0], l[1]]), s ? ((n.distance = i.touchDistance(l, c)), (n.box = i.touchBBox(l)), (n.scale = 1), (n.ds = 0), (n.angle = i.touchAngle(l, void 0, c)), (n.da = 0)) : u || a instanceof o ? ((n.distance = t.prevEvent.distance), (n.box = t.prevEvent.box), (n.scale = t.prevEvent.scale), (n.ds = n.scale - 1), (n.angle = t.prevEvent.angle), (n.da = n.angle - t.gesture.startAngle)) : ((n.distance = i.touchDistance(l, c)), (n.box = i.touchBBox(l)), (n.scale = n.distance / t.gesture.startDistance), (n.angle = i.touchAngle(l, t.gesture.prevAngle, c)), (n.ds = n.scale - t.gesture.prevScale), (n.da = n.angle - t.gesture.prevAngle)); } }), s.signals.on("new", function (e) { e.gesture = { start: { x: 0, y: 0 }, startDistance: 0, prevDistance: 0, distance: 0, scale: 1, startAngle: 0, prevAngle: 0, }; }), (r.gesture = c), r.names.push("gesture"), i.merge(a.eventTypes, [ "gesturestart", "gesturemove", "gestureend", ]), (r.methodDict.gesture = "gesturable"), (u.gesture = c.defaults), (t.exports = c); }, { "../InteractEvent": 3, "../Interactable": 4, "../Interaction": 5, "../defaultOptions": 18, "../utils": 44, "./base": 6, }, ], 10: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../utils"), o = e("../utils/browser"), a = e("../InteractEvent"), s = e("../Interactable"), u = e("../Interaction"), c = e("../defaultOptions"), l = o.supportsTouch || o.supportsPointerEvent ? 20 : 10, f = { defaults: { enabled: !1, mouseButtons: null, origin: null, snap: null, restrict: null, inertia: null, autoScroll: null, square: !1, preserveAspectRatio: !1, axis: "xy", margin: NaN, edges: null, invert: "none", }, checker: function (e, t, n, r, o, a) { if (!a) return null; var s = i.extend({}, o.curCoords.page), u = n.options; if (u.resize.enabled) { var c = u.resize, f = { left: !1, right: !1, top: !1, bottom: !1 }; if (i.is.object(c.edges)) { for (var p in f) f[p] = d( p, c.edges[p], s, o._eventTarget, r, a, c.margin || l ); if ( ((f.left = f.left && !f.right), (f.top = f.top && !f.bottom), f.left || f.right || f.top || f.bottom) ) return { name: "resize", edges: f }; } else { var h = "y" !== u.resize.axis && s.x > a.right - l, g = "x" !== u.resize.axis && s.y > a.bottom - l; if (h || g) return { name: "resize", axes: (h ? "x" : "") + (g ? "y" : ""), }; } } return null; }, cursors: o.isIe9 ? { x: "e-resize", y: "s-resize", xy: "se-resize", top: "n-resize", left: "w-resize", bottom: "s-resize", right: "e-resize", topleft: "se-resize", bottomright: "se-resize", topright: "ne-resize", bottomleft: "ne-resize", } : { x: "ew-resize", y: "ns-resize", xy: "nwse-resize", top: "ns-resize", left: "ew-resize", bottom: "ns-resize", right: "ew-resize", topleft: "nwse-resize", bottomright: "nwse-resize", topright: "nesw-resize", bottomleft: "nesw-resize", }, getCursor: function (e) { if (e.axis) return f.cursors[e.name + e.axis]; if (e.edges) { for ( var t = "", n = ["top", "bottom", "left", "right"], r = 0; r < 4; r++ ) e.edges[n[r]] && (t += n[r]); return f.cursors[t]; } }, }; function d(e, t, n, r, o, a, s) { if (!t) return !1; if (!0 === t) { var u = i.is.number(a.width) ? a.width : a.right - a.left, c = i.is.number(a.height) ? a.height : a.bottom - a.top; if ( (u < 0 && ("left" === e ? (e = "right") : "right" === e && (e = "left")), c < 0 && ("top" === e ? (e = "bottom") : "bottom" === e && (e = "top")), "left" === e) ) return n.x < (u >= 0 ? a.left : a.right) + s; if ("top" === e) return n.y < (c >= 0 ? a.top : a.bottom) + s; if ("right" === e) return n.x > (u >= 0 ? a.right : a.left) - s; if ("bottom" === e) return n.y > (c >= 0 ? a.bottom : a.top) - s; } return ( !!i.is.element(r) && (i.is.element(t) ? t === r : i.matchesUpTo(r, t, o)) ); } a.signals.on("new", function (e) { var t = e.iEvent, n = e.interaction; if ("resizestart" === t.type && n.prepared.edges) { var r = n.target.getRect(n.element), o = n.target.options.resize; if (o.square || o.preserveAspectRatio) { var a = i.extend({}, n.prepared.edges); (a.top = a.top || (a.left && !a.bottom)), (a.left = a.left || (a.top && !a.right)), (a.bottom = a.bottom || (a.right && !a.top)), (a.right = a.right || (a.bottom && !a.left)), (n.prepared._linkedEdges = a); } else n.prepared._linkedEdges = null; o.preserveAspectRatio && (n.resizeStartAspectRatio = r.width / r.height), (n.resizeRects = { start: r, current: i.extend({}, r), inverted: i.extend({}, r), previous: i.extend({}, r), delta: { left: 0, right: 0, width: 0, top: 0, bottom: 0, height: 0, }, }), (t.rect = n.resizeRects.inverted), (t.deltaRect = n.resizeRects.delta); } }), a.signals.on("new", function (e) { var t = e.iEvent, n = e.phase, r = e.interaction; if ("move" === n && r.prepared.edges) { var o = r.target.options.resize, a = o.invert, s = "reposition" === a || "negate" === a, u = r.prepared.edges, c = r.resizeRects.start, l = r.resizeRects.current, f = r.resizeRects.inverted, d = r.resizeRects.delta, p = i.extend(r.resizeRects.previous, f), h = u, g = t.dx, m = t.dy; if (o.preserveAspectRatio || o.square) { var y = o.preserveAspectRatio ? r.resizeStartAspectRatio : 1; (u = r.prepared._linkedEdges), (h.left && h.bottom) || (h.right && h.top) ? (m = -g / y) : h.left || h.right ? (m = g / y) : (h.top || h.bottom) && (g = m * y); } if ( (u.top && (l.top += m), u.bottom && (l.bottom += m), u.left && (l.left += g), u.right && (l.right += g), s) ) { if ((i.extend(f, l), "reposition" === a)) { var v = void 0; f.top > f.bottom && ((v = f.top), (f.top = f.bottom), (f.bottom = v)), f.left > f.right && ((v = f.left), (f.left = f.right), (f.right = v)); } } else (f.top = Math.min(l.top, c.bottom)), (f.bottom = Math.max(l.bottom, c.top)), (f.left = Math.min(l.left, c.right)), (f.right = Math.max(l.right, c.left)); for (var b in ((f.width = f.right - f.left), (f.height = f.bottom - f.top), f)) d[b] = f[b] - p[b]; (t.edges = r.prepared.edges), (t.rect = f), (t.deltaRect = d); } }), (s.prototype.resizable = function (e) { return i.is.object(e) ? ((this.options.resize.enabled = !1 !== e.enabled), this.setPerAction("resize", e), this.setOnEvents("resize", e), /^x$|^y$|^xy$/.test(e.axis) ? (this.options.resize.axis = e.axis) : null === e.axis && (this.options.resize.axis = c.resize.axis), i.is.bool(e.preserveAspectRatio) ? (this.options.resize.preserveAspectRatio = e.preserveAspectRatio) : i.is.bool(e.square) && (this.options.resize.square = e.square), this) : i.is.bool(e) ? ((this.options.resize.enabled = e), e || (this.onresizestart = this.onresizestart = this.onresizeend = null), this) : this.options.resize; }), u.signals.on("new", function (e) { e.resizeAxes = "xy"; }), a.signals.on("set-delta", function (e) { var t = e.interaction, n = e.iEvent; "resize" === e.action && t.resizeAxes && (t.target.options.resize.square ? ("y" === t.resizeAxes ? (n.dx = n.dy) : (n.dy = n.dx), (n.axes = "xy")) : ((n.axes = t.resizeAxes), "x" === t.resizeAxes ? (n.dy = 0) : "y" === t.resizeAxes && (n.dx = 0))); }), (r.resize = f), r.names.push("resize"), i.merge(s.eventTypes, [ "resizestart", "resizemove", "resizeinertiastart", "resizeinertiaresume", "resizeend", ]), (r.methodDict.resize = "resizable"), (c.resize = f.defaults), (t.exports = f); }, { "../InteractEvent": 3, "../Interactable": 4, "../Interaction": 5, "../defaultOptions": 18, "../utils": 44, "../utils/browser": 36, "./base": 6, }, ], 11: [ function (e, t, n) { "use strict"; var r = e("./utils/raf"), i = e("./utils/window").getWindow, o = e("./utils/is"), a = e("./utils/domUtils"), s = e("./Interaction"), u = e("./defaultOptions"), c = { defaults: { enabled: !1, container: null, margin: 60, speed: 300, }, interaction: null, i: null, x: 0, y: 0, isScrolling: !1, prevTime: 0, start: function (e) { (c.isScrolling = !0), r.cancel(c.i), (c.interaction = e), (c.prevTime = new Date().getTime()), (c.i = r.request(c.scroll)); }, stop: function () { (c.isScrolling = !1), r.cancel(c.i); }, scroll: function () { var e = c.interaction.target.options[ c.interaction.prepared.name ].autoScroll, t = e.container || i(c.interaction.element), n = new Date().getTime(), a = (n - c.prevTime) / 1e3, s = e.speed * a; s >= 1 && (o.window(t) ? t.scrollBy(c.x * s, c.y * s) : t && ((t.scrollLeft += c.x * s), (t.scrollTop += c.y * s)), (c.prevTime = n)), c.isScrolling && (r.cancel(c.i), (c.i = r.request(c.scroll))); }, check: function (e, t) { var n = e.options; return n[t].autoScroll && n[t].autoScroll.enabled; }, onInteractionMove: function (e) { var t = e.interaction, n = e.pointer; if (t.interacting() && c.check(t.target, t.prepared.name)) if (t.simulation) c.x = c.y = 0; else { var r = void 0, s = void 0, u = void 0, l = void 0, f = t.target.options[t.prepared.name].autoScroll, d = f.container || i(t.element); if (o.window(d)) (l = n.clientX < c.margin), (r = n.clientY < c.margin), (s = n.clientX > d.innerWidth - c.margin), (u = n.clientY > d.innerHeight - c.margin); else { var p = a.getElementClientRect(d); (l = n.clientX < p.left + c.margin), (r = n.clientY < p.top + c.margin), (s = n.clientX > p.right - c.margin), (u = n.clientY > p.bottom - c.margin); } (c.x = s ? 1 : l ? -1 : 0), (c.y = u ? 1 : r ? -1 : 0), c.isScrolling || ((c.margin = f.margin), (c.speed = f.speed), c.start(t)); } }, }; s.signals.on("stop-active", function () { c.stop(); }), s.signals.on("action-move", c.onInteractionMove), (u.perAction.autoScroll = c.defaults), (t.exports = c); }, { "./Interaction": 5, "./defaultOptions": 18, "./utils/domUtils": 39, "./utils/is": 46, "./utils/raf": 50, "./utils/window": 52, }, ], 12: [ function (e, t, n) { "use strict"; var r = e("../Interactable"), i = e("../actions/base"), o = e("../utils/is"), a = e("../utils/domUtils"), s = e("../utils").warnOnce; (r.prototype.getAction = function (e, t, n, r) { var i = this.defaultActionChecker(e, t, n, r); return this.options.actionChecker ? this.options.actionChecker(e, t, i, this, r, n) : i; }), (r.prototype.ignoreFrom = s(function (e) { return this._backCompatOption("ignoreFrom", e); }, "Interactable.ignoreForm() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue}).")), (r.prototype.allowFrom = s(function (e) { return this._backCompatOption("allowFrom", e); }, "Interactable.allowForm() has been deprecated. Use Interactble.draggable({allowFrom: newValue}).")), (r.prototype.testIgnore = function (e, t, n) { return ( !(!e || !o.element(n)) && (o.string(e) ? a.matchesUpTo(n, e, t) : !!o.element(e) && a.nodeContains(e, n)) ); }), (r.prototype.testAllow = function (e, t, n) { return ( !e || (!!o.element(n) && (o.string(e) ? a.matchesUpTo(n, e, t) : !!o.element(e) && a.nodeContains(e, n))) ); }), (r.prototype.testIgnoreAllow = function (e, t, n) { return ( !this.testIgnore(e.ignoreFrom, t, n) && this.testAllow(e.allowFrom, t, n) ); }), (r.prototype.actionChecker = function (e) { return o.function(e) ? ((this.options.actionChecker = e), this) : null === e ? (delete this.options.actionChecker, this) : this.options.actionChecker; }), (r.prototype.styleCursor = function (e) { return o.bool(e) ? ((this.options.styleCursor = e), this) : null === e ? (delete this.options.styleCursor, this) : this.options.styleCursor; }), (r.prototype.defaultActionChecker = function (e, t, n, r) { for ( var o = this.getRect(r), a = t.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[t.button], s = null, u = 0; u < i.names.length; u++ ) { var c = i.names[u]; if ( (!n.pointerIsDown || !/mouse|pointer/.test(n.pointerType) || 0 != (a & this.options[c].mouseButtons)) && (s = i[c].checker(e, t, this, r, n, o)) ) return s; } }); }, { "../Interactable": 4, "../actions/base": 6, "../utils": 44, "../utils/domUtils": 39, "../utils/is": 46, }, ], 13: [ function (e, t, n) { "use strict"; var r = e("../interact"), i = e("../Interactable"), o = e("../Interaction"), a = e("../actions/base"), s = e("../defaultOptions"), u = e("../scope"), c = e("../utils"), l = e("../utils/Signals").new(); e("./InteractableMethods"); var f = { signals: l, withinInteractionLimit: m, maxInteractions: 1 / 0, defaults: { perAction: { manualStart: !1, max: 1 / 0, maxPerElement: 1, allowFrom: null, ignoreFrom: null, mouseButtons: 1, }, }, setActionDefaults: function (e) { c.extend(e.defaults, f.defaults.perAction); }, validateAction: d, }; function d(e, t, n, r) { return c.is.object(e) && t.testIgnoreAllow(t.options[e.name], n, r) && t.options[e.name].enabled && m(t, n, e) ? e : null; } function p(e, t, n, r, i, o) { for (var a = 0, s = r.length; a < s; a++) { var u = r[a], c = i[a], l = d(u.getAction(t, n, e, c), u, c, o); if (l) return { action: l, target: u, element: c }; } return {}; } function h(e, t, n, r) { var i = [], o = [], a = r; function s(e) { i.push(e), o.push(a); } for (; c.is.element(a); ) { (i = []), (o = []), u.interactables.forEachMatch(a, s); var l = p(e, t, n, i, o, r); if (l.action && !l.target.options[l.action.name].manualStart) return l; a = c.parentNode(a); } return {}; } function g(e, t) { var n = t.action, r = t.target, i = t.element; if ( ((n = n || {}), e.target && e.target.options.styleCursor && (e.target._doc.documentElement.style.cursor = ""), (e.target = r), (e.element = i), c.copyAction(e.prepared, n), r && r.options.styleCursor) ) { var o = n ? a[n.name].getCursor(n) : ""; e.target._doc.documentElement.style.cursor = o; } l.fire("prepared", { interaction: e }); } function m(e, t, n) { var r = e.options, i = r[n.name].max, o = r[n.name].maxPerElement, a = 0, s = 0, c = 0; if (i && o && f.maxInteractions) { for (var l = 0; l < u.interactions.length; l++) { var d = u.interactions[l], p = d.prepared.name; if (d.interacting()) { if (++a >= f.maxInteractions) return !1; if (d.target === e) { if ((s += (p === n.name) | 0) >= i) return !1; if (d.element === t && (c++, p !== n.name || c >= o)) return !1; } } } return f.maxInteractions > 0; } } o.signals.on("down", function (e) { var t = e.interaction, n = e.pointer, r = e.event, i = e.eventTarget; t.interacting() || g(t, h(t, n, r, i)); }), o.signals.on("move", function (e) { var t = e.interaction, n = e.pointer, r = e.event, i = e.eventTarget; "mouse" !== t.pointerType || t.pointerIsDown || t.interacting() || g(t, h(t, n, r, i)); }), o.signals.on("move", function (e) { var t = e.interaction, n = e.event; if ( t.pointerIsDown && !t.interacting() && t.pointerWasMoved && t.prepared.name ) { l.fire("before-start", e); var r = t.target; t.prepared.name && r && (r.options[t.prepared.name].manualStart || !m(r, t.element, t.prepared) ? t.stop(n) : t.start(t.prepared, r, t.element)); } }), o.signals.on("stop", function (e) { var t = e.interaction.target; t && t.options.styleCursor && (t._doc.documentElement.style.cursor = ""); }), (r.maxInteractions = function (e) { return c.is.number(e) ? ((f.maxInteractions = e), r) : f.maxInteractions; }), i.settingsMethods.push("styleCursor"), i.settingsMethods.push("actionChecker"), i.settingsMethods.push("ignoreFrom"), i.settingsMethods.push("allowFrom"), (s.base.actionChecker = null), (s.base.styleCursor = !0), c.extend(s.perAction, f.defaults.perAction), (t.exports = f); }, { "../Interactable": 4, "../Interaction": 5, "../actions/base": 6, "../defaultOptions": 18, "../interact": 21, "../scope": 33, "../utils": 44, "../utils/Signals": 34, "./InteractableMethods": 12, }, ], 14: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../scope"), o = e("../utils/is"), a = e("../utils/domUtils").parentNode; function s(e, t) { if (!t) return !1; var n = t.options.drag.startAxis; return "xy" === e || "xy" === n || n === e; } r.setActionDefaults(e("../actions/drag")), r.signals.on("before-start", function (e) { var t = e.interaction, n = e.eventTarget, u = e.dx, c = e.dy; if ("drag" === t.prepared.name) { var l = Math.abs(u), f = Math.abs(c), d = t.target.options.drag, p = d.startAxis, h = l > f ? "x" : l < f ? "y" : "xy"; if ( ((t.prepared.axis = "start" === d.lockAxis ? h[0] : d.lockAxis), "xy" !== h && "xy" !== p && p !== h) ) { t.prepared.name = null; for ( var g = n, m = function (e) { if (e !== t.target) { var i = t.target.options.drag; if ( !i.manualStart && e.testIgnoreAllow(i, g, n) ) { var o = e.getAction( t.downPointer, t.downEvent, t, g ); if ( o && "drag" === o.name && s(h, e) && r.validateAction(o, e, g, n) ) return e; } } }; o.element(g); ) { var y = i.interactables.forEachMatch(g, m); if (y) { (t.prepared.name = "drag"), (t.target = y), (t.element = g); break; } g = a(g); } } } }); }, { "../actions/drag": 7, "../scope": 33, "../utils/domUtils": 39, "../utils/is": 46, "./base": 13, }, ], 15: [ function (e, t, n) { "use strict"; e("./base").setActionDefaults(e("../actions/gesture")); }, { "../actions/gesture": 9, "./base": 13 }, ], 16: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../Interaction"); function o(e) { var t = e.prepared && e.prepared.name; if (!t) return null; var n = e.target.options; return n[t].hold || n[t].delay; } (r.defaults.perAction.hold = 0), (r.defaults.perAction.delay = 0), i.signals.on("new", function (e) { e.autoStartHoldTimer = null; }), r.signals.on("prepared", function (e) { var t = e.interaction, n = o(t); n > 0 && (t.autoStartHoldTimer = setTimeout(function () { t.start(t.prepared, t.target, t.element); }, n)); }), i.signals.on("move", function (e) { var t = e.interaction, n = e.duplicate; t.pointerWasMoved && !n && clearTimeout(t.autoStartHoldTimer); }), r.signals.on("before-start", function (e) { var t = e.interaction; o(t) > 0 && (t.prepared.name = null); }), (t.exports = { getHoldDuration: o }); }, { "../Interaction": 5, "./base": 13 }, ], 17: [ function (e, t, n) { "use strict"; e("./base").setActionDefaults(e("../actions/resize")); }, { "../actions/resize": 10, "./base": 13 }, ], 18: [ function (e, t, n) { "use strict"; t.exports = { base: { accept: null, preventDefault: "auto", deltaSource: "page", }, perAction: { origin: { x: 0, y: 0 }, inertia: { enabled: !1, resistance: 10, minSpeed: 100, endSpeed: 10, allowResume: !0, smoothEndDuration: 300, }, }, }; }, {}, ], 19: [ function (e, t, n) { "use strict"; e("./inertia"), e("./modifiers/snap"), e("./modifiers/restrict"), e("./pointerEvents/base"), e("./pointerEvents/holdRepeat"), e("./pointerEvents/interactableTargets"), e("./autoStart/hold"), e("./actions/gesture"), e("./actions/resize"), e("./actions/drag"), e("./actions/drop"), e("./modifiers/snapSize"), e("./modifiers/restrictEdges"), e("./modifiers/restrictSize"), e("./autoStart/gesture"), e("./autoStart/resize"), e("./autoStart/drag"), e("./interactablePreventDefault.js"), e("./autoScroll"), (t.exports = e("./interact")); }, { "./actions/drag": 7, "./actions/drop": 8, "./actions/gesture": 9, "./actions/resize": 10, "./autoScroll": 11, "./autoStart/drag": 14, "./autoStart/gesture": 15, "./autoStart/hold": 16, "./autoStart/resize": 17, "./inertia": 20, "./interact": 21, "./interactablePreventDefault.js": 22, "./modifiers/restrict": 24, "./modifiers/restrictEdges": 25, "./modifiers/restrictSize": 26, "./modifiers/snap": 27, "./modifiers/snapSize": 28, "./pointerEvents/base": 30, "./pointerEvents/holdRepeat": 31, "./pointerEvents/interactableTargets": 32, }, ], 20: [ function (e, t, n) { "use strict"; var r = e("./InteractEvent"), i = e("./Interaction"), o = e("./modifiers/base"), a = e("./utils"), s = e("./utils/raf"); function u(e, t) { var n = e.target.options[e.prepared.name].inertia, r = n.resistance, i = -Math.log(n.endSpeed / t.v0) / r; (t.x0 = e.prevEvent.pageX), (t.y0 = e.prevEvent.pageY), (t.t0 = t.startEvent.timeStamp / 1e3), (t.sx = t.sy = 0), (t.modifiedXe = t.xe = (t.vx0 - i) / r), (t.modifiedYe = t.ye = (t.vy0 - i) / r), (t.te = i), (t.lambda_v0 = r / t.v0), (t.one_ve_v0 = 1 - n.endSpeed / t.v0); } function c() { f(this), a.setCoordDeltas( this.pointerDelta, this.prevCoords, this.curCoords ); var e = this.inertiaStatus, t = this.target.options[this.prepared.name].inertia.resistance, n = new Date().getTime() / 1e3 - e.t0; if (n < e.te) { var r = 1 - (Math.exp(-t * n) - e.lambda_v0) / e.one_ve_v0; if (e.modifiedXe === e.xe && e.modifiedYe === e.ye) (e.sx = e.xe * r), (e.sy = e.ye * r); else { var i = a.getQuadraticCurvePoint( 0, 0, e.xe, e.ye, e.modifiedXe, e.modifiedYe, r ); (e.sx = i.x), (e.sy = i.y); } this.doMove(), (e.i = s.request(this.boundInertiaFrame)); } else (e.sx = e.modifiedXe), (e.sy = e.modifiedYe), this.doMove(), this.end(e.startEvent), (e.active = !1), (this.simulation = null); a.copyCoords(this.prevCoords, this.curCoords); } function l() { f(this); var e = this.inertiaStatus, t = new Date().getTime() - e.t0, n = this.target.options[this.prepared.name].inertia .smoothEndDuration; t < n ? ((e.sx = a.easeOutQuad(t, 0, e.xe, n)), (e.sy = a.easeOutQuad(t, 0, e.ye, n)), this.pointerMove(e.startEvent, e.startEvent), (e.i = s.request(this.boundSmoothEndFrame))) : ((e.sx = e.xe), (e.sy = e.ye), this.pointerMove(e.startEvent, e.startEvent), this.end(e.startEvent), (e.smoothEnd = e.active = !1), (this.simulation = null)); } function f(e) { var t = e.inertiaStatus; if (t.active) { var n = t.upCoords.page, r = t.upCoords.client; a.setCoords(e.curCoords, [ { pageX: n.x + t.sx, pageY: n.y + t.sy, clientX: r.x + t.sx, clientY: r.y + t.sy, }, ]); } } i.signals.on("new", function (e) { (e.inertiaStatus = { active: !1, smoothEnd: !1, allowResume: !1, startEvent: null, upCoords: {}, xe: 0, ye: 0, sx: 0, sy: 0, t0: 0, vx0: 0, vys: 0, duration: 0, lambda_v0: 0, one_ve_v0: 0, i: null, }), (e.boundInertiaFrame = function () { return c.apply(e); }), (e.boundSmoothEndFrame = function () { return l.apply(e); }); }), i.signals.on("down", function (e) { var t = e.interaction, n = e.event, u = e.pointer, c = e.eventTarget, l = t.inertiaStatus; if (l.active) for (var f = c; a.is.element(f); ) { if (f === t.element) { s.cancel(l.i), (l.active = !1), (t.simulation = null), t.updatePointer(u), a.setCoords(t.curCoords, t.pointers); var d = { interaction: t }; i.signals.fire("before-action-move", d), i.signals.fire("action-resume", d); var p = new r( t, n, t.prepared.name, "inertiaresume", t.element ); t.target.fire(p), (t.prevEvent = p), o.resetStatuses(t.modifierStatuses), a.copyCoords(t.prevCoords, t.curCoords); break; } f = a.parentNode(f); } }), i.signals.on("up", function (e) { var t = e.interaction, n = e.event, i = t.inertiaStatus; if (t.interacting() && !i.active) { var c = t.target, l = c && c.options, f = l && t.prepared.name && l[t.prepared.name].inertia, d = new Date().getTime(), p = {}, h = a.extend({}, t.curCoords.page), g = t.pointerDelta.client.speed, m = !1, y = void 0, v = f && f.enabled && "gesture" !== t.prepared.name && n !== i.startEvent, b = v && d - t.curCoords.timeStamp < 50 && g > f.minSpeed && g > f.endSpeed, _ = { interaction: t, pageCoords: h, statuses: p, preEnd: !0, requireEndOnly: !0, }; v && !b && (o.resetStatuses(p), (y = o.setAll(_)).shouldMove && y.locked && (m = !0)), (b || m) && (a.copyCoords(i.upCoords, t.curCoords), (t.pointers[0] = i.startEvent = new r( t, n, t.prepared.name, "inertiastart", t.element )), (i.t0 = d), (i.active = !0), (i.allowResume = f.allowResume), (t.simulation = i), c.fire(i.startEvent), b ? ((i.vx0 = t.pointerDelta.client.vx), (i.vy0 = t.pointerDelta.client.vy), (i.v0 = g), u(t, i), a.extend(h, t.curCoords.page), (h.x += i.xe), (h.y += i.ye), o.resetStatuses(p), (y = o.setAll(_)), (i.modifiedXe += y.dx), (i.modifiedYe += y.dy), (i.i = s.request(t.boundInertiaFrame))) : ((i.smoothEnd = !0), (i.xe = y.dx), (i.ye = y.dy), (i.sx = i.sy = 0), (i.i = s.request(t.boundSmoothEndFrame)))); } }), i.signals.on("stop-active", function (e) { var t = e.interaction, n = t.inertiaStatus; n.active && (s.cancel(n.i), (n.active = !1), (t.simulation = null)); }); }, { "./InteractEvent": 3, "./Interaction": 5, "./modifiers/base": 23, "./utils": 44, "./utils/raf": 50, }, ], 21: [ function (e, t, n) { "use strict"; var r = e("./utils/browser"), i = e("./utils/events"), o = e("./utils"), a = e("./scope"), s = e("./Interactable"), u = e("./Interaction"), c = {}; function l(e, t) { var n = a.interactables.get(e, t); return n || ((n = new s(e, t)).events.global = c), n; } (l.isSet = function (e, t) { return -1 !== a.interactables.indexOfElement(e, t && t.context); }), (l.on = function (e, t, n) { if ( (o.is.string(e) && -1 !== e.search(" ") && (e = e.trim().split(/ +/)), o.is.array(e)) ) { for (var r = 0; r < e.length; r++) { var u = e[r]; l.on(u, t, n); } return l; } if (o.is.object(e)) { for (var f in e) l.on(f, e[f], t); return l; } return ( o.contains(s.eventTypes, e) ? c[e] ? c[e].push(t) : (c[e] = [t]) : i.add(a.document, e, t, { options: n }), l ); }), (l.off = function (e, t, n) { if ( (o.is.string(e) && -1 !== e.search(" ") && (e = e.trim().split(/ +/)), o.is.array(e)) ) { for (var r = 0; r < e.length; r++) { var u = e[r]; l.off(u, t, n); } return l; } if (o.is.object(e)) { for (var f in e) l.off(f, e[f], t); return l; } if (o.contains(s.eventTypes, e)) { var d = void 0; e in c && -1 !== (d = c[e].indexOf(t)) && c[e].splice(d, 1); } else i.remove(a.document, e, t, n); return l; }), (l.debug = function () { return a; }), (l.getPointerAverage = o.pointerAverage), (l.getTouchBBox = o.touchBBox), (l.getTouchDistance = o.touchDistance), (l.getTouchAngle = o.touchAngle), (l.getElementRect = o.getElementRect), (l.getElementClientRect = o.getElementClientRect), (l.matchesSelector = o.matchesSelector), (l.closest = o.closest), (l.supportsTouch = function () { return r.supportsTouch; }), (l.supportsPointerEvent = function () { return r.supportsPointerEvent; }), (l.stop = function (e) { for (var t = a.interactions.length - 1; t >= 0; t--) a.interactions[t].stop(e); return l; }), (l.pointerMoveTolerance = function (e) { return o.is.number(e) ? ((u.pointerMoveTolerance = e), l) : u.pointerMoveTolerance; }), (l.addDocument = a.addDocument), (l.removeDocument = a.removeDocument), (a.interact = l), (t.exports = l); }, { "./Interactable": 4, "./Interaction": 5, "./scope": 33, "./utils": 44, "./utils/browser": 36, "./utils/events": 40, }, ], 22: [ function (e, t, n) { "use strict"; var r = e("./Interactable"), i = e("./Interaction"), o = e("./scope"), a = e("./utils/is"), s = e("./utils/events"), u = e("./utils/browser"), c = e("./utils/domUtils"), l = c.nodeContains, f = c.matchesSelector; function d(e) { var t = e.interaction, n = e.event; t.target && t.target.checkAndPreventDefault(n); } (r.prototype.preventDefault = function (e) { return /^(always|never|auto)$/.test(e) ? ((this.options.preventDefault = e), this) : a.bool(e) ? ((this.options.preventDefault = e ? "always" : "never"), this) : this.options.preventDefault; }), (r.prototype.checkAndPreventDefault = function (e) { var t = this.options.preventDefault; "never" !== t && (("always" !== t && ((s.supportsPassive && /^touch(start|move)$/.test(e.type) && !u.isIOS) || /^(mouse|pointer|touch)*(down|start)/i.test(e.type) || (a.element(e.target) && f( e.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *" )))) || e.preventDefault()); }); for ( var p = ["down", "move", "up", "cancel"], h = 0; h < p.length; h++ ) { var g = p[h]; i.signals.on(g, d); } i.docEvents.dragstart = function (e) { for (var t = 0; t < o.interactions.length; t++) { var n = o.interactions[t]; if ( n.element && (n.element === e.target || l(n.element, e.target)) ) return void n.target.checkAndPreventDefault(e); } }; }, { "./Interactable": 4, "./Interaction": 5, "./scope": 33, "./utils/browser": 36, "./utils/domUtils": 39, "./utils/events": 40, "./utils/is": 46, }, ], 23: [ function (e, t, n) { "use strict"; var r = e("../InteractEvent"), i = e("../Interaction"), o = e("../utils/extend"), a = { names: [], setOffsets: function (e) { var t = e.interaction, n = e.pageCoords, r = t.target, i = t.element, o = t.startOffset, s = r.getRect(i); s ? ((o.left = n.x - s.left), (o.top = n.y - s.top), (o.right = s.right - n.x), (o.bottom = s.bottom - n.y), "width" in s || (s.width = s.right - s.left), "height" in s || (s.height = s.bottom - s.top)) : (o.left = o.top = o.right = o.bottom = 0), (e.rect = s), (e.interactable = r), (e.element = i); for (var u = 0; u < a.names.length; u++) { var c = a.names[u]; (e.options = r.options[t.prepared.name][c]), e.options && (t.modifierOffsets[c] = a[c].setOffset(e)); } }, setAll: function (e) { var t = e.interaction, n = e.statuses, r = e.preEnd, i = e.requireEndOnly, u = { dx: 0, dy: 0, changed: !1, locked: !1, shouldMove: !0, }; e.modifiedCoords = o({}, e.pageCoords); for (var c = 0; c < a.names.length; c++) { var l = a.names[c], f = a[l], d = t.target.options[t.prepared.name][l]; s(d, r, i) && ((e.status = e.status = n[l]), (e.options = d), (e.offset = e.interaction.modifierOffsets[l]), f.set(e), e.status.locked && ((e.modifiedCoords.x += e.status.dx), (e.modifiedCoords.y += e.status.dy), (u.dx += e.status.dx), (u.dy += e.status.dy), (u.locked = !0))); } return ( (u.shouldMove = !e.status || !u.locked || e.status.changed), u ); }, resetStatuses: function (e) { for (var t = 0; t < a.names.length; t++) { var n = a.names[t], r = e[n] || {}; (r.dx = r.dy = 0), (r.modifiedX = r.modifiedY = NaN), (r.locked = !1), (r.changed = !0), (e[n] = r); } return e; }, start: function (e, t) { var n = e.interaction, r = { interaction: n, pageCoords: ("action-resume" === t ? n.curCoords : n.startCoords ).page, startOffset: n.startOffset, statuses: n.modifierStatuses, preEnd: !1, requireEndOnly: !1, }; a.setOffsets(r), a.resetStatuses(r.statuses), (r.pageCoords = o({}, n.startCoords.page)), (n.modifierResult = a.setAll(r)); }, beforeMove: function (e) { var t = e.interaction, n = e.preEnd, r = e.interactingBeforeMove, i = a.setAll({ interaction: t, preEnd: n, pageCoords: t.curCoords.page, statuses: t.modifierStatuses, requireEndOnly: !1, }); !i.shouldMove && r && (t._dontFireMove = !0), (t.modifierResult = i); }, end: function (e) { for ( var t = e.interaction, n = e.event, r = 0; r < a.names.length; r++ ) { var i = a.names[r]; if (s(t.target.options[t.prepared.name][i], !0, !0)) { t.doMove({ event: n, preEnd: !0 }); break; } } }, setXY: function (e) { for ( var t = e.iEvent, n = e.interaction, r = o({}, e), i = 0; i < a.names.length; i++ ) { var s = a.names[i]; if ( ((r.options = n.target.options[n.prepared.name][s]), r.options) ) { var u = a[s]; (r.status = n.modifierStatuses[s]), (t[s] = u.modifyCoords(r)); } } }, }; function s(e, t, n) { return e && e.enabled && (t || !e.endOnly) && (!n || e.endOnly); } i.signals.on("new", function (e) { (e.startOffset = { left: 0, right: 0, top: 0, bottom: 0 }), (e.modifierOffsets = {}), (e.modifierStatuses = a.resetStatuses({})), (e.modifierResult = null); }), i.signals.on("action-start", a.start), i.signals.on("action-resume", a.start), i.signals.on("before-action-move", a.beforeMove), i.signals.on("action-end", a.end), r.signals.on("set-xy", a.setXY), (t.exports = a); }, { "../InteractEvent": 3, "../Interaction": 5, "../utils/extend": 41, }, ], 24: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../utils"), o = e("../defaultOptions"), a = { defaults: { enabled: !1, endOnly: !1, restriction: null, elementRect: null, }, setOffset: function (e) { var t = e.rect, n = e.startOffset, r = e.options, i = r && r.elementRect, o = {}; return ( t && i ? ((o.left = n.left - t.width * i.left), (o.top = n.top - t.height * i.top), (o.right = n.right - t.width * (1 - i.right)), (o.bottom = n.bottom - t.height * (1 - i.bottom))) : (o.left = o.top = o.right = o.bottom = 0), o ); }, set: function (e) { var t = e.modifiedCoords, n = e.interaction, r = e.status, o = e.options; if (!o) return r; var a = r.useStatusXY ? { x: r.x, y: r.y } : i.extend({}, t), u = s(o.restriction, n, a); if (!u) return r; (r.dx = 0), (r.dy = 0), (r.locked = !1); var c = u, l = a.x, f = a.y, d = n.modifierOffsets.restrict; "x" in u && "y" in u ? ((l = Math.max( Math.min(c.x + c.width - d.right, a.x), c.x + d.left )), (f = Math.max( Math.min(c.y + c.height - d.bottom, a.y), c.y + d.top ))) : ((l = Math.max( Math.min(c.right - d.right, a.x), c.left + d.left )), (f = Math.max( Math.min(c.bottom - d.bottom, a.y), c.top + d.top ))), (r.dx = l - a.x), (r.dy = f - a.y), (r.changed = r.modifiedX !== l || r.modifiedY !== f), (r.locked = !(!r.dx && !r.dy)), (r.modifiedX = l), (r.modifiedY = f); }, modifyCoords: function (e) { var t = e.page, n = e.client, r = e.status, i = e.phase, o = e.options, a = o && o.elementRect; if ( o && o.enabled && ("start" !== i || !a || !r.locked) && r.locked ) return ( (t.x += r.dx), (t.y += r.dy), (n.x += r.dx), (n.y += r.dy), { dx: r.dx, dy: r.dy } ); }, getRestrictionRect: s, }; function s(e, t, n) { return i.is.function(e) ? i.resolveRectLike(e, t.target, t.element, [n.x, n.y, t]) : i.resolveRectLike(e, t.target, t.element); } (r.restrict = a), r.names.push("restrict"), (o.perAction.restrict = a.defaults), (t.exports = a); }, { "../defaultOptions": 18, "../utils": 44, "./base": 23 }, ], 25: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../utils"), o = e("../utils/rect"), a = e("../defaultOptions"), s = e("../actions/resize"), u = e("./restrict").getRestrictionRect, c = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, l = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 }, f = { defaults: { enabled: !1, endOnly: !1, min: null, max: null, offset: null, }, setOffset: function (e) { var t = e.interaction, n = e.startOffset, r = e.options; if (!r) return i.extend({}, n); var o = u(r.offset, t, t.startCoords.page); return o ? { top: n.top + o.y, left: n.left + o.x, bottom: n.bottom + o.y, right: n.right + o.x, } : n; }, set: function (e) { var t = e.modifiedCoords, n = e.interaction, r = e.status, a = e.offset, s = e.options, f = n.prepared.linkedEdges || n.prepared.edges; if (n.interacting() && f) { var d = r.useStatusXY ? { x: r.x, y: r.y } : i.extend({}, t), p = o.xywhToTlbr(u(s.inner, n, d)) || c, h = o.xywhToTlbr(u(s.outer, n, d)) || l, g = d.x, m = d.y; (r.dx = 0), (r.dy = 0), (r.locked = !1), f.top ? (m = Math.min( Math.max(h.top + a.top, d.y), p.top + a.top )) : f.bottom && (m = Math.max( Math.min(h.bottom - a.bottom, d.y), p.bottom - a.bottom )), f.left ? (g = Math.min( Math.max(h.left + a.left, d.x), p.left + a.left )) : f.right && (g = Math.max( Math.min(h.right - a.right, d.x), p.right - a.right )), (r.dx = g - d.x), (r.dy = m - d.y), (r.changed = r.modifiedX !== g || r.modifiedY !== m), (r.locked = !(!r.dx && !r.dy)), (r.modifiedX = g), (r.modifiedY = m); } }, modifyCoords: function (e) { var t = e.page, n = e.client, r = e.status, i = e.phase, o = e.options; if ( o && o.enabled && ("start" !== i || !r.locked) && r.locked ) return ( (t.x += r.dx), (t.y += r.dy), (n.x += r.dx), (n.y += r.dy), { dx: r.dx, dy: r.dy } ); }, noInner: c, noOuter: l, getRestrictionRect: u, }; (r.restrictEdges = f), r.names.push("restrictEdges"), (a.perAction.restrictEdges = f.defaults), (s.defaults.restrictEdges = f.defaults), (t.exports = f); }, { "../actions/resize": 10, "../defaultOptions": 18, "../utils": 44, "../utils/rect": 51, "./base": 23, "./restrict": 24, }, ], 26: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("./restrictEdges"), o = e("../utils"), a = e("../utils/rect"), s = e("../defaultOptions"), u = e("../actions/resize"), c = { width: -1 / 0, height: -1 / 0 }, l = { width: 1 / 0, height: 1 / 0 }, f = { defaults: { enabled: !1, endOnly: !1, min: null, max: null }, setOffset: function (e) { return e.interaction.startOffset; }, set: function (e) { var t = e.interaction, n = e.options, r = t.prepared.linkedEdges || t.prepared.edges; if (t.interacting() && r) { var s = a.xywhToTlbr(t.resizeRects.inverted), u = a.tlbrToXywh(i.getRestrictionRect(n.min, t)) || c, f = a.tlbrToXywh(i.getRestrictionRect(n.max, t)) || l; (e.options = { enabled: n.enabled, endOnly: n.endOnly, inner: o.extend({}, i.noInner), outer: o.extend({}, i.noOuter), }), r.top ? ((e.options.inner.top = s.bottom - u.height), (e.options.outer.top = s.bottom - f.height)) : r.bottom && ((e.options.inner.bottom = s.top + u.height), (e.options.outer.bottom = s.top + f.height)), r.left ? ((e.options.inner.left = s.right - u.width), (e.options.outer.left = s.right - f.width)) : r.right && ((e.options.inner.right = s.left + u.width), (e.options.outer.right = s.left + f.width)), i.set(e); } }, modifyCoords: i.modifyCoords, }; (r.restrictSize = f), r.names.push("restrictSize"), (s.perAction.restrictSize = f.defaults), (u.defaults.restrictSize = f.defaults), (t.exports = f); }, { "../actions/resize": 10, "../defaultOptions": 18, "../utils": 44, "../utils/rect": 51, "./base": 23, "./restrictEdges": 25, }, ], 27: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../interact"), o = e("../utils"), a = e("../defaultOptions"), s = { defaults: { enabled: !1, endOnly: !1, range: 1 / 0, targets: null, offsets: null, relativePoints: null, }, setOffset: function (e) { var t = e.interaction, n = e.interactable, r = e.element, i = e.rect, a = e.startOffset, s = e.options, u = [], c = o.rectToXY(o.resolveRectLike(s.origin)) || o.getOriginXY(n, r, t.prepared.name), l = void 0; if ( "startCoords" === (s = s || n.options[t.prepared.name].snap || {}).offset ) l = { x: t.startCoords.page.x - c.x, y: t.startCoords.page.y - c.y, }; else { var f = o.resolveRectLike(s.offset, n, r, [t]); l = o.rectToXY(f) || { x: 0, y: 0 }; } if (i && s.relativePoints && s.relativePoints.length) for (var d = 0; d < s.relativePoints.length; d++) { var p = s.relativePoints[d], h = p.x, g = p.y; u.push({ x: a.left - i.width * h + l.x, y: a.top - i.height * g + l.y, }); } else u.push(l); return u; }, set: function (e) { var t = e.interaction, n = e.modifiedCoords, r = e.status, i = e.options, a = e.offset, s = [], u = void 0, c = void 0, l = void 0; if (r.useStatusXY) c = { x: r.x, y: r.y }; else { var f = o.getOriginXY( t.target, t.element, t.prepared.name ); ((c = o.extend({}, n)).x -= f.x), (c.y -= f.y); } (r.realX = c.x), (r.realY = c.y); for ( var d = i.targets ? i.targets.length : 0, p = 0; p < a.length; p++ ) for ( var h = a[p], g = h.x, m = h.y, y = c.x - g, v = c.y - m, b = 0; b < (i.targets || []).length; b++ ) { var _ = (i.targets || [])[b]; (u = o.is.function(_) ? _(y, v, t) : _) && s.push({ x: o.is.number(u.x) ? u.x + g : y, y: o.is.number(u.y) ? u.y + m : v, range: o.is.number(u.range) ? u.range : i.range, }); } var w = { target: null, inRange: !1, distance: 0, range: 0, dx: 0, dy: 0, }; for (l = 0, d = s.length; l < d; l++) { var T = (u = s[l]).range, x = u.x - c.x, S = u.y - c.y, k = o.hypot(x, S), E = k <= T; T === 1 / 0 && w.inRange && w.range !== 1 / 0 && (E = !1), (w.target && !(E ? w.inRange && T !== 1 / 0 ? k / T < w.distance / w.range : (T === 1 / 0 && w.range !== 1 / 0) || k < w.distance : !w.inRange && k < w.distance)) || ((w.target = u), (w.distance = k), (w.range = T), (w.inRange = E), (w.dx = x), (w.dy = S), (r.range = T)); } var O = void 0; w.target ? ((O = r.modifiedX !== w.target.x || r.modifiedY !== w.target.y), (r.modifiedX = w.target.x), (r.modifiedY = w.target.y)) : ((O = !0), (r.modifiedX = NaN), (r.modifiedY = NaN)), (r.dx = w.dx), (r.dy = w.dy), (r.changed = O || (w.inRange && !r.locked)), (r.locked = w.inRange); }, modifyCoords: function (e) { var t = e.page, n = e.client, r = e.status, i = e.phase, o = e.options, a = o && o.relativePoints; if (o && o.enabled && ("start" !== i || !a || !a.length)) return ( r.locked && ((t.x += r.dx), (t.y += r.dy), (n.x += r.dx), (n.y += r.dy)), { range: r.range, locked: r.locked, x: r.modifiedX, y: r.modifiedY, realX: r.realX, realY: r.realY, dx: r.dx, dy: r.dy, } ); }, }; (i.createSnapGrid = function (e) { return function (t, n) { var r = e.limits || { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0, }, i = 0, a = 0; o.is.object(e.offset) && ((i = e.offset.x), (a = e.offset.y)); var s = Math.round((t - i) / e.x), u = Math.round((n - a) / e.y); return { x: Math.max(r.left, Math.min(r.right, s * e.x + i)), y: Math.max(r.top, Math.min(r.bottom, u * e.y + a)), range: e.range, }; }; }), (r.snap = s), r.names.push("snap"), (a.perAction.snap = s.defaults), (t.exports = s); }, { "../defaultOptions": 18, "../interact": 21, "../utils": 44, "./base": 23, }, ], 28: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("./snap"), o = e("../defaultOptions"), a = e("../actions/resize"), s = e("../utils/"), u = { defaults: { enabled: !1, endOnly: !1, range: 1 / 0, targets: null, offsets: null, }, setOffset: function (e) { var t = e.interaction, n = e.options, r = t.prepared.edges; if (r) { e.options = { relativePoints: [ { x: r.left ? 0 : 1, y: r.top ? 0 : 1 }, ], origin: { x: 0, y: 0 }, offset: "self", range: n.range, }; var o = i.setOffset(e); return (e.options = n), o; } }, set: function (e) { var t = e.interaction, n = e.options, r = e.offset, o = e.modifiedCoords, a = s.extend({}, o), u = a.x - r[0].x, c = a.y - r[0].y; (e.options = s.extend({}, n)), (e.options.targets = []); for (var l = 0; l < (n.targets || []).length; l++) { var f = (n.targets || [])[l], d = void 0; (d = s.is.function(f) ? f(u, c, t) : f) && ("width" in d && "height" in d && ((d.x = d.width), (d.y = d.height)), e.options.targets.push(d)); } i.set(e); }, modifyCoords: function (e) { var t = e.options; (e.options = s.extend({}, t)), (e.options.enabled = t.enabled), (e.options.relativePoints = [null]), i.modifyCoords(e); }, }; (r.snapSize = u), r.names.push("snapSize"), (o.perAction.snapSize = u.defaults), (a.defaults.snapSize = u.defaults), (t.exports = u); }, { "../actions/resize": 10, "../defaultOptions": 18, "../utils/": 44, "./base": 23, "./snap": 27, }, ], 29: [ function (e, t, n) { "use strict"; function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } var i = e("../utils/pointerUtils"); t.exports = (function () { function e(t, n, o, a, s) { if ( (r(this, e), i.pointerExtend(this, o), o !== n && i.pointerExtend(this, n), (this.interaction = s), (this.timeStamp = new Date().getTime()), (this.originalEvent = o), (this.type = t), (this.pointerId = i.getPointerId(n)), (this.pointerType = i.getPointerType(n)), (this.target = a), (this.currentTarget = null), "tap" === t) ) { var u = s.getPointerIndex(n); this.dt = this.timeStamp - s.downTimes[u]; var c = this.timeStamp - s.tapTime; this.double = !!( s.prevTap && "doubletap" !== s.prevTap.type && s.prevTap.target === this.target && c < 500 ); } else "doubletap" === t && (this.dt = n.timeStamp - s.tapTime); } return ( (e.prototype.subtractOrigin = function (e) { var t = e.x, n = e.y; return ( (this.pageX -= t), (this.pageY -= n), (this.clientX -= t), (this.clientY -= n), this ); }), (e.prototype.addOrigin = function (e) { var t = e.x, n = e.y; return ( (this.pageX += t), (this.pageY += n), (this.clientX += t), (this.clientY += n), this ); }), (e.prototype.preventDefault = function () { this.originalEvent.preventDefault(); }), (e.prototype.stopPropagation = function () { this.propagationStopped = !0; }), (e.prototype.stopImmediatePropagation = function () { this.immediatePropagationStopped = this.propagationStopped = !0; }), e ); })(); }, { "../utils/pointerUtils": 49 }, ], 30: [ function (e, t, n) { "use strict"; var r = e("./PointerEvent"), i = e("../Interaction"), o = e("../utils"), a = e("../defaultOptions"), s = e("../utils/Signals").new(), u = ["down", "up", "cancel"], c = ["down", "up", "cancel"], l = { PointerEvent: r, fire: f, collectEventTargets: d, signals: s, defaults: { holdDuration: 600, ignoreFrom: null, allowFrom: null, origin: { x: 0, y: 0 }, }, types: [ "down", "move", "up", "cancel", "tap", "doubletap", "hold", ], }; function f(e) { for ( var t = e.interaction, n = e.pointer, i = e.event, a = e.eventTarget, u = e.type, c = void 0 === u ? e.pointerEvent.type : u, l = e.targets, p = void 0 === l ? d(e) : l, h = e.pointerEvent, g = void 0 === h ? new r(c, n, i, a, t) : h, m = { interaction: t, pointer: n, event: i, eventTarget: a, targets: p, type: c, pointerEvent: g, }, y = 0; y < p.length; y++ ) { var v = p[y]; for (var b in v.props || {}) g[b] = v.props[b]; var _ = o.getOriginXY(v.eventable, v.element); if ( (g.subtractOrigin(_), (g.eventable = v.eventable), (g.currentTarget = v.element), v.eventable.fire(g), g.addOrigin(_), g.immediatePropagationStopped || (g.propagationStopped && y + 1 < p.length && p[y + 1].element !== g.currentTarget)) ) break; } if ((s.fire("fired", m), "tap" === c)) { var w = g.double ? f({ interaction: t, pointer: n, event: i, eventTarget: a, type: "doubletap", }) : g; (t.prevTap = w), (t.tapTime = w.timeStamp); } return g; } function d(e) { var t = e.interaction, n = e.pointer, r = e.event, i = e.eventTarget, a = e.type, u = t.getPointerIndex(n); if ( "tap" === a && (t.pointerWasMoved || !t.downTargets[u] || t.downTargets[u] !== i) ) return []; for ( var c = o.getPath(i), l = { interaction: t, pointer: n, event: r, eventTarget: i, type: a, path: c, targets: [], element: null, }, f = 0; f < c.length; f++ ) { var d = c[f]; (l.element = d), s.fire("collect-targets", l); } return ( "hold" === a && (l.targets = l.targets.filter(function (e) { return ( e.eventable.options.holdDuration === t.holdTimers[u].duration ); })), l.targets ); } i.signals.on("update-pointer-down", function (e) { var t = e.interaction, n = e.pointerIndex; t.holdTimers[n] = { duration: 1 / 0, timeout: null }; }), i.signals.on("remove-pointer", function (e) { var t = e.interaction, n = e.pointerIndex; t.holdTimers.splice(n, 1); }), i.signals.on("move", function (e) { var t = e.interaction, n = e.pointer, r = e.event, i = e.eventTarget, o = e.duplicateMove, a = t.getPointerIndex(n); o || (t.pointerIsDown && !t.pointerWasMoved) || (t.pointerIsDown && clearTimeout(t.holdTimers[a].timeout), f({ interaction: t, pointer: n, event: r, eventTarget: i, type: "move", })); }), i.signals.on("down", function (e) { for ( var t = e.interaction, n = e.pointer, r = e.event, i = e.eventTarget, a = e.pointerIndex, u = t.holdTimers[a], c = o.getPath(i), l = { interaction: t, pointer: n, event: r, eventTarget: i, type: "hold", targets: [], path: c, element: null, }, d = 0; d < c.length; d++ ) { var p = c[d]; (l.element = p), s.fire("collect-targets", l); } if (l.targets.length) { for (var h = 1 / 0, g = 0; g < l.targets.length; g++) { var m = l.targets[g].eventable.options.holdDuration; m < h && (h = m); } (u.duration = h), (u.timeout = setTimeout(function () { f({ interaction: t, eventTarget: i, pointer: n, event: r, type: "hold", }); }, h)); } }), i.signals.on("up", function (e) { var t = e.interaction, n = e.pointer, r = e.event, i = e.eventTarget; t.pointerWasMoved || f({ interaction: t, eventTarget: i, pointer: n, event: r, type: "tap", }); }); for (var p = ["up", "cancel"], h = 0; h < p.length; h++) { var g = p[h]; i.signals.on(g, function (e) { var t = e.interaction, n = e.pointerIndex; t.holdTimers[n] && clearTimeout(t.holdTimers[n].timeout); }); } function m(e) { return function (t) { var n = t.interaction, r = t.pointer, i = t.event; f({ interaction: n, eventTarget: t.eventTarget, pointer: r, event: i, type: e, }); }; } for (var y = 0; y < u.length; y++) i.signals.on(u[y], m(c[y])); i.signals.on("new", function (e) { (e.prevTap = null), (e.tapTime = 0), (e.holdTimers = []); }), (a.pointerEvents = l.defaults), (t.exports = l); }, { "../Interaction": 5, "../defaultOptions": 18, "../utils": 44, "../utils/Signals": 34, "./PointerEvent": 29, }, ], 31: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../Interaction"); r.signals.on("new", u), r.signals.on("fired", c); for ( var o = ["move", "up", "cancel", "endall"], a = 0; a < o.length; a++ ) { var s = o[a]; i.signals.on(s, l); } function u(e) { var t = e.pointerEvent; "hold" === t.type && (t.count = (t.count || 0) + 1); } function c(e) { var t = e.interaction, n = e.pointerEvent, i = e.eventTarget, o = e.targets; if ("hold" === n.type && o.length) { var a = o[0].eventable.options.holdRepeatInterval; a <= 0 || (t.holdIntervalHandle = setTimeout(function () { r.fire({ interaction: t, eventTarget: i, type: "hold", pointer: n, event: n, }); }, a)); } } function l(e) { var t = e.interaction; t.holdIntervalHandle && (clearInterval(t.holdIntervalHandle), (t.holdIntervalHandle = null)); } (r.defaults.holdRepeatInterval = 0), r.types.push("holdrepeat"), (t.exports = { onNew: u, onFired: c, endHoldRepeat: l }); }, { "../Interaction": 5, "./base": 30 }, ], 32: [ function (e, t, n) { "use strict"; var r = e("./base"), i = e("../Interactable"), o = e("../utils/is"), a = e("../scope"), s = e("../utils/extend"), u = e("../utils/arr").merge; r.signals.on("collect-targets", function (e) { var t = e.targets, n = e.element, r = e.type, i = e.eventTarget; a.interactables.forEachMatch(n, function (e) { var a = e.events, s = a.options; a[r] && o.element(n) && e.testIgnoreAllow(s, n, i) && t.push({ element: n, eventable: a, props: { interactable: e }, }); }); }), i.signals.on("new", function (e) { var t = e.interactable; t.events.getRect = function (e) { return t.getRect(e); }; }), i.signals.on("set", function (e) { var t = e.interactable, n = e.options; s(t.events.options, r.defaults), s(t.events.options, n); }), u(i.eventTypes, r.types), (i.prototype.pointerEvents = function (e) { return s(this.events.options, e), this; }); var c = i.prototype._backCompatOption; (i.prototype._backCompatOption = function (e, t) { var n = c.call(this, e, t); return n === this && (this.events.options[e] = t), n; }), i.settingsMethods.push("pointerEvents"); }, { "../Interactable": 4, "../scope": 33, "../utils/arr": 35, "../utils/extend": 41, "../utils/is": 46, "./base": 30, }, ], 33: [ function (e, t, n) { "use strict"; var r = e("./utils"), i = e("./utils/events"), o = e("./utils/Signals").new(), a = e("./utils/window").getWindow, s = { signals: o, events: i, utils: r, document: e("./utils/domObjects").document, documents: [], addDocument: function (e, t) { if (r.contains(s.documents, e)) return !1; (t = t || a(e)), s.documents.push(e), i.documents.push(e), e !== s.document && i.add(t, "unload", s.onWindowUnload), o.fire("add-document", { doc: e, win: t }); }, removeDocument: function (e, t) { var n = s.documents.indexOf(e); (t = t || a(e)), i.remove(t, "unload", s.onWindowUnload), s.documents.splice(n, 1), i.documents.splice(n, 1), o.fire("remove-document", { win: t, doc: e }); }, onWindowUnload: function () { s.removeDocument(this.document, this); }, }; t.exports = s; }, { "./utils": 44, "./utils/Signals": 34, "./utils/domObjects": 38, "./utils/events": 40, "./utils/window": 52, }, ], 34: [ function (e, t, n) { "use strict"; function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } var i = (function () { function e() { r(this, e), (this.listeners = {}); } return ( (e.prototype.on = function (e, t) { this.listeners[e] ? this.listeners[e].push(t) : (this.listeners[e] = [t]); }), (e.prototype.off = function (e, t) { if (this.listeners[e]) { var n = this.listeners[e].indexOf(t); -1 !== n && this.listeners[e].splice(n, 1); } }), (e.prototype.fire = function (e, t) { var n = this.listeners[e]; if (n) for (var r = 0; r < n.length; r++) if (!1 === (0, n[r])(t, e)) return; }), e ); })(); (i.new = function () { return new i(); }), (t.exports = i); }, {}, ], 35: [ function (e, t, n) { "use strict"; function r(e, t) { return -1 !== e.indexOf(t); } function i(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; e.push(r); } return e; } t.exports = { contains: r, merge: i }; }, {}, ], 36: [ function (e, t, n) { "use strict"; var r = e("./window").window, i = e("./is"), o = e("./domObjects"), a = o.Element, s = r.navigator, u = { supportsTouch: !!( "ontouchstart" in r || (i.function(r.DocumentTouch) && o.document instanceof r.DocumentTouch) ), supportsPointerEvent: !!o.PointerEvent, isIOS: /iP(hone|od|ad)/.test(s.platform), isIOS7: /iP(hone|od|ad)/.test(s.platform) && /OS 7[^\d]/.test(s.appVersion), isIe9: /MSIE 9/.test(s.userAgent), prefixedMatchesSelector: "matches" in a.prototype ? "matches" : "webkitMatchesSelector" in a.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in a.prototype ? "mozMatchesSelector" : "oMatchesSelector" in a.prototype ? "oMatchesSelector" : "msMatchesSelector", pEventTypes: o.PointerEvent ? o.PointerEvent === r.MSPointerEvent ? { up: "MSPointerUp", down: "MSPointerDown", over: "mouseover", out: "mouseout", move: "MSPointerMove", cancel: "MSPointerCancel", } : { up: "pointerup", down: "pointerdown", over: "pointerover", out: "pointerout", move: "pointermove", cancel: "pointercancel", } : null, wheelEvent: "onmousewheel" in o.document ? "mousewheel" : "wheel", }; (u.isOperaMobile = "Opera" === s.appName && u.supportsTouch && s.userAgent.match("Presto")), (t.exports = u); }, { "./domObjects": 38, "./is": 46, "./window": 52 }, ], 37: [ function (e, t, n) { "use strict"; var r = e("./is"); t.exports = function e(t) { var n = {}; for (var i in t) r.plainObject(t[i]) ? (n[i] = e(t[i])) : (n[i] = t[i]); return n; }; }, { "./is": 46 }, ], 38: [ function (e, t, n) { "use strict"; var r = {}, i = e("./window").window; function o() {} (r.document = i.document), (r.DocumentFragment = i.DocumentFragment || o), (r.SVGElement = i.SVGElement || o), (r.SVGSVGElement = i.SVGSVGElement || o), (r.SVGElementInstance = i.SVGElementInstance || o), (r.Element = i.Element || o), (r.HTMLElement = i.HTMLElement || r.Element), (r.Event = i.Event), (r.Touch = i.Touch || o), (r.PointerEvent = i.PointerEvent || i.MSPointerEvent), (t.exports = r); }, { "./window": 52 }, ], 39: [ function (e, t, n) { "use strict"; var r = e("./window"), i = e("./browser"), o = e("./is"), a = e("./domObjects"), s = { nodeContains: function (e, t) { for (; t; ) { if (t === e) return !0; t = t.parentNode; } return !1; }, closest: function (e, t) { for (; o.element(e); ) { if (s.matchesSelector(e, t)) return e; e = s.parentNode(e); } return null; }, parentNode: function (e) { var t = e.parentNode; if (o.docFrag(t)) { for (; (t = t.host) && o.docFrag(t); ); return t; } return t; }, matchesSelector: function (e, t) { return ( r.window !== r.realWindow && (t = t.replace(/\/deep\//g, " ")), e[i.prefixedMatchesSelector](t) ); }, indexOfDeepestElement: function (e) { var t = [], n = [], r = void 0, i = e[0], o = i ? 0 : -1, s = void 0, u = void 0, c = void 0, l = void 0; for (c = 1; c < e.length; c++) if ((r = e[c]) && r !== i) if (i) { if (r.parentNode !== r.ownerDocument) if (i.parentNode !== r.ownerDocument) { if (!t.length) for ( s = i; s.parentNode && s.parentNode !== s.ownerDocument; ) t.unshift(s), (s = s.parentNode); if ( i instanceof a.HTMLElement && r instanceof a.SVGElement && !(r instanceof a.SVGSVGElement) ) { if (r === i.parentNode) continue; s = r.ownerSVGElement; } else s = r; for (n = []; s.parentNode !== s.ownerDocument; ) n.unshift(s), (s = s.parentNode); for (l = 0; n[l] && n[l] === t[l]; ) l++; var f = [n[l - 1], n[l], t[l]]; for (u = f[0].lastChild; u; ) { if (u === f[1]) { (i = r), (o = c), (t = []); break; } if (u === f[2]) break; u = u.previousSibling; } } else (i = r), (o = c); } else (i = r), (o = c); return o; }, matchesUpTo: function (e, t, n) { for (; o.element(e); ) { if (s.matchesSelector(e, t)) return !0; if ((e = s.parentNode(e)) === n) return s.matchesSelector(e, t); } return !1; }, getActualElement: function (e) { return e instanceof a.SVGElementInstance ? e.correspondingUseElement : e; }, getScrollXY: function (e) { return { x: (e = e || r.window).scrollX || e.document.documentElement.scrollLeft, y: e.scrollY || e.document.documentElement.scrollTop, }; }, getElementClientRect: function (e) { var t = e instanceof a.SVGElement ? e.getBoundingClientRect() : e.getClientRects()[0]; return ( t && { left: t.left, right: t.right, top: t.top, bottom: t.bottom, width: t.width || t.right - t.left, height: t.height || t.bottom - t.top, } ); }, getElementRect: function (e) { var t = s.getElementClientRect(e); if (!i.isIOS7 && t) { var n = s.getScrollXY(r.getWindow(e)); (t.left += n.x), (t.right += n.x), (t.top += n.y), (t.bottom += n.y); } return t; }, getPath: function (e) { for (var t = []; e; ) t.push(e), (e = s.parentNode(e)); return t; }, trySelector: function (e) { return !!o.string(e) && (a.document.querySelector(e), !0); }, }; t.exports = s; }, { "./browser": 36, "./domObjects": 38, "./is": 46, "./window": 52 }, ], 40: [ function (e, t, n) { "use strict"; var r, i = e("./is"), o = e("./domUtils"), a = e("./pointerUtils"), s = e("./pointerExtend"), u = e("./window").window, c = e("./arr").contains, l = [], f = [], d = {}, p = [], h = ((r = !1), u.document .createElement("div") .addEventListener("test", null, { get capture() { r = !0; }, }), r); function g(e, t, n, r) { var i = T(r), o = l.indexOf(e), a = f[o]; a || ((a = { events: {}, typeCount: 0 }), (o = l.push(e) - 1), f.push(a)), a.events[t] || ((a.events[t] = []), a.typeCount++), c(a.events[t], n) || (e.addEventListener(t, n, h ? i : !!i.capture), a.events[t].push(n)); } function m(e, t, n, r) { var i = T(r), o = l.indexOf(e), a = f[o]; if (a && a.events) if ("all" !== t) { if (a.events[t]) { var s = a.events[t].length; if ("all" === n) { for (var u = 0; u < s; u++) m(e, t, a.events[t][u], i); return; } for (var c = 0; c < s; c++) if (a.events[t][c] === n) { e.removeEventListener( "on" + t, n, h ? i : !!i.capture ), a.events[t].splice(c, 1); break; } a.events[t] && 0 === a.events[t].length && ((a.events[t] = null), a.typeCount--); } a.typeCount || (f.splice(o, 1), l.splice(o, 1)); } else for (t in a.events) a.events.hasOwnProperty(t) && m(e, t, "all"); } function y(e, t, n, r, i) { var o = T(i); if (!d[n]) { d[n] = { selectors: [], contexts: [], listeners: [] }; for (var a = 0; a < p.length; a++) { var s = p[a]; g(s, n, b), g(s, n, _, !0); } } var u = d[n], c = void 0; for ( c = u.selectors.length - 1; c >= 0 && (u.selectors[c] !== e || u.contexts[c] !== t); c-- ); -1 === c && ((c = u.selectors.length), u.selectors.push(e), u.contexts.push(t), u.listeners.push([])), u.listeners[c].push([r, !!o.capture, o.passive]); } function v(e, t, n, r, i) { var o = T(i), a = d[n], s = !1, u = void 0; if (a) for (u = a.selectors.length - 1; u >= 0; u--) if (a.selectors[u] === e && a.contexts[u] === t) { for ( var c = a.listeners[u], l = c.length - 1; l >= 0; l-- ) { var f = c[l], p = f[0], h = f[1], g = f[2]; if (p === r && h === !!o.capture && g === o.passive) { c.splice(l, 1), c.length || (a.selectors.splice(u, 1), a.contexts.splice(u, 1), a.listeners.splice(u, 1), m(t, n, b), m(t, n, _, !0), a.selectors.length || (d[n] = null)), (s = !0); break; } } if (s) break; } } function b(e, t) { var n = T(t), r = {}, u = d[e.type], c = a.getEventTargets(e)[0], l = c; for ( s(r, e), r.originalEvent = e, r.preventDefault = w; i.element(l); ) { for (var f = 0; f < u.selectors.length; f++) { var p = u.selectors[f], h = u.contexts[f]; if ( o.matchesSelector(l, p) && o.nodeContains(h, c) && o.nodeContains(h, l) ) { var g = u.listeners[f]; r.currentTarget = l; for (var m = 0; m < g.length; m++) { var y = g[m], v = y[0], b = y[1], _ = y[2]; b === !!n.capture && _ === n.passive && v(r); } } } l = o.parentNode(l); } } function _(e) { return b.call(this, e, !0); } function w() { this.originalEvent.preventDefault(); } function T(e) { return i.object(e) ? e : { capture: e }; } t.exports = { add: g, remove: m, addDelegate: y, removeDelegate: v, delegateListener: b, delegateUseCapture: _, delegatedEvents: d, documents: p, supportsOptions: h, _elements: l, _targets: f, }; }, { "./arr": 35, "./domUtils": 39, "./is": 46, "./pointerExtend": 48, "./pointerUtils": 49, "./window": 52, }, ], 41: [ function (e, t, n) { "use strict"; t.exports = function (e, t) { for (var n in t) e[n] = t[n]; return e; }; }, {}, ], 42: [ function (e, t, n) { "use strict"; var r = e("./rect"), i = r.resolveRectLike, o = r.rectToXY; t.exports = function (e, t, n) { var r = e.options[n], a = (r && r.origin) || e.options.origin, s = i(a, e, t, [e && t]); return o(s) || { x: 0, y: 0 }; }; }, { "./rect": 51 }, ], 43: [ function (e, t, n) { "use strict"; t.exports = function (e, t) { return Math.sqrt(e * e + t * t); }; }, {}, ], 44: [ function (e, t, n) { "use strict"; var r = e("./extend"), i = e("./window"), o = { warnOnce: function (e, t) { var n = !1; return function () { return ( n || (i.window.console.warn(t), (n = !0)), e.apply(this, arguments) ); }; }, _getQBezierValue: function (e, t, n, r) { var i = 1 - e; return i * i * t + 2 * i * e * n + e * e * r; }, getQuadraticCurvePoint: function (e, t, n, r, i, a, s) { return { x: o._getQBezierValue(s, e, n, i), y: o._getQBezierValue(s, t, r, a), }; }, easeOutQuad: function (e, t, n, r) { return -n * (e /= r) * (e - 2) + t; }, copyAction: function (e, t) { return ( (e.name = t.name), (e.axis = t.axis), (e.edges = t.edges), e ); }, is: e("./is"), extend: r, hypot: e("./hypot"), getOriginXY: e("./getOriginXY"), }; r(o, e("./arr")), r(o, e("./domUtils")), r(o, e("./pointerUtils")), r(o, e("./rect")), (t.exports = o); }, { "./arr": 35, "./domUtils": 39, "./extend": 41, "./getOriginXY": 42, "./hypot": 43, "./is": 46, "./pointerUtils": 49, "./rect": 51, "./window": 52, }, ], 45: [ function (e, t, n) { "use strict"; var r = e("../scope"), i = e("./index"), o = { methodOrder: [ "simulationResume", "mouseOrPen", "hasPointer", "idle", ], search: function (e, t, n) { for ( var r = i.getPointerType(e), a = { pointer: e, pointerId: i.getPointerId(e), pointerType: r, eventType: t, eventTarget: n, }, s = 0; s < o.methodOrder.length; s++ ) { var u; u = o.methodOrder[s]; var c = o[u](a); if (c) return c; } }, simulationResume: function (e) { var t = e.pointerType, n = e.eventType, o = e.eventTarget; if (!/down|start/i.test(n)) return null; for (var a = 0; a < r.interactions.length; a++) { var s = r.interactions[a], u = o; if ( s.simulation && s.simulation.allowResume && s.pointerType === t ) for (; u; ) { if (u === s.element) return s; u = i.parentNode(u); } } return null; }, mouseOrPen: function (e) { var t = e.pointerId, n = e.pointerType, o = e.eventType; if ("mouse" !== n && "pen" !== n) return null; for ( var a = void 0, s = 0; s < r.interactions.length; s++ ) { var u = r.interactions[s]; if (u.pointerType === n) { if (u.simulation && !i.contains(u.pointerIds, t)) continue; if (u.interacting()) return u; a || (a = u); } } if (a) return a; for (var c = 0; c < r.interactions.length; c++) { var l = r.interactions[c]; if ( !( l.pointerType !== n || (/down/i.test(o) && l.simulation) ) ) return l; } return null; }, hasPointer: function (e) { for ( var t = e.pointerId, n = 0; n < r.interactions.length; n++ ) { var o = r.interactions[n]; if (i.contains(o.pointerIds, t)) return o; } }, idle: function (e) { for ( var t = e.pointerType, n = 0; n < r.interactions.length; n++ ) { var i = r.interactions[n]; if (1 === i.pointerIds.length) { var o = i.target; if (o && !o.options.gesture.enabled) continue; } else if (i.pointerIds.length >= 2) continue; if (!i.interacting() && t === i.pointerType) return i; } return null; }, }; t.exports = o; }, { "../scope": 33, "./index": 44 }, ], 46: [ function (e, t, n) { "use strict"; var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, i = e("./window"), o = e("./isWindow"), a = { array: function () {}, window: function (e) { return e === i.window || o(e); }, docFrag: function (e) { return a.object(e) && 11 === e.nodeType; }, object: function (e) { return ( !!e && "object" === (void 0 === e ? "undefined" : r(e)) ); }, function: function (e) { return "function" == typeof e; }, number: function (e) { return "number" == typeof e; }, bool: function (e) { return "boolean" == typeof e; }, string: function (e) { return "string" == typeof e; }, element: function (e) { if (!e || "object" !== (void 0 === e ? "undefined" : r(e))) return !1; var t = i.getWindow(e) || i.window; return /object|function/.test(r(t.Element)) ? e instanceof t.Element : 1 === e.nodeType && "string" == typeof e.nodeName; }, plainObject: function (e) { return a.object(e) && "Object" === e.constructor.name; }, }; (a.array = function (e) { return ( a.object(e) && void 0 !== e.length && a.function(e.splice) ); }), (t.exports = a); }, { "./isWindow": 47, "./window": 52 }, ], 47: [ function (e, t, n) { "use strict"; t.exports = function (e) { return !(!e || !e.Window) && e instanceof e.Window; }; }, {}, ], 48: [ function (e, t, n) { "use strict"; function r(e, n) { for (var r in n) { var i = t.exports.prefixedPropREs, o = !1; for (var a in i) if (0 === r.indexOf(a) && i[a].test(r)) { o = !0; break; } o || "function" == typeof n[r] || (e[r] = n[r]); } return e; } (r.prefixedPropREs = { webkit: /(Movement[XY]|Radius[XY]|RotationAngle|Force)$/, }), (t.exports = r); }, {}, ], 49: [ function (e, t, n) { "use strict"; var r = e("./hypot"), i = e("./browser"), o = e("./domObjects"), a = e("./domUtils"), s = e("./domObjects"), u = e("./is"), c = { copyCoords: function (e, t) { (e.page = e.page || {}), (e.page.x = t.page.x), (e.page.y = t.page.y), (e.client = e.client || {}), (e.client.x = t.client.x), (e.client.y = t.client.y), (e.timeStamp = t.timeStamp); }, setCoordDeltas: function (e, t, n) { (e.page.x = n.page.x - t.page.x), (e.page.y = n.page.y - t.page.y), (e.client.x = n.client.x - t.client.x), (e.client.y = n.client.y - t.client.y), (e.timeStamp = n.timeStamp - t.timeStamp); var i = Math.max(e.timeStamp / 1e3, 0.001); (e.page.speed = r(e.page.x, e.page.y) / i), (e.page.vx = e.page.x / i), (e.page.vy = e.page.y / i), (e.client.speed = r(e.client.x, e.page.y) / i), (e.client.vx = e.client.x / i), (e.client.vy = e.client.y / i); }, isNativePointer: function (e) { return e instanceof o.Event || e instanceof o.Touch; }, getXY: function (e, t, n) { return ( (e = e || "page"), ((n = n || {}).x = t[e + "X"]), (n.y = t[e + "Y"]), n ); }, getPageXY: function (e, t) { return ( (t = t || {}), i.isOperaMobile && c.isNativePointer(e) ? (c.getXY("screen", e, t), (t.x += window.scrollX), (t.y += window.scrollY)) : c.getXY("page", e, t), t ); }, getClientXY: function (e, t) { return ( (t = t || {}), i.isOperaMobile && c.isNativePointer(e) ? c.getXY("screen", e, t) : c.getXY("client", e, t), t ); }, getPointerId: function (e) { return u.number(e.pointerId) ? e.pointerId : e.identifier; }, setCoords: function (e, t, n) { var r = t.length > 1 ? c.pointerAverage(t) : t[0], i = {}; c.getPageXY(r, i), (e.page.x = i.x), (e.page.y = i.y), c.getClientXY(r, i), (e.client.x = i.x), (e.client.y = i.y), (e.timeStamp = u.number(n) ? n : new Date().getTime()); }, pointerExtend: e("./pointerExtend"), getTouchPair: function (e) { var t = []; return ( u.array(e) ? ((t[0] = e[0]), (t[1] = e[1])) : "touchend" === e.type ? 1 === e.touches.length ? ((t[0] = e.touches[0]), (t[1] = e.changedTouches[0])) : 0 === e.touches.length && ((t[0] = e.changedTouches[0]), (t[1] = e.changedTouches[1])) : ((t[0] = e.touches[0]), (t[1] = e.touches[1])), t ); }, pointerAverage: function (e) { for ( var t = { pageX: 0, pageY: 0, clientX: 0, clientY: 0, screenX: 0, screenY: 0, }, n = 0; n < e.length; n++ ) { var r = e[n]; for (var i in t) t[i] += r[i]; } for (var o in t) t[o] /= e.length; return t; }, touchBBox: function (e) { if (e.length || (e.touches && e.touches.length > 1)) { var t = c.getTouchPair(e), n = Math.min(t[0].pageX, t[1].pageX), r = Math.min(t[0].pageY, t[1].pageY); return { x: n, y: r, left: n, top: r, width: Math.max(t[0].pageX, t[1].pageX) - n, height: Math.max(t[0].pageY, t[1].pageY) - r, }; } }, touchDistance: function (e, t) { var n = t + "X", i = t + "Y", o = c.getTouchPair(e), a = o[0][n] - o[1][n], s = o[0][i] - o[1][i]; return r(a, s); }, touchAngle: function (e, t, n) { var r = n + "X", i = n + "Y", o = c.getTouchPair(e), a = o[1][r] - o[0][r], s = o[1][i] - o[0][i]; return (180 * Math.atan2(s, a)) / Math.PI; }, getPointerType: function (e) { return u.string(e.pointerType) ? e.pointerType : u.number(e.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][e.pointerType] : /touch/.test(e.type) || e instanceof s.Touch ? "touch" : "mouse"; }, getEventTargets: function (e) { var t = u.function(e.composedPath) ? e.composedPath() : e.path; return [ a.getActualElement(t ? t[0] : e.target), a.getActualElement(e.currentTarget), ]; }, }; t.exports = c; }, { "./browser": 36, "./domObjects": 38, "./domUtils": 39, "./hypot": 43, "./is": 46, "./pointerExtend": 48, }, ], 50: [ function (e, t, n) { "use strict"; for ( var r = e("./window").window, i = ["ms", "moz", "webkit", "o"], o = 0, a = void 0, s = void 0, u = 0; u < i.length && !r.requestAnimationFrame; u++ ) (a = r[i[u] + "RequestAnimationFrame"]), (s = r[i[u] + "CancelAnimationFrame"] || r[i[u] + "CancelRequestAnimationFrame"]); a || (a = function (e) { var t = new Date().getTime(), n = Math.max(0, 16 - (t - o)), r = setTimeout(function () { e(t + n); }, n); return (o = t + n), r; }), s || (s = function (e) { clearTimeout(e); }), (t.exports = { request: a, cancel: s }); }, { "./window": 52 }, ], 51: [ function (e, t, n) { "use strict"; var r = e("./extend"), i = e("./is"), o = e("./domUtils"), a = o.closest, s = o.parentNode, u = o.getElementRect, c = { getStringOptionResult: function (e, t, n) { return i.string(e) ? (e = "parent" === e ? s(n) : "self" === e ? t.getRect(n) : a(n, e)) : null; }, resolveRectLike: function (e, t, n, r) { return ( (e = c.getStringOptionResult(e, t, n) || e), i.function(e) && (e = e.apply(null, r)), i.element(e) && (e = u(e)), e ); }, rectToXY: function (e) { return ( e && { x: "x" in e ? e.x : e.left, y: "y" in e ? e.y : e.top, } ); }, xywhToTlbr: function (e) { return ( !e || ("left" in e && "top" in e) || (((e = r({}, e)).left = e.x || 0), (e.top = e.y || 0), (e.right = e.right || e.left + e.width), (e.bottom = e.bottom || e.top + e.height)), e ); }, tlbrToXywh: function (e) { return ( !e || ("x" in e && "y" in e) || (((e = r({}, e)).x = e.left || 0), (e.top = e.top || 0), (e.width = e.width || e.right - e.x), (e.height = e.height || e.bottom - e.y)), e ); }, }; t.exports = c; }, { "./domUtils": 39, "./extend": 41, "./is": 46 }, ], 52: [ function (e, t, n) { "use strict"; var r = t.exports, i = e("./isWindow"); function o(e) { r.realWindow = e; var t = e.document.createTextNode(""); t.ownerDocument !== e.document && "function" == typeof e.wrap && e.wrap(t) === t && (e = e.wrap(e)), (r.window = e); } "undefined" == typeof window ? ((r.window = void 0), (r.realWindow = void 0)) : o(window), (r.getWindow = function (e) { if (i(e)) return e; var t = e.ownerDocument || e; return t.defaultView || t.parentWindow || r.window; }), (r.init = o); }, { "./isWindow": 47 }, ], }, {}, [1] )(1); }, 66337: function () { !(function () { "use strict"; if ("object" == typeof window) if ( "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype ) "isIntersecting" in window.IntersectionObserverEntry.prototype || Object.defineProperty( window.IntersectionObserverEntry.prototype, "isIntersecting", { get: function () { return this.intersectionRatio > 0; }, } ); else { var e = (function (e) { for (var t = window.document, n = i(t); n; ) n = i((t = n.ownerDocument)); return t; })(), t = [], n = null, r = null; (a.prototype.THROTTLE_TIMEOUT = 100), (a.prototype.POLL_INTERVAL = null), (a.prototype.USE_MUTATION_OBSERVER = !0), (a._setupCrossOriginUpdater = function () { return ( n || (n = function (e, n) { (r = e && n ? f(e, n) : { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0, }), t.forEach(function (e) { e._checkForIntersections(); }); }), n ); }), (a._resetCrossOriginUpdater = function () { (n = null), (r = null); }), (a.prototype.observe = function (e) { if ( !this._observationTargets.some(function (t) { return t.element == e; }) ) { if (!e || 1 != e.nodeType) throw new Error("target must be an Element"); this._registerInstance(), this._observationTargets.push({ element: e, entry: null }), this._monitorIntersections(e.ownerDocument), this._checkForIntersections(); } }), (a.prototype.unobserve = function (e) { (this._observationTargets = this._observationTargets.filter( function (t) { return t.element != e; } )), this._unmonitorIntersections(e.ownerDocument), 0 == this._observationTargets.length && this._unregisterInstance(); }), (a.prototype.disconnect = function () { (this._observationTargets = []), this._unmonitorAllIntersections(), this._unregisterInstance(); }), (a.prototype.takeRecords = function () { var e = this._queuedEntries.slice(); return (this._queuedEntries = []), e; }), (a.prototype._initThresholds = function (e) { var t = e || [0]; return ( Array.isArray(t) || (t = [t]), t.sort().filter(function (e, t, n) { if ("number" != typeof e || isNaN(e) || e < 0 || e > 1) throw new Error( "threshold must be a number between 0 and 1 inclusively" ); return e !== n[t - 1]; }) ); }), (a.prototype._parseRootMargin = function (e) { var t = (e || "0px").split(/\s+/).map(function (e) { var t = /^(-?\d*\.?\d+)(px|%)$/.exec(e); if (!t) throw new Error( "rootMargin must be specified in pixels or percent" ); return { value: parseFloat(t[1]), unit: t[2] }; }); return ( (t[1] = t[1] || t[0]), (t[2] = t[2] || t[0]), (t[3] = t[3] || t[1]), t ); }), (a.prototype._monitorIntersections = function (t) { var n = t.defaultView; if (n && -1 == this._monitoringDocuments.indexOf(t)) { var r = this._checkForIntersections, o = null, a = null; this.POLL_INTERVAL ? (o = n.setInterval(r, this.POLL_INTERVAL)) : (s(n, "resize", r, !0), s(t, "scroll", r, !0), this.USE_MUTATION_OBSERVER && "MutationObserver" in n && (a = new n.MutationObserver(r)).observe(t, { attributes: !0, childList: !0, characterData: !0, subtree: !0, })), this._monitoringDocuments.push(t), this._monitoringUnsubscribes.push(function () { var e = t.defaultView; e && (o && e.clearInterval(o), u(e, "resize", r, !0)), u(t, "scroll", r, !0), a && a.disconnect(); }); var c = (this.root && (this.root.ownerDocument || this.root)) || e; if (t != c) { var l = i(t); l && this._monitorIntersections(l.ownerDocument); } } }), (a.prototype._unmonitorIntersections = function (t) { var n = this._monitoringDocuments.indexOf(t); if (-1 != n) { var r = (this.root && (this.root.ownerDocument || this.root)) || e, o = this._observationTargets.some(function (e) { var n = e.element.ownerDocument; if (n == t) return !0; for (; n && n != r; ) { var o = i(n); if ((n = o && o.ownerDocument) == t) return !0; } return !1; }); if (!o) { var a = this._monitoringUnsubscribes[n]; if ( (this._monitoringDocuments.splice(n, 1), this._monitoringUnsubscribes.splice(n, 1), a(), t != r) ) { var s = i(t); s && this._unmonitorIntersections(s.ownerDocument); } } } }), (a.prototype._unmonitorAllIntersections = function () { var e = this._monitoringUnsubscribes.slice(0); (this._monitoringDocuments.length = 0), (this._monitoringUnsubscribes.length = 0); for (var t = 0; t < e.length; t++) e[t](); }), (a.prototype._checkForIntersections = function () { if (this.root || !n || r) { var e = this._rootIsInDom(), t = e ? this._getRootRect() : { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0, }; this._observationTargets.forEach(function (r) { var i = r.element, a = c(i), s = this._rootContainsTarget(i), u = r.entry, l = e && s && this._computeTargetAndRootIntersection(i, a, t), f = null; this._rootContainsTarget(i) ? (n && !this.root) || (f = t) : (f = { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0, }); var d = (r.entry = new o({ time: window.performance && performance.now && performance.now(), target: i, boundingClientRect: a, rootBounds: f, intersectionRect: l, })); u ? e && s ? this._hasCrossedThreshold(u, d) && this._queuedEntries.push(d) : u && u.isIntersecting && this._queuedEntries.push(d) : this._queuedEntries.push(d); }, this), this._queuedEntries.length && this._callback(this.takeRecords(), this); } }), (a.prototype._computeTargetAndRootIntersection = function ( t, i, o ) { if ("none" != window.getComputedStyle(t).display) { for ( var a, s, u, l, d, h, g, m, y = i, v = p(t), b = !1; !b && v; ) { var _ = null, w = 1 == v.nodeType ? window.getComputedStyle(v) : {}; if ("none" == w.display) return null; if (v == this.root || 9 == v.nodeType) if (((b = !0), v == this.root || v == e)) n && !this.root ? !r || (0 == r.width && 0 == r.height) ? ((v = null), (_ = null), (y = null)) : (_ = r) : (_ = o); else { var T = p(v), x = T && c(T), S = T && this._computeTargetAndRootIntersection(T, x, o); x && S ? ((v = T), (_ = f(x, S))) : ((v = null), (y = null)); } else { var k = v.ownerDocument; v != k.body && v != k.documentElement && "visible" != w.overflow && (_ = c(v)); } if ( (_ && ((a = _), (s = y), (u = void 0), (l = void 0), (d = void 0), (h = void 0), (g = void 0), (m = void 0), (u = Math.max(a.top, s.top)), (l = Math.min(a.bottom, s.bottom)), (d = Math.max(a.left, s.left)), (h = Math.min(a.right, s.right)), (m = l - u), (y = ((g = h - d) >= 0 && m >= 0 && { top: u, bottom: l, left: d, right: h, width: g, height: m, }) || null)), !y) ) break; v = v && p(v); } return y; } }), (a.prototype._getRootRect = function () { var t; if (this.root && !h(this.root)) t = c(this.root); else { var n = h(this.root) ? this.root : e, r = n.documentElement, i = n.body; t = { top: 0, left: 0, right: r.clientWidth || i.clientWidth, width: r.clientWidth || i.clientWidth, bottom: r.clientHeight || i.clientHeight, height: r.clientHeight || i.clientHeight, }; } return this._expandRectByRootMargin(t); }), (a.prototype._expandRectByRootMargin = function (e) { var t = this._rootMarginValues.map(function (t, n) { return "px" == t.unit ? t.value : (t.value * (n % 2 ? e.width : e.height)) / 100; }), n = { top: e.top - t[0], right: e.right + t[1], bottom: e.bottom + t[2], left: e.left - t[3], }; return ( (n.width = n.right - n.left), (n.height = n.bottom - n.top), n ); }), (a.prototype._hasCrossedThreshold = function (e, t) { var n = e && e.isIntersecting ? e.intersectionRatio || 0 : -1, r = t.isIntersecting ? t.intersectionRatio || 0 : -1; if (n !== r) for (var i = 0; i < this.thresholds.length; i++) { var o = this.thresholds[i]; if (o == n || o == r || o < n != o < r) return !0; } }), (a.prototype._rootIsInDom = function () { return !this.root || d(e, this.root); }), (a.prototype._rootContainsTarget = function (t) { var n = (this.root && (this.root.ownerDocument || this.root)) || e; return d(n, t) && (!this.root || n == t.ownerDocument); }), (a.prototype._registerInstance = function () { t.indexOf(this) < 0 && t.push(this); }), (a.prototype._unregisterInstance = function () { var e = t.indexOf(this); -1 != e && t.splice(e, 1); }), (window.IntersectionObserver = a), (window.IntersectionObserverEntry = o); } function i(e) { try { return (e.defaultView && e.defaultView.frameElement) || null; } catch (e) { return null; } } function o(e) { (this.time = e.time), (this.target = e.target), (this.rootBounds = l(e.rootBounds)), (this.boundingClientRect = l(e.boundingClientRect)), (this.intersectionRect = l( e.intersectionRect || { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0, } )), (this.isIntersecting = !!e.intersectionRect); var t = this.boundingClientRect, n = t.width * t.height, r = this.intersectionRect, i = r.width * r.height; this.intersectionRatio = n ? Number((i / n).toFixed(4)) : this.isIntersecting ? 1 : 0; } function a(e, t) { var n, r, i, o = t || {}; if ("function" != typeof e) throw new Error("callback must be a function"); if (o.root && 1 != o.root.nodeType && 9 != o.root.nodeType) throw new Error("root must be a Document or Element"); (this._checkForIntersections = ((n = this._checkForIntersections.bind(this)), (r = this.THROTTLE_TIMEOUT), (i = null), function () { i || (i = setTimeout(function () { n(), (i = null); }, r)); })), (this._callback = e), (this._observationTargets = []), (this._queuedEntries = []), (this._rootMarginValues = this._parseRootMargin(o.rootMargin)), (this.thresholds = this._initThresholds(o.threshold)), (this.root = o.root || null), (this.rootMargin = this._rootMarginValues .map(function (e) { return e.value + e.unit; }) .join(" ")), (this._monitoringDocuments = []), (this._monitoringUnsubscribes = []); } function s(e, t, n, r) { "function" == typeof e.addEventListener ? e.addEventListener(t, n, r || !1) : "function" == typeof e.attachEvent && e.attachEvent("on" + t, n); } function u(e, t, n, r) { "function" == typeof e.removeEventListener ? e.removeEventListener(t, n, r || !1) : "function" == typeof e.detatchEvent && e.detatchEvent("on" + t, n); } function c(e) { var t; try { t = e.getBoundingClientRect(); } catch (e) {} return t ? ((t.width && t.height) || (t = { top: t.top, right: t.right, bottom: t.bottom, left: t.left, width: t.right - t.left, height: t.bottom - t.top, }), t) : { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0 }; } function l(e) { return !e || "x" in e ? e : { top: e.top, y: e.top, bottom: e.bottom, left: e.left, x: e.left, right: e.right, width: e.width, height: e.height, }; } function f(e, t) { var n = t.top - e.top, r = t.left - e.left; return { top: n, left: r, height: t.height, width: t.width, bottom: n + t.height, right: r + t.width, }; } function d(e, t) { for (var n = t; n; ) { if (n == e) return !0; n = p(n); } return !1; } function p(t) { var n = t.parentNode; return 9 == t.nodeType && t != e ? i(t) : (n && n.assignedSlot && (n = n.assignedSlot.parentNode), n && 11 == n.nodeType && n.host ? n.host : n); } function h(e) { return e && 9 === e.nodeType; } })(); }, 41143: function (e) { "use strict"; e.exports = function (e, t, n, r, i, o, a, s) { if (!e) { var u; if (void 0 === t) u = new Error( "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings." ); else { var c = [n, r, i, o, a, s], l = 0; (u = new Error( t.replace(/%s/g, function () { return c[l++]; }) )).name = "Invariant Violation"; } throw ((u.framesToPop = 1), u); } }; }, 27376: function (e) { e.exports = function (e) { var n = t.call(e); return ( "[object Function]" === n || ("function" == typeof e && "[object RegExp]" !== n) || ("undefined" != typeof window && (e === window.setTimeout || e === window.alert || e === window.confirm || e === window.prompt)) ); }; var t = Object.prototype.toString; }, 5826: function (e) { var t = {}.toString; e.exports = Array.isArray || function (e) { return "[object Array]" == t.call(e); }; }, 19755: function (e, t) { var n; !(function (t, n) { "use strict"; "object" == typeof e.exports ? (e.exports = t.document ? n(t, !0) : function (e) { if (!e.document) throw new Error("jQuery requires a window with a document"); return n(e); }) : n(t); })("undefined" != typeof window ? window : this, function (r, i) { "use strict"; var o = [], a = Object.getPrototypeOf, s = o.slice, u = o.flat ? function (e) { return o.flat.call(e); } : function (e) { return o.concat.apply([], e); }, c = o.push, l = o.indexOf, f = {}, d = f.toString, p = f.hasOwnProperty, h = p.toString, g = h.call(Object), m = {}, y = function (e) { return ( "function" == typeof e && "number" != typeof e.nodeType && "function" != typeof e.item ); }, v = function (e) { return null != e && e === e.window; }, b = r.document, _ = { type: !0, src: !0, nonce: !0, noModule: !0 }; function w(e, t, n) { var r, i, o = (n = n || b).createElement("script"); if (((o.text = e), t)) for (r in _) (i = t[r] || (t.getAttribute && t.getAttribute(r))) && o.setAttribute(r, i); n.head.appendChild(o).parentNode.removeChild(o); } function T(e) { return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? f[d.call(e)] || "object" : typeof e; } var x = "3.6.0", S = function (e, t) { return new S.fn.init(e, t); }; function k(e) { var t = !!e && "length" in e && e.length, n = T(e); return ( !y(e) && !v(e) && ("array" === n || 0 === t || ("number" == typeof t && t > 0 && t - 1 in e)) ); } (S.fn = S.prototype = { jquery: x, constructor: S, length: 0, toArray: function () { return s.call(this); }, get: function (e) { return null == e ? s.call(this) : e < 0 ? this[e + this.length] : this[e]; }, pushStack: function (e) { var t = S.merge(this.constructor(), e); return (t.prevObject = this), t; }, each: function (e) { return S.each(this, e); }, map: function (e) { return this.pushStack( S.map(this, function (t, n) { return e.call(t, n, t); }) ); }, slice: function () { return this.pushStack(s.apply(this, arguments)); }, first: function () { return this.eq(0); }, last: function () { return this.eq(-1); }, even: function () { return this.pushStack( S.grep(this, function (e, t) { return (t + 1) % 2; }) ); }, odd: function () { return this.pushStack( S.grep(this, function (e, t) { return t % 2; }) ); }, eq: function (e) { var t = this.length, n = +e + (e < 0 ? t : 0); return this.pushStack(n >= 0 && n < t ? [this[n]] : []); }, end: function () { return this.prevObject || this.constructor(); }, push: c, sort: o.sort, splice: o.splice, }), (S.extend = S.fn.extend = function () { var e, t, n, r, i, o, a = arguments[0] || {}, s = 1, u = arguments.length, c = !1; for ( "boolean" == typeof a && ((c = a), (a = arguments[s] || {}), s++), "object" == typeof a || y(a) || (a = {}), s === u && ((a = this), s--); s < u; s++ ) if (null != (e = arguments[s])) for (t in e) (r = e[t]), "__proto__" !== t && a !== r && (c && r && (S.isPlainObject(r) || (i = Array.isArray(r))) ? ((n = a[t]), (o = i && !Array.isArray(n) ? [] : i || S.isPlainObject(n) ? n : {}), (i = !1), (a[t] = S.extend(c, o, r))) : void 0 !== r && (a[t] = r)); return a; }), S.extend({ expando: "jQuery" + (x + Math.random()).replace(/\D/g, ""), isReady: !0, error: function (e) { throw new Error(e); }, noop: function () {}, isPlainObject: function (e) { var t, n; return ( !(!e || "[object Object]" !== d.call(e)) && (!(t = a(e)) || ("function" == typeof (n = p.call(t, "constructor") && t.constructor) && h.call(n) === g)) ); }, isEmptyObject: function (e) { var t; for (t in e) return !1; return !0; }, globalEval: function (e, t, n) { w(e, { nonce: t && t.nonce }, n); }, each: function (e, t) { var n, r = 0; if (k(e)) for (n = e.length; r < n && !1 !== t.call(e[r], r, e[r]); r++); else for (r in e) if (!1 === t.call(e[r], r, e[r])) break; return e; }, makeArray: function (e, t) { var n = t || []; return ( null != e && (k(Object(e)) ? S.merge(n, "string" == typeof e ? [e] : e) : c.call(n, e)), n ); }, inArray: function (e, t, n) { return null == t ? -1 : l.call(t, e, n); }, merge: function (e, t) { for (var n = +t.length, r = 0, i = e.length; r < n; r++) e[i++] = t[r]; return (e.length = i), e; }, grep: function (e, t, n) { for (var r = [], i = 0, o = e.length, a = !n; i < o; i++) !t(e[i], i) !== a && r.push(e[i]); return r; }, map: function (e, t, n) { var r, i, o = 0, a = []; if (k(e)) for (r = e.length; o < r; o++) null != (i = t(e[o], o, n)) && a.push(i); else for (o in e) null != (i = t(e[o], o, n)) && a.push(i); return u(a); }, guid: 1, support: m, }), "function" == typeof Symbol && (S.fn[Symbol.iterator] = o[Symbol.iterator]), S.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), function (e, t) { f["[object " + t + "]"] = t.toLowerCase(); } ); var E = (function (e) { var t, n, r, i, o, a, s, u, c, l, f, d, p, h, g, m, y, v, b, _ = "sizzle" + 1 * new Date(), w = e.document, T = 0, x = 0, S = ue(), k = ue(), E = ue(), O = ue(), C = function (e, t) { return e === t && (f = !0), 0; }, L = {}.hasOwnProperty, A = [], I = A.pop, M = A.push, P = A.push, R = A.slice, D = function (e, t) { for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n; return -1; }, j = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", N = "[\\x20\\t\\r\\n\\f]", B = "(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", U = "\\[[\\x20\\t\\r\\n\\f]*(" + B + ")(?:" + N + "*([*^$|!~]?=)" + N + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + B + "))|)" + N + "*\\]", F = ":(" + B + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + U + ")*)|.*)\\)|)", z = new RegExp(N + "+", "g"), H = new RegExp( "^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$", "g" ), q = new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"), Z = new RegExp( "^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*" ), V = new RegExp(N + "|>"), W = new RegExp(F), $ = new RegExp("^" + B + "$"), G = { ID: new RegExp("^#(" + B + ")"), CLASS: new RegExp("^\\.(" + B + ")"), TAG: new RegExp("^(" + B + "|[*])"), ATTR: new RegExp("^" + U), PSEUDO: new RegExp("^" + F), CHILD: new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)", "i" ), bool: new RegExp("^(?:" + j + ")$", "i"), needsContext: new RegExp( "^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)", "i" ), }, Y = /HTML$/i, K = /^(?:input|select|textarea|button)$/i, X = /^h\d$/i, Q = /^[^{]+\{\s*\[native \w/, J = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, ee = /[+~]/, te = new RegExp( "\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])", "g" ), ne = function (e, t) { var n = "0x" + e.slice(1) - 65536; return ( t || (n < 0 ? String.fromCharCode(n + 65536) : String.fromCharCode((n >> 10) | 55296, (1023 & n) | 56320)) ); }, re = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, ie = function (e, t) { return t ? "\0" === e ? "�" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) + " " : "\\" + e; }, oe = function () { d(); }, ae = _e( function (e) { return ( !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase() ); }, { dir: "parentNode", next: "legend" } ); try { P.apply((A = R.call(w.childNodes)), w.childNodes), A[w.childNodes.length].nodeType; } catch (e) { P = { apply: A.length ? function (e, t) { M.apply(e, R.call(t)); } : function (e, t) { for (var n = e.length, r = 0; (e[n++] = t[r++]); ); e.length = n - 1; }, }; } function se(e, t, r, i) { var o, s, c, l, f, h, y, v = t && t.ownerDocument, w = t ? t.nodeType : 9; if ( ((r = r || []), "string" != typeof e || !e || (1 !== w && 9 !== w && 11 !== w)) ) return r; if (!i && (d(t), (t = t || p), g)) { if (11 !== w && (f = J.exec(e))) if ((o = f[1])) { if (9 === w) { if (!(c = t.getElementById(o))) return r; if (c.id === o) return r.push(c), r; } else if ( v && (c = v.getElementById(o)) && b(t, c) && c.id === o ) return r.push(c), r; } else { if (f[2]) return P.apply(r, t.getElementsByTagName(e)), r; if ( (o = f[3]) && n.getElementsByClassName && t.getElementsByClassName ) return P.apply(r, t.getElementsByClassName(o)), r; } if ( n.qsa && !O[e + " "] && (!m || !m.test(e)) && (1 !== w || "object" !== t.nodeName.toLowerCase()) ) { if (((y = e), (v = t), 1 === w && (V.test(e) || Z.test(e)))) { for ( ((v = (ee.test(e) && ye(t.parentNode)) || t) === t && n.scope) || ((l = t.getAttribute("id")) ? (l = l.replace(re, ie)) : t.setAttribute("id", (l = _))), s = (h = a(e)).length; s--; ) h[s] = (l ? "#" + l : ":scope") + " " + be(h[s]); y = h.join(","); } try { return P.apply(r, v.querySelectorAll(y)), r; } catch (t) { O(e, !0); } finally { l === _ && t.removeAttribute("id"); } } } return u(e.replace(H, "$1"), t, r, i); } function ue() { var e = []; return function t(n, i) { return ( e.push(n + " ") > r.cacheLength && delete t[e.shift()], (t[n + " "] = i) ); }; } function ce(e) { return (e[_] = !0), e; } function le(e) { var t = p.createElement("fieldset"); try { return !!e(t); } catch (e) { return !1; } finally { t.parentNode && t.parentNode.removeChild(t), (t = null); } } function fe(e, t) { for (var n = e.split("|"), i = n.length; i--; ) r.attrHandle[n[i]] = t; } function de(e, t) { var n = t && e, r = n && 1 === e.nodeType && 1 === t.nodeType && e.sourceIndex - t.sourceIndex; if (r) return r; if (n) for (; (n = n.nextSibling); ) if (n === t) return -1; return e ? 1 : -1; } function pe(e) { return function (t) { return "input" === t.nodeName.toLowerCase() && t.type === e; }; } function he(e) { return function (t) { var n = t.nodeName.toLowerCase(); return ("input" === n || "button" === n) && t.type === e; }; } function ge(e) { return function (t) { return "form" in t ? t.parentNode && !1 === t.disabled ? "label" in t ? "label" in t.parentNode ? t.parentNode.disabled === e : t.disabled === e : t.isDisabled === e || (t.isDisabled !== !e && ae(t) === e) : t.disabled === e : "label" in t && t.disabled === e; }; } function me(e) { return ce(function (t) { return ( (t = +t), ce(function (n, r) { for (var i, o = e([], n.length, t), a = o.length; a--; ) n[(i = o[a])] && (n[i] = !(r[i] = n[i])); }) ); }); } function ye(e) { return e && void 0 !== e.getElementsByTagName && e; } for (t in ((n = se.support = {}), (o = se.isXML = function (e) { var t = e && e.namespaceURI, n = e && (e.ownerDocument || e).documentElement; return !Y.test(t || (n && n.nodeName) || "HTML"); }), (d = se.setDocument = function (e) { var t, i, a = e ? e.ownerDocument || e : w; return a != p && 9 === a.nodeType && a.documentElement ? ((h = (p = a).documentElement), (g = !o(p)), w != p && (i = p.defaultView) && i.top !== i && (i.addEventListener ? i.addEventListener("unload", oe, !1) : i.attachEvent && i.attachEvent("onunload", oe)), (n.scope = le(function (e) { return ( h.appendChild(e).appendChild(p.createElement("div")), void 0 !== e.querySelectorAll && !e.querySelectorAll(":scope fieldset div").length ); })), (n.attributes = le(function (e) { return (e.className = "i"), !e.getAttribute("className"); })), (n.getElementsByTagName = le(function (e) { return ( e.appendChild(p.createComment("")), !e.getElementsByTagName("*").length ); })), (n.getElementsByClassName = Q.test(p.getElementsByClassName)), (n.getById = le(function (e) { return ( (h.appendChild(e).id = _), !p.getElementsByName || !p.getElementsByName(_).length ); })), n.getById ? ((r.filter.ID = function (e) { var t = e.replace(te, ne); return function (e) { return e.getAttribute("id") === t; }; }), (r.find.ID = function (e, t) { if (void 0 !== t.getElementById && g) { var n = t.getElementById(e); return n ? [n] : []; } })) : ((r.filter.ID = function (e) { var t = e.replace(te, ne); return function (e) { var n = void 0 !== e.getAttributeNode && e.getAttributeNode("id"); return n && n.value === t; }; }), (r.find.ID = function (e, t) { if (void 0 !== t.getElementById && g) { var n, r, i, o = t.getElementById(e); if (o) { if ((n = o.getAttributeNode("id")) && n.value === e) return [o]; for ( i = t.getElementsByName(e), r = 0; (o = i[r++]); ) if ( (n = o.getAttributeNode("id")) && n.value === e ) return [o]; } return []; } })), (r.find.TAG = n.getElementsByTagName ? function (e, t) { return void 0 !== t.getElementsByTagName ? t.getElementsByTagName(e) : n.qsa ? t.querySelectorAll(e) : void 0; } : function (e, t) { var n, r = [], i = 0, o = t.getElementsByTagName(e); if ("*" === e) { for (; (n = o[i++]); ) 1 === n.nodeType && r.push(n); return r; } return o; }), (r.find.CLASS = n.getElementsByClassName && function (e, t) { if (void 0 !== t.getElementsByClassName && g) return t.getElementsByClassName(e); }), (y = []), (m = []), (n.qsa = Q.test(p.querySelectorAll)) && (le(function (e) { var t; (h.appendChild(e).innerHTML = ""), e.querySelectorAll("[msallowcapture^='']").length && m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"), e.querySelectorAll("[selected]").length || m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|" + j + ")"), e.querySelectorAll("[id~=" + _ + "-]").length || m.push("~="), (t = p.createElement("input")).setAttribute("name", ""), e.appendChild(t), e.querySelectorAll("[name='']").length || m.push( "\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")" ), e.querySelectorAll(":checked").length || m.push(":checked"), e.querySelectorAll("a#" + _ + "+*").length || m.push(".#.+[+~]"), e.querySelectorAll("\\\f"), m.push("[\\r\\n\\f]"); }), le(function (e) { e.innerHTML = ""; var t = p.createElement("input"); t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("name", "D"), e.querySelectorAll("[name=d]").length && m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="), 2 !== e.querySelectorAll(":enabled").length && m.push(":enabled", ":disabled"), (h.appendChild(e).disabled = !0), 2 !== e.querySelectorAll(":disabled").length && m.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), m.push(",.*:"); })), (n.matchesSelector = Q.test( (v = h.matches || h.webkitMatchesSelector || h.mozMatchesSelector || h.oMatchesSelector || h.msMatchesSelector) )) && le(function (e) { (n.disconnectedMatch = v.call(e, "*")), v.call(e, "[s!='']:x"), y.push("!=", F); }), (m = m.length && new RegExp(m.join("|"))), (y = y.length && new RegExp(y.join("|"))), (t = Q.test(h.compareDocumentPosition)), (b = t || Q.test(h.contains) ? function (e, t) { var n = 9 === e.nodeType ? e.documentElement : e, r = t && t.parentNode; return ( e === r || !( !r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)) ) ); } : function (e, t) { if (t) for (; (t = t.parentNode); ) if (t === e) return !0; return !1; }), (C = t ? function (e, t) { if (e === t) return (f = !0), 0; var r = !e.compareDocumentPosition - !t.compareDocumentPosition; return ( r || (1 & (r = (e.ownerDocument || e) == (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1) || (!n.sortDetached && t.compareDocumentPosition(e) === r) ? e == p || (e.ownerDocument == w && b(w, e)) ? -1 : t == p || (t.ownerDocument == w && b(w, t)) ? 1 : l ? D(l, e) - D(l, t) : 0 : 4 & r ? -1 : 1) ); } : function (e, t) { if (e === t) return (f = !0), 0; var n, r = 0, i = e.parentNode, o = t.parentNode, a = [e], s = [t]; if (!i || !o) return e == p ? -1 : t == p ? 1 : i ? -1 : o ? 1 : l ? D(l, e) - D(l, t) : 0; if (i === o) return de(e, t); for (n = e; (n = n.parentNode); ) a.unshift(n); for (n = t; (n = n.parentNode); ) s.unshift(n); for (; a[r] === s[r]; ) r++; return r ? de(a[r], s[r]) : a[r] == w ? -1 : s[r] == w ? 1 : 0; }), p) : p; }), (se.matches = function (e, t) { return se(e, null, null, t); }), (se.matchesSelector = function (e, t) { if ( (d(e), n.matchesSelector && g && !O[t + " "] && (!y || !y.test(t)) && (!m || !m.test(t))) ) try { var r = v.call(e, t); if ( r || n.disconnectedMatch || (e.document && 11 !== e.document.nodeType) ) return r; } catch (e) { O(t, !0); } return se(t, p, null, [e]).length > 0; }), (se.contains = function (e, t) { return (e.ownerDocument || e) != p && d(e), b(e, t); }), (se.attr = function (e, t) { (e.ownerDocument || e) != p && d(e); var i = r.attrHandle[t.toLowerCase()], o = i && L.call(r.attrHandle, t.toLowerCase()) ? i(e, t, !g) : void 0; return void 0 !== o ? o : n.attributes || !g ? e.getAttribute(t) : (o = e.getAttributeNode(t)) && o.specified ? o.value : null; }), (se.escape = function (e) { return (e + "").replace(re, ie); }), (se.error = function (e) { throw new Error("Syntax error, unrecognized expression: " + e); }), (se.uniqueSort = function (e) { var t, r = [], i = 0, o = 0; if ( ((f = !n.detectDuplicates), (l = !n.sortStable && e.slice(0)), e.sort(C), f) ) { for (; (t = e[o++]); ) t === e[o] && (i = r.push(o)); for (; i--; ) e.splice(r[i], 1); } return (l = null), e; }), (i = se.getText = function (e) { var t, n = "", r = 0, o = e.nodeType; if (o) { if (1 === o || 9 === o || 11 === o) { if ("string" == typeof e.textContent) return e.textContent; for (e = e.firstChild; e; e = e.nextSibling) n += i(e); } else if (3 === o || 4 === o) return e.nodeValue; } else for (; (t = e[r++]); ) n += i(t); return n; }), (r = se.selectors = { cacheLength: 50, createPseudo: ce, match: G, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: !0 }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: !0 }, "~": { dir: "previousSibling" }, }, preFilter: { ATTR: function (e) { return ( (e[1] = e[1].replace(te, ne)), (e[3] = (e[3] || e[4] || e[5] || "").replace(te, ne)), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4) ); }, CHILD: function (e) { return ( (e[1] = e[1].toLowerCase()), "nth" === e[1].slice(0, 3) ? (e[3] || se.error(e[0]), (e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3]))), (e[5] = +(e[7] + e[8] || "odd" === e[3]))) : e[3] && se.error(e[0]), e ); }, PSEUDO: function (e) { var t, n = !e[6] && e[2]; return G.CHILD.test(e[0]) ? null : (e[3] ? (e[2] = e[4] || e[5] || "") : n && W.test(n) && (t = a(n, !0)) && (t = n.indexOf(")", n.length - t) - n.length) && ((e[0] = e[0].slice(0, t)), (e[2] = n.slice(0, t))), e.slice(0, 3)); }, }, filter: { TAG: function (e) { var t = e.replace(te, ne).toLowerCase(); return "*" === e ? function () { return !0; } : function (e) { return e.nodeName && e.nodeName.toLowerCase() === t; }; }, CLASS: function (e) { var t = S[e + " "]; return ( t || ((t = new RegExp( "(^|[\\x20\\t\\r\\n\\f])" + e + "(" + N + "|$)" )) && S(e, function (e) { return t.test( ("string" == typeof e.className && e.className) || (void 0 !== e.getAttribute && e.getAttribute("class")) || "" ); })) ); }, ATTR: function (e, t, n) { return function (r) { var i = se.attr(r, e); return null == i ? "!=" === t : !t || ((i += ""), "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i.replace(z, " ") + " ").indexOf(n) > -1 : "|=" === t && (i === n || i.slice(0, n.length + 1) === n + "-")); }; }, CHILD: function (e, t, n, r, i) { var o = "nth" !== e.slice(0, 3), a = "last" !== e.slice(-4), s = "of-type" === t; return 1 === r && 0 === i ? function (e) { return !!e.parentNode; } : function (t, n, u) { var c, l, f, d, p, h, g = o !== a ? "nextSibling" : "previousSibling", m = t.parentNode, y = s && t.nodeName.toLowerCase(), v = !u && !s, b = !1; if (m) { if (o) { for (; g; ) { for (d = t; (d = d[g]); ) if ( s ? d.nodeName.toLowerCase() === y : 1 === d.nodeType ) return !1; h = g = "only" === e && !h && "nextSibling"; } return !0; } if ( ((h = [a ? m.firstChild : m.lastChild]), a && v) ) { for ( b = (p = (c = (l = (f = (d = m)[_] || (d[_] = {}))[ d.uniqueID ] || (f[d.uniqueID] = {}))[e] || [])[0] === T && c[1]) && c[2], d = p && m.childNodes[p]; (d = (++p && d && d[g]) || (b = p = 0) || h.pop()); ) if (1 === d.nodeType && ++b && d === t) { l[e] = [T, p, b]; break; } } else if ( (v && (b = p = (c = (l = (f = (d = t)[_] || (d[_] = {}))[ d.uniqueID ] || (f[d.uniqueID] = {}))[e] || [])[0] === T && c[1]), !1 === b) ) for ( ; (d = (++p && d && d[g]) || (b = p = 0) || h.pop()) && ((s ? d.nodeName.toLowerCase() !== y : 1 !== d.nodeType) || !++b || (v && ((l = (f = d[_] || (d[_] = {}))[d.uniqueID] || (f[d.uniqueID] = {}))[e] = [T, b]), d !== t)); ); return (b -= i) === r || (b % r == 0 && b / r >= 0); } }; }, PSEUDO: function (e, t) { var n, i = r.pseudos[e] || r.setFilters[e.toLowerCase()] || se.error("unsupported pseudo: " + e); return i[_] ? i(t) : i.length > 1 ? ((n = [e, e, "", t]), r.setFilters.hasOwnProperty(e.toLowerCase()) ? ce(function (e, n) { for (var r, o = i(e, t), a = o.length; a--; ) e[(r = D(e, o[a]))] = !(n[r] = o[a]); }) : function (e) { return i(e, 0, n); }) : i; }, }, pseudos: { not: ce(function (e) { var t = [], n = [], r = s(e.replace(H, "$1")); return r[_] ? ce(function (e, t, n, i) { for (var o, a = r(e, null, i, []), s = e.length; s--; ) (o = a[s]) && (e[s] = !(t[s] = o)); }) : function (e, i, o) { return ( (t[0] = e), r(t, null, o, n), (t[0] = null), !n.pop() ); }; }), has: ce(function (e) { return function (t) { return se(e, t).length > 0; }; }), contains: ce(function (e) { return ( (e = e.replace(te, ne)), function (t) { return (t.textContent || i(t)).indexOf(e) > -1; } ); }), lang: ce(function (e) { return ( $.test(e || "") || se.error("unsupported lang: " + e), (e = e.replace(te, ne).toLowerCase()), function (t) { var n; do { if ( (n = g ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) ) return ( (n = n.toLowerCase()) === e || 0 === n.indexOf(e + "-") ); } while ((t = t.parentNode) && 1 === t.nodeType); return !1; } ); }), target: function (t) { var n = e.location && e.location.hash; return n && n.slice(1) === t.id; }, root: function (e) { return e === h; }, focus: function (e) { return ( e === p.activeElement && (!p.hasFocus || p.hasFocus()) && !!(e.type || e.href || ~e.tabIndex) ); }, enabled: ge(!1), disabled: ge(!0), checked: function (e) { var t = e.nodeName.toLowerCase(); return ( ("input" === t && !!e.checked) || ("option" === t && !!e.selected) ); }, selected: function (e) { return ( e.parentNode && e.parentNode.selectedIndex, !0 === e.selected ); }, empty: function (e) { for (e = e.firstChild; e; e = e.nextSibling) if (e.nodeType < 6) return !1; return !0; }, parent: function (e) { return !r.pseudos.empty(e); }, header: function (e) { return X.test(e.nodeName); }, input: function (e) { return K.test(e.nodeName); }, button: function (e) { var t = e.nodeName.toLowerCase(); return ( ("input" === t && "button" === e.type) || "button" === t ); }, text: function (e) { var t; return ( "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase()) ); }, first: me(function () { return [0]; }), last: me(function (e, t) { return [t - 1]; }), eq: me(function (e, t, n) { return [n < 0 ? n + t : n]; }), even: me(function (e, t) { for (var n = 0; n < t; n += 2) e.push(n); return e; }), odd: me(function (e, t) { for (var n = 1; n < t; n += 2) e.push(n); return e; }), lt: me(function (e, t, n) { for (var r = n < 0 ? n + t : n > t ? t : n; --r >= 0; ) e.push(r); return e; }), gt: me(function (e, t, n) { for (var r = n < 0 ? n + t : n; ++r < t; ) e.push(r); return e; }), }, }), (r.pseudos.nth = r.pseudos.eq), { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 })) r.pseudos[t] = pe(t); for (t in { submit: !0, reset: !0 }) r.pseudos[t] = he(t); function ve() {} function be(e) { for (var t = 0, n = e.length, r = ""; t < n; t++) r += e[t].value; return r; } function _e(e, t, n) { var r = t.dir, i = t.next, o = i || r, a = n && "parentNode" === o, s = x++; return t.first ? function (t, n, i) { for (; (t = t[r]); ) if (1 === t.nodeType || a) return e(t, n, i); return !1; } : function (t, n, u) { var c, l, f, d = [T, s]; if (u) { for (; (t = t[r]); ) if ((1 === t.nodeType || a) && e(t, n, u)) return !0; } else for (; (t = t[r]); ) if (1 === t.nodeType || a) if ( ((l = (f = t[_] || (t[_] = {}))[t.uniqueID] || (f[t.uniqueID] = {})), i && i === t.nodeName.toLowerCase()) ) t = t[r] || t; else { if ((c = l[o]) && c[0] === T && c[1] === s) return (d[2] = c[2]); if (((l[o] = d), (d[2] = e(t, n, u)))) return !0; } return !1; }; } function we(e) { return e.length > 1 ? function (t, n, r) { for (var i = e.length; i--; ) if (!e[i](t, n, r)) return !1; return !0; } : e[0]; } function Te(e, t, n, r, i) { for (var o, a = [], s = 0, u = e.length, c = null != t; s < u; s++) (o = e[s]) && ((n && !n(o, r, i)) || (a.push(o), c && t.push(s))); return a; } function xe(e, t, n, r, i, o) { return ( r && !r[_] && (r = xe(r)), i && !i[_] && (i = xe(i, o)), ce(function (o, a, s, u) { var c, l, f, d = [], p = [], h = a.length, g = o || (function (e, t, n) { for (var r = 0, i = t.length; r < i; r++) se(e, t[r], n); return n; })(t || "*", s.nodeType ? [s] : s, []), m = !e || (!o && t) ? g : Te(g, d, e, s, u), y = n ? (i || (o ? e : h || r) ? [] : a) : m; if ((n && n(m, y, s, u), r)) for (c = Te(y, p), r(c, [], s, u), l = c.length; l--; ) (f = c[l]) && (y[p[l]] = !(m[p[l]] = f)); if (o) { if (i || e) { if (i) { for (c = [], l = y.length; l--; ) (f = y[l]) && c.push((m[l] = f)); i(null, (y = []), c, u); } for (l = y.length; l--; ) (f = y[l]) && (c = i ? D(o, f) : d[l]) > -1 && (o[c] = !(a[c] = f)); } } else (y = Te(y === a ? y.splice(h, y.length) : y)), i ? i(null, a, y, u) : P.apply(a, y); }) ); } function Se(e) { for ( var t, n, i, o = e.length, a = r.relative[e[0].type], s = a || r.relative[" "], u = a ? 1 : 0, l = _e( function (e) { return e === t; }, s, !0 ), f = _e( function (e) { return D(t, e) > -1; }, s, !0 ), d = [ function (e, n, r) { var i = (!a && (r || n !== c)) || ((t = n).nodeType ? l(e, n, r) : f(e, n, r)); return (t = null), i; }, ]; u < o; u++ ) if ((n = r.relative[e[u].type])) d = [_e(we(d), n)]; else { if ((n = r.filter[e[u].type].apply(null, e[u].matches))[_]) { for (i = ++u; i < o && !r.relative[e[i].type]; i++); return xe( u > 1 && we(d), u > 1 && be( e .slice(0, u - 1) .concat({ value: " " === e[u - 2].type ? "*" : "" }) ).replace(H, "$1"), n, u < i && Se(e.slice(u, i)), i < o && Se((e = e.slice(i))), i < o && be(e) ); } d.push(n); } return we(d); } return ( (ve.prototype = r.filters = r.pseudos), (r.setFilters = new ve()), (a = se.tokenize = function (e, t) { var n, i, o, a, s, u, c, l = k[e + " "]; if (l) return t ? 0 : l.slice(0); for (s = e, u = [], c = r.preFilter; s; ) { for (a in ((n && !(i = q.exec(s))) || (i && (s = s.slice(i[0].length) || s), u.push((o = []))), (n = !1), (i = Z.exec(s)) && ((n = i.shift()), o.push({ value: n, type: i[0].replace(H, " ") }), (s = s.slice(n.length))), r.filter)) !(i = G[a].exec(s)) || (c[a] && !(i = c[a](i))) || ((n = i.shift()), o.push({ value: n, type: a, matches: i }), (s = s.slice(n.length))); if (!n) break; } return t ? s.length : s ? se.error(e) : k(e, u).slice(0); }), (s = se.compile = function (e, t) { var n, i = [], o = [], s = E[e + " "]; if (!s) { for (t || (t = a(e)), n = t.length; n--; ) (s = Se(t[n]))[_] ? i.push(s) : o.push(s); (s = E( e, (function (e, t) { var n = t.length > 0, i = e.length > 0, o = function (o, a, s, u, l) { var f, h, m, y = 0, v = "0", b = o && [], _ = [], w = c, x = o || (i && r.find.TAG("*", l)), S = (T += null == w ? 1 : Math.random() || 0.1), k = x.length; for ( l && (c = a == p || a || l); v !== k && null != (f = x[v]); v++ ) { if (i && f) { for ( h = 0, a || f.ownerDocument == p || (d(f), (s = !g)); (m = e[h++]); ) if (m(f, a || p, s)) { u.push(f); break; } l && (T = S); } n && ((f = !m && f) && y--, o && b.push(f)); } if (((y += v), n && v !== y)) { for (h = 0; (m = t[h++]); ) m(b, _, a, s); if (o) { if (y > 0) for (; v--; ) b[v] || _[v] || (_[v] = I.call(u)); _ = Te(_); } P.apply(u, _), l && !o && _.length > 0 && y + t.length > 1 && se.uniqueSort(u); } return l && ((T = S), (c = w)), b; }; return n ? ce(o) : o; })(o, i) )), (s.selector = e); } return s; }), (u = se.select = function (e, t, n, i) { var o, u, c, l, f, d = "function" == typeof e && e, p = !i && a((e = d.selector || e)); if (((n = n || []), 1 === p.length)) { if ( (u = p[0] = p[0].slice(0)).length > 2 && "ID" === (c = u[0]).type && 9 === t.nodeType && g && r.relative[u[1].type] ) { if ( !(t = (r.find.ID(c.matches[0].replace(te, ne), t) || [])[0]) ) return n; d && (t = t.parentNode), (e = e.slice(u.shift().value.length)); } for ( o = G.needsContext.test(e) ? 0 : u.length; o-- && ((c = u[o]), !r.relative[(l = c.type)]); ) if ( (f = r.find[l]) && (i = f( c.matches[0].replace(te, ne), (ee.test(u[0].type) && ye(t.parentNode)) || t )) ) { if ((u.splice(o, 1), !(e = i.length && be(u)))) return P.apply(n, i), n; break; } } return ( (d || s(e, p))( i, t, !g, n, !t || (ee.test(e) && ye(t.parentNode)) || t ), n ); }), (n.sortStable = _.split("").sort(C).join("") === _), (n.detectDuplicates = !!f), d(), (n.sortDetached = le(function (e) { return 1 & e.compareDocumentPosition(p.createElement("fieldset")); })), le(function (e) { return ( (e.innerHTML = ""), "#" === e.firstChild.getAttribute("href") ); }) || fe("type|href|height|width", function (e, t, n) { if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2); }), (n.attributes && le(function (e) { return ( (e.innerHTML = ""), e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value") ); })) || fe("value", function (e, t, n) { if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue; }), le(function (e) { return null == e.getAttribute("disabled"); }) || fe(j, function (e, t, n) { var r; if (!n) return !0 === e[t] ? t.toLowerCase() : (r = e.getAttributeNode(t)) && r.specified ? r.value : null; }), se ); })(r); (S.find = E), (S.expr = E.selectors), (S.expr[":"] = S.expr.pseudos), (S.uniqueSort = S.unique = E.uniqueSort), (S.text = E.getText), (S.isXMLDoc = E.isXML), (S.contains = E.contains), (S.escapeSelector = E.escape); var O = function (e, t, n) { for (var r = [], i = void 0 !== n; (e = e[t]) && 9 !== e.nodeType; ) if (1 === e.nodeType) { if (i && S(e).is(n)) break; r.push(e); } return r; }, C = function (e, t) { for (var n = []; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e); return n; }, L = S.expr.match.needsContext; function A(e, t) { return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase(); } var I = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; function M(e, t, n) { return y(t) ? S.grep(e, function (e, r) { return !!t.call(e, r, e) !== n; }) : t.nodeType ? S.grep(e, function (e) { return (e === t) !== n; }) : "string" != typeof t ? S.grep(e, function (e) { return l.call(t, e) > -1 !== n; }) : S.filter(t, e, n); } (S.filter = function (e, t, n) { var r = t[0]; return ( n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? S.find.matchesSelector(r, e) ? [r] : [] : S.find.matches( e, S.grep(t, function (e) { return 1 === e.nodeType; }) ) ); }), S.fn.extend({ find: function (e) { var t, n, r = this.length, i = this; if ("string" != typeof e) return this.pushStack( S(e).filter(function () { for (t = 0; t < r; t++) if (S.contains(i[t], this)) return !0; }) ); for (n = this.pushStack([]), t = 0; t < r; t++) S.find(e, i[t], n); return r > 1 ? S.uniqueSort(n) : n; }, filter: function (e) { return this.pushStack(M(this, e || [], !1)); }, not: function (e) { return this.pushStack(M(this, e || [], !0)); }, is: function (e) { return !!M( this, "string" == typeof e && L.test(e) ? S(e) : e || [], !1 ).length; }, }); var P, R = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/; ((S.fn.init = function (e, t, n) { var r, i; if (!e) return this; if (((n = n || P), "string" == typeof e)) { if ( !(r = "<" === e[0] && ">" === e[e.length - 1] && e.length >= 3 ? [null, e, null] : R.exec(e)) || (!r[1] && t) ) return !t || t.jquery ? (t || n).find(e) : this.constructor(t).find(e); if (r[1]) { if ( ((t = t instanceof S ? t[0] : t), S.merge( this, S.parseHTML( r[1], t && t.nodeType ? t.ownerDocument || t : b, !0 ) ), I.test(r[1]) && S.isPlainObject(t)) ) for (r in t) y(this[r]) ? this[r](t[r]) : this.attr(r, t[r]); return this; } return ( (i = b.getElementById(r[2])) && ((this[0] = i), (this.length = 1)), this ); } return e.nodeType ? ((this[0] = e), (this.length = 1), this) : y(e) ? void 0 !== n.ready ? n.ready(e) : e(S) : S.makeArray(e, this); }).prototype = S.fn), (P = S(b)); var D = /^(?:parents|prev(?:Until|All))/, j = { children: !0, contents: !0, next: !0, prev: !0 }; function N(e, t) { for (; (e = e[t]) && 1 !== e.nodeType; ); return e; } S.fn.extend({ has: function (e) { var t = S(e, this), n = t.length; return this.filter(function () { for (var e = 0; e < n; e++) if (S.contains(this, t[e])) return !0; }); }, closest: function (e, t) { var n, r = 0, i = this.length, o = [], a = "string" != typeof e && S(e); if (!L.test(e)) for (; r < i; r++) for (n = this[r]; n && n !== t; n = n.parentNode) if ( n.nodeType < 11 && (a ? a.index(n) > -1 : 1 === n.nodeType && S.find.matchesSelector(n, e)) ) { o.push(n); break; } return this.pushStack(o.length > 1 ? S.uniqueSort(o) : o); }, index: function (e) { return e ? "string" == typeof e ? l.call(S(e), this[0]) : l.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1; }, add: function (e, t) { return this.pushStack(S.uniqueSort(S.merge(this.get(), S(e, t)))); }, addBack: function (e) { return this.add( null == e ? this.prevObject : this.prevObject.filter(e) ); }, }), S.each( { parent: function (e) { var t = e.parentNode; return t && 11 !== t.nodeType ? t : null; }, parents: function (e) { return O(e, "parentNode"); }, parentsUntil: function (e, t, n) { return O(e, "parentNode", n); }, next: function (e) { return N(e, "nextSibling"); }, prev: function (e) { return N(e, "previousSibling"); }, nextAll: function (e) { return O(e, "nextSibling"); }, prevAll: function (e) { return O(e, "previousSibling"); }, nextUntil: function (e, t, n) { return O(e, "nextSibling", n); }, prevUntil: function (e, t, n) { return O(e, "previousSibling", n); }, siblings: function (e) { return C((e.parentNode || {}).firstChild, e); }, children: function (e) { return C(e.firstChild); }, contents: function (e) { return null != e.contentDocument && a(e.contentDocument) ? e.contentDocument : (A(e, "template") && (e = e.content || e), S.merge([], e.childNodes)); }, }, function (e, t) { S.fn[e] = function (n, r) { var i = S.map(this, t, n); return ( "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = S.filter(r, i)), this.length > 1 && (j[e] || S.uniqueSort(i), D.test(e) && i.reverse()), this.pushStack(i) ); }; } ); var B = /[^\x20\t\r\n\f]+/g; function U(e) { return e; } function F(e) { throw e; } function z(e, t, n, r) { var i; try { e && y((i = e.promise)) ? i.call(e).done(t).fail(n) : e && y((i = e.then)) ? i.call(e, t, n) : t.apply(void 0, [e].slice(r)); } catch (e) { n.apply(void 0, [e]); } } (S.Callbacks = function (e) { e = "string" == typeof e ? (function (e) { var t = {}; return ( S.each(e.match(B) || [], function (e, n) { t[n] = !0; }), t ); })(e) : S.extend({}, e); var t, n, r, i, o = [], a = [], s = -1, u = function () { for (i = i || e.once, r = t = !0; a.length; s = -1) for (n = a.shift(); ++s < o.length; ) !1 === o[s].apply(n[0], n[1]) && e.stopOnFalse && ((s = o.length), (n = !1)); e.memory || (n = !1), (t = !1), i && (o = n ? [] : ""); }, c = { add: function () { return ( o && (n && !t && ((s = o.length - 1), a.push(n)), (function t(n) { S.each(n, function (n, r) { y(r) ? (e.unique && c.has(r)) || o.push(r) : r && r.length && "string" !== T(r) && t(r); }); })(arguments), n && !t && u()), this ); }, remove: function () { return ( S.each(arguments, function (e, t) { for (var n; (n = S.inArray(t, o, n)) > -1; ) o.splice(n, 1), n <= s && s--; }), this ); }, has: function (e) { return e ? S.inArray(e, o) > -1 : o.length > 0; }, empty: function () { return o && (o = []), this; }, disable: function () { return (i = a = []), (o = n = ""), this; }, disabled: function () { return !o; }, lock: function () { return (i = a = []), n || t || (o = n = ""), this; }, locked: function () { return !!i; }, fireWith: function (e, n) { return ( i || ((n = [e, (n = n || []).slice ? n.slice() : n]), a.push(n), t || u()), this ); }, fire: function () { return c.fireWith(this, arguments), this; }, fired: function () { return !!r; }, }; return c; }), S.extend({ Deferred: function (e) { var t = [ [ "notify", "progress", S.Callbacks("memory"), S.Callbacks("memory"), 2, ], [ "resolve", "done", S.Callbacks("once memory"), S.Callbacks("once memory"), 0, "resolved", ], [ "reject", "fail", S.Callbacks("once memory"), S.Callbacks("once memory"), 1, "rejected", ], ], n = "pending", i = { state: function () { return n; }, always: function () { return o.done(arguments).fail(arguments), this; }, catch: function (e) { return i.then(null, e); }, pipe: function () { var e = arguments; return S.Deferred(function (n) { S.each(t, function (t, r) { var i = y(e[r[4]]) && e[r[4]]; o[r[1]](function () { var e = i && i.apply(this, arguments); e && y(e.promise) ? e .promise() .progress(n.notify) .done(n.resolve) .fail(n.reject) : n[r[0] + "With"](this, i ? [e] : arguments); }); }), (e = null); }).promise(); }, then: function (e, n, i) { var o = 0; function a(e, t, n, i) { return function () { var s = this, u = arguments, c = function () { var r, c; if (!(e < o)) { if ((r = n.apply(s, u)) === t.promise()) throw new TypeError("Thenable self-resolution"); (c = r && ("object" == typeof r || "function" == typeof r) && r.then), y(c) ? i ? c.call(r, a(o, t, U, i), a(o, t, F, i)) : (o++, c.call( r, a(o, t, U, i), a(o, t, F, i), a(o, t, U, t.notifyWith) )) : (n !== U && ((s = void 0), (u = [r])), (i || t.resolveWith)(s, u)); } }, l = i ? c : function () { try { c(); } catch (r) { S.Deferred.exceptionHook && S.Deferred.exceptionHook(r, l.stackTrace), e + 1 >= o && (n !== F && ((s = void 0), (u = [r])), t.rejectWith(s, u)); } }; e ? l() : (S.Deferred.getStackHook && (l.stackTrace = S.Deferred.getStackHook()), r.setTimeout(l)); }; } return S.Deferred(function (r) { t[0][3].add(a(0, r, y(i) ? i : U, r.notifyWith)), t[1][3].add(a(0, r, y(e) ? e : U)), t[2][3].add(a(0, r, y(n) ? n : F)); }).promise(); }, promise: function (e) { return null != e ? S.extend(e, i) : i; }, }, o = {}; return ( S.each(t, function (e, r) { var a = r[2], s = r[5]; (i[r[1]] = a.add), s && a.add( function () { n = s; }, t[3 - e][2].disable, t[3 - e][3].disable, t[0][2].lock, t[0][3].lock ), a.add(r[3].fire), (o[r[0]] = function () { return ( o[r[0] + "With"](this === o ? void 0 : this, arguments), this ); }), (o[r[0] + "With"] = a.fireWith); }), i.promise(o), e && e.call(o, o), o ); }, when: function (e) { var t = arguments.length, n = t, r = Array(n), i = s.call(arguments), o = S.Deferred(), a = function (e) { return function (n) { (r[e] = this), (i[e] = arguments.length > 1 ? s.call(arguments) : n), --t || o.resolveWith(r, i); }; }; if ( t <= 1 && (z(e, o.done(a(n)).resolve, o.reject, !t), "pending" === o.state() || y(i[n] && i[n].then)) ) return o.then(); for (; n--; ) z(i[n], a(n), o.reject); return o.promise(); }, }); var H = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; (S.Deferred.exceptionHook = function (e, t) { r.console && r.console.warn && e && H.test(e.name) && r.console.warn( "jQuery.Deferred exception: " + e.message, e.stack, t ); }), (S.readyException = function (e) { r.setTimeout(function () { throw e; }); }); var q = S.Deferred(); function Z() { b.removeEventListener("DOMContentLoaded", Z), r.removeEventListener("load", Z), S.ready(); } (S.fn.ready = function (e) { return ( q.then(e).catch(function (e) { S.readyException(e); }), this ); }), S.extend({ isReady: !1, readyWait: 1, ready: function (e) { (!0 === e ? --S.readyWait : S.isReady) || ((S.isReady = !0), (!0 !== e && --S.readyWait > 0) || q.resolveWith(b, [S])); }, }), (S.ready.then = q.then), "complete" === b.readyState || ("loading" !== b.readyState && !b.documentElement.doScroll) ? r.setTimeout(S.ready) : (b.addEventListener("DOMContentLoaded", Z), r.addEventListener("load", Z)); var V = function (e, t, n, r, i, o, a) { var s = 0, u = e.length, c = null == n; if ("object" === T(n)) for (s in ((i = !0), n)) V(e, t, s, n[s], !0, o, a); else if ( void 0 !== r && ((i = !0), y(r) || (a = !0), c && (a ? (t.call(e, r), (t = null)) : ((c = t), (t = function (e, t, n) { return c.call(S(e), n); }))), t) ) for (; s < u; s++) t(e[s], n, a ? r : r.call(e[s], s, t(e[s], n))); return i ? e : c ? t.call(e) : u ? t(e[0], n) : o; }, W = /^-ms-/, $ = /-([a-z])/g; function G(e, t) { return t.toUpperCase(); } function Y(e) { return e.replace(W, "ms-").replace($, G); } var K = function (e) { return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType; }; function X() { this.expando = S.expando + X.uid++; } (X.uid = 1), (X.prototype = { cache: function (e) { var t = e[this.expando]; return ( t || ((t = {}), K(e) && (e.nodeType ? (e[this.expando] = t) : Object.defineProperty(e, this.expando, { value: t, configurable: !0, }))), t ); }, set: function (e, t, n) { var r, i = this.cache(e); if ("string" == typeof t) i[Y(t)] = n; else for (r in t) i[Y(r)] = t[r]; return i; }, get: function (e, t) { return void 0 === t ? this.cache(e) : e[this.expando] && e[this.expando][Y(t)]; }, access: function (e, t, n) { return void 0 === t || (t && "string" == typeof t && void 0 === n) ? this.get(e, t) : (this.set(e, t, n), void 0 !== n ? n : t); }, remove: function (e, t) { var n, r = e[this.expando]; if (void 0 !== r) { if (void 0 !== t) { n = (t = Array.isArray(t) ? t.map(Y) : (t = Y(t)) in r ? [t] : t.match(B) || []).length; for (; n--; ) delete r[t[n]]; } (void 0 === t || S.isEmptyObject(r)) && (e.nodeType ? (e[this.expando] = void 0) : delete e[this.expando]); } }, hasData: function (e) { var t = e[this.expando]; return void 0 !== t && !S.isEmptyObject(t); }, }); var Q = new X(), J = new X(), ee = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, te = /[A-Z]/g; function ne(e, t, n) { var r; if (void 0 === n && 1 === e.nodeType) if ( ((r = "data-" + t.replace(te, "-$&").toLowerCase()), "string" == typeof (n = e.getAttribute(r))) ) { try { n = (function (e) { return ( "true" === e || ("false" !== e && ("null" === e ? null : e === +e + "" ? +e : ee.test(e) ? JSON.parse(e) : e)) ); })(n); } catch (e) {} J.set(e, t, n); } else n = void 0; return n; } S.extend({ hasData: function (e) { return J.hasData(e) || Q.hasData(e); }, data: function (e, t, n) { return J.access(e, t, n); }, removeData: function (e, t) { J.remove(e, t); }, _data: function (e, t, n) { return Q.access(e, t, n); }, _removeData: function (e, t) { Q.remove(e, t); }, }), S.fn.extend({ data: function (e, t) { var n, r, i, o = this[0], a = o && o.attributes; if (void 0 === e) { if ( this.length && ((i = J.get(o)), 1 === o.nodeType && !Q.get(o, "hasDataAttrs")) ) { for (n = a.length; n--; ) a[n] && 0 === (r = a[n].name).indexOf("data-") && ((r = Y(r.slice(5))), ne(o, r, i[r])); Q.set(o, "hasDataAttrs", !0); } return i; } return "object" == typeof e ? this.each(function () { J.set(this, e); }) : V( this, function (t) { var n; if (o && void 0 === t) return void 0 !== (n = J.get(o, e)) || void 0 !== (n = ne(o, e)) ? n : void 0; this.each(function () { J.set(this, e, t); }); }, null, t, arguments.length > 1, null, !0 ); }, removeData: function (e) { return this.each(function () { J.remove(this, e); }); }, }), S.extend({ queue: function (e, t, n) { var r; if (e) return ( (t = (t || "fx") + "queue"), (r = Q.get(e, t)), n && (!r || Array.isArray(n) ? (r = Q.access(e, t, S.makeArray(n))) : r.push(n)), r || [] ); }, dequeue: function (e, t) { t = t || "fx"; var n = S.queue(e, t), r = n.length, i = n.shift(), o = S._queueHooks(e, t); "inprogress" === i && ((i = n.shift()), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call( e, function () { S.dequeue(e, t); }, o )), !r && o && o.empty.fire(); }, _queueHooks: function (e, t) { var n = t + "queueHooks"; return ( Q.get(e, n) || Q.access(e, n, { empty: S.Callbacks("once memory").add(function () { Q.remove(e, [t + "queue", n]); }), }) ); }, }), S.fn.extend({ queue: function (e, t) { var n = 2; return ( "string" != typeof e && ((t = e), (e = "fx"), n--), arguments.length < n ? S.queue(this[0], e) : void 0 === t ? this : this.each(function () { var n = S.queue(this, e, t); S._queueHooks(this, e), "fx" === e && "inprogress" !== n[0] && S.dequeue(this, e); }) ); }, dequeue: function (e) { return this.each(function () { S.dequeue(this, e); }); }, clearQueue: function (e) { return this.queue(e || "fx", []); }, promise: function (e, t) { var n, r = 1, i = S.Deferred(), o = this, a = this.length, s = function () { --r || i.resolveWith(o, [o]); }; for ( "string" != typeof e && ((t = e), (e = void 0)), e = e || "fx"; a--; ) (n = Q.get(o[a], e + "queueHooks")) && n.empty && (r++, n.empty.add(s)); return s(), i.promise(t); }, }); var re = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, ie = new RegExp("^(?:([+-])=|)(" + re + ")([a-z%]*)$", "i"), oe = ["Top", "Right", "Bottom", "Left"], ae = b.documentElement, se = function (e) { return S.contains(e.ownerDocument, e); }, ue = { composed: !0 }; ae.getRootNode && (se = function (e) { return ( S.contains(e.ownerDocument, e) || e.getRootNode(ue) === e.ownerDocument ); }); var ce = function (e, t) { return ( "none" === (e = t || e).style.display || ("" === e.style.display && se(e) && "none" === S.css(e, "display")) ); }; function le(e, t, n, r) { var i, o, a = 20, s = r ? function () { return r.cur(); } : function () { return S.css(e, t, ""); }, u = s(), c = (n && n[3]) || (S.cssNumber[t] ? "" : "px"), l = e.nodeType && (S.cssNumber[t] || ("px" !== c && +u)) && ie.exec(S.css(e, t)); if (l && l[3] !== c) { for (u /= 2, c = c || l[3], l = +u || 1; a--; ) S.style(e, t, l + c), (1 - o) * (1 - (o = s() / u || 0.5)) <= 0 && (a = 0), (l /= o); (l *= 2), S.style(e, t, l + c), (n = n || []); } return ( n && ((l = +l || +u || 0), (i = n[1] ? l + (n[1] + 1) * n[2] : +n[2]), r && ((r.unit = c), (r.start = l), (r.end = i))), i ); } var fe = {}; function de(e) { var t, n = e.ownerDocument, r = e.nodeName, i = fe[r]; return ( i || ((t = n.body.appendChild(n.createElement(r))), (i = S.css(t, "display")), t.parentNode.removeChild(t), "none" === i && (i = "block"), (fe[r] = i), i) ); } function pe(e, t) { for (var n, r, i = [], o = 0, a = e.length; o < a; o++) (r = e[o]).style && ((n = r.style.display), t ? ("none" === n && ((i[o] = Q.get(r, "display") || null), i[o] || (r.style.display = "")), "" === r.style.display && ce(r) && (i[o] = de(r))) : "none" !== n && ((i[o] = "none"), Q.set(r, "display", n))); for (o = 0; o < a; o++) null != i[o] && (e[o].style.display = i[o]); return e; } S.fn.extend({ show: function () { return pe(this, !0); }, hide: function () { return pe(this); }, toggle: function (e) { return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function () { ce(this) ? S(this).show() : S(this).hide(); }); }, }); var he, ge, me = /^(?:checkbox|radio)$/i, ye = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i, ve = /^$|^module$|\/(?:java|ecma)script/i; (he = b.createDocumentFragment().appendChild(b.createElement("div"))), (ge = b.createElement("input")).setAttribute("type", "radio"), ge.setAttribute("checked", "checked"), ge.setAttribute("name", "t"), he.appendChild(ge), (m.checkClone = he.cloneNode(!0).cloneNode(!0).lastChild.checked), (he.innerHTML = ""), (m.noCloneChecked = !!he.cloneNode(!0).lastChild.defaultValue), (he.innerHTML = ""), (m.option = !!he.lastChild); var be = { thead: [1, "", "
"], col: [2, "", "
"], tr: [2, "", "
"], td: [3, "", "
"], _default: [0, "", ""], }; function _e(e, t) { var n; return ( (n = void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t || "*") : void 0 !== e.querySelectorAll ? e.querySelectorAll(t || "*") : []), void 0 === t || (t && A(e, t)) ? S.merge([e], n) : n ); } function we(e, t) { for (var n = 0, r = e.length; n < r; n++) Q.set(e[n], "globalEval", !t || Q.get(t[n], "globalEval")); } (be.tbody = be.tfoot = be.colgroup = be.caption = be.thead), (be.th = be.td), m.option || (be.optgroup = be.option = [1, ""]); var Te = /<|&#?\w+;/; function xe(e, t, n, r, i) { for ( var o, a, s, u, c, l, f = t.createDocumentFragment(), d = [], p = 0, h = e.length; p < h; p++ ) if ((o = e[p]) || 0 === o) if ("object" === T(o)) S.merge(d, o.nodeType ? [o] : o); else if (Te.test(o)) { for ( a = a || f.appendChild(t.createElement("div")), s = (ye.exec(o) || ["", ""])[1].toLowerCase(), u = be[s] || be._default, a.innerHTML = u[1] + S.htmlPrefilter(o) + u[2], l = u[0]; l--; ) a = a.lastChild; S.merge(d, a.childNodes), ((a = f.firstChild).textContent = ""); } else d.push(t.createTextNode(o)); for (f.textContent = "", p = 0; (o = d[p++]); ) if (r && S.inArray(o, r) > -1) i && i.push(o); else if ( ((c = se(o)), (a = _e(f.appendChild(o), "script")), c && we(a), n) ) for (l = 0; (o = a[l++]); ) ve.test(o.type || "") && n.push(o); return f; } var Se = /^([^.]*)(?:\.(.+)|)/; function ke() { return !0; } function Ee() { return !1; } function Oe(e, t) { return ( (e === (function () { try { return b.activeElement; } catch (e) {} })()) == ("focus" === t) ); } function Ce(e, t, n, r, i, o) { var a, s; if ("object" == typeof t) { for (s in ("string" != typeof n && ((r = r || n), (n = void 0)), t)) Ce(e, s, n, r, t[s], o); return e; } if ( (null == r && null == i ? ((i = n), (r = n = void 0)) : null == i && ("string" == typeof n ? ((i = r), (r = void 0)) : ((i = r), (r = n), (n = void 0))), !1 === i) ) i = Ee; else if (!i) return e; return ( 1 === o && ((a = i), (i = function (e) { return S().off(e), a.apply(this, arguments); }), (i.guid = a.guid || (a.guid = S.guid++))), e.each(function () { S.event.add(this, t, i, r, n); }) ); } function Le(e, t, n) { n ? (Q.set(e, t, !1), S.event.add(e, t, { namespace: !1, handler: function (e) { var r, i, o = Q.get(this, t); if (1 & e.isTrigger && this[t]) { if (o.length) (S.event.special[t] || {}).delegateType && e.stopPropagation(); else if ( ((o = s.call(arguments)), Q.set(this, t, o), (r = n(this, t)), this[t](), o !== (i = Q.get(this, t)) || r ? Q.set(this, t, !1) : (i = {}), o !== i) ) return ( e.stopImmediatePropagation(), e.preventDefault(), i && i.value ); } else o.length && (Q.set(this, t, { value: S.event.trigger( S.extend(o[0], S.Event.prototype), o.slice(1), this ), }), e.stopImmediatePropagation()); }, })) : void 0 === Q.get(e, t) && S.event.add(e, t, ke); } (S.event = { global: {}, add: function (e, t, n, r, i) { var o, a, s, u, c, l, f, d, p, h, g, m = Q.get(e); if (K(e)) for ( n.handler && ((n = (o = n).handler), (i = o.selector)), i && S.find.matchesSelector(ae, i), n.guid || (n.guid = S.guid++), (u = m.events) || (u = m.events = Object.create(null)), (a = m.handle) || (a = m.handle = function (t) { return void 0 !== S && S.event.triggered !== t.type ? S.event.dispatch.apply(e, arguments) : void 0; }), c = (t = (t || "").match(B) || [""]).length; c--; ) (p = g = (s = Se.exec(t[c]) || [])[1]), (h = (s[2] || "").split(".").sort()), p && ((f = S.event.special[p] || {}), (p = (i ? f.delegateType : f.bindType) || p), (f = S.event.special[p] || {}), (l = S.extend( { type: p, origType: g, data: r, handler: n, guid: n.guid, selector: i, needsContext: i && S.expr.match.needsContext.test(i), namespace: h.join("."), }, o )), (d = u[p]) || (((d = u[p] = []).delegateCount = 0), (f.setup && !1 !== f.setup.call(e, r, h, a)) || (e.addEventListener && e.addEventListener(p, a))), f.add && (f.add.call(e, l), l.handler.guid || (l.handler.guid = n.guid)), i ? d.splice(d.delegateCount++, 0, l) : d.push(l), (S.event.global[p] = !0)); }, remove: function (e, t, n, r, i) { var o, a, s, u, c, l, f, d, p, h, g, m = Q.hasData(e) && Q.get(e); if (m && (u = m.events)) { for (c = (t = (t || "").match(B) || [""]).length; c--; ) if ( ((p = g = (s = Se.exec(t[c]) || [])[1]), (h = (s[2] || "").split(".").sort()), p) ) { for ( f = S.event.special[p] || {}, d = u[(p = (r ? f.delegateType : f.bindType) || p)] || [], s = s[2] && new RegExp( "(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)" ), a = o = d.length; o--; ) (l = d[o]), (!i && g !== l.origType) || (n && n.guid !== l.guid) || (s && !s.test(l.namespace)) || (r && r !== l.selector && ("**" !== r || !l.selector)) || (d.splice(o, 1), l.selector && d.delegateCount--, f.remove && f.remove.call(e, l)); a && !d.length && ((f.teardown && !1 !== f.teardown.call(e, h, m.handle)) || S.removeEvent(e, p, m.handle), delete u[p]); } else for (p in u) S.event.remove(e, p + t[c], n, r, !0); S.isEmptyObject(u) && Q.remove(e, "handle events"); } }, dispatch: function (e) { var t, n, r, i, o, a, s = new Array(arguments.length), u = S.event.fix(e), c = (Q.get(this, "events") || Object.create(null))[u.type] || [], l = S.event.special[u.type] || {}; for (s[0] = u, t = 1; t < arguments.length; t++) s[t] = arguments[t]; if ( ((u.delegateTarget = this), !l.preDispatch || !1 !== l.preDispatch.call(this, u)) ) { for ( a = S.event.handlers.call(this, u, c), t = 0; (i = a[t++]) && !u.isPropagationStopped(); ) for ( u.currentTarget = i.elem, n = 0; (o = i.handlers[n++]) && !u.isImmediatePropagationStopped(); ) (u.rnamespace && !1 !== o.namespace && !u.rnamespace.test(o.namespace)) || ((u.handleObj = o), (u.data = o.data), void 0 !== (r = ( (S.event.special[o.origType] || {}).handle || o.handler ).apply(i.elem, s)) && !1 === (u.result = r) && (u.preventDefault(), u.stopPropagation())); return l.postDispatch && l.postDispatch.call(this, u), u.result; } }, handlers: function (e, t) { var n, r, i, o, a, s = [], u = t.delegateCount, c = e.target; if (u && c.nodeType && !("click" === e.type && e.button >= 1)) for (; c !== this; c = c.parentNode || this) if ( 1 === c.nodeType && ("click" !== e.type || !0 !== c.disabled) ) { for (o = [], a = {}, n = 0; n < u; n++) void 0 === a[(i = (r = t[n]).selector + " ")] && (a[i] = r.needsContext ? S(i, this).index(c) > -1 : S.find(i, this, null, [c]).length), a[i] && o.push(r); o.length && s.push({ elem: c, handlers: o }); } return ( (c = this), u < t.length && s.push({ elem: c, handlers: t.slice(u) }), s ); }, addProp: function (e, t) { Object.defineProperty(S.Event.prototype, e, { enumerable: !0, configurable: !0, get: y(t) ? function () { if (this.originalEvent) return t(this.originalEvent); } : function () { if (this.originalEvent) return this.originalEvent[e]; }, set: function (t) { Object.defineProperty(this, e, { enumerable: !0, configurable: !0, writable: !0, value: t, }); }, }); }, fix: function (e) { return e[S.expando] ? e : new S.Event(e); }, special: { load: { noBubble: !0 }, click: { setup: function (e) { var t = this || e; return ( me.test(t.type) && t.click && A(t, "input") && Le(t, "click", ke), !1 ); }, trigger: function (e) { var t = this || e; return ( me.test(t.type) && t.click && A(t, "input") && Le(t, "click"), !0 ); }, _default: function (e) { var t = e.target; return ( (me.test(t.type) && t.click && A(t, "input") && Q.get(t, "click")) || A(t, "a") ); }, }, beforeunload: { postDispatch: function (e) { void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result); }, }, }, }), (S.removeEvent = function (e, t, n) { e.removeEventListener && e.removeEventListener(t, n); }), (S.Event = function (e, t) { if (!(this instanceof S.Event)) return new S.Event(e, t); e && e.type ? ((this.originalEvent = e), (this.type = e.type), (this.isDefaultPrevented = e.defaultPrevented || (void 0 === e.defaultPrevented && !1 === e.returnValue) ? ke : Ee), (this.target = e.target && 3 === e.target.nodeType ? e.target.parentNode : e.target), (this.currentTarget = e.currentTarget), (this.relatedTarget = e.relatedTarget)) : (this.type = e), t && S.extend(this, t), (this.timeStamp = (e && e.timeStamp) || Date.now()), (this[S.expando] = !0); }), (S.Event.prototype = { constructor: S.Event, isDefaultPrevented: Ee, isPropagationStopped: Ee, isImmediatePropagationStopped: Ee, isSimulated: !1, preventDefault: function () { var e = this.originalEvent; (this.isDefaultPrevented = ke), e && !this.isSimulated && e.preventDefault(); }, stopPropagation: function () { var e = this.originalEvent; (this.isPropagationStopped = ke), e && !this.isSimulated && e.stopPropagation(); }, stopImmediatePropagation: function () { var e = this.originalEvent; (this.isImmediatePropagationStopped = ke), e && !this.isSimulated && e.stopImmediatePropagation(), this.stopPropagation(); }, }), S.each( { altKey: !0, bubbles: !0, cancelable: !0, changedTouches: !0, ctrlKey: !0, detail: !0, eventPhase: !0, metaKey: !0, pageX: !0, pageY: !0, shiftKey: !0, view: !0, char: !0, code: !0, charCode: !0, key: !0, keyCode: !0, button: !0, buttons: !0, clientX: !0, clientY: !0, offsetX: !0, offsetY: !0, pointerId: !0, pointerType: !0, screenX: !0, screenY: !0, targetTouches: !0, toElement: !0, touches: !0, which: !0, }, S.event.addProp ), S.each({ focus: "focusin", blur: "focusout" }, function (e, t) { S.event.special[e] = { setup: function () { return Le(this, e, Oe), !1; }, trigger: function () { return Le(this, e), !0; }, _default: function () { return !0; }, delegateType: t, }; }), S.each( { mouseenter: "mouseover", mouseleave: "mouseout", pointerenter: "pointerover", pointerleave: "pointerout", }, function (e, t) { S.event.special[e] = { delegateType: t, bindType: t, handle: function (e) { var n, r = this, i = e.relatedTarget, o = e.handleObj; return ( (i && (i === r || S.contains(r, i))) || ((e.type = o.origType), (n = o.handler.apply(this, arguments)), (e.type = t)), n ); }, }; } ), S.fn.extend({ on: function (e, t, n, r) { return Ce(this, e, t, n, r); }, one: function (e, t, n, r) { return Ce(this, e, t, n, r, 1); }, off: function (e, t, n) { var r, i; if (e && e.preventDefault && e.handleObj) return ( (r = e.handleObj), S(e.delegateTarget).off( r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, r.handler ), this ); if ("object" == typeof e) { for (i in e) this.off(i, t, e[i]); return this; } return ( (!1 !== t && "function" != typeof t) || ((n = t), (t = void 0)), !1 === n && (n = Ee), this.each(function () { S.event.remove(this, e, n, t); }) ); }, }); var Ae = /\s*$/g; function Pe(e, t) { return ( (A(e, "table") && A(11 !== t.nodeType ? t : t.firstChild, "tr") && S(e).children("tbody")[0]) || e ); } function Re(e) { return (e.type = (null !== e.getAttribute("type")) + "/" + e.type), e; } function De(e) { return ( "true/" === (e.type || "").slice(0, 5) ? (e.type = e.type.slice(5)) : e.removeAttribute("type"), e ); } function je(e, t) { var n, r, i, o, a, s; if (1 === t.nodeType) { if (Q.hasData(e) && (s = Q.get(e).events)) for (i in (Q.remove(t, "handle events"), s)) for (n = 0, r = s[i].length; n < r; n++) S.event.add(t, i, s[i][n]); J.hasData(e) && ((o = J.access(e)), (a = S.extend({}, o)), J.set(t, a)); } } function Ne(e, t) { var n = t.nodeName.toLowerCase(); "input" === n && me.test(e.type) ? (t.checked = e.checked) : ("input" !== n && "textarea" !== n) || (t.defaultValue = e.defaultValue); } function Be(e, t, n, r) { t = u(t); var i, o, a, s, c, l, f = 0, d = e.length, p = d - 1, h = t[0], g = y(h); if ( g || (d > 1 && "string" == typeof h && !m.checkClone && Ie.test(h)) ) return e.each(function (i) { var o = e.eq(i); g && (t[0] = h.call(this, i, o.html())), Be(o, t, n, r); }); if ( d && ((o = (i = xe(t, e[0].ownerDocument, !1, e, r)).firstChild), 1 === i.childNodes.length && (i = o), o || r) ) { for (s = (a = S.map(_e(i, "script"), Re)).length; f < d; f++) (c = i), f !== p && ((c = S.clone(c, !0, !0)), s && S.merge(a, _e(c, "script"))), n.call(e[f], c, f); if (s) for ( l = a[a.length - 1].ownerDocument, S.map(a, De), f = 0; f < s; f++ ) (c = a[f]), ve.test(c.type || "") && !Q.access(c, "globalEval") && S.contains(l, c) && (c.src && "module" !== (c.type || "").toLowerCase() ? S._evalUrl && !c.noModule && S._evalUrl( c.src, { nonce: c.nonce || c.getAttribute("nonce") }, l ) : w(c.textContent.replace(Me, ""), c, l)); } return e; } function Ue(e, t, n) { for ( var r, i = t ? S.filter(t, e) : e, o = 0; null != (r = i[o]); o++ ) n || 1 !== r.nodeType || S.cleanData(_e(r)), r.parentNode && (n && se(r) && we(_e(r, "script")), r.parentNode.removeChild(r)); return e; } S.extend({ htmlPrefilter: function (e) { return e; }, clone: function (e, t, n) { var r, i, o, a, s = e.cloneNode(!0), u = se(e); if ( !( m.noCloneChecked || (1 !== e.nodeType && 11 !== e.nodeType) || S.isXMLDoc(e) ) ) for (a = _e(s), r = 0, i = (o = _e(e)).length; r < i; r++) Ne(o[r], a[r]); if (t) if (n) for ( o = o || _e(e), a = a || _e(s), r = 0, i = o.length; r < i; r++ ) je(o[r], a[r]); else je(e, s); return ( (a = _e(s, "script")).length > 0 && we(a, !u && _e(e, "script")), s ); }, cleanData: function (e) { for ( var t, n, r, i = S.event.special, o = 0; void 0 !== (n = e[o]); o++ ) if (K(n)) { if ((t = n[Q.expando])) { if (t.events) for (r in t.events) i[r] ? S.event.remove(n, r) : S.removeEvent(n, r, t.handle); n[Q.expando] = void 0; } n[J.expando] && (n[J.expando] = void 0); } }, }), S.fn.extend({ detach: function (e) { return Ue(this, e, !0); }, remove: function (e) { return Ue(this, e); }, text: function (e) { return V( this, function (e) { return void 0 === e ? S.text(this) : this.empty().each(function () { (1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType) || (this.textContent = e); }); }, null, e, arguments.length ); }, append: function () { return Be(this, arguments, function (e) { (1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType) || Pe(this, e).appendChild(e); }); }, prepend: function () { return Be(this, arguments, function (e) { if ( 1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType ) { var t = Pe(this, e); t.insertBefore(e, t.firstChild); } }); }, before: function () { return Be(this, arguments, function (e) { this.parentNode && this.parentNode.insertBefore(e, this); }); }, after: function () { return Be(this, arguments, function (e) { this.parentNode && this.parentNode.insertBefore(e, this.nextSibling); }); }, empty: function () { for (var e, t = 0; null != (e = this[t]); t++) 1 === e.nodeType && (S.cleanData(_e(e, !1)), (e.textContent = "")); return this; }, clone: function (e, t) { return ( (e = null != e && e), (t = null == t ? e : t), this.map(function () { return S.clone(this, e, t); }) ); }, html: function (e) { return V( this, function (e) { var t = this[0] || {}, n = 0, r = this.length; if (void 0 === e && 1 === t.nodeType) return t.innerHTML; if ( "string" == typeof e && !Ae.test(e) && !be[(ye.exec(e) || ["", ""])[1].toLowerCase()] ) { e = S.htmlPrefilter(e); try { for (; n < r; n++) 1 === (t = this[n] || {}).nodeType && (S.cleanData(_e(t, !1)), (t.innerHTML = e)); t = 0; } catch (e) {} } t && this.empty().append(e); }, null, e, arguments.length ); }, replaceWith: function () { var e = []; return Be( this, arguments, function (t) { var n = this.parentNode; S.inArray(this, e) < 0 && (S.cleanData(_e(this)), n && n.replaceChild(t, this)); }, e ); }, }), S.each( { appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith", }, function (e, t) { S.fn[e] = function (e) { for ( var n, r = [], i = S(e), o = i.length - 1, a = 0; a <= o; a++ ) (n = a === o ? this : this.clone(!0)), S(i[a])[t](n), c.apply(r, n.get()); return this.pushStack(r); }; } ); var Fe = new RegExp("^(" + re + ")(?!px)[a-z%]+$", "i"), ze = function (e) { var t = e.ownerDocument.defaultView; return (t && t.opener) || (t = r), t.getComputedStyle(e); }, He = function (e, t, n) { var r, i, o = {}; for (i in t) (o[i] = e.style[i]), (e.style[i] = t[i]); for (i in ((r = n.call(e)), t)) e.style[i] = o[i]; return r; }, qe = new RegExp(oe.join("|"), "i"); function Ze(e, t, n) { var r, i, o, a, s = e.style; return ( (n = n || ze(e)) && ("" !== (a = n.getPropertyValue(t) || n[t]) || se(e) || (a = S.style(e, t)), !m.pixelBoxStyles() && Fe.test(a) && qe.test(t) && ((r = s.width), (i = s.minWidth), (o = s.maxWidth), (s.minWidth = s.maxWidth = s.width = a), (a = n.width), (s.width = r), (s.minWidth = i), (s.maxWidth = o))), void 0 !== a ? a + "" : a ); } function Ve(e, t) { return { get: function () { if (!e()) return (this.get = t).apply(this, arguments); delete this.get; }, }; } !(function () { function e() { if (l) { (c.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0"), (l.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%"), ae.appendChild(c).appendChild(l); var e = r.getComputedStyle(l); (n = "1%" !== e.top), (u = 12 === t(e.marginLeft)), (l.style.right = "60%"), (a = 36 === t(e.right)), (i = 36 === t(e.width)), (l.style.position = "absolute"), (o = 12 === t(l.offsetWidth / 3)), ae.removeChild(c), (l = null); } } function t(e) { return Math.round(parseFloat(e)); } var n, i, o, a, s, u, c = b.createElement("div"), l = b.createElement("div"); l.style && ((l.style.backgroundClip = "content-box"), (l.cloneNode(!0).style.backgroundClip = ""), (m.clearCloneStyle = "content-box" === l.style.backgroundClip), S.extend(m, { boxSizingReliable: function () { return e(), i; }, pixelBoxStyles: function () { return e(), a; }, pixelPosition: function () { return e(), n; }, reliableMarginLeft: function () { return e(), u; }, scrollboxSize: function () { return e(), o; }, reliableTrDimensions: function () { var e, t, n, i; return ( null == s && ((e = b.createElement("table")), (t = b.createElement("tr")), (n = b.createElement("div")), (e.style.cssText = "position:absolute;left:-11111px;border-collapse:separate"), (t.style.cssText = "border:1px solid"), (t.style.height = "1px"), (n.style.height = "9px"), (n.style.display = "block"), ae.appendChild(e).appendChild(t).appendChild(n), (i = r.getComputedStyle(t)), (s = parseInt(i.height, 10) + parseInt(i.borderTopWidth, 10) + parseInt(i.borderBottomWidth, 10) === t.offsetHeight), ae.removeChild(e)), s ); }, })); })(); var We = ["Webkit", "Moz", "ms"], $e = b.createElement("div").style, Ge = {}; function Ye(e) { var t = S.cssProps[e] || Ge[e]; return ( t || (e in $e ? e : (Ge[e] = (function (e) { for ( var t = e[0].toUpperCase() + e.slice(1), n = We.length; n--; ) if ((e = We[n] + t) in $e) return e; })(e) || e)) ); } var Ke = /^(none|table(?!-c[ea]).+)/, Xe = /^--/, Qe = { position: "absolute", visibility: "hidden", display: "block" }, Je = { letterSpacing: "0", fontWeight: "400" }; function et(e, t, n) { var r = ie.exec(t); return r ? Math.max(0, r[2] - (n || 0)) + (r[3] || "px") : t; } function tt(e, t, n, r, i, o) { var a = "width" === t ? 1 : 0, s = 0, u = 0; if (n === (r ? "border" : "content")) return 0; for (; a < 4; a += 2) "margin" === n && (u += S.css(e, n + oe[a], !0, i)), r ? ("content" === n && (u -= S.css(e, "padding" + oe[a], !0, i)), "margin" !== n && (u -= S.css(e, "border" + oe[a] + "Width", !0, i))) : ((u += S.css(e, "padding" + oe[a], !0, i)), "padding" !== n ? (u += S.css(e, "border" + oe[a] + "Width", !0, i)) : (s += S.css(e, "border" + oe[a] + "Width", !0, i))); return ( !r && o >= 0 && (u += Math.max( 0, Math.ceil( e["offset" + t[0].toUpperCase() + t.slice(1)] - o - u - s - 0.5 ) ) || 0), u ); } function nt(e, t, n) { var r = ze(e), i = (!m.boxSizingReliable() || n) && "border-box" === S.css(e, "boxSizing", !1, r), o = i, a = Ze(e, t, r), s = "offset" + t[0].toUpperCase() + t.slice(1); if (Fe.test(a)) { if (!n) return a; a = "auto"; } return ( ((!m.boxSizingReliable() && i) || (!m.reliableTrDimensions() && A(e, "tr")) || "auto" === a || (!parseFloat(a) && "inline" === S.css(e, "display", !1, r))) && e.getClientRects().length && ((i = "border-box" === S.css(e, "boxSizing", !1, r)), (o = s in e) && (a = e[s])), (a = parseFloat(a) || 0) + tt(e, t, n || (i ? "border" : "content"), o, r, a) + "px" ); } function rt(e, t, n, r, i) { return new rt.prototype.init(e, t, n, r, i); } S.extend({ cssHooks: { opacity: { get: function (e, t) { if (t) { var n = Ze(e, "opacity"); return "" === n ? "1" : n; } }, }, }, cssNumber: { animationIterationCount: !0, columnCount: !0, fillOpacity: !0, flexGrow: !0, flexShrink: !0, fontWeight: !0, gridArea: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnStart: !0, gridRow: !0, gridRowEnd: !0, gridRowStart: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0, }, cssProps: {}, style: function (e, t, n, r) { if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) { var i, o, a, s = Y(t), u = Xe.test(t), c = e.style; if ( (u || (t = Ye(s)), (a = S.cssHooks[t] || S.cssHooks[s]), void 0 === n) ) return a && "get" in a && void 0 !== (i = a.get(e, !1, r)) ? i : c[t]; "string" === (o = typeof n) && (i = ie.exec(n)) && i[1] && ((n = le(e, t, i)), (o = "number")), null != n && n == n && ("number" !== o || u || (n += (i && i[3]) || (S.cssNumber[s] ? "" : "px")), m.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (c[t] = "inherit"), (a && "set" in a && void 0 === (n = a.set(e, n, r))) || (u ? c.setProperty(t, n) : (c[t] = n))); } }, css: function (e, t, n, r) { var i, o, a, s = Y(t); return ( Xe.test(t) || (t = Ye(s)), (a = S.cssHooks[t] || S.cssHooks[s]) && "get" in a && (i = a.get(e, !0, n)), void 0 === i && (i = Ze(e, t, r)), "normal" === i && t in Je && (i = Je[t]), "" === n || n ? ((o = parseFloat(i)), !0 === n || isFinite(o) ? o || 0 : i) : i ); }, }), S.each(["height", "width"], function (e, t) { S.cssHooks[t] = { get: function (e, n, r) { if (n) return !Ke.test(S.css(e, "display")) || (e.getClientRects().length && e.getBoundingClientRect().width) ? nt(e, t, r) : He(e, Qe, function () { return nt(e, t, r); }); }, set: function (e, n, r) { var i, o = ze(e), a = !m.scrollboxSize() && "absolute" === o.position, s = (a || r) && "border-box" === S.css(e, "boxSizing", !1, o), u = r ? tt(e, t, r, s, o) : 0; return ( s && a && (u -= Math.ceil( e["offset" + t[0].toUpperCase() + t.slice(1)] - parseFloat(o[t]) - tt(e, t, "border", !1, o) - 0.5 )), u && (i = ie.exec(n)) && "px" !== (i[3] || "px") && ((e.style[t] = n), (n = S.css(e, t))), et(0, n, u) ); }, }; }), (S.cssHooks.marginLeft = Ve(m.reliableMarginLeft, function (e, t) { if (t) return ( (parseFloat(Ze(e, "marginLeft")) || e.getBoundingClientRect().left - He(e, { marginLeft: 0 }, function () { return e.getBoundingClientRect().left; })) + "px" ); })), S.each({ margin: "", padding: "", border: "Width" }, function (e, t) { (S.cssHooks[e + t] = { expand: function (n) { for ( var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n]; r < 4; r++ ) i[e + oe[r] + t] = o[r] || o[r - 2] || o[0]; return i; }, }), "margin" !== e && (S.cssHooks[e + t].set = et); }), S.fn.extend({ css: function (e, t) { return V( this, function (e, t, n) { var r, i, o = {}, a = 0; if (Array.isArray(t)) { for (r = ze(e), i = t.length; a < i; a++) o[t[a]] = S.css(e, t[a], !1, r); return o; } return void 0 !== n ? S.style(e, t, n) : S.css(e, t); }, e, t, arguments.length > 1 ); }, }), (S.Tween = rt), (rt.prototype = { constructor: rt, init: function (e, t, n, r, i, o) { (this.elem = e), (this.prop = n), (this.easing = i || S.easing._default), (this.options = t), (this.start = this.now = this.cur()), (this.end = r), (this.unit = o || (S.cssNumber[n] ? "" : "px")); }, cur: function () { var e = rt.propHooks[this.prop]; return e && e.get ? e.get(this) : rt.propHooks._default.get(this); }, run: function (e) { var t, n = rt.propHooks[this.prop]; return ( this.options.duration ? (this.pos = t = S.easing[this.easing]( e, this.options.duration * e, 0, 1, this.options.duration )) : (this.pos = t = e), (this.now = (this.end - this.start) * t + this.start), this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : rt.propHooks._default.set(this), this ); }, }), (rt.prototype.init.prototype = rt.prototype), (rt.propHooks = { _default: { get: function (e) { var t; return 1 !== e.elem.nodeType || (null != e.elem[e.prop] && null == e.elem.style[e.prop]) ? e.elem[e.prop] : (t = S.css(e.elem, e.prop, "")) && "auto" !== t ? t : 0; }, set: function (e) { S.fx.step[e.prop] ? S.fx.step[e.prop](e) : 1 !== e.elem.nodeType || (!S.cssHooks[e.prop] && null == e.elem.style[Ye(e.prop)]) ? (e.elem[e.prop] = e.now) : S.style(e.elem, e.prop, e.now + e.unit); }, }, }), (rt.propHooks.scrollTop = rt.propHooks.scrollLeft = { set: function (e) { e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now); }, }), (S.easing = { linear: function (e) { return e; }, swing: function (e) { return 0.5 - Math.cos(e * Math.PI) / 2; }, _default: "swing", }), (S.fx = rt.prototype.init), (S.fx.step = {}); var it, ot, at = /^(?:toggle|show|hide)$/, st = /queueHooks$/; function ut() { ot && (!1 === b.hidden && r.requestAnimationFrame ? r.requestAnimationFrame(ut) : r.setTimeout(ut, S.fx.interval), S.fx.tick()); } function ct() { return ( r.setTimeout(function () { it = void 0; }), (it = Date.now()) ); } function lt(e, t) { var n, r = 0, i = { height: e }; for (t = t ? 1 : 0; r < 4; r += 2 - t) i["margin" + (n = oe[r])] = i["padding" + n] = e; return t && (i.opacity = i.width = e), i; } function ft(e, t, n) { for ( var r, i = (dt.tweeners[t] || []).concat(dt.tweeners["*"]), o = 0, a = i.length; o < a; o++ ) if ((r = i[o].call(n, t, e))) return r; } function dt(e, t, n) { var r, i, o = 0, a = dt.prefilters.length, s = S.Deferred().always(function () { delete u.elem; }), u = function () { if (i) return !1; for ( var t = it || ct(), n = Math.max(0, c.startTime + c.duration - t), r = 1 - (n / c.duration || 0), o = 0, a = c.tweens.length; o < a; o++ ) c.tweens[o].run(r); return ( s.notifyWith(e, [c, r, n]), r < 1 && a ? n : (a || s.notifyWith(e, [c, 1, 0]), s.resolveWith(e, [c]), !1) ); }, c = s.promise({ elem: e, props: S.extend({}, t), opts: S.extend( !0, { specialEasing: {}, easing: S.easing._default }, n ), originalProperties: t, originalOptions: n, startTime: it || ct(), duration: n.duration, tweens: [], createTween: function (t, n) { var r = S.Tween( e, c.opts, t, n, c.opts.specialEasing[t] || c.opts.easing ); return c.tweens.push(r), r; }, stop: function (t) { var n = 0, r = t ? c.tweens.length : 0; if (i) return this; for (i = !0; n < r; n++) c.tweens[n].run(1); return ( t ? (s.notifyWith(e, [c, 1, 0]), s.resolveWith(e, [c, t])) : s.rejectWith(e, [c, t]), this ); }, }), l = c.props; for ( !(function (e, t) { var n, r, i, o, a; for (n in e) if ( ((i = t[(r = Y(n))]), (o = e[n]), Array.isArray(o) && ((i = o[1]), (o = e[n] = o[0])), n !== r && ((e[r] = o), delete e[n]), (a = S.cssHooks[r]) && ("expand" in a)) ) for (n in ((o = a.expand(o)), delete e[r], o)) (n in e) || ((e[n] = o[n]), (t[n] = i)); else t[r] = i; })(l, c.opts.specialEasing); o < a; o++ ) if ((r = dt.prefilters[o].call(c, e, l, c.opts))) return ( y(r.stop) && (S._queueHooks(c.elem, c.opts.queue).stop = r.stop.bind(r)), r ); return ( S.map(l, ft, c), y(c.opts.start) && c.opts.start.call(e, c), c .progress(c.opts.progress) .done(c.opts.done, c.opts.complete) .fail(c.opts.fail) .always(c.opts.always), S.fx.timer(S.extend(u, { elem: e, anim: c, queue: c.opts.queue })), c ); } (S.Animation = S.extend(dt, { tweeners: { "*": [ function (e, t) { var n = this.createTween(e, t); return le(n.elem, e, ie.exec(t), n), n; }, ], }, tweener: function (e, t) { y(e) ? ((t = e), (e = ["*"])) : (e = e.match(B)); for (var n, r = 0, i = e.length; r < i; r++) (n = e[r]), (dt.tweeners[n] = dt.tweeners[n] || []), dt.tweeners[n].unshift(t); }, prefilters: [ function (e, t, n) { var r, i, o, a, s, u, c, l, f = "width" in t || "height" in t, d = this, p = {}, h = e.style, g = e.nodeType && ce(e), m = Q.get(e, "fxshow"); for (r in (n.queue || (null == (a = S._queueHooks(e, "fx")).unqueued && ((a.unqueued = 0), (s = a.empty.fire), (a.empty.fire = function () { a.unqueued || s(); })), a.unqueued++, d.always(function () { d.always(function () { a.unqueued--, S.queue(e, "fx").length || a.empty.fire(); }); })), t)) if (((i = t[r]), at.test(i))) { if ( (delete t[r], (o = o || "toggle" === i), i === (g ? "hide" : "show")) ) { if ("show" !== i || !m || void 0 === m[r]) continue; g = !0; } p[r] = (m && m[r]) || S.style(e, r); } if ((u = !S.isEmptyObject(t)) || !S.isEmptyObject(p)) for (r in (f && 1 === e.nodeType && ((n.overflow = [h.overflow, h.overflowX, h.overflowY]), null == (c = m && m.display) && (c = Q.get(e, "display")), "none" === (l = S.css(e, "display")) && (c ? (l = c) : (pe([e], !0), (c = e.style.display || c), (l = S.css(e, "display")), pe([e]))), ("inline" === l || ("inline-block" === l && null != c)) && "none" === S.css(e, "float") && (u || (d.done(function () { h.display = c; }), null == c && ((l = h.display), (c = "none" === l ? "" : l))), (h.display = "inline-block"))), n.overflow && ((h.overflow = "hidden"), d.always(function () { (h.overflow = n.overflow[0]), (h.overflowX = n.overflow[1]), (h.overflowY = n.overflow[2]); })), (u = !1), p)) u || (m ? "hidden" in m && (g = m.hidden) : (m = Q.access(e, "fxshow", { display: c })), o && (m.hidden = !g), g && pe([e], !0), d.done(function () { for (r in (g || pe([e]), Q.remove(e, "fxshow"), p)) S.style(e, r, p[r]); })), (u = ft(g ? m[r] : 0, r, d)), r in m || ((m[r] = u.start), g && ((u.end = u.start), (u.start = 0))); }, ], prefilter: function (e, t) { t ? dt.prefilters.unshift(e) : dt.prefilters.push(e); }, })), (S.speed = function (e, t, n) { var r = e && "object" == typeof e ? S.extend({}, e) : { complete: n || (!n && t) || (y(e) && e), duration: e, easing: (n && t) || (t && !y(t) && t), }; return ( S.fx.off ? (r.duration = 0) : "number" != typeof r.duration && (r.duration in S.fx.speeds ? (r.duration = S.fx.speeds[r.duration]) : (r.duration = S.fx.speeds._default)), (null != r.queue && !0 !== r.queue) || (r.queue = "fx"), (r.old = r.complete), (r.complete = function () { y(r.old) && r.old.call(this), r.queue && S.dequeue(this, r.queue); }), r ); }), S.fn.extend({ fadeTo: function (e, t, n, r) { return this.filter(ce) .css("opacity", 0) .show() .end() .animate({ opacity: t }, e, n, r); }, animate: function (e, t, n, r) { var i = S.isEmptyObject(e), o = S.speed(t, n, r), a = function () { var t = dt(this, S.extend({}, e), o); (i || Q.get(this, "finish")) && t.stop(!0); }; return ( (a.finish = a), i || !1 === o.queue ? this.each(a) : this.queue(o.queue, a) ); }, stop: function (e, t, n) { var r = function (e) { var t = e.stop; delete e.stop, t(n); }; return ( "string" != typeof e && ((n = t), (t = e), (e = void 0)), t && this.queue(e || "fx", []), this.each(function () { var t = !0, i = null != e && e + "queueHooks", o = S.timers, a = Q.get(this); if (i) a[i] && a[i].stop && r(a[i]); else for (i in a) a[i] && a[i].stop && st.test(i) && r(a[i]); for (i = o.length; i--; ) o[i].elem !== this || (null != e && o[i].queue !== e) || (o[i].anim.stop(n), (t = !1), o.splice(i, 1)); (!t && n) || S.dequeue(this, e); }) ); }, finish: function (e) { return ( !1 !== e && (e = e || "fx"), this.each(function () { var t, n = Q.get(this), r = n[e + "queue"], i = n[e + "queueHooks"], o = S.timers, a = r ? r.length : 0; for ( n.finish = !0, S.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--; ) o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1)); for (t = 0; t < a; t++) r[t] && r[t].finish && r[t].finish.call(this); delete n.finish; }) ); }, }), S.each(["toggle", "show", "hide"], function (e, t) { var n = S.fn[t]; S.fn[t] = function (e, r, i) { return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(lt(t, !0), e, r, i); }; }), S.each( { slideDown: lt("show"), slideUp: lt("hide"), slideToggle: lt("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" }, }, function (e, t) { S.fn[e] = function (e, n, r) { return this.animate(t, e, n, r); }; } ), (S.timers = []), (S.fx.tick = function () { var e, t = 0, n = S.timers; for (it = Date.now(); t < n.length; t++) (e = n[t])() || n[t] !== e || n.splice(t--, 1); n.length || S.fx.stop(), (it = void 0); }), (S.fx.timer = function (e) { S.timers.push(e), S.fx.start(); }), (S.fx.interval = 13), (S.fx.start = function () { ot || ((ot = !0), ut()); }), (S.fx.stop = function () { ot = null; }), (S.fx.speeds = { slow: 600, fast: 200, _default: 400 }), (S.fn.delay = function (e, t) { return ( (e = (S.fx && S.fx.speeds[e]) || e), (t = t || "fx"), this.queue(t, function (t, n) { var i = r.setTimeout(t, e); n.stop = function () { r.clearTimeout(i); }; }) ); }), (function () { var e = b.createElement("input"), t = b .createElement("select") .appendChild(b.createElement("option")); (e.type = "checkbox"), (m.checkOn = "" !== e.value), (m.optSelected = t.selected), ((e = b.createElement("input")).value = "t"), (e.type = "radio"), (m.radioValue = "t" === e.value); })(); var pt, ht = S.expr.attrHandle; S.fn.extend({ attr: function (e, t) { return V(this, S.attr, e, t, arguments.length > 1); }, removeAttr: function (e) { return this.each(function () { S.removeAttr(this, e); }); }, }), S.extend({ attr: function (e, t, n) { var r, i, o = e.nodeType; if (3 !== o && 8 !== o && 2 !== o) return void 0 === e.getAttribute ? S.prop(e, t, n) : ((1 === o && S.isXMLDoc(e)) || (i = S.attrHooks[t.toLowerCase()] || (S.expr.match.bool.test(t) ? pt : void 0)), void 0 !== n ? null === n ? void S.removeAttr(e, t) : i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : (e.setAttribute(t, n + ""), n) : i && "get" in i && null !== (r = i.get(e, t)) ? r : null == (r = S.find.attr(e, t)) ? void 0 : r); }, attrHooks: { type: { set: function (e, t) { if (!m.radioValue && "radio" === t && A(e, "input")) { var n = e.value; return e.setAttribute("type", t), n && (e.value = n), t; } }, }, }, removeAttr: function (e, t) { var n, r = 0, i = t && t.match(B); if (i && 1 === e.nodeType) for (; (n = i[r++]); ) e.removeAttribute(n); }, }), (pt = { set: function (e, t, n) { return !1 === t ? S.removeAttr(e, n) : e.setAttribute(n, n), n; }, }), S.each(S.expr.match.bool.source.match(/\w+/g), function (e, t) { var n = ht[t] || S.find.attr; ht[t] = function (e, t, r) { var i, o, a = t.toLowerCase(); return ( r || ((o = ht[a]), (ht[a] = i), (i = null != n(e, t, r) ? a : null), (ht[a] = o)), i ); }; }); var gt = /^(?:input|select|textarea|button)$/i, mt = /^(?:a|area)$/i; function yt(e) { return (e.match(B) || []).join(" "); } function vt(e) { return (e.getAttribute && e.getAttribute("class")) || ""; } function bt(e) { return Array.isArray(e) ? e : ("string" == typeof e && e.match(B)) || []; } S.fn.extend({ prop: function (e, t) { return V(this, S.prop, e, t, arguments.length > 1); }, removeProp: function (e) { return this.each(function () { delete this[S.propFix[e] || e]; }); }, }), S.extend({ prop: function (e, t, n) { var r, i, o = e.nodeType; if (3 !== o && 8 !== o && 2 !== o) return ( (1 === o && S.isXMLDoc(e)) || ((t = S.propFix[t] || t), (i = S.propHooks[t])), void 0 !== n ? i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : (e[t] = n) : i && "get" in i && null !== (r = i.get(e, t)) ? r : e[t] ); }, propHooks: { tabIndex: { get: function (e) { var t = S.find.attr(e, "tabindex"); return t ? parseInt(t, 10) : gt.test(e.nodeName) || (mt.test(e.nodeName) && e.href) ? 0 : -1; }, }, }, propFix: { for: "htmlFor", class: "className" }, }), m.optSelected || (S.propHooks.selected = { get: function (e) { var t = e.parentNode; return t && t.parentNode && t.parentNode.selectedIndex, null; }, set: function (e) { var t = e.parentNode; t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex); }, }), S.each( [ "tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable", ], function () { S.propFix[this.toLowerCase()] = this; } ), S.fn.extend({ addClass: function (e) { var t, n, r, i, o, a, s, u = 0; if (y(e)) return this.each(function (t) { S(this).addClass(e.call(this, t, vt(this))); }); if ((t = bt(e)).length) for (; (n = this[u++]); ) if ( ((i = vt(n)), (r = 1 === n.nodeType && " " + yt(i) + " ")) ) { for (a = 0; (o = t[a++]); ) r.indexOf(" " + o + " ") < 0 && (r += o + " "); i !== (s = yt(r)) && n.setAttribute("class", s); } return this; }, removeClass: function (e) { var t, n, r, i, o, a, s, u = 0; if (y(e)) return this.each(function (t) { S(this).removeClass(e.call(this, t, vt(this))); }); if (!arguments.length) return this.attr("class", ""); if ((t = bt(e)).length) for (; (n = this[u++]); ) if ( ((i = vt(n)), (r = 1 === n.nodeType && " " + yt(i) + " ")) ) { for (a = 0; (o = t[a++]); ) for (; r.indexOf(" " + o + " ") > -1; ) r = r.replace(" " + o + " ", " "); i !== (s = yt(r)) && n.setAttribute("class", s); } return this; }, toggleClass: function (e, t) { var n = typeof e, r = "string" === n || Array.isArray(e); return "boolean" == typeof t && r ? t ? this.addClass(e) : this.removeClass(e) : y(e) ? this.each(function (n) { S(this).toggleClass(e.call(this, n, vt(this), t), t); }) : this.each(function () { var t, i, o, a; if (r) for (i = 0, o = S(this), a = bt(e); (t = a[i++]); ) o.hasClass(t) ? o.removeClass(t) : o.addClass(t); else (void 0 !== e && "boolean" !== n) || ((t = vt(this)) && Q.set(this, "__className__", t), this.setAttribute && this.setAttribute( "class", t || !1 === e ? "" : Q.get(this, "__className__") || "" )); }); }, hasClass: function (e) { var t, n, r = 0; for (t = " " + e + " "; (n = this[r++]); ) if (1 === n.nodeType && (" " + yt(vt(n)) + " ").indexOf(t) > -1) return !0; return !1; }, }); var _t = /\r/g; S.fn.extend({ val: function (e) { var t, n, r, i = this[0]; return arguments.length ? ((r = y(e)), this.each(function (n) { var i; 1 === this.nodeType && (null == (i = r ? e.call(this, n, S(this).val()) : e) ? (i = "") : "number" == typeof i ? (i += "") : Array.isArray(i) && (i = S.map(i, function (e) { return null == e ? "" : e + ""; })), ((t = S.valHooks[this.type] || S.valHooks[this.nodeName.toLowerCase()]) && "set" in t && void 0 !== t.set(this, i, "value")) || (this.value = i)); })) : i ? (t = S.valHooks[i.type] || S.valHooks[i.nodeName.toLowerCase()]) && "get" in t && void 0 !== (n = t.get(i, "value")) ? n : "string" == typeof (n = i.value) ? n.replace(_t, "") : null == n ? "" : n : void 0; }, }), S.extend({ valHooks: { option: { get: function (e) { var t = S.find.attr(e, "value"); return null != t ? t : yt(S.text(e)); }, }, select: { get: function (e) { var t, n, r, i = e.options, o = e.selectedIndex, a = "select-one" === e.type, s = a ? null : [], u = a ? o + 1 : i.length; for (r = o < 0 ? u : a ? o : 0; r < u; r++) if ( ((n = i[r]).selected || r === o) && !n.disabled && (!n.parentNode.disabled || !A(n.parentNode, "optgroup")) ) { if (((t = S(n).val()), a)) return t; s.push(t); } return s; }, set: function (e, t) { for ( var n, r, i = e.options, o = S.makeArray(t), a = i.length; a--; ) ((r = i[a]).selected = S.inArray(S.valHooks.option.get(r), o) > -1) && (n = !0); return n || (e.selectedIndex = -1), o; }, }, }, }), S.each(["radio", "checkbox"], function () { (S.valHooks[this] = { set: function (e, t) { if (Array.isArray(t)) return (e.checked = S.inArray(S(e).val(), t) > -1); }, }), m.checkOn || (S.valHooks[this].get = function (e) { return null === e.getAttribute("value") ? "on" : e.value; }); }), (m.focusin = "onfocusin" in r); var wt = /^(?:focusinfocus|focusoutblur)$/, Tt = function (e) { e.stopPropagation(); }; S.extend(S.event, { trigger: function (e, t, n, i) { var o, a, s, u, c, l, f, d, h = [n || b], g = p.call(e, "type") ? e.type : e, m = p.call(e, "namespace") ? e.namespace.split(".") : []; if ( ((a = d = s = n = n || b), 3 !== n.nodeType && 8 !== n.nodeType && !wt.test(g + S.event.triggered) && (g.indexOf(".") > -1 && ((m = g.split(".")), (g = m.shift()), m.sort()), (c = g.indexOf(":") < 0 && "on" + g), ((e = e[S.expando] ? e : new S.Event(g, "object" == typeof e && e)).isTrigger = i ? 2 : 3), (e.namespace = m.join(".")), (e.rnamespace = e.namespace ? new RegExp("(^|\\.)" + m.join("\\.(?:.*\\.|)") + "(\\.|$)") : null), (e.result = void 0), e.target || (e.target = n), (t = null == t ? [e] : S.makeArray(t, [e])), (f = S.event.special[g] || {}), i || !f.trigger || !1 !== f.trigger.apply(n, t))) ) { if (!i && !f.noBubble && !v(n)) { for ( u = f.delegateType || g, wt.test(u + g) || (a = a.parentNode); a; a = a.parentNode ) h.push(a), (s = a); s === (n.ownerDocument || b) && h.push(s.defaultView || s.parentWindow || r); } for (o = 0; (a = h[o++]) && !e.isPropagationStopped(); ) (d = a), (e.type = o > 1 ? u : f.bindType || g), (l = (Q.get(a, "events") || Object.create(null))[e.type] && Q.get(a, "handle")) && l.apply(a, t), (l = c && a[c]) && l.apply && K(a) && ((e.result = l.apply(a, t)), !1 === e.result && e.preventDefault()); return ( (e.type = g), i || e.isDefaultPrevented() || (f._default && !1 !== f._default.apply(h.pop(), t)) || !K(n) || (c && y(n[g]) && !v(n) && ((s = n[c]) && (n[c] = null), (S.event.triggered = g), e.isPropagationStopped() && d.addEventListener(g, Tt), n[g](), e.isPropagationStopped() && d.removeEventListener(g, Tt), (S.event.triggered = void 0), s && (n[c] = s))), e.result ); } }, simulate: function (e, t, n) { var r = S.extend(new S.Event(), n, { type: e, isSimulated: !0 }); S.event.trigger(r, null, t); }, }), S.fn.extend({ trigger: function (e, t) { return this.each(function () { S.event.trigger(e, t, this); }); }, triggerHandler: function (e, t) { var n = this[0]; if (n) return S.event.trigger(e, t, n, !0); }, }), m.focusin || S.each({ focus: "focusin", blur: "focusout" }, function (e, t) { var n = function (e) { S.event.simulate(t, e.target, S.event.fix(e)); }; S.event.special[t] = { setup: function () { var r = this.ownerDocument || this.document || this, i = Q.access(r, t); i || r.addEventListener(e, n, !0), Q.access(r, t, (i || 0) + 1); }, teardown: function () { var r = this.ownerDocument || this.document || this, i = Q.access(r, t) - 1; i ? Q.access(r, t, i) : (r.removeEventListener(e, n, !0), Q.remove(r, t)); }, }; }); var xt = r.location, St = { guid: Date.now() }, kt = /\?/; S.parseXML = function (e) { var t, n; if (!e || "string" != typeof e) return null; try { t = new r.DOMParser().parseFromString(e, "text/xml"); } catch (e) {} return ( (n = t && t.getElementsByTagName("parsererror")[0]), (t && !n) || S.error( "Invalid XML: " + (n ? S.map(n.childNodes, function (e) { return e.textContent; }).join("\n") : e) ), t ); }; var Et = /\[\]$/, Ot = /\r?\n/g, Ct = /^(?:submit|button|image|reset|file)$/i, Lt = /^(?:input|select|textarea|keygen)/i; function At(e, t, n, r) { var i; if (Array.isArray(t)) S.each(t, function (t, i) { n || Et.test(e) ? r(e, i) : At( e + "[" + ("object" == typeof i && null != i ? t : "") + "]", i, n, r ); }); else if (n || "object" !== T(t)) r(e, t); else for (i in t) At(e + "[" + i + "]", t[i], n, r); } (S.param = function (e, t) { var n, r = [], i = function (e, t) { var n = y(t) ? t() : t; r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(null == n ? "" : n); }; if (null == e) return ""; if (Array.isArray(e) || (e.jquery && !S.isPlainObject(e))) S.each(e, function () { i(this.name, this.value); }); else for (n in e) At(n, e[n], t, i); return r.join("&"); }), S.fn.extend({ serialize: function () { return S.param(this.serializeArray()); }, serializeArray: function () { return this.map(function () { var e = S.prop(this, "elements"); return e ? S.makeArray(e) : this; }) .filter(function () { var e = this.type; return ( this.name && !S(this).is(":disabled") && Lt.test(this.nodeName) && !Ct.test(e) && (this.checked || !me.test(e)) ); }) .map(function (e, t) { var n = S(this).val(); return null == n ? null : Array.isArray(n) ? S.map(n, function (e) { return { name: t.name, value: e.replace(Ot, "\r\n") }; }) : { name: t.name, value: n.replace(Ot, "\r\n") }; }) .get(); }, }); var It = /%20/g, Mt = /#.*$/, Pt = /([?&])_=[^&]*/, Rt = /^(.*?):[ \t]*([^\r\n]*)$/gm, Dt = /^(?:GET|HEAD)$/, jt = /^\/\//, Nt = {}, Bt = {}, Ut = "*/".concat("*"), Ft = b.createElement("a"); function zt(e) { return function (t, n) { "string" != typeof t && ((n = t), (t = "*")); var r, i = 0, o = t.toLowerCase().match(B) || []; if (y(n)) for (; (r = o[i++]); ) "+" === r[0] ? ((r = r.slice(1) || "*"), (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n); }; } function Ht(e, t, n, r) { var i = {}, o = e === Bt; function a(s) { var u; return ( (i[s] = !0), S.each(e[s] || [], function (e, s) { var c = s(t, n, r); return "string" != typeof c || o || i[c] ? o ? !(u = c) : void 0 : (t.dataTypes.unshift(c), a(c), !1); }), u ); } return a(t.dataTypes[0]) || (!i["*"] && a("*")); } function qt(e, t) { var n, r, i = S.ajaxSettings.flatOptions || {}; for (n in t) void 0 !== t[n] && ((i[n] ? e : r || (r = {}))[n] = t[n]); return r && S.extend(!0, e, r), e; } (Ft.href = xt.href), S.extend({ active: 0, lastModified: {}, etag: {}, ajaxSettings: { url: xt.href, type: "GET", isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test( xt.protocol ), global: !0, processData: !0, async: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", accepts: { "*": Ut, text: "text/plain", html: "text/html", xml: "application/xml, text/xml", json: "application/json, text/javascript", }, contents: { xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/ }, responseFields: { xml: "responseXML", text: "responseText", json: "responseJSON", }, converters: { "* text": String, "text html": !0, "text json": JSON.parse, "text xml": S.parseXML, }, flatOptions: { url: !0, context: !0 }, }, ajaxSetup: function (e, t) { return t ? qt(qt(e, S.ajaxSettings), t) : qt(S.ajaxSettings, e); }, ajaxPrefilter: zt(Nt), ajaxTransport: zt(Bt), ajax: function (e, t) { "object" == typeof e && ((t = e), (e = void 0)), (t = t || {}); var n, i, o, a, s, u, c, l, f, d, p = S.ajaxSetup({}, t), h = p.context || p, g = p.context && (h.nodeType || h.jquery) ? S(h) : S.event, m = S.Deferred(), y = S.Callbacks("once memory"), v = p.statusCode || {}, _ = {}, w = {}, T = "canceled", x = { readyState: 0, getResponseHeader: function (e) { var t; if (c) { if (!a) for (a = {}; (t = Rt.exec(o)); ) a[t[1].toLowerCase() + " "] = ( a[t[1].toLowerCase() + " "] || [] ).concat(t[2]); t = a[e.toLowerCase() + " "]; } return null == t ? null : t.join(", "); }, getAllResponseHeaders: function () { return c ? o : null; }, setRequestHeader: function (e, t) { return ( null == c && ((e = w[e.toLowerCase()] = w[e.toLowerCase()] || e), (_[e] = t)), this ); }, overrideMimeType: function (e) { return null == c && (p.mimeType = e), this; }, statusCode: function (e) { var t; if (e) if (c) x.always(e[x.status]); else for (t in e) v[t] = [v[t], e[t]]; return this; }, abort: function (e) { var t = e || T; return n && n.abort(t), k(0, t), this; }, }; if ( (m.promise(x), (p.url = ((e || p.url || xt.href) + "").replace( jt, xt.protocol + "//" )), (p.type = t.method || t.type || p.method || p.type), (p.dataTypes = (p.dataType || "*").toLowerCase().match(B) || [ "", ]), null == p.crossDomain) ) { u = b.createElement("a"); try { (u.href = p.url), (u.href = u.href), (p.crossDomain = Ft.protocol + "//" + Ft.host != u.protocol + "//" + u.host); } catch (e) { p.crossDomain = !0; } } if ( (p.data && p.processData && "string" != typeof p.data && (p.data = S.param(p.data, p.traditional)), Ht(Nt, p, t, x), c) ) return x; for (f in ((l = S.event && p.global) && 0 == S.active++ && S.event.trigger("ajaxStart"), (p.type = p.type.toUpperCase()), (p.hasContent = !Dt.test(p.type)), (i = p.url.replace(Mt, "")), p.hasContent ? p.data && p.processData && 0 === (p.contentType || "").indexOf( "application/x-www-form-urlencoded" ) && (p.data = p.data.replace(It, "+")) : ((d = p.url.slice(i.length)), p.data && (p.processData || "string" == typeof p.data) && ((i += (kt.test(i) ? "&" : "?") + p.data), delete p.data), !1 === p.cache && ((i = i.replace(Pt, "$1")), (d = (kt.test(i) ? "&" : "?") + "_=" + St.guid++ + d)), (p.url = i + d)), p.ifModified && (S.lastModified[i] && x.setRequestHeader("If-Modified-Since", S.lastModified[i]), S.etag[i] && x.setRequestHeader("If-None-Match", S.etag[i])), ((p.data && p.hasContent && !1 !== p.contentType) || t.contentType) && x.setRequestHeader("Content-Type", p.contentType), x.setRequestHeader( "Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Ut + "; q=0.01" : "") : p.accepts["*"] ), p.headers)) x.setRequestHeader(f, p.headers[f]); if (p.beforeSend && (!1 === p.beforeSend.call(h, x, p) || c)) return x.abort(); if ( ((T = "abort"), y.add(p.complete), x.done(p.success), x.fail(p.error), (n = Ht(Bt, p, t, x))) ) { if (((x.readyState = 1), l && g.trigger("ajaxSend", [x, p]), c)) return x; p.async && p.timeout > 0 && (s = r.setTimeout(function () { x.abort("timeout"); }, p.timeout)); try { (c = !1), n.send(_, k); } catch (e) { if (c) throw e; k(-1, e); } } else k(-1, "No Transport"); function k(e, t, a, u) { var f, d, b, _, w, T = t; c || ((c = !0), s && r.clearTimeout(s), (n = void 0), (o = u || ""), (x.readyState = e > 0 ? 4 : 0), (f = (e >= 200 && e < 300) || 304 === e), a && (_ = (function (e, t, n) { for ( var r, i, o, a, s = e.contents, u = e.dataTypes; "*" === u[0]; ) u.shift(), void 0 === r && (r = e.mimeType || t.getResponseHeader("Content-Type")); if (r) for (i in s) if (s[i] && s[i].test(r)) { u.unshift(i); break; } if (u[0] in n) o = u[0]; else { for (i in n) { if (!u[0] || e.converters[i + " " + u[0]]) { o = i; break; } a || (a = i); } o = o || a; } if (o) return o !== u[0] && u.unshift(o), n[o]; })(p, x, a)), !f && S.inArray("script", p.dataTypes) > -1 && S.inArray("json", p.dataTypes) < 0 && (p.converters["text script"] = function () {}), (_ = (function (e, t, n, r) { var i, o, a, s, u, c = {}, l = e.dataTypes.slice(); if (l[1]) for (a in e.converters) c[a.toLowerCase()] = e.converters[a]; for (o = l.shift(); o; ) if ( (e.responseFields[o] && (n[e.responseFields[o]] = t), !u && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), (u = o), (o = l.shift())) ) if ("*" === o) o = u; else if ("*" !== u && u !== o) { if (!(a = c[u + " " + o] || c["* " + o])) for (i in c) if ( (s = i.split(" "))[1] === o && (a = c[u + " " + s[0]] || c["* " + s[0]]) ) { !0 === a ? (a = c[i]) : !0 !== c[i] && ((o = s[0]), l.unshift(s[1])); break; } if (!0 !== a) if (a && e.throws) t = a(t); else try { t = a(t); } catch (e) { return { state: "parsererror", error: a ? e : "No conversion from " + u + " to " + o, }; } } return { state: "success", data: t }; })(p, _, x, f)), f ? (p.ifModified && ((w = x.getResponseHeader("Last-Modified")) && (S.lastModified[i] = w), (w = x.getResponseHeader("etag")) && (S.etag[i] = w)), 204 === e || "HEAD" === p.type ? (T = "nocontent") : 304 === e ? (T = "notmodified") : ((T = _.state), (d = _.data), (f = !(b = _.error)))) : ((b = T), (!e && T) || ((T = "error"), e < 0 && (e = 0))), (x.status = e), (x.statusText = (t || T) + ""), f ? m.resolveWith(h, [d, T, x]) : m.rejectWith(h, [x, T, b]), x.statusCode(v), (v = void 0), l && g.trigger(f ? "ajaxSuccess" : "ajaxError", [ x, p, f ? d : b, ]), y.fireWith(h, [x, T]), l && (g.trigger("ajaxComplete", [x, p]), --S.active || S.event.trigger("ajaxStop"))); } return x; }, getJSON: function (e, t, n) { return S.get(e, t, n, "json"); }, getScript: function (e, t) { return S.get(e, void 0, t, "script"); }, }), S.each(["get", "post"], function (e, t) { S[t] = function (e, n, r, i) { return ( y(n) && ((i = i || r), (r = n), (n = void 0)), S.ajax( S.extend( { url: e, type: t, dataType: i, data: n, success: r }, S.isPlainObject(e) && e ) ) ); }; }), S.ajaxPrefilter(function (e) { var t; for (t in e.headers) "content-type" === t.toLowerCase() && (e.contentType = e.headers[t] || ""); }), (S._evalUrl = function (e, t, n) { return S.ajax({ url: e, type: "GET", dataType: "script", cache: !0, async: !1, global: !1, converters: { "text script": function () {} }, dataFilter: function (e) { S.globalEval(e, t, n); }, }); }), S.fn.extend({ wrapAll: function (e) { var t; return ( this[0] && (y(e) && (e = e.call(this[0])), (t = S(e, this[0].ownerDocument).eq(0).clone(!0)), this[0].parentNode && t.insertBefore(this[0]), t .map(function () { for (var e = this; e.firstElementChild; ) e = e.firstElementChild; return e; }) .append(this)), this ); }, wrapInner: function (e) { return y(e) ? this.each(function (t) { S(this).wrapInner(e.call(this, t)); }) : this.each(function () { var t = S(this), n = t.contents(); n.length ? n.wrapAll(e) : t.append(e); }); }, wrap: function (e) { var t = y(e); return this.each(function (n) { S(this).wrapAll(t ? e.call(this, n) : e); }); }, unwrap: function (e) { return ( this.parent(e) .not("body") .each(function () { S(this).replaceWith(this.childNodes); }), this ); }, }), (S.expr.pseudos.hidden = function (e) { return !S.expr.pseudos.visible(e); }), (S.expr.pseudos.visible = function (e) { return !!( e.offsetWidth || e.offsetHeight || e.getClientRects().length ); }), (S.ajaxSettings.xhr = function () { try { return new r.XMLHttpRequest(); } catch (e) {} }); var Zt = { 0: 200, 1223: 204 }, Vt = S.ajaxSettings.xhr(); (m.cors = !!Vt && "withCredentials" in Vt), (m.ajax = Vt = !!Vt), S.ajaxTransport(function (e) { var t, n; if (m.cors || (Vt && !e.crossDomain)) return { send: function (i, o) { var a, s = e.xhr(); if ( (s.open(e.type, e.url, e.async, e.username, e.password), e.xhrFields) ) for (a in e.xhrFields) s[a] = e.xhrFields[a]; for (a in (e.mimeType && s.overrideMimeType && s.overrideMimeType(e.mimeType), e.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest"), i)) s.setRequestHeader(a, i[a]); (t = function (e) { return function () { t && ((t = n = s.onload = s.onerror = s.onabort = s.ontimeout = s.onreadystatechange = null), "abort" === e ? s.abort() : "error" === e ? "number" != typeof s.status ? o(0, "error") : o(s.status, s.statusText) : o( Zt[s.status] || s.status, s.statusText, "text" !== (s.responseType || "text") || "string" != typeof s.responseText ? { binary: s.response } : { text: s.responseText }, s.getAllResponseHeaders() )); }; }), (s.onload = t()), (n = s.onerror = s.ontimeout = t("error")), void 0 !== s.onabort ? (s.onabort = n) : (s.onreadystatechange = function () { 4 === s.readyState && r.setTimeout(function () { t && n(); }); }), (t = t("abort")); try { s.send((e.hasContent && e.data) || null); } catch (e) { if (t) throw e; } }, abort: function () { t && t(); }, }; }), S.ajaxPrefilter(function (e) { e.crossDomain && (e.contents.script = !1); }), S.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript", }, contents: { script: /\b(?:java|ecma)script\b/ }, converters: { "text script": function (e) { return S.globalEval(e), e; }, }, }), S.ajaxPrefilter("script", function (e) { void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET"); }), S.ajaxTransport("script", function (e) { var t, n; if (e.crossDomain || e.scriptAttrs) return { send: function (r, i) { (t = S(""), (e = e.removeChild(e.firstChild))) : "string" == typeof r.is ? (e = u.createElement(n, { is: r.is })) : ((e = u.createElement(n)), "select" === n && ((u = e), r.multiple ? (u.multiple = !0) : r.size && (u.size = r.size))) : (e = u.createElementNS(e, n)), (e[di] = t), (e[pi] = r), Ms(e, t), (t.stateNode = e); e: { switch (((u = be(n, r)), n)) { case "dialog": Ur("cancel", e), Ur("close", e), (i = r); break; case "iframe": case "object": case "embed": Ur("load", e), (i = r); break; case "video": case "audio": for (i = 0; i < Dr.length; i++) Ur(Dr[i], e); i = r; break; case "source": Ur("error", e), (i = r); break; case "img": case "image": case "link": Ur("error", e), Ur("load", e), (i = r); break; case "details": Ur("toggle", e), (i = r); break; case "input": K(e, r), (i = Y(e, r)), Ur("invalid", e); break; case "option": default: i = r; break; case "select": (e._wrapperState = { wasMultiple: !!r.multiple }), (i = N({}, r, { value: void 0 })), Ur("invalid", e); break; case "textarea": ie(e, r), (i = re(e, r)), Ur("invalid", e); } for (a in (ve(n, i), (c = i))) if (c.hasOwnProperty(a)) { var l = c[a]; "style" === a ? me(e, l) : "dangerouslySetInnerHTML" === a ? null != (l = l ? l.__html : void 0) && fe(e, l) : "children" === a ? "string" == typeof l ? ("textarea" !== n || "" !== l) && de(e, l) : "number" == typeof l && de(e, "" + l) : "suppressContentEditableWarning" !== a && "suppressHydrationWarning" !== a && "autoFocus" !== a && (s.hasOwnProperty(a) ? null != l && "onScroll" === a && Ur("scroll", e) : null != l && b(e, a, l, u)); } switch (n) { case "input": W(e), J(e, r, !1); break; case "textarea": W(e), ae(e); break; case "option": null != r.value && e.setAttribute("value", "" + Z(r.value)); break; case "select": (e.multiple = !!r.multiple), null != (a = r.value) ? ne(e, !!r.multiple, a, !1) : null != r.defaultValue && ne(e, !!r.multiple, r.defaultValue, !0); break; default: "function" == typeof i.onClick && (e.onclick = Jr); } switch (n) { case "button": case "input": case "select": case "textarea": r = !!r.autoFocus; break e; case "img": r = !0; break e; default: r = !1; } } r && (t.flags |= 4); } null !== t.ref && ((t.flags |= 512), (t.flags |= 2097152)); } return Ws(t), null; case 6: if (e && null != t.stateNode) Rs(0, t, e.memoizedProps, r); else { if ("string" != typeof r && null === t.stateNode) throw Error(o(166)); if (((n = ra(na.current)), ra(ea.current), fo(t))) { if ( ((r = t.stateNode), (n = t.memoizedProps), (r[di] = t), (a = r.nodeValue !== n) && null !== (e = no)) ) switch (e.tag) { case 3: Qr(r.nodeValue, n, 0 != (1 & e.mode)); break; case 5: !0 !== e.memoizedProps.suppressHydrationWarning && Qr(r.nodeValue, n, 0 != (1 & e.mode)); } a && (t.flags |= 4); } else ((r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode( r ))[di] = t), (t.stateNode = r); } return Ws(t), null; case 13: if ( (ki(ua), (r = t.memoizedState), null === e || (null !== e.memoizedState && null !== e.memoizedState.dehydrated)) ) { if ( io && null !== ro && 0 != (1 & t.mode) && 0 == (128 & t.flags) ) po(), ho(), (t.flags |= 98560), (a = !1); else if (((a = fo(t)), null !== r && null !== r.dehydrated)) { if (null === e) { if (!a) throw Error(o(318)); if ( !(a = null !== (a = t.memoizedState) ? a.dehydrated : null) ) throw Error(o(317)); a[di] = t; } else ho(), 0 == (128 & t.flags) && (t.memoizedState = null), (t.flags |= 4); Ws(t), (a = !1); } else null !== oo && (ac(oo), (oo = null)), (a = !0); if (!a) return 65536 & t.flags ? t : null; } return 0 != (128 & t.flags) ? ((t.lanes = n), t) : ((r = null !== r) !== (null !== e && null !== e.memoizedState) && r && ((t.child.flags |= 8192), 0 != (1 & t.mode) && (null === e || 0 != (1 & ua.current) ? 0 === Ru && (Ru = 3) : gc())), null !== t.updateQueue && (t.flags |= 4), Ws(t), null); case 4: return ( oa(), null === e && Hr(t.stateNode.containerInfo), Ws(t), null ); case 10: return xo(t.type._context), Ws(t), null; case 19: if ((ki(ua), null === (a = t.memoizedState))) return Ws(t), null; if (((r = 0 != (128 & t.flags)), null === (u = a.rendering))) if (r) Vs(a, !1); else { if (0 !== Ru || (null !== e && 0 != (128 & e.flags))) for (e = t.child; null !== e; ) { if (null !== (u = ca(e))) { for ( t.flags |= 128, Vs(a, !1), null !== (r = u.updateQueue) && ((t.updateQueue = r), (t.flags |= 4)), t.subtreeFlags = 0, r = n, n = t.child; null !== n; ) (e = r), ((a = n).flags &= 14680066), null === (u = a.alternate) ? ((a.childLanes = 0), (a.lanes = e), (a.child = null), (a.subtreeFlags = 0), (a.memoizedProps = null), (a.memoizedState = null), (a.updateQueue = null), (a.dependencies = null), (a.stateNode = null)) : ((a.childLanes = u.childLanes), (a.lanes = u.lanes), (a.child = u.child), (a.subtreeFlags = 0), (a.deletions = null), (a.memoizedProps = u.memoizedProps), (a.memoizedState = u.memoizedState), (a.updateQueue = u.updateQueue), (a.type = u.type), (e = u.dependencies), (a.dependencies = null === e ? null : { lanes: e.lanes, firstContext: e.firstContext, })), (n = n.sibling); return Ei(ua, (1 & ua.current) | 2), t.child; } e = e.sibling; } null !== a.tail && Xe() > Hu && ((t.flags |= 128), (r = !0), Vs(a, !1), (t.lanes = 4194304)); } else { if (!r) if (null !== (e = ca(u))) { if ( ((t.flags |= 128), (r = !0), null !== (n = e.updateQueue) && ((t.updateQueue = n), (t.flags |= 4)), Vs(a, !0), null === a.tail && "hidden" === a.tailMode && !u.alternate && !io) ) return Ws(t), null; } else 2 * Xe() - a.renderingStartTime > Hu && 1073741824 !== n && ((t.flags |= 128), (r = !0), Vs(a, !1), (t.lanes = 4194304)); a.isBackwards ? ((u.sibling = t.child), (t.child = u)) : (null !== (n = a.last) ? (n.sibling = u) : (t.child = u), (a.last = u)); } return null !== a.tail ? ((t = a.tail), (a.rendering = t), (a.tail = t.sibling), (a.renderingStartTime = Xe()), (t.sibling = null), (n = ua.current), Ei(ua, r ? (1 & n) | 2 : 1 & n), t) : (Ws(t), null); case 22: case 23: return ( fc(), (r = null !== t.memoizedState), null !== e && (null !== e.memoizedState) !== r && (t.flags |= 8192), r && 0 != (1 & t.mode) ? 0 != (1073741824 & Mu) && (Ws(t), 6 & t.subtreeFlags && (t.flags |= 8192)) : Ws(t), null ); case 24: case 25: return null; } throw Error(o(156, t.tag)); } function Gs(e, t) { switch ((to(t), t.tag)) { case 1: return ( Mi(t.type) && Pi(), 65536 & (e = t.flags) ? ((t.flags = (-65537 & e) | 128), t) : null ); case 3: return ( oa(), ki(Li), ki(Ci), fa(), 0 != (65536 & (e = t.flags)) && 0 == (128 & e) ? ((t.flags = (-65537 & e) | 128), t) : null ); case 5: return sa(t), null; case 13: if ( (ki(ua), null !== (e = t.memoizedState) && null !== e.dehydrated) ) { if (null === t.alternate) throw Error(o(340)); ho(); } return 65536 & (e = t.flags) ? ((t.flags = (-65537 & e) | 128), t) : null; case 19: return ki(ua), null; case 4: return oa(), null; case 10: return xo(t.type._context), null; case 22: case 23: return fc(), null; default: return null; } } (Ms = function (e, t) { for (var n = t.child; null !== n; ) { if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode); else if (4 !== n.tag && null !== n.child) { (n.child.return = n), (n = n.child); continue; } if (n === t) break; for (; null === n.sibling; ) { if (null === n.return || n.return === t) return; n = n.return; } (n.sibling.return = n.return), (n = n.sibling); } }), (Ps = function (e, t, n, r) { var i = e.memoizedProps; if (i !== r) { (e = t.stateNode), ra(ea.current); var o, a = null; switch (n) { case "input": (i = Y(e, i)), (r = Y(e, r)), (a = []); break; case "select": (i = N({}, i, { value: void 0 })), (r = N({}, r, { value: void 0 })), (a = []); break; case "textarea": (i = re(e, i)), (r = re(e, r)), (a = []); break; default: "function" != typeof i.onClick && "function" == typeof r.onClick && (e.onclick = Jr); } for (l in (ve(n, r), (n = null), i)) if (!r.hasOwnProperty(l) && i.hasOwnProperty(l) && null != i[l]) if ("style" === l) { var u = i[l]; for (o in u) u.hasOwnProperty(o) && (n || (n = {}), (n[o] = "")); } else "dangerouslySetInnerHTML" !== l && "children" !== l && "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && "autoFocus" !== l && (s.hasOwnProperty(l) ? a || (a = []) : (a = a || []).push(l, null)); for (l in r) { var c = r[l]; if ( ((u = null != i ? i[l] : void 0), r.hasOwnProperty(l) && c !== u && (null != c || null != u)) ) if ("style" === l) if (u) { for (o in u) !u.hasOwnProperty(o) || (c && c.hasOwnProperty(o)) || (n || (n = {}), (n[o] = "")); for (o in c) c.hasOwnProperty(o) && u[o] !== c[o] && (n || (n = {}), (n[o] = c[o])); } else n || (a || (a = []), a.push(l, n)), (n = c); else "dangerouslySetInnerHTML" === l ? ((c = c ? c.__html : void 0), (u = u ? u.__html : void 0), null != c && u !== c && (a = a || []).push(l, c)) : "children" === l ? ("string" != typeof c && "number" != typeof c) || (a = a || []).push(l, "" + c) : "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && (s.hasOwnProperty(l) ? (null != c && "onScroll" === l && Ur("scroll", e), a || u === c || (a = [])) : (a = a || []).push(l, c)); } n && (a = a || []).push("style", n); var l = a; (t.updateQueue = l) && (t.flags |= 4); } }), (Rs = function (e, t, n, r) { n !== r && (t.flags |= 4); }); var Ys = !1, Ks = !1, Xs = "function" == typeof WeakSet ? WeakSet : Set, Qs = null; function Js(e, t) { var n = e.ref; if (null !== n) if ("function" == typeof n) try { n(null); } catch (n) { Sc(e, t, n); } else n.current = null; } function eu(e, t, n) { try { n(); } catch (n) { Sc(e, t, n); } } var tu = !1; function nu(e, t, n) { var r = t.updateQueue; if (null !== (r = null !== r ? r.lastEffect : null)) { var i = (r = r.next); do { if ((i.tag & e) === e) { var o = i.destroy; (i.destroy = void 0), void 0 !== o && eu(t, n, o); } i = i.next; } while (i !== r); } } function ru(e, t) { if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { var n = (t = t.next); do { if ((n.tag & e) === e) { var r = n.create; n.destroy = r(); } n = n.next; } while (n !== t); } } function iu(e) { var t = e.ref; if (null !== t) { var n = e.stateNode; e.tag, (e = n), "function" == typeof t ? t(e) : (t.current = e); } } function ou(e) { var t = e.alternate; null !== t && ((e.alternate = null), ou(t)), (e.child = null), (e.deletions = null), (e.sibling = null), 5 === e.tag && null !== (t = e.stateNode) && (delete t[di], delete t[pi], delete t[gi], delete t[mi], delete t[yi]), (e.stateNode = null), (e.return = null), (e.dependencies = null), (e.memoizedProps = null), (e.memoizedState = null), (e.pendingProps = null), (e.stateNode = null), (e.updateQueue = null); } function au(e) { return 5 === e.tag || 3 === e.tag || 4 === e.tag; } function su(e) { e: for (;;) { for (; null === e.sibling; ) { if (null === e.return || au(e.return)) return null; e = e.return; } for ( e.sibling.return = e.return, e = e.sibling; 5 !== e.tag && 6 !== e.tag && 18 !== e.tag; ) { if (2 & e.flags) continue e; if (null === e.child || 4 === e.tag) continue e; (e.child.return = e), (e = e.child); } if (!(2 & e.flags)) return e.stateNode; } } function uu(e, t, n) { var r = e.tag; if (5 === r || 6 === r) (e = e.stateNode), t ? 8 === n.nodeType ? n.parentNode.insertBefore(e, t) : n.insertBefore(e, t) : (8 === n.nodeType ? (t = n.parentNode).insertBefore(e, n) : (t = n).appendChild(e), null != (n = n._reactRootContainer) || null !== t.onclick || (t.onclick = Jr)); else if (4 !== r && null !== (e = e.child)) for (uu(e, t, n), e = e.sibling; null !== e; ) uu(e, t, n), (e = e.sibling); } function cu(e, t, n) { var r = e.tag; if (5 === r || 6 === r) (e = e.stateNode), t ? n.insertBefore(e, t) : n.appendChild(e); else if (4 !== r && null !== (e = e.child)) for (cu(e, t, n), e = e.sibling; null !== e; ) cu(e, t, n), (e = e.sibling); } var lu = null, fu = !1; function du(e, t, n) { for (n = n.child; null !== n; ) pu(e, t, n), (n = n.sibling); } function pu(e, t, n) { if (ot && "function" == typeof ot.onCommitFiberUnmount) try { ot.onCommitFiberUnmount(it, n); } catch (e) {} switch (n.tag) { case 5: Ks || Js(n, t); case 6: var r = lu, i = fu; (lu = null), du(e, t, n), (fu = i), null !== (lu = r) && (fu ? ((e = lu), (n = n.stateNode), 8 === e.nodeType ? e.parentNode.removeChild(n) : e.removeChild(n)) : lu.removeChild(n.stateNode)); break; case 18: null !== lu && (fu ? ((e = lu), (n = n.stateNode), 8 === e.nodeType ? ui(e.parentNode, n) : 1 === e.nodeType && ui(e, n), Ht(e)) : ui(lu, n.stateNode)); break; case 4: (r = lu), (i = fu), (lu = n.stateNode.containerInfo), (fu = !0), du(e, t, n), (lu = r), (fu = i); break; case 0: case 11: case 14: case 15: if ( !Ks && null !== (r = n.updateQueue) && null !== (r = r.lastEffect) ) { i = r = r.next; do { var o = i, a = o.destroy; (o = o.tag), void 0 !== a && (0 != (2 & o) || 0 != (4 & o)) && eu(n, t, a), (i = i.next); } while (i !== r); } du(e, t, n); break; case 1: if ( !Ks && (Js(n, t), "function" == typeof (r = n.stateNode).componentWillUnmount) ) try { (r.props = n.memoizedProps), (r.state = n.memoizedState), r.componentWillUnmount(); } catch (e) { Sc(n, t, e); } du(e, t, n); break; case 21: du(e, t, n); break; case 22: 1 & n.mode ? ((Ks = (r = Ks) || null !== n.memoizedState), du(e, t, n), (Ks = r)) : du(e, t, n); break; default: du(e, t, n); } } function hu(e) { var t = e.updateQueue; if (null !== t) { e.updateQueue = null; var n = e.stateNode; null === n && (n = e.stateNode = new Xs()), t.forEach(function (t) { var r = Cc.bind(null, e, t); n.has(t) || (n.add(t), t.then(r, r)); }); } } function gu(e, t) { var n = t.deletions; if (null !== n) for (var r = 0; r < n.length; r++) { var i = n[r]; try { var a = e, s = t, u = s; e: for (; null !== u; ) { switch (u.tag) { case 5: (lu = u.stateNode), (fu = !1); break e; case 3: case 4: (lu = u.stateNode.containerInfo), (fu = !0); break e; } u = u.return; } if (null === lu) throw Error(o(160)); pu(a, s, i), (lu = null), (fu = !1); var c = i.alternate; null !== c && (c.return = null), (i.return = null); } catch (e) { Sc(i, t, e); } } if (12854 & t.subtreeFlags) for (t = t.child; null !== t; ) mu(t, e), (t = t.sibling); } function mu(e, t) { var n = e.alternate, r = e.flags; switch (e.tag) { case 0: case 11: case 14: case 15: if ((gu(t, e), yu(e), 4 & r)) { try { nu(3, e, e.return), ru(3, e); } catch (t) { Sc(e, e.return, t); } try { nu(5, e, e.return); } catch (t) { Sc(e, e.return, t); } } break; case 1: gu(t, e), yu(e), 512 & r && null !== n && Js(n, n.return); break; case 5: if ( (gu(t, e), yu(e), 512 & r && null !== n && Js(n, n.return), 32 & e.flags) ) { var i = e.stateNode; try { de(i, ""); } catch (t) { Sc(e, e.return, t); } } if (4 & r && null != (i = e.stateNode)) { var a = e.memoizedProps, s = null !== n ? n.memoizedProps : a, u = e.type, c = e.updateQueue; if (((e.updateQueue = null), null !== c)) try { "input" === u && "radio" === a.type && null != a.name && X(i, a), be(u, s); var l = be(u, a); for (s = 0; s < c.length; s += 2) { var f = c[s], d = c[s + 1]; "style" === f ? me(i, d) : "dangerouslySetInnerHTML" === f ? fe(i, d) : "children" === f ? de(i, d) : b(i, f, d, l); } switch (u) { case "input": Q(i, a); break; case "textarea": oe(i, a); break; case "select": var p = i._wrapperState.wasMultiple; i._wrapperState.wasMultiple = !!a.multiple; var h = a.value; null != h ? ne(i, !!a.multiple, h, !1) : p !== !!a.multiple && (null != a.defaultValue ? ne(i, !!a.multiple, a.defaultValue, !0) : ne(i, !!a.multiple, a.multiple ? [] : "", !1)); } i[pi] = a; } catch (t) { Sc(e, e.return, t); } } break; case 6: if ((gu(t, e), yu(e), 4 & r)) { if (null === e.stateNode) throw Error(o(162)); (i = e.stateNode), (a = e.memoizedProps); try { i.nodeValue = a; } catch (t) { Sc(e, e.return, t); } } break; case 3: if ( (gu(t, e), yu(e), 4 & r && null !== n && n.memoizedState.isDehydrated) ) try { Ht(t.containerInfo); } catch (t) { Sc(e, e.return, t); } break; case 4: default: gu(t, e), yu(e); break; case 13: gu(t, e), yu(e), 8192 & (i = e.child).flags && ((a = null !== i.memoizedState), (i.stateNode.isHidden = a), !a || (null !== i.alternate && null !== i.alternate.memoizedState) || (zu = Xe())), 4 & r && hu(e); break; case 22: if ( ((f = null !== n && null !== n.memoizedState), 1 & e.mode ? ((Ks = (l = Ks) || f), gu(t, e), (Ks = l)) : gu(t, e), yu(e), 8192 & r) ) { if ( ((l = null !== e.memoizedState), (e.stateNode.isHidden = l) && !f && 0 != (1 & e.mode)) ) for (Qs = e, f = e.child; null !== f; ) { for (d = Qs = f; null !== Qs; ) { switch (((h = (p = Qs).child), p.tag)) { case 0: case 11: case 14: case 15: nu(4, p, p.return); break; case 1: Js(p, p.return); var g = p.stateNode; if ("function" == typeof g.componentWillUnmount) { (r = p), (n = p.return); try { (t = r), (g.props = t.memoizedProps), (g.state = t.memoizedState), g.componentWillUnmount(); } catch (e) { Sc(r, n, e); } } break; case 5: Js(p, p.return); break; case 22: if (null !== p.memoizedState) { wu(d); continue; } } null !== h ? ((h.return = p), (Qs = h)) : wu(d); } f = f.sibling; } e: for (f = null, d = e; ; ) { if (5 === d.tag) { if (null === f) { f = d; try { (i = d.stateNode), l ? "function" == typeof (a = i.style).setProperty ? a.setProperty("display", "none", "important") : (a.display = "none") : ((u = d.stateNode), (s = null != (c = d.memoizedProps.style) && c.hasOwnProperty("display") ? c.display : null), (u.style.display = ge("display", s))); } catch (t) { Sc(e, e.return, t); } } } else if (6 === d.tag) { if (null === f) try { d.stateNode.nodeValue = l ? "" : d.memoizedProps; } catch (t) { Sc(e, e.return, t); } } else if ( ((22 !== d.tag && 23 !== d.tag) || null === d.memoizedState || d === e) && null !== d.child ) { (d.child.return = d), (d = d.child); continue; } if (d === e) break e; for (; null === d.sibling; ) { if (null === d.return || d.return === e) break e; f === d && (f = null), (d = d.return); } f === d && (f = null), (d.sibling.return = d.return), (d = d.sibling); } } break; case 19: gu(t, e), yu(e), 4 & r && hu(e); case 21: } } function yu(e) { var t = e.flags; if (2 & t) { try { e: { for (var n = e.return; null !== n; ) { if (au(n)) { var r = n; break e; } n = n.return; } throw Error(o(160)); } switch (r.tag) { case 5: var i = r.stateNode; 32 & r.flags && (de(i, ""), (r.flags &= -33)), cu(e, su(e), i); break; case 3: case 4: var a = r.stateNode.containerInfo; uu(e, su(e), a); break; default: throw Error(o(161)); } } catch (t) { Sc(e, e.return, t); } e.flags &= -3; } 4096 & t && (e.flags &= -4097); } function vu(e, t, n) { (Qs = e), bu(e, t, n); } function bu(e, t, n) { for (var r = 0 != (1 & e.mode); null !== Qs; ) { var i = Qs, o = i.child; if (22 === i.tag && r) { var a = null !== i.memoizedState || Ys; if (!a) { var s = i.alternate, u = (null !== s && null !== s.memoizedState) || Ks; s = Ys; var c = Ks; if (((Ys = a), (Ks = u) && !c)) for (Qs = i; null !== Qs; ) (u = (a = Qs).child), 22 === a.tag && null !== a.memoizedState ? Tu(i) : null !== u ? ((u.return = a), (Qs = u)) : Tu(i); for (; null !== o; ) (Qs = o), bu(o, t, n), (o = o.sibling); (Qs = i), (Ys = s), (Ks = c); } _u(e); } else 0 != (8772 & i.subtreeFlags) && null !== o ? ((o.return = i), (Qs = o)) : _u(e); } } function _u(e) { for (; null !== Qs; ) { var t = Qs; if (0 != (8772 & t.flags)) { var n = t.alternate; try { if (0 != (8772 & t.flags)) switch (t.tag) { case 0: case 11: case 15: Ks || ru(5, t); break; case 1: var r = t.stateNode; if (4 & t.flags && !Ks) if (null === n) r.componentDidMount(); else { var i = t.elementType === t.type ? n.memoizedProps : yo(t.type, n.memoizedProps); r.componentDidUpdate( i, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate ); } var a = t.updateQueue; null !== a && Uo(t, a, r); break; case 3: var s = t.updateQueue; if (null !== s) { if (((n = null), null !== t.child)) switch (t.child.tag) { case 5: case 1: n = t.child.stateNode; } Uo(t, s, n); } break; case 5: var u = t.stateNode; if (null === n && 4 & t.flags) { n = u; var c = t.memoizedProps; switch (t.type) { case "button": case "input": case "select": case "textarea": c.autoFocus && n.focus(); break; case "img": c.src && (n.src = c.src); } } break; case 6: case 4: case 12: case 19: case 17: case 21: case 22: case 23: case 25: break; case 13: if (null === t.memoizedState) { var l = t.alternate; if (null !== l) { var f = l.memoizedState; if (null !== f) { var d = f.dehydrated; null !== d && Ht(d); } } } break; default: throw Error(o(163)); } Ks || (512 & t.flags && iu(t)); } catch (e) { Sc(t, t.return, e); } } if (t === e) { Qs = null; break; } if (null !== (n = t.sibling)) { (n.return = t.return), (Qs = n); break; } Qs = t.return; } } function wu(e) { for (; null !== Qs; ) { var t = Qs; if (t === e) { Qs = null; break; } var n = t.sibling; if (null !== n) { (n.return = t.return), (Qs = n); break; } Qs = t.return; } } function Tu(e) { for (; null !== Qs; ) { var t = Qs; try { switch (t.tag) { case 0: case 11: case 15: var n = t.return; try { ru(4, t); } catch (e) { Sc(t, n, e); } break; case 1: var r = t.stateNode; if ("function" == typeof r.componentDidMount) { var i = t.return; try { r.componentDidMount(); } catch (e) { Sc(t, i, e); } } var o = t.return; try { iu(t); } catch (e) { Sc(t, o, e); } break; case 5: var a = t.return; try { iu(t); } catch (e) { Sc(t, a, e); } } } catch (e) { Sc(t, t.return, e); } if (t === e) { Qs = null; break; } var s = t.sibling; if (null !== s) { (s.return = t.return), (Qs = s); break; } Qs = t.return; } } var xu, Su = Math.ceil, ku = _.ReactCurrentDispatcher, Eu = _.ReactCurrentOwner, Ou = _.ReactCurrentBatchConfig, Cu = 0, Lu = null, Au = null, Iu = 0, Mu = 0, Pu = Si(0), Ru = 0, Du = null, ju = 0, Nu = 0, Bu = 0, Uu = null, Fu = null, zu = 0, Hu = 1 / 0, qu = null, Zu = !1, Vu = null, Wu = null, $u = !1, Gu = null, Yu = 0, Ku = 0, Xu = null, Qu = -1, Ju = 0; function ec() { return 0 != (6 & Cu) ? Xe() : -1 !== Qu ? Qu : (Qu = Xe()); } function tc(e) { return 0 == (1 & e.mode) ? 1 : 0 != (2 & Cu) && 0 !== Iu ? Iu & -Iu : null !== mo.transition ? (0 === Ju && (Ju = gt()), Ju) : 0 !== (e = bt) ? e : (e = void 0 === (e = window.event) ? 16 : Kt(e.type)); } function nc(e, t, n, r) { if (50 < Ku) throw ((Ku = 0), (Xu = null), Error(o(185))); yt(e, n, r), (0 != (2 & Cu) && e === Lu) || (e === Lu && (0 == (2 & Cu) && (Nu |= n), 4 === Ru && sc(e, Iu)), rc(e, r), 1 === n && 0 === Cu && 0 == (1 & t.mode) && ((Hu = Xe() + 500), Ui && Hi())); } function rc(e, t) { var n = e.callbackNode; !(function (e, t) { for ( var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, o = e.pendingLanes; 0 < o; ) { var a = 31 - at(o), s = 1 << a, u = i[a]; -1 === u ? (0 != (s & n) && 0 == (s & r)) || (i[a] = pt(s, t)) : u <= t && (e.expiredLanes |= s), (o &= ~s); } })(e, t); var r = dt(e, e === Lu ? Iu : 0); if (0 === r) null !== n && Ge(n), (e.callbackNode = null), (e.callbackPriority = 0); else if (((t = r & -r), e.callbackPriority !== t)) { if ((null != n && Ge(n), 1 === t)) 0 === e.tag ? (function (e) { (Ui = !0), zi(e); })(uc.bind(null, e)) : zi(uc.bind(null, e)), ai(function () { 0 == (6 & Cu) && Hi(); }), (n = null); else { switch (_t(r)) { case 1: n = Je; break; case 4: n = et; break; case 16: default: n = tt; break; case 536870912: n = rt; } n = Lc(n, ic.bind(null, e)); } (e.callbackPriority = t), (e.callbackNode = n); } } function ic(e, t) { if (((Qu = -1), (Ju = 0), 0 != (6 & Cu))) throw Error(o(327)); var n = e.callbackNode; if (Tc() && e.callbackNode !== n) return null; var r = dt(e, e === Lu ? Iu : 0); if (0 === r) return null; if (0 != (30 & r) || 0 != (r & e.expiredLanes) || t) t = mc(e, r); else { t = r; var i = Cu; Cu |= 2; var a = hc(); for ( (Lu === e && Iu === t) || ((qu = null), (Hu = Xe() + 500), dc(e, t)); ; ) try { vc(); break; } catch (t) { pc(e, t); } To(), (ku.current = a), (Cu = i), null !== Au ? (t = 0) : ((Lu = null), (Iu = 0), (t = Ru)); } if (0 !== t) { if ( (2 === t && 0 !== (i = ht(e)) && ((r = i), (t = oc(e, i))), 1 === t) ) throw ((n = Du), dc(e, 0), sc(e, r), rc(e, Xe()), n); if (6 === t) sc(e, r); else { if ( ((i = e.current.alternate), 0 == (30 & r) && !(function (e) { for (var t = e; ; ) { if (16384 & t.flags) { var n = t.updateQueue; if (null !== n && null !== (n = n.stores)) for (var r = 0; r < n.length; r++) { var i = n[r], o = i.getSnapshot; i = i.value; try { if (!sr(o(), i)) return !1; } catch (e) { return !1; } } } if (((n = t.child), 16384 & t.subtreeFlags && null !== n)) (n.return = t), (t = n); else { if (t === e) break; for (; null === t.sibling; ) { if (null === t.return || t.return === e) return !0; t = t.return; } (t.sibling.return = t.return), (t = t.sibling); } } return !0; })(i) && (2 === (t = mc(e, r)) && 0 !== (a = ht(e)) && ((r = a), (t = oc(e, a))), 1 === t)) ) throw ((n = Du), dc(e, 0), sc(e, r), rc(e, Xe()), n); switch (((e.finishedWork = i), (e.finishedLanes = r), t)) { case 0: case 1: throw Error(o(345)); case 2: case 5: wc(e, Fu, qu); break; case 3: if ( (sc(e, r), (130023424 & r) === r && 10 < (t = zu + 500 - Xe())) ) { if (0 !== dt(e, 0)) break; if (((i = e.suspendedLanes) & r) !== r) { ec(), (e.pingedLanes |= e.suspendedLanes & i); break; } e.timeoutHandle = ri(wc.bind(null, e, Fu, qu), t); break; } wc(e, Fu, qu); break; case 4: if ((sc(e, r), (4194240 & r) === r)) break; for (t = e.eventTimes, i = -1; 0 < r; ) { var s = 31 - at(r); (a = 1 << s), (s = t[s]) > i && (i = s), (r &= ~a); } if ( ((r = i), 10 < (r = (120 > (r = Xe() - r) ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * Su(r / 1960)) - r)) ) { e.timeoutHandle = ri(wc.bind(null, e, Fu, qu), r); break; } wc(e, Fu, qu); break; default: throw Error(o(329)); } } } return rc(e, Xe()), e.callbackNode === n ? ic.bind(null, e) : null; } function oc(e, t) { var n = Uu; return ( e.current.memoizedState.isDehydrated && (dc(e, t).flags |= 256), 2 !== (e = mc(e, t)) && ((t = Fu), (Fu = n), null !== t && ac(t)), e ); } function ac(e) { null === Fu ? (Fu = e) : Fu.push.apply(Fu, e); } function sc(e, t) { for ( t &= ~Bu, t &= ~Nu, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; 0 < t; ) { var n = 31 - at(t), r = 1 << n; (e[n] = -1), (t &= ~r); } } function uc(e) { if (0 != (6 & Cu)) throw Error(o(327)); Tc(); var t = dt(e, 0); if (0 == (1 & t)) return rc(e, Xe()), null; var n = mc(e, t); if (0 !== e.tag && 2 === n) { var r = ht(e); 0 !== r && ((t = r), (n = oc(e, r))); } if (1 === n) throw ((n = Du), dc(e, 0), sc(e, t), rc(e, Xe()), n); if (6 === n) throw Error(o(345)); return ( (e.finishedWork = e.current.alternate), (e.finishedLanes = t), wc(e, Fu, qu), rc(e, Xe()), null ); } function cc(e, t) { var n = Cu; Cu |= 1; try { return e(t); } finally { 0 === (Cu = n) && ((Hu = Xe() + 500), Ui && Hi()); } } function lc(e) { null !== Gu && 0 === Gu.tag && 0 == (6 & Cu) && Tc(); var t = Cu; Cu |= 1; var n = Ou.transition, r = bt; try { if (((Ou.transition = null), (bt = 1), e)) return e(); } finally { (bt = r), (Ou.transition = n), 0 == (6 & (Cu = t)) && Hi(); } } function fc() { (Mu = Pu.current), ki(Pu); } function dc(e, t) { (e.finishedWork = null), (e.finishedLanes = 0); var n = e.timeoutHandle; if ((-1 !== n && ((e.timeoutHandle = -1), ii(n)), null !== Au)) for (n = Au.return; null !== n; ) { var r = n; switch ((to(r), r.tag)) { case 1: null != (r = r.type.childContextTypes) && Pi(); break; case 3: oa(), ki(Li), ki(Ci), fa(); break; case 5: sa(r); break; case 4: oa(); break; case 13: case 19: ki(ua); break; case 10: xo(r.type._context); break; case 22: case 23: fc(); } n = n.return; } if ( ((Lu = e), (Au = e = Pc(e.current, null)), (Iu = Mu = t), (Ru = 0), (Du = null), (Bu = Nu = ju = 0), (Fu = Uu = null), null !== Oo) ) { for (t = 0; t < Oo.length; t++) if (null !== (r = (n = Oo[t]).interleaved)) { n.interleaved = null; var i = r.next, o = n.pending; if (null !== o) { var a = o.next; (o.next = i), (r.next = a); } n.pending = r; } Oo = null; } return e; } function pc(e, t) { for (;;) { var n = Au; try { if ((To(), (da.current = as), va)) { for (var r = ga.memoizedState; null !== r; ) { var i = r.queue; null !== i && (i.pending = null), (r = r.next); } va = !1; } if ( ((ha = 0), (ya = ma = ga = null), (ba = !1), (_a = 0), (Eu.current = null), null === n || null === n.return) ) { (Ru = 1), (Du = t), (Au = null); break; } e: { var a = e, s = n.return, u = n, c = t; if ( ((t = Iu), (u.flags |= 32768), null !== c && "object" == typeof c && "function" == typeof c.then) ) { var l = c, f = u, d = f.tag; if (0 == (1 & f.mode) && (0 === d || 11 === d || 15 === d)) { var p = f.alternate; p ? ((f.updateQueue = p.updateQueue), (f.memoizedState = p.memoizedState), (f.lanes = p.lanes)) : ((f.updateQueue = null), (f.memoizedState = null)); } var h = ys(s); if (null !== h) { (h.flags &= -257), vs(h, s, u, 0, t), 1 & h.mode && ms(a, l, t), (c = l); var g = (t = h).updateQueue; if (null === g) { var m = new Set(); m.add(c), (t.updateQueue = m); } else g.add(c); break e; } if (0 == (1 & t)) { ms(a, l, t), gc(); break e; } c = Error(o(426)); } else if (io && 1 & u.mode) { var y = ys(s); if (null !== y) { 0 == (65536 & y.flags) && (y.flags |= 256), vs(y, s, u, 0, t), go(ls(c, u)); break e; } } (a = c = ls(c, u)), 4 !== Ru && (Ru = 2), null === Uu ? (Uu = [a]) : Uu.push(a), (a = s); do { switch (a.tag) { case 3: (a.flags |= 65536), (t &= -t), (a.lanes |= t), No(a, hs(0, c, t)); break e; case 1: u = c; var v = a.type, b = a.stateNode; if ( 0 == (128 & a.flags) && ("function" == typeof v.getDerivedStateFromError || (null !== b && "function" == typeof b.componentDidCatch && (null === Wu || !Wu.has(b)))) ) { (a.flags |= 65536), (t &= -t), (a.lanes |= t), No(a, gs(a, u, t)); break e; } } a = a.return; } while (null !== a); } _c(n); } catch (e) { (t = e), Au === n && null !== n && (Au = n = n.return); continue; } break; } } function hc() { var e = ku.current; return (ku.current = as), null === e ? as : e; } function gc() { (0 !== Ru && 3 !== Ru && 2 !== Ru) || (Ru = 4), null === Lu || (0 == (268435455 & ju) && 0 == (268435455 & Nu)) || sc(Lu, Iu); } function mc(e, t) { var n = Cu; Cu |= 2; var r = hc(); for ((Lu === e && Iu === t) || ((qu = null), dc(e, t)); ; ) try { yc(); break; } catch (t) { pc(e, t); } if ((To(), (Cu = n), (ku.current = r), null !== Au)) throw Error(o(261)); return (Lu = null), (Iu = 0), Ru; } function yc() { for (; null !== Au; ) bc(Au); } function vc() { for (; null !== Au && !Ye(); ) bc(Au); } function bc(e) { var t = xu(e.alternate, e, Mu); (e.memoizedProps = e.pendingProps), null === t ? _c(e) : (Au = t), (Eu.current = null); } function _c(e) { var t = e; do { var n = t.alternate; if (((e = t.return), 0 == (32768 & t.flags))) { if (null !== (n = $s(n, t, Mu))) return void (Au = n); } else { if (null !== (n = Gs(n, t))) return (n.flags &= 32767), void (Au = n); if (null === e) return (Ru = 6), void (Au = null); (e.flags |= 32768), (e.subtreeFlags = 0), (e.deletions = null); } if (null !== (t = t.sibling)) return void (Au = t); Au = t = e; } while (null !== t); 0 === Ru && (Ru = 5); } function wc(e, t, n) { var r = bt, i = Ou.transition; try { (Ou.transition = null), (bt = 1), (function (e, t, n, r) { do { Tc(); } while (null !== Gu); if (0 != (6 & Cu)) throw Error(o(327)); n = e.finishedWork; var i = e.finishedLanes; if (null === n) return null; if ( ((e.finishedWork = null), (e.finishedLanes = 0), n === e.current) ) throw Error(o(177)); (e.callbackNode = null), (e.callbackPriority = 0); var a = n.lanes | n.childLanes; if ( ((function (e, t) { var n = e.pendingLanes & ~t; (e.pendingLanes = t), (e.suspendedLanes = 0), (e.pingedLanes = 0), (e.expiredLanes &= t), (e.mutableReadLanes &= t), (e.entangledLanes &= t), (t = e.entanglements); var r = e.eventTimes; for (e = e.expirationTimes; 0 < n; ) { var i = 31 - at(n), o = 1 << i; (t[i] = 0), (r[i] = -1), (e[i] = -1), (n &= ~o); } })(e, a), e === Lu && ((Au = Lu = null), (Iu = 0)), (0 == (2064 & n.subtreeFlags) && 0 == (2064 & n.flags)) || $u || (($u = !0), Lc(tt, function () { return Tc(), null; })), (a = 0 != (15990 & n.flags)), 0 != (15990 & n.subtreeFlags) || a) ) { (a = Ou.transition), (Ou.transition = null); var s = bt; bt = 1; var u = Cu; (Cu |= 4), (Eu.current = null), (function (e, t) { if (((ei = Zt), pr((e = dr())))) { if ("selectionStart" in e) var n = { start: e.selectionStart, end: e.selectionEnd, }; else e: { var r = (n = ((n = e.ownerDocument) && n.defaultView) || window).getSelection && n.getSelection(); if (r && 0 !== r.rangeCount) { n = r.anchorNode; var i = r.anchorOffset, a = r.focusNode; r = r.focusOffset; try { n.nodeType, a.nodeType; } catch (e) { n = null; break e; } var s = 0, u = -1, c = -1, l = 0, f = 0, d = e, p = null; t: for (;;) { for ( var h; d !== n || (0 !== i && 3 !== d.nodeType) || (u = s + i), d !== a || (0 !== r && 3 !== d.nodeType) || (c = s + r), 3 === d.nodeType && (s += d.nodeValue.length), null !== (h = d.firstChild); ) (p = d), (d = h); for (;;) { if (d === e) break t; if ( (p === n && ++l === i && (u = s), p === a && ++f === r && (c = s), null !== (h = d.nextSibling)) ) break; p = (d = p).parentNode; } d = h; } n = -1 === u || -1 === c ? null : { start: u, end: c }; } else n = null; } n = n || { start: 0, end: 0 }; } else n = null; for ( ti = { focusedElem: e, selectionRange: n }, Zt = !1, Qs = t; null !== Qs; ) if ( ((e = (t = Qs).child), 0 != (1028 & t.subtreeFlags) && null !== e) ) (e.return = t), (Qs = e); else for (; null !== Qs; ) { t = Qs; try { var g = t.alternate; if (0 != (1024 & t.flags)) switch (t.tag) { case 0: case 11: case 15: case 5: case 6: case 4: case 17: break; case 1: if (null !== g) { var m = g.memoizedProps, y = g.memoizedState, v = t.stateNode, b = v.getSnapshotBeforeUpdate( t.elementType === t.type ? m : yo(t.type, m), y ); v.__reactInternalSnapshotBeforeUpdate = b; } break; case 3: var _ = t.stateNode.containerInfo; 1 === _.nodeType ? (_.textContent = "") : 9 === _.nodeType && _.documentElement && _.removeChild(_.documentElement); break; default: throw Error(o(163)); } } catch (e) { Sc(t, t.return, e); } if (null !== (e = t.sibling)) { (e.return = t.return), (Qs = e); break; } Qs = t.return; } (g = tu), (tu = !1); })(e, n), mu(n, e), hr(ti), (Zt = !!ei), (ti = ei = null), (e.current = n), vu(n, e, i), Ke(), (Cu = u), (bt = s), (Ou.transition = a); } else e.current = n; if ( ($u && (($u = !1), (Gu = e), (Yu = i)), 0 === (a = e.pendingLanes) && (Wu = null), (function (e) { if (ot && "function" == typeof ot.onCommitFiberRoot) try { ot.onCommitFiberRoot( it, e, void 0, 128 == (128 & e.current.flags) ); } catch (e) {} })(n.stateNode), rc(e, Xe()), null !== t) ) for (r = e.onRecoverableError, n = 0; n < t.length; n++) (i = t[n]), r(i.value, { componentStack: i.stack, digest: i.digest }); if (Zu) throw ((Zu = !1), (e = Vu), (Vu = null), e); 0 != (1 & Yu) && 0 !== e.tag && Tc(), 0 != (1 & (a = e.pendingLanes)) ? e === Xu ? Ku++ : ((Ku = 0), (Xu = e)) : (Ku = 0), Hi(); })(e, t, n, r); } finally { (Ou.transition = i), (bt = r); } return null; } function Tc() { if (null !== Gu) { var e = _t(Yu), t = Ou.transition, n = bt; try { if (((Ou.transition = null), (bt = 16 > e ? 16 : e), null === Gu)) var r = !1; else { if (((e = Gu), (Gu = null), (Yu = 0), 0 != (6 & Cu))) throw Error(o(331)); var i = Cu; for (Cu |= 4, Qs = e.current; null !== Qs; ) { var a = Qs, s = a.child; if (0 != (16 & Qs.flags)) { var u = a.deletions; if (null !== u) { for (var c = 0; c < u.length; c++) { var l = u[c]; for (Qs = l; null !== Qs; ) { var f = Qs; switch (f.tag) { case 0: case 11: case 15: nu(8, f, a); } var d = f.child; if (null !== d) (d.return = f), (Qs = d); else for (; null !== Qs; ) { var p = (f = Qs).sibling, h = f.return; if ((ou(f), f === l)) { Qs = null; break; } if (null !== p) { (p.return = h), (Qs = p); break; } Qs = h; } } } var g = a.alternate; if (null !== g) { var m = g.child; if (null !== m) { g.child = null; do { var y = m.sibling; (m.sibling = null), (m = y); } while (null !== m); } } Qs = a; } } if (0 != (2064 & a.subtreeFlags) && null !== s) (s.return = a), (Qs = s); else e: for (; null !== Qs; ) { if (0 != (2048 & (a = Qs).flags)) switch (a.tag) { case 0: case 11: case 15: nu(9, a, a.return); } var v = a.sibling; if (null !== v) { (v.return = a.return), (Qs = v); break e; } Qs = a.return; } } var b = e.current; for (Qs = b; null !== Qs; ) { var _ = (s = Qs).child; if (0 != (2064 & s.subtreeFlags) && null !== _) (_.return = s), (Qs = _); else e: for (s = b; null !== Qs; ) { if (0 != (2048 & (u = Qs).flags)) try { switch (u.tag) { case 0: case 11: case 15: ru(9, u); } } catch (e) { Sc(u, u.return, e); } if (u === s) { Qs = null; break e; } var w = u.sibling; if (null !== w) { (w.return = u.return), (Qs = w); break e; } Qs = u.return; } } if ( ((Cu = i), Hi(), ot && "function" == typeof ot.onPostCommitFiberRoot) ) try { ot.onPostCommitFiberRoot(it, e); } catch (e) {} r = !0; } return r; } finally { (bt = n), (Ou.transition = t); } } return !1; } function xc(e, t, n) { (e = Do(e, (t = hs(0, (t = ls(n, t)), 1)), 1)), (t = ec()), null !== e && (yt(e, 1, t), rc(e, t)); } function Sc(e, t, n) { if (3 === e.tag) xc(e, e, n); else for (; null !== t; ) { if (3 === t.tag) { xc(t, e, n); break; } if (1 === t.tag) { var r = t.stateNode; if ( "function" == typeof t.type.getDerivedStateFromError || ("function" == typeof r.componentDidCatch && (null === Wu || !Wu.has(r))) ) { (t = Do(t, (e = gs(t, (e = ls(n, e)), 1)), 1)), (e = ec()), null !== t && (yt(t, 1, e), rc(t, e)); break; } } t = t.return; } } function kc(e, t, n) { var r = e.pingCache; null !== r && r.delete(t), (t = ec()), (e.pingedLanes |= e.suspendedLanes & n), Lu === e && (Iu & n) === n && (4 === Ru || (3 === Ru && (130023424 & Iu) === Iu && 500 > Xe() - zu) ? dc(e, 0) : (Bu |= n)), rc(e, t); } function Ec(e, t) { 0 === t && (0 == (1 & e.mode) ? (t = 1) : ((t = lt), 0 == (130023424 & (lt <<= 1)) && (lt = 4194304))); var n = ec(); null !== (e = Ao(e, t)) && (yt(e, t, n), rc(e, n)); } function Oc(e) { var t = e.memoizedState, n = 0; null !== t && (n = t.retryLane), Ec(e, n); } function Cc(e, t) { var n = 0; switch (e.tag) { case 13: var r = e.stateNode, i = e.memoizedState; null !== i && (n = i.retryLane); break; case 19: r = e.stateNode; break; default: throw Error(o(314)); } null !== r && r.delete(t), Ec(e, n); } function Lc(e, t) { return $e(e, t); } function Ac(e, t, n, r) { (this.tag = e), (this.key = n), (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null), (this.index = 0), (this.ref = null), (this.pendingProps = t), (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), (this.mode = r), (this.subtreeFlags = this.flags = 0), (this.deletions = null), (this.childLanes = this.lanes = 0), (this.alternate = null); } function Ic(e, t, n, r) { return new Ac(e, t, n, r); } function Mc(e) { return !(!(e = e.prototype) || !e.isReactComponent); } function Pc(e, t) { var n = e.alternate; return ( null === n ? (((n = Ic(e.tag, t, e.key, e.mode)).elementType = e.elementType), (n.type = e.type), (n.stateNode = e.stateNode), (n.alternate = e), (e.alternate = n)) : ((n.pendingProps = t), (n.type = e.type), (n.flags = 0), (n.subtreeFlags = 0), (n.deletions = null)), (n.flags = 14680064 & e.flags), (n.childLanes = e.childLanes), (n.lanes = e.lanes), (n.child = e.child), (n.memoizedProps = e.memoizedProps), (n.memoizedState = e.memoizedState), (n.updateQueue = e.updateQueue), (t = e.dependencies), (n.dependencies = null === t ? null : { lanes: t.lanes, firstContext: t.firstContext }), (n.sibling = e.sibling), (n.index = e.index), (n.ref = e.ref), n ); } function Rc(e, t, n, r, i, a) { var s = 2; if (((r = e), "function" == typeof e)) Mc(e) && (s = 1); else if ("string" == typeof e) s = 5; else e: switch (e) { case x: return Dc(n.children, i, a, t); case S: (s = 8), (i |= 8); break; case k: return ( ((e = Ic(12, n, t, 2 | i)).elementType = k), (e.lanes = a), e ); case L: return ((e = Ic(13, n, t, i)).elementType = L), (e.lanes = a), e; case A: return ((e = Ic(19, n, t, i)).elementType = A), (e.lanes = a), e; case P: return jc(n, i, a, t); default: if ("object" == typeof e && null !== e) switch (e.$$typeof) { case E: s = 10; break e; case O: s = 9; break e; case C: s = 11; break e; case I: s = 14; break e; case M: (s = 16), (r = null); break e; } throw Error(o(130, null == e ? e : typeof e, "")); } return ( ((t = Ic(s, n, t, i)).elementType = e), (t.type = r), (t.lanes = a), t ); } function Dc(e, t, n, r) { return ((e = Ic(7, e, r, t)).lanes = n), e; } function jc(e, t, n, r) { return ( ((e = Ic(22, e, r, t)).elementType = P), (e.lanes = n), (e.stateNode = { isHidden: !1 }), e ); } function Nc(e, t, n) { return ((e = Ic(6, e, null, t)).lanes = n), e; } function Bc(e, t, n) { return ( ((t = Ic(4, null !== e.children ? e.children : [], e.key, t)).lanes = n), (t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation, }), t ); } function Uc(e, t, n, r, i) { (this.tag = t), (this.containerInfo = e), (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null), (this.timeoutHandle = -1), (this.callbackNode = this.pendingContext = this.context = null), (this.callbackPriority = 0), (this.eventTimes = mt(0)), (this.expirationTimes = mt(-1)), (this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0), (this.entanglements = mt(0)), (this.identifierPrefix = r), (this.onRecoverableError = i), (this.mutableSourceEagerHydrationData = null); } function Fc(e, t, n, r, i, o, a, s, u) { return ( (e = new Uc(e, t, n, s, u)), 1 === t ? ((t = 1), !0 === o && (t |= 8)) : (t = 0), (o = Ic(3, null, null, t)), (e.current = o), (o.stateNode = e), (o.memoizedState = { element: r, isDehydrated: n, cache: null, transitions: null, pendingSuspenseBoundaries: null, }), Mo(o), e ); } function zc(e, t, n) { var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { $$typeof: T, key: null == r ? null : "" + r, children: e, containerInfo: t, implementation: n, }; } function Hc(e) { if (!e) return Oi; e: { if (He((e = e._reactInternals)) !== e || 1 !== e.tag) throw Error(o(170)); var t = e; do { switch (t.tag) { case 3: t = t.stateNode.context; break e; case 1: if (Mi(t.type)) { t = t.stateNode.__reactInternalMemoizedMergedChildContext; break e; } } t = t.return; } while (null !== t); throw Error(o(171)); } if (1 === e.tag) { var n = e.type; if (Mi(n)) return Di(e, n, t); } return t; } function qc(e, t, n, r, i, o, a, s, u) { return ( ((e = Fc(n, r, !0, e, 0, o, 0, s, u)).context = Hc(null)), (n = e.current), ((o = Ro((r = ec()), (i = tc(n)))).callback = null != t ? t : null), Do(n, o, i), (e.current.lanes = i), yt(e, i, r), rc(e, r), e ); } function Zc(e, t, n, r) { var i = t.current, o = ec(), a = tc(i); return ( (n = Hc(n)), null === t.context ? (t.context = n) : (t.pendingContext = n), ((t = Ro(o, a)).payload = { element: e }), null !== (r = void 0 === r ? null : r) && (t.callback = r), null !== (e = Do(i, t, a)) && (nc(e, i, a, o), jo(e, i, a)), a ); } function Vc(e) { return (e = e.current).child ? (e.child.tag, e.child.stateNode) : null; } function Wc(e, t) { if (null !== (e = e.memoizedState) && null !== e.dehydrated) { var n = e.retryLane; e.retryLane = 0 !== n && n < t ? n : t; } } function $c(e, t) { Wc(e, t), (e = e.alternate) && Wc(e, t); } xu = function (e, t, n) { if (null !== e) if (e.memoizedProps !== t.pendingProps || Li.current) _s = !0; else { if (0 == (e.lanes & n) && 0 == (128 & t.flags)) return ( (_s = !1), (function (e, t, n) { switch (t.tag) { case 3: As(t), ho(); break; case 5: aa(t); break; case 1: Mi(t.type) && ji(t); break; case 4: ia(t, t.stateNode.containerInfo); break; case 10: var r = t.type._context, i = t.memoizedProps.value; Ei(vo, r._currentValue), (r._currentValue = i); break; case 13: if (null !== (r = t.memoizedState)) return null !== r.dehydrated ? (Ei(ua, 1 & ua.current), (t.flags |= 128), null) : 0 != (n & t.child.childLanes) ? Ns(e, t, n) : (Ei(ua, 1 & ua.current), null !== (e = Zs(e, t, n)) ? e.sibling : null); Ei(ua, 1 & ua.current); break; case 19: if ( ((r = 0 != (n & t.childLanes)), 0 != (128 & e.flags)) ) { if (r) return Hs(e, t, n); t.flags |= 128; } if ( (null !== (i = t.memoizedState) && ((i.rendering = null), (i.tail = null), (i.lastEffect = null)), Ei(ua, ua.current), r) ) break; return null; case 22: case 23: return (t.lanes = 0), ks(e, t, n); } return Zs(e, t, n); })(e, t, n) ); _s = 0 != (131072 & e.flags); } else (_s = !1), io && 0 != (1048576 & t.flags) && Ji(t, Wi, t.index); switch (((t.lanes = 0), t.tag)) { case 2: var r = t.type; qs(e, t), (e = t.pendingProps); var i = Ii(t, Ci.current); ko(t, n), (i = Sa(null, t, r, e, i, n)); var a = ka(); return ( (t.flags |= 1), "object" == typeof i && null !== i && "function" == typeof i.render && void 0 === i.$$typeof ? ((t.tag = 1), (t.memoizedState = null), (t.updateQueue = null), Mi(r) ? ((a = !0), ji(t)) : (a = !1), (t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null), Mo(t), (i.updater = Ho), (t.stateNode = i), (i._reactInternals = t), Wo(t, r, e, n), (t = Ls(null, t, r, !0, a, n))) : ((t.tag = 0), io && a && eo(t), ws(null, t, i, n), (t = t.child)), t ); case 16: r = t.elementType; e: { switch ( (qs(e, t), (e = t.pendingProps), (r = (i = r._init)(r._payload)), (t.type = r), (i = t.tag = (function (e) { if ("function" == typeof e) return Mc(e) ? 1 : 0; if (null != e) { if ((e = e.$$typeof) === C) return 11; if (e === I) return 14; } return 2; })(r)), (e = yo(r, e)), i) ) { case 0: t = Os(null, t, r, e, n); break e; case 1: t = Cs(null, t, r, e, n); break e; case 11: t = Ts(null, t, r, e, n); break e; case 14: t = xs(null, t, r, yo(r.type, e), n); break e; } throw Error(o(306, r, "")); } return t; case 0: return ( (r = t.type), (i = t.pendingProps), Os(e, t, r, (i = t.elementType === r ? i : yo(r, i)), n) ); case 1: return ( (r = t.type), (i = t.pendingProps), Cs(e, t, r, (i = t.elementType === r ? i : yo(r, i)), n) ); case 3: e: { if ((As(t), null === e)) throw Error(o(387)); (r = t.pendingProps), (i = (a = t.memoizedState).element), Po(e, t), Bo(t, r, null, n); var s = t.memoizedState; if (((r = s.element), a.isDehydrated)) { if ( ((a = { element: r, isDehydrated: !1, cache: s.cache, pendingSuspenseBoundaries: s.pendingSuspenseBoundaries, transitions: s.transitions, }), (t.updateQueue.baseState = a), (t.memoizedState = a), 256 & t.flags) ) { t = Is(e, t, r, n, (i = ls(Error(o(423)), t))); break e; } if (r !== i) { t = Is(e, t, r, n, (i = ls(Error(o(424)), t))); break e; } for ( ro = ci(t.stateNode.containerInfo.firstChild), no = t, io = !0, oo = null, n = Qo(t, null, r, n), t.child = n; n; ) (n.flags = (-3 & n.flags) | 4096), (n = n.sibling); } else { if ((ho(), r === i)) { t = Zs(e, t, n); break e; } ws(e, t, r, n); } t = t.child; } return t; case 5: return ( aa(t), null === e && co(t), (r = t.type), (i = t.pendingProps), (a = null !== e ? e.memoizedProps : null), (s = i.children), ni(r, i) ? (s = null) : null !== a && ni(r, a) && (t.flags |= 32), Es(e, t), ws(e, t, s, n), t.child ); case 6: return null === e && co(t), null; case 13: return Ns(e, t, n); case 4: return ( ia(t, t.stateNode.containerInfo), (r = t.pendingProps), null === e ? (t.child = Xo(t, null, r, n)) : ws(e, t, r, n), t.child ); case 11: return ( (r = t.type), (i = t.pendingProps), Ts(e, t, r, (i = t.elementType === r ? i : yo(r, i)), n) ); case 7: return ws(e, t, t.pendingProps, n), t.child; case 8: case 12: return ws(e, t, t.pendingProps.children, n), t.child; case 10: e: { if ( ((r = t.type._context), (i = t.pendingProps), (a = t.memoizedProps), (s = i.value), Ei(vo, r._currentValue), (r._currentValue = s), null !== a) ) if (sr(a.value, s)) { if (a.children === i.children && !Li.current) { t = Zs(e, t, n); break e; } } else for (null !== (a = t.child) && (a.return = t); null !== a; ) { var u = a.dependencies; if (null !== u) { s = a.child; for (var c = u.firstContext; null !== c; ) { if (c.context === r) { if (1 === a.tag) { (c = Ro(-1, n & -n)).tag = 2; var l = a.updateQueue; if (null !== l) { var f = (l = l.shared).pending; null === f ? (c.next = c) : ((c.next = f.next), (f.next = c)), (l.pending = c); } } (a.lanes |= n), null !== (c = a.alternate) && (c.lanes |= n), So(a.return, n, t), (u.lanes |= n); break; } c = c.next; } } else if (10 === a.tag) s = a.type === t.type ? null : a.child; else if (18 === a.tag) { if (null === (s = a.return)) throw Error(o(341)); (s.lanes |= n), null !== (u = s.alternate) && (u.lanes |= n), So(s, n, t), (s = a.sibling); } else s = a.child; if (null !== s) s.return = a; else for (s = a; null !== s; ) { if (s === t) { s = null; break; } if (null !== (a = s.sibling)) { (a.return = s.return), (s = a); break; } s = s.return; } a = s; } ws(e, t, i.children, n), (t = t.child); } return t; case 9: return ( (i = t.type), (r = t.pendingProps.children), ko(t, n), (r = r((i = Eo(i)))), (t.flags |= 1), ws(e, t, r, n), t.child ); case 14: return ( (i = yo((r = t.type), t.pendingProps)), xs(e, t, r, (i = yo(r.type, i)), n) ); case 15: return Ss(e, t, t.type, t.pendingProps, n); case 17: return ( (r = t.type), (i = t.pendingProps), (i = t.elementType === r ? i : yo(r, i)), qs(e, t), (t.tag = 1), Mi(r) ? ((e = !0), ji(t)) : (e = !1), ko(t, n), Zo(t, r, i), Wo(t, r, i, n), Ls(null, t, r, !0, e, n) ); case 19: return Hs(e, t, n); case 22: return ks(e, t, n); } throw Error(o(156, t.tag)); }; var Gc = "function" == typeof reportError ? reportError : function (e) { console.error(e); }; function Yc(e) { this._internalRoot = e; } function Kc(e) { this._internalRoot = e; } function Xc(e) { return !( !e || (1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType) ); } function Qc(e) { return !( !e || (1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType && (8 !== e.nodeType || " react-mount-point-unstable " !== e.nodeValue)) ); } function Jc() {} function el(e, t, n, r, i) { var o = n._reactRootContainer; if (o) { var a = o; if ("function" == typeof i) { var s = i; i = function () { var e = Vc(a); s.call(e); }; } Zc(t, a, e, i); } else a = (function (e, t, n, r, i) { if (i) { if ("function" == typeof r) { var o = r; r = function () { var e = Vc(a); o.call(e); }; } var a = qc(t, r, e, 0, null, !1, 0, "", Jc); return ( (e._reactRootContainer = a), (e[hi] = a.current), Hr(8 === e.nodeType ? e.parentNode : e), lc(), a ); } for (; (i = e.lastChild); ) e.removeChild(i); if ("function" == typeof r) { var s = r; r = function () { var e = Vc(u); s.call(e); }; } var u = Fc(e, 0, !1, null, 0, !1, 0, "", Jc); return ( (e._reactRootContainer = u), (e[hi] = u.current), Hr(8 === e.nodeType ? e.parentNode : e), lc(function () { Zc(t, u, n, r); }), u ); })(n, t, e, i, r); return Vc(a); } (Kc.prototype.render = Yc.prototype.render = function (e) { var t = this._internalRoot; if (null === t) throw Error(o(409)); Zc(e, t, null, null); }), (Kc.prototype.unmount = Yc.prototype.unmount = function () { var e = this._internalRoot; if (null !== e) { this._internalRoot = null; var t = e.containerInfo; lc(function () { Zc(null, e, null, null); }), (t[hi] = null); } }), (Kc.prototype.unstable_scheduleHydration = function (e) { if (e) { var t = St(); e = { blockedOn: null, target: e, priority: t }; for ( var n = 0; n < Pt.length && 0 !== t && t < Pt[n].priority; n++ ); Pt.splice(n, 0, e), 0 === n && Nt(e); } }), (wt = function (e) { switch (e.tag) { case 3: var t = e.stateNode; if (t.current.memoizedState.isDehydrated) { var n = ft(t.pendingLanes); 0 !== n && (vt(t, 1 | n), rc(t, Xe()), 0 == (6 & Cu) && ((Hu = Xe() + 500), Hi())); } break; case 13: lc(function () { var t = Ao(e, 1); if (null !== t) { var n = ec(); nc(t, e, 1, n); } }), $c(e, 1); } }), (Tt = function (e) { if (13 === e.tag) { var t = Ao(e, 134217728); if (null !== t) nc(t, e, 134217728, ec()); $c(e, 134217728); } }), (xt = function (e) { if (13 === e.tag) { var t = tc(e), n = Ao(e, t); if (null !== n) nc(n, e, t, ec()); $c(e, t); } }), (St = function () { return bt; }), (kt = function (e, t) { var n = bt; try { return (bt = e), t(); } finally { bt = n; } }), (Te = function (e, t, n) { switch (t) { case "input": if ((Q(e, n), (t = n.name), "radio" === n.type && null != t)) { for (n = e; n.parentNode; ) n = n.parentNode; for ( n = n.querySelectorAll( "input[name=" + JSON.stringify("" + t) + '][type="radio"]' ), t = 0; t < n.length; t++ ) { var r = n[t]; if (r !== e && r.form === e.form) { var i = wi(r); if (!i) throw Error(o(90)); $(r), Q(r, i); } } } break; case "textarea": oe(e, n); break; case "select": null != (t = n.value) && ne(e, !!n.multiple, t, !1); } }), (Ce = cc), (Le = lc); var tl = { usingClientEntryPoint: !1, Events: [bi, _i, wi, Ee, Oe, cc] }, nl = { findFiberByHostInstance: vi, bundleType: 0, version: "18.2.0", rendererPackageName: "react-dom", }, rl = { bundleType: nl.bundleType, version: nl.version, rendererPackageName: nl.rendererPackageName, rendererConfig: nl.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: _.ReactCurrentDispatcher, findHostInstanceByFiber: function (e) { return null === (e = Ve(e)) ? null : e.stateNode; }, findFiberByHostInstance: nl.findFiberByHostInstance || function () { return null; }, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.2.0-next-9e3b772b8-20220608", }; if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var il = __REACT_DEVTOOLS_GLOBAL_HOOK__; if (!il.isDisabled && il.supportsFiber) try { (it = il.inject(rl)), (ot = il); } catch (le) {} } (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tl), (t.createPortal = function (e, t) { var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!Xc(t)) throw Error(o(200)); return zc(e, t, null, n); }), (t.createRoot = function (e, t) { if (!Xc(e)) throw Error(o(299)); var n = !1, r = "", i = Gc; return ( null != t && (!0 === t.unstable_strictMode && (n = !0), void 0 !== t.identifierPrefix && (r = t.identifierPrefix), void 0 !== t.onRecoverableError && (i = t.onRecoverableError)), (t = Fc(e, 1, !1, null, 0, n, 0, r, i)), (e[hi] = t.current), Hr(8 === e.nodeType ? e.parentNode : e), new Yc(t) ); }), (t.findDOMNode = function (e) { if (null == e) return null; if (1 === e.nodeType) return e; var t = e._reactInternals; if (void 0 === t) { if ("function" == typeof e.render) throw Error(o(188)); throw ((e = Object.keys(e).join(",")), Error(o(268, e))); } return (e = null === (e = Ve(t)) ? null : e.stateNode); }), (t.flushSync = function (e) { return lc(e); }), (t.hydrate = function (e, t, n) { if (!Qc(t)) throw Error(o(200)); return el(null, e, t, !0, n); }), (t.hydrateRoot = function (e, t, n) { if (!Xc(e)) throw Error(o(405)); var r = (null != n && n.hydratedSources) || null, i = !1, a = "", s = Gc; if ( (null != n && (!0 === n.unstable_strictMode && (i = !0), void 0 !== n.identifierPrefix && (a = n.identifierPrefix), void 0 !== n.onRecoverableError && (s = n.onRecoverableError)), (t = qc(t, null, e, 1, null != n ? n : null, i, 0, a, s)), (e[hi] = t.current), Hr(e), r) ) for (e = 0; e < r.length; e++) (i = (i = (n = r[e])._getVersion)(n._source)), null == t.mutableSourceEagerHydrationData ? (t.mutableSourceEagerHydrationData = [n, i]) : t.mutableSourceEagerHydrationData.push(n, i); return new Kc(t); }), (t.render = function (e, t, n) { if (!Qc(t)) throw Error(o(200)); return el(null, e, t, !1, n); }), (t.unmountComponentAtNode = function (e) { if (!Qc(e)) throw Error(o(40)); return ( !!e._reactRootContainer && (lc(function () { el(null, null, e, !1, function () { (e._reactRootContainer = null), (e[hi] = null); }); }), !0) ); }), (t.unstable_batchedUpdates = cc), (t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) { if (!Qc(n)) throw Error(o(200)); if (null == e || void 0 === e._reactInternals) throw Error(o(38)); return el(e, t, n, !1, r); }), (t.version = "18.2.0-next-9e3b772b8-20220608"); }, 20745: function (e, t, n) { "use strict"; var r = n(73935); (t.s = r.createRoot), r.hydrateRoot; }, 73935: function (e, t, n) { "use strict"; !(function e() { if ( "undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE ) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e); } catch (e) { console.error(e); } })(), (e.exports = n(64448)); }, 69921: function (e, t) { "use strict"; var n = "function" == typeof Symbol && Symbol.for, r = n ? Symbol.for("react.element") : 60103, i = n ? Symbol.for("react.portal") : 60106, o = n ? Symbol.for("react.fragment") : 60107, a = n ? Symbol.for("react.strict_mode") : 60108, s = n ? Symbol.for("react.profiler") : 60114, u = n ? Symbol.for("react.provider") : 60109, c = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, f = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, p = n ? Symbol.for("react.suspense") : 60113, h = n ? Symbol.for("react.suspense_list") : 60120, g = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, v = n ? Symbol.for("react.fundamental") : 60117, b = n ? Symbol.for("react.responder") : 60118, _ = n ? Symbol.for("react.scope") : 60119; function w(e) { if ("object" == typeof e && null !== e) { var t = e.$$typeof; switch (t) { case r: switch ((e = e.type)) { case l: case f: case o: case s: case a: case p: return e; default: switch ((e = e && e.$$typeof)) { case c: case d: case m: case g: case u: return e; default: return t; } } case i: return t; } } } function T(e) { return w(e) === f; } (t.AsyncMode = l), (t.ConcurrentMode = f), (t.ContextConsumer = c), (t.ContextProvider = u), (t.Element = r), (t.ForwardRef = d), (t.Fragment = o), (t.Lazy = m), (t.Memo = g), (t.Portal = i), (t.Profiler = s), (t.StrictMode = a), (t.Suspense = p), (t.isAsyncMode = function (e) { return T(e) || w(e) === l; }), (t.isConcurrentMode = T), (t.isContextConsumer = function (e) { return w(e) === c; }), (t.isContextProvider = function (e) { return w(e) === u; }), (t.isElement = function (e) { return "object" == typeof e && null !== e && e.$$typeof === r; }), (t.isForwardRef = function (e) { return w(e) === d; }), (t.isFragment = function (e) { return w(e) === o; }), (t.isLazy = function (e) { return w(e) === m; }), (t.isMemo = function (e) { return w(e) === g; }), (t.isPortal = function (e) { return w(e) === i; }), (t.isProfiler = function (e) { return w(e) === s; }), (t.isStrictMode = function (e) { return w(e) === a; }), (t.isSuspense = function (e) { return w(e) === p; }), (t.isValidElementType = function (e) { return ( "string" == typeof e || "function" == typeof e || e === o || e === f || e === s || e === a || e === p || e === h || ("object" == typeof e && null !== e && (e.$$typeof === m || e.$$typeof === g || e.$$typeof === u || e.$$typeof === c || e.$$typeof === d || e.$$typeof === v || e.$$typeof === b || e.$$typeof === _ || e.$$typeof === y)) ); }), (t.typeOf = w); }, 59864: function (e, t, n) { "use strict"; e.exports = n(69921); }, 14494: function (e, t, n) { "use strict"; n.d(t, { zt: function () { return f; }, $j: function () { return F; }, I0: function () { return V; }, v9: function () { return Y; }, }); var r = n(28416), i = n.n(r), o = (n(45697), i().createContext(null)); var a = function (e) { e(); }, s = function () { return a; }, u = { notify: function () {} }; var c = (function () { function e(e, t) { (this.store = e), (this.parentSub = t), (this.unsubscribe = null), (this.listeners = u), (this.handleChangeWrapper = this.handleChangeWrapper.bind(this)); } var t = e.prototype; return ( (t.addNestedSub = function (e) { return this.trySubscribe(), this.listeners.subscribe(e); }), (t.notifyNestedSubs = function () { this.listeners.notify(); }), (t.handleChangeWrapper = function () { this.onStateChange && this.onStateChange(); }), (t.isSubscribed = function () { return Boolean(this.unsubscribe); }), (t.trySubscribe = function () { this.unsubscribe || ((this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.handleChangeWrapper) : this.store.subscribe(this.handleChangeWrapper)), (this.listeners = (function () { var e = s(), t = null, n = null; return { clear: function () { (t = null), (n = null); }, notify: function () { e(function () { for (var e = t; e; ) e.callback(), (e = e.next); }); }, get: function () { for (var e = [], n = t; n; ) e.push(n), (n = n.next); return e; }, subscribe: function (e) { var r = !0, i = (n = { callback: e, next: null, prev: n }); return ( i.prev ? (i.prev.next = i) : (t = i), function () { r && null !== t && ((r = !1), i.next ? (i.next.prev = i.prev) : (n = i.prev), i.prev ? (i.prev.next = i.next) : (t = i.next)); } ); }, }; })())); }), (t.tryUnsubscribe = function () { this.unsubscribe && (this.unsubscribe(), (this.unsubscribe = null), this.listeners.clear(), (this.listeners = u)); }), e ); })(), l = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? r.useLayoutEffect : r.useEffect; var f = function (e) { var t = e.store, n = e.context, a = e.children, s = (0, r.useMemo)( function () { var e = new c(t); return ( (e.onStateChange = e.notifyNestedSubs), { store: t, subscription: e } ); }, [t] ), u = (0, r.useMemo)( function () { return t.getState(); }, [t] ); l( function () { var e = s.subscription; return ( e.trySubscribe(), u !== t.getState() && e.notifyNestedSubs(), function () { e.tryUnsubscribe(), (e.onStateChange = null); } ); }, [s, u] ); var f = n || o; return i().createElement(f.Provider, { value: s }, a); }, d = n(87462), p = n(63366), h = n(8679), g = n.n(h), m = n(59864), y = [], v = [null, null]; function b(e, t) { var n = e[1]; return [t.payload, n + 1]; } function _(e, t, n) { l(function () { return e.apply(void 0, t); }, n); } function w(e, t, n, r, i, o, a) { (e.current = r), (t.current = i), (n.current = !1), o.current && ((o.current = null), a()); } function T(e, t, n, r, i, o, a, s, u, c) { if (e) { var l = !1, f = null, d = function () { if (!l) { var e, n, d = t.getState(); try { e = r(d, i.current); } catch (e) { (n = e), (f = e); } n || (f = null), e === o.current ? a.current || u() : ((o.current = e), (s.current = e), (a.current = !0), c({ type: "STORE_UPDATED", payload: { error: n } })); } }; (n.onStateChange = d), n.trySubscribe(), d(); return function () { if (((l = !0), n.tryUnsubscribe(), (n.onStateChange = null), f)) throw f; }; } } var x = function () { return [null, 0]; }; function S(e, t) { void 0 === t && (t = {}); var n = t, a = n.getDisplayName, s = void 0 === a ? function (e) { return "ConnectAdvanced(" + e + ")"; } : a, u = n.methodName, l = void 0 === u ? "connectAdvanced" : u, f = n.renderCountProp, h = void 0 === f ? void 0 : f, S = n.shouldHandleStateChanges, k = void 0 === S || S, E = n.storeKey, O = void 0 === E ? "store" : E, C = (n.withRef, n.forwardRef), L = void 0 !== C && C, A = n.context, I = void 0 === A ? o : A, M = (0, p.Z)(n, [ "getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context", ]), P = I; return function (t) { var n = t.displayName || t.name || "Component", o = s(n), a = (0, d.Z)({}, M, { getDisplayName: s, methodName: l, renderCountProp: h, shouldHandleStateChanges: k, storeKey: O, displayName: o, wrappedComponentName: n, WrappedComponent: t, }), u = M.pure; var f = u ? r.useMemo : function (e) { return e(); }; function S(n) { var o = (0, r.useMemo)( function () { var e = n.reactReduxForwardedRef, t = (0, p.Z)(n, ["reactReduxForwardedRef"]); return [n.context, e, t]; }, [n] ), s = o[0], u = o[1], l = o[2], h = (0, r.useMemo)( function () { return s && s.Consumer && (0, m.isContextConsumer)( i().createElement(s.Consumer, null) ) ? s : P; }, [s, P] ), g = (0, r.useContext)(h), S = Boolean(n.store) && Boolean(n.store.getState) && Boolean(n.store.dispatch); Boolean(g) && Boolean(g.store); var E = S ? n.store : g.store, O = (0, r.useMemo)( function () { return (function (t) { return e(t.dispatch, a); })(E); }, [E] ), C = (0, r.useMemo)( function () { if (!k) return v; var e = new c(E, S ? null : g.subscription), t = e.notifyNestedSubs.bind(e); return [e, t]; }, [E, S, g] ), L = C[0], A = C[1], I = (0, r.useMemo)( function () { return S ? g : (0, d.Z)({}, g, { subscription: L }); }, [S, g, L] ), M = (0, r.useReducer)(b, y, x), R = M[0][0], D = M[1]; if (R && R.error) throw R.error; var j = (0, r.useRef)(), N = (0, r.useRef)(l), B = (0, r.useRef)(), U = (0, r.useRef)(!1), F = f( function () { return B.current && l === N.current ? B.current : O(E.getState(), l); }, [E, R, l] ); _(w, [N, j, U, l, F, B, A]), _(T, [k, E, L, O, N, j, U, B, A, D], [E, L, O]); var z = (0, r.useMemo)( function () { return i().createElement(t, (0, d.Z)({}, F, { ref: u })); }, [u, t, F] ); return (0, r.useMemo)( function () { return k ? i().createElement(h.Provider, { value: I }, z) : z; }, [h, z, I] ); } var E = u ? i().memo(S) : S; if ( ((E.WrappedComponent = t), (E.displayName = S.displayName = o), L) ) { var C = i().forwardRef(function (e, t) { return i().createElement( E, (0, d.Z)({}, e, { reactReduxForwardedRef: t }) ); }); return (C.displayName = o), (C.WrappedComponent = t), g()(C, t); } return g()(E, t); }; } function k(e, t) { return e === t ? 0 !== e || 0 !== t || 1 / e == 1 / t : e != e && t != t; } function E(e, t) { if (k(e, t)) return !0; if ( "object" != typeof e || null === e || "object" != typeof t || null === t ) return !1; var n = Object.keys(e), r = Object.keys(t); if (n.length !== r.length) return !1; for (var i = 0; i < n.length; i++) if ( !Object.prototype.hasOwnProperty.call(t, n[i]) || !k(e[n[i]], t[n[i]]) ) return !1; return !0; } function O(e) { return function (t, n) { var r = e(t, n); function i() { return r; } return (i.dependsOnOwnProps = !1), i; }; } function C(e) { return null !== e.dependsOnOwnProps && void 0 !== e.dependsOnOwnProps ? Boolean(e.dependsOnOwnProps) : 1 !== e.length; } function L(e, t) { return function (t, n) { n.displayName; var r = function (e, t) { return r.dependsOnOwnProps ? r.mapToProps(e, t) : r.mapToProps(e); }; return ( (r.dependsOnOwnProps = !0), (r.mapToProps = function (t, n) { (r.mapToProps = e), (r.dependsOnOwnProps = C(e)); var i = r(t, n); return ( "function" == typeof i && ((r.mapToProps = i), (r.dependsOnOwnProps = C(i)), (i = r(t, n))), i ); }), r ); }; } var A = [ function (e) { return "function" == typeof e ? L(e) : void 0; }, function (e) { return e ? void 0 : O(function (e) { return { dispatch: e }; }); }, function (e) { return e && "object" == typeof e ? O(function (t) { return (function (e, t) { var n = {}, r = function (r) { var i = e[r]; "function" == typeof i && (n[r] = function () { return t(i.apply(void 0, arguments)); }); }; for (var i in e) r(i); return n; })(e, t); }) : void 0; }, ]; var I = [ function (e) { return "function" == typeof e ? L(e) : void 0; }, function (e) { return e ? void 0 : O(function () { return {}; }); }, ]; function M(e, t, n) { return (0, d.Z)({}, n, e, t); } var P = [ function (e) { return "function" == typeof e ? (function (e) { return function (t, n) { n.displayName; var r, i = n.pure, o = n.areMergedPropsEqual, a = !1; return function (t, n, s) { var u = e(t, n, s); return ( a ? (i && o(u, r)) || (r = u) : ((a = !0), (r = u)), r ); }; }; })(e) : void 0; }, function (e) { return e ? void 0 : function () { return M; }; }, ]; function R(e, t, n, r) { return function (i, o) { return n(e(i, o), t(r, o), o); }; } function D(e, t, n, r, i) { var o, a, s, u, c, l = i.areStatesEqual, f = i.areOwnPropsEqual, d = i.areStatePropsEqual, p = !1; function h(i, p) { var h, g, m = !f(p, a), y = !l(i, o); return ( (o = i), (a = p), m && y ? ((s = e(o, a)), t.dependsOnOwnProps && (u = t(r, a)), (c = n(s, u, a))) : m ? (e.dependsOnOwnProps && (s = e(o, a)), t.dependsOnOwnProps && (u = t(r, a)), (c = n(s, u, a))) : y ? ((h = e(o, a)), (g = !d(h, s)), (s = h), g && (c = n(s, u, a)), c) : c ); } return function (i, l) { return p ? h(i, l) : ((s = e((o = i), (a = l))), (u = t(r, a)), (c = n(s, u, a)), (p = !0), c); }; } function j(e, t) { var n = t.initMapStateToProps, r = t.initMapDispatchToProps, i = t.initMergeProps, o = (0, p.Z)(t, [ "initMapStateToProps", "initMapDispatchToProps", "initMergeProps", ]), a = n(e, o), s = r(e, o), u = i(e, o); return (o.pure ? D : R)(a, s, u, e, o); } function N(e, t, n) { for (var r = t.length - 1; r >= 0; r--) { var i = t[r](e); if (i) return i; } return function (t, r) { throw new Error( "Invalid value of type " + typeof e + " for " + n + " argument when connecting component " + r.wrappedComponentName + "." ); }; } function B(e, t) { return e === t; } function U(e) { var t = void 0 === e ? {} : e, n = t.connectHOC, r = void 0 === n ? S : n, i = t.mapStateToPropsFactories, o = void 0 === i ? I : i, a = t.mapDispatchToPropsFactories, s = void 0 === a ? A : a, u = t.mergePropsFactories, c = void 0 === u ? P : u, l = t.selectorFactory, f = void 0 === l ? j : l; return function (e, t, n, i) { void 0 === i && (i = {}); var a = i, u = a.pure, l = void 0 === u || u, h = a.areStatesEqual, g = void 0 === h ? B : h, m = a.areOwnPropsEqual, y = void 0 === m ? E : m, v = a.areStatePropsEqual, b = void 0 === v ? E : v, _ = a.areMergedPropsEqual, w = void 0 === _ ? E : _, T = (0, p.Z)(a, [ "pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual", ]), x = N(e, o, "mapStateToProps"), S = N(t, s, "mapDispatchToProps"), k = N(n, c, "mergeProps"); return r( f, (0, d.Z)( { methodName: "connect", getDisplayName: function (e) { return "Connect(" + e + ")"; }, shouldHandleStateChanges: Boolean(e), initMapStateToProps: x, initMapDispatchToProps: S, initMergeProps: k, pure: l, areStatesEqual: g, areOwnPropsEqual: y, areStatePropsEqual: b, areMergedPropsEqual: w, }, T ) ); }; } var F = U(); function z() { return (0, r.useContext)(o); } function H(e) { void 0 === e && (e = o); var t = e === o ? z : function () { return (0, r.useContext)(e); }; return function () { return t().store; }; } var q = H(); function Z(e) { void 0 === e && (e = o); var t = e === o ? q : H(e); return function () { return t().dispatch; }; } var V = Z(), W = function (e, t) { return e === t; }; function $(e) { void 0 === e && (e = o); var t = e === o ? z : function () { return (0, r.useContext)(e); }; return function (e, n) { void 0 === n && (n = W); var i = t(), o = (function (e, t, n, i) { var o, a = (0, r.useReducer)(function (e) { return e + 1; }, 0)[1], s = (0, r.useMemo)( function () { return new c(n, i); }, [n, i] ), u = (0, r.useRef)(), f = (0, r.useRef)(), d = (0, r.useRef)(), p = (0, r.useRef)(), h = n.getState(); try { if (e !== f.current || h !== d.current || u.current) { var g = e(h); o = void 0 !== p.current && t(g, p.current) ? p.current : g; } else o = p.current; } catch (e) { throw ( (u.current && (e.message += "\nThe error may be correlated with this previous error:\n" + u.current.stack + "\n\n"), e) ); } return ( l(function () { (f.current = e), (d.current = h), (p.current = o), (u.current = void 0); }), l( function () { function e() { try { var e = n.getState(), r = f.current(e); if (t(r, p.current)) return; (p.current = r), (d.current = e); } catch (e) { u.current = e; } a(); } return ( (s.onStateChange = e), s.trySubscribe(), e(), function () { return s.tryUnsubscribe(); } ); }, [n, s] ), o ); })(e, n, i.store, i.subscription); return (0, r.useDebugValue)(o), o; }; } var G, Y = $(), K = n(73935); (G = K.unstable_batchedUpdates), (a = G); }, 2909: function (e, t, n) { "use strict"; n.d(t, { rU: function () { return N; }, OL: function () { return F; }, }); var r = n(6223), i = n(51721), o = n(28416), a = n.n(o), s = n(87462); function u(e) { return "/" === e.charAt(0); } function c(e, t) { for (var n = t, r = n + 1, i = e.length; r < i; n += 1, r += 1) e[n] = e[r]; e.pop(); } var l = function (e, t) { void 0 === t && (t = ""); var n, r = (e && e.split("/")) || [], i = (t && t.split("/")) || [], o = e && u(e), a = t && u(t), s = o || a; if ( (e && u(e) ? (i = r) : r.length && (i.pop(), (i = i.concat(r))), !i.length) ) return "/"; if (i.length) { var l = i[i.length - 1]; n = "." === l || ".." === l || "" === l; } else n = !1; for (var f = 0, d = i.length; d >= 0; d--) { var p = i[d]; "." === p ? c(i, d) : ".." === p ? (c(i, d), f++) : f && (c(i, d), f--); } if (!s) for (; f--; f) i.unshift(".."); !s || "" === i[0] || (i[0] && u(i[0])) || i.unshift(""); var h = i.join("/"); return n && "/" !== h.substr(-1) && (h += "/"), h; }, f = n(38776); function d(e) { return "/" === e.charAt(0) ? e : "/" + e; } function p(e) { return "/" === e.charAt(0) ? e.substr(1) : e; } function h(e, t) { return (function (e, t) { return ( 0 === e.toLowerCase().indexOf(t.toLowerCase()) && -1 !== "/?#".indexOf(e.charAt(t.length)) ); })(e, t) ? e.substr(t.length) : e; } function g(e) { return "/" === e.charAt(e.length - 1) ? e.slice(0, -1) : e; } function m(e) { var t = e.pathname, n = e.search, r = e.hash, i = t || "/"; return ( n && "?" !== n && (i += "?" === n.charAt(0) ? n : "?" + n), r && "#" !== r && (i += "#" === r.charAt(0) ? r : "#" + r), i ); } function y(e, t, n, r) { var i; "string" == typeof e ? ((i = (function (e) { var t = e || "/", n = "", r = "", i = t.indexOf("#"); -1 !== i && ((r = t.substr(i)), (t = t.substr(0, i))); var o = t.indexOf("?"); return ( -1 !== o && ((n = t.substr(o)), (t = t.substr(0, o))), { pathname: t, search: "?" === n ? "" : n, hash: "#" === r ? "" : r, } ); })(e)), (i.state = t)) : (void 0 === (i = (0, s.Z)({}, e)).pathname && (i.pathname = ""), i.search ? "?" !== i.search.charAt(0) && (i.search = "?" + i.search) : (i.search = ""), i.hash ? "#" !== i.hash.charAt(0) && (i.hash = "#" + i.hash) : (i.hash = ""), void 0 !== t && void 0 === i.state && (i.state = t)); try { i.pathname = decodeURI(i.pathname); } catch (e) { throw e instanceof URIError ? new URIError( 'Pathname "' + i.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.' ) : e; } return ( n && (i.key = n), r ? i.pathname ? "/" !== i.pathname.charAt(0) && (i.pathname = l(i.pathname, r.pathname)) : (i.pathname = r.pathname) : i.pathname || (i.pathname = "/"), i ); } function v() { var e = null; var t = []; return { setPrompt: function (t) { return ( (e = t), function () { e === t && (e = null); } ); }, confirmTransitionTo: function (t, n, r, i) { if (null != e) { var o = "function" == typeof e ? e(t, n) : e; "string" == typeof o ? "function" == typeof r ? r(o, i) : i(!0) : i(!1 !== o); } else i(!0); }, appendListener: function (e) { var n = !0; function r() { n && e.apply(void 0, arguments); } return ( t.push(r), function () { (n = !1), (t = t.filter(function (e) { return e !== r; })); } ); }, notifyListeners: function () { for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r]; t.forEach(function (e) { return e.apply(void 0, n); }); }, }; } var b = !( "undefined" == typeof window || !window.document || !window.document.createElement ); function _(e, t) { t(window.confirm(e)); } var w = "popstate", T = "hashchange"; function x() { try { return window.history.state || {}; } catch (e) { return {}; } } function S(e) { void 0 === e && (e = {}), b || (0, f.Z)(!1); var t, n = window.history, r = ((-1 === (t = window.navigator.userAgent).indexOf("Android 2.") && -1 === t.indexOf("Android 4.0")) || -1 === t.indexOf("Mobile Safari") || -1 !== t.indexOf("Chrome") || -1 !== t.indexOf("Windows Phone")) && window.history && "pushState" in window.history, i = !(-1 === window.navigator.userAgent.indexOf("Trident")), o = e, a = o.forceRefresh, u = void 0 !== a && a, c = o.getUserConfirmation, l = void 0 === c ? _ : c, p = o.keyLength, S = void 0 === p ? 6 : p, k = e.basename ? g(d(e.basename)) : ""; function E(e) { var t = e || {}, n = t.key, r = t.state, i = window.location, o = i.pathname + i.search + i.hash; return k && (o = h(o, k)), y(o, r, n); } function O() { return Math.random().toString(36).substr(2, S); } var C = v(); function L(e) { (0, s.Z)(z, e), (z.length = n.length), C.notifyListeners(z.location, z.action); } function A(e) { (function (e) { return ( void 0 === e.state && -1 === navigator.userAgent.indexOf("CriOS") ); })(e) || P(E(e.state)); } function I() { P(E(x())); } var M = !1; function P(e) { if (M) (M = !1), L(); else { C.confirmTransitionTo(e, "POP", l, function (t) { t ? L({ action: "POP", location: e }) : (function (e) { var t = z.location, n = D.indexOf(t.key); -1 === n && (n = 0); var r = D.indexOf(e.key); -1 === r && (r = 0); var i = n - r; i && ((M = !0), N(i)); })(e); }); } } var R = E(x()), D = [R.key]; function j(e) { return k + m(e); } function N(e) { n.go(e); } var B = 0; function U(e) { 1 === (B += e) && 1 === e ? (window.addEventListener(w, A), i && window.addEventListener(T, I)) : 0 === B && (window.removeEventListener(w, A), i && window.removeEventListener(T, I)); } var F = !1; var z = { length: n.length, action: "POP", location: R, createHref: j, push: function (e, t) { var i = "PUSH", o = y(e, t, O(), z.location); C.confirmTransitionTo(o, i, l, function (e) { if (e) { var t = j(o), a = o.key, s = o.state; if (r) if ((n.pushState({ key: a, state: s }, null, t), u)) window.location.href = t; else { var c = D.indexOf(z.location.key), l = D.slice(0, c + 1); l.push(o.key), (D = l), L({ action: i, location: o }); } else window.location.href = t; } }); }, replace: function (e, t) { var i = "REPLACE", o = y(e, t, O(), z.location); C.confirmTransitionTo(o, i, l, function (e) { if (e) { var t = j(o), a = o.key, s = o.state; if (r) if ((n.replaceState({ key: a, state: s }, null, t), u)) window.location.replace(t); else { var c = D.indexOf(z.location.key); -1 !== c && (D[c] = o.key), L({ action: i, location: o }); } else window.location.replace(t); } }); }, go: N, goBack: function () { N(-1); }, goForward: function () { N(1); }, block: function (e) { void 0 === e && (e = !1); var t = C.setPrompt(e); return ( F || (U(1), (F = !0)), function () { return F && ((F = !1), U(-1)), t(); } ); }, listen: function (e) { var t = C.appendListener(e); return ( U(1), function () { U(-1), t(); } ); }, }; return z; } var k = "hashchange", E = { hashbang: { encodePath: function (e) { return "!" === e.charAt(0) ? e : "!/" + p(e); }, decodePath: function (e) { return "!" === e.charAt(0) ? e.substr(1) : e; }, }, noslash: { encodePath: p, decodePath: d }, slash: { encodePath: d, decodePath: d }, }; function O(e) { var t = e.indexOf("#"); return -1 === t ? e : e.slice(0, t); } function C() { var e = window.location.href, t = e.indexOf("#"); return -1 === t ? "" : e.substring(t + 1); } function L(e) { window.location.replace(O(window.location.href) + "#" + e); } function A(e) { void 0 === e && (e = {}), b || (0, f.Z)(!1); var t = window.history, n = (window.navigator.userAgent.indexOf("Firefox"), e), r = n.getUserConfirmation, i = void 0 === r ? _ : r, o = n.hashType, a = void 0 === o ? "slash" : o, u = e.basename ? g(d(e.basename)) : "", c = E[a], l = c.encodePath, p = c.decodePath; function w() { var e = p(C()); return u && (e = h(e, u)), y(e); } var T = v(); function x(e) { (0, s.Z)(F, e), (F.length = t.length), T.notifyListeners(F.location, F.action); } var S = !1, A = null; function I() { var e, t, n = C(), r = l(n); if (n !== r) L(r); else { var o = w(), a = F.location; if ( !S && ((t = o), (e = a).pathname === t.pathname && e.search === t.search && e.hash === t.hash) ) return; if (A === m(o)) return; (A = null), (function (e) { if (S) (S = !1), x(); else { var t = "POP"; T.confirmTransitionTo(e, t, i, function (n) { n ? x({ action: t, location: e }) : (function (e) { var t = F.location, n = D.lastIndexOf(m(t)); -1 === n && (n = 0); var r = D.lastIndexOf(m(e)); -1 === r && (r = 0); var i = n - r; i && ((S = !0), j(i)); })(e); }); } })(o); } } var M = C(), P = l(M); M !== P && L(P); var R = w(), D = [m(R)]; function j(e) { t.go(e); } var N = 0; function B(e) { 1 === (N += e) && 1 === e ? window.addEventListener(k, I) : 0 === N && window.removeEventListener(k, I); } var U = !1; var F = { length: t.length, action: "POP", location: R, createHref: function (e) { var t = document.querySelector("base"), n = ""; return ( t && t.getAttribute("href") && (n = O(window.location.href)), n + "#" + l(u + m(e)) ); }, push: function (e, t) { var n = "PUSH", r = y(e, void 0, void 0, F.location); T.confirmTransitionTo(r, n, i, function (e) { if (e) { var t = m(r), i = l(u + t); if (C() !== i) { (A = t), (function (e) { window.location.hash = e; })(i); var o = D.lastIndexOf(m(F.location)), a = D.slice(0, o + 1); a.push(t), (D = a), x({ action: n, location: r }); } else x(); } }); }, replace: function (e, t) { var n = "REPLACE", r = y(e, void 0, void 0, F.location); T.confirmTransitionTo(r, n, i, function (e) { if (e) { var t = m(r), i = l(u + t); C() !== i && ((A = t), L(i)); var o = D.indexOf(m(F.location)); -1 !== o && (D[o] = t), x({ action: n, location: r }); } }); }, go: j, goBack: function () { j(-1); }, goForward: function () { j(1); }, block: function (e) { void 0 === e && (e = !1); var t = T.setPrompt(e); return ( U || (B(1), (U = !0)), function () { return U && ((U = !1), B(-1)), t(); } ); }, listen: function (e) { var t = T.appendListener(e); return ( B(1), function () { B(-1), t(); } ); }, }; return F; } var I = n(63366); a().Component; a().Component; var M = function (e, t) { return "function" == typeof e ? e(t) : e; }, P = function (e, t) { return "string" == typeof e ? y(e, null, null, t) : e; }, R = function (e) { return e; }, D = a().forwardRef; void 0 === D && (D = R); var j = D(function (e, t) { var n = e.innerRef, r = e.navigate, i = e.onClick, o = (0, I.Z)(e, ["innerRef", "navigate", "onClick"]), u = o.target, c = (0, s.Z)({}, o, { onClick: function (e) { try { i && i(e); } catch (t) { throw (e.preventDefault(), t); } e.defaultPrevented || 0 !== e.button || (u && "_self" !== u) || (function (e) { return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey); })(e) || (e.preventDefault(), r()); }, }); return (c.ref = (R !== D && t) || n), a().createElement("a", c); }); var N = D(function (e, t) { var n = e.component, i = void 0 === n ? j : n, o = e.replace, u = e.to, c = e.innerRef, l = (0, I.Z)(e, ["component", "replace", "to", "innerRef"]); return a().createElement(r.s6.Consumer, null, function (e) { e || (0, f.Z)(!1); var n = e.history, r = P(M(u, e.location), e.location), d = r ? n.createHref(r) : "", p = (0, s.Z)({}, l, { href: d, navigate: function () { var t = M(u, e.location), r = m(e.location) === m(P(t)); (o || r ? n.replace : n.push)(t); }, }); return ( R !== D ? (p.ref = t || c) : (p.innerRef = c), a().createElement(i, p) ); }); }), B = function (e) { return e; }, U = a().forwardRef; void 0 === U && (U = B); var F = U(function (e, t) { var n = e["aria-current"], i = void 0 === n ? "page" : n, o = e.activeClassName, u = void 0 === o ? "active" : o, c = e.activeStyle, l = e.className, d = e.exact, p = e.isActive, h = e.location, g = e.sensitive, m = e.strict, y = e.style, v = e.to, b = e.innerRef, _ = (0, I.Z)(e, [ "aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef", ]); return a().createElement(r.s6.Consumer, null, function (e) { e || (0, f.Z)(!1); var n = h || e.location, o = P(M(v, n), n), w = o.pathname, T = w && w.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"), x = T ? (0, r.LX)(n.pathname, { path: T, exact: d, sensitive: g, strict: m, }) : null, S = !!(p ? p(x, n) : x), k = "function" == typeof l ? l(S) : l, E = "function" == typeof y ? y(S) : y; S && ((k = (function () { for ( var e = arguments.length, t = new Array(e), n = 0; n < e; n++ ) t[n] = arguments[n]; return t .filter(function (e) { return e; }) .join(" "); })(k, u)), (E = (0, s.Z)({}, E, c))); var O = (0, s.Z)( { "aria-current": (S && i) || null, className: k, style: E, to: o }, _ ); return ( B !== U ? (O.ref = t || b) : (O.innerRef = b), a().createElement(N, O) ); }); }); }, 6223: function (e, t, n) { "use strict"; n.d(t, { l_: function () { return N; }, AW: function () { return z; }, F0: function () { return M; }, rs: function () { return $; }, s6: function () { return I; }, LX: function () { return F; }, k6: function () { return K; }, TH: function () { return X; }, UO: function () { return Q; }, $B: function () { return J; }, EN: function () { return G; }, }); var r = n(51721), i = n(28416), o = n.n(i), a = n(88462), s = n.n(a), u = n(87462); function c(e) { return "/" === e.charAt(0); } function l(e, t) { for (var n = t, r = n + 1, i = e.length; r < i; n += 1, r += 1) e[n] = e[r]; e.pop(); } var f = function (e, t) { void 0 === t && (t = ""); var n, r = (e && e.split("/")) || [], i = (t && t.split("/")) || [], o = e && c(e), a = t && c(t), s = o || a; if ( (e && c(e) ? (i = r) : r.length && (i.pop(), (i = i.concat(r))), !i.length) ) return "/"; if (i.length) { var u = i[i.length - 1]; n = "." === u || ".." === u || "" === u; } else n = !1; for (var f = 0, d = i.length; d >= 0; d--) { var p = i[d]; "." === p ? l(i, d) : ".." === p ? (l(i, d), f++) : f && (l(i, d), f--); } if (!s) for (; f--; f) i.unshift(".."); !s || "" === i[0] || (i[0] && c(i[0])) || i.unshift(""); var h = i.join("/"); return n && "/" !== h.substr(-1) && (h += "/"), h; }; function d(e) { return e.valueOf ? e.valueOf() : Object.prototype.valueOf.call(e); } var p = function e(t, n) { if (t === n) return !0; if (null == t || null == n) return !1; if (Array.isArray(t)) return ( Array.isArray(n) && t.length === n.length && t.every(function (t, r) { return e(t, n[r]); }) ); if ("object" == typeof t || "object" == typeof n) { var r = d(t), i = d(n); return r !== t || i !== n ? e(r, i) : Object.keys(Object.assign({}, t, n)).every(function (r) { return e(t[r], n[r]); }); } return !1; }; function h(e) { var t = e.pathname, n = e.search, r = e.hash, i = t || "/"; return ( n && "?" !== n && (i += "?" === n.charAt(0) ? n : "?" + n), r && "#" !== r && (i += "#" === r.charAt(0) ? r : "#" + r), i ); } function g(e, t, n, r) { var i; "string" == typeof e ? ((i = (function (e) { var t = e || "/", n = "", r = "", i = t.indexOf("#"); -1 !== i && ((r = t.substr(i)), (t = t.substr(0, i))); var o = t.indexOf("?"); return ( -1 !== o && ((n = t.substr(o)), (t = t.substr(0, o))), { pathname: t, search: "?" === n ? "" : n, hash: "#" === r ? "" : r, } ); })(e)), (i.state = t)) : (void 0 === (i = (0, u.Z)({}, e)).pathname && (i.pathname = ""), i.search ? "?" !== i.search.charAt(0) && (i.search = "?" + i.search) : (i.search = ""), i.hash ? "#" !== i.hash.charAt(0) && (i.hash = "#" + i.hash) : (i.hash = ""), void 0 !== t && void 0 === i.state && (i.state = t)); try { i.pathname = decodeURI(i.pathname); } catch (e) { throw e instanceof URIError ? new URIError( 'Pathname "' + i.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.' ) : e; } return ( n && (i.key = n), r ? i.pathname ? "/" !== i.pathname.charAt(0) && (i.pathname = f(i.pathname, r.pathname)) : (i.pathname = r.pathname) : i.pathname || (i.pathname = "/"), i ); } function m() { var e = null; var t = []; return { setPrompt: function (t) { return ( (e = t), function () { e === t && (e = null); } ); }, confirmTransitionTo: function (t, n, r, i) { if (null != e) { var o = "function" == typeof e ? e(t, n) : e; "string" == typeof o ? "function" == typeof r ? r(o, i) : i(!0) : i(!1 !== o); } else i(!0); }, appendListener: function (e) { var n = !0; function r() { n && e.apply(void 0, arguments); } return ( t.push(r), function () { (n = !1), (t = t.filter(function (e) { return e !== r; })); } ); }, notifyListeners: function () { for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r]; t.forEach(function (e) { return e.apply(void 0, n); }); }, }; } "undefined" == typeof window || !window.document || window.document.createElement; function y(e, t, n) { return Math.min(Math.max(e, t), n); } function v(e) { void 0 === e && (e = {}); var t = e, n = t.getUserConfirmation, r = t.initialEntries, i = void 0 === r ? ["/"] : r, o = t.initialIndex, a = void 0 === o ? 0 : o, s = t.keyLength, c = void 0 === s ? 6 : s, l = m(); function f(e) { (0, u.Z)(w, e), (w.length = w.entries.length), l.notifyListeners(w.location, w.action); } function d() { return Math.random().toString(36).substr(2, c); } var p = y(a, 0, i.length - 1), v = i.map(function (e) { return g(e, void 0, "string" == typeof e ? d() : e.key || d()); }), b = h; function _(e) { var t = y(w.index + e, 0, w.entries.length - 1), r = w.entries[t]; l.confirmTransitionTo(r, "POP", n, function (e) { e ? f({ action: "POP", location: r, index: t }) : f(); }); } var w = { length: v.length, action: "POP", location: v[p], index: p, entries: v, createHref: b, push: function (e, t) { var r = "PUSH", i = g(e, t, d(), w.location); l.confirmTransitionTo(i, r, n, function (e) { if (e) { var t = w.index + 1, n = w.entries.slice(0); n.length > t ? n.splice(t, n.length - t, i) : n.push(i), f({ action: r, location: i, index: t, entries: n }); } }); }, replace: function (e, t) { var r = "REPLACE", i = g(e, t, d(), w.location); l.confirmTransitionTo(i, r, n, function (e) { e && ((w.entries[w.index] = i), f({ action: r, location: i })); }); }, go: _, goBack: function () { _(-1); }, goForward: function () { _(1); }, canGo: function (e) { var t = w.index + e; return t >= 0 && t < w.entries.length; }, block: function (e) { return void 0 === e && (e = !1), l.setPrompt(e); }, listen: function (e) { return l.appendListener(e); }, }; return w; } var b = n(38776), _ = n(39658), w = n.n(_), T = (n(59864), n(63366)), x = n(8679), S = n.n(x), k = 1073741823, E = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== n.g ? n.g : {}; function O(e) { var t = []; return { on: function (e) { t.push(e); }, off: function (e) { t = t.filter(function (t) { return t !== e; }); }, get: function () { return e; }, set: function (n, r) { (e = n), t.forEach(function (t) { return t(e, r); }); }, }; } var C = o().createContext || function (e, t) { var n, i, a = "__create-react-context-" + (function () { var e = "__global_unique_id__"; return (E[e] = (E[e] || 0) + 1); })() + "__", u = (function (e) { function n() { for ( var t, n = arguments.length, r = new Array(n), i = 0; i < n; i++ ) r[i] = arguments[i]; return ( ((t = e.call.apply(e, [this].concat(r)) || this).emitter = O(t.props.value)), t ); } (0, r.Z)(n, e); var i = n.prototype; return ( (i.getChildContext = function () { var e; return ((e = {})[a] = this.emitter), e; }), (i.componentWillReceiveProps = function (e) { if (this.props.value !== e.value) { var n, r = this.props.value, i = e.value; ( (o = r) === (a = i) ? 0 !== o || 1 / o == 1 / a : o != o && a != a ) ? (n = 0) : ((n = "function" == typeof t ? t(r, i) : k), 0 !== (n |= 0) && this.emitter.set(e.value, n)); } var o, a; }), (i.render = function () { return this.props.children; }), n ); })(o().Component); u.childContextTypes = (((n = {})[a] = s().object.isRequired), n); var c = (function (t) { function n() { for ( var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++ ) r[i] = arguments[i]; return ( ((e = t.call.apply(t, [this].concat(r)) || this).observedBits = void 0), (e.state = { value: e.getValue() }), (e.onUpdate = function (t, n) { 0 != ((0 | e.observedBits) & n) && e.setState({ value: e.getValue() }); }), e ); } (0, r.Z)(n, t); var i = n.prototype; return ( (i.componentWillReceiveProps = function (e) { var t = e.observedBits; this.observedBits = null == t ? k : t; }), (i.componentDidMount = function () { this.context[a] && this.context[a].on(this.onUpdate); var e = this.props.observedBits; this.observedBits = null == e ? k : e; }), (i.componentWillUnmount = function () { this.context[a] && this.context[a].off(this.onUpdate); }), (i.getValue = function () { return this.context[a] ? this.context[a].get() : e; }), (i.render = function () { return ((e = this.props.children), Array.isArray(e) ? e[0] : e)(this.state.value); var e; }), n ); })(o().Component); return ( (c.contextTypes = (((i = {})[a] = s().object), i)), { Provider: u, Consumer: c } ); }, L = function (e) { var t = C(); return (t.displayName = e), t; }, A = L("Router-History"), I = L("Router"), M = (function (e) { function t(t) { var n; return ( ((n = e.call(this, t) || this).state = { location: t.history.location, }), (n._isMounted = !1), (n._pendingLocation = null), t.staticContext || (n.unlisten = t.history.listen(function (e) { n._pendingLocation = e; })), n ); } (0, r.Z)(t, e), (t.computeRootMatch = function (e) { return { path: "/", url: "/", params: {}, isExact: "/" === e }; }); var n = t.prototype; return ( (n.componentDidMount = function () { var e = this; (this._isMounted = !0), this.unlisten && this.unlisten(), this.props.staticContext || (this.unlisten = this.props.history.listen(function (t) { e._isMounted && e.setState({ location: t }); })), this._pendingLocation && this.setState({ location: this._pendingLocation }); }), (n.componentWillUnmount = function () { this.unlisten && (this.unlisten(), (this._isMounted = !1), (this._pendingLocation = null)); }), (n.render = function () { return o().createElement( I.Provider, { value: { history: this.props.history, location: this.state.location, match: t.computeRootMatch(this.state.location.pathname), staticContext: this.props.staticContext, }, }, o().createElement(A.Provider, { children: this.props.children || null, value: this.props.history, }) ); }), t ); })(o().Component); o().Component; var P = (function (e) { function t() { return e.apply(this, arguments) || this; } (0, r.Z)(t, e); var n = t.prototype; return ( (n.componentDidMount = function () { this.props.onMount && this.props.onMount.call(this, this); }), (n.componentDidUpdate = function (e) { this.props.onUpdate && this.props.onUpdate.call(this, this, e); }), (n.componentWillUnmount = function () { this.props.onUnmount && this.props.onUnmount.call(this, this); }), (n.render = function () { return null; }), t ); })(o().Component); var R = {}, D = 0; function j(e, t) { return ( void 0 === e && (e = "/"), void 0 === t && (t = {}), "/" === e ? e : (function (e) { if (R[e]) return R[e]; var t = w().compile(e); return D < 1e4 && ((R[e] = t), D++), t; })(e)(t, { pretty: !0 }) ); } function N(e) { var t = e.computedMatch, n = e.to, r = e.push, i = void 0 !== r && r; return o().createElement(I.Consumer, null, function (e) { e || (0, b.Z)(!1); var r = e.history, a = e.staticContext, s = i ? r.push : r.replace, c = g( t ? "string" == typeof n ? j(n, t.params) : (0, u.Z)({}, n, { pathname: j(n.pathname, t.params) }) : n ); return a ? (s(c), null) : o().createElement(P, { onMount: function () { s(c); }, onUpdate: function (e, t) { var n, r, i = g(t.to); (n = i), (r = (0, u.Z)({}, c, { key: i.key })), (n.pathname === r.pathname && n.search === r.search && n.hash === r.hash && n.key === r.key && p(n.state, r.state)) || s(c); }, to: n, }); }); } var B = {}, U = 0; function F(e, t) { void 0 === t && (t = {}), ("string" == typeof t || Array.isArray(t)) && (t = { path: t }); var n = t, r = n.path, i = n.exact, o = void 0 !== i && i, a = n.strict, s = void 0 !== a && a, u = n.sensitive, c = void 0 !== u && u; return [].concat(r).reduce(function (t, n) { if (!n && "" !== n) return null; if (t) return t; var r = (function (e, t) { var n = "" + t.end + t.strict + t.sensitive, r = B[n] || (B[n] = {}); if (r[e]) return r[e]; var i = [], o = { regexp: w()(e, i, t), keys: i }; return U < 1e4 && ((r[e] = o), U++), o; })(n, { end: o, strict: s, sensitive: c }), i = r.regexp, a = r.keys, u = i.exec(e); if (!u) return null; var l = u[0], f = u.slice(1), d = e === l; return o && !d ? null : { path: n, url: "/" === n && "" === l ? "/" : l, isExact: d, params: a.reduce(function (e, t, n) { return (e[t.name] = f[n]), e; }, {}), }; }, null); } var z = (function (e) { function t() { return e.apply(this, arguments) || this; } return ( (0, r.Z)(t, e), (t.prototype.render = function () { var e = this; return o().createElement(I.Consumer, null, function (t) { t || (0, b.Z)(!1); var n = e.props.location || t.location, r = e.props.computedMatch ? e.props.computedMatch : e.props.path ? F(n.pathname, e.props) : t.match, i = (0, u.Z)({}, t, { location: n, match: r }), a = e.props, s = a.children, c = a.component, l = a.render; return ( Array.isArray(s) && (function (e) { return 0 === o().Children.count(e); })(s) && (s = null), o().createElement( I.Provider, { value: i }, i.match ? s ? "function" == typeof s ? s(i) : s : c ? o().createElement(c, i) : l ? l(i) : null : "function" == typeof s ? s(i) : null ) ); }); }), t ); })(o().Component); function H(e) { return "/" === e.charAt(0) ? e : "/" + e; } function q(e, t) { if (!e) return t; var n = H(e); return 0 !== t.pathname.indexOf(n) ? t : (0, u.Z)({}, t, { pathname: t.pathname.substr(n.length) }); } function Z(e) { return "string" == typeof e ? e : h(e); } function V(e) { return function () { (0, b.Z)(!1); }; } function W() {} o().Component; var $ = (function (e) { function t() { return e.apply(this, arguments) || this; } return ( (0, r.Z)(t, e), (t.prototype.render = function () { var e = this; return o().createElement(I.Consumer, null, function (t) { t || (0, b.Z)(!1); var n, r, i = e.props.location || t.location; return ( o().Children.forEach(e.props.children, function (e) { if (null == r && o().isValidElement(e)) { n = e; var a = e.props.path || e.props.from; r = a ? F(i.pathname, (0, u.Z)({}, e.props, { path: a })) : t.match; } }), r ? o().cloneElement(n, { location: i, computedMatch: r }) : null ); }); }), t ); })(o().Component); function G(e) { var t = "withRouter(" + (e.displayName || e.name) + ")", n = function (t) { var n = t.wrappedComponentRef, r = (0, T.Z)(t, ["wrappedComponentRef"]); return o().createElement(I.Consumer, null, function (t) { return ( t || (0, b.Z)(!1), o().createElement(e, (0, u.Z)({}, r, t, { ref: n })) ); }); }; return (n.displayName = t), (n.WrappedComponent = e), S()(n, e); } var Y = o().useContext; function K() { return Y(A); } function X() { return Y(I).location; } function Q() { var e = Y(I).match; return e ? e.params : {}; } function J(e) { var t = X(), n = Y(I).match; return e ? F(t.pathname, e) : n; } }, 76585: function (e) { e.exports = Array.isArray || function (e) { return "[object Array]" == Object.prototype.toString.call(e); }; }, 39658: function (e, t, n) { var r = n(76585); (e.exports = p), (e.exports.parse = o), (e.exports.compile = function (e, t) { return s(o(e, t), t); }), (e.exports.tokensToFunction = s), (e.exports.tokensToRegExp = d); var i = new RegExp( [ "(\\\\.)", "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))", ].join("|"), "g" ); function o(e, t) { for ( var n, r = [], o = 0, a = 0, s = "", l = (t && t.delimiter) || "/"; null != (n = i.exec(e)); ) { var f = n[0], d = n[1], p = n.index; if (((s += e.slice(a, p)), (a = p + f.length), d)) s += d[1]; else { var h = e[a], g = n[2], m = n[3], y = n[4], v = n[5], b = n[6], _ = n[7]; s && (r.push(s), (s = "")); var w = null != g && null != h && h !== g, T = "+" === b || "*" === b, x = "?" === b || "*" === b, S = n[2] || l, k = y || v; r.push({ name: m || o++, prefix: g || "", delimiter: S, optional: x, repeat: T, partial: w, asterisk: !!_, pattern: k ? c(k) : _ ? ".*" : "[^" + u(S) + "]+?", }); } } return a < e.length && (s += e.substr(a)), s && r.push(s), r; } function a(e) { return encodeURI(e).replace(/[\/?#]/g, function (e) { return "%" + e.charCodeAt(0).toString(16).toUpperCase(); }); } function s(e, t) { for (var n = new Array(e.length), i = 0; i < e.length; i++) "object" == typeof e[i] && (n[i] = new RegExp("^(?:" + e[i].pattern + ")$", f(t))); return function (t, i) { for ( var o = "", s = t || {}, u = (i || {}).pretty ? a : encodeURIComponent, c = 0; c < e.length; c++ ) { var l = e[c]; if ("string" != typeof l) { var f, d = s[l.name]; if (null == d) { if (l.optional) { l.partial && (o += l.prefix); continue; } throw new TypeError('Expected "' + l.name + '" to be defined'); } if (r(d)) { if (!l.repeat) throw new TypeError( 'Expected "' + l.name + '" to not repeat, but received `' + JSON.stringify(d) + "`" ); if (0 === d.length) { if (l.optional) continue; throw new TypeError( 'Expected "' + l.name + '" to not be empty' ); } for (var p = 0; p < d.length; p++) { if (((f = u(d[p])), !n[c].test(f))) throw new TypeError( 'Expected all "' + l.name + '" to match "' + l.pattern + '", but received `' + JSON.stringify(f) + "`" ); o += (0 === p ? l.prefix : l.delimiter) + f; } } else { if ( ((f = l.asterisk ? encodeURI(d).replace(/[?#]/g, function (e) { return "%" + e.charCodeAt(0).toString(16).toUpperCase(); }) : u(d)), !n[c].test(f)) ) throw new TypeError( 'Expected "' + l.name + '" to match "' + l.pattern + '", but received "' + f + '"' ); o += l.prefix + f; } } else o += l; } return o; }; } function u(e) { return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1"); } function c(e) { return e.replace(/([=!:$\/()])/g, "\\$1"); } function l(e, t) { return (e.keys = t), e; } function f(e) { return e && e.sensitive ? "" : "i"; } function d(e, t, n) { r(t) || ((n = t || n), (t = [])); for ( var i = (n = n || {}).strict, o = !1 !== n.end, a = "", s = 0; s < e.length; s++ ) { var c = e[s]; if ("string" == typeof c) a += u(c); else { var d = u(c.prefix), p = "(?:" + c.pattern + ")"; t.push(c), c.repeat && (p += "(?:" + d + p + ")*"), (a += p = c.optional ? c.partial ? d + "(" + p + ")?" : "(?:" + d + "(" + p + "))?" : d + "(" + p + ")"); } } var h = u(n.delimiter || "/"), g = a.slice(-h.length) === h; return ( i || (a = (g ? a.slice(0, -h.length) : a) + "(?:" + h + "(?=$))?"), (a += o ? "$" : i && g ? "" : "(?=" + h + "|$)"), l(new RegExp("^" + a, f(n)), t) ); } function p(e, t, n) { return ( r(t) || ((n = t || n), (t = [])), (n = n || {}), e instanceof RegExp ? (function (e, t) { var n = e.source.match(/\((?!\?)/g); if (n) for (var r = 0; r < n.length; r++) t.push({ name: r, prefix: null, delimiter: null, optional: !1, repeat: !1, partial: !1, asterisk: !1, pattern: null, }); return l(e, t); })(e, t) : r(e) ? (function (e, t, n) { for (var r = [], i = 0; i < e.length; i++) r.push(p(e[i], t, n).source); return l(new RegExp("(?:" + r.join("|") + ")", f(n)), t); })(e, t, n) : (function (e, t, n) { return d(o(e, n), t, n); })(e, t, n) ); } }, 45872: function (e, t, n) { "use strict"; var r = n(4795); function i() {} function o() {} (o.resetWarningCache = i), (e.exports = function () { function e(e, t, n, i, o, a) { if (a !== r) { var s = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" ); throw ((s.name = "Invariant Violation"), s); } } function t() { return e; } e.isRequired = e; var n = { array: e, bigint: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: t, element: e, elementType: e, instanceOf: t, node: e, objectOf: t, oneOf: t, oneOfType: t, shape: t, exact: t, checkPropTypes: o, resetWarningCache: i, }; return (n.PropTypes = n), n; }); }, 88462: function (e, t, n) { e.exports = n(45872)(); }, 4795: function (e) { "use strict"; e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; }, 48477: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), i = a(n(28416)), o = a(n(31093)); function a(e) { return e && e.__esModule ? e : { default: e }; } function s(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function u(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; } var c = (function (e) { function t() { return ( s(this, t), u( this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments) ) ); } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), r(t, [ { key: "render", value: function () { return i.default.createElement( "input", this.props, this.props.children ); }, }, ]), t ); })(i.default.Component); t.default = (0, o.default)(c); }, 35343: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = Object.assign || 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; }, i = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), o = u(n(28416)), a = u(n(18e3)), s = u(n(52987)); function u(e) { return e && e.__esModule ? e : { default: e }; } function c(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function l(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; } var f = (function (e) { function t() { return ( c(this, t), l( this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments) ) ); } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), i(t, [ { key: "render", value: function () { var e = this, t = r({}, this.props); return ( t.parentBindings && delete t.parentBindings, o.default.createElement( "div", r({}, t, { ref: function (t) { e.props.parentBindings.domNode = t; }, }), this.props.children ) ); }, }, ]), t ); })(o.default.Component); (f.propTypes = { name: s.default.string, id: s.default.string }), (t.default = (0, a.default)(f)); }, 68939: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = o(n(28416)), i = o(n(31093)); function o(e) { return e && e.__esModule ? e : { default: e }; } function a(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function s(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; } var u = (function (e) { function t() { var e, n, i; a(this, t); for (var o = arguments.length, u = Array(o), c = 0; c < o; c++) u[c] = arguments[c]; return ( (n = i = s( this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( e, [this].concat(u) ) )), (i.render = function () { return r.default.createElement("a", i.props, i.props.children); }), s(i, n) ); } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), t ); })(r.default.Component); t.default = (0, i.default)(u); }, 66261: function (e, t, n) { "use strict"; t.zW = void 0; var r = p(n(68939)), i = p(n(48477)), o = p(n(35343)), a = p(n(82628)), s = p(n(64592)), u = p(n(87606)), c = p(n(53200)), l = p(n(31093)), f = p(n(18e3)), d = p(n(98482)); function p(e) { return e && e.__esModule ? e : { default: e }; } r.default, i.default, o.default, a.default, (t.zW = s.default), u.default, c.default, l.default, f.default, d.default, (t.ZP = { Link: r.default, Button: i.default, Element: o.default, scroller: a.default, Events: s.default, scrollSpy: u.default, animateScroll: c.default, ScrollLink: l.default, ScrollElement: f.default, Helpers: d.default, }); }, 98482: function (e, t, n) { "use strict"; var r = Object.assign || 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; }, i = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(); function o(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function a(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; } function s(e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); } var u = n(28416), c = (n(73935), n(54259), n(87606)), l = n(82628), f = n(52987), d = n(29678), p = { to: f.string.isRequired, containerId: f.string, container: f.object, activeClass: f.string, spy: f.bool, smooth: f.oneOfType([f.bool, f.string]), offset: f.number, delay: f.number, isDynamic: f.bool, onClick: f.func, duration: f.oneOfType([f.number, f.func]), absolute: f.bool, onSetActive: f.func, onSetInactive: f.func, ignoreCancelEvents: f.bool, hashSpy: f.bool, }, h = { Scroll: function (e, t) { console.warn("Helpers.Scroll is deprecated since v1.7.0"); var n = t || l, f = (function (t) { function l(e) { o(this, l); var t = a( this, (l.__proto__ || Object.getPrototypeOf(l)).call(this, e) ); return h.call(t), (t.state = { active: !1 }), t; } return ( s(l, t), i(l, [ { key: "getScrollSpyContainer", value: function () { var e = this.props.containerId, t = this.props.container; return e ? document.getElementById(e) : t && t.nodeType ? t : document; }, }, { key: "componentDidMount", value: function () { if (this.props.spy || this.props.hashSpy) { var e = this.getScrollSpyContainer(); c.isMounted(e) || c.mount(e), this.props.hashSpy && (d.isMounted() || d.mount(n), d.mapContainer(this.props.to, e)), this.props.spy && c.addStateHandler(this.stateHandler), c.addSpyHandler(this.spyHandler, e), this.setState({ container: e }); } }, }, { key: "componentWillUnmount", value: function () { c.unmount(this.stateHandler, this.spyHandler); }, }, { key: "render", value: function () { var t = ""; t = this.state && this.state.active ? ( (this.props.className || "") + " " + (this.props.activeClass || "active") ).trim() : this.props.className; var n = r({}, this.props); for (var i in p) n.hasOwnProperty(i) && delete n[i]; return ( (n.className = t), (n.onClick = this.handleClick), u.createElement(e, n) ); }, }, ]), l ); })(u.Component), h = function () { var e = this; (this.scrollTo = function (t, i) { n.scrollTo(t, r({}, e.state, i)); }), (this.handleClick = function (t) { e.props.onClick && e.props.onClick(t), t.stopPropagation && t.stopPropagation(), t.preventDefault && t.preventDefault(), e.scrollTo(e.props.to, e.props); }), (this.stateHandler = function () { n.getActiveLink() !== e.props.to && (null !== e.state && e.state.active && e.props.onSetInactive && e.props.onSetInactive(), e.setState({ active: !1 })); }), (this.spyHandler = function (t) { var r = e.getScrollSpyContainer(); if (!d.isMounted() || d.isInitialized()) { var i = e.props.to, o = null, a = 0, s = 0, u = 0; if (r.getBoundingClientRect) u = r.getBoundingClientRect().top; if (!o || e.props.isDynamic) { if (!(o = n.get(i))) return; var l = o.getBoundingClientRect(); s = (a = l.top - u + t) + l.height; } var f = t - e.props.offset, p = f >= Math.floor(a) && f < Math.floor(s), h = f < Math.floor(a) || f >= Math.floor(s), g = n.getActiveLink(); return h ? (i === g && n.setActiveLink(void 0), e.props.hashSpy && d.getHash() === i && d.changeHash(), e.props.spy && e.state.active && (e.setState({ active: !1 }), e.props.onSetInactive && e.props.onSetInactive()), c.updateStates()) : p && g !== i ? (n.setActiveLink(i), e.props.hashSpy && d.changeHash(i), e.props.spy && (e.setState({ active: !0 }), e.props.onSetActive && e.props.onSetActive(i)), c.updateStates()) : void 0; } }); }; return (f.propTypes = p), (f.defaultProps = { offset: 0 }), f; }, Element: function (e) { console.warn("Helpers.Element is deprecated since v1.7.0"); var t = (function (t) { function n(e) { o(this, n); var t = a( this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, e) ); return (t.childBindings = { domNode: null }), t; } return ( s(n, t), i(n, [ { key: "componentDidMount", value: function () { if ("undefined" == typeof window) return !1; this.registerElems(this.props.name); }, }, { key: "componentWillReceiveProps", value: function (e) { this.props.name !== e.name && this.registerElems(e.name); }, }, { key: "componentWillUnmount", value: function () { if ("undefined" == typeof window) return !1; l.unregister(this.props.name); }, }, { key: "registerElems", value: function (e) { l.register(e, this.childBindings.domNode); }, }, { key: "render", value: function () { return u.createElement( e, r({}, this.props, { parentBindings: this.childBindings, }) ); }, }, ]), n ); })(u.Component); return (t.propTypes = { name: f.string, id: f.string }), t; }, }; e.exports = h; }, 53200: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = Object.assign || 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; }, i = (s(n(54259)), s(n(89765))), o = s(n(50140)), a = s(n(64592)); function s(e) { return e && e.__esModule ? e : { default: e }; } var u = function (e) { return i.default[e.smooth] || i.default.defaultEasing; }, c = (function () { if ("undefined" != typeof window) return ( window.requestAnimationFrame || window.webkitRequestAnimationFrame ); })() || function (e, t, n) { window.setTimeout(e, n || 1e3 / 60, new Date().getTime()); }, l = function (e) { var t = e.data.containerElement; if (t && t !== document && t !== document.body) return t.scrollTop; var n = void 0 !== window.pageXOffset, r = "CSS1Compat" === (document.compatMode || ""); return n ? window.pageYOffset : r ? document.documentElement.scrollTop : document.body.scrollTop; }, f = function e(t, n, r) { var i = n.data; if (n.ignoreCancelEvents || !i.cancel) if ( ((i.deltaTop = Math.round(i.targetPositionY - i.startPositionY)), null === i.start && (i.start = r), (i.progress = r - i.start), (i.percent = i.progress >= i.duration ? 1 : t(i.progress / i.duration)), (i.currentPositionY = i.startPositionY + Math.ceil(i.deltaTop * i.percent)), i.containerElement && i.containerElement !== document && i.containerElement !== document.body ? (i.containerElement.scrollTop = i.currentPositionY) : window.scrollTo(0, i.currentPositionY), i.percent < 1) ) { var o = e.bind(null, t, n); c.call(window, o); } else a.default.registered.end && a.default.registered.end(i.to, i.target, i.currentPositionY); else a.default.registered.end && a.default.registered.end(i.to, i.target, i.currentPositionY); }, d = function (e) { e.data.containerElement = e ? e.containerId ? document.getElementById(e.containerId) : e.container && e.container.nodeType ? e.container : document : null; }, p = function (e, t, n, r) { if ( ((t.data = t.data || { currentPositionY: 0, startPositionY: 0, targetPositionY: 0, progress: 0, duration: 0, cancel: !1, target: null, containerElement: null, to: null, start: null, deltaTop: null, percent: null, delayTimeout: null, }), window.clearTimeout(t.data.delayTimeout), o.default.subscribe(function () { t.data.cancel = !0; }), d(t), (t.data.start = null), (t.data.cancel = !1), (t.data.startPositionY = l(t)), (t.data.targetPositionY = t.absolute ? e : e + t.data.startPositionY), t.data.startPositionY !== t.data.targetPositionY) ) { var i; (t.data.deltaTop = Math.round( t.data.targetPositionY - t.data.startPositionY )), (t.data.duration = ( "function" == typeof (i = t.duration) ? i : function () { return i; } )(t.data.deltaTop)), (t.data.duration = isNaN(parseFloat(t.data.duration)) ? 1e3 : parseFloat(t.data.duration)), (t.data.to = n), (t.data.target = r); var s = u(t), p = f.bind(null, s, t); t && t.delay > 0 ? (t.data.delayTimeout = window.setTimeout(function () { c.call(window, p); }, t.delay)) : c.call(window, p); } else a.default.registered.end && a.default.registered.end( t.data.to, t.data.target, t.data.currentPositionY ); }, h = function (e) { return ( ((e = r({}, e)).data = e.data || { currentPositionY: 0, startPositionY: 0, targetPositionY: 0, progress: 0, duration: 0, cancel: !1, target: null, containerElement: null, to: null, start: null, deltaTop: null, percent: null, delayTimeout: null, }), (e.absolute = !0), e ); }; t.default = { animateTopScroll: p, getAnimationType: u, scrollToTop: function (e) { p(0, h(e)); }, scrollToBottom: function (e) { (e = h(e)), d(e), p( (function (e) { var t = e.data.containerElement; if (t && t !== document && t !== document.body) return Math.max( t.scrollHeight, t.offsetHeight, t.clientHeight ); var n = document.body, r = document.documentElement; return Math.max( n.scrollHeight, n.offsetHeight, r.clientHeight, r.scrollHeight, r.offsetHeight ); })(e), e ); }, scrollTo: function (e, t) { p(e, h(t)); }, scrollMore: function (e, t) { (t = h(t)), d(t), p(l(t) + e, t); }, }; }, 50140: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = n(55236), i = ["mousedown", "mousewheel", "touchmove", "keydown"]; t.default = { subscribe: function (e) { return ( "undefined" != typeof document && i.forEach(function (t) { return (0, r.addPassiveEventListener)(document, t, e); }) ); }, }; }, 55236: function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); (t.addPassiveEventListener = function (e, t, n) { var r = (function () { var e = !1; try { var t = Object.defineProperty({}, "passive", { get: function () { e = !0; }, }); window.addEventListener("test", null, t); } catch (e) {} return e; })(); e.addEventListener(t, n, !!r && { passive: !0 }); }), (t.removePassiveEventListener = function (e, t, n) { e.removeEventListener(t, n); }); }, 18e3: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = Object.assign || 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; }, i = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), o = u(n(28416)), a = (u(n(73935)), u(n(82628))), s = u(n(52987)); function u(e) { return e && e.__esModule ? e : { default: e }; } t.default = function (e) { var t = (function (t) { function n(e) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, n); var t = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, e)); return (t.childBindings = { domNode: null }), t; } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(n, t), i(n, [ { key: "componentDidMount", value: function () { if ("undefined" == typeof window) return !1; this.registerElems(this.props.name); }, }, { key: "componentWillReceiveProps", value: function (e) { this.props.name !== e.name && this.registerElems(e.name); }, }, { key: "componentWillUnmount", value: function () { if ("undefined" == typeof window) return !1; a.default.unregister(this.props.name); }, }, { key: "registerElems", value: function (e) { a.default.register(e, this.childBindings.domNode); }, }, { key: "render", value: function () { return o.default.createElement( e, r({}, this.props, { parentBindings: this.childBindings }) ); }, }, ]), n ); })(o.default.Component); return ( (t.propTypes = { name: s.default.string, id: s.default.string }), t ); }; }, 64592: function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var n = { registered: {}, scrollEvent: { register: function (e, t) { n.registered[e] = t; }, remove: function (e) { n.registered[e] = null; }, }, }; t.default = n; }, 29678: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); n(55236); var r, i = n(54259), o = (r = i) && r.__esModule ? r : { default: r }; var a = { mountFlag: !1, initialized: !1, scroller: null, containers: {}, mount: function (e) { (this.scroller = e), (this.handleHashChange = this.handleHashChange.bind(this)), window.addEventListener("hashchange", this.handleHashChange), this.initStateFromHash(), (this.mountFlag = !0); }, mapContainer: function (e, t) { this.containers[e] = t; }, isMounted: function () { return this.mountFlag; }, isInitialized: function () { return this.initialized; }, initStateFromHash: function () { var e = this, t = this.getHash(); t ? window.setTimeout(function () { e.scrollTo(t, !0), (e.initialized = !0); }, 10) : (this.initialized = !0); }, scrollTo: function (e, t) { var n = this.scroller; if (n.get(e) && (t || e !== n.getActiveLink())) { var r = this.containers[e] || document; n.scrollTo(e, { container: r }); } }, getHash: function () { return o.default.getHash(); }, changeHash: function (e) { this.isInitialized() && o.default.getHash() !== e && o.default.pushHash(e); }, handleHashChange: function () { this.scrollTo(this.getHash()); }, unmount: function () { (this.scroller = null), (this.containers = null), window.removeEventListener("hashchange", this.handleHashChange); }, }; t.default = a; }, 31093: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = Object.assign || 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; }, i = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), o = l(n(28416)), a = (l(n(73935)), l(n(54259)), l(n(87606))), s = l(n(82628)), u = l(n(52987)), c = l(n(29678)); function l(e) { return e && e.__esModule ? e : { default: e }; } var f = { to: u.default.string.isRequired, containerId: u.default.string, container: u.default.object, activeClass: u.default.string, spy: u.default.bool, smooth: u.default.oneOfType([u.default.bool, u.default.string]), offset: u.default.number, delay: u.default.number, isDynamic: u.default.bool, onClick: u.default.func, duration: u.default.oneOfType([u.default.number, u.default.func]), absolute: u.default.bool, onSetActive: u.default.func, onSetInactive: u.default.func, ignoreCancelEvents: u.default.bool, hashSpy: u.default.bool, }; t.default = function (e, t) { var n = t || s.default, u = (function (t) { function s(e) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, s); var t = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, e)); return l.call(t), (t.state = { active: !1 }), t; } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(s, t), i(s, [ { key: "getScrollSpyContainer", value: function () { var e = this.props.containerId, t = this.props.container; return e && !t ? document.getElementById(e) : t && t.nodeType ? t : document; }, }, { key: "componentDidMount", value: function () { if (this.props.spy || this.props.hashSpy) { var e = this.getScrollSpyContainer(); a.default.isMounted(e) || a.default.mount(e), this.props.hashSpy && (c.default.isMounted() || c.default.mount(n), c.default.mapContainer(this.props.to, e)), a.default.addSpyHandler(this.spyHandler, e), this.setState({ container: e }); } }, }, { key: "componentWillUnmount", value: function () { a.default.unmount(this.stateHandler, this.spyHandler); }, }, { key: "render", value: function () { var t = ""; t = this.state && this.state.active ? ( (this.props.className || "") + " " + (this.props.activeClass || "active") ).trim() : this.props.className; var n = r({}, this.props); for (var i in f) n.hasOwnProperty(i) && delete n[i]; return ( (n.className = t), (n.onClick = this.handleClick), o.default.createElement(e, n) ); }, }, ]), s ); })(o.default.PureComponent), l = function () { var e = this; (this.scrollTo = function (t, i) { n.scrollTo(t, r({}, e.state, i)); }), (this.handleClick = function (t) { e.props.onClick && e.props.onClick(t), t.stopPropagation && t.stopPropagation(), t.preventDefault && t.preventDefault(), e.scrollTo(e.props.to, e.props); }), (this.spyHandler = function (t) { var r = e.getScrollSpyContainer(); if (!c.default.isMounted() || c.default.isInitialized()) { var i = e.props.to, o = null, a = 0, s = 0, u = 0; if (r.getBoundingClientRect) u = r.getBoundingClientRect().top; if (!o || e.props.isDynamic) { if (!(o = n.get(i))) return; var l = o.getBoundingClientRect(); s = (a = l.top - u + t) + l.height; } var f = t - e.props.offset, d = f >= Math.floor(a) && f < Math.floor(s), p = f < Math.floor(a) || f >= Math.floor(s), h = n.getActiveLink(); p && (i === h && n.setActiveLink(void 0), e.props.hashSpy && c.default.getHash() === i && c.default.changeHash(), e.props.spy && e.state.active && (e.setState({ active: !1 }), e.props.onSetInactive && e.props.onSetInactive(i, o))), !d || (h === i && !1 !== e.state.active) || (n.setActiveLink(i), e.props.hashSpy && c.default.changeHash(i), e.props.spy && (e.setState({ active: !0 }), e.props.onSetActive && e.props.onSetActive(i, o))); } }); }; return (u.propTypes = f), (u.defaultProps = { offset: 0 }), u; }; }, 87606: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r, i = n(93096), o = (r = i) && r.__esModule ? r : { default: r }, a = n(55236); var s = { spyCallbacks: [], spySetState: [], scrollSpyContainers: [], mount: function (e) { if (e) { var t = (function (e) { return (0, o.default)(e, 66); })(function (t) { s.scrollHandler(e); }); s.scrollSpyContainers.push(e), (0, a.addPassiveEventListener)(e, "scroll", t); } }, isMounted: function (e) { return -1 !== s.scrollSpyContainers.indexOf(e); }, currentPositionY: function (e) { if (e === document) { var t = void 0 !== window.pageXOffset, n = "CSS1Compat" === (document.compatMode || ""); return t ? window.pageYOffset : n ? document.documentElement.scrollTop : document.body.scrollTop; } return e.scrollTop; }, scrollHandler: function (e) { ( s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)] .spyCallbacks || [] ).forEach(function (t) { return t(s.currentPositionY(e)); }); }, addStateHandler: function (e) { s.spySetState.push(e); }, addSpyHandler: function (e, t) { var n = s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)]; n.spyCallbacks || (n.spyCallbacks = []), n.spyCallbacks.push(e), e(s.currentPositionY(t)); }, updateStates: function () { s.spySetState.forEach(function (e) { return e(); }); }, unmount: function (e, t) { s.scrollSpyContainers.forEach(function (e) { return ( e.spyCallbacks && e.spyCallbacks.length && e.spyCallbacks.splice(e.spyCallbacks.indexOf(t), 1) ); }), s.spySetState && s.spySetState.length && s.spySetState.splice(s.spySetState.indexOf(e), 1), document.removeEventListener("scroll", s.scrollHandler); }, update: function () { return s.scrollSpyContainers.forEach(function (e) { return s.scrollHandler(e); }); }, }; t.default = s; }, 82628: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = Object.assign || 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; }, i = s(n(54259)), o = s(n(53200)), a = s(n(64592)); function s(e) { return e && e.__esModule ? e : { default: e }; } var u = {}, c = void 0; t.default = { unmount: function () { u = {}; }, register: function (e, t) { u[e] = t; }, unregister: function (e) { delete u[e]; }, get: function (e) { return ( u[e] || document.getElementById(e) || document.getElementsByName(e)[0] || document.getElementsByClassName(e)[0] ); }, setActiveLink: function (e) { return (c = e); }, getActiveLink: function () { return c; }, scrollTo: function (e, t) { var n = this.get(e); if (n) { var s = (t = r({}, t, { absolute: !1 })).containerId, u = t.container, c = void 0; (c = s ? document.getElementById(s) : u && u.nodeType ? u : document), a.default.registered.begin && a.default.registered.begin(e, n), (t.absolute = !0); var l = i.default.scrollOffset(c, n) + (t.offset || 0); if (!t.smooth) return ( c === document ? window.scrollTo(0, l) : (c.scrollTop = l), void ( a.default.registered.end && a.default.registered.end(e, n) ) ); o.default.animateTopScroll(l, t, e, n); } else console.warn("target Element not found"); }, }; }, 89765: function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = { defaultEasing: function (e) { return e < 0.5 ? Math.pow(2 * e, 2) / 2 : 1 - Math.pow(2 * (1 - e), 2) / 2; }, linear: function (e) { return e; }, easeInQuad: function (e) { return e * e; }, easeOutQuad: function (e) { return e * (2 - e); }, easeInOutQuad: function (e) { return e < 0.5 ? 2 * e * e : (4 - 2 * e) * e - 1; }, easeInCubic: function (e) { return e * e * e; }, easeOutCubic: function (e) { return --e * e * e + 1; }, easeInOutCubic: function (e) { return e < 0.5 ? 4 * e * e * e : (e - 1) * (2 * e - 2) * (2 * e - 2) + 1; }, easeInQuart: function (e) { return e * e * e * e; }, easeOutQuart: function (e) { return 1 - --e * e * e * e; }, easeInOutQuart: function (e) { return e < 0.5 ? 8 * e * e * e * e : 1 - 8 * --e * e * e * e; }, easeInQuint: function (e) { return e * e * e * e * e; }, easeOutQuint: function (e) { return 1 + --e * e * e * e * e; }, easeInOutQuint: function (e) { return e < 0.5 ? 16 * e * e * e * e * e : 1 + 16 * --e * e * e * e * e; }, }); }, 54259: function (e, t) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); t.default = { pushHash: function (e) { if ( ((e = e ? (0 === e.indexOf("#") ? e : "#" + e) : ""), history.pushState) ) { var t = window.location; history.pushState( null, null, e ? t.pathname + t.search + e : t.pathname + t.search ); } else location.hash = e; }, getHash: function () { return window.location.hash.replace(/^#/, ""); }, filterElementInContainer: function (e) { return function (t) { return e.contains ? e != t && e.contains(t) : !!(16 & e.compareDocumentPosition(t)); }; }, scrollOffset: function (e, t) { return e === document ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset) : "static" !== getComputedStyle(e).position ? t.offsetTop : t.getBoundingClientRect().top + e.scrollTop; }, }; }, 55480: function (e) { "use strict"; function t(e) { return function () { return e; }; } var n = function () {}; (n.thatReturns = t), (n.thatReturnsFalse = t(!1)), (n.thatReturnsTrue = t(!0)), (n.thatReturnsNull = t(null)), (n.thatReturnsThis = function () { return this; }), (n.thatReturnsArgument = function (e) { return e; }), (e.exports = n); }, 45198: function (e) { "use strict"; e.exports = function (e, t, n, r, i, o, a, s) { if (!e) { var u; if (void 0 === t) u = new Error( "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings." ); else { var c = [n, r, i, o, a, s], l = 0; (u = new Error( t.replace(/%s/g, function () { return c[l++]; }) )).name = "Invariant Violation"; } throw ((u.framesToPop = 1), u); } }; }, 68423: function (e, t, n) { "use strict"; var r = n(55480), i = n(45198), o = n(38606); e.exports = function () { function e(e, t, n, r, a, s) { s !== o && i( !1, "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" ); } function t() { return e; } e.isRequired = e; var n = { array: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: t, element: e, instanceOf: t, node: e, objectOf: t, oneOf: t, oneOfType: t, shape: t, exact: t, }; return (n.checkPropTypes = r), (n.PropTypes = n), n; }; }, 52987: function (e, t, n) { e.exports = n(68423)(); }, 38606: function (e) { "use strict"; e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; }, 8205: function (e, t, n) { "use strict"; (t.__esModule = !0), (t.NextArrow = t.PrevArrow = void 0); var r = Object.assign || 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; }, i = s(n(28416)), o = s(n(94184)), a = n(15518); function s(e) { return e && e.__esModule ? e : { default: e }; } function u(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function c(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; } function l(e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); } (t.PrevArrow = (function (e) { function t() { return u(this, t), c(this, e.apply(this, arguments)); } return ( l(t, e), (t.prototype.clickHandler = function (e, t) { t && t.preventDefault(), this.props.clickHandler(e, t); }), (t.prototype.render = function () { var e = { "slick-arrow": !0, "slick-prev": !0 }, t = this.clickHandler.bind(this, { message: "previous" }); !this.props.infinite && (0 === this.props.currentSlide || this.props.slideCount <= this.props.slidesToShow) && ((e["slick-disabled"] = !0), (t = null)); var n = { key: "0", "data-role": "none", className: (0, o.default)(e), style: { display: "block" }, onClick: t, }, a = { currentSlide: this.props.currentSlide, slideCount: this.props.slideCount, }; return this.props.prevArrow ? i.default.cloneElement(this.props.prevArrow, r({}, n, a)) : i.default.createElement( "button", r({ key: "0", type: "button" }, n), " ", "Previous" ); }), t ); })(i.default.PureComponent)), (t.NextArrow = (function (e) { function t() { return u(this, t), c(this, e.apply(this, arguments)); } return ( l(t, e), (t.prototype.clickHandler = function (e, t) { t && t.preventDefault(), this.props.clickHandler(e, t); }), (t.prototype.render = function () { var e = { "slick-arrow": !0, "slick-next": !0 }, t = this.clickHandler.bind(this, { message: "next" }); (0, a.canGoNext)(this.props) || ((e["slick-disabled"] = !0), (t = null)); var n = { key: "1", "data-role": "none", className: (0, o.default)(e), style: { display: "block" }, onClick: t, }, s = { currentSlide: this.props.currentSlide, slideCount: this.props.slideCount, }; return this.props.nextArrow ? i.default.cloneElement(this.props.nextArrow, r({}, n, s)) : i.default.createElement( "button", r({ key: "1", type: "button" }, n), " ", "Next" ); }), t ); })(i.default.PureComponent)); }, 23492: function (e, t, n) { "use strict"; t.__esModule = !0; var r, i = n(28416), o = (r = i) && r.__esModule ? r : { default: r }; var a = { accessibility: !0, adaptiveHeight: !1, afterChange: null, appendDots: function (e) { return o.default.createElement( "ul", { style: { display: "block" } }, e ); }, arrows: !0, autoplay: !1, autoplaySpeed: 3e3, beforeChange: null, centerMode: !1, centerPadding: "50px", className: "", cssEase: "ease", customPaging: function (e) { return o.default.createElement("button", null, e + 1); }, dots: !1, dotsClass: "slick-dots", draggable: !0, easing: "linear", edgeFriction: 0.35, fade: !1, focusOnSelect: !1, infinite: !0, initialSlide: 0, lazyLoad: null, nextArrow: null, onEdge: null, onInit: null, onLazyLoadError: null, onReInit: null, pauseOnDotsHover: !1, pauseOnFocus: !1, pauseOnHover: !0, prevArrow: null, responsive: null, rows: 1, rtl: !1, slide: "div", slidesPerRow: 1, slidesToScroll: 1, slidesToShow: 1, speed: 500, swipe: !0, swipeEvent: null, swipeToSlide: !1, touchMove: !0, touchThreshold: 5, useCSS: !0, useTransform: !0, variableWidth: !1, vertical: !1, waitForAnimate: !0, }; t.default = a; }, 16329: function (e, t, n) { "use strict"; (t.__esModule = !0), (t.Dots = void 0); var r = Object.assign || 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; }, i = a(n(28416)), o = a(n(94184)); function a(e) { return e && e.__esModule ? e : { default: e }; } function s(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function u(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; } t.Dots = (function (e) { function t() { return s(this, t), u(this, e.apply(this, arguments)); } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), (t.prototype.clickHandler = function (e, t) { t.preventDefault(), this.props.clickHandler(e); }), (t.prototype.render = function () { var e, t = this, n = (e = { slideCount: this.props.slideCount, slidesToScroll: this.props.slidesToScroll, slidesToShow: this.props.slidesToShow, infinite: this.props.infinite, }).infinite ? Math.ceil(e.slideCount / e.slidesToScroll) : Math.ceil( (e.slideCount - e.slidesToShow) / e.slidesToScroll ) + 1, a = this.props, s = { onMouseEnter: a.onMouseEnter, onMouseOver: a.onMouseOver, onMouseLeave: a.onMouseLeave, }, u = Array.apply( null, Array(n + 1) .join("0") .split("") ).map(function (e, n) { var r = n * t.props.slidesToScroll, a = n * t.props.slidesToScroll + (t.props.slidesToScroll - 1), s = (0, o.default)({ "slick-active": t.props.currentSlide >= r && t.props.currentSlide <= a, }), u = { message: "dots", index: n, slidesToScroll: t.props.slidesToScroll, currentSlide: t.props.currentSlide, }, c = t.clickHandler.bind(t, u); return i.default.createElement( "li", { key: n, className: s }, i.default.cloneElement(t.props.customPaging(n), { onClick: c, }) ); }); return i.default.cloneElement( this.props.appendDots(u), r({ className: this.props.dotsClass }, s) ); }), t ); })(i.default.PureComponent); }, 46066: function (e, t, n) { "use strict"; var r, i = n(5798), o = (r = i) && r.__esModule ? r : { default: r }; t.Z = o.default; }, 46948: function (e, t) { "use strict"; t.__esModule = !0; t.default = { animating: !1, autoplaying: null, currentDirection: 0, currentLeft: null, currentSlide: 0, direction: 1, dragging: !1, edgeDragged: !1, initialized: !1, lazyLoadedList: [], listHeight: null, listWidth: null, scrolling: !1, slideCount: null, slideHeight: null, slideWidth: null, swipeLeft: null, swiped: !1, swiping: !1, touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 }, trackStyle: {}, trackWidth: 0, }; }, 58517: function (e, t, n) { "use strict"; (t.__esModule = !0), (t.InnerSlider = void 0); var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, i = Object.assign || 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; }, o = g(n(28416)), a = g(n(73935)), s = g(n(46948)), u = g(n(91296)), c = g(n(94184)), l = n(15518), f = n(64740), d = n(16329), p = n(8205), h = g(n(64207)); function g(e) { return e && e.__esModule ? e : { default: e }; } function m(e, t) { var n = {}; for (var r in e) t.indexOf(r) >= 0 || (Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r])); return n; } t.InnerSlider = (function (e) { function t(n) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, t); var g = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, e.call(this, n)); return ( (g.listRefHandler = function (e) { return (g.list = e); }), (g.trackRefHandler = function (e) { return (g.track = e); }), (g.adaptHeight = function () { if (g.props.adaptiveHeight && g.list) { var e = g.list.querySelector( '[data-index="' + g.state.currentSlide + '"]' ); g.list.style.height = (0, l.getHeight)(e) + "px"; } }), (g.componentWillMount = function () { if ( (g.ssrInit(), g.props.onInit && g.props.onInit(), g.props.lazyLoad) ) { var e = (0, l.getOnDemandLazySlides)(i({}, g.props, g.state)); e.length > 0 && (g.setState(function (t) { return { lazyLoadedList: t.lazyLoadedList.concat(e) }; }), g.props.onLazyLoad && g.props.onLazyLoad(e)); } }), (g.componentDidMount = function () { var e = i({ listRef: g.list, trackRef: g.track }, g.props); g.updateState(e, !0, function () { g.adaptHeight(), g.props.autoplay && g.autoPlay("update"); }), "progressive" === g.props.lazyLoad && (g.lazyLoadTimer = setInterval(g.progressiveLazyLoad, 1e3)), (g.ro = new h.default(function () { g.state.animating ? (g.onWindowResized(!1), g.callbackTimers.push( setTimeout(function () { return g.onWindowResized(); }, g.props.speed) )) : g.onWindowResized(); })), g.ro.observe(g.list), Array.prototype.forEach.call( document.querySelectorAll(".slick-slide"), function (e) { (e.onfocus = g.props.pauseOnFocus ? g.onSlideFocus : null), (e.onblur = g.props.pauseOnFocus ? g.onSlideBlur : null); } ), window && (window.addEventListener ? window.addEventListener("resize", g.onWindowResized) : window.attachEvent("onresize", g.onWindowResized)); }), (g.componentWillUnmount = function () { g.animationEndCallback && clearTimeout(g.animationEndCallback), g.lazyLoadTimer && clearInterval(g.lazyLoadTimer), g.callbackTimers.length && (g.callbackTimers.forEach(function (e) { return clearTimeout(e); }), (g.callbackTimers = [])), window.addEventListener ? window.removeEventListener("resize", g.onWindowResized) : window.detachEvent("onresize", g.onWindowResized), g.autoplayTimer && clearInterval(g.autoplayTimer); }), (g.componentWillReceiveProps = function (e) { var t = i({ listRef: g.list, trackRef: g.track }, e, g.state), n = !1, a = Object.keys(g.props), s = Array.isArray(a), u = 0; for (a = s ? a : a[Symbol.iterator](); ; ) { var c; if (s) { if (u >= a.length) break; c = a[u++]; } else { if ((u = a.next()).done) break; c = u.value; } var l = c; if (!e.hasOwnProperty(l)) { n = !0; break; } if ( "object" !== r(e[l]) && "function" != typeof e[l] && e[l] !== g.props[l] ) { n = !0; break; } } g.updateState(t, n, function () { g.state.currentSlide >= o.default.Children.count(e.children) && g.changeSlide({ message: "index", index: o.default.Children.count(e.children) - e.slidesToShow, currentSlide: g.state.currentSlide, }), e.autoplay ? g.autoPlay("update") : g.pause("paused"); }); }), (g.componentDidUpdate = function () { if ( (g.checkImagesLoad(), g.props.onReInit && g.props.onReInit(), g.props.lazyLoad) ) { var e = (0, l.getOnDemandLazySlides)(i({}, g.props, g.state)); e.length > 0 && (g.setState(function (t) { return { lazyLoadedList: t.lazyLoadedList.concat(e) }; }), g.props.onLazyLoad && g.props.onLazyLoad(e)); } g.adaptHeight(); }), (g.onWindowResized = function (e) { g.debouncedResize && g.debouncedResize.cancel(), (g.debouncedResize = (0, u.default)(function () { return g.resizeWindow(e); }, 50)), g.debouncedResize(); }), (g.resizeWindow = function () { var e = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0]; if (a.default.findDOMNode(g.track)) { var t = i( { listRef: g.list, trackRef: g.track }, g.props, g.state ); g.updateState(t, e, function () { g.props.autoplay ? g.autoPlay("update") : g.pause("paused"); }), g.setState({ animating: !1 }), clearTimeout(g.animationEndCallback), delete g.animationEndCallback; } }), (g.updateState = function (e, t, n) { var r = (0, l.initializedState)(e); e = i({}, e, r, { slideIndex: r.currentSlide }); var a = (0, l.getTrackLeft)(e); e = i({}, e, { left: a }); var s = (0, l.getTrackCSS)(e); (t || o.default.Children.count(g.props.children) !== o.default.Children.count(e.children)) && (r.trackStyle = s), g.setState(r, n); }), (g.ssrInit = function () { if (g.props.variableWidth) { var e = 0, t = 0, n = [], r = (0, l.getPreClones)( i({}, g.props, g.state, { slideCount: g.props.children.length, }) ), a = (0, l.getPostClones)( i({}, g.props, g.state, { slideCount: g.props.children.length, }) ); g.props.children.forEach(function (t) { n.push(t.props.style.width), (e += t.props.style.width); }); for (var s = 0; s < r; s++) (t += n[n.length - 1 - s]), (e += n[n.length - 1 - s]); for (var u = 0; u < a; u++) e += n[u]; for (var c = 0; c < g.state.currentSlide; c++) t += n[c]; var f = { width: e + "px", left: -t + "px" }; if (g.props.centerMode) { var d = n[g.state.currentSlide] + "px"; f.left = "calc(" + f.left + " + (100% - " + d + ") / 2 ) "; } g.setState({ trackStyle: f }); } else { var p = o.default.Children.count(g.props.children), h = i({}, g.props, g.state, { slideCount: p }), m = (0, l.getPreClones)(h) + (0, l.getPostClones)(h) + p, y = (100 / g.props.slidesToShow) * m, v = 100 / m, b = (-v * ((0, l.getPreClones)(h) + g.state.currentSlide) * y) / 100; g.props.centerMode && (b += (100 - (v * y) / 100) / 2); var _ = { width: y + "%", left: b + "%" }; g.setState({ slideWidth: v + "%", trackStyle: _ }); } }), (g.checkImagesLoad = function () { var e = document.querySelectorAll(".slick-slide img"), t = e.length, n = 0; Array.prototype.forEach.call(e, function (e) { var r = function () { return ++n && n >= t && g.onWindowResized(); }; if (e.onclick) { var i = e.onclick; e.onclick = function () { i(), e.parentNode.focus(); }; } else e.onclick = function () { return e.parentNode.focus(); }; e.onload || (g.props.lazyLoad ? (e.onload = function () { g.adaptHeight(), g.callbackTimers.push( setTimeout(g.onWindowResized, g.props.speed) ); }) : ((e.onload = r), (e.onerror = function () { r(), g.props.onLazyLoadError && g.props.onLazyLoadError(); }))); }); }), (g.progressiveLazyLoad = function () { for ( var e = [], t = i({}, g.props, g.state), n = g.state.currentSlide; n < g.state.slideCount + (0, l.getPostClones)(t); n++ ) if (g.state.lazyLoadedList.indexOf(n) < 0) { e.push(n); break; } for ( var r = g.state.currentSlide - 1; r >= -(0, l.getPreClones)(t); r-- ) if (g.state.lazyLoadedList.indexOf(r) < 0) { e.push(r); break; } e.length > 0 ? (g.setState(function (t) { return { lazyLoadedList: t.lazyLoadedList.concat(e) }; }), g.props.onLazyLoad && g.props.onLazyLoad(e)) : g.lazyLoadTimer && (clearInterval(g.lazyLoadTimer), delete g.lazyLoadTimer); }), (g.slideHandler = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], n = g.props, r = n.asNavFor, o = n.beforeChange, a = n.onLazyLoad, s = n.speed, u = n.afterChange, c = g.state.currentSlide, f = (0, l.slideHandler)( i({ index: e }, g.props, g.state, { trackRef: g.track, useCSS: g.props.useCSS && !t, }) ), d = f.state, p = f.nextState; if (d) { o && o(c, d.currentSlide); var h = d.lazyLoadedList.filter(function (e) { return g.state.lazyLoadedList.indexOf(e) < 0; }); a && h.length > 0 && a(h), g.setState(d, function () { r && r.innerSlider.state.currentSlide !== c && r.innerSlider.slideHandler(e), p && (g.animationEndCallback = setTimeout(function () { var e = p.animating, t = m(p, ["animating"]); g.setState(t, function () { g.callbackTimers.push( setTimeout(function () { return g.setState({ animating: e }); }, 10) ), u && u(d.currentSlide), delete g.animationEndCallback; }); }, s)); }); } }), (g.changeSlide = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], n = i({}, g.props, g.state), r = (0, l.changeSlide)(n, e); (0 === r || r) && (!0 === t ? g.slideHandler(r, t) : g.slideHandler(r)); }), (g.clickHandler = function (e) { !1 === g.clickable && (e.stopPropagation(), e.preventDefault()), (g.clickable = !0); }), (g.keyHandler = function (e) { var t = (0, l.keyHandler)(e, g.props.accessibility, g.props.rtl); "" !== t && g.changeSlide({ message: t }); }), (g.selectHandler = function (e) { g.changeSlide(e); }), (g.disableBodyScroll = function () { window.ontouchmove = function (e) { (e = e || window.event).preventDefault && e.preventDefault(), (e.returnValue = !1); }; }), (g.enableBodyScroll = function () { window.ontouchmove = null; }), (g.swipeStart = function (e) { g.props.verticalSwiping && g.disableBodyScroll(); var t = (0, l.swipeStart)(e, g.props.swipe, g.props.draggable); "" !== t && g.setState(t); }), (g.swipeMove = function (e) { var t = (0, l.swipeMove)( e, i({}, g.props, g.state, { trackRef: g.track, listRef: g.list, slideIndex: g.state.currentSlide, }) ); t && (t.swiping && (g.clickable = !1), g.setState(t)); }), (g.swipeEnd = function (e) { var t = (0, l.swipeEnd)( e, i({}, g.props, g.state, { trackRef: g.track, listRef: g.list, slideIndex: g.state.currentSlide, }) ); if (t) { var n = t.triggerSlideHandler; delete t.triggerSlideHandler, g.setState(t), void 0 !== n && (g.slideHandler(n), g.props.verticalSwiping && g.enableBodyScroll()); } }), (g.slickPrev = function () { g.callbackTimers.push( setTimeout(function () { return g.changeSlide({ message: "previous" }); }, 0) ); }), (g.slickNext = function () { g.callbackTimers.push( setTimeout(function () { return g.changeSlide({ message: "next" }); }, 0) ); }), (g.slickGoTo = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; if (((e = Number(e)), isNaN(e))) return ""; g.callbackTimers.push( setTimeout(function () { return g.changeSlide( { message: "index", index: e, currentSlide: g.state.currentSlide, }, t ); }, 0) ); }), (g.play = function () { var e; if (g.props.rtl) e = g.state.currentSlide - g.props.slidesToScroll; else { if (!(0, l.canGoNext)(i({}, g.props, g.state))) return !1; e = g.state.currentSlide + g.props.slidesToScroll; } g.slideHandler(e); }), (g.autoPlay = function (e) { g.autoplayTimer && clearInterval(g.autoplayTimer); var t = g.state.autoplaying; if ("update" === e) { if ("hovered" === t || "focused" === t || "paused" === t) return; } else if ("leave" === e) { if ("paused" === t || "focused" === t) return; } else if ("blur" === e && ("paused" === t || "hovered" === t)) return; (g.autoplayTimer = setInterval( g.play, g.props.autoplaySpeed + 50 )), g.setState({ autoplaying: "playing" }); }), (g.pause = function (e) { g.autoplayTimer && (clearInterval(g.autoplayTimer), (g.autoplayTimer = null)); var t = g.state.autoplaying; "paused" === e ? g.setState({ autoplaying: "paused" }) : "focused" === e ? ("hovered" !== t && "playing" !== t) || g.setState({ autoplaying: "focused" }) : "playing" === t && g.setState({ autoplaying: "hovered" }); }), (g.onDotsOver = function () { return g.props.autoplay && g.pause("hovered"); }), (g.onDotsLeave = function () { return ( g.props.autoplay && "hovered" === g.state.autoplaying && g.autoPlay("leave") ); }), (g.onTrackOver = function () { return g.props.autoplay && g.pause("hovered"); }), (g.onTrackLeave = function () { return ( g.props.autoplay && "hovered" === g.state.autoplaying && g.autoPlay("leave") ); }), (g.onSlideFocus = function () { return g.props.autoplay && g.pause("focused"); }), (g.onSlideBlur = function () { return ( g.props.autoplay && "focused" === g.state.autoplaying && g.autoPlay("blur") ); }), (g.render = function () { var e, t, n, r = (0, c.default)("slick-slider", g.props.className, { "slick-vertical": g.props.vertical, "slick-initialized": !0, }), a = i({}, g.props, g.state), s = (0, l.extractObject)(a, [ "fade", "cssEase", "speed", "infinite", "centerMode", "focusOnSelect", "currentSlide", "lazyLoad", "lazyLoadedList", "rtl", "slideWidth", "slideHeight", "listHeight", "vertical", "slidesToShow", "slidesToScroll", "slideCount", "trackStyle", "variableWidth", "unslick", "centerPadding", ]), u = g.props.pauseOnHover; if ( ((s = i({}, s, { onMouseEnter: u ? g.onTrackOver : null, onMouseLeave: u ? g.onTrackLeave : null, onMouseOver: u ? g.onTrackOver : null, focusOnSelect: g.props.focusOnSelect ? g.selectHandler : null, })), !0 === g.props.dots && g.state.slideCount >= g.props.slidesToShow) ) { var h = (0, l.extractObject)(a, [ "dotsClass", "slideCount", "slidesToShow", "currentSlide", "slidesToScroll", "clickHandler", "children", "customPaging", "infinite", "appendDots", ]), m = g.props.pauseOnDotsHover; (h = i({}, h, { clickHandler: g.changeSlide, onMouseEnter: m ? g.onDotsLeave : null, onMouseOver: m ? g.onDotsOver : null, onMouseLeave: m ? g.onDotsLeave : null, })), (e = o.default.createElement(d.Dots, h)); } var y = (0, l.extractObject)(a, [ "infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow", ]); (y.clickHandler = g.changeSlide), g.props.arrows && ((t = o.default.createElement(p.PrevArrow, y)), (n = o.default.createElement(p.NextArrow, y))); var v = null; g.props.vertical && (v = { height: g.state.listHeight }); var b = null; !1 === g.props.vertical ? !0 === g.props.centerMode && (b = { padding: "0px " + g.props.centerPadding }) : !0 === g.props.centerMode && (b = { padding: g.props.centerPadding + " 0px" }); var _ = i({}, v, b), w = g.props.touchMove, T = { className: "slick-list", style: _, onClick: g.clickHandler, onMouseDown: w ? g.swipeStart : null, onMouseMove: g.state.dragging && w ? g.swipeMove : null, onMouseUp: w ? g.swipeEnd : null, onMouseLeave: g.state.dragging && w ? g.swipeEnd : null, onTouchStart: w ? g.swipeStart : null, onTouchMove: g.state.dragging && w ? g.swipeMove : null, onTouchEnd: w ? g.swipeEnd : null, onTouchCancel: g.state.dragging && w ? g.swipeEnd : null, onKeyDown: g.props.accessibility ? g.keyHandler : null, }, x = { className: r, dir: "ltr" }; return ( g.props.unslick && ((T = { className: "slick-list" }), (x = { className: r })), o.default.createElement( "div", x, g.props.unslick ? "" : t, o.default.createElement( "div", i({ ref: g.listRefHandler }, T), o.default.createElement( f.Track, i({ ref: g.trackRefHandler }, s), g.props.children ) ), g.props.unslick ? "" : n, g.props.unslick ? "" : e ) ); }), (g.list = null), (g.track = null), (g.state = i({}, s.default, { currentSlide: g.props.initialSlide, slideCount: o.default.Children.count(g.props.children), })), (g.callbackTimers = []), (g.clickable = !0), (g.debouncedResize = null), g ); } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), t ); })(o.default.Component); }, 5798: function (e, t, n) { "use strict"; t.__esModule = !0; var r = Object.assign || 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; }, i = c(n(28416)), o = n(58517), a = c(n(80973)), s = c(n(23492)), u = n(15518); function c(e) { return e && e.__esModule ? e : { default: e }; } var l = (0, u.canUseDOM)() && n(24974), f = (function (e) { function t(n) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, t); var r = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, e.call(this, n)); return ( (r.innerSliderRefHandler = function (e) { return (r.innerSlider = e); }), (r.slickPrev = function () { return r.innerSlider.slickPrev(); }), (r.slickNext = function () { return r.innerSlider.slickNext(); }), (r.slickGoTo = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; return r.innerSlider.slickGoTo(e, t); }), (r.slickPause = function () { return r.innerSlider.pause("paused"); }), (r.slickPlay = function () { return r.innerSlider.autoPlay("play"); }), (r.state = { breakpoint: null }), (r._responsiveMediaHandlers = []), r ); } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), (t.prototype.media = function (e, t) { l.register(e, t), this._responsiveMediaHandlers.push({ query: e, handler: t }); }), (t.prototype.componentWillMount = function () { var e = this; if (this.props.responsive) { var t = this.props.responsive.map(function (e) { return e.breakpoint; }); t.sort(function (e, t) { return e - t; }), t.forEach(function (n, r) { var i = void 0; (i = 0 === r ? (0, a.default)({ minWidth: 0, maxWidth: n }) : (0, a.default)({ minWidth: t[r - 1] + 1, maxWidth: n, })), (0, u.canUseDOM)() && e.media(i, function () { e.setState({ breakpoint: n }); }); }); var n = (0, a.default)({ minWidth: t.slice(-1)[0] }); (0, u.canUseDOM)() && this.media(n, function () { e.setState({ breakpoint: null }); }); } }), (t.prototype.componentWillUnmount = function () { this._responsiveMediaHandlers.forEach(function (e) { l.unregister(e.query, e.handler); }); }), (t.prototype.render = function () { var e, t, n = this; (e = this.state.breakpoint ? "unslick" === (t = this.props.responsive.filter(function (e) { return e.breakpoint === n.state.breakpoint; }))[0].settings ? "unslick" : r({}, s.default, this.props, t[0].settings) : r({}, s.default, this.props)).centerMode && (e.slidesToScroll, (e.slidesToScroll = 1)), e.fade && (e.slidesToShow, e.slidesToScroll, (e.slidesToShow = 1), (e.slidesToScroll = 1)); var a = i.default.Children.toArray(this.props.children); (a = a.filter(function (e) { return "string" == typeof e ? !!e.trim() : !!e; })), e.variableWidth && (e.rows > 1 || e.slidesPerRow > 1) && (console.warn( "variableWidth is not supported in case of rows > 1 or slidesPerRow > 1" ), (e.variableWidth = !1)); for ( var u = [], c = null, l = 0; l < a.length; l += e.rows * e.slidesPerRow ) { for ( var f = [], d = l; d < l + e.rows * e.slidesPerRow; d += e.slidesPerRow ) { for ( var p = [], h = d; h < d + e.slidesPerRow && (e.variableWidth && a[h].props.style && (c = a[h].props.style.width), !(h >= a.length)); h += 1 ) p.push( i.default.cloneElement(a[h], { key: 100 * l + 10 * d + h, tabIndex: -1, style: { width: 100 / e.slidesPerRow + "%", display: "inline-block", }, }) ); f.push( i.default.createElement("div", { key: 10 * l + d }, p) ); } e.variableWidth ? u.push( i.default.createElement( "div", { key: l, style: { width: c } }, f ) ) : u.push(i.default.createElement("div", { key: l }, f)); } if ("unslick" === e) { var g = "regular slider " + (this.props.className || ""); return i.default.createElement("div", { className: g }, u); } return ( u.length <= e.slidesToShow && (e.unslick = !0), i.default.createElement( o.InnerSlider, r({ ref: this.innerSliderRefHandler }, e), u ) ); }), t ); })(i.default.Component); t.default = f; }, 64740: function (e, t, n) { "use strict"; (t.__esModule = !0), (t.Track = void 0); var r = Object.assign || 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; }, i = s(n(28416)), o = s(n(94184)), a = n(15518); function s(e) { return e && e.__esModule ? e : { default: e }; } function u(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function c(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; } var l = function (e) { var t, n, r, i, o; return ( (r = (o = e.rtl ? e.slideCount - 1 - e.index : e.index) < 0 || o >= e.slideCount), e.centerMode ? ((i = Math.floor(e.slidesToShow / 2)), (n = (o - e.currentSlide) % e.slideCount == 0), o > e.currentSlide - i - 1 && o <= e.currentSlide + i && (t = !0)) : (t = e.currentSlide <= o && o < e.currentSlide + e.slidesToShow), { "slick-slide": !0, "slick-active": t, "slick-center": n, "slick-cloned": r, "slick-current": o === e.currentSlide, } ); }, f = function (e, t) { return e.key || t; }, d = function (e) { var t, n = [], s = [], u = [], c = i.default.Children.count(e.children), d = (0, a.lazyStartIndex)(e), p = (0, a.lazyEndIndex)(e); return ( i.default.Children.forEach(e.children, function (h, g) { var m = void 0, y = { message: "children", index: g, slidesToScroll: e.slidesToScroll, currentSlide: e.currentSlide, }; m = !e.lazyLoad || (e.lazyLoad && e.lazyLoadedList.indexOf(g) >= 0) ? h : i.default.createElement("div", null); var v = (function (e) { var t = {}; return ( (void 0 !== e.variableWidth && !1 !== e.variableWidth) || (t.width = e.slideWidth), e.fade && ((t.position = "relative"), e.vertical ? (t.top = -e.index * parseInt(e.slideHeight)) : (t.left = -e.index * parseInt(e.slideWidth)), (t.opacity = e.currentSlide === e.index ? 1 : 0), (t.transition = "opacity " + e.speed + "ms " + e.cssEase + ", visibility " + e.speed + "ms " + e.cssEase), (t.WebkitTransition = "opacity " + e.speed + "ms " + e.cssEase + ", visibility " + e.speed + "ms " + e.cssEase)), t ); })(r({}, e, { index: g })), b = m.props.className || "", _ = l(r({}, e, { index: g })); if ( (n.push( i.default.cloneElement(m, { key: "original" + f(m, g), "data-index": g, className: (0, o.default)(_, b), tabIndex: "-1", "aria-hidden": !_["slick-active"], style: r({ outline: "none" }, m.props.style || {}, v), onClick: function (t) { m.props && m.props.onClick && m.props.onClick(t), e.focusOnSelect && e.focusOnSelect(y); }, }) ), e.infinite && !1 === e.fade) ) { var w = c - g; w <= (0, a.getPreClones)(e) && c !== e.slidesToShow && ((t = -w) >= d && (m = h), (_ = l(r({}, e, { index: t }))), s.push( i.default.cloneElement(m, { key: "precloned" + f(m, t), "data-index": t, tabIndex: "-1", className: (0, o.default)(_, b), "aria-hidden": !_["slick-active"], style: r({}, m.props.style || {}, v), onClick: function (t) { m.props && m.props.onClick && m.props.onClick(t), e.focusOnSelect && e.focusOnSelect(y); }, }) )), c !== e.slidesToShow && ((t = c + g) < p && (m = h), (_ = l(r({}, e, { index: t }))), u.push( i.default.cloneElement(m, { key: "postcloned" + f(m, t), "data-index": t, tabIndex: "-1", className: (0, o.default)(_, b), "aria-hidden": !_["slick-active"], style: r({}, m.props.style || {}, v), onClick: function (t) { m.props && m.props.onClick && m.props.onClick(t), e.focusOnSelect && e.focusOnSelect(y); }, }) )); } }), e.rtl ? s.concat(n, u).reverse() : s.concat(n, u) ); }; t.Track = (function (e) { function t() { return u(this, t), c(this, e.apply(this, arguments)); } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), (t.prototype.render = function () { var e = d(this.props), t = this.props, n = { onMouseEnter: t.onMouseEnter, onMouseOver: t.onMouseOver, onMouseLeave: t.onMouseLeave, }; return i.default.createElement( "div", r({ className: "slick-track", style: this.props.trackStyle }, n), e ); }), t ); })(i.default.PureComponent); }, 15518: function (e, t, n) { "use strict"; (t.__esModule = !0), (t.canUseDOM = t.slidesOnLeft = t.slidesOnRight = t.siblingDirection = t.getTotalSlides = t.getPostClones = t.getPreClones = t.getTrackLeft = t.getTrackAnimateCSS = t.getTrackCSS = t.checkSpecKeys = t.getSlideCount = t.checkNavigable = t.getNavigableIndexes = t.swipeEnd = t.swipeMove = t.swipeStart = t.keyHandler = t.changeSlide = t.slideHandler = t.initializedState = t.extractObject = t.canGoNext = t.getSwipeDirection = t.getHeight = t.getWidth = t.lazySlidesOnRight = t.lazySlidesOnLeft = t.lazyEndIndex = t.lazyStartIndex = t.getRequiredLazySlides = t.getOnDemandLazySlides = void 0); var r = Object.assign || 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; }, i = a(n(28416)), o = a(n(73935)); function a(e) { return e && e.__esModule ? e : { default: e }; } var s = (t.getOnDemandLazySlides = function (e) { for (var t = [], n = u(e), r = c(e), i = n; i < r; i++) e.lazyLoadedList.indexOf(i) < 0 && t.push(i); return t; }), u = ((t.getRequiredLazySlides = function (e) { for (var t = [], n = u(e), r = c(e), i = n; i < r; i++) t.push(i); return t; }), (t.lazyStartIndex = function (e) { return e.currentSlide - l(e); })), c = (t.lazyEndIndex = function (e) { return e.currentSlide + f(e); }), l = (t.lazySlidesOnLeft = function (e) { return e.centerMode ? Math.floor(e.slidesToShow / 2) + (parseInt(e.centerPadding) > 0 ? 1 : 0) : 0; }), f = (t.lazySlidesOnRight = function (e) { return e.centerMode ? Math.floor((e.slidesToShow - 1) / 2) + 1 + (parseInt(e.centerPadding) > 0 ? 1 : 0) : e.slidesToShow; }), d = (t.getWidth = function (e) { return (e && e.offsetWidth) || 0; }), p = (t.getHeight = function (e) { return (e && e.offsetHeight) || 0; }), h = (t.getSwipeDirection = function (e) { var t, n, r, i, o = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; return ( (t = e.startX - e.curX), (n = e.startY - e.curY), (r = Math.atan2(n, t)), (i = Math.round((180 * r) / Math.PI)) < 0 && (i = 360 - Math.abs(i)), (i <= 45 && i >= 0) || (i <= 360 && i >= 315) ? "left" : i >= 135 && i <= 225 ? "right" : !0 === o ? i >= 35 && i <= 135 ? "up" : "down" : "vertical" ); }), g = (t.canGoNext = function (e) { var t = !0; return ( e.infinite || (((e.centerMode && e.currentSlide >= e.slideCount - 1) || e.slideCount <= e.slidesToShow || e.currentSlide >= e.slideCount - e.slidesToShow) && (t = !1)), t ); }), m = ((t.extractObject = function (e, t) { var n = {}; return ( t.forEach(function (t) { return (n[t] = e[t]); }), n ); }), (t.initializedState = function (e) { var t = i.default.Children.count(e.children), n = Math.ceil(d(o.default.findDOMNode(e.listRef))), r = Math.ceil(d(o.default.findDOMNode(e.trackRef))), a = void 0; if (e.vertical) a = n; else { var u = e.centerMode && 2 * parseInt(e.centerPadding); "string" == typeof e.centerPadding && "%" === e.centerPadding.slice(-1) && (u *= n / 100), (a = Math.ceil((n - u) / e.slidesToShow)); } var c = o.default.findDOMNode(e.listRef) && p( o.default .findDOMNode(e.listRef) .querySelector('[data-index="0"]') ), l = c * e.slidesToShow, f = void 0 === e.currentSlide ? e.initialSlide : e.currentSlide; e.rtl && void 0 === e.currentSlide && (f = t - 1 - e.initialSlide); var h = e.lazyLoadedList || [], g = s({ currentSlide: f, lazyLoadedList: h }, e); h.concat(g); var m = { slideCount: t, slideWidth: a, listWidth: n, trackWidth: r, currentSlide: f, slideHeight: c, listHeight: l, lazyLoadedList: h, }; return ( null === e.autoplaying && e.autoplay && (m.autoplaying = "playing"), m ); }), (t.slideHandler = function (e) { var t = e.waitForAnimate, n = e.animating, i = e.fade, o = e.infinite, a = e.index, u = e.slideCount, c = e.lazyLoadedList, l = e.lazyLoad, f = e.currentSlide, d = e.centerMode, p = e.slidesToScroll, h = e.slidesToShow, m = e.useCSS; if (t && n) return {}; var y = a, v = void 0, b = void 0, x = void 0, S = {}, k = {}; if (i) { if (!o && (a < 0 || a >= u)) return {}; a < 0 ? (y = a + u) : a >= u && (y = a - u), l && c.indexOf(y) < 0 && c.push(y), (S = { animating: !0, currentSlide: y, lazyLoadedList: c }), (k = { animating: !1 }); } else (v = y), y < 0 ? ((v = y + u), o ? u % p != 0 && (v = u - (u % p)) : (v = 0)) : !g(e) && y > f ? (y = v = f) : d && y >= u ? ((y = o ? u : u - 1), (v = o ? 0 : u - 1)) : y >= u && ((v = y - u), o ? u % p != 0 && (v = 0) : (v = u - h)), (b = T(r({}, e, { slideIndex: y }))), (x = T(r({}, e, { slideIndex: v }))), o || (b === x && (y = v), (b = x)), l && c.concat(s(r({}, e, { currentSlide: y }))), m ? ((S = { animating: !0, currentSlide: v, trackStyle: w(r({}, e, { left: b })), lazyLoadedList: c, }), (k = { animating: !1, currentSlide: v, trackStyle: _(r({}, e, { left: x })), swipeLeft: null, })) : (S = { currentSlide: v, trackStyle: _(r({}, e, { left: x })), lazyLoadedList: c, }); return { state: S, nextState: k }; }), (t.changeSlide = function (e, t) { var n, i, o, a, s = e.slidesToScroll, u = e.slidesToShow, c = e.slideCount, l = e.currentSlide, f = e.lazyLoad, d = e.infinite; if (((n = c % s != 0 ? 0 : (c - l) % s), "previous" === t.message)) (a = l - (o = 0 === n ? s : u - n)), f && !d && (a = -1 === (i = l - o) ? c - 1 : i); else if ("next" === t.message) (a = l + (o = 0 === n ? s : n)), f && !d && (a = ((l + s) % c) + n); else if ("dots" === t.message) { if ((a = t.index * t.slidesToScroll) === t.currentSlide) return null; } else if ("children" === t.message) { if ((a = t.index) === t.currentSlide) return null; if (d) { var p = E(r({}, e, { targetSlide: a })); a > t.currentSlide && "left" === p ? (a -= c) : a < t.currentSlide && "right" === p && (a += c); } } else if ( "index" === t.message && (a = Number(t.index)) === t.currentSlide ) return null; return a; }), (t.keyHandler = function (e, t, n) { return e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !t ? "" : 37 === e.keyCode ? n ? "next" : "previous" : 39 === e.keyCode ? n ? "previous" : "next" : ""; }), (t.swipeStart = function (e, t, n) { return ( "IMG" === e.target.tagName && e.preventDefault(), !t || (!n && -1 !== e.type.indexOf("mouse")) ? "" : { dragging: !0, touchObject: { startX: e.touches ? e.touches[0].pageX : e.clientX, startY: e.touches ? e.touches[0].pageY : e.clientY, curX: e.touches ? e.touches[0].pageX : e.clientX, curY: e.touches ? e.touches[0].pageY : e.clientY, }, } ); }), (t.swipeMove = function (e, t) { var n = t.scrolling, i = t.animating, o = t.vertical, a = t.swipeToSlide, s = t.verticalSwiping, u = t.rtl, c = t.currentSlide, l = t.edgeFriction, f = t.edgeDragged, d = t.onEdge, p = t.swiped, m = t.swiping, y = t.slideCount, v = t.slidesToScroll, b = t.infinite, w = t.touchObject, x = t.swipeEvent, S = t.listHeight, k = t.listWidth; if (!n) { if (i) return e.preventDefault(); o && a && s && e.preventDefault(); var E = void 0, O = {}, C = T(t); (w.curX = e.touches ? e.touches[0].pageX : e.clientX), (w.curY = e.touches ? e.touches[0].pageY : e.clientY), (w.swipeLength = Math.round( Math.sqrt(Math.pow(w.curX - w.startX, 2)) )); var L = Math.round(Math.sqrt(Math.pow(w.curY - w.startY, 2))); if (!s && !m && L > 10) return { scrolling: !0 }; s && (w.swipeLength = L); var A = (u ? -1 : 1) * (w.curX > w.startX ? 1 : -1); s && (A = w.curY > w.startY ? 1 : -1); var I = Math.ceil(y / v), M = h(t.touchObject, s), P = w.swipeLength; return ( b || (((0 === c && "right" === M) || (c + 1 >= I && "left" === M) || (!g(t) && "left" === M)) && ((P = w.swipeLength * l), !1 === f && d && (d(M), (O.edgeDragged = !0)))), !p && x && (x(M), (O.swiped = !0)), (E = o ? C + P * (S / k) * A : u ? C - P * A : C + P * A), s && (E = C + P * A), (O = r({}, O, { touchObject: w, swipeLeft: E, trackStyle: _(r({}, t, { left: E })), })), Math.abs(w.curX - w.startX) < 0.8 * Math.abs(w.curY - w.startY) ? O : (w.swipeLength > 10 && ((O.swiping = !0), e.preventDefault()), O) ); } }), (t.swipeEnd = function (e, t) { var n = t.dragging, i = t.swipe, o = t.touchObject, a = t.listWidth, s = t.touchThreshold, u = t.verticalSwiping, c = t.listHeight, l = t.currentSlide, f = t.swipeToSlide, d = t.scrolling, p = t.onSwipe; if (!n) return i && e.preventDefault(), {}; var g = u ? c / s : a / s, m = h(o, u), b = { dragging: !1, edgeDragged: !1, scrolling: !1, swiping: !1, swiped: !1, swipeLeft: null, touchObject: {}, }; if (d) return b; if (!o.swipeLength) return b; if (o.swipeLength > g) { e.preventDefault(), p && p(m); var _ = void 0, x = void 0; switch (m) { case "left": case "up": (x = l + v(t)), (_ = f ? y(t, x) : x), (b.currentDirection = 0); break; case "right": case "down": (x = l - v(t)), (_ = f ? y(t, x) : x), (b.currentDirection = 1); break; default: _ = l; } b.triggerSlideHandler = _; } else { var S = T(t); b.trackStyle = w(r({}, t, { left: S })); } return b; }), (t.getNavigableIndexes = function (e) { for ( var t = e.infinite ? 2 * e.slideCount : e.slideCount, n = e.infinite ? -1 * e.slidesToShow : 0, r = e.infinite ? -1 * e.slidesToShow : 0, i = []; n < t; ) i.push(n), (n = r + e.slidesToScroll), (r += Math.min(e.slidesToScroll, e.slidesToShow)); return i; })), y = (t.checkNavigable = function (e, t) { var n = m(e), r = 0; if (t > n[n.length - 1]) t = n[n.length - 1]; else for (var i in n) { if (t < n[i]) { t = r; break; } r = n[i]; } return t; }), v = (t.getSlideCount = function (e) { var t = e.centerMode ? e.slideWidth * Math.floor(e.slidesToShow / 2) : 0; if (e.swipeToSlide) { var n = void 0, r = o.default .findDOMNode(e.listRef) .querySelectorAll(".slick-slide"); if ( (Array.from(r).every(function (r) { if (e.vertical) { if (r.offsetTop + p(r) / 2 > -1 * e.swipeLeft) return (n = r), !1; } else if (r.offsetLeft - t + d(r) / 2 > -1 * e.swipeLeft) return (n = r), !1; return !0; }), !n) ) return 0; var i = !0 === e.rtl ? e.slideCount - e.currentSlide : e.currentSlide; return Math.abs(n.dataset.index - i) || 1; } return e.slidesToScroll; }), b = (t.checkSpecKeys = function (e, t) { return t.reduce(function (t, n) { return t && e.hasOwnProperty(n); }, !0) ? null : console.error("Keys Missing:", e); }), _ = (t.getTrackCSS = function (e) { b(e, [ "left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", ]); var t = void 0, n = void 0, i = e.slideCount + 2 * e.slidesToShow; e.vertical ? (n = i * e.slideHeight) : (t = k(e) * e.slideWidth); var o = { opacity: 1, transition: "", WebkitTransition: "" }; if (e.useTransform) { var a = e.vertical ? "translate3d(0px, " + e.left + "px, 0px)" : "translate3d(" + e.left + "px, 0px, 0px)", s = e.vertical ? "translate3d(0px, " + e.left + "px, 0px)" : "translate3d(" + e.left + "px, 0px, 0px)", u = e.vertical ? "translateY(" + e.left + "px)" : "translateX(" + e.left + "px)"; o = r({}, o, { WebkitTransform: a, transform: s, msTransform: u }); } else e.vertical ? (o.top = e.left) : (o.left = e.left); return ( e.fade && (o = { opacity: 1 }), t && (o.width = t), n && (o.height = n), window && !window.addEventListener && window.attachEvent && (e.vertical ? (o.marginTop = e.left + "px") : (o.marginLeft = e.left + "px")), o ); }), w = (t.getTrackAnimateCSS = function (e) { b(e, [ "left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase", ]); var t = _(e); return ( e.useTransform ? ((t.WebkitTransition = "-webkit-transform " + e.speed + "ms " + e.cssEase), (t.transition = "transform " + e.speed + "ms " + e.cssEase)) : e.vertical ? (t.transition = "top " + e.speed + "ms " + e.cssEase) : (t.transition = "left " + e.speed + "ms " + e.cssEase), t ); }), T = (t.getTrackLeft = function (e) { if (e.unslick) return 0; b(e, [ "slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight", ]); var t, n, r = e.slideIndex, i = e.trackRef, a = e.infinite, s = e.centerMode, u = e.slideCount, c = e.slidesToShow, l = e.slidesToScroll, f = e.slideWidth, d = e.listWidth, p = e.variableWidth, h = e.slideHeight, g = e.fade, m = e.vertical; if (g || 1 === e.slideCount) return 0; var y = 0; if ( (a ? ((y = -x(e)), u % l != 0 && r + l > u && (y = -(r > u ? c - (r - u) : u % l)), s && (y += parseInt(c / 2))) : (u % l != 0 && r + l > u && (y = c - (u % l)), s && (y = parseInt(c / 2))), (t = m ? r * h * -1 + y * h : r * f * -1 + y * f), !0 === p) ) { var v, _ = o.default.findDOMNode(i); if ( ((v = r + x(e)), (t = (n = _ && _.childNodes[v]) ? -1 * n.offsetLeft : 0), !0 === s) ) { (v = a ? r + x(e) : r), (n = _ && _.children[v]), (t = 0); for (var w = 0; w < v; w++) t -= _ && _.children[w] && _.children[w].offsetWidth; (t -= parseInt(e.centerPadding)), (t += n && (d - n.offsetWidth) / 2); } } return t; }), x = (t.getPreClones = function (e) { return e.unslick || !e.infinite ? 0 : e.variableWidth ? e.slideCount : e.slidesToShow + (e.centerMode ? 1 : 0); }), S = (t.getPostClones = function (e) { return e.unslick || !e.infinite ? 0 : e.slideCount; }), k = (t.getTotalSlides = function (e) { return 1 === e.slideCount ? 1 : x(e) + e.slideCount + S(e); }), E = (t.siblingDirection = function (e) { return e.targetSlide > e.currentSlide ? e.targetSlide > e.currentSlide + O(e) ? "left" : "right" : e.targetSlide < e.currentSlide - C(e) ? "right" : "left"; }), O = (t.slidesOnRight = function (e) { var t = e.slidesToShow, n = e.centerMode, r = e.rtl, i = e.centerPadding; if (n) { var o = (t - 1) / 2 + 1; return parseInt(i) > 0 && (o += 1), r && t % 2 == 0 && (o += 1), o; } return r ? 0 : t - 1; }), C = (t.slidesOnLeft = function (e) { var t = e.slidesToShow, n = e.centerMode, r = e.rtl, i = e.centerPadding; if (n) { var o = (t - 1) / 2 + 1; return parseInt(i) > 0 && (o += 1), r || t % 2 != 0 || (o += 1), o; } return r ? t - 1 : 0; }); t.canUseDOM = function () { return !( "undefined" == typeof window || !window.document || !window.document.createElement ); }; }, 64207: function (e, t, n) { "use strict"; n.r(t); var r = (function () { if ("undefined" != typeof Map) return Map; function e(e, t) { var n = -1; return ( e.some(function (e, r) { return e[0] === t && ((n = r), !0); }), n ); } return (function () { function t() { this.__entries__ = []; } var n = { size: { configurable: !0 } }; return ( (n.size.get = function () { return this.__entries__.length; }), (t.prototype.get = function (t) { var n = e(this.__entries__, t), r = this.__entries__[n]; return r && r[1]; }), (t.prototype.set = function (t, n) { var r = e(this.__entries__, t); ~r ? (this.__entries__[r][1] = n) : this.__entries__.push([t, n]); }), (t.prototype.delete = function (t) { var n = this.__entries__, r = e(n, t); ~r && n.splice(r, 1); }), (t.prototype.has = function (t) { return !!~e(this.__entries__, t); }), (t.prototype.clear = function () { this.__entries__.splice(0); }), (t.prototype.forEach = function (e, t) { void 0 === t && (t = null); for (var n = 0, r = this.__entries__; n < r.length; n += 1) { var i = r[n]; e.call(t, i[1], i[0]); } }), Object.defineProperties(t.prototype, n), t ); })(); })(), i = "undefined" != typeof window && "undefined" != typeof document && window.document === document, o = void 0 !== n.g && n.g.Math === Math ? n.g : "undefined" != typeof self && self.Math === Math ? self : "undefined" != typeof window && window.Math === Math ? window : Function("return this")(), a = "function" == typeof requestAnimationFrame ? requestAnimationFrame.bind(o) : function (e) { return setTimeout(function () { return e(Date.now()); }, 1e3 / 60); }, s = [ "top", "right", "bottom", "left", "width", "height", "size", "weight", ], u = "undefined" != typeof MutationObserver, c = function () { (this.connected_ = !1), (this.mutationEventsAdded_ = !1), (this.mutationsObserver_ = null), (this.observers_ = []), (this.onTransitionEnd_ = this.onTransitionEnd_.bind(this)), (this.refresh = (function (e, t) { var n = !1, r = !1, i = 0; function o() { n && ((n = !1), e()), r && u(); } function s() { a(o); } function u() { var e = Date.now(); if (n) { if (e - i < 2) return; r = !0; } else (n = !0), (r = !1), setTimeout(s, t); i = e; } return u; })(this.refresh.bind(this), 20)); }; (c.prototype.addObserver = function (e) { ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_(); }), (c.prototype.removeObserver = function (e) { var t = this.observers_, n = t.indexOf(e); ~n && t.splice(n, 1), !t.length && this.connected_ && this.disconnect_(); }), (c.prototype.refresh = function () { this.updateObservers_() && this.refresh(); }), (c.prototype.updateObservers_ = function () { var e = this.observers_.filter(function (e) { return e.gatherActive(), e.hasActive(); }); return ( e.forEach(function (e) { return e.broadcastActive(); }), e.length > 0 ); }), (c.prototype.connect_ = function () { i && !this.connected_ && (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), u ? ((this.mutationsObserver_ = new MutationObserver(this.refresh)), this.mutationsObserver_.observe(document, { attributes: !0, childList: !0, characterData: !0, subtree: !0, })) : (document.addEventListener("DOMSubtreeModified", this.refresh), (this.mutationEventsAdded_ = !0)), (this.connected_ = !0)); }), (c.prototype.disconnect_ = function () { i && this.connected_ && (document.removeEventListener( "transitionend", this.onTransitionEnd_ ), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), (this.mutationsObserver_ = null), (this.mutationEventsAdded_ = !1), (this.connected_ = !1)); }), (c.prototype.onTransitionEnd_ = function (e) { var t = e.propertyName; void 0 === t && (t = ""), s.some(function (e) { return !!~t.indexOf(e); }) && this.refresh(); }), (c.getInstance = function () { return this.instance_ || (this.instance_ = new c()), this.instance_; }), (c.instance_ = null); var l = function (e, t) { for (var n = 0, r = Object.keys(t); n < r.length; n += 1) { var i = r[n]; Object.defineProperty(e, i, { value: t[i], enumerable: !1, writable: !1, configurable: !0, }); } return e; }, f = function (e) { return (e && e.ownerDocument && e.ownerDocument.defaultView) || o; }, d = v(0, 0, 0, 0); function p(e) { return parseFloat(e) || 0; } function h(e) { for (var t = [], n = arguments.length - 1; n-- > 0; ) t[n] = arguments[n + 1]; return t.reduce(function (t, n) { return t + p(e["border-" + n + "-width"]); }, 0); } function g(e) { var t = e.clientWidth, n = e.clientHeight; if (!t && !n) return d; var r = f(e).getComputedStyle(e), i = (function (e) { for ( var t = {}, n = 0, r = ["top", "right", "bottom", "left"]; n < r.length; n += 1 ) { var i = r[n], o = e["padding-" + i]; t[i] = p(o); } return t; })(r), o = i.left + i.right, a = i.top + i.bottom, s = p(r.width), u = p(r.height); if ( ("border-box" === r.boxSizing && (Math.round(s + o) !== t && (s -= h(r, "left", "right") + o), Math.round(u + a) !== n && (u -= h(r, "top", "bottom") + a)), !(function (e) { return e === f(e).document.documentElement; })(e)) ) { var c = Math.round(s + o) - t, l = Math.round(u + a) - n; 1 !== Math.abs(c) && (s -= c), 1 !== Math.abs(l) && (u -= l); } return v(i.left, i.top, s, u); } var m = "undefined" != typeof SVGGraphicsElement ? function (e) { return e instanceof f(e).SVGGraphicsElement; } : function (e) { return ( e instanceof f(e).SVGElement && "function" == typeof e.getBBox ); }; function y(e) { return i ? m(e) ? (function (e) { var t = e.getBBox(); return v(0, 0, t.width, t.height); })(e) : g(e) : d; } function v(e, t, n, r) { return { x: e, y: t, width: n, height: r }; } var b = function (e) { (this.broadcastWidth = 0), (this.broadcastHeight = 0), (this.contentRect_ = v(0, 0, 0, 0)), (this.target = e); }; (b.prototype.isActive = function () { var e = y(this.target); return ( (this.contentRect_ = e), e.width !== this.broadcastWidth || e.height !== this.broadcastHeight ); }), (b.prototype.broadcastRect = function () { var e = this.contentRect_; return ( (this.broadcastWidth = e.width), (this.broadcastHeight = e.height), e ); }); var _ = function (e, t) { var n, r, i, o, a, s, u, c = ((r = (n = t).x), (i = n.y), (o = n.width), (a = n.height), (s = "undefined" != typeof DOMRectReadOnly ? DOMRectReadOnly : Object), (u = Object.create(s.prototype)), l(u, { x: r, y: i, width: o, height: a, top: i, right: r + o, bottom: a + i, left: r, }), u); l(this, { target: e, contentRect: c }); }, w = function (e, t, n) { if ( ((this.activeObservations_ = []), (this.observations_ = new r()), "function" != typeof e) ) throw new TypeError( "The callback provided as parameter 1 is not a function." ); (this.callback_ = e), (this.controller_ = t), (this.callbackCtx_ = n); }; (w.prototype.observe = function (e) { if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); if ("undefined" != typeof Element && Element instanceof Object) { if (!(e instanceof f(e).Element)) throw new TypeError('parameter 1 is not of type "Element".'); var t = this.observations_; t.has(e) || (t.set(e, new b(e)), this.controller_.addObserver(this), this.controller_.refresh()); } }), (w.prototype.unobserve = function (e) { if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); if ("undefined" != typeof Element && Element instanceof Object) { if (!(e instanceof f(e).Element)) throw new TypeError('parameter 1 is not of type "Element".'); var t = this.observations_; t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this)); } }), (w.prototype.disconnect = function () { this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this); }), (w.prototype.gatherActive = function () { var e = this; this.clearActive(), this.observations_.forEach(function (t) { t.isActive() && e.activeObservations_.push(t); }); }), (w.prototype.broadcastActive = function () { if (this.hasActive()) { var e = this.callbackCtx_, t = this.activeObservations_.map(function (e) { return new _(e.target, e.broadcastRect()); }); this.callback_.call(e, t, e), this.clearActive(); } }), (w.prototype.clearActive = function () { this.activeObservations_.splice(0); }), (w.prototype.hasActive = function () { return this.activeObservations_.length > 0; }); var T = "undefined" != typeof WeakMap ? new WeakMap() : new r(), x = function (e) { if (!(this instanceof x)) throw new TypeError("Cannot call a class as a function."); if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); var t = c.getInstance(), n = new w(e, t, this); T.set(this, n); }; ["observe", "unobserve", "disconnect"].forEach(function (e) { x.prototype[e] = function () { return (t = T.get(this))[e].apply(t, arguments); var t; }; }); var S = void 0 !== o.ResizeObserver ? o.ResizeObserver : x; t.default = S; }, 37723: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return p; }, }); var r = n(87462), i = n(63366), o = n(51721); function a(e, t) { return e .replace(new RegExp("(^|\\s)" + t + "(?:\\s|$)", "g"), "$1") .replace(/\s+/g, " ") .replace(/^\s*|\s*$/g, ""); } var s = n(28416), u = n.n(s), c = n(12666), l = n(59391), f = function (e, t) { return ( e && t && t.split(" ").forEach(function (t) { return ( (r = t), void ((n = e).classList ? n.classList.remove(r) : "string" == typeof n.className ? (n.className = a(n.className, r)) : n.setAttribute( "class", a((n.className && n.className.baseVal) || "", r) )) ); var n, r; }) ); }, d = (function (e) { function t() { for ( var t, n = arguments.length, r = new Array(n), i = 0; i < n; i++ ) r[i] = arguments[i]; return ( ((t = e.call.apply(e, [this].concat(r)) || this).appliedClasses = { appear: {}, enter: {}, exit: {} }), (t.onEnter = function (e, n) { var r = t.resolveArguments(e, n), i = r[0], o = r[1]; t.removeClasses(i, "exit"), t.addClass(i, o ? "appear" : "enter", "base"), t.props.onEnter && t.props.onEnter(e, n); }), (t.onEntering = function (e, n) { var r = t.resolveArguments(e, n), i = r[0], o = r[1] ? "appear" : "enter"; t.addClass(i, o, "active"), t.props.onEntering && t.props.onEntering(e, n); }), (t.onEntered = function (e, n) { var r = t.resolveArguments(e, n), i = r[0], o = r[1] ? "appear" : "enter"; t.removeClasses(i, o), t.addClass(i, o, "done"), t.props.onEntered && t.props.onEntered(e, n); }), (t.onExit = function (e) { var n = t.resolveArguments(e)[0]; t.removeClasses(n, "appear"), t.removeClasses(n, "enter"), t.addClass(n, "exit", "base"), t.props.onExit && t.props.onExit(e); }), (t.onExiting = function (e) { var n = t.resolveArguments(e)[0]; t.addClass(n, "exit", "active"), t.props.onExiting && t.props.onExiting(e); }), (t.onExited = function (e) { var n = t.resolveArguments(e)[0]; t.removeClasses(n, "exit"), t.addClass(n, "exit", "done"), t.props.onExited && t.props.onExited(e); }), (t.resolveArguments = function (e, n) { return t.props.nodeRef ? [t.props.nodeRef.current, e] : [e, n]; }), (t.getClassNames = function (e) { var n = t.props.classNames, r = "string" == typeof n, i = r ? "" + (r && n ? n + "-" : "") + e : n[e]; return { baseClassName: i, activeClassName: r ? i + "-active" : n[e + "Active"], doneClassName: r ? i + "-done" : n[e + "Done"], }; }), t ); } (0, o.Z)(t, e); var n = t.prototype; return ( (n.addClass = function (e, t, n) { var r = this.getClassNames(t)[n + "ClassName"], i = this.getClassNames("enter").doneClassName; "appear" === t && "done" === n && i && (r += " " + i), "active" === n && e && (0, l.Q)(e), r && ((this.appliedClasses[t][n] = r), (function (e, t) { e && t && t.split(" ").forEach(function (t) { return ( (r = t), void ((n = e).classList ? n.classList.add(r) : (function (e, t) { return e.classList ? !!t && e.classList.contains(t) : -1 !== ( " " + (e.className.baseVal || e.className) + " " ).indexOf(" " + t + " "); })(n, r) || ("string" == typeof n.className ? (n.className = n.className + " " + r) : n.setAttribute( "class", ((n.className && n.className.baseVal) || "") + " " + r ))) ); var n, r; }); })(e, r)); }), (n.removeClasses = function (e, t) { var n = this.appliedClasses[t], r = n.base, i = n.active, o = n.done; (this.appliedClasses[t] = {}), r && f(e, r), i && f(e, i), o && f(e, o); }), (n.render = function () { var e = this.props, t = (e.classNames, (0, i.Z)(e, ["classNames"])); return u().createElement( c.ZP, (0, r.Z)({}, t, { onEnter: this.onEnter, onEntered: this.onEntered, onEntering: this.onEntering, onExit: this.onExit, onExiting: this.onExiting, onExited: this.onExited, }) ); }), t ); })(u().Component); (d.defaultProps = { classNames: "" }), (d.propTypes = {}); var p = d; }, 12666: function (e, t, n) { "use strict"; n.d(t, { ZP: function () { return v; }, }); var r = n(63366), i = n(51721), o = n(28416), a = n.n(o), s = n(73935), u = !1, c = n(220), l = n(59391), f = "unmounted", d = "exited", p = "entering", h = "entered", g = "exiting", m = (function (e) { function t(t, n) { var r; r = e.call(this, t, n) || this; var i, o = n && !n.isMounting ? t.enter : t.appear; return ( (r.appearStatus = null), t.in ? o ? ((i = d), (r.appearStatus = p)) : (i = h) : (i = t.unmountOnExit || t.mountOnEnter ? f : d), (r.state = { status: i }), (r.nextCallback = null), r ); } (0, i.Z)(t, e), (t.getDerivedStateFromProps = function (e, t) { return e.in && t.status === f ? { status: d } : null; }); var n = t.prototype; return ( (n.componentDidMount = function () { this.updateStatus(!0, this.appearStatus); }), (n.componentDidUpdate = function (e) { var t = null; if (e !== this.props) { var n = this.state.status; this.props.in ? n !== p && n !== h && (t = p) : (n !== p && n !== h) || (t = g); } this.updateStatus(!1, t); }), (n.componentWillUnmount = function () { this.cancelNextCallback(); }), (n.getTimeouts = function () { var e, t, n, r = this.props.timeout; return ( (e = t = n = r), null != r && "number" != typeof r && ((e = r.exit), (t = r.enter), (n = void 0 !== r.appear ? r.appear : t)), { exit: e, enter: t, appear: n } ); }), (n.updateStatus = function (e, t) { if ((void 0 === e && (e = !1), null !== t)) if ((this.cancelNextCallback(), t === p)) { if (this.props.unmountOnExit || this.props.mountOnEnter) { var n = this.props.nodeRef ? this.props.nodeRef.current : s.findDOMNode(this); n && (0, l.Q)(n); } this.performEnter(e); } else this.performExit(); else this.props.unmountOnExit && this.state.status === d && this.setState({ status: f }); }), (n.performEnter = function (e) { var t = this, n = this.props.enter, r = this.context ? this.context.isMounting : e, i = this.props.nodeRef ? [r] : [s.findDOMNode(this), r], o = i[0], a = i[1], c = this.getTimeouts(), l = r ? c.appear : c.enter; (!e && !n) || u ? this.safeSetState({ status: h }, function () { t.props.onEntered(o); }) : (this.props.onEnter(o, a), this.safeSetState({ status: p }, function () { t.props.onEntering(o, a), t.onTransitionEnd(l, function () { t.safeSetState({ status: h }, function () { t.props.onEntered(o, a); }); }); })); }), (n.performExit = function () { var e = this, t = this.props.exit, n = this.getTimeouts(), r = this.props.nodeRef ? void 0 : s.findDOMNode(this); t && !u ? (this.props.onExit(r), this.safeSetState({ status: g }, function () { e.props.onExiting(r), e.onTransitionEnd(n.exit, function () { e.safeSetState({ status: d }, function () { e.props.onExited(r); }); }); })) : this.safeSetState({ status: d }, function () { e.props.onExited(r); }); }), (n.cancelNextCallback = function () { null !== this.nextCallback && (this.nextCallback.cancel(), (this.nextCallback = null)); }), (n.safeSetState = function (e, t) { (t = this.setNextCallback(t)), this.setState(e, t); }), (n.setNextCallback = function (e) { var t = this, n = !0; return ( (this.nextCallback = function (r) { n && ((n = !1), (t.nextCallback = null), e(r)); }), (this.nextCallback.cancel = function () { n = !1; }), this.nextCallback ); }), (n.onTransitionEnd = function (e, t) { this.setNextCallback(t); var n = this.props.nodeRef ? this.props.nodeRef.current : s.findDOMNode(this), r = null == e && !this.props.addEndListener; if (n && !r) { if (this.props.addEndListener) { var i = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], o = i[0], a = i[1]; this.props.addEndListener(o, a); } null != e && setTimeout(this.nextCallback, e); } else setTimeout(this.nextCallback, 0); }), (n.render = function () { var e = this.state.status; if (e === f) return null; var t = this.props, n = t.children, i = (t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef, (0, r.Z)(t, [ "children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef", ])); return a().createElement( c.Z.Provider, { value: null }, "function" == typeof n ? n(e, i) : a().cloneElement(a().Children.only(n), i) ); }), t ); })(a().Component); function y() {} (m.contextType = c.Z), (m.propTypes = {}), (m.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: y, onEntering: y, onEntered: y, onExit: y, onExiting: y, onExited: y, }), (m.UNMOUNTED = f), (m.EXITED = d), (m.ENTERING = p), (m.ENTERED = h), (m.EXITING = g); var v = m; }, 70666: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return h; }, }); var r = n(63366), i = n(87462); var o = n(51721), a = n(28416), s = n.n(a), u = n(220); function c(e, t) { var n = Object.create(null); return ( e && a.Children.map(e, function (e) { return e; }).forEach(function (e) { n[e.key] = (function (e) { return t && (0, a.isValidElement)(e) ? t(e) : e; })(e); }), n ); } function l(e, t, n) { return null != n[t] ? n[t] : e.props[t]; } function f(e, t, n) { var r = c(e.children), i = (function (e, t) { function n(n) { return n in t ? t[n] : e[n]; } (e = e || {}), (t = t || {}); var r, i = Object.create(null), o = []; for (var a in e) a in t ? o.length && ((i[a] = o), (o = [])) : o.push(a); var s = {}; for (var u in t) { if (i[u]) for (r = 0; r < i[u].length; r++) { var c = i[u][r]; s[i[u][r]] = n(c); } s[u] = n(u); } for (r = 0; r < o.length; r++) s[o[r]] = n(o[r]); return s; })(t, r); return ( Object.keys(i).forEach(function (o) { var s = i[o]; if ((0, a.isValidElement)(s)) { var u = o in t, c = o in r, f = t[o], d = (0, a.isValidElement)(f) && !f.props.in; !c || (u && !d) ? c || !u || d ? c && u && (0, a.isValidElement)(f) && (i[o] = (0, a.cloneElement)(s, { onExited: n.bind(null, s), in: f.props.in, exit: l(s, "exit", e), enter: l(s, "enter", e), })) : (i[o] = (0, a.cloneElement)(s, { in: !1 })) : (i[o] = (0, a.cloneElement)(s, { onExited: n.bind(null, s), in: !0, exit: l(s, "exit", e), enter: l(s, "enter", e), })); } }), i ); } var d = Object.values || function (e) { return Object.keys(e).map(function (t) { return e[t]; }); }, p = (function (e) { function t(t, n) { var r, i = (r = e.call(this, t, n) || this).handleExited.bind( (function (e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; })(r) ); return ( (r.state = { contextValue: { isMounting: !0 }, handleExited: i, firstRender: !0, }), r ); } (0, o.Z)(t, e); var n = t.prototype; return ( (n.componentDidMount = function () { (this.mounted = !0), this.setState({ contextValue: { isMounting: !1 } }); }), (n.componentWillUnmount = function () { this.mounted = !1; }), (t.getDerivedStateFromProps = function (e, t) { var n, r, i = t.children, o = t.handleExited; return { children: t.firstRender ? ((n = e), (r = o), c(n.children, function (e) { return (0, a.cloneElement)(e, { onExited: r.bind(null, e), in: !0, appear: l(e, "appear", n), enter: l(e, "enter", n), exit: l(e, "exit", n) }); })) : f(e, i, o), firstRender: !1, }; }), (n.handleExited = function (e, t) { var n = c(this.props.children); e.key in n || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState(function (t) { var n = (0, i.Z)({}, t.children); return delete n[e.key], { children: n }; })); }), (n.render = function () { var e = this.props, t = e.component, n = e.childFactory, i = (0, r.Z)(e, ["component", "childFactory"]), o = this.state.contextValue, a = d(this.state.children).map(n); return ( delete i.appear, delete i.enter, delete i.exit, null === t ? s().createElement(u.Z.Provider, { value: o }, a) : s().createElement( u.Z.Provider, { value: o }, s().createElement(t, i, a) ) ); }), t ); })(s().Component); (p.propTypes = {}), (p.defaultProps = { component: "div", childFactory: function (e) { return e; }, }); var h = p; }, 220: function (e, t, n) { "use strict"; var r = n(28416), i = n.n(r); t.Z = i().createContext(null); }, 59391: function (e, t, n) { "use strict"; n.d(t, { Q: function () { return r; }, }); var r = function (e) { return e.scrollTop; }; }, 18127: function (e, t, n) { "use strict"; var r = n(28416); t.Z = function (e) { (0, r.useEffect)(e, []); }; }, 97809: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return u; }, }); var r = n(28416), i = "object" == typeof window, o = (n(38252), i ? window : null), a = function (e) { return !!e.addEventListener; }, s = function (e) { return !!e.on; }, u = function (e, t, n, i) { void 0 === n && (n = o), (0, r.useEffect)( function () { if (t && n) return ( a(n) ? n.addEventListener(e, t, i) : s(n) && n.on(e, t, i), function () { a(n) ? n.removeEventListener(e, t, i) : s(n) && n.off(e, t, i); } ); }, [e, t, n, JSON.stringify(i)] ); }; }, 30644: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return i; }, }); var r = n(28416); function i() { var e = (0, r.useRef)(!0); return e.current ? ((e.current = !1), !0) : e.current; } }, 80621: function (e, t, n) { "use strict"; var r = n(28416); t.Z = function (e, t) { var n = (0, r.useState)(null), i = n[0], o = n[1]; return ( (0, r.useEffect)( function () { if (e.current && "function" == typeof IntersectionObserver) { var n = new IntersectionObserver(function (e) { o(e[0]); }, t); return ( n.observe(e.current), function () { o(null), n.disconnect(); } ); } return function () {}; }, [e.current, t.threshold, t.root, t.rootMargin] ), i ); }; }, 38477: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return l; }, }); var r = n(28416), i = n(97809), o = function () {}, a = function (e, t, n, a) { void 0 === t && (t = o), void 0 === n && (n = {}), void 0 === a && (a = [e]); var s = n.event, u = void 0 === s ? "keydown" : s, c = n.target, l = n.options, f = (0, r.useMemo)(function () { var n, r = "function" == typeof (n = e) ? n : "string" == typeof n ? function (e) { return e.key === n; } : n ? function () { return !0; } : function () { return !1; }; return function (e) { if (r(e)) return t(e); }; }, a); (0, i.Z)(u, f, c, l); }, s = function (e) { var t = (0, r.useState)([!1, null]), n = t[0], i = t[1]; return ( a( e, function (e) { return i([!0, e]); }, { event: "keydown" }, [n] ), a( e, function (e) { return i([!1, e]); }, { event: "keyup" }, [n] ), n ); }, u = n(30644), c = function (e, t) { var n = (0, u.Z)(); (0, r.useEffect)(function () { if (!n) return e(); }, t); }, l = function (e, t, n, r) { void 0 === r && (r = s); var i = r(e), o = i[0], a = i[1]; c( function () { !o && n ? n(a) : o && t && t(a); }, [o] ); }; }, 74753: function (e, t, n) { "use strict"; var r = n(28416); t.Z = function (e, t) { (0, r.useEffect)(function () { return ( e && e(), function () { t && t(); } ); }, []); }; }, 89048: function (e, t, n) { "use strict"; var r = n(18127); t.Z = function (e) { (0, r.Z)(function () { e(); }); }; }, 37176: function (e, t, n) { "use strict"; var r = n(28416); t.Z = function (e) { var t = (0, r.useRef)(); return ( (0, r.useEffect)(function () { t.current = e; }), t.current ); }; }, 15451: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return s; }, }); var r = n(99376), i = n(28416), o = function (e, t, n) { var r = (0, i.useRef)(void 0); (r.current && n(t, r.current)) || (r.current = t), (0, i.useEffect)(e, r.current); }, a = function (e, t) { return e.every(function (e, n) { return (0, r.D)(e, t[n]); }); }, s = function (e, t) { o(e, t, a); }; }, 14428: function (e, t, n) { "use strict"; var r = n(28416), i = { restoreOnUnmount: !1 }; t.Z = "undefined" != typeof document ? function (e, t) { void 0 === t && (t = i); var n = (0, r.useRef)(document.title); (document.title = e), (0, r.useEffect)(function () { return t && t.restoreOnUnmount ? function () { document.title = n.current; } : void 0; }, []); } : function (e) {}; }, 77823: function (e, t, n) { "use strict"; var r = n(28416), i = n(18127); t.Z = function (e) { var t = (0, r.useRef)(e); (t.current = e), (0, i.Z)(function () { return function () { return t.current(); }; }); }; }, 16713: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }); var r = n(28416); t.default = function (e) { r.useEffect(e, []); }; }, 73969: function (e, t, n) { "use strict"; var r = n(28416), i = n(85987).isClient ? window : null, o = function (e) { return !!e.addEventListener; }, a = function (e) { return !!e.on; }; t.Z = function (e, t, n, s) { void 0 === n && (n = i), r.useEffect( function () { if (t && n) return ( o(n) ? n.addEventListener(e, t, s) : a(n) && n.on(e, t, s), function () { o(n) ? n.removeEventListener(e, t, s) : a(n) && n.off(e, t, s); } ); }, [e, t, n, JSON.stringify(s)] ); }; }, 70902: function (e, t, n) { "use strict"; var r = n(5272).__importDefault(n(16713)); t.Z = function (e) { r.default(function () { e(); }); }; }, 68434: function (e, t, n) { "use strict"; var r = n(28416); t.Z = function (e) { var t = r.useRef(); return ( r.useEffect(function () { t.current = e; }), t.current ); }; }, 85987: function (e, t, n) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.isClient = "object" == typeof window), (t.on = function (e) { for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; return e.addEventListener.apply(e, t); }), (t.off = function (e) { for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; return e.removeEventListener.apply(e, t); }), (t.isDeepEqual = n(38252)); }, 5272: function (e, t, n) { "use strict"; n.r(t), n.d(t, { __assign: function () { return o; }, __asyncDelegator: function () { return b; }, __asyncGenerator: function () { return v; }, __asyncValues: function () { return _; }, __await: function () { return y; }, __awaiter: function () { return l; }, __classPrivateFieldGet: function () { return S; }, __classPrivateFieldSet: function () { return k; }, __decorate: function () { return s; }, __exportStar: function () { return d; }, __extends: function () { return i; }, __generator: function () { return f; }, __importDefault: function () { return x; }, __importStar: function () { return T; }, __makeTemplateObject: function () { return w; }, __metadata: function () { return c; }, __param: function () { return u; }, __read: function () { return h; }, __rest: function () { return a; }, __spread: function () { return g; }, __spreadArrays: function () { return m; }, __values: function () { return p; }, }); var r = function (e, t) { return ( (r = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (e, t) { e.__proto__ = t; }) || function (e, t) { for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); }), r(e, t) ); }; function i(e, t) { function n() { this.constructor = e; } r(e, t), (e.prototype = null === t ? Object.create(t) : ((n.prototype = t.prototype), new n())); } var o = function () { return ( (o = Object.assign || function (e) { for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in (t = arguments[n])) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); return e; }), o.apply(this, arguments) ); }; function a(e, t) { var n = {}; for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); if (null != e && "function" == typeof Object.getOwnPropertySymbols) { var i = 0; for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]); } return n; } function s(e, t, n, r) { var i, o = arguments.length, a = o < 3 ? t : null === r ? (r = Object.getOwnPropertyDescriptor(t, n)) : r; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, r); else for (var s = e.length - 1; s >= 0; s--) (i = e[s]) && (a = (o < 3 ? i(a) : o > 3 ? i(t, n, a) : i(t, n)) || a); return o > 3 && a && Object.defineProperty(t, n, a), a; } function u(e, t) { return function (n, r) { t(n, r, e); }; } function c(e, t) { if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(e, t); } function l(e, t, n, r) { return new (n || (n = Promise))(function (i, o) { function a(e) { try { u(r.next(e)); } catch (e) { o(e); } } function s(e) { try { u(r.throw(e)); } catch (e) { o(e); } } function u(e) { var t; e.done ? i(e.value) : ((t = e.value), t instanceof n ? t : new n(function (e) { e(t); })).then(a, s); } u((r = r.apply(e, t || [])).next()); }); } function f(e, t) { var n, r, i, o, a = { label: 0, sent: function () { if (1 & i[0]) throw i[1]; return i[1]; }, trys: [], ops: [], }; return ( (o = { next: s(0), throw: s(1), return: s(2) }), "function" == typeof Symbol && (o[Symbol.iterator] = function () { return this; }), o ); function s(o) { return function (s) { return (function (o) { if (n) throw new TypeError("Generator is already executing."); for (; a; ) try { if ( ((n = 1), r && (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, o[1])).done) ) return i; switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) { case 0: case 1: i = o; break; case 4: return a.label++, { value: o[1], done: !1 }; case 5: a.label++, (r = o[1]), (o = [0]); continue; case 7: (o = a.ops.pop()), a.trys.pop(); continue; default: if ( !((i = a.trys), (i = i.length > 0 && i[i.length - 1]) || (6 !== o[0] && 2 !== o[0])) ) { a = 0; continue; } if (3 === o[0] && (!i || (o[1] > i[0] && o[1] < i[3]))) { a.label = o[1]; break; } if (6 === o[0] && a.label < i[1]) { (a.label = i[1]), (i = o); break; } if (i && a.label < i[2]) { (a.label = i[2]), a.ops.push(o); break; } i[2] && a.ops.pop(), a.trys.pop(); continue; } o = t.call(e, a); } catch (e) { (o = [6, e]), (r = 0); } finally { n = i = 0; } if (5 & o[0]) throw o[1]; return { value: o[0] ? o[1] : void 0, done: !0 }; })([o, s]); }; } } function d(e, t) { for (var n in e) t.hasOwnProperty(n) || (t[n] = e[n]); } function p(e) { var t = "function" == typeof Symbol && Symbol.iterator, n = t && e[t], r = 0; if (n) return n.call(e); if (e && "number" == typeof e.length) return { next: function () { return ( e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e } ); }, }; throw new TypeError( t ? "Object is not iterable." : "Symbol.iterator is not defined." ); } function h(e, t) { var n = "function" == typeof Symbol && e[Symbol.iterator]; if (!n) return e; var r, i, o = n.call(e), a = []; try { for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; ) a.push(r.value); } catch (e) { i = { error: e }; } finally { try { r && !r.done && (n = o.return) && n.call(o); } finally { if (i) throw i.error; } } return a; } function g() { for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(h(arguments[t])); return e; } function m() { for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length; var r = Array(e), i = 0; for (t = 0; t < n; t++) for (var o = arguments[t], a = 0, s = o.length; a < s; a++, i++) r[i] = o[a]; return r; } function y(e) { return this instanceof y ? ((this.v = e), this) : new y(e); } function v(e, t, n) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var r, i = n.apply(e, t || []), o = []; return ( (r = {}), a("next"), a("throw"), a("return"), (r[Symbol.asyncIterator] = function () { return this; }), r ); function a(e) { i[e] && (r[e] = function (t) { return new Promise(function (n, r) { o.push([e, t, n, r]) > 1 || s(e, t); }); }); } function s(e, t) { try { (n = i[e](t)).value instanceof y ? Promise.resolve(n.value.v).then(u, c) : l(o[0][2], n); } catch (e) { l(o[0][3], e); } var n; } function u(e) { s("next", e); } function c(e) { s("throw", e); } function l(e, t) { e(t), o.shift(), o.length && s(o[0][0], o[0][1]); } } function b(e) { var t, n; return ( (t = {}), r("next"), r("throw", function (e) { throw e; }), r("return"), (t[Symbol.iterator] = function () { return this; }), t ); function r(r, i) { t[r] = e[r] ? function (t) { return (n = !n) ? { value: y(e[r](t)), done: "return" === r } : i ? i(t) : t; } : i; } } function _(e) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var t, n = e[Symbol.asyncIterator]; return n ? n.call(e) : ((e = p(e)), (t = {}), r("next"), r("throw"), r("return"), (t[Symbol.asyncIterator] = function () { return this; }), t); function r(n) { t[n] = e[n] && function (t) { return new Promise(function (r, i) { (function (e, t, n, r) { Promise.resolve(r).then(function (t) { e({ value: t, done: n }); }, t); })(r, i, (t = e[n](t)).done, t.value); }); }; } } function w(e, t) { return ( Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : (e.raw = t), e ); } function T(e) { if (e && e.__esModule) return e; var t = {}; if (null != e) for (var n in e) Object.hasOwnProperty.call(e, n) && (t[n] = e[n]); return (t.default = e), t; } function x(e) { return e && e.__esModule ? e : { default: e }; } function S(e, t) { if (!t.has(e)) throw new TypeError("attempted to get private field on non-instance"); return t.get(e); } function k(e, t, n) { if (!t.has(e)) throw new TypeError("attempted to set private field on non-instance"); return t.set(e, n), n; } }, 80533: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return O; }, }); var r = n(28416), i = n.n(r), o = !( "undefined" == typeof window || !window.document || !window.document.createElement ); var a = void 0; function s() { return ( void 0 === a && (a = (function () { if (!o) return !1; if ( !window.addEventListener || !window.removeEventListener || !Object.defineProperty ) return !1; var e = !1; try { var t = Object.defineProperty({}, "passive", { get: function () { e = !0; }, }), n = function () {}; window.addEventListener("testPassiveEventSupport", n, t), window.removeEventListener("testPassiveEventSupport", n, t); } catch (e) {} return e; })()), a ); } function u(e) { e.handlers === e.nextHandlers && (e.nextHandlers = e.handlers.slice()); } function c(e) { (this.target = e), (this.events = {}); } (c.prototype.getEventHandlers = function (e, t) { var n, r = String(e) + " " + String( (n = t) ? !0 === n ? 100 : (n.capture << 0) + (n.passive << 1) + (n.once << 2) : 0 ); return ( this.events[r] || ((this.events[r] = { handlers: [], handleEvent: void 0 }), (this.events[r].nextHandlers = this.events[r].handlers)), this.events[r] ); }), (c.prototype.handleEvent = function (e, t, n) { var r = this.getEventHandlers(e, t); (r.handlers = r.nextHandlers), r.handlers.forEach(function (e) { e && e(n); }); }), (c.prototype.add = function (e, t, n) { var r = this, i = this.getEventHandlers(e, n); u(i), 0 === i.nextHandlers.length && ((i.handleEvent = this.handleEvent.bind(this, e, n)), this.target.addEventListener(e, i.handleEvent, n)), i.nextHandlers.push(t); var o = !0; return function () { if (o) { (o = !1), u(i); var a = i.nextHandlers.indexOf(t); i.nextHandlers.splice(a, 1), 0 === i.nextHandlers.length && (r.target && r.target.removeEventListener(e, i.handleEvent, n), (i.handleEvent = void 0)); } }; }); var l = "__consolidated_events_handlers__"; function f(e, t, n, r) { e[l] || (e[l] = new c(e)); var i = (function (e) { if (e) return s() ? e : !!e.capture; })(r); return e[l].add(t, n, i); } var d = n(98022), p = n.n(d); function h(e, t) { var n, r = ((n = e), !isNaN(parseFloat(n)) && isFinite(n) ? parseFloat(n) : "px" === n.slice(-2) ? parseFloat(n.slice(0, -2)) : void 0); if ("number" == typeof r) return r; var i = (function (e) { if ("%" === e.slice(-1)) return parseFloat(e.slice(0, -1)) / 100; })(e); return "number" == typeof i ? i * t : void 0; } var g = "above", m = "inside", y = "below", v = "invisible"; function b(e) { if (e) try { i().Children.only(e); } catch (e) { throw new Error( " expected to receive a single React element child.\n\nSee https://goo.gl/LrBNgw for more info." ); } } function _(e) { return "string" == typeof e.type; } var w = void 0, T = []; function x(e) { T.push(e), w || (w = setTimeout(function () { w = null; for (var e = void 0; (e = T.shift()); ) e(); }, 0)); var t = !0; return function () { if (t) { t = !1; var n = T.indexOf(e); -1 !== n && (T.splice(n, 1), !T.length && w && (clearTimeout(w), (w = null))); } }; } var S = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(); var k = { topOffset: "0px", bottomOffset: "0px", horizontal: !1, onEnter: function () {}, onLeave: function () {}, onPositionChange: function () {}, fireOnRapidScroll: !0, }, E = (function (e) { function t(e) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, t); var n = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); return ( (n.refElement = function (e) { return (n._ref = e); }), n ); } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), S(t, [ { key: "componentWillMount", value: function () { b(this.props.children); }, }, { key: "componentDidMount", value: function () { var e = this; t.getWindow() && (this.cancelOnNextTick = x(function () { (e.cancelOnNextTick = null), (function (e, t) { if (e && !_(e) && !t) throw new Error( " needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g.
) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info." ); })(e.props.children, e._ref), (e._handleScroll = e._handleScroll.bind(e)), (e.scrollableAncestor = e._findScrollableAncestor()), (e.scrollEventListenerUnsubscribe = f( e.scrollableAncestor, "scroll", e._handleScroll, { passive: !0 } )), (e.resizeEventListenerUnsubscribe = f( window, "resize", e._handleScroll, { passive: !0 } )), e._handleScroll(null); })); }, }, { key: "componentWillReceiveProps", value: function (e) { b(e.children); }, }, { key: "componentDidUpdate", value: function () { var e = this; t.getWindow() && this.scrollableAncestor && (this.cancelOnNextTick || (this.cancelOnNextTick = x(function () { (e.cancelOnNextTick = null), e._handleScroll(null); }))); }, }, { key: "componentWillUnmount", value: function () { t.getWindow() && (this.scrollEventListenerUnsubscribe && this.scrollEventListenerUnsubscribe(), this.resizeEventListenerUnsubscribe && this.resizeEventListenerUnsubscribe(), this.cancelOnNextTick && this.cancelOnNextTick()); }, }, { key: "_findScrollableAncestor", value: function () { var e = this.props, t = e.horizontal, r = e.scrollableAncestor; if (r) return (function (e) { return "window" === e ? n.g.window : e; })(r); for (var i = this._ref; i.parentNode; ) { if ((i = i.parentNode) === document.body) return window; var o = window.getComputedStyle(i), a = (t ? o.getPropertyValue("overflow-x") : o.getPropertyValue("overflow-y")) || o.getPropertyValue("overflow"); if ("auto" === a || "scroll" === a) return i; } return window; }, }, { key: "_handleScroll", value: function (e) { if (this._ref) { var t = this._getBounds(), n = (function (e) { return e.viewportBottom - e.viewportTop == 0 ? v : (e.viewportTop <= e.waypointTop && e.waypointTop <= e.viewportBottom) || (e.viewportTop <= e.waypointBottom && e.waypointBottom <= e.viewportBottom) || (e.waypointTop <= e.viewportTop && e.viewportBottom <= e.waypointBottom) ? m : e.viewportBottom < e.waypointTop ? y : e.waypointTop < e.viewportTop ? g : v; })(t), r = this._previousPosition; if (((this._previousPosition = n), r !== n)) { var i = { currentPosition: n, previousPosition: r, event: e, waypointTop: t.waypointTop, waypointBottom: t.waypointBottom, viewportTop: t.viewportTop, viewportBottom: t.viewportBottom, }; this.props.onPositionChange.call(this, i), n === m ? this.props.onEnter.call(this, i) : r === m && this.props.onLeave.call(this, i); var o = r === y && n === g, a = r === g && n === y; this.props.fireOnRapidScroll && (o || a) && (this.props.onEnter.call(this, { currentPosition: m, previousPosition: r, event: e, waypointTop: t.waypointTop, waypointBottom: t.waypointBottom, viewportTop: t.viewportTop, viewportBottom: t.viewportBottom, }), this.props.onLeave.call(this, { currentPosition: n, previousPosition: m, event: e, waypointTop: t.waypointTop, waypointBottom: t.waypointBottom, viewportTop: t.viewportTop, viewportBottom: t.viewportBottom, })); } } }, }, { key: "_getBounds", value: function () { var e = this.props.horizontal, t = this._ref.getBoundingClientRect(), n = t.left, r = t.top, i = t.right, o = t.bottom, a = e ? n : r, s = e ? i : o, u = void 0, c = void 0; this.scrollableAncestor === window ? ((u = e ? window.innerWidth : window.innerHeight), (c = 0)) : ((u = e ? this.scrollableAncestor.offsetWidth : this.scrollableAncestor.offsetHeight), (c = e ? this.scrollableAncestor.getBoundingClientRect().left : this.scrollableAncestor.getBoundingClientRect().top)); var l = this.props, f = l.bottomOffset; return { waypointTop: a, waypointBottom: s, viewportTop: c + h(l.topOffset, u), viewportBottom: c + u - h(f, u), }; }, }, { key: "render", value: function () { var e = this, t = this.props.children; if (!t) return i().createElement("span", { ref: this.refElement, style: { fontSize: 0 }, }); if (_(t)) { var n = function (n) { e.refElement(n), t.ref && t.ref(n); }; return i().cloneElement(t, { ref: n }); } return i().cloneElement(t, { innerRef: this.refElement }); }, }, ]), t ); })(void 0 !== i().PureComponent ? i().PureComponent : i().Component); (E.propTypes = { children: p().node, debug: p().bool, onEnter: p().func, onLeave: p().func, onPositionChange: p().func, fireOnRapidScroll: p().bool, scrollableAncestor: p().any, horizontal: p().bool, topOffset: p().oneOfType([p().string, p().number]), bottomOffset: p().oneOfType([p().string, p().number]), }), (E.above = g), (E.below = y), (E.inside = m), (E.invisible = v), (E.getWindow = function () { if ("undefined" != typeof window) return window; }), (E.defaultProps = k), (E.displayName = "Waypoint"); var O = E; }, 65700: function (e) { "use strict"; function t(e) { return function () { return e; }; } var n = function () {}; (n.thatReturns = t), (n.thatReturnsFalse = t(!1)), (n.thatReturnsTrue = t(!0)), (n.thatReturnsNull = t(null)), (n.thatReturnsThis = function () { return this; }), (n.thatReturnsArgument = function (e) { return e; }), (e.exports = n); }, 82165: function (e) { "use strict"; e.exports = function (e, t, n, r, i, o, a, s) { if (!e) { var u; if (void 0 === t) u = new Error( "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings." ); else { var c = [n, r, i, o, a, s], l = 0; (u = new Error( t.replace(/%s/g, function () { return c[l++]; }) )).name = "Invariant Violation"; } throw ((u.framesToPop = 1), u); } }; }, 17635: function (e, t, n) { "use strict"; var r = n(65700), i = n(82165), o = n(36684); e.exports = function () { function e(e, t, n, r, a, s) { s !== o && i( !1, "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" ); } function t() { return e; } e.isRequired = e; var n = { array: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: t, element: e, instanceOf: t, node: e, objectOf: t, oneOf: t, oneOfType: t, shape: t, exact: t, }; return (n.checkPropTypes = r), (n.PropTypes = n), n; }; }, 98022: function (e, t, n) { e.exports = n(17635)(); }, 36684: function (e) { "use strict"; e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; }, 38439: function (e, t, n) { "use strict"; e.exports = n(60698); }, 60698: function (e, t, n) { "use strict"; t.default = void 0; var r = (function (e) { if (e && e.__esModule) return e; var t = {}; if (null != e) for (var n in e) if (Object.prototype.hasOwnProperty.call(e, n)) { var r = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(e, n) : {}; r.get || r.set ? Object.defineProperty(t, n, r) : (t[n] = e[n]); } return (t.default = e), t; })(n(28416)); function i() { return ( (i = Object.assign || 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; }), i.apply(this, arguments) ); } var o = function (e) { var t = function (t, n) { return r.default.createElement(e, i({}, t, { forwardedRef: n })); }, n = e.displayName || e.name; return ( (t.displayName = "withForwardedRef(".concat(n, ")")), (0, r.forwardRef)(t) ); }; t.default = o; }, 89524: function (e) { e.exports = function (e) { return function (t) { return function (n) { n && "function" == typeof n.fork ? n.fork(e.dispatch, e.dispatch) : t(n); }; }; }; }, 43372: function (e, t, n) { "use strict"; var r = Object.assign || 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; }; var i = n(70936); var o, a = ((o = "function"), function (e) { return ( (void 0 === e ? "undefined" : (t = e) && "undefined" != typeof Symbol && t.constructor === Symbol ? "symbol" : typeof t) === o ); var t; }); t.Z = function (e) { return function (t) { var n = t.dispatch, o = function (t) { return t && a(t[e]); }; return function (t) { return function (a) { return (0, i.isFSA)(a) ? o(a.payload) ? n(r({}, a, { payload: a.payload[e]() })) : t(a) : o(a) ? n(a[e]()) : t(a); }; }; }; }; }, 97196: function (e, t, n) { "use strict"; t.__esModule = !0; var r = Object.assign || 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; }; t.default = function (e) { var t = e.dispatch; return function (e) { return function (n) { return i.isFSA(n) ? o(n.payload) ? n.payload.then( function (e) { return t(r({}, n, { payload: e })); }, function (e) { return t(r({}, n, { payload: e, error: !0 })); } ) : e(n) : o(n) ? n.then(t) : e(n); }; }; }; var i = n(70936); function o(e) { return e && "function" == typeof e.then; } e.exports = t.default; }, 59681: function (e, t) { "use strict"; function n(e) { return function (t) { var n = t.dispatch, r = t.getState; return function (t) { return function (i) { return "function" == typeof i ? i(n, r, e) : t(i); }; }; }; } var r = n(); (r.withExtraArgument = n), (t.Z = r); }, 15857: function (e, t, n) { "use strict"; n.d(t, { md: function () { return g; }, UY: function () { return p; }, MT: function () { return d; }, }); var r = n(72881); function i(e, t, n) { return ( (t = (0, r.Z)(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = n), e ); } function o(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (t) { return Object.getOwnPropertyDescriptor(e, t).enumerable; })), n.push.apply(n, r); } return n; } function a(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? o(Object(n), !0).forEach(function (t) { i(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o(Object(n)).forEach(function (t) { Object.defineProperty( e, t, Object.getOwnPropertyDescriptor(n, t) ); }); } return e; } function s(e) { return ( "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. " ); } var u = ("function" == typeof Symbol && Symbol.observable) || "@@observable", c = function () { return Math.random().toString(36).substring(7).split("").join("."); }, l = { INIT: "@@redux/INIT" + c(), REPLACE: "@@redux/REPLACE" + c(), PROBE_UNKNOWN_ACTION: function () { return "@@redux/PROBE_UNKNOWN_ACTION" + c(); }, }; function f(e) { if ("object" != typeof e || null === e) return !1; for (var t = e; null !== Object.getPrototypeOf(t); ) t = Object.getPrototypeOf(t); return Object.getPrototypeOf(e) === t; } function d(e, t, n) { var r; if ( ("function" == typeof t && "function" == typeof n) || ("function" == typeof n && "function" == typeof arguments[3]) ) throw new Error(s(0)); if ( ("function" == typeof t && void 0 === n && ((n = t), (t = void 0)), void 0 !== n) ) { if ("function" != typeof n) throw new Error(s(1)); return n(d)(e, t); } if ("function" != typeof e) throw new Error(s(2)); var i = e, o = t, a = [], c = a, p = !1; function h() { c === a && (c = a.slice()); } function g() { if (p) throw new Error(s(3)); return o; } function m(e) { if ("function" != typeof e) throw new Error(s(4)); if (p) throw new Error(s(5)); var t = !0; return ( h(), c.push(e), function () { if (t) { if (p) throw new Error(s(6)); (t = !1), h(); var n = c.indexOf(e); c.splice(n, 1), (a = null); } } ); } function y(e) { if (!f(e)) throw new Error(s(7)); if (void 0 === e.type) throw new Error(s(8)); if (p) throw new Error(s(9)); try { (p = !0), (o = i(o, e)); } finally { p = !1; } for (var t = (a = c), n = 0; n < t.length; n++) { (0, t[n])(); } return e; } function v(e) { if ("function" != typeof e) throw new Error(s(10)); (i = e), y({ type: l.REPLACE }); } function b() { var e, t = m; return ( ((e = { subscribe: function (e) { if ("object" != typeof e || null === e) throw new Error(s(11)); function n() { e.next && e.next(g()); } return n(), { unsubscribe: t(n) }; }, })[u] = function () { return this; }), e ); } return ( y({ type: l.INIT }), ((r = { dispatch: y, subscribe: m, getState: g, replaceReducer: v })[ u ] = b), r ); } function p(e) { for (var t = Object.keys(e), n = {}, r = 0; r < t.length; r++) { var i = t[r]; 0, "function" == typeof e[i] && (n[i] = e[i]); } var o, a = Object.keys(n); try { !(function (e) { Object.keys(e).forEach(function (t) { var n = e[t]; if (void 0 === n(void 0, { type: l.INIT })) throw new Error(s(12)); if (void 0 === n(void 0, { type: l.PROBE_UNKNOWN_ACTION() })) throw new Error(s(13)); }); })(n); } catch (e) { o = e; } return function (e, t) { if ((void 0 === e && (e = {}), o)) throw o; for (var r = !1, i = {}, u = 0; u < a.length; u++) { var c = a[u], l = n[c], f = e[c], d = l(f, t); if (void 0 === d) { t && t.type; throw new Error(s(14)); } (i[c] = d), (r = r || d !== f); } return (r = r || a.length !== Object.keys(e).length) ? i : e; }; } function h() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return 0 === t.length ? function (e) { return e; } : 1 === t.length ? t[0] : t.reduce(function (e, t) { return function () { return e(t.apply(void 0, arguments)); }; }); } function g() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return function (e) { return function () { var n = e.apply(void 0, arguments), r = function () { throw new Error(s(15)); }, i = { getState: n.getState, dispatch: function () { return r.apply(void 0, arguments); }, }, o = t.map(function (e) { return e(i); }); return ( (r = h.apply(void 0, o)(n.dispatch)), a(a({}, n), {}, { dispatch: r }) ); }; }; } }, 35666: function (e) { var t = (function (e) { "use strict"; var t, n = Object.prototype, r = n.hasOwnProperty, i = "function" == typeof Symbol ? Symbol : {}, o = i.iterator || "@@iterator", a = i.asyncIterator || "@@asyncIterator", s = i.toStringTag || "@@toStringTag"; function u(e, t, n, r) { var i = t && t.prototype instanceof g ? t : g, o = Object.create(i.prototype), a = new O(r || []); return ( (o._invoke = (function (e, t, n) { var r = l; return function (i, o) { if (r === d) throw new Error("Generator is already running"); if (r === p) { if ("throw" === i) throw o; return L(); } for (n.method = i, n.arg = o; ; ) { var a = n.delegate; if (a) { var s = S(a, n); if (s) { if (s === h) continue; return s; } } if ("next" === n.method) n.sent = n._sent = n.arg; else if ("throw" === n.method) { if (r === l) throw ((r = p), n.arg); n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); r = d; var u = c(e, t, n); if ("normal" === u.type) { if (((r = n.done ? p : f), u.arg === h)) continue; return { value: u.arg, done: n.done }; } "throw" === u.type && ((r = p), (n.method = "throw"), (n.arg = u.arg)); } }; })(e, n, a)), o ); } function c(e, t, n) { try { return { type: "normal", arg: e.call(t, n) }; } catch (e) { return { type: "throw", arg: e }; } } e.wrap = u; var l = "suspendedStart", f = "suspendedYield", d = "executing", p = "completed", h = {}; function g() {} function m() {} function y() {} var v = {}; v[o] = function () { return this; }; var b = Object.getPrototypeOf, _ = b && b(b(C([]))); _ && _ !== n && r.call(_, o) && (v = _); var w = (y.prototype = g.prototype = Object.create(v)); function T(e) { ["next", "throw", "return"].forEach(function (t) { e[t] = function (e) { return this._invoke(t, e); }; }); } function x(e) { function t(n, i, o, a) { var s = c(e[n], e, i); if ("throw" !== s.type) { var u = s.arg, l = u.value; return l && "object" == typeof l && r.call(l, "__await") ? Promise.resolve(l.__await).then( function (e) { t("next", e, o, a); }, function (e) { t("throw", e, o, a); } ) : Promise.resolve(l).then( function (e) { (u.value = e), o(u); }, function (e) { return t("throw", e, o, a); } ); } a(s.arg); } var n; this._invoke = function (e, r) { function i() { return new Promise(function (n, i) { t(e, r, n, i); }); } return (n = n ? n.then(i, i) : i()); }; } function S(e, n) { var r = e.iterator[n.method]; if (r === t) { if (((n.delegate = null), "throw" === n.method)) { if ( e.iterator.return && ((n.method = "return"), (n.arg = t), S(e, n), "throw" === n.method) ) return h; (n.method = "throw"), (n.arg = new TypeError( "The iterator does not provide a 'throw' method" )); } return h; } var i = c(r, e.iterator, n.arg); if ("throw" === i.type) return ( (n.method = "throw"), (n.arg = i.arg), (n.delegate = null), h ); var o = i.arg; return o ? o.done ? ((n[e.resultName] = o.value), (n.next = e.nextLoc), "return" !== n.method && ((n.method = "next"), (n.arg = t)), (n.delegate = null), h) : o : ((n.method = "throw"), (n.arg = new TypeError("iterator result is not an object")), (n.delegate = null), h); } function k(e) { var t = { tryLoc: e[0] }; 1 in e && (t.catchLoc = e[1]), 2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])), this.tryEntries.push(t); } function E(e) { var t = e.completion || {}; (t.type = "normal"), delete t.arg, (e.completion = t); } function O(e) { (this.tryEntries = [{ tryLoc: "root" }]), e.forEach(k, this), this.reset(!0); } function C(e) { if (e) { var n = e[o]; if (n) return n.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var i = -1, a = function n() { for (; ++i < e.length; ) if (r.call(e, i)) return (n.value = e[i]), (n.done = !1), n; return (n.value = t), (n.done = !0), n; }; return (a.next = a); } } return { next: L }; } function L() { return { value: t, done: !0 }; } return ( (m.prototype = w.constructor = y), (y.constructor = m), (y[s] = m.displayName = "GeneratorFunction"), (e.isGeneratorFunction = function (e) { var t = "function" == typeof e && e.constructor; return ( !!t && (t === m || "GeneratorFunction" === (t.displayName || t.name)) ); }), (e.mark = function (e) { return ( Object.setPrototypeOf ? Object.setPrototypeOf(e, y) : ((e.__proto__ = y), s in e || (e[s] = "GeneratorFunction")), (e.prototype = Object.create(w)), e ); }), (e.awrap = function (e) { return { __await: e }; }), T(x.prototype), (x.prototype[a] = function () { return this; }), (e.AsyncIterator = x), (e.async = function (t, n, r, i) { var o = new x(u(t, n, r, i)); return e.isGeneratorFunction(n) ? o : o.next().then(function (e) { return e.done ? e.value : o.next(); }); }), T(w), (w[s] = "Generator"), (w[o] = function () { return this; }), (w.toString = function () { return "[object Generator]"; }), (e.keys = function (e) { var t = []; for (var n in e) t.push(n); return ( t.reverse(), function n() { for (; t.length; ) { var r = t.pop(); if (r in e) return (n.value = r), (n.done = !1), n; } return (n.done = !0), n; } ); }), (e.values = C), (O.prototype = { constructor: O, reset: function (e) { if ( ((this.prev = 0), (this.next = 0), (this.sent = this._sent = t), (this.done = !1), (this.delegate = null), (this.method = "next"), (this.arg = t), this.tryEntries.forEach(E), !e) ) for (var n in this) "t" === n.charAt(0) && r.call(this, n) && !isNaN(+n.slice(1)) && (this[n] = t); }, stop: function () { this.done = !0; var e = this.tryEntries[0].completion; if ("throw" === e.type) throw e.arg; return this.rval; }, dispatchException: function (e) { if (this.done) throw e; var n = this; function i(r, i) { return ( (s.type = "throw"), (s.arg = e), (n.next = r), i && ((n.method = "next"), (n.arg = t)), !!i ); } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var a = this.tryEntries[o], s = a.completion; if ("root" === a.tryLoc) return i("end"); if (a.tryLoc <= this.prev) { var u = r.call(a, "catchLoc"), c = r.call(a, "finallyLoc"); if (u && c) { if (this.prev < a.catchLoc) return i(a.catchLoc, !0); if (this.prev < a.finallyLoc) return i(a.finallyLoc); } else if (u) { if (this.prev < a.catchLoc) return i(a.catchLoc, !0); } else { if (!c) throw new Error("try statement without catch or finally"); if (this.prev < a.finallyLoc) return i(a.finallyLoc); } } } }, abrupt: function (e, t) { for (var n = this.tryEntries.length - 1; n >= 0; --n) { var i = this.tryEntries[n]; if ( i.tryLoc <= this.prev && r.call(i, "finallyLoc") && this.prev < i.finallyLoc ) { var o = i; break; } } o && ("break" === e || "continue" === e) && o.tryLoc <= t && t <= o.finallyLoc && (o = null); var a = o ? o.completion : {}; return ( (a.type = e), (a.arg = t), o ? ((this.method = "next"), (this.next = o.finallyLoc), h) : this.complete(a) ); }, complete: function (e, t) { if ("throw" === e.type) throw e.arg; return ( "break" === e.type || "continue" === e.type ? (this.next = e.arg) : "return" === e.type ? ((this.rval = this.arg = e.arg), (this.method = "return"), (this.next = "end")) : "normal" === e.type && t && (this.next = t), h ); }, finish: function (e) { for (var t = this.tryEntries.length - 1; t >= 0; --t) { var n = this.tryEntries[t]; if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), E(n), h; } }, catch: function (e) { for (var t = this.tryEntries.length - 1; t >= 0; --t) { var n = this.tryEntries[t]; if (n.tryLoc === e) { var r = n.completion; if ("throw" === r.type) { var i = r.arg; E(n); } return i; } } throw new Error("illegal catch attempt"); }, delegateYield: function (e, n, r) { return ( (this.delegate = { iterator: C(e), resultName: n, nextLoc: r }), "next" === this.method && (this.arg = t), h ); }, }), e ); })(e.exports); try { regeneratorRuntime = t; } catch (e) { Function("r", "regeneratorRuntime = r")(t); } }, 22222: function (e, t, n) { "use strict"; function r(e, t) { return e === t; } function i(e, t, n) { if (null === t || null === n || t.length !== n.length) return !1; for (var r = t.length, i = 0; i < r; i++) if (!e(t[i], n[i])) return !1; return !0; } function o(e) { var t = Array.isArray(e[0]) ? e[0] : e; if ( !t.every(function (e) { return "function" == typeof e; }) ) { var n = t .map(function (e) { return typeof e; }) .join(", "); throw new Error( "Selector creators expect all input-selectors to be functions, instead received the following types: [" + n + "]" ); } return t; } n.d(t, { P1: function () { return a; }, }); var a = (function (e) { for ( var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r]; return function () { for (var t = arguments.length, r = Array(t), i = 0; i < t; i++) r[i] = arguments[i]; var a = 0, s = r.pop(), u = o(r), c = e.apply( void 0, [ function () { return a++, s.apply(null, arguments); }, ].concat(n) ), l = e(function () { for (var e = [], t = u.length, n = 0; n < t; n++) e.push(u[n].apply(null, arguments)); return c.apply(null, e); }); return ( (l.resultFunc = s), (l.dependencies = u), (l.recomputations = function () { return a; }), (l.resetRecomputations = function () { return (a = 0); }), l ); }; })(function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : r, n = null, o = null; return function () { return ( i(t, n, arguments) || (o = e.apply(null, arguments)), (n = arguments), o ); }; }); }, 91033: function (e, t, n) { "use strict"; var r = (function () { if ("undefined" != typeof Map) return Map; function e(e, t) { var n = -1; return ( e.some(function (e, r) { return e[0] === t && ((n = r), !0); }), n ); } return (function () { function t() { this.__entries__ = []; } return ( Object.defineProperty(t.prototype, "size", { get: function () { return this.__entries__.length; }, enumerable: !0, configurable: !0, }), (t.prototype.get = function (t) { var n = e(this.__entries__, t), r = this.__entries__[n]; return r && r[1]; }), (t.prototype.set = function (t, n) { var r = e(this.__entries__, t); ~r ? (this.__entries__[r][1] = n) : this.__entries__.push([t, n]); }), (t.prototype.delete = function (t) { var n = this.__entries__, r = e(n, t); ~r && n.splice(r, 1); }), (t.prototype.has = function (t) { return !!~e(this.__entries__, t); }), (t.prototype.clear = function () { this.__entries__.splice(0); }), (t.prototype.forEach = function (e, t) { void 0 === t && (t = null); for (var n = 0, r = this.__entries__; n < r.length; n++) { var i = r[n]; e.call(t, i[1], i[0]); } }), t ); })(); })(), i = "undefined" != typeof window && "undefined" != typeof document && window.document === document, o = void 0 !== n.g && n.g.Math === Math ? n.g : "undefined" != typeof self && self.Math === Math ? self : "undefined" != typeof window && window.Math === Math ? window : Function("return this")(), a = "function" == typeof requestAnimationFrame ? requestAnimationFrame.bind(o) : function (e) { return setTimeout(function () { return e(Date.now()); }, 1e3 / 60); }; var s = [ "top", "right", "bottom", "left", "width", "height", "size", "weight", ], u = "undefined" != typeof MutationObserver, c = (function () { function e() { (this.connected_ = !1), (this.mutationEventsAdded_ = !1), (this.mutationsObserver_ = null), (this.observers_ = []), (this.onTransitionEnd_ = this.onTransitionEnd_.bind(this)), (this.refresh = (function (e, t) { var n = !1, r = !1, i = 0; function o() { n && ((n = !1), e()), r && u(); } function s() { a(o); } function u() { var e = Date.now(); if (n) { if (e - i < 2) return; r = !0; } else (n = !0), (r = !1), setTimeout(s, t); i = e; } return u; })(this.refresh.bind(this), 20)); } return ( (e.prototype.addObserver = function (e) { ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_(); }), (e.prototype.removeObserver = function (e) { var t = this.observers_, n = t.indexOf(e); ~n && t.splice(n, 1), !t.length && this.connected_ && this.disconnect_(); }), (e.prototype.refresh = function () { this.updateObservers_() && this.refresh(); }), (e.prototype.updateObservers_ = function () { var e = this.observers_.filter(function (e) { return e.gatherActive(), e.hasActive(); }); return ( e.forEach(function (e) { return e.broadcastActive(); }), e.length > 0 ); }), (e.prototype.connect_ = function () { i && !this.connected_ && (document.addEventListener( "transitionend", this.onTransitionEnd_ ), window.addEventListener("resize", this.refresh), u ? ((this.mutationsObserver_ = new MutationObserver( this.refresh )), this.mutationsObserver_.observe(document, { attributes: !0, childList: !0, characterData: !0, subtree: !0, })) : (document.addEventListener( "DOMSubtreeModified", this.refresh ), (this.mutationEventsAdded_ = !0)), (this.connected_ = !0)); }), (e.prototype.disconnect_ = function () { i && this.connected_ && (document.removeEventListener( "transitionend", this.onTransitionEnd_ ), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener( "DOMSubtreeModified", this.refresh ), (this.mutationsObserver_ = null), (this.mutationEventsAdded_ = !1), (this.connected_ = !1)); }), (e.prototype.onTransitionEnd_ = function (e) { var t = e.propertyName, n = void 0 === t ? "" : t; s.some(function (e) { return !!~n.indexOf(e); }) && this.refresh(); }), (e.getInstance = function () { return ( this.instance_ || (this.instance_ = new e()), this.instance_ ); }), (e.instance_ = null), e ); })(), l = function (e, t) { for (var n = 0, r = Object.keys(t); n < r.length; n++) { var i = r[n]; Object.defineProperty(e, i, { value: t[i], enumerable: !1, writable: !1, configurable: !0, }); } return e; }, f = function (e) { return (e && e.ownerDocument && e.ownerDocument.defaultView) || o; }, d = v(0, 0, 0, 0); function p(e) { return parseFloat(e) || 0; } function h(e) { for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; return t.reduce(function (t, n) { return t + p(e["border-" + n + "-width"]); }, 0); } function g(e) { var t = e.clientWidth, n = e.clientHeight; if (!t && !n) return d; var r = f(e).getComputedStyle(e), i = (function (e) { for ( var t = {}, n = 0, r = ["top", "right", "bottom", "left"]; n < r.length; n++ ) { var i = r[n], o = e["padding-" + i]; t[i] = p(o); } return t; })(r), o = i.left + i.right, a = i.top + i.bottom, s = p(r.width), u = p(r.height); if ( ("border-box" === r.boxSizing && (Math.round(s + o) !== t && (s -= h(r, "left", "right") + o), Math.round(u + a) !== n && (u -= h(r, "top", "bottom") + a)), !(function (e) { return e === f(e).document.documentElement; })(e)) ) { var c = Math.round(s + o) - t, l = Math.round(u + a) - n; 1 !== Math.abs(c) && (s -= c), 1 !== Math.abs(l) && (u -= l); } return v(i.left, i.top, s, u); } var m = "undefined" != typeof SVGGraphicsElement ? function (e) { return e instanceof f(e).SVGGraphicsElement; } : function (e) { return ( e instanceof f(e).SVGElement && "function" == typeof e.getBBox ); }; function y(e) { return i ? m(e) ? (function (e) { var t = e.getBBox(); return v(0, 0, t.width, t.height); })(e) : g(e) : d; } function v(e, t, n, r) { return { x: e, y: t, width: n, height: r }; } var b = (function () { function e(e) { (this.broadcastWidth = 0), (this.broadcastHeight = 0), (this.contentRect_ = v(0, 0, 0, 0)), (this.target = e); } return ( (e.prototype.isActive = function () { var e = y(this.target); return ( (this.contentRect_ = e), e.width !== this.broadcastWidth || e.height !== this.broadcastHeight ); }), (e.prototype.broadcastRect = function () { var e = this.contentRect_; return ( (this.broadcastWidth = e.width), (this.broadcastHeight = e.height), e ); }), e ); })(), _ = function (e, t) { var n, r, i, o, a, s, u, c = ((r = (n = t).x), (i = n.y), (o = n.width), (a = n.height), (s = "undefined" != typeof DOMRectReadOnly ? DOMRectReadOnly : Object), (u = Object.create(s.prototype)), l(u, { x: r, y: i, width: o, height: a, top: i, right: r + o, bottom: a + i, left: r, }), u); l(this, { target: e, contentRect: c }); }, w = (function () { function e(e, t, n) { if ( ((this.activeObservations_ = []), (this.observations_ = new r()), "function" != typeof e) ) throw new TypeError( "The callback provided as parameter 1 is not a function." ); (this.callback_ = e), (this.controller_ = t), (this.callbackCtx_ = n); } return ( (e.prototype.observe = function (e) { if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); if ("undefined" != typeof Element && Element instanceof Object) { if (!(e instanceof f(e).Element)) throw new TypeError('parameter 1 is not of type "Element".'); var t = this.observations_; t.has(e) || (t.set(e, new b(e)), this.controller_.addObserver(this), this.controller_.refresh()); } }), (e.prototype.unobserve = function (e) { if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); if ("undefined" != typeof Element && Element instanceof Object) { if (!(e instanceof f(e).Element)) throw new TypeError('parameter 1 is not of type "Element".'); var t = this.observations_; t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this)); } }), (e.prototype.disconnect = function () { this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this); }), (e.prototype.gatherActive = function () { var e = this; this.clearActive(), this.observations_.forEach(function (t) { t.isActive() && e.activeObservations_.push(t); }); }), (e.prototype.broadcastActive = function () { if (this.hasActive()) { var e = this.callbackCtx_, t = this.activeObservations_.map(function (e) { return new _(e.target, e.broadcastRect()); }); this.callback_.call(e, t, e), this.clearActive(); } }), (e.prototype.clearActive = function () { this.activeObservations_.splice(0); }), (e.prototype.hasActive = function () { return this.activeObservations_.length > 0; }), e ); })(), T = "undefined" != typeof WeakMap ? new WeakMap() : new r(), x = function e(t) { if (!(this instanceof e)) throw new TypeError("Cannot call a class as a function."); if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); var n = c.getInstance(), r = new w(t, n, this); T.set(this, r); }; ["observe", "unobserve", "disconnect"].forEach(function (e) { x.prototype[e] = function () { var t; return (t = T.get(this))[e].apply(t, arguments); }; }); var S = void 0 !== o.ResizeObserver ? o.ResizeObserver : x; t.Z = S; }, 89509: function (e, t, n) { var r = n(48764), i = r.Buffer; function o(e, t) { for (var n in e) t[n] = e[n]; } function a(e, t, n) { return i(e, t, n); } i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ? (e.exports = r) : (o(r, t), (t.Buffer = a)), o(i, a), (a.from = function (e, t, n) { if ("number" == typeof e) throw new TypeError("Argument must not be a number"); return i(e, t, n); }), (a.alloc = function (e, t, n) { if ("number" != typeof e) throw new TypeError("Argument must be a number"); var r = i(e); return ( void 0 !== t ? "string" == typeof n ? r.fill(t, n) : r.fill(t) : r.fill(0), r ); }), (a.allocUnsafe = function (e) { if ("number" != typeof e) throw new TypeError("Argument must be a number"); return i(e); }), (a.allocUnsafeSlow = function (e) { if ("number" != typeof e) throw new TypeError("Argument must be a number"); return r.SlowBuffer(e); }); }, 75974: function (e) { e.exports = function (e, t) { var n, r = null; try { n = JSON.parse(e, t); } catch (e) { r = e; } return [r, n]; }; }, 38289: function (e, t, n) { "use strict"; var r = n(23719), i = n(47529), o = n(91658), a = n(83465), s = n(38554), u = n(36084), c = n(13200); function l(e, t) { e && Object.keys(e).forEach(function (n) { t(e[n], n); }); } function f(e, t) { return {}.hasOwnProperty.call(e, t); } function d(e, t) { var n = []; return ( l(e, function (e) { t(e) && n.push(e); }), n ); } e.exports = h; var p = /^[^\0\t\n\f\r /<=>]+$/; function h(e, t, n) { var m = ""; function y(e, t) { var n = this; (this.tag = e), (this.attribs = t || {}), (this.tagPosition = m.length), (this.text = ""), (this.updateParentNodeText = function () { k.length && (k[k.length - 1].text += n.text); }); } t ? (t = i(h.defaults, t)).parser ? (t.parser = i(g, t.parser)) : (t.parser = g) : ((t = h.defaults).parser = g); var v, b, _ = t.nonTextTags || ["script", "style", "textarea"]; t.allowedAttributes && ((v = {}), (b = {}), l(t.allowedAttributes, function (e, t) { v[t] = []; var n = []; e.forEach(function (e) { e.indexOf("*") >= 0 ? n.push(o(e).replace(/\\\*/g, ".*")) : v[t].push(e); }), (b[t] = new RegExp("^(" + n.join("|") + ")$")); })); var w = {}; l(t.allowedClasses, function (e, t) { v && (f(v, t) || (v[t] = []), v[t].push("class")), (w[t] = e); }); var T, x = {}; l(t.transformTags, function (e, t) { var n; "function" == typeof e ? (n = e) : "string" == typeof e && (n = h.simpleTransform(e)), "*" === t ? (T = n) : (x[t] = n); }); var S = 0, k = [], E = {}, O = {}, C = !1, L = 0, A = new r.Parser( { onopentag: function (e, n) { if (C) L++; else { var r = new y(e, n); k.push(r); var i, o = !1, h = !!r.text; f(x, e) && ((i = x[e](e, n)), (r.attribs = n = i.attribs), void 0 !== i.text && (r.innerText = i.text), e !== i.tagName && ((r.name = e = i.tagName), (O[S] = i.tagName))), T && ((i = T(e, n)), (r.attribs = n = i.attribs), e !== i.tagName && ((r.name = e = i.tagName), (O[S] = i.tagName))), t.allowedTags && -1 === t.allowedTags.indexOf(e) && ((o = !0), -1 !== _.indexOf(e) && ((C = !0), (L = 1)), (E[S] = !0)), S++, o || ((m += "<" + e), (!v || f(v, e) || v["*"]) && l(n, function (n, i) { if (p.test(i)) if ( !v || (f(v, e) && -1 !== v[e].indexOf(i)) || (v["*"] && -1 !== v["*"].indexOf(i)) || (f(b, e) && b[e].test(i)) || (b["*"] && b["*"].test(i)) ) { if (("href" === i || "src" === i) && M(e, n)) return void delete r.attribs[i]; if ("srcset" === i) try { var o; if ( (l((o = u.parse(n)), function (e) { M("srcset", e.url) && (e.evil = !0); }), !(o = d(o, function (e) { return !e.evil; })).length) ) return void delete r.attribs[i]; (n = u.stringify( d(o, function (e) { return !e.evil; }) )), (r.attribs[i] = n); } catch (e) { return void delete r.attribs[i]; } if ( "class" === i && !(n = (function (e, t) { if (!t) return e; return (e = e.split(/\s+/)) .filter(function (e) { return -1 !== t.indexOf(e); }) .join(" "); })(n, w[e])).length ) return void delete r.attribs[i]; if ("style" === i) try { var h = (function (e, t) { if (!t) return e; var n, r = a(e), i = e.nodes[0]; n = t[i.selector] && t["*"] ? s( a(t[i.selector]), t["*"], function (e, t) { if (Array.isArray(e)) return e.concat(t); } ) : t[i.selector] || t["*"]; n && (r.nodes[0].nodes = i.nodes.reduce( (function (e) { return function (t, n) { e.hasOwnProperty(n.prop) && e[n.prop].some(function (e) { return e.test(n.value); }) && t.push(n); return t; }; })(n), [] )); return r; })( c.parse(e + " {" + n + "}"), t.allowedStyles ); if ( ((n = (function (e) { return e.nodes[0].nodes .reduce(function (e, t) { return ( e.push( t.prop + ":" + t.value + ";" ), e ); }, []) .join(""); })(h)), 0 === n.length) ) return void delete r.attribs[i]; } catch (e) { return void delete r.attribs[i]; } (m += " " + i), n.length && (m += '="' + I(n) + '"'); } else delete r.attribs[i]; else delete r.attribs[i]; }), -1 !== t.selfClosing.indexOf(e) ? (m += " />") : ((m += ">"), !r.innerText || h || t.textFilter || (m += r.innerText))); } }, ontext: function (e) { if (!C) { var n, r = k[k.length - 1]; if ( (r && ((n = r.tag), (e = void 0 !== r.innerText ? r.innerText : e)), "script" === n || "style" === n) ) m += e; else { var i = I(e); t.textFilter ? (m += t.textFilter(i)) : (m += i); } if (k.length) k[k.length - 1].text += e; } }, onclosetag: function (e) { if (C) { if (--L) return; C = !1; } var n = k.pop(); if (n) { if (((C = !1), S--, E[S])) return delete E[S], void n.updateParentNodeText(); O[S] && ((e = O[S]), delete O[S]), t.exclusiveFilter && t.exclusiveFilter(n) ? (m = m.substr(0, n.tagPosition)) : (n.updateParentNodeText(), -1 === t.selfClosing.indexOf(e) && (m += "")); } }, }, t.parser ); return A.write(e), A.end(), m; function I(e) { return ( "string" != typeof e && (e += ""), e .replace(/\&/g, "&") .replace(//g, ">") .replace(/\"/g, """) ); } function M(e, n) { var r = (n = (n = n.replace(/[\x00-\x20]+/g, "")).replace( /<\!\-\-.*?\-\-\>/g, "" )).match(/^([a-zA-Z]+)\:/); if (!r) return !!n.match(/^[\/\\]{2}/) && !t.allowProtocolRelative; var i = r[1].toLowerCase(); return f(t.allowedSchemesByTag, e) ? -1 === t.allowedSchemesByTag[e].indexOf(i) : !t.allowedSchemes || -1 === t.allowedSchemes.indexOf(i); } } var g = { decodeEntities: !0 }; (h.defaults = { allowedTags: [ "h3", "h4", "h5", "h6", "blockquote", "p", "a", "ul", "ol", "nl", "li", "b", "i", "strong", "em", "strike", "code", "hr", "br", "div", "table", "thead", "caption", "tbody", "tr", "th", "td", "pre", ], allowedAttributes: { a: ["href", "name", "target"], img: ["src"] }, selfClosing: [ "img", "br", "hr", "area", "base", "basefont", "input", "link", "meta", ], allowedSchemes: ["http", "https", "ftp", "mailto"], allowedSchemesByTag: {}, allowProtocolRelative: !0, }), (h.simpleTransform = function (e, t, n) { return ( (n = void 0 === n || n), (t = t || {}), function (r, i) { var o; if (n) for (o in t) i[o] = t[o]; else i = t; return { tagName: e, attribs: i }; } ); }); }, 12650: function (e, t, n) { "use strict"; t.__esModule = !0; var r, i = n(66808); var o = (function (e) { function t(n) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, t); var r = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, e.call(this, n)); return (r.type = "atrule"), r; } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), (t.prototype.append = function () { var t; this.nodes || (this.nodes = []); for (var n = arguments.length, r = Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return (t = e.prototype.append).call.apply(t, [this].concat(r)); }), (t.prototype.prepend = function () { var t; this.nodes || (this.nodes = []); for (var n = arguments.length, r = Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return (t = e.prototype.prepend).call.apply(t, [this].concat(r)); }), t ); })(((r = i) && r.__esModule ? r : { default: r }).default); (t.default = o), (e.exports = t.default); }, 91569: function (e, t, n) { "use strict"; t.__esModule = !0; var r, i = n(83454); var o = (function (e) { function t(n) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, t); var r = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, e.call(this, n)); return (r.type = "comment"), r; } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), t ); })(((r = i) && r.__esModule ? r : { default: r }).default); (t.default = o), (e.exports = t.default); }, 66808: function (e, t, n) { "use strict"; t.__esModule = !0; var r = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), i = a(n(85232)), o = a(n(91569)); function a(e) { return e && e.__esModule ? e : { default: e }; } function s(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function u(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; } function c(e) { return e.map(function (e) { return e.nodes && (e.nodes = c(e.nodes)), delete e.source, e; }); } var l = (function (e) { function t() { return s(this, t), u(this, e.apply(this, arguments)); } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), (t.prototype.push = function (e) { return (e.parent = this), this.nodes.push(e), this; }), (t.prototype.each = function (e) { this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), (this.lastEach += 1); var t = this.lastEach; if (((this.indexes[t] = 0), this.nodes)) { for ( var n = void 0, r = void 0; this.indexes[t] < this.nodes.length && ((n = this.indexes[t]), !1 !== (r = e(this.nodes[n], n))); ) this.indexes[t] += 1; return delete this.indexes[t], r; } }), (t.prototype.walk = function (e) { return this.each(function (t, n) { var r = e(t, n); return !1 !== r && t.walk && (r = t.walk(e)), r; }); }), (t.prototype.walkDecls = function (e, t) { return t ? e instanceof RegExp ? this.walk(function (n, r) { if ("decl" === n.type && e.test(n.prop)) return t(n, r); }) : this.walk(function (n, r) { if ("decl" === n.type && n.prop === e) return t(n, r); }) : ((t = e), this.walk(function (e, n) { if ("decl" === e.type) return t(e, n); })); }), (t.prototype.walkRules = function (e, t) { return t ? e instanceof RegExp ? this.walk(function (n, r) { if ("rule" === n.type && e.test(n.selector)) return t(n, r); }) : this.walk(function (n, r) { if ("rule" === n.type && n.selector === e) return t(n, r); }) : ((t = e), this.walk(function (e, n) { if ("rule" === e.type) return t(e, n); })); }), (t.prototype.walkAtRules = function (e, t) { return t ? e instanceof RegExp ? this.walk(function (n, r) { if ("atrule" === n.type && e.test(n.name)) return t(n, r); }) : this.walk(function (n, r) { if ("atrule" === n.type && n.name === e) return t(n, r); }) : ((t = e), this.walk(function (e, n) { if ("atrule" === e.type) return t(e, n); })); }), (t.prototype.walkComments = function (e) { return this.walk(function (t, n) { if ("comment" === t.type) return e(t, n); }); }), (t.prototype.append = function () { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; var r = t, i = Array.isArray(r), o = 0; for (r = i ? r : r[Symbol.iterator](); ; ) { var a; if (i) { if (o >= r.length) break; a = r[o++]; } else { if ((o = r.next()).done) break; a = o.value; } var s = a, u = this.normalize(s, this.last), c = u, l = Array.isArray(c), f = 0; for (c = l ? c : c[Symbol.iterator](); ; ) { var d; if (l) { if (f >= c.length) break; d = c[f++]; } else { if ((f = c.next()).done) break; d = f.value; } var p = d; this.nodes.push(p); } } return this; }), (t.prototype.prepend = function () { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; var r = (t = t.reverse()), i = Array.isArray(r), o = 0; for (r = i ? r : r[Symbol.iterator](); ; ) { var a; if (i) { if (o >= r.length) break; a = r[o++]; } else { if ((o = r.next()).done) break; a = o.value; } var s = a, u = this.normalize(s, this.first, "prepend").reverse(), c = u, l = Array.isArray(c), f = 0; for (c = l ? c : c[Symbol.iterator](); ; ) { var d; if (l) { if (f >= c.length) break; d = c[f++]; } else { if ((f = c.next()).done) break; d = f.value; } var p = d; this.nodes.unshift(p); } for (var h in this.indexes) this.indexes[h] = this.indexes[h] + u.length; } return this; }), (t.prototype.cleanRaws = function (t) { if ((e.prototype.cleanRaws.call(this, t), this.nodes)) { var n = this.nodes, r = Array.isArray(n), i = 0; for (n = r ? n : n[Symbol.iterator](); ; ) { var o; if (r) { if (i >= n.length) break; o = n[i++]; } else { if ((i = n.next()).done) break; o = i.value; } o.cleanRaws(t); } } }), (t.prototype.insertBefore = function (e, t) { var n = 0 === (e = this.index(e)) && "prepend", r = this.normalize(t, this.nodes[e], n).reverse(), i = r, o = Array.isArray(i), a = 0; for (i = o ? i : i[Symbol.iterator](); ; ) { var s; if (o) { if (a >= i.length) break; s = i[a++]; } else { if ((a = i.next()).done) break; s = a.value; } var u = s; this.nodes.splice(e, 0, u); } var c = void 0; for (var l in this.indexes) e <= (c = this.indexes[l]) && (this.indexes[l] = c + r.length); return this; }), (t.prototype.insertAfter = function (e, t) { e = this.index(e); var n = this.normalize(t, this.nodes[e]).reverse(), r = n, i = Array.isArray(r), o = 0; for (r = i ? r : r[Symbol.iterator](); ; ) { var a; if (i) { if (o >= r.length) break; a = r[o++]; } else { if ((o = r.next()).done) break; a = o.value; } var s = a; this.nodes.splice(e + 1, 0, s); } var u = void 0; for (var c in this.indexes) e < (u = this.indexes[c]) && (this.indexes[c] = u + n.length); return this; }), (t.prototype.removeChild = function (e) { (e = this.index(e)), (this.nodes[e].parent = void 0), this.nodes.splice(e, 1); var t = void 0; for (var n in this.indexes) (t = this.indexes[n]) >= e && (this.indexes[n] = t - 1); return this; }), (t.prototype.removeAll = function () { var e = this.nodes, t = Array.isArray(e), n = 0; for (e = t ? e : e[Symbol.iterator](); ; ) { var r; if (t) { if (n >= e.length) break; r = e[n++]; } else { if ((n = e.next()).done) break; r = n.value; } r.parent = void 0; } return (this.nodes = []), this; }), (t.prototype.replaceValues = function (e, t, n) { return ( n || ((n = t), (t = {})), this.walkDecls(function (r) { (t.props && -1 === t.props.indexOf(r.prop)) || (t.fast && -1 === r.value.indexOf(t.fast)) || (r.value = r.value.replace(e, n)); }), this ); }), (t.prototype.every = function (e) { return this.nodes.every(e); }), (t.prototype.some = function (e) { return this.nodes.some(e); }), (t.prototype.index = function (e) { return "number" == typeof e ? e : this.nodes.indexOf(e); }), (t.prototype.normalize = function (e, t) { var r = this; if ("string" == typeof e) e = c(n(11665)(e).nodes); else if (Array.isArray(e)) { var a = (e = e.slice(0)), s = Array.isArray(a), u = 0; for (a = s ? a : a[Symbol.iterator](); ; ) { var l; if (s) { if (u >= a.length) break; l = a[u++]; } else { if ((u = a.next()).done) break; l = u.value; } var f = l; f.parent && f.parent.removeChild(f, "ignore"); } } else if ("root" === e.type) { var d = (e = e.nodes.slice(0)), p = Array.isArray(d), h = 0; for (d = p ? d : d[Symbol.iterator](); ; ) { var g; if (p) { if (h >= d.length) break; g = d[h++]; } else { if ((h = d.next()).done) break; g = h.value; } var m = g; m.parent && m.parent.removeChild(m, "ignore"); } } else if (e.type) e = [e]; else if (e.prop) { if (void 0 === e.value) throw new Error("Value field is missed in node creation"); "string" != typeof e.value && (e.value = String(e.value)), (e = [new i.default(e)]); } else if (e.selector) { e = [new (n(4485))(e)]; } else if (e.name) { e = [new (n(12650))(e)]; } else { if (!e.text) throw new Error("Unknown node type in node creation"); e = [new o.default(e)]; } var y = e.map(function (e) { return ( "function" != typeof e.before && (e = r.rebuild(e)), e.parent && e.parent.removeChild(e), void 0 === e.raws.before && t && void 0 !== t.raws.before && (e.raws.before = t.raws.before.replace(/[^\s]/g, "")), (e.parent = r), e ); }); return y; }), (t.prototype.rebuild = function (e, t) { var r = this, a = void 0; if ("root" === e.type) { var s = n(71283); a = new s(); } else if ("atrule" === e.type) { var u = n(12650); a = new u(); } else if ("rule" === e.type) { var c = n(4485); a = new c(); } else "decl" === e.type ? (a = new i.default()) : "comment" === e.type && (a = new o.default()); for (var l in e) "nodes" === l ? (a.nodes = e.nodes.map(function (e) { return r.rebuild(e, a); })) : "parent" === l && t ? (a.parent = t) : e.hasOwnProperty(l) && (a[l] = e[l]); return a; }), r(t, [ { key: "first", get: function () { if (this.nodes) return this.nodes[0]; }, }, { key: "last", get: function () { if (this.nodes) return this.nodes[this.nodes.length - 1]; }, }, ]), t ); })(a(n(83454)).default); (t.default = l), (e.exports = t.default); }, 95373: function (e, t, n) { "use strict"; t.__esModule = !0; var r = a(n(89917)), i = a(n(30717)), o = a(n(84903)); function a(e) { return e && e.__esModule ? e : { default: e }; } var s = (function () { function e(t, n, r, i, o, a) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, e), (this.name = "CssSyntaxError"), (this.reason = t), o && (this.file = o), i && (this.source = i), a && (this.plugin = a), void 0 !== n && void 0 !== r && ((this.line = n), (this.column = r)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, e); } return ( (e.prototype.setMessage = function () { (this.message = this.plugin ? this.plugin + ": " : ""), (this.message += this.file ? this.file : ""), void 0 !== this.line && (this.message += ":" + this.line + ":" + this.column), (this.message += ": " + this.reason); }), (e.prototype.showSourceCode = function (e) { var t = this; if (!this.source) return ""; var n = this.source; void 0 === e && (e = r.default.stdout), e && (n = (0, o.default)(n)); var a = n.split(/\r?\n/), s = Math.max(this.line - 3, 0), u = Math.min(this.line + 2, a.length), c = String(u).length; function l(t) { return e && i.default.red ? i.default.red.bold(t) : t; } function f(t) { return e && i.default.gray ? i.default.gray(t) : t; } return a .slice(s, u) .map(function (e, n) { var r = s + 1 + n, i = " " + (" " + r).slice(-c) + " | "; if (r === t.line) { var o = f(i.replace(/\d/g, " ")) + e.slice(0, t.column - 1).replace(/[^\t]/g, " "); return l(">") + f(i) + e + "\n " + o + l("^"); } return " " + f(i) + e; }) .join("\n"); }), (e.prototype.toString = function () { var e = this.showSourceCode(); return ( e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e ); }), e ); })(); (t.default = s), (e.exports = t.default); }, 85232: function (e, t, n) { "use strict"; t.__esModule = !0; var r, i = n(83454); var o = (function (e) { function t(n) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, t); var r = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, e.call(this, n)); return (r.type = "decl"), r; } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), t ); })(((r = i) && r.__esModule ? r : { default: r }).default); (t.default = o), (e.exports = t.default); }, 62627: function (e, t, n) { "use strict"; t.__esModule = !0; var r = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), i = s(n(95373)), o = s(n(49470)), a = s(n(26470)); function s(e) { return e && e.__esModule ? e : { default: e }; } function u(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } var c = 0, l = (function () { function e(t) { var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; u(this, e), (this.css = t.toString()), ("\ufeff" !== this.css[0] && "￾" !== this.css[0]) || (this.css = this.css.slice(1)), n.from && (/^\w+:\/\//.test(n.from) ? (this.file = n.from) : (this.file = a.default.resolve(n.from))); var r = new o.default(this.css, n); if (r.text) { this.map = r; var i = r.consumer().file; !this.file && i && (this.file = this.mapResolve(i)); } this.file || ((c += 1), (this.id = "")), this.map && (this.map.file = this.from); } return ( (e.prototype.error = function (e, t, n) { var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, o = void 0, a = this.origin(t, n); return ( ((o = a ? new i.default( e, a.line, a.column, a.source, a.file, r.plugin ) : new i.default( e, t, n, this.css, this.file, r.plugin )).input = { line: t, column: n, source: this.css }), this.file && (o.input.file = this.file), o ); }), (e.prototype.origin = function (e, t) { if (!this.map) return !1; var n = this.map.consumer(), r = n.originalPositionFor({ line: e, column: t }); if (!r.source) return !1; var i = { file: this.mapResolve(r.source), line: r.line, column: r.column, }, o = n.sourceContentFor(r.source); return o && (i.source = o), i; }), (e.prototype.mapResolve = function (e) { return /^\w+:\/\//.test(e) ? e : a.default.resolve(this.map.consumer().sourceRoot || ".", e); }), r(e, [ { key: "from", get: function () { return this.file || this.id; }, }, ]), e ); })(); (t.default = l), (e.exports = t.default); }, 75673: function (e, t, n) { "use strict"; t.__esModule = !0; var r = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, o = l(n(40429)), a = l(n(23179)), s = l(n(84133)), u = l(n(96641)), c = l(n(11665)); function l(e) { return e && e.__esModule ? e : { default: e }; } function f(e) { return ( "object" === (void 0 === e ? "undefined" : i(e)) && "function" == typeof e.then ); } var d = (function () { function e(t, n, r) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, e), (this.stringified = !1), (this.processed = !1); var o = void 0; if ( "object" === (void 0 === n ? "undefined" : i(n)) && "root" === n.type ) o = n; else if (n instanceof e || n instanceof u.default) (o = n.root), n.map && (void 0 === r.map && (r.map = {}), r.map.inline || (r.map.inline = !1), (r.map.prev = n.map)); else { var a = c.default; r.syntax && (a = r.syntax.parse), r.parser && (a = r.parser), a.parse && (a = a.parse); try { o = a(n, r); } catch (e) { this.error = e; } } this.result = new u.default(t, o, r); } return ( (e.prototype.warnings = function () { return this.sync().warnings(); }), (e.prototype.toString = function () { return this.css; }), (e.prototype.then = function (e, t) { return ( "from" in this.opts || (0, s.default)( "Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning." ), this.async().then(e, t) ); }), (e.prototype.catch = function (e) { return this.async().catch(e); }), (e.prototype.handleError = function (e, t) { try { if (((this.error = e), "CssSyntaxError" !== e.name || e.plugin)) { if (t.postcssVersion) { var n = t.postcssPlugin, r = t.postcssVersion, i = this.result.processor.version, o = r.split("."), a = i.split("."); (o[0] !== a[0] || parseInt(o[1]) > parseInt(a[1])) && console.error( "Unknown error from PostCSS plugin. Your current PostCSS version is " + i + ", but " + n + " uses " + r + ". Perhaps this is the source of the error below." ); } } else (e.plugin = t.postcssPlugin), e.setMessage(); } catch (e) { console && console.error && console.error(e); } }), (e.prototype.asyncTick = function (e, t) { var n = this; if (this.plugin >= this.processor.plugins.length) return (this.processed = !0), e(); try { var r = this.processor.plugins[this.plugin], i = this.run(r); (this.plugin += 1), f(i) ? i .then(function () { n.asyncTick(e, t); }) .catch(function (e) { n.handleError(e, r), (n.processed = !0), t(e); }) : this.asyncTick(e, t); } catch (e) { (this.processed = !0), t(e); } }), (e.prototype.async = function () { var e = this; return this.processed ? new Promise(function (t, n) { e.error ? n(e.error) : t(e.stringify()); }) : (this.processing || (this.processing = new Promise(function (t, n) { if (e.error) return n(e.error); (e.plugin = 0), e.asyncTick(t, n); }).then(function () { return (e.processed = !0), e.stringify(); })), this.processing); }), (e.prototype.sync = function () { if (this.processed) return this.result; if (((this.processed = !0), this.processing)) throw new Error( "Use process(css).then(cb) to work with async plugins" ); if (this.error) throw this.error; var e = this.result.processor.plugins, t = Array.isArray(e), n = 0; for (e = t ? e : e[Symbol.iterator](); ; ) { var r; if (t) { if (n >= e.length) break; r = e[n++]; } else { if ((n = e.next()).done) break; r = n.value; } var i = r; if (f(this.run(i))) throw new Error( "Use process(css).then(cb) to work with async plugins" ); } return this.result; }), (e.prototype.run = function (e) { this.result.lastPlugin = e; try { return e(this.result.root, this.result); } catch (t) { throw (this.handleError(t, e), t); } }), (e.prototype.stringify = function () { if (this.stringified) return this.result; (this.stringified = !0), this.sync(); var e = this.result.opts, t = a.default; e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify); var n = new o.default( t, this.result.root, this.result.opts ).generate(); return ( (this.result.css = n[0]), (this.result.map = n[1]), this.result ); }), r(e, [ { key: "processor", get: function () { return this.result.processor; }, }, { key: "opts", get: function () { return this.result.opts; }, }, { key: "css", get: function () { return this.stringify().css; }, }, { key: "content", get: function () { return this.stringify().content; }, }, { key: "map", get: function () { return this.stringify().map; }, }, { key: "root", get: function () { return this.sync().root; }, }, { key: "messages", get: function () { return this.sync().messages; }, }, ]), e ); })(); (t.default = d), (e.exports = t.default); }, 30416: function (e, t) { "use strict"; t.__esModule = !0; var n = { split: function (e, t, n) { for ( var r = [], i = "", o = !1, a = 0, s = !1, u = !1, c = 0; c < e.length; c++ ) { var l = e[c]; s ? u ? (u = !1) : "\\" === l ? (u = !0) : l === s && (s = !1) : '"' === l || "'" === l ? (s = l) : "(" === l ? (a += 1) : ")" === l ? a > 0 && (a -= 1) : 0 === a && -1 !== t.indexOf(l) && (o = !0), o ? ("" !== i && r.push(i.trim()), (i = ""), (o = !1)) : (i += l); } return (n || "" !== i) && r.push(i.trim()), r; }, space: function (e) { return n.split(e, [" ", "\n", "\t"]); }, comma: function (e) { return n.split(e, [","], !0); }, }; (t.default = n), (e.exports = t.default); }, 40429: function (e, t, n) { "use strict"; t.__esModule = !0; var r = o(n(49125)), i = o(n(26470)); function o(e) { return e && e.__esModule ? e : { default: e }; } var a = (function () { function e(t, n, r) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, e), (this.stringify = t), (this.mapOpts = r.map || {}), (this.root = n), (this.opts = r); } return ( (e.prototype.isMap = function () { return void 0 !== this.opts.map ? !!this.opts.map : this.previous().length > 0; }), (e.prototype.previous = function () { var e = this; return ( this.previousMaps || ((this.previousMaps = []), this.root.walk(function (t) { if (t.source && t.source.input.map) { var n = t.source.input.map; -1 === e.previousMaps.indexOf(n) && e.previousMaps.push(n); } })), this.previousMaps ); }), (e.prototype.isInline = function () { if (void 0 !== this.mapOpts.inline) return this.mapOpts.inline; var e = this.mapOpts.annotation; return ( (void 0 === e || !0 === e) && (!this.previous().length || this.previous().some(function (e) { return e.inline; })) ); }), (e.prototype.isSourcesContent = function () { return void 0 !== this.mapOpts.sourcesContent ? this.mapOpts.sourcesContent : !this.previous().length || this.previous().some(function (e) { return e.withContent(); }); }), (e.prototype.clearAnnotation = function () { if (!1 !== this.mapOpts.annotation) for (var e = void 0, t = this.root.nodes.length - 1; t >= 0; t--) "comment" === (e = this.root.nodes[t]).type && 0 === e.text.indexOf("# sourceMappingURL=") && this.root.removeChild(t); }), (e.prototype.setSourcesContent = function () { var e = this, t = {}; this.root.walk(function (n) { if (n.source) { var r = n.source.input.from; if (r && !t[r]) { t[r] = !0; var i = e.relative(r); e.map.setSourceContent(i, n.source.input.css); } } }); }), (e.prototype.applyPrevMaps = function () { var e = this.previous(), t = Array.isArray(e), n = 0; for (e = t ? e : e[Symbol.iterator](); ; ) { var o; if (t) { if (n >= e.length) break; o = e[n++]; } else { if ((n = e.next()).done) break; o = n.value; } var a = o, s = this.relative(a.file), u = a.root || i.default.dirname(a.file), c = void 0; !1 === this.mapOpts.sourcesContent ? (c = new r.default.SourceMapConsumer(a.text)) .sourcesContent && (c.sourcesContent = c.sourcesContent.map(function () { return null; })) : (c = a.consumer()), this.map.applySourceMap(c, s, this.relative(u)); } }), (e.prototype.isAnnotation = function () { return ( !!this.isInline() || (void 0 !== this.mapOpts.annotation ? this.mapOpts.annotation : !this.previous().length || this.previous().some(function (e) { return e.annotation; })) ); }), (e.prototype.toBase64 = function (e) { return Buffer ? Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from(e).toString("base64") : new Buffer(e).toString("base64") : window.btoa(unescape(encodeURIComponent(e))); }), (e.prototype.addAnnotation = function () { var e = void 0; e = this.isInline() ? "data:application/json;base64," + this.toBase64(this.map.toString()) : "string" == typeof this.mapOpts.annotation ? this.mapOpts.annotation : this.outputFile() + ".map"; var t = "\n"; -1 !== this.css.indexOf("\r\n") && (t = "\r\n"), (this.css += t + "/*# sourceMappingURL=" + e + " */"); }), (e.prototype.outputFile = function () { return this.opts.to ? this.relative(this.opts.to) : this.opts.from ? this.relative(this.opts.from) : "to.css"; }), (e.prototype.generateMap = function () { return ( this.generateString(), this.isSourcesContent() && this.setSourcesContent(), this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map] ); }), (e.prototype.relative = function (e) { if (0 === e.indexOf("<")) return e; if (/^\w+:\/\//.test(e)) return e; var t = this.opts.to ? i.default.dirname(this.opts.to) : "."; return ( "string" == typeof this.mapOpts.annotation && (t = i.default.dirname( i.default.resolve(t, this.mapOpts.annotation) )), (e = i.default.relative(t, e)), "\\" === i.default.sep ? e.replace(/\\/g, "/") : e ); }), (e.prototype.sourcePath = function (e) { return this.mapOpts.from ? this.mapOpts.from : this.relative(e.source.input.from); }), (e.prototype.generateString = function () { var e = this; (this.css = ""), (this.map = new r.default.SourceMapGenerator({ file: this.outputFile(), })); var t = 1, n = 1, i = void 0, o = void 0; this.stringify(this.root, function (r, a, s) { (e.css += r), a && "end" !== s && (a.source && a.source.start ? e.map.addMapping({ source: e.sourcePath(a), generated: { line: t, column: n - 1 }, original: { line: a.source.start.line, column: a.source.start.column - 1, }, }) : e.map.addMapping({ source: "", original: { line: 1, column: 0 }, generated: { line: t, column: n - 1 }, })), (i = r.match(/\n/g)) ? ((t += i.length), (o = r.lastIndexOf("\n")), (n = r.length - o)) : (n += r.length), a && "start" !== s && (a.source && a.source.end ? e.map.addMapping({ source: e.sourcePath(a), generated: { line: t, column: n - 1 }, original: { line: a.source.end.line, column: a.source.end.column, }, }) : e.map.addMapping({ source: "", original: { line: 1, column: 0 }, generated: { line: t, column: n - 1 }, })); }); }), (e.prototype.generate = function () { if ((this.clearAnnotation(), this.isMap())) return this.generateMap(); var e = ""; return ( this.stringify(this.root, function (t) { e += t; }), [e] ); }), e ); })(); (t.default = a), (e.exports = t.default); }, 83454: function (e, t, n) { "use strict"; t.__esModule = !0; var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, i = u(n(95373)), o = u(n(7843)), a = u(n(23179)), s = u(n(84133)); function u(e) { return e && e.__esModule ? e : { default: e }; } function c(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } var l = function e(t, n) { var i = new t.constructor(); for (var o in t) if (t.hasOwnProperty(o)) { var a = t[o], s = void 0 === a ? "undefined" : r(a); "parent" === o && "object" === s ? n && (i[o] = n) : "source" === o ? (i[o] = a) : a instanceof Array ? (i[o] = a.map(function (t) { return e(t, i); })) : ("object" === s && null !== a && (a = e(a)), (i[o] = a)); } return i; }, f = (function () { function e() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; if ( (c(this, e), (this.raws = {}), "object" !== (void 0 === t ? "undefined" : r(t)) && void 0 !== t) ) throw new Error( "PostCSS nodes constructor accepts object, not " + JSON.stringify(t) ); for (var n in t) this[n] = t[n]; } return ( (e.prototype.error = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (this.source) { var n = this.positionBy(t); return this.source.input.error(e, n.line, n.column, t); } return new i.default(e); }), (e.prototype.warn = function (e, t, n) { var r = { node: this }; for (var i in n) r[i] = n[i]; return e.warn(t, r); }), (e.prototype.remove = function () { return ( this.parent && this.parent.removeChild(this), (this.parent = void 0), this ); }), (e.prototype.toString = function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a.default; e.stringify && (e = e.stringify); var t = ""; return ( e(this, function (e) { t += e; }), t ); }), (e.prototype.clone = function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = l(this); for (var n in e) t[n] = e[n]; return t; }), (e.prototype.cloneBefore = function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = this.clone(e); return this.parent.insertBefore(this, t), t; }), (e.prototype.cloneAfter = function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = this.clone(e); return this.parent.insertAfter(this, t), t; }), (e.prototype.replaceWith = function () { if (this.parent) { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; var r = t, i = Array.isArray(r), o = 0; for (r = i ? r : r[Symbol.iterator](); ; ) { var a; if (i) { if (o >= r.length) break; a = r[o++]; } else { if ((o = r.next()).done) break; a = o.value; } var s = a; this.parent.insertBefore(this, s); } this.remove(); } return this; }), (e.prototype.moveTo = function (e) { return ( (0, s.default)( "Node#moveTo was deprecated. Use Container#append." ), this.cleanRaws(this.root() === e.root()), this.remove(), e.append(this), this ); }), (e.prototype.moveBefore = function (e) { return ( (0, s.default)( "Node#moveBefore was deprecated. Use Node#before." ), this.cleanRaws(this.root() === e.root()), this.remove(), e.parent.insertBefore(e, this), this ); }), (e.prototype.moveAfter = function (e) { return ( (0, s.default)( "Node#moveAfter was deprecated. Use Node#after." ), this.cleanRaws(this.root() === e.root()), this.remove(), e.parent.insertAfter(e, this), this ); }), (e.prototype.next = function () { var e = this.parent.index(this); return this.parent.nodes[e + 1]; }), (e.prototype.prev = function () { var e = this.parent.index(this); return this.parent.nodes[e - 1]; }), (e.prototype.before = function (e) { return this.parent.insertBefore(this, e), this; }), (e.prototype.after = function (e) { return this.parent.insertAfter(this, e), this; }), (e.prototype.toJSON = function () { var e = {}; for (var t in this) if (this.hasOwnProperty(t) && "parent" !== t) { var n = this[t]; n instanceof Array ? (e[t] = n.map(function (e) { return "object" === (void 0 === e ? "undefined" : r(e)) && e.toJSON ? e.toJSON() : e; })) : "object" === (void 0 === n ? "undefined" : r(n)) && n.toJSON ? (e[t] = n.toJSON()) : (e[t] = n); } return e; }), (e.prototype.raw = function (e, t) { return new o.default().raw(this, e, t); }), (e.prototype.root = function () { for (var e = this; e.parent; ) e = e.parent; return e; }), (e.prototype.cleanRaws = function (e) { delete this.raws.before, delete this.raws.after, e || delete this.raws.between; }), (e.prototype.positionInside = function (e) { for ( var t = this.toString(), n = this.source.start.column, r = this.source.start.line, i = 0; i < e; i++ ) "\n" === t[i] ? ((n = 1), (r += 1)) : (n += 1); return { line: r, column: n }; }), (e.prototype.positionBy = function (e) { var t = this.source.start; if (e.index) t = this.positionInside(e.index); else if (e.word) { var n = this.toString().indexOf(e.word); -1 !== n && (t = this.positionInside(n)); } return t; }), e ); })(); (t.default = f), (e.exports = t.default); }, 11665: function (e, t, n) { "use strict"; (t.__esModule = !0), (t.default = function (e, t) { if (t && t.safe) throw new Error( 'Option safe was removed. Use parser: require("postcss-safe-parser")' ); var n = new i.default(e, t), o = new r.default(n); try { o.parse(); } catch (e) { throw ( ("CssSyntaxError" === e.name && t && t.from && (/\.scss$/i.test(t.from) ? (e.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser") : /\.sass/i.test(t.from) ? (e.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser") : /\.less$/i.test(t.from) && (e.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")), e) ); } return o.root; }); var r = o(n(92972)), i = o(n(62627)); function o(e) { return e && e.__esModule ? e : { default: e }; } e.exports = t.default; }, 92972: function (e, t, n) { "use strict"; t.__esModule = !0; var r = c(n(85232)), i = c(n(53240)), o = c(n(91569)), a = c(n(12650)), s = c(n(71283)), u = c(n(4485)); function c(e) { return e && e.__esModule ? e : { default: e }; } var l = (function () { function e(t) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, e), (this.input = t), (this.root = new s.default()), (this.current = this.root), (this.spaces = ""), (this.semicolon = !1), this.createTokenizer(), (this.root.source = { input: t, start: { line: 1, column: 1 } }); } return ( (e.prototype.createTokenizer = function () { this.tokenizer = (0, i.default)(this.input); }), (e.prototype.parse = function () { for (var e = void 0; !this.tokenizer.endOfFile(); ) switch ((e = this.tokenizer.nextToken())[0]) { case "space": this.spaces += e[1]; break; case ";": this.freeSemicolon(e); break; case "}": this.end(e); break; case "comment": this.comment(e); break; case "at-word": this.atrule(e); break; case "{": this.emptyRule(e); break; default: this.other(e); } this.endFile(); }), (e.prototype.comment = function (e) { var t = new o.default(); this.init(t, e[2], e[3]), (t.source.end = { line: e[4], column: e[5] }); var n = e[1].slice(2, -2); if (/^\s*$/.test(n)) (t.text = ""), (t.raws.left = n), (t.raws.right = ""); else { var r = n.match(/^(\s*)([^]*[^\s])(\s*)$/); (t.text = r[2]), (t.raws.left = r[1]), (t.raws.right = r[3]); } }), (e.prototype.emptyRule = function (e) { var t = new u.default(); this.init(t, e[2], e[3]), (t.selector = ""), (t.raws.between = ""), (this.current = t); }), (e.prototype.other = function (e) { for ( var t = !1, n = null, r = !1, i = null, o = [], a = [], s = e; s; ) { if (((n = s[0]), a.push(s), "(" === n || "[" === n)) i || (i = s), o.push("(" === n ? ")" : "]"); else if (0 === o.length) { if (";" === n) { if (r) return void this.decl(a); break; } if ("{" === n) return void this.rule(a); if ("}" === n) { this.tokenizer.back(a.pop()), (t = !0); break; } ":" === n && (r = !0); } else n === o[o.length - 1] && (o.pop(), 0 === o.length && (i = null)); s = this.tokenizer.nextToken(); } if ( (this.tokenizer.endOfFile() && (t = !0), o.length > 0 && this.unclosedBracket(i), t && r) ) { for ( ; a.length && ("space" === (s = a[a.length - 1][0]) || "comment" === s); ) this.tokenizer.back(a.pop()); this.decl(a); } else this.unknownWord(a); }), (e.prototype.rule = function (e) { e.pop(); var t = new u.default(); this.init(t, e[0][2], e[0][3]), (t.raws.between = this.spacesAndCommentsFromEnd(e)), this.raw(t, "selector", e), (this.current = t); }), (e.prototype.decl = function (e) { var t = new r.default(); this.init(t); var n = e[e.length - 1]; for ( ";" === n[0] && ((this.semicolon = !0), e.pop()), n[4] ? (t.source.end = { line: n[4], column: n[5] }) : (t.source.end = { line: n[2], column: n[3] }); "word" !== e[0][0]; ) 1 === e.length && this.unknownWord(e), (t.raws.before += e.shift()[1]); for ( t.source.start = { line: e[0][2], column: e[0][3] }, t.prop = ""; e.length; ) { var i = e[0][0]; if (":" === i || "space" === i || "comment" === i) break; t.prop += e.shift()[1]; } t.raws.between = ""; for (var o = void 0; e.length; ) { if (":" === (o = e.shift())[0]) { t.raws.between += o[1]; break; } t.raws.between += o[1]; } ("_" !== t.prop[0] && "*" !== t.prop[0]) || ((t.raws.before += t.prop[0]), (t.prop = t.prop.slice(1))), (t.raws.between += this.spacesAndCommentsFromStart(e)), this.precheckMissedSemicolon(e); for (var a = e.length - 1; a > 0; a--) { if ("!important" === (o = e[a])[1].toLowerCase()) { t.important = !0; var s = this.stringFrom(e, a); " !important" !== (s = this.spacesFromEnd(e) + s) && (t.raws.important = s); break; } if ("important" === o[1].toLowerCase()) { for (var u = e.slice(0), c = "", l = a; l > 0; l--) { var f = u[l][0]; if (0 === c.trim().indexOf("!") && "space" !== f) break; c = u.pop()[1] + c; } 0 === c.trim().indexOf("!") && ((t.important = !0), (t.raws.important = c), (e = u)); } if ("space" !== o[0] && "comment" !== o[0]) break; } this.raw(t, "value", e), -1 !== t.value.indexOf(":") && this.checkMissedSemicolon(e); }), (e.prototype.atrule = function (e) { var t = new a.default(); (t.name = e[1].slice(1)), "" === t.name && this.unnamedAtrule(t, e), this.init(t, e[2], e[3]); for ( var n = void 0, r = void 0, i = !1, o = !1, s = []; !this.tokenizer.endOfFile(); ) { if (";" === (e = this.tokenizer.nextToken())[0]) { (t.source.end = { line: e[2], column: e[3] }), (this.semicolon = !0); break; } if ("{" === e[0]) { o = !0; break; } if ("}" === e[0]) { if (s.length > 0) { for (n = s[(r = s.length - 1)]; n && "space" === n[0]; ) n = s[--r]; n && (t.source.end = { line: n[4], column: n[5] }); } this.end(e); break; } if ((s.push(e), this.tokenizer.endOfFile())) { i = !0; break; } } (t.raws.between = this.spacesAndCommentsFromEnd(s)), s.length ? ((t.raws.afterName = this.spacesAndCommentsFromStart(s)), this.raw(t, "params", s), i && ((e = s[s.length - 1]), (t.source.end = { line: e[4], column: e[5] }), (this.spaces = t.raws.between), (t.raws.between = ""))) : ((t.raws.afterName = ""), (t.params = "")), o && ((t.nodes = []), (this.current = t)); }), (e.prototype.end = function (e) { this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), (this.semicolon = !1), (this.current.raws.after = (this.current.raws.after || "") + this.spaces), (this.spaces = ""), this.current.parent ? ((this.current.source.end = { line: e[2], column: e[3] }), (this.current = this.current.parent)) : this.unexpectedClose(e); }), (e.prototype.endFile = function () { this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), (this.current.raws.after = (this.current.raws.after || "") + this.spaces); }), (e.prototype.freeSemicolon = function (e) { if (((this.spaces += e[1]), this.current.nodes)) { var t = this.current.nodes[this.current.nodes.length - 1]; t && "rule" === t.type && !t.raws.ownSemicolon && ((t.raws.ownSemicolon = this.spaces), (this.spaces = "")); } }), (e.prototype.init = function (e, t, n) { this.current.push(e), (e.source = { start: { line: t, column: n }, input: this.input }), (e.raws.before = this.spaces), (this.spaces = ""), "comment" !== e.type && (this.semicolon = !1); }), (e.prototype.raw = function (e, t, n) { for ( var r = void 0, i = void 0, o = n.length, a = "", s = !0, u = 0; u < o; u += 1 ) "comment" === (i = (r = n[u])[0]) || ("space" === i && u === o - 1) ? (s = !1) : (a += r[1]); if (!s) { var c = n.reduce(function (e, t) { return e + t[1]; }, ""); e.raws[t] = { value: a, raw: c }; } e[t] = a; }), (e.prototype.spacesAndCommentsFromEnd = function (e) { for ( var t = void 0, n = ""; e.length && ("space" === (t = e[e.length - 1][0]) || "comment" === t); ) n = e.pop()[1] + n; return n; }), (e.prototype.spacesAndCommentsFromStart = function (e) { for ( var t = void 0, n = ""; e.length && ("space" === (t = e[0][0]) || "comment" === t); ) n += e.shift()[1]; return n; }), (e.prototype.spacesFromEnd = function (e) { for (var t = ""; e.length && "space" === e[e.length - 1][0]; ) t = e.pop()[1] + t; return t; }), (e.prototype.stringFrom = function (e, t) { for (var n = "", r = t; r < e.length; r++) n += e[r][1]; return e.splice(t, e.length - t), n; }), (e.prototype.colon = function (e) { for ( var t = 0, n = void 0, r = void 0, i = void 0, o = 0; o < e.length; o++ ) { if ("(" === (r = (n = e[o])[0])) t += 1; else if (")" === r) t -= 1; else if (0 === t && ":" === r) { if (i) { if ("word" === i[0] && "progid" === i[1]) continue; return o; } this.doubleColon(n); } i = n; } return !1; }), (e.prototype.unclosedBracket = function (e) { throw this.input.error("Unclosed bracket", e[2], e[3]); }), (e.prototype.unknownWord = function (e) { throw this.input.error("Unknown word", e[0][2], e[0][3]); }), (e.prototype.unexpectedClose = function (e) { throw this.input.error("Unexpected }", e[2], e[3]); }), (e.prototype.unclosedBlock = function () { var e = this.current.source.start; throw this.input.error("Unclosed block", e.line, e.column); }), (e.prototype.doubleColon = function (e) { throw this.input.error("Double colon", e[2], e[3]); }), (e.prototype.unnamedAtrule = function (e, t) { throw this.input.error("At-rule without name", t[2], t[3]); }), (e.prototype.precheckMissedSemicolon = function (e) {}), (e.prototype.checkMissedSemicolon = function (e) { var t = this.colon(e); if (!1 !== t) { for ( var n = 0, r = void 0, i = t - 1; i >= 0 && ("space" === (r = e[i])[0] || 2 !== (n += 1)); i-- ); throw this.input.error("Missed semicolon", r[2], r[3]); } }), e ); })(); (t.default = l), (e.exports = t.default); }, 13200: function (e, t, n) { "use strict"; t.__esModule = !0; var r = p(n(85232)), i = p(n(46580)), o = p(n(23179)), a = p(n(91569)), s = p(n(12650)), u = p(n(20435)), c = p(n(11665)), l = p(n(30416)), f = p(n(4485)), d = p(n(71283)); function p(e) { return e && e.__esModule ? e : { default: e }; } function h() { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return ( 1 === t.length && Array.isArray(t[0]) && (t = t[0]), new i.default(t) ); } (h.plugin = function (e, t) { var n = function () { var n = t.apply(void 0, arguments); return ( (n.postcssPlugin = e), (n.postcssVersion = new i.default().version), n ); }, r = void 0; return ( Object.defineProperty(n, "postcss", { get: function () { return r || (r = n()), r; }, }), (n.process = function (e, t, r) { return h([n(r)]).process(e, t); }), n ); }), (h.stringify = o.default), (h.parse = c.default), (h.vendor = u.default), (h.list = l.default), (h.comment = function (e) { return new a.default(e); }), (h.atRule = function (e) { return new s.default(e); }), (h.decl = function (e) { return new r.default(e); }), (h.rule = function (e) { return new f.default(e); }), (h.root = function (e) { return new d.default(e); }), (t.default = h), (e.exports = t.default); }, 49470: function (e, t, n) { "use strict"; t.__esModule = !0; var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, i = s(n(49125)), o = s(n(26470)), a = s(n(31777)); function s(e) { return e && e.__esModule ? e : { default: e }; } var u = (function () { function e(t, n) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, e), this.loadAnnotation(t), (this.inline = this.startWith(this.annotation, "data:")); var r = n.map ? n.map.prev : void 0, i = this.loadMap(n.from, r); i && (this.text = i); } return ( (e.prototype.consumer = function () { return ( this.consumerCache || (this.consumerCache = new i.default.SourceMapConsumer( this.text )), this.consumerCache ); }), (e.prototype.withContent = function () { return !!( this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0 ); }), (e.prototype.startWith = function (e, t) { return !!e && e.substr(0, t.length) === t; }), (e.prototype.loadAnnotation = function (e) { var t = e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//); t && (this.annotation = t[1].trim()); }), (e.prototype.decodeInline = function (e) { var t = "data:application/json,"; if (this.startWith(e, t)) return decodeURIComponent(e.substr(t.length)); if (/^data:application\/json;(?:charset=utf-?8;)?base64,/.test(e)) return ( (n = e.substr(RegExp.lastMatch.length)), Buffer ? Buffer.from && Buffer.from !== Uint8Array.from ? Buffer.from(n, "base64").toString() : new Buffer(n, "base64").toString() : window.atob(n) ); var n, r = e.match(/data:application\/json;([^,]+),/)[1]; throw new Error("Unsupported source map encoding " + r); }), (e.prototype.loadMap = function (e, t) { if (!1 === t) return !1; if (t) { if ("string" == typeof t) return t; if ("function" == typeof t) { var n = t(e); if (n && a.default.existsSync && a.default.existsSync(n)) return a.default.readFileSync(n, "utf-8").toString().trim(); throw new Error( "Unable to load previous source map: " + n.toString() ); } if (t instanceof i.default.SourceMapConsumer) return i.default.SourceMapGenerator.fromSourceMap(t).toString(); if (t instanceof i.default.SourceMapGenerator) return t.toString(); if (this.isMap(t)) return JSON.stringify(t); throw new Error( "Unsupported previous source map format: " + t.toString() ); } if (this.inline) return this.decodeInline(this.annotation); if (this.annotation) { var r = this.annotation; return ( e && (r = o.default.join(o.default.dirname(e), r)), (this.root = o.default.dirname(r)), !(!a.default.existsSync || !a.default.existsSync(r)) && a.default.readFileSync(r, "utf-8").toString().trim() ); } }), (e.prototype.isMap = function (e) { return ( "object" === (void 0 === e ? "undefined" : r(e)) && ("string" == typeof e.mappings || "string" == typeof e._mappings) ); }), e ); })(); (t.default = u), (e.exports = t.default); }, 46580: function (e, t, n) { "use strict"; t.__esModule = !0; var r, i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, o = n(75673), a = (r = o) && r.__esModule ? r : { default: r }; function s(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } var u = (function () { function e() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []; s(this, e), (this.version = "6.0.16"), (this.plugins = this.normalize(t)); } return ( (e.prototype.use = function (e) { return ( (this.plugins = this.plugins.concat(this.normalize([e]))), this ); }), (e.prototype.process = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return new a.default(this, e, t); }), (e.prototype.normalize = function (e) { var t = [], n = e, r = Array.isArray(n), o = 0; for (n = r ? n : n[Symbol.iterator](); ; ) { var a; if (r) { if (o >= n.length) break; a = n[o++]; } else { if ((o = n.next()).done) break; a = o.value; } var s = a; if ( (s.postcss && (s = s.postcss), "object" === (void 0 === s ? "undefined" : i(s)) && Array.isArray(s.plugins)) ) t = t.concat(s.plugins); else { if ("function" != typeof s) throw "object" === (void 0 === s ? "undefined" : i(s)) && (s.parse || s.stringify) ? new Error( "PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation." ) : new Error(s + " is not a PostCSS plugin"); t.push(s); } } return t; }), e ); })(); (t.default = u), (e.exports = t.default); }, 96641: function (e, t, n) { "use strict"; t.__esModule = !0; var r, i = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), o = n(3061), a = (r = o) && r.__esModule ? r : { default: r }; var s = (function () { function e(t, n, r) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, e), (this.processor = t), (this.messages = []), (this.root = n), (this.opts = r), (this.css = void 0), (this.map = void 0); } return ( (e.prototype.toString = function () { return this.css; }), (e.prototype.warn = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; t.plugin || (this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin)); var n = new a.default(e, t); return this.messages.push(n), n; }), (e.prototype.warnings = function () { return this.messages.filter(function (e) { return "warning" === e.type; }); }), i(e, [ { key: "content", get: function () { return this.css; }, }, ]), e ); })(); (t.default = s), (e.exports = t.default); }, 71283: function (e, t, n) { "use strict"; t.__esModule = !0; var r, i = n(66808); var o = (function (e) { function t(n) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, t); var r = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, e.call(this, n)); return (r.type = "root"), r.nodes || (r.nodes = []), r; } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), (t.prototype.removeChild = function (t, n) { var r = this.index(t); return ( !n && 0 === r && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[r].raws.before), e.prototype.removeChild.call(this, t) ); }), (t.prototype.normalize = function (t, n, r) { var i = e.prototype.normalize.call(this, t); if (n) if ("prepend" === r) this.nodes.length > 1 ? (n.raws.before = this.nodes[1].raws.before) : delete n.raws.before; else if (this.first !== n) { var o = i, a = Array.isArray(o), s = 0; for (o = a ? o : o[Symbol.iterator](); ; ) { var u; if (a) { if (s >= o.length) break; u = o[s++]; } else { if ((s = o.next()).done) break; u = s.value; } u.raws.before = n.raws.before; } } return i; }), (t.prototype.toResult = function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = n(75673), r = n(46580), i = new t(new r(), this, e); return i.stringify(); }), t ); })(((r = i) && r.__esModule ? r : { default: r }).default); (t.default = o), (e.exports = t.default); }, 4485: function (e, t, n) { "use strict"; t.__esModule = !0; var r = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), i = a(n(66808)), o = a(n(30416)); function a(e) { return e && e.__esModule ? e : { default: e }; } var s = (function (e) { function t(n) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, t); var r = (function (e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ("object" != typeof t && "function" != typeof t) ? e : t; })(this, e.call(this, n)); return (r.type = "rule"), r.nodes || (r.nodes = []), r; } return ( (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function, not " + typeof t ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0, }, })), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), r(t, [ { key: "selectors", get: function () { return o.default.comma(this.selector); }, set: function (e) { var t = this.selector ? this.selector.match(/,\s*/) : null, n = t ? t[0] : "," + this.raw("between", "beforeOpen"); this.selector = e.join(n); }, }, ]), t ); })(i.default); (t.default = s), (e.exports = t.default); }, 7843: function (e, t) { "use strict"; t.__esModule = !0; var n = { colon: ": ", indent: " ", beforeDecl: "\n", beforeRule: "\n", beforeOpen: " ", beforeClose: "\n", beforeComment: "\n", after: "\n", emptyBody: "", commentLeft: " ", commentRight: " ", }; var r = (function () { function e(t) { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, e), (this.builder = t); } return ( (e.prototype.stringify = function (e, t) { this[e.type](e, t); }), (e.prototype.root = function (e) { this.body(e), e.raws.after && this.builder(e.raws.after); }), (e.prototype.comment = function (e) { var t = this.raw(e, "left", "commentLeft"), n = this.raw(e, "right", "commentRight"); this.builder("/*" + t + e.text + n + "*/", e); }), (e.prototype.decl = function (e, t) { var n = this.raw(e, "between", "colon"), r = e.prop + n + this.rawValue(e, "value"); e.important && (r += e.raws.important || " !important"), t && (r += ";"), this.builder(r, e); }), (e.prototype.rule = function (e) { this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(e.raws.ownSemicolon, e, "end"); }), (e.prototype.atrule = function (e, t) { var n = "@" + e.name, r = e.params ? this.rawValue(e, "params") : ""; if ( (void 0 !== e.raws.afterName ? (n += e.raws.afterName) : r && (n += " "), e.nodes) ) this.block(e, n + r); else { var i = (e.raws.between || "") + (t ? ";" : ""); this.builder(n + r + i, e); } }), (e.prototype.body = function (e) { for ( var t = e.nodes.length - 1; t > 0 && "comment" === e.nodes[t].type; ) t -= 1; for ( var n = this.raw(e, "semicolon"), r = 0; r < e.nodes.length; r++ ) { var i = e.nodes[r], o = this.raw(i, "before"); o && this.builder(o), this.stringify(i, t !== r || n); } }), (e.prototype.block = function (e, t) { var n = this.raw(e, "between", "beforeOpen"); this.builder(t + n + "{", e, "start"); var r = void 0; e.nodes && e.nodes.length ? (this.body(e), (r = this.raw(e, "after"))) : (r = this.raw(e, "after", "emptyBody")), r && this.builder(r), this.builder("}", e, "end"); }), (e.prototype.raw = function (e, t, r) { var i = void 0; if ((r || (r = t), t && void 0 !== (i = e.raws[t]))) return i; var o = e.parent; if ("before" === r && (!o || ("root" === o.type && o.first === e))) return ""; if (!o) return n[r]; var a = e.root(); if ((a.rawCache || (a.rawCache = {}), void 0 !== a.rawCache[r])) return a.rawCache[r]; if ("before" === r || "after" === r) return this.beforeAfter(e, r); var s, u = "raw" + ((s = r)[0].toUpperCase() + s.slice(1)); return ( this[u] ? (i = this[u](a, e)) : a.walk(function (e) { if (void 0 !== (i = e.raws[t])) return !1; }), void 0 === i && (i = n[r]), (a.rawCache[r] = i), i ); }), (e.prototype.rawSemicolon = function (e) { var t = void 0; return ( e.walk(function (e) { if ( e.nodes && e.nodes.length && "decl" === e.last.type && void 0 !== (t = e.raws.semicolon) ) return !1; }), t ); }), (e.prototype.rawEmptyBody = function (e) { var t = void 0; return ( e.walk(function (e) { if ( e.nodes && 0 === e.nodes.length && void 0 !== (t = e.raws.after) ) return !1; }), t ); }), (e.prototype.rawIndent = function (e) { if (e.raws.indent) return e.raws.indent; var t = void 0; return ( e.walk(function (n) { var r = n.parent; if ( r && r !== e && r.parent && r.parent === e && void 0 !== n.raws.before ) { var i = n.raws.before.split("\n"); return (t = (t = i[i.length - 1]).replace(/[^\s]/g, "")), !1; } }), t ); }), (e.prototype.rawBeforeComment = function (e, t) { var n = void 0; return ( e.walkComments(function (e) { if (void 0 !== e.raws.before) return ( -1 !== (n = e.raws.before).indexOf("\n") && (n = n.replace(/[^\n]+$/, "")), !1 ); }), void 0 === n ? (n = this.raw(t, null, "beforeDecl")) : n && (n = n.replace(/[^\s]/g, "")), n ); }), (e.prototype.rawBeforeDecl = function (e, t) { var n = void 0; return ( e.walkDecls(function (e) { if (void 0 !== e.raws.before) return ( -1 !== (n = e.raws.before).indexOf("\n") && (n = n.replace(/[^\n]+$/, "")), !1 ); }), void 0 === n ? (n = this.raw(t, null, "beforeRule")) : n && (n = n.replace(/[^\s]/g, "")), n ); }), (e.prototype.rawBeforeRule = function (e) { var t = void 0; return ( e.walk(function (n) { if ( n.nodes && (n.parent !== e || e.first !== n) && void 0 !== n.raws.before ) return ( -1 !== (t = n.raws.before).indexOf("\n") && (t = t.replace(/[^\n]+$/, "")), !1 ); }), t && (t = t.replace(/[^\s]/g, "")), t ); }), (e.prototype.rawBeforeClose = function (e) { var t = void 0; return ( e.walk(function (e) { if (e.nodes && e.nodes.length > 0 && void 0 !== e.raws.after) return ( -1 !== (t = e.raws.after).indexOf("\n") && (t = t.replace(/[^\n]+$/, "")), !1 ); }), t && (t = t.replace(/[^\s]/g, "")), t ); }), (e.prototype.rawBeforeOpen = function (e) { var t = void 0; return ( e.walk(function (e) { if ("decl" !== e.type && void 0 !== (t = e.raws.between)) return !1; }), t ); }), (e.prototype.rawColon = function (e) { var t = void 0; return ( e.walkDecls(function (e) { if (void 0 !== e.raws.between) return (t = e.raws.between.replace(/[^\s:]/g, "")), !1; }), t ); }), (e.prototype.beforeAfter = function (e, t) { var n = void 0; n = "decl" === e.type ? this.raw(e, null, "beforeDecl") : "comment" === e.type ? this.raw(e, null, "beforeComment") : "before" === t ? this.raw(e, null, "beforeRule") : this.raw(e, null, "beforeClose"); for (var r = e.parent, i = 0; r && "root" !== r.type; ) (i += 1), (r = r.parent); if (-1 !== n.indexOf("\n")) { var o = this.raw(e, null, "indent"); if (o.length) for (var a = 0; a < i; a++) n += o; } return n; }), (e.prototype.rawValue = function (e, t) { var n = e[t], r = e.raws[t]; return r && r.value === n ? r.raw : n; }), e ); })(); (t.default = r), (e.exports = t.default); }, 23179: function (e, t, n) { "use strict"; (t.__esModule = !0), (t.default = function (e, t) { new o.default(t).stringify(e); }); var r, i = n(7843), o = (r = i) && r.__esModule ? r : { default: r }; e.exports = t.default; }, 84903: function (e, t, n) { "use strict"; t.__esModule = !0; var r = a(n(30717)), i = a(n(53240)), o = a(n(62627)); function a(e) { return e && e.__esModule ? e : { default: e }; } var s = { brackets: r.default.cyan, "at-word": r.default.cyan, call: r.default.cyan, comment: r.default.gray, string: r.default.green, class: r.default.yellow, hash: r.default.magenta, "(": r.default.cyan, ")": r.default.cyan, "{": r.default.yellow, "}": r.default.yellow, "[": r.default.yellow, "]": r.default.yellow, ":": r.default.yellow, ";": r.default.yellow, }; (t.default = function (e) { for ( var t = (0, i.default)(new o.default(e), { ignoreErrors: !0 }), n = "", r = function () { var e = t.nextToken(), r = s[ (function (e, t) { var n = e[0], r = e[1]; if ("word" === n) { if ("." === r[0]) return "class"; if ("#" === r[0]) return "hash"; } if (!t.endOfFile()) { var i = t.nextToken(); if ((t.back(i), "brackets" === i[0] || "(" === i[0])) return "call"; } return n; })(e, t) ]; n += r ? e[1] .split(/\r?\n/) .map(function (e) { return r(e); }) .join("\n") : e[1]; }; !t.endOfFile(); ) r(); return n; }), (e.exports = t.default); }, 53240: function (e, t) { "use strict"; (t.__esModule = !0), (t.default = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, d = e.css.valueOf(), p = t.ignoreErrors, h = void 0, g = void 0, m = void 0, y = void 0, v = void 0, b = void 0, _ = void 0, w = void 0, T = void 0, x = void 0, S = void 0, k = void 0, E = void 0, O = void 0, C = d.length, L = -1, A = 1, I = 0, M = [], P = []; function R(t) { throw e.error("Unclosed " + t, A, I - L); } function D() { return 0 === P.length && I >= C; } function j() { if (P.length) return P.pop(); if (!(I >= C)) { switch ( (((h = d.charCodeAt(I)) === i || h === a || (h === s && d.charCodeAt(I + 1) !== i)) && ((L = I), (A += 1)), h) ) { case i: case o: case 9: case s: case a: g = I; do { (g += 1), (h = d.charCodeAt(g)) === i && ((L = g), (A += 1)); } while (h === o || h === i || 9 === h || h === s || h === a); (O = ["space", d.slice(I, g)]), (I = g - 1); break; case 91: O = ["[", "[", A, I - L]; break; case 93: O = ["]", "]", A, I - L]; break; case 123: O = ["{", "{", A, I - L]; break; case 125: O = ["}", "}", A, I - L]; break; case 58: O = [":", ":", A, I - L]; break; case 59: O = [";", ";", A, I - L]; break; case 40: if ( ((k = M.length ? M.pop()[1] : ""), (E = d.charCodeAt(I + 1)), "url" === k && E !== n && 34 !== E && E !== o && E !== i && 9 !== E && E !== a && E !== s) ) { g = I; do { if (((x = !1), -1 === (g = d.indexOf(")", g + 1)))) { if (p) { g = I; break; } R("bracket"); } for (S = g; d.charCodeAt(S - 1) === r; ) (S -= 1), (x = !x); } while (x); (O = ["brackets", d.slice(I, g + 1), A, I - L, A, g - L]), (I = g); } else (g = d.indexOf(")", I + 1)), (b = d.slice(I, g + 1)), -1 === g || l.test(b) ? (O = ["(", "(", A, I - L]) : ((O = ["brackets", b, A, I - L, A, g - L]), (I = g)); break; case 41: O = [")", ")", A, I - L]; break; case n: case 34: (m = h === n ? "'" : '"'), (g = I); do { if (((x = !1), -1 === (g = d.indexOf(m, g + 1)))) { if (p) { g = I + 1; break; } R("string"); } for (S = g; d.charCodeAt(S - 1) === r; ) (S -= 1), (x = !x); } while (x); (b = d.slice(I, g + 1)), (y = b.split("\n")), (v = y.length - 1) > 0 ? ((w = A + v), (T = g - y[v].length)) : ((w = A), (T = L)), (O = ["string", d.slice(I, g + 1), A, I - L, w, g - T]), (L = T), (A = w), (I = g); break; case 64: (u.lastIndex = I + 1), u.test(d), (g = 0 === u.lastIndex ? d.length - 1 : u.lastIndex - 2), (O = ["at-word", d.slice(I, g + 1), A, I - L, A, g - L]), (I = g); break; case r: for (g = I, _ = !0; d.charCodeAt(g + 1) === r; ) (g += 1), (_ = !_); if ( ((h = d.charCodeAt(g + 1)), _ && 47 !== h && h !== o && h !== i && 9 !== h && h !== s && h !== a && ((g += 1), f.test(d.charAt(g)))) ) { for (; f.test(d.charAt(g + 1)); ) g += 1; d.charCodeAt(g + 1) === o && (g += 1); } (O = ["word", d.slice(I, g + 1), A, I - L, A, g - L]), (I = g); break; default: 47 === h && 42 === d.charCodeAt(I + 1) ? (0 === (g = d.indexOf("*/", I + 2) + 1) && (p ? (g = d.length) : R("comment")), (b = d.slice(I, g + 1)), (y = b.split("\n")), (v = y.length - 1) > 0 ? ((w = A + v), (T = g - y[v].length)) : ((w = A), (T = L)), (O = ["comment", b, A, I - L, w, g - T]), (L = T), (A = w), (I = g)) : ((c.lastIndex = I + 1), c.test(d), (g = 0 === c.lastIndex ? d.length - 1 : c.lastIndex - 2), (O = ["word", d.slice(I, g + 1), A, I - L, A, g - L]), M.push(O), (I = g)); } return I++, O; } } function N(e) { P.push(e); } return { back: N, nextToken: j, endOfFile: D }; }); var n = 39, r = 92, i = 10, o = 32, a = 12, s = 13, u = /[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g, c = /[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g, l = /.[\\\/\("'\n]/, f = /[a-f0-9]/i; e.exports = t.default; }, 20435: function (e, t) { "use strict"; t.__esModule = !0; (t.default = { prefix: function (e) { var t = e.match(/^(-\w+-)/); return t ? t[0] : ""; }, unprefixed: function (e) { return e.replace(/^-\w+-/, ""); }, }), (e.exports = t.default); }, 84133: function (e, t) { "use strict"; (t.__esModule = !0), (t.default = function (e) { if (n[e]) return; (n[e] = !0), "undefined" != typeof console && console.warn && console.warn(e); }); var n = {}; e.exports = t.default; }, 3061: function (e, t) { "use strict"; function n(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } t.__esModule = !0; var r = (function () { function e(t) { var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if ( (n(this, e), (this.type = "warning"), (this.text = t), r.node && r.node.source) ) { var i = r.node.positionBy(r); (this.line = i.line), (this.column = i.column); } for (var o in r) this[o] = r[o]; } return ( (e.prototype.toString = function () { return this.node ? this.node.error(this.text, { plugin: this.plugin, index: this.index, word: this.word, }).message : this.plugin ? this.plugin + ": " + this.text : this.text; }), e ); })(); (t.default = r), (e.exports = t.default); }, 60053: function (e, t) { "use strict"; function n(e, t) { var n = e.length; e.push(t); e: for (; 0 < n; ) { var r = (n - 1) >>> 1, i = e[r]; if (!(0 < o(i, t))) break e; (e[r] = t), (e[n] = i), (n = r); } } function r(e) { return 0 === e.length ? null : e[0]; } function i(e) { if (0 === e.length) return null; var t = e[0], n = e.pop(); if (n !== t) { e[0] = n; e: for (var r = 0, i = e.length, a = i >>> 1; r < a; ) { var s = 2 * (r + 1) - 1, u = e[s], c = s + 1, l = e[c]; if (0 > o(u, n)) c < i && 0 > o(l, u) ? ((e[r] = l), (e[c] = n), (r = c)) : ((e[r] = u), (e[s] = n), (r = s)); else { if (!(c < i && 0 > o(l, n))) break e; (e[r] = l), (e[c] = n), (r = c); } } } return t; } function o(e, t) { var n = e.sortIndex - t.sortIndex; return 0 !== n ? n : e.id - t.id; } if ( "object" == typeof performance && "function" == typeof performance.now ) { var a = performance; t.unstable_now = function () { return a.now(); }; } else { var s = Date, u = s.now(); t.unstable_now = function () { return s.now() - u; }; } var c = [], l = [], f = 1, d = null, p = 3, h = !1, g = !1, m = !1, y = "function" == typeof setTimeout ? setTimeout : null, v = "function" == typeof clearTimeout ? clearTimeout : null, b = "undefined" != typeof setImmediate ? setImmediate : null; function _(e) { for (var t = r(l); null !== t; ) { if (null === t.callback) i(l); else { if (!(t.startTime <= e)) break; i(l), (t.sortIndex = t.expirationTime), n(c, t); } t = r(l); } } function w(e) { if (((m = !1), _(e), !g)) if (null !== r(c)) (g = !0), P(T); else { var t = r(l); null !== t && R(w, t.startTime - e); } } function T(e, n) { (g = !1), m && ((m = !1), v(E), (E = -1)), (h = !0); var o = p; try { for ( _(n), d = r(c); null !== d && (!(d.expirationTime > n) || (e && !L())); ) { var a = d.callback; if ("function" == typeof a) { (d.callback = null), (p = d.priorityLevel); var s = a(d.expirationTime <= n); (n = t.unstable_now()), "function" == typeof s ? (d.callback = s) : d === r(c) && i(c), _(n); } else i(c); d = r(c); } if (null !== d) var u = !0; else { var f = r(l); null !== f && R(w, f.startTime - n), (u = !1); } return u; } finally { (d = null), (p = o), (h = !1); } } "undefined" != typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); var x, S = !1, k = null, E = -1, O = 5, C = -1; function L() { return !(t.unstable_now() - C < O); } function A() { if (null !== k) { var e = t.unstable_now(); C = e; var n = !0; try { n = k(!0, e); } finally { n ? x() : ((S = !1), (k = null)); } } else S = !1; } if ("function" == typeof b) x = function () { b(A); }; else if ("undefined" != typeof MessageChannel) { var I = new MessageChannel(), M = I.port2; (I.port1.onmessage = A), (x = function () { M.postMessage(null); }); } else x = function () { y(A, 0); }; function P(e) { (k = e), S || ((S = !0), x()); } function R(e, n) { E = y(function () { e(t.unstable_now()); }, n); } (t.unstable_IdlePriority = 5), (t.unstable_ImmediatePriority = 1), (t.unstable_LowPriority = 4), (t.unstable_NormalPriority = 3), (t.unstable_Profiling = null), (t.unstable_UserBlockingPriority = 2), (t.unstable_cancelCallback = function (e) { e.callback = null; }), (t.unstable_continueExecution = function () { g || h || ((g = !0), P(T)); }), (t.unstable_forceFrameRate = function (e) { 0 > e || 125 < e ? console.error( "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" ) : (O = 0 < e ? Math.floor(1e3 / e) : 5); }), (t.unstable_getCurrentPriorityLevel = function () { return p; }), (t.unstable_getFirstCallbackNode = function () { return r(c); }), (t.unstable_next = function (e) { switch (p) { case 1: case 2: case 3: var t = 3; break; default: t = p; } var n = p; p = t; try { return e(); } finally { p = n; } }), (t.unstable_pauseExecution = function () {}), (t.unstable_requestPaint = function () {}), (t.unstable_runWithPriority = function (e, t) { switch (e) { case 1: case 2: case 3: case 4: case 5: break; default: e = 3; } var n = p; p = e; try { return t(); } finally { p = n; } }), (t.unstable_scheduleCallback = function (e, i, o) { var a = t.unstable_now(); switch ( ("object" == typeof o && null !== o ? (o = "number" == typeof (o = o.delay) && 0 < o ? a + o : a) : (o = a), e) ) { case 1: var s = -1; break; case 2: s = 250; break; case 5: s = 1073741823; break; case 4: s = 1e4; break; default: s = 5e3; } return ( (e = { id: f++, callback: i, priorityLevel: e, startTime: o, expirationTime: (s = o + s), sortIndex: -1, }), o > a ? ((e.sortIndex = o), n(l, e), null === r(c) && e === r(l) && (m ? (v(E), (E = -1)) : (m = !0), R(w, o - a))) : ((e.sortIndex = s), n(c, e), g || h || ((g = !0), P(T))), e ); }), (t.unstable_shouldYield = L), (t.unstable_wrapCallback = function (e) { var t = p; return function () { var n = p; p = t; try { return e.apply(this, arguments); } finally { p = n; } }; }); }, 63840: function (e, t, n) { "use strict"; e.exports = n(60053); }, 3675: function (e, t, n) { "use strict"; function r(e) { return ( null != e && "object" == typeof e && (1 === e.nodeType || 11 === e.nodeType) ); } function i(e, t) { return (!t || "hidden" !== e) && "visible" !== e && "clip" !== e; } function o(e, t) { if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) { var n = getComputedStyle(e, null); return i(n.overflowY, t) || i(n.overflowX, t); } return !1; } function a(e, t, n, r, i, o, a, s) { return (o < e && a > t) || (o > e && a < t) ? 0 : (o < e && s < n) || (a > t && s > n) ? o - e - r : (a > t && s < n) || (o < e && s > n) ? a - t + i : 0; } n.d(t, { Z: function () { return c; }, }); var s = function (e, t) { var n = t.scrollMode, i = t.block, s = t.inline, u = t.boundary, c = t.skipOverflowHiddenElements, l = "function" == typeof u ? u : function (e) { return e !== u; }; if (!r(e)) throw new TypeError("Invalid target"); for ( var f = document.scrollingElement || document.documentElement, d = [], p = e; r(p) && l(p); ) { if ((p = p.parentNode || p.host) === f) { d.push(p); break; } (p === document.body && o(p) && !o(document.documentElement)) || (o(p, c) && d.push(p)); } for ( var h = window.visualViewport ? visualViewport.width : innerWidth, g = window.visualViewport ? visualViewport.height : innerHeight, m = window.scrollX || pageXOffset, y = window.scrollY || pageYOffset, v = e.getBoundingClientRect(), b = v.height, _ = v.width, w = v.top, T = v.right, x = v.bottom, S = v.left, k = "start" === i || "nearest" === i ? w : "end" === i ? x : w + b / 2, E = "center" === s ? S + _ / 2 : "end" === s ? T : S, O = [], C = 0; C < d.length; C++ ) { var L = d[C], A = L.getBoundingClientRect(), I = A.height, M = A.width, P = A.top, R = A.right, D = A.bottom, j = A.left; if ( "if-needed" === n && w >= 0 && S >= 0 && x <= g && T <= h && w >= P && x <= D && S >= j && T <= R ) return O; var N = getComputedStyle(L), B = parseInt(N.borderLeftWidth, 10), U = parseInt(N.borderTopWidth, 10), F = parseInt(N.borderRightWidth, 10), z = parseInt(N.borderBottomWidth, 10), H = 0, q = 0, Z = "offsetWidth" in L ? L.offsetWidth - L.clientWidth - B - F : 0, V = "offsetHeight" in L ? L.offsetHeight - L.clientHeight - U - z : 0; if (f === L) (H = "start" === i ? k : "end" === i ? k - g : "nearest" === i ? a(y, y + g, g, U, z, y + k, y + k + b, b) : k - g / 2), (q = "start" === s ? E : "center" === s ? E - h / 2 : "end" === s ? E - h : a(m, m + h, h, B, F, m + E, m + E + _, _)), (H = Math.max(0, H + y)), (q = Math.max(0, q + m)); else { (H = "start" === i ? k - P - U : "end" === i ? k - D + z + V : "nearest" === i ? a(P, D, I, U, z + V, k, k + b, b) : k - (P + I / 2) + V / 2), (q = "start" === s ? E - j - B : "center" === s ? E - (j + M / 2) + Z / 2 : "end" === s ? E - R + F + Z : a(j, R, M, B, F + Z, E, E + _, _)); var W = L.scrollLeft, $ = L.scrollTop; (k += $ - (H = Math.max(0, Math.min($ + H, L.scrollHeight - I + V)))), (E += W - (q = Math.max(0, Math.min(W + q, L.scrollWidth - M + Z)))); } O.push({ el: L, top: H, left: q }); } return O; }; function u(e) { return e === Object(e) && 0 !== Object.keys(e).length; } var c = function (e, t) { if (u(t) && "function" == typeof t.behavior) return t.behavior(s(e, t)); var n = (function (e) { return !1 === e ? { block: "end", inline: "nearest" } : u(e) ? e : { block: "start", inline: "nearest" }; })(t); return (function (e, t) { void 0 === t && (t = "auto"); var n = "scrollBehavior" in document.body.style; e.forEach(function (e) { var r = e.el, i = e.top, o = e.left; r.scroll && n ? r.scroll({ top: i, left: o, behavior: t }) : ((r.scrollTop = i), (r.scrollLeft = o)); }); })(s(e, n), n.behavior); }; }, 78213: function (e, t, n) { var r = n(32728), i = Object.prototype.hasOwnProperty, o = "undefined" != typeof Map; function a() { (this._array = []), (this._set = o ? new Map() : Object.create(null)); } (a.fromArray = function (e, t) { for (var n = new a(), r = 0, i = e.length; r < i; r++) n.add(e[r], t); return n; }), (a.prototype.size = function () { return o ? this._set.size : Object.getOwnPropertyNames(this._set).length; }), (a.prototype.add = function (e, t) { var n = o ? e : r.toSetString(e), a = o ? this.has(e) : i.call(this._set, n), s = this._array.length; (a && !t) || this._array.push(e), a || (o ? this._set.set(e, s) : (this._set[n] = s)); }), (a.prototype.has = function (e) { if (o) return this._set.has(e); var t = r.toSetString(e); return i.call(this._set, t); }), (a.prototype.indexOf = function (e) { if (o) { var t = this._set.get(e); if (t >= 0) return t; } else { var n = r.toSetString(e); if (i.call(this._set, n)) return this._set[n]; } throw new Error('"' + e + '" is not in the set.'); }), (a.prototype.at = function (e) { if (e >= 0 && e < this._array.length) return this._array[e]; throw new Error("No element indexed by " + e); }), (a.prototype.toArray = function () { return this._array.slice(); }), (t.I = a); }, 16400: function (e, t, n) { var r = n(67923); (t.encode = function (e) { var t, n = "", i = (function (e) { return e < 0 ? 1 + (-e << 1) : 0 + (e << 1); })(e); do { (t = 31 & i), (i >>>= 5) > 0 && (t |= 32), (n += r.encode(t)); } while (i > 0); return n; }), (t.decode = function (e, t, n) { var i, o, a, s, u = e.length, c = 0, l = 0; do { if (t >= u) throw new Error("Expected more digits in base 64 VLQ value."); if (-1 === (o = r.decode(e.charCodeAt(t++)))) throw new Error("Invalid base64 digit: " + e.charAt(t - 1)); (i = !!(32 & o)), (c += (o &= 31) << l), (l += 5); } while (i); (n.value = ((s = (a = c) >> 1), 1 == (1 & a) ? -s : s)), (n.rest = t); }); }, 67923: function (e, t) { var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split( "" ); (t.encode = function (e) { if (0 <= e && e < n.length) return n[e]; throw new TypeError("Must be between 0 and 63: " + e); }), (t.decode = function (e) { return 65 <= e && e <= 90 ? e - 65 : 97 <= e && e <= 122 ? e - 97 + 26 : 48 <= e && e <= 57 ? e - 48 + 52 : 43 == e ? 62 : 47 == e ? 63 : -1; }); }, 9216: function (e, t) { function n(e, r, i, o, a, s) { var u = Math.floor((r - e) / 2) + e, c = a(i, o[u], !0); return 0 === c ? u : c > 0 ? r - u > 1 ? n(u, r, i, o, a, s) : s == t.LEAST_UPPER_BOUND ? r < o.length ? r : -1 : u : u - e > 1 ? n(e, u, i, o, a, s) : s == t.LEAST_UPPER_BOUND ? u : e < 0 ? -1 : e; } (t.GREATEST_LOWER_BOUND = 1), (t.LEAST_UPPER_BOUND = 2), (t.search = function (e, r, i, o) { if (0 === r.length) return -1; var a = n(-1, r.length, e, r, i, o || t.GREATEST_LOWER_BOUND); if (a < 0) return -1; for (; a - 1 >= 0 && 0 === i(r[a], r[a - 1], !0); ) --a; return a; }); }, 21188: function (e, t, n) { var r = n(32728); function i() { (this._array = []), (this._sorted = !0), (this._last = { generatedLine: -1, generatedColumn: 0 }); } (i.prototype.unsortedForEach = function (e, t) { this._array.forEach(e, t); }), (i.prototype.add = function (e) { var t, n, i, o, a, s; (t = this._last), (n = e), (i = t.generatedLine), (o = n.generatedLine), (a = t.generatedColumn), (s = n.generatedColumn), o > i || (o == i && s >= a) || r.compareByGeneratedPositionsInflated(t, n) <= 0 ? ((this._last = e), this._array.push(e)) : ((this._sorted = !1), this._array.push(e)); }), (i.prototype.toArray = function () { return ( this._sorted || (this._array.sort(r.compareByGeneratedPositionsInflated), (this._sorted = !0)), this._array ); }), (t.H = i); }, 22826: function (e, t) { function n(e, t, n) { var r = e[t]; (e[t] = e[n]), (e[n] = r); } function r(e, t, i, o) { if (i < o) { var a = i - 1; n(e, ((l = i), (f = o), Math.round(l + Math.random() * (f - l))), o); for (var s = e[o], u = i; u < o; u++) t(e[u], s) <= 0 && n(e, (a += 1), u); n(e, a + 1, u); var c = a + 1; r(e, t, i, c - 1), r(e, t, c + 1, o); } var l, f; } t.U = function (e, t) { r(e, t, 0, e.length - 1); }; }, 76771: function (e, t, n) { var r = n(32728), i = n(9216), o = n(78213).I, a = n(16400), s = n(22826).U; function u(e, t) { var n = e; return ( "string" == typeof e && (n = r.parseSourceMapInput(e)), null != n.sections ? new f(n, t) : new c(n, t) ); } function c(e, t) { var n = e; "string" == typeof e && (n = r.parseSourceMapInput(e)); var i = r.getArg(n, "version"), a = r.getArg(n, "sources"), s = r.getArg(n, "names", []), u = r.getArg(n, "sourceRoot", null), c = r.getArg(n, "sourcesContent", null), l = r.getArg(n, "mappings"), f = r.getArg(n, "file", null); if (i != this._version) throw new Error("Unsupported version: " + i); u && (u = r.normalize(u)), (a = a .map(String) .map(r.normalize) .map(function (e) { return u && r.isAbsolute(u) && r.isAbsolute(e) ? r.relative(u, e) : e; })), (this._names = o.fromArray(s.map(String), !0)), (this._sources = o.fromArray(a, !0)), (this._absoluteSources = this._sources.toArray().map(function (e) { return r.computeSourceURL(u, e, t); })), (this.sourceRoot = u), (this.sourcesContent = c), (this._mappings = l), (this._sourceMapURL = t), (this.file = f); } function l() { (this.generatedLine = 0), (this.generatedColumn = 0), (this.source = null), (this.originalLine = null), (this.originalColumn = null), (this.name = null); } function f(e, t) { var n = e; "string" == typeof e && (n = r.parseSourceMapInput(e)); var i = r.getArg(n, "version"), a = r.getArg(n, "sections"); if (i != this._version) throw new Error("Unsupported version: " + i); (this._sources = new o()), (this._names = new o()); var s = { line: -1, column: 0 }; this._sections = a.map(function (e) { if (e.url) throw new Error( "Support for url field in sections not implemented." ); var n = r.getArg(e, "offset"), i = r.getArg(n, "line"), o = r.getArg(n, "column"); if (i < s.line || (i === s.line && o < s.column)) throw new Error( "Section offsets must be ordered and non-overlapping." ); return ( (s = n), { generatedOffset: { generatedLine: i + 1, generatedColumn: o + 1 }, consumer: new u(r.getArg(e, "map"), t), } ); }); } (u.fromSourceMap = function (e, t) { return c.fromSourceMap(e, t); }), (u.prototype._version = 3), (u.prototype.__generatedMappings = null), Object.defineProperty(u.prototype, "_generatedMappings", { configurable: !0, enumerable: !0, get: function () { return ( this.__generatedMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__generatedMappings ); }, }), (u.prototype.__originalMappings = null), Object.defineProperty(u.prototype, "_originalMappings", { configurable: !0, enumerable: !0, get: function () { return ( this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__originalMappings ); }, }), (u.prototype._charIsMappingSeparator = function (e, t) { var n = e.charAt(t); return ";" === n || "," === n; }), (u.prototype._parseMappings = function (e, t) { throw new Error("Subclasses must implement _parseMappings"); }), (u.GENERATED_ORDER = 1), (u.ORIGINAL_ORDER = 2), (u.GREATEST_LOWER_BOUND = 1), (u.LEAST_UPPER_BOUND = 2), (u.prototype.eachMapping = function (e, t, n) { var i, o = t || null; switch (n || u.GENERATED_ORDER) { case u.GENERATED_ORDER: i = this._generatedMappings; break; case u.ORIGINAL_ORDER: i = this._originalMappings; break; default: throw new Error("Unknown order of iteration."); } var a = this.sourceRoot; i.map(function (e) { var t = null === e.source ? null : this._sources.at(e.source); return { source: (t = r.computeSourceURL(a, t, this._sourceMapURL)), generatedLine: e.generatedLine, generatedColumn: e.generatedColumn, originalLine: e.originalLine, originalColumn: e.originalColumn, name: null === e.name ? null : this._names.at(e.name), }; }, this).forEach(e, o); }), (u.prototype.allGeneratedPositionsFor = function (e) { var t = r.getArg(e, "line"), n = { source: r.getArg(e, "source"), originalLine: t, originalColumn: r.getArg(e, "column", 0), }; if (((n.source = this._findSourceIndex(n.source)), n.source < 0)) return []; var o = [], a = this._findMapping( n, this._originalMappings, "originalLine", "originalColumn", r.compareByOriginalPositions, i.LEAST_UPPER_BOUND ); if (a >= 0) { var s = this._originalMappings[a]; if (void 0 === e.column) for (var u = s.originalLine; s && s.originalLine === u; ) o.push({ line: r.getArg(s, "generatedLine", null), column: r.getArg(s, "generatedColumn", null), lastColumn: r.getArg(s, "lastGeneratedColumn", null), }), (s = this._originalMappings[++a]); else for ( var c = s.originalColumn; s && s.originalLine === t && s.originalColumn == c; ) o.push({ line: r.getArg(s, "generatedLine", null), column: r.getArg(s, "generatedColumn", null), lastColumn: r.getArg(s, "lastGeneratedColumn", null), }), (s = this._originalMappings[++a]); } return o; }), (t.SourceMapConsumer = u), (c.prototype = Object.create(u.prototype)), (c.prototype.consumer = u), (c.prototype._findSourceIndex = function (e) { var t, n = e; if ( (null != this.sourceRoot && (n = r.relative(this.sourceRoot, n)), this._sources.has(n)) ) return this._sources.indexOf(n); for (t = 0; t < this._absoluteSources.length; ++t) if (this._absoluteSources[t] == e) return t; return -1; }), (c.fromSourceMap = function (e, t) { var n = Object.create(c.prototype), i = (n._names = o.fromArray(e._names.toArray(), !0)), a = (n._sources = o.fromArray(e._sources.toArray(), !0)); (n.sourceRoot = e._sourceRoot), (n.sourcesContent = e._generateSourcesContent( n._sources.toArray(), n.sourceRoot )), (n.file = e._file), (n._sourceMapURL = t), (n._absoluteSources = n._sources.toArray().map(function (e) { return r.computeSourceURL(n.sourceRoot, e, t); })); for ( var u = e._mappings.toArray().slice(), f = (n.__generatedMappings = []), d = (n.__originalMappings = []), p = 0, h = u.length; p < h; p++ ) { var g = u[p], m = new l(); (m.generatedLine = g.generatedLine), (m.generatedColumn = g.generatedColumn), g.source && ((m.source = a.indexOf(g.source)), (m.originalLine = g.originalLine), (m.originalColumn = g.originalColumn), g.name && (m.name = i.indexOf(g.name)), d.push(m)), f.push(m); } return s(n.__originalMappings, r.compareByOriginalPositions), n; }), (c.prototype._version = 3), Object.defineProperty(c.prototype, "sources", { get: function () { return this._absoluteSources.slice(); }, }), (c.prototype._parseMappings = function (e, t) { for ( var n, i, o, u, c, f = 1, d = 0, p = 0, h = 0, g = 0, m = 0, y = e.length, v = 0, b = {}, _ = {}, w = [], T = []; v < y; ) if (";" === e.charAt(v)) f++, v++, (d = 0); else if ("," === e.charAt(v)) v++; else { for ( (n = new l()).generatedLine = f, u = v; u < y && !this._charIsMappingSeparator(e, u); u++ ); if ((o = b[(i = e.slice(v, u))])) v += i.length; else { for (o = []; v < u; ) a.decode(e, v, _), (c = _.value), (v = _.rest), o.push(c); if (2 === o.length) throw new Error("Found a source, but no line and column"); if (3 === o.length) throw new Error("Found a source and line, but no column"); b[i] = o; } (n.generatedColumn = d + o[0]), (d = n.generatedColumn), o.length > 1 && ((n.source = g + o[1]), (g += o[1]), (n.originalLine = p + o[2]), (p = n.originalLine), (n.originalLine += 1), (n.originalColumn = h + o[3]), (h = n.originalColumn), o.length > 4 && ((n.name = m + o[4]), (m += o[4]))), T.push(n), "number" == typeof n.originalLine && w.push(n); } s(T, r.compareByGeneratedPositionsDeflated), (this.__generatedMappings = T), s(w, r.compareByOriginalPositions), (this.__originalMappings = w); }), (c.prototype._findMapping = function (e, t, n, r, o, a) { if (e[n] <= 0) throw new TypeError( "Line must be greater than or equal to 1, got " + e[n] ); if (e[r] < 0) throw new TypeError( "Column must be greater than or equal to 0, got " + e[r] ); return i.search(e, t, o, a); }), (c.prototype.computeColumnSpans = function () { for (var e = 0; e < this._generatedMappings.length; ++e) { var t = this._generatedMappings[e]; if (e + 1 < this._generatedMappings.length) { var n = this._generatedMappings[e + 1]; if (t.generatedLine === n.generatedLine) { t.lastGeneratedColumn = n.generatedColumn - 1; continue; } } t.lastGeneratedColumn = 1 / 0; } }), (c.prototype.originalPositionFor = function (e) { var t = { generatedLine: r.getArg(e, "line"), generatedColumn: r.getArg(e, "column"), }, n = this._findMapping( t, this._generatedMappings, "generatedLine", "generatedColumn", r.compareByGeneratedPositionsDeflated, r.getArg(e, "bias", u.GREATEST_LOWER_BOUND) ); if (n >= 0) { var i = this._generatedMappings[n]; if (i.generatedLine === t.generatedLine) { var o = r.getArg(i, "source", null); null !== o && ((o = this._sources.at(o)), (o = r.computeSourceURL( this.sourceRoot, o, this._sourceMapURL ))); var a = r.getArg(i, "name", null); return ( null !== a && (a = this._names.at(a)), { source: o, line: r.getArg(i, "originalLine", null), column: r.getArg(i, "originalColumn", null), name: a, } ); } } return { source: null, line: null, column: null, name: null }; }), (c.prototype.hasContentsOfAllSources = function () { return ( !!this.sourcesContent && this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function (e) { return null == e; }) ); }), (c.prototype.sourceContentFor = function (e, t) { if (!this.sourcesContent) return null; var n = this._findSourceIndex(e); if (n >= 0) return this.sourcesContent[n]; var i, o = e; if ( (null != this.sourceRoot && (o = r.relative(this.sourceRoot, o)), null != this.sourceRoot && (i = r.urlParse(this.sourceRoot))) ) { var a = o.replace(/^file:\/\//, ""); if ("file" == i.scheme && this._sources.has(a)) return this.sourcesContent[this._sources.indexOf(a)]; if ((!i.path || "/" == i.path) && this._sources.has("/" + o)) return this.sourcesContent[this._sources.indexOf("/" + o)]; } if (t) return null; throw new Error('"' + o + '" is not in the SourceMap.'); }), (c.prototype.generatedPositionFor = function (e) { var t = r.getArg(e, "source"); if ((t = this._findSourceIndex(t)) < 0) return { line: null, column: null, lastColumn: null }; var n = { source: t, originalLine: r.getArg(e, "line"), originalColumn: r.getArg(e, "column"), }, i = this._findMapping( n, this._originalMappings, "originalLine", "originalColumn", r.compareByOriginalPositions, r.getArg(e, "bias", u.GREATEST_LOWER_BOUND) ); if (i >= 0) { var o = this._originalMappings[i]; if (o.source === n.source) return { line: r.getArg(o, "generatedLine", null), column: r.getArg(o, "generatedColumn", null), lastColumn: r.getArg(o, "lastGeneratedColumn", null), }; } return { line: null, column: null, lastColumn: null }; }), (f.prototype = Object.create(u.prototype)), (f.prototype.constructor = u), (f.prototype._version = 3), Object.defineProperty(f.prototype, "sources", { get: function () { for (var e = [], t = 0; t < this._sections.length; t++) for ( var n = 0; n < this._sections[t].consumer.sources.length; n++ ) e.push(this._sections[t].consumer.sources[n]); return e; }, }), (f.prototype.originalPositionFor = function (e) { var t = { generatedLine: r.getArg(e, "line"), generatedColumn: r.getArg(e, "column"), }, n = i.search(t, this._sections, function (e, t) { var n = e.generatedLine - t.generatedOffset.generatedLine; return n || e.generatedColumn - t.generatedOffset.generatedColumn; }), o = this._sections[n]; return o ? o.consumer.originalPositionFor({ line: t.generatedLine - (o.generatedOffset.generatedLine - 1), column: t.generatedColumn - (o.generatedOffset.generatedLine === t.generatedLine ? o.generatedOffset.generatedColumn - 1 : 0), bias: e.bias, }) : { source: null, line: null, column: null, name: null }; }), (f.prototype.hasContentsOfAllSources = function () { return this._sections.every(function (e) { return e.consumer.hasContentsOfAllSources(); }); }), (f.prototype.sourceContentFor = function (e, t) { for (var n = 0; n < this._sections.length; n++) { var r = this._sections[n].consumer.sourceContentFor(e, !0); if (r) return r; } if (t) return null; throw new Error('"' + e + '" is not in the SourceMap.'); }), (f.prototype.generatedPositionFor = function (e) { for (var t = 0; t < this._sections.length; t++) { var n = this._sections[t]; if (-1 !== n.consumer._findSourceIndex(r.getArg(e, "source"))) { var i = n.consumer.generatedPositionFor(e); if (i) return { line: i.line + (n.generatedOffset.generatedLine - 1), column: i.column + (n.generatedOffset.generatedLine === i.line ? n.generatedOffset.generatedColumn - 1 : 0), }; } } return { line: null, column: null }; }), (f.prototype._parseMappings = function (e, t) { (this.__generatedMappings = []), (this.__originalMappings = []); for (var n = 0; n < this._sections.length; n++) for ( var i = this._sections[n], o = i.consumer._generatedMappings, a = 0; a < o.length; a++ ) { var u = o[a], c = i.consumer._sources.at(u.source); (c = r.computeSourceURL( i.consumer.sourceRoot, c, this._sourceMapURL )), this._sources.add(c), (c = this._sources.indexOf(c)); var l = null; u.name && ((l = i.consumer._names.at(u.name)), this._names.add(l), (l = this._names.indexOf(l))); var f = { source: c, generatedLine: u.generatedLine + (i.generatedOffset.generatedLine - 1), generatedColumn: u.generatedColumn + (i.generatedOffset.generatedLine === u.generatedLine ? i.generatedOffset.generatedColumn - 1 : 0), originalLine: u.originalLine, originalColumn: u.originalColumn, name: l, }; this.__generatedMappings.push(f), "number" == typeof f.originalLine && this.__originalMappings.push(f); } s(this.__generatedMappings, r.compareByGeneratedPositionsDeflated), s(this.__originalMappings, r.compareByOriginalPositions); }); }, 34433: function (e, t, n) { var r = n(16400), i = n(32728), o = n(78213).I, a = n(21188).H; function s(e) { e || (e = {}), (this._file = i.getArg(e, "file", null)), (this._sourceRoot = i.getArg(e, "sourceRoot", null)), (this._skipValidation = i.getArg(e, "skipValidation", !1)), (this._sources = new o()), (this._names = new o()), (this._mappings = new a()), (this._sourcesContents = null); } (s.prototype._version = 3), (s.fromSourceMap = function (e) { var t = e.sourceRoot, n = new s({ file: e.file, sourceRoot: t }); return ( e.eachMapping(function (e) { var r = { generated: { line: e.generatedLine, column: e.generatedColumn }, }; null != e.source && ((r.source = e.source), null != t && (r.source = i.relative(t, r.source)), (r.original = { line: e.originalLine, column: e.originalColumn, }), null != e.name && (r.name = e.name)), n.addMapping(r); }), e.sources.forEach(function (r) { var o = r; null !== t && (o = i.relative(t, r)), n._sources.has(o) || n._sources.add(o); var a = e.sourceContentFor(r); null != a && n.setSourceContent(r, a); }), n ); }), (s.prototype.addMapping = function (e) { var t = i.getArg(e, "generated"), n = i.getArg(e, "original", null), r = i.getArg(e, "source", null), o = i.getArg(e, "name", null); this._skipValidation || this._validateMapping(t, n, r, o), null != r && ((r = String(r)), this._sources.has(r) || this._sources.add(r)), null != o && ((o = String(o)), this._names.has(o) || this._names.add(o)), this._mappings.add({ generatedLine: t.line, generatedColumn: t.column, originalLine: null != n && n.line, originalColumn: null != n && n.column, source: r, name: o, }); }), (s.prototype.setSourceContent = function (e, t) { var n = e; null != this._sourceRoot && (n = i.relative(this._sourceRoot, n)), null != t ? (this._sourcesContents || (this._sourcesContents = Object.create(null)), (this._sourcesContents[i.toSetString(n)] = t)) : this._sourcesContents && (delete this._sourcesContents[i.toSetString(n)], 0 === Object.keys(this._sourcesContents).length && (this._sourcesContents = null)); }), (s.prototype.applySourceMap = function (e, t, n) { var r = t; if (null == t) { if (null == e.file) throw new Error( 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.' ); r = e.file; } var a = this._sourceRoot; null != a && (r = i.relative(a, r)); var s = new o(), u = new o(); this._mappings.unsortedForEach(function (t) { if (t.source === r && null != t.originalLine) { var o = e.originalPositionFor({ line: t.originalLine, column: t.originalColumn, }); null != o.source && ((t.source = o.source), null != n && (t.source = i.join(n, t.source)), null != a && (t.source = i.relative(a, t.source)), (t.originalLine = o.line), (t.originalColumn = o.column), null != o.name && (t.name = o.name)); } var c = t.source; null == c || s.has(c) || s.add(c); var l = t.name; null == l || u.has(l) || u.add(l); }, this), (this._sources = s), (this._names = u), e.sources.forEach(function (t) { var r = e.sourceContentFor(t); null != r && (null != n && (t = i.join(n, t)), null != a && (t = i.relative(a, t)), this.setSourceContent(t, r)); }, this); }), (s.prototype._validateMapping = function (e, t, n, r) { if (t && "number" != typeof t.line && "number" != typeof t.column) throw new Error( "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values." ); if ( (!( e && "line" in e && "column" in e && e.line > 0 && e.column >= 0 ) || t || n || r) && !( e && "line" in e && "column" in e && t && "line" in t && "column" in t && e.line > 0 && e.column >= 0 && t.line > 0 && t.column >= 0 && n ) ) throw new Error( "Invalid mapping: " + JSON.stringify({ generated: e, source: n, original: t, name: r, }) ); }), (s.prototype._serializeMappings = function () { for ( var e, t, n, o, a = 0, s = 1, u = 0, c = 0, l = 0, f = 0, d = "", p = this._mappings.toArray(), h = 0, g = p.length; h < g; h++ ) { if (((e = ""), (t = p[h]).generatedLine !== s)) for (a = 0; t.generatedLine !== s; ) (e += ";"), s++; else if (h > 0) { if (!i.compareByGeneratedPositionsInflated(t, p[h - 1])) continue; e += ","; } (e += r.encode(t.generatedColumn - a)), (a = t.generatedColumn), null != t.source && ((o = this._sources.indexOf(t.source)), (e += r.encode(o - f)), (f = o), (e += r.encode(t.originalLine - 1 - c)), (c = t.originalLine - 1), (e += r.encode(t.originalColumn - u)), (u = t.originalColumn), null != t.name && ((n = this._names.indexOf(t.name)), (e += r.encode(n - l)), (l = n))), (d += e); } return d; }), (s.prototype._generateSourcesContent = function (e, t) { return e.map(function (e) { if (!this._sourcesContents) return null; null != t && (e = i.relative(t, e)); var n = i.toSetString(e); return Object.prototype.hasOwnProperty.call( this._sourcesContents, n ) ? this._sourcesContents[n] : null; }, this); }), (s.prototype.toJSON = function () { var e = { version: this._version, sources: this._sources.toArray(), names: this._names.toArray(), mappings: this._serializeMappings(), }; return ( null != this._file && (e.file = this._file), null != this._sourceRoot && (e.sourceRoot = this._sourceRoot), this._sourcesContents && (e.sourcesContent = this._generateSourcesContent( e.sources, e.sourceRoot )), e ); }), (s.prototype.toString = function () { return JSON.stringify(this.toJSON()); }), (t.SourceMapGenerator = s); }, 17085: function (e, t, n) { var r = n(34433).SourceMapGenerator, i = n(32728), o = /(\r?\n)/, a = "$$$isSourceNode$$$"; function s(e, t, n, r, i) { (this.children = []), (this.sourceContents = {}), (this.line = null == e ? null : e), (this.column = null == t ? null : t), (this.source = null == n ? null : n), (this.name = null == i ? null : i), (this[a] = !0), null != r && this.add(r); } (s.fromStringWithSourceMap = function (e, t, n) { var r = new s(), a = e.split(o), u = 0, c = function () { return e() + (e() || ""); function e() { return u < a.length ? a[u++] : void 0; } }, l = 1, f = 0, d = null; return ( t.eachMapping(function (e) { if (null !== d) { if (!(l < e.generatedLine)) { var t = (n = a[u] || "").substr(0, e.generatedColumn - f); return ( (a[u] = n.substr(e.generatedColumn - f)), (f = e.generatedColumn), p(d, t), void (d = e) ); } p(d, c()), l++, (f = 0); } for (; l < e.generatedLine; ) r.add(c()), l++; if (f < e.generatedColumn) { var n = a[u] || ""; r.add(n.substr(0, e.generatedColumn)), (a[u] = n.substr(e.generatedColumn)), (f = e.generatedColumn); } d = e; }, this), u < a.length && (d && p(d, c()), r.add(a.splice(u).join(""))), t.sources.forEach(function (e) { var o = t.sourceContentFor(e); null != o && (null != n && (e = i.join(n, e)), r.setSourceContent(e, o)); }), r ); function p(e, t) { if (null === e || void 0 === e.source) r.add(t); else { var o = n ? i.join(n, e.source) : e.source; r.add(new s(e.originalLine, e.originalColumn, o, t, e.name)); } } }), (s.prototype.add = function (e) { if (Array.isArray(e)) e.forEach(function (e) { this.add(e); }, this); else { if (!e[a] && "string" != typeof e) throw new TypeError( "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + e ); e && this.children.push(e); } return this; }), (s.prototype.prepend = function (e) { if (Array.isArray(e)) for (var t = e.length - 1; t >= 0; t--) this.prepend(e[t]); else { if (!e[a] && "string" != typeof e) throw new TypeError( "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + e ); this.children.unshift(e); } return this; }), (s.prototype.walk = function (e) { for (var t, n = 0, r = this.children.length; n < r; n++) (t = this.children[n])[a] ? t.walk(e) : "" !== t && e(t, { source: this.source, line: this.line, column: this.column, name: this.name, }); }), (s.prototype.join = function (e) { var t, n, r = this.children.length; if (r > 0) { for (t = [], n = 0; n < r - 1; n++) t.push(this.children[n]), t.push(e); t.push(this.children[n]), (this.children = t); } return this; }), (s.prototype.replaceRight = function (e, t) { var n = this.children[this.children.length - 1]; return ( n[a] ? n.replaceRight(e, t) : "string" == typeof n ? (this.children[this.children.length - 1] = n.replace(e, t)) : this.children.push("".replace(e, t)), this ); }), (s.prototype.setSourceContent = function (e, t) { this.sourceContents[i.toSetString(e)] = t; }), (s.prototype.walkSourceContents = function (e) { for (var t = 0, n = this.children.length; t < n; t++) this.children[t][a] && this.children[t].walkSourceContents(e); var r = Object.keys(this.sourceContents); for (t = 0, n = r.length; t < n; t++) e(i.fromSetString(r[t]), this.sourceContents[r[t]]); }), (s.prototype.toString = function () { var e = ""; return ( this.walk(function (t) { e += t; }), e ); }), (s.prototype.toStringWithSourceMap = function (e) { var t = { code: "", line: 1, column: 0 }, n = new r(e), i = !1, o = null, a = null, s = null, u = null; return ( this.walk(function (e, r) { (t.code += e), null !== r.source && null !== r.line && null !== r.column ? ((o === r.source && a === r.line && s === r.column && u === r.name) || n.addMapping({ source: r.source, original: { line: r.line, column: r.column }, generated: { line: t.line, column: t.column }, name: r.name, }), (o = r.source), (a = r.line), (s = r.column), (u = r.name), (i = !0)) : i && (n.addMapping({ generated: { line: t.line, column: t.column }, }), (o = null), (i = !1)); for (var c = 0, l = e.length; c < l; c++) 10 === e.charCodeAt(c) ? (t.line++, (t.column = 0), c + 1 === l ? ((o = null), (i = !1)) : i && n.addMapping({ source: r.source, original: { line: r.line, column: r.column }, generated: { line: t.line, column: t.column }, name: r.name, })) : t.column++; }), this.walkSourceContents(function (e, t) { n.setSourceContent(e, t); }), { code: t.code, map: n } ); }), (t.SourceNode = s); }, 32728: function (e, t) { t.getArg = function (e, t, n) { if (t in e) return e[t]; if (3 === arguments.length) return n; throw new Error('"' + t + '" is a required argument.'); }; var n = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, r = /^data:.+\,.+$/; function i(e) { var t = e.match(n); return t ? { scheme: t[1], auth: t[2], host: t[3], port: t[4], path: t[5] } : null; } function o(e) { var t = ""; return ( e.scheme && (t += e.scheme + ":"), (t += "//"), e.auth && (t += e.auth + "@"), e.host && (t += e.host), e.port && (t += ":" + e.port), e.path && (t += e.path), t ); } function a(e) { var n = e, r = i(e); if (r) { if (!r.path) return e; n = r.path; } for ( var a, s = t.isAbsolute(n), u = n.split(/\/+/), c = 0, l = u.length - 1; l >= 0; l-- ) "." === (a = u[l]) ? u.splice(l, 1) : ".." === a ? c++ : c > 0 && ("" === a ? (u.splice(l + 1, c), (c = 0)) : (u.splice(l, 2), c--)); return ( "" === (n = u.join("/")) && (n = s ? "/" : "."), r ? ((r.path = n), o(r)) : n ); } function s(e, t) { "" === e && (e = "."), "" === t && (t = "."); var n = i(t), s = i(e); if ((s && (e = s.path || "/"), n && !n.scheme)) return s && (n.scheme = s.scheme), o(n); if (n || t.match(r)) return t; if (s && !s.host && !s.path) return (s.host = t), o(s); var u = "/" === t.charAt(0) ? t : a(e.replace(/\/+$/, "") + "/" + t); return s ? ((s.path = u), o(s)) : u; } (t.urlParse = i), (t.urlGenerate = o), (t.normalize = a), (t.join = s), (t.isAbsolute = function (e) { return "/" === e.charAt(0) || n.test(e); }), (t.relative = function (e, t) { "" === e && (e = "."), (e = e.replace(/\/$/, "")); for (var n = 0; 0 !== t.indexOf(e + "/"); ) { var r = e.lastIndexOf("/"); if (r < 0) return t; if ((e = e.slice(0, r)).match(/^([^\/]+:\/)?\/*$/)) return t; ++n; } return Array(n + 1).join("../") + t.substr(e.length + 1); }); var u = !("__proto__" in Object.create(null)); function c(e) { return e; } function l(e) { if (!e) return !1; var t = e.length; if (t < 9) return !1; if ( 95 !== e.charCodeAt(t - 1) || 95 !== e.charCodeAt(t - 2) || 111 !== e.charCodeAt(t - 3) || 116 !== e.charCodeAt(t - 4) || 111 !== e.charCodeAt(t - 5) || 114 !== e.charCodeAt(t - 6) || 112 !== e.charCodeAt(t - 7) || 95 !== e.charCodeAt(t - 8) || 95 !== e.charCodeAt(t - 9) ) return !1; for (var n = t - 10; n >= 0; n--) if (36 !== e.charCodeAt(n)) return !1; return !0; } function f(e, t) { return e === t ? 0 : null === e ? 1 : null === t ? -1 : e > t ? 1 : -1; } (t.toSetString = u ? c : function (e) { return l(e) ? "$" + e : e; }), (t.fromSetString = u ? c : function (e) { return l(e) ? e.slice(1) : e; }), (t.compareByOriginalPositions = function (e, t, n) { var r = f(e.source, t.source); return 0 !== r || 0 !== (r = e.originalLine - t.originalLine) || 0 !== (r = e.originalColumn - t.originalColumn) || n || 0 !== (r = e.generatedColumn - t.generatedColumn) || 0 !== (r = e.generatedLine - t.generatedLine) ? r : f(e.name, t.name); }), (t.compareByGeneratedPositionsDeflated = function (e, t, n) { var r = e.generatedLine - t.generatedLine; return 0 !== r || 0 !== (r = e.generatedColumn - t.generatedColumn) || n || 0 !== (r = f(e.source, t.source)) || 0 !== (r = e.originalLine - t.originalLine) || 0 !== (r = e.originalColumn - t.originalColumn) ? r : f(e.name, t.name); }), (t.compareByGeneratedPositionsInflated = function (e, t) { var n = e.generatedLine - t.generatedLine; return 0 !== n || 0 !== (n = e.generatedColumn - t.generatedColumn) || 0 !== (n = f(e.source, t.source)) || 0 !== (n = e.originalLine - t.originalLine) || 0 !== (n = e.originalColumn - t.originalColumn) ? n : f(e.name, t.name); }), (t.parseSourceMapInput = function (e) { return JSON.parse(e.replace(/^\)]}'[^\n]*\n/, "")); }), (t.computeSourceURL = function (e, t, n) { if ( ((t = t || ""), e && ("/" !== e[e.length - 1] && "/" !== t[0] && (e += "/"), (t = e + t)), n) ) { var r = i(n); if (!r) throw new Error("sourceMapURL could not be parsed"); if (r.path) { var u = r.path.lastIndexOf("/"); u >= 0 && (r.path = r.path.substring(0, u + 1)); } t = s(o(r), t); } return a(t); }); }, 49125: function (e, t, n) { (t.SourceMapGenerator = n(34433).SourceMapGenerator), (t.SourceMapConsumer = n(76771).SourceMapConsumer), (t.SourceNode = n(17085).SourceNode); }, 36084: function (e, t, n) { "use strict"; var r = n(82120), i = n(64666), o = /^\d+$/; (t.parse = function (e) { return (t = e.split(",").map(function (e) { var t = {}; return ( e .trim() .split(/\s+/) .forEach(function (e, n) { if (0 === n) return (t.url = e); var i = e.substring(0, e.length - 1), a = e[e.length - 1], s = parseInt(i, 10), u = parseFloat(i); if ("w" === a && o.test(i)) t.width = s; else if ("h" === a && o.test(i)) t.height = s; else { if ("x" !== a || r(u)) throw new Error("Invalid srcset descriptor: " + e + "."); t.density = u; } }), t ); })) .sort() .filter(function (e, n) { return JSON.stringify(e) !== JSON.stringify(t[n - 1]); }); var t; }), (t.stringify = function (e) { return i( e.map(function (e) { if (!e.url) throw new Error("URL is required."); var t = [e.url]; return ( e.width && t.push(e.width + "w"), e.height && t.push(e.height + "h"), e.density && t.push(e.density + "x"), t.join(" ") ); }) ).join(", "); }); }, 42830: function (e, t, n) { e.exports = i; var r = n(17187).EventEmitter; function i() { r.call(this); } n(35717)(i, r), (i.Readable = n(56577)), (i.Writable = n(20323)), (i.Duplex = n(68656)), (i.Transform = n(94473)), (i.PassThrough = n(2366)), (i.finished = n(81086)), (i.pipeline = n(56472)), (i.Stream = i), (i.prototype.pipe = function (e, t) { var n = this; function i(t) { e.writable && !1 === e.write(t) && n.pause && n.pause(); } function o() { n.readable && n.resume && n.resume(); } n.on("data", i), e.on("drain", o), e._isStdio || (t && !1 === t.end) || (n.on("end", s), n.on("close", u)); var a = !1; function s() { a || ((a = !0), e.end()); } function u() { a || ((a = !0), "function" == typeof e.destroy && e.destroy()); } function c(e) { if ((l(), 0 === r.listenerCount(this, "error"))) throw e; } function l() { n.removeListener("data", i), e.removeListener("drain", o), n.removeListener("end", s), n.removeListener("close", u), n.removeListener("error", c), e.removeListener("error", c), n.removeListener("end", l), n.removeListener("close", l), e.removeListener("close", l); } return ( n.on("error", c), e.on("error", c), n.on("end", l), n.on("close", l), e.on("close", l), e.emit("pipe", n), e ); }); }, 58106: function (e) { "use strict"; var t = {}; function n(e, n, r) { r || (r = Error); var i = (function (e) { var t, r; function i(t, r, i) { return ( e.call( this, (function (e, t, r) { return "string" == typeof n ? n : n(e, t, r); })(t, r, i) ) || this ); } return ( (r = e), ((t = i).prototype = Object.create(r.prototype)), (t.prototype.constructor = t), (t.__proto__ = r), i ); })(r); (i.prototype.name = r.name), (i.prototype.code = e), (t[e] = i); } function r(e, t) { if (Array.isArray(e)) { var n = e.length; return ( (e = e.map(function (e) { return String(e); })), n > 2 ? "one of " .concat(t, " ") .concat(e.slice(0, n - 1).join(", "), ", or ") + e[n - 1] : 2 === n ? "one of ".concat(t, " ").concat(e[0], " or ").concat(e[1]) : "of ".concat(t, " ").concat(e[0]) ); } return "of ".concat(t, " ").concat(String(e)); } n( "ERR_INVALID_OPT_VALUE", function (e, t) { return 'The value "' + t + '" is invalid for option "' + e + '"'; }, TypeError ), n( "ERR_INVALID_ARG_TYPE", function (e, t, n) { var i, o, a, s; if ( ("string" == typeof t && ((o = "not "), t.substr(!a || a < 0 ? 0 : +a, o.length) === o) ? ((i = "must not be"), (t = t.replace(/^not /, ""))) : (i = "must be"), (function (e, t, n) { return ( (void 0 === n || n > e.length) && (n = e.length), e.substring(n - t.length, n) === t ); })(e, " argument")) ) s = "The ".concat(e, " ").concat(i, " ").concat(r(t, "type")); else { var u = (function (e, t, n) { return ( "number" != typeof n && (n = 0), !(n + t.length > e.length) && -1 !== e.indexOf(t, n) ); })(e, ".") ? "property" : "argument"; s = 'The "' .concat(e, '" ') .concat(u, " ") .concat(i, " ") .concat(r(t, "type")); } return (s += ". Received type ".concat(typeof n)); }, TypeError ), n("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n("ERR_METHOD_NOT_IMPLEMENTED", function (e) { return "The " + e + " method is not implemented"; }), n("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), n("ERR_STREAM_DESTROYED", function (e) { return "Cannot call " + e + " after a stream was destroyed"; }), n("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), n("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), n("ERR_STREAM_WRITE_AFTER_END", "write after end"), n( "ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError ), n( "ERR_UNKNOWN_ENCODING", function (e) { return "Unknown encoding: " + e; }, TypeError ), n( "ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event" ), (e.exports.q = t); }, 68656: function (e, t, n) { "use strict"; var r = Object.keys || function (e) { var t = []; for (var n in e) t.push(n); return t; }; e.exports = c; var i = n(56577), o = n(20323); n(35717)(c, i); for (var a = r(o.prototype), s = 0; s < a.length; s++) { var u = a[s]; c.prototype[u] || (c.prototype[u] = o.prototype[u]); } function c(e) { if (!(this instanceof c)) return new c(e); i.call(this, e), o.call(this, e), (this.allowHalfOpen = !0), e && (!1 === e.readable && (this.readable = !1), !1 === e.writable && (this.writable = !1), !1 === e.allowHalfOpen && ((this.allowHalfOpen = !1), this.once("end", l))); } function l() { this._writableState.ended || process.nextTick(f, this); } function f(e) { e.end(); } Object.defineProperty(c.prototype, "writableHighWaterMark", { enumerable: !1, get: function () { return this._writableState.highWaterMark; }, }), Object.defineProperty(c.prototype, "writableBuffer", { enumerable: !1, get: function () { return this._writableState && this._writableState.getBuffer(); }, }), Object.defineProperty(c.prototype, "writableLength", { enumerable: !1, get: function () { return this._writableState.length; }, }), Object.defineProperty(c.prototype, "destroyed", { enumerable: !1, get: function () { return ( void 0 !== this._readableState && void 0 !== this._writableState && this._readableState.destroyed && this._writableState.destroyed ); }, set: function (e) { void 0 !== this._readableState && void 0 !== this._writableState && ((this._readableState.destroyed = e), (this._writableState.destroyed = e)); }, }); }, 2366: function (e, t, n) { "use strict"; e.exports = i; var r = n(94473); function i(e) { if (!(this instanceof i)) return new i(e); r.call(this, e); } n(35717)(i, r), (i.prototype._transform = function (e, t, n) { n(null, e); }); }, 56577: function (e, t, n) { "use strict"; var r; (e.exports = S), (S.ReadableState = x); n(17187).EventEmitter; var i = function (e, t) { return e.listeners(t).length; }, o = n(83194), a = n(48764).Buffer, s = n.g.Uint8Array || function () {}; var u, c = n(40964); u = c && c.debuglog ? c.debuglog("stream") : function () {}; var l, f, d, p = n(39686), h = n(71029), g = n(30094).getHighWaterMark, m = n(58106).q, y = m.ERR_INVALID_ARG_TYPE, v = m.ERR_STREAM_PUSH_AFTER_EOF, b = m.ERR_METHOD_NOT_IMPLEMENTED, _ = m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; n(35717)(S, o); var w = h.errorOrDestroy, T = ["error", "close", "destroy", "pause", "resume"]; function x(e, t, i) { (r = r || n(68656)), (e = e || {}), "boolean" != typeof i && (i = t instanceof r), (this.objectMode = !!e.objectMode), i && (this.objectMode = this.objectMode || !!e.readableObjectMode), (this.highWaterMark = g(this, e, "readableHighWaterMark", i)), (this.buffer = new p()), (this.length = 0), (this.pipes = null), (this.pipesCount = 0), (this.flowing = null), (this.ended = !1), (this.endEmitted = !1), (this.reading = !1), (this.sync = !0), (this.needReadable = !1), (this.emittedReadable = !1), (this.readableListening = !1), (this.resumeScheduled = !1), (this.paused = !0), (this.emitClose = !1 !== e.emitClose), (this.autoDestroy = !!e.autoDestroy), (this.destroyed = !1), (this.defaultEncoding = e.defaultEncoding || "utf8"), (this.awaitDrain = 0), (this.readingMore = !1), (this.decoder = null), (this.encoding = null), e.encoding && (l || (l = n(54729).s), (this.decoder = new l(e.encoding)), (this.encoding = e.encoding)); } function S(e) { if (((r = r || n(68656)), !(this instanceof S))) return new S(e); var t = this instanceof r; (this._readableState = new x(e, this, t)), (this.readable = !0), e && ("function" == typeof e.read && (this._read = e.read), "function" == typeof e.destroy && (this._destroy = e.destroy)), o.call(this); } function k(e, t, n, r, i) { u("readableAddChunk", t); var o, c = e._readableState; if (null === t) (c.reading = !1), (function (e, t) { if ((u("onEofChunk"), t.ended)) return; if (t.decoder) { var n = t.decoder.end(); n && n.length && (t.buffer.push(n), (t.length += t.objectMode ? 1 : n.length)); } (t.ended = !0), t.sync ? L(e) : ((t.needReadable = !1), t.emittedReadable || ((t.emittedReadable = !0), A(e))); })(e, c); else if ( (i || (o = (function (e, t) { var n; (r = t), a.isBuffer(r) || r instanceof s || "string" == typeof t || void 0 === t || e.objectMode || (n = new y("chunk", ["string", "Buffer", "Uint8Array"], t)); var r; return n; })(c, t)), o) ) w(e, o); else if (c.objectMode || (t && t.length > 0)) if ( ("string" == typeof t || c.objectMode || Object.getPrototypeOf(t) === a.prototype || (t = (function (e) { return a.from(e); })(t)), r) ) c.endEmitted ? w(e, new _()) : E(e, c, t, !0); else if (c.ended) w(e, new v()); else { if (c.destroyed) return !1; (c.reading = !1), c.decoder && !n ? ((t = c.decoder.write(t)), c.objectMode || 0 !== t.length ? E(e, c, t, !1) : I(e, c)) : E(e, c, t, !1); } else r || ((c.reading = !1), I(e, c)); return !c.ended && (c.length < c.highWaterMark || 0 === c.length); } function E(e, t, n, r) { t.flowing && 0 === t.length && !t.sync ? ((t.awaitDrain = 0), e.emit("data", n)) : ((t.length += t.objectMode ? 1 : n.length), r ? t.buffer.unshift(n) : t.buffer.push(n), t.needReadable && L(e)), I(e, t); } Object.defineProperty(S.prototype, "destroyed", { enumerable: !1, get: function () { return ( void 0 !== this._readableState && this._readableState.destroyed ); }, set: function (e) { this._readableState && (this._readableState.destroyed = e); }, }), (S.prototype.destroy = h.destroy), (S.prototype._undestroy = h.undestroy), (S.prototype._destroy = function (e, t) { t(e); }), (S.prototype.push = function (e, t) { var n, r = this._readableState; return ( r.objectMode ? (n = !0) : "string" == typeof e && ((t = t || r.defaultEncoding) !== r.encoding && ((e = a.from(e, t)), (t = "")), (n = !0)), k(this, e, t, !1, n) ); }), (S.prototype.unshift = function (e) { return k(this, e, null, !0, !1); }), (S.prototype.isPaused = function () { return !1 === this._readableState.flowing; }), (S.prototype.setEncoding = function (e) { l || (l = n(54729).s); var t = new l(e); (this._readableState.decoder = t), (this._readableState.encoding = this._readableState.decoder.encoding); for (var r = this._readableState.buffer.head, i = ""; null !== r; ) (i += t.write(r.data)), (r = r.next); return ( this._readableState.buffer.clear(), "" !== i && this._readableState.buffer.push(i), (this._readableState.length = i.length), this ); }); var O = 1073741824; function C(e, t) { return e <= 0 || (0 === t.length && t.ended) ? 0 : t.objectMode ? 1 : e != e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = (function (e) { return ( e >= O ? (e = O) : (e--, (e |= e >>> 1), (e |= e >>> 2), (e |= e >>> 4), (e |= e >>> 8), (e |= e >>> 16), e++), e ); })(e)), e <= t.length ? e : t.ended ? t.length : ((t.needReadable = !0), 0)); } function L(e) { var t = e._readableState; u("emitReadable", t.needReadable, t.emittedReadable), (t.needReadable = !1), t.emittedReadable || (u("emitReadable", t.flowing), (t.emittedReadable = !0), process.nextTick(A, e)); } function A(e) { var t = e._readableState; u("emitReadable_", t.destroyed, t.length, t.ended), t.destroyed || (!t.length && !t.ended) || (e.emit("readable"), (t.emittedReadable = !1)), (t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark), j(e); } function I(e, t) { t.readingMore || ((t.readingMore = !0), process.nextTick(M, e, t)); } function M(e, t) { for ( ; !t.reading && !t.ended && (t.length < t.highWaterMark || (t.flowing && 0 === t.length)); ) { var n = t.length; if ((u("maybeReadMore read 0"), e.read(0), n === t.length)) break; } t.readingMore = !1; } function P(e) { var t = e._readableState; (t.readableListening = e.listenerCount("readable") > 0), t.resumeScheduled && !t.paused ? (t.flowing = !0) : e.listenerCount("data") > 0 && e.resume(); } function R(e) { u("readable nexttick read 0"), e.read(0); } function D(e, t) { u("resume", t.reading), t.reading || e.read(0), (t.resumeScheduled = !1), e.emit("resume"), j(e), t.flowing && !t.reading && e.read(0); } function j(e) { var t = e._readableState; for (u("flow", t.flowing); t.flowing && null !== e.read(); ); } function N(e, t) { return 0 === t.length ? null : (t.objectMode ? (n = t.buffer.shift()) : !e || e >= t.length ? ((n = t.decoder ? t.buffer.join("") : 1 === t.buffer.length ? t.buffer.first() : t.buffer.concat(t.length)), t.buffer.clear()) : (n = t.buffer.consume(e, t.decoder)), n); var n; } function B(e) { var t = e._readableState; u("endReadable", t.endEmitted), t.endEmitted || ((t.ended = !0), process.nextTick(U, t, e)); } function U(e, t) { if ( (u("endReadableNT", e.endEmitted, e.length), !e.endEmitted && 0 === e.length && ((e.endEmitted = !0), (t.readable = !1), t.emit("end"), e.autoDestroy)) ) { var n = t._writableState; (!n || (n.autoDestroy && n.finished)) && t.destroy(); } } function F(e, t) { for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n; return -1; } (S.prototype.read = function (e) { u("read", e), (e = parseInt(e, 10)); var t = this._readableState, n = e; if ( (0 !== e && (t.emittedReadable = !1), 0 === e && t.needReadable && ((0 !== t.highWaterMark ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) ) return ( u("read: emitReadable", t.length, t.ended), 0 === t.length && t.ended ? B(this) : L(this), null ); if (0 === (e = C(e, t)) && t.ended) return 0 === t.length && B(this), null; var r, i = t.needReadable; return ( u("need readable", i), (0 === t.length || t.length - e < t.highWaterMark) && u("length less than watermark", (i = !0)), t.ended || t.reading ? u("reading or ended", (i = !1)) : i && (u("do read"), (t.reading = !0), (t.sync = !0), 0 === t.length && (t.needReadable = !0), this._read(t.highWaterMark), (t.sync = !1), t.reading || (e = C(n, t))), null === (r = e > 0 ? N(e, t) : null) ? ((t.needReadable = t.length <= t.highWaterMark), (e = 0)) : ((t.length -= e), (t.awaitDrain = 0)), 0 === t.length && (t.ended || (t.needReadable = !0), n !== e && t.ended && B(this)), null !== r && this.emit("data", r), r ); }), (S.prototype._read = function (e) { w(this, new b("_read()")); }), (S.prototype.pipe = function (e, t) { var n = this, r = this._readableState; switch (r.pipesCount) { case 0: r.pipes = e; break; case 1: r.pipes = [r.pipes, e]; break; default: r.pipes.push(e); } (r.pipesCount += 1), u("pipe count=%d opts=%j", r.pipesCount, t); var o = (!t || !1 !== t.end) && e !== process.stdout && e !== process.stderr ? s : g; function a(t, i) { u("onunpipe"), t === n && i && !1 === i.hasUnpiped && ((i.hasUnpiped = !0), u("cleanup"), e.removeListener("close", p), e.removeListener("finish", h), e.removeListener("drain", c), e.removeListener("error", d), e.removeListener("unpipe", a), n.removeListener("end", s), n.removeListener("end", g), n.removeListener("data", f), (l = !0), !r.awaitDrain || (e._writableState && !e._writableState.needDrain) || c()); } function s() { u("onend"), e.end(); } r.endEmitted ? process.nextTick(o) : n.once("end", o), e.on("unpipe", a); var c = (function (e) { return function () { var t = e._readableState; u("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, 0 === t.awaitDrain && i(e, "data") && ((t.flowing = !0), j(e)); }; })(n); e.on("drain", c); var l = !1; function f(t) { u("ondata"); var i = e.write(t); u("dest.write", i), !1 === i && (((1 === r.pipesCount && r.pipes === e) || (r.pipesCount > 1 && -1 !== F(r.pipes, e))) && !l && (u("false write response, pause", r.awaitDrain), r.awaitDrain++), n.pause()); } function d(t) { u("onerror", t), g(), e.removeListener("error", d), 0 === i(e, "error") && w(e, t); } function p() { e.removeListener("finish", h), g(); } function h() { u("onfinish"), e.removeListener("close", p), g(); } function g() { u("unpipe"), n.unpipe(e); } return ( n.on("data", f), (function (e, t, n) { if ("function" == typeof e.prependListener) return e.prependListener(t, n); e._events && e._events[t] ? Array.isArray(e._events[t]) ? e._events[t].unshift(n) : (e._events[t] = [n, e._events[t]]) : e.on(t, n); })(e, "error", d), e.once("close", p), e.once("finish", h), e.emit("pipe", n), r.flowing || (u("pipe resume"), n.resume()), e ); }), (S.prototype.unpipe = function (e) { var t = this._readableState, n = { hasUnpiped: !1 }; if (0 === t.pipesCount) return this; if (1 === t.pipesCount) return ( (e && e !== t.pipes) || (e || (e = t.pipes), (t.pipes = null), (t.pipesCount = 0), (t.flowing = !1), e && e.emit("unpipe", this, n)), this ); if (!e) { var r = t.pipes, i = t.pipesCount; (t.pipes = null), (t.pipesCount = 0), (t.flowing = !1); for (var o = 0; o < i; o++) r[o].emit("unpipe", this, { hasUnpiped: !1 }); return this; } var a = F(t.pipes, e); return ( -1 === a || (t.pipes.splice(a, 1), (t.pipesCount -= 1), 1 === t.pipesCount && (t.pipes = t.pipes[0]), e.emit("unpipe", this, n)), this ); }), (S.prototype.on = function (e, t) { var n = o.prototype.on.call(this, e, t), r = this._readableState; return ( "data" === e ? ((r.readableListening = this.listenerCount("readable") > 0), !1 !== r.flowing && this.resume()) : "readable" === e && (r.endEmitted || r.readableListening || ((r.readableListening = r.needReadable = !0), (r.flowing = !1), (r.emittedReadable = !1), u("on readable", r.length, r.reading), r.length ? L(this) : r.reading || process.nextTick(R, this))), n ); }), (S.prototype.addListener = S.prototype.on), (S.prototype.removeListener = function (e, t) { var n = o.prototype.removeListener.call(this, e, t); return "readable" === e && process.nextTick(P, this), n; }), (S.prototype.removeAllListeners = function (e) { var t = o.prototype.removeAllListeners.apply(this, arguments); return ( ("readable" !== e && void 0 !== e) || process.nextTick(P, this), t ); }), (S.prototype.resume = function () { var e = this._readableState; return ( e.flowing || (u("resume"), (e.flowing = !e.readableListening), (function (e, t) { t.resumeScheduled || ((t.resumeScheduled = !0), process.nextTick(D, e, t)); })(this, e)), (e.paused = !1), this ); }), (S.prototype.pause = function () { return ( u("call pause flowing=%j", this._readableState.flowing), !1 !== this._readableState.flowing && (u("pause"), (this._readableState.flowing = !1), this.emit("pause")), (this._readableState.paused = !0), this ); }), (S.prototype.wrap = function (e) { var t = this, n = this._readableState, r = !1; for (var i in (e.on("end", function () { if ((u("wrapped end"), n.decoder && !n.ended)) { var e = n.decoder.end(); e && e.length && t.push(e); } t.push(null); }), e.on("data", function (i) { (u("wrapped data"), n.decoder && (i = n.decoder.write(i)), n.objectMode && null == i) || ((n.objectMode || (i && i.length)) && (t.push(i) || ((r = !0), e.pause()))); }), e)) void 0 === this[i] && "function" == typeof e[i] && (this[i] = (function (t) { return function () { return e[t].apply(e, arguments); }; })(i)); for (var o = 0; o < T.length; o++) e.on(T[o], this.emit.bind(this, T[o])); return ( (this._read = function (t) { u("wrapped _read", t), r && ((r = !1), e.resume()); }), this ); }), "function" == typeof Symbol && (S.prototype[Symbol.asyncIterator] = function () { return void 0 === f && (f = n(20828)), f(this); }), Object.defineProperty(S.prototype, "readableHighWaterMark", { enumerable: !1, get: function () { return this._readableState.highWaterMark; }, }), Object.defineProperty(S.prototype, "readableBuffer", { enumerable: !1, get: function () { return this._readableState && this._readableState.buffer; }, }), Object.defineProperty(S.prototype, "readableFlowing", { enumerable: !1, get: function () { return this._readableState.flowing; }, set: function (e) { this._readableState && (this._readableState.flowing = e); }, }), (S._fromList = N), Object.defineProperty(S.prototype, "readableLength", { enumerable: !1, get: function () { return this._readableState.length; }, }), "function" == typeof Symbol && (S.from = function (e, t) { return void 0 === d && (d = n(31265)), d(S, e, t); }); }, 94473: function (e, t, n) { "use strict"; e.exports = l; var r = n(58106).q, i = r.ERR_METHOD_NOT_IMPLEMENTED, o = r.ERR_MULTIPLE_CALLBACK, a = r.ERR_TRANSFORM_ALREADY_TRANSFORMING, s = r.ERR_TRANSFORM_WITH_LENGTH_0, u = n(68656); function c(e, t) { var n = this._transformState; n.transforming = !1; var r = n.writecb; if (null === r) return this.emit("error", new o()); (n.writechunk = null), (n.writecb = null), null != t && this.push(t), r(e); var i = this._readableState; (i.reading = !1), (i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark); } function l(e) { if (!(this instanceof l)) return new l(e); u.call(this, e), (this._transformState = { afterTransform: c.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null, }), (this._readableState.needReadable = !0), (this._readableState.sync = !1), e && ("function" == typeof e.transform && (this._transform = e.transform), "function" == typeof e.flush && (this._flush = e.flush)), this.on("prefinish", f); } function f() { var e = this; "function" != typeof this._flush || this._readableState.destroyed ? d(this, null, null) : this._flush(function (t, n) { d(e, t, n); }); } function d(e, t, n) { if (t) return e.emit("error", t); if ((null != n && e.push(n), e._writableState.length)) throw new s(); if (e._transformState.transforming) throw new a(); return e.push(null); } n(35717)(l, u), (l.prototype.push = function (e, t) { return ( (this._transformState.needTransform = !1), u.prototype.push.call(this, e, t) ); }), (l.prototype._transform = function (e, t, n) { n(new i("_transform()")); }), (l.prototype._write = function (e, t, n) { var r = this._transformState; if ( ((r.writecb = n), (r.writechunk = e), (r.writeencoding = t), !r.transforming) ) { var i = this._readableState; (r.needTransform || i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark); } }), (l.prototype._read = function (e) { var t = this._transformState; null === t.writechunk || t.transforming ? (t.needTransform = !0) : ((t.transforming = !0), this._transform(t.writechunk, t.writeencoding, t.afterTransform)); }), (l.prototype._destroy = function (e, t) { u.prototype._destroy.call(this, e, function (e) { t(e); }); }); }, 20323: function (e, t, n) { "use strict"; function r(e) { var t = this; (this.next = null), (this.entry = null), (this.finish = function () { !(function (e, t, n) { var r = e.entry; e.entry = null; for (; r; ) { var i = r.callback; t.pendingcb--, i(n), (r = r.next); } t.corkedRequestsFree.next = e; })(t, e); }); } var i; (e.exports = S), (S.WritableState = x); var o = { deprecate: n(94927) }, a = n(83194), s = n(48764).Buffer, u = n.g.Uint8Array || function () {}; var c, l = n(71029), f = n(30094).getHighWaterMark, d = n(58106).q, p = d.ERR_INVALID_ARG_TYPE, h = d.ERR_METHOD_NOT_IMPLEMENTED, g = d.ERR_MULTIPLE_CALLBACK, m = d.ERR_STREAM_CANNOT_PIPE, y = d.ERR_STREAM_DESTROYED, v = d.ERR_STREAM_NULL_VALUES, b = d.ERR_STREAM_WRITE_AFTER_END, _ = d.ERR_UNKNOWN_ENCODING, w = l.errorOrDestroy; function T() {} function x(e, t, o) { (i = i || n(68656)), (e = e || {}), "boolean" != typeof o && (o = t instanceof i), (this.objectMode = !!e.objectMode), o && (this.objectMode = this.objectMode || !!e.writableObjectMode), (this.highWaterMark = f(this, e, "writableHighWaterMark", o)), (this.finalCalled = !1), (this.needDrain = !1), (this.ending = !1), (this.ended = !1), (this.finished = !1), (this.destroyed = !1); var a = !1 === e.decodeStrings; (this.decodeStrings = !a), (this.defaultEncoding = e.defaultEncoding || "utf8"), (this.length = 0), (this.writing = !1), (this.corked = 0), (this.sync = !0), (this.bufferProcessing = !1), (this.onwrite = function (e) { !(function (e, t) { var n = e._writableState, r = n.sync, i = n.writecb; if ("function" != typeof i) throw new g(); if ( ((function (e) { (e.writing = !1), (e.writecb = null), (e.length -= e.writelen), (e.writelen = 0); })(n), t) ) !(function (e, t, n, r, i) { --t.pendingcb, n ? (process.nextTick(i, r), process.nextTick(A, e, t), (e._writableState.errorEmitted = !0), w(e, r)) : (i(r), (e._writableState.errorEmitted = !0), w(e, r), A(e, t)); })(e, n, r, t, i); else { var o = C(n) || e.destroyed; o || n.corked || n.bufferProcessing || !n.bufferedRequest || O(e, n), r ? process.nextTick(E, e, n, o, i) : E(e, n, o, i); } })(t, e); }), (this.writecb = null), (this.writelen = 0), (this.bufferedRequest = null), (this.lastBufferedRequest = null), (this.pendingcb = 0), (this.prefinished = !1), (this.errorEmitted = !1), (this.emitClose = !1 !== e.emitClose), (this.autoDestroy = !!e.autoDestroy), (this.bufferedRequestCount = 0), (this.corkedRequestsFree = new r(this)); } function S(e) { var t = this instanceof (i = i || n(68656)); if (!t && !c.call(S, this)) return new S(e); (this._writableState = new x(e, this, t)), (this.writable = !0), e && ("function" == typeof e.write && (this._write = e.write), "function" == typeof e.writev && (this._writev = e.writev), "function" == typeof e.destroy && (this._destroy = e.destroy), "function" == typeof e.final && (this._final = e.final)), a.call(this); } function k(e, t, n, r, i, o, a) { (t.writelen = r), (t.writecb = a), (t.writing = !0), (t.sync = !0), t.destroyed ? t.onwrite(new y("write")) : n ? e._writev(i, t.onwrite) : e._write(i, o, t.onwrite), (t.sync = !1); } function E(e, t, n, r) { n || (function (e, t) { 0 === t.length && t.needDrain && ((t.needDrain = !1), e.emit("drain")); })(e, t), t.pendingcb--, r(), A(e, t); } function O(e, t) { t.bufferProcessing = !0; var n = t.bufferedRequest; if (e._writev && n && n.next) { var i = t.bufferedRequestCount, o = new Array(i), a = t.corkedRequestsFree; a.entry = n; for (var s = 0, u = !0; n; ) (o[s] = n), n.isBuf || (u = !1), (n = n.next), (s += 1); (o.allBuffers = u), k(e, t, !0, t.length, o, "", a.finish), t.pendingcb++, (t.lastBufferedRequest = null), a.next ? ((t.corkedRequestsFree = a.next), (a.next = null)) : (t.corkedRequestsFree = new r(t)), (t.bufferedRequestCount = 0); } else { for (; n; ) { var c = n.chunk, l = n.encoding, f = n.callback; if ( (k(e, t, !1, t.objectMode ? 1 : c.length, c, l, f), (n = n.next), t.bufferedRequestCount--, t.writing) ) break; } null === n && (t.lastBufferedRequest = null); } (t.bufferedRequest = n), (t.bufferProcessing = !1); } function C(e) { return ( e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing ); } function L(e, t) { e._final(function (n) { t.pendingcb--, n && w(e, n), (t.prefinished = !0), e.emit("prefinish"), A(e, t); }); } function A(e, t) { var n = C(t); if ( n && ((function (e, t) { t.prefinished || t.finalCalled || ("function" != typeof e._final || t.destroyed ? ((t.prefinished = !0), e.emit("prefinish")) : (t.pendingcb++, (t.finalCalled = !0), process.nextTick(L, e, t))); })(e, t), 0 === t.pendingcb && ((t.finished = !0), e.emit("finish"), t.autoDestroy)) ) { var r = e._readableState; (!r || (r.autoDestroy && r.endEmitted)) && e.destroy(); } return n; } n(35717)(S, a), (x.prototype.getBuffer = function () { for (var e = this.bufferedRequest, t = []; e; ) t.push(e), (e = e.next); return t; }), (function () { try { Object.defineProperty(x.prototype, "buffer", { get: o.deprecate( function () { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003" ), }); } catch (e) {} })(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? ((c = Function.prototype[Symbol.hasInstance]), Object.defineProperty(S, Symbol.hasInstance, { value: function (e) { return ( !!c.call(this, e) || (this === S && e && e._writableState instanceof x) ); }, })) : (c = function (e) { return e instanceof this; }), (S.prototype.pipe = function () { w(this, new m()); }), (S.prototype.write = function (e, t, n) { var r, i = this._writableState, o = !1, a = !i.objectMode && ((r = e), s.isBuffer(r) || r instanceof u); return ( a && !s.isBuffer(e) && (e = (function (e) { return s.from(e); })(e)), "function" == typeof t && ((n = t), (t = null)), a ? (t = "buffer") : t || (t = i.defaultEncoding), "function" != typeof n && (n = T), i.ending ? (function (e, t) { var n = new b(); w(e, n), process.nextTick(t, n); })(this, n) : (a || (function (e, t, n, r) { var i; return ( null === n ? (i = new v()) : "string" == typeof n || t.objectMode || (i = new p("chunk", ["string", "Buffer"], n)), !i || (w(e, i), process.nextTick(r, i), !1) ); })(this, i, e, n)) && (i.pendingcb++, (o = (function (e, t, n, r, i, o) { if (!n) { var a = (function (e, t, n) { e.objectMode || !1 === e.decodeStrings || "string" != typeof t || (t = s.from(t, n)); return t; })(t, r, i); r !== a && ((n = !0), (i = "buffer"), (r = a)); } var u = t.objectMode ? 1 : r.length; t.length += u; var c = t.length < t.highWaterMark; c || (t.needDrain = !0); if (t.writing || t.corked) { var l = t.lastBufferedRequest; (t.lastBufferedRequest = { chunk: r, encoding: i, isBuf: n, callback: o, next: null, }), l ? (l.next = t.lastBufferedRequest) : (t.bufferedRequest = t.lastBufferedRequest), (t.bufferedRequestCount += 1); } else k(e, t, !1, u, r, i, o); return c; })(this, i, a, e, t, n))), o ); }), (S.prototype.cork = function () { this._writableState.corked++; }), (S.prototype.uncork = function () { var e = this._writableState; e.corked && (e.corked--, e.writing || e.corked || e.bufferProcessing || !e.bufferedRequest || O(this, e)); }), (S.prototype.setDefaultEncoding = function (e) { if ( ("string" == typeof e && (e = e.toLowerCase()), !( [ "hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw", ].indexOf((e + "").toLowerCase()) > -1 )) ) throw new _(e); return (this._writableState.defaultEncoding = e), this; }), Object.defineProperty(S.prototype, "writableBuffer", { enumerable: !1, get: function () { return this._writableState && this._writableState.getBuffer(); }, }), Object.defineProperty(S.prototype, "writableHighWaterMark", { enumerable: !1, get: function () { return this._writableState.highWaterMark; }, }), (S.prototype._write = function (e, t, n) { n(new h("_write()")); }), (S.prototype._writev = null), (S.prototype.end = function (e, t, n) { var r = this._writableState; return ( "function" == typeof e ? ((n = e), (e = null), (t = null)) : "function" == typeof t && ((n = t), (t = null)), null != e && this.write(e, t), r.corked && ((r.corked = 1), this.uncork()), r.ending || (function (e, t, n) { (t.ending = !0), A(e, t), n && (t.finished ? process.nextTick(n) : e.once("finish", n)); (t.ended = !0), (e.writable = !1); })(this, r, n), this ); }), Object.defineProperty(S.prototype, "writableLength", { enumerable: !1, get: function () { return this._writableState.length; }, }), Object.defineProperty(S.prototype, "destroyed", { enumerable: !1, get: function () { return ( void 0 !== this._writableState && this._writableState.destroyed ); }, set: function (e) { this._writableState && (this._writableState.destroyed = e); }, }), (S.prototype.destroy = l.destroy), (S.prototype._undestroy = l.undestroy), (S.prototype._destroy = function (e, t) { t(e); }); }, 20828: function (e, t, n) { "use strict"; var r; function i(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = n), e ); } var o = n(81086), a = Symbol("lastResolve"), s = Symbol("lastReject"), u = Symbol("error"), c = Symbol("ended"), l = Symbol("lastPromise"), f = Symbol("handlePromise"), d = Symbol("stream"); function p(e, t) { return { value: e, done: t }; } function h(e) { var t = e[a]; if (null !== t) { var n = e[d].read(); null !== n && ((e[l] = null), (e[a] = null), (e[s] = null), t(p(n, !1))); } } function g(e) { process.nextTick(h, e); } var m = Object.getPrototypeOf(function () {}), y = Object.setPrototypeOf( (i( (r = { get stream() { return this[d]; }, next: function () { var e = this, t = this[u]; if (null !== t) return Promise.reject(t); if (this[c]) return Promise.resolve(p(void 0, !0)); if (this[d].destroyed) return new Promise(function (t, n) { process.nextTick(function () { e[u] ? n(e[u]) : t(p(void 0, !0)); }); }); var n, r = this[l]; if (r) n = new Promise( (function (e, t) { return function (n, r) { e.then(function () { t[c] ? n(p(void 0, !0)) : t[f](n, r); }, r); }; })(r, this) ); else { var i = this[d].read(); if (null !== i) return Promise.resolve(p(i, !1)); n = new Promise(this[f]); } return (this[l] = n), n; }, }), Symbol.asyncIterator, function () { return this; } ), i(r, "return", function () { var e = this; return new Promise(function (t, n) { e[d].destroy(null, function (e) { e ? n(e) : t(p(void 0, !0)); }); }); }), r), m ); e.exports = function (e) { var t, n = Object.create( y, (i((t = {}), d, { value: e, writable: !0 }), i(t, a, { value: null, writable: !0 }), i(t, s, { value: null, writable: !0 }), i(t, u, { value: null, writable: !0 }), i(t, c, { value: e._readableState.endEmitted, writable: !0 }), i(t, f, { value: function (e, t) { var r = n[d].read(); r ? ((n[l] = null), (n[a] = null), (n[s] = null), e(p(r, !1))) : ((n[a] = e), (n[s] = t)); }, writable: !0, }), t) ); return ( (n[l] = null), o(e, function (e) { if (e && "ERR_STREAM_PREMATURE_CLOSE" !== e.code) { var t = n[s]; return ( null !== t && ((n[l] = null), (n[a] = null), (n[s] = null), t(e)), void (n[u] = e) ); } var r = n[a]; null !== r && ((n[l] = null), (n[a] = null), (n[s] = null), r(p(void 0, !0))), (n[c] = !0); }), e.on("readable", g.bind(null, n)), n ); }; }, 39686: function (e, t, n) { "use strict"; function r(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (t) { return Object.getOwnPropertyDescriptor(e, t).enumerable; })), n.push.apply(n, r); } return n; } function i(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = n), e ); } function o(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } var a = n(48764).Buffer, s = n(69862).inspect, u = (s && s.custom) || "inspect"; e.exports = (function () { function e() { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, e), (this.head = null), (this.tail = null), (this.length = 0); } var t, n, c; return ( (t = e), (n = [ { key: "push", value: function (e) { var t = { data: e, next: null }; this.length > 0 ? (this.tail.next = t) : (this.head = t), (this.tail = t), ++this.length; }, }, { key: "unshift", value: function (e) { var t = { data: e, next: this.head }; 0 === this.length && (this.tail = t), (this.head = t), ++this.length; }, }, { key: "shift", value: function () { if (0 !== this.length) { var e = this.head.data; return ( 1 === this.length ? (this.head = this.tail = null) : (this.head = this.head.next), --this.length, e ); } }, }, { key: "clear", value: function () { (this.head = this.tail = null), (this.length = 0); }, }, { key: "join", value: function (e) { if (0 === this.length) return ""; for (var t = this.head, n = "" + t.data; (t = t.next); ) n += e + t.data; return n; }, }, { key: "concat", value: function (e) { if (0 === this.length) return a.alloc(0); for ( var t, n, r, i = a.allocUnsafe(e >>> 0), o = this.head, s = 0; o; ) (t = o.data), (n = i), (r = s), a.prototype.copy.call(t, n, r), (s += o.data.length), (o = o.next); return i; }, }, { key: "consume", value: function (e, t) { var n; return ( e < this.head.data.length ? ((n = this.head.data.slice(0, e)), (this.head.data = this.head.data.slice(e))) : (n = e === this.head.data.length ? this.shift() : t ? this._getString(e) : this._getBuffer(e)), n ); }, }, { key: "first", value: function () { return this.head.data; }, }, { key: "_getString", value: function (e) { var t = this.head, n = 1, r = t.data; for (e -= r.length; (t = t.next); ) { var i = t.data, o = e > i.length ? i.length : e; if ( (o === i.length ? (r += i) : (r += i.slice(0, e)), 0 == (e -= o)) ) { o === i.length ? (++n, t.next ? (this.head = t.next) : (this.head = this.tail = null)) : ((this.head = t), (t.data = i.slice(o))); break; } ++n; } return (this.length -= n), r; }, }, { key: "_getBuffer", value: function (e) { var t = a.allocUnsafe(e), n = this.head, r = 1; for (n.data.copy(t), e -= n.data.length; (n = n.next); ) { var i = n.data, o = e > i.length ? i.length : e; if ((i.copy(t, t.length - e, 0, o), 0 == (e -= o))) { o === i.length ? (++r, n.next ? (this.head = n.next) : (this.head = this.tail = null)) : ((this.head = n), (n.data = i.slice(o))); break; } ++r; } return (this.length -= r), t; }, }, { key: u, value: function (e, t) { return s( this, (function (e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? r(Object(n), !0).forEach(function (t) { i(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, Object.getOwnPropertyDescriptors(n) ) : r(Object(n)).forEach(function (t) { Object.defineProperty( e, t, Object.getOwnPropertyDescriptor(n, t) ); }); } return e; })({}, t, { depth: 0, customInspect: !1 }) ); }, }, ]), n && o(t.prototype, n), c && o(t, c), e ); })(); }, 71029: function (e) { "use strict"; function t(e, t) { r(e, t), n(e); } function n(e) { (e._writableState && !e._writableState.emitClose) || (e._readableState && !e._readableState.emitClose) || e.emit("close"); } function r(e, t) { e.emit("error", t); } e.exports = { destroy: function (e, i) { var o = this, a = this._readableState && this._readableState.destroyed, s = this._writableState && this._writableState.destroyed; return a || s ? (i ? i(e) : e && (this._writableState ? this._writableState.errorEmitted || ((this._writableState.errorEmitted = !0), process.nextTick(r, this, e)) : process.nextTick(r, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function (e) { !i && e ? o._writableState ? o._writableState.errorEmitted ? process.nextTick(n, o) : ((o._writableState.errorEmitted = !0), process.nextTick(t, o, e)) : process.nextTick(t, o, e) : i ? (process.nextTick(n, o), i(e)) : process.nextTick(n, o); }), this); }, undestroy: function () { this._readableState && ((this._readableState.destroyed = !1), (this._readableState.reading = !1), (this._readableState.ended = !1), (this._readableState.endEmitted = !1)), this._writableState && ((this._writableState.destroyed = !1), (this._writableState.ended = !1), (this._writableState.ending = !1), (this._writableState.finalCalled = !1), (this._writableState.prefinished = !1), (this._writableState.finished = !1), (this._writableState.errorEmitted = !1)); }, errorOrDestroy: function (e, t) { var n = e._readableState, r = e._writableState; (n && n.autoDestroy) || (r && r.autoDestroy) ? e.destroy(t) : e.emit("error", t); }, }; }, 81086: function (e, t, n) { "use strict"; var r = n(58106).q.ERR_STREAM_PREMATURE_CLOSE; function i() {} e.exports = function e(t, n, o) { if ("function" == typeof n) return e(t, null, n); n || (n = {}), (o = (function (e) { var t = !1; return function () { if (!t) { t = !0; for ( var n = arguments.length, r = new Array(n), i = 0; i < n; i++ ) r[i] = arguments[i]; e.apply(this, r); } }; })(o || i)); var a = n.readable || (!1 !== n.readable && t.readable), s = n.writable || (!1 !== n.writable && t.writable), u = function () { t.writable || l(); }, c = t._writableState && t._writableState.finished, l = function () { (s = !1), (c = !0), a || o.call(t); }, f = t._readableState && t._readableState.endEmitted, d = function () { (a = !1), (f = !0), s || o.call(t); }, p = function (e) { o.call(t, e); }, h = function () { var e; return a && !f ? ((t._readableState && t._readableState.ended) || (e = new r()), o.call(t, e)) : s && !c ? ((t._writableState && t._writableState.ended) || (e = new r()), o.call(t, e)) : void 0; }, g = function () { t.req.on("finish", l); }; return ( !(function (e) { return e.setHeader && "function" == typeof e.abort; })(t) ? s && !t._writableState && (t.on("end", u), t.on("close", u)) : (t.on("complete", l), t.on("abort", h), t.req ? g() : t.on("request", g)), t.on("end", d), t.on("finish", l), !1 !== n.error && t.on("error", p), t.on("close", h), function () { t.removeListener("complete", l), t.removeListener("abort", h), t.removeListener("request", g), t.req && t.req.removeListener("finish", l), t.removeListener("end", u), t.removeListener("close", u), t.removeListener("finish", l), t.removeListener("end", d), t.removeListener("error", p), t.removeListener("close", h); } ); }; }, 31265: function (e) { e.exports = function () { throw new Error("Readable.from is not available in the browser"); }; }, 56472: function (e, t, n) { "use strict"; var r; var i = n(58106).q, o = i.ERR_MISSING_ARGS, a = i.ERR_STREAM_DESTROYED; function s(e) { if (e) throw e; } function u(e, t, i, o) { o = (function (e) { var t = !1; return function () { t || ((t = !0), e.apply(void 0, arguments)); }; })(o); var s = !1; e.on("close", function () { s = !0; }), void 0 === r && (r = n(81086)), r(e, { readable: t, writable: i }, function (e) { if (e) return o(e); (s = !0), o(); }); var u = !1; return function (t) { if (!s && !u) return ( (u = !0), (function (e) { return e.setHeader && "function" == typeof e.abort; })(e) ? e.abort() : "function" == typeof e.destroy ? e.destroy() : void o(t || new a("pipe")) ); }; } function c(e) { e(); } function l(e, t) { return e.pipe(t); } function f(e) { return e.length ? "function" != typeof e[e.length - 1] ? s : e.pop() : s; } e.exports = function () { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; var r, i = f(t); if ((Array.isArray(t[0]) && (t = t[0]), t.length < 2)) throw new o("streams"); var a = t.map(function (e, n) { var o = n < t.length - 1; return u(e, o, n > 0, function (e) { r || (r = e), e && a.forEach(c), o || (a.forEach(c), i(r)); }); }); return t.reduce(l); }; }, 30094: function (e, t, n) { "use strict"; var r = n(58106).q.ERR_INVALID_OPT_VALUE; e.exports = { getHighWaterMark: function (e, t, n, i) { var o = (function (e, t, n) { return null != e.highWaterMark ? e.highWaterMark : t ? e[n] : null; })(t, i, n); if (null != o) { if (!isFinite(o) || Math.floor(o) !== o || o < 0) throw new r(i ? n : "highWaterMark", o); return Math.floor(o); } return e.objectMode ? 16 : 16384; }, }; }, 83194: function (e, t, n) { e.exports = n(17187).EventEmitter; }, 56422: function (e, t, n) { var r = n(48764), i = r.Buffer; function o(e, t) { for (var n in e) t[n] = e[n]; } function a(e, t, n) { return i(e, t, n); } i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ? (e.exports = r) : (o(r, t), (t.Buffer = a)), (a.prototype = Object.create(i.prototype)), o(i, a), (a.from = function (e, t, n) { if ("number" == typeof e) throw new TypeError("Argument must not be a number"); return i(e, t, n); }), (a.alloc = function (e, t, n) { if ("number" != typeof e) throw new TypeError("Argument must be a number"); var r = i(e); return ( void 0 !== t ? "string" == typeof n ? r.fill(t, n) : r.fill(t) : r.fill(0), r ); }), (a.allocUnsafe = function (e) { if ("number" != typeof e) throw new TypeError("Argument must be a number"); return i(e); }), (a.allocUnsafeSlow = function (e) { if ("number" != typeof e) throw new TypeError("Argument must be a number"); return r.SlowBuffer(e); }); }, 54729: function (e, t, n) { "use strict"; var r = n(56422).Buffer, i = r.isEncoding || function (e) { switch ((e = "" + e) && e.toLowerCase()) { case "hex": case "utf8": case "utf-8": case "ascii": case "binary": case "base64": case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": case "raw": return !0; default: return !1; } }; function o(e) { var t; switch ( ((this.encoding = (function (e) { var t = (function (e) { if (!e) return "utf8"; for (var t; ; ) switch (e) { case "utf8": case "utf-8": return "utf8"; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return "utf16le"; case "latin1": case "binary": return "latin1"; case "base64": case "ascii": case "hex": return e; default: if (t) return; (e = ("" + e).toLowerCase()), (t = !0); } })(e); if ("string" != typeof t && (r.isEncoding === i || !i(e))) throw new Error("Unknown encoding: " + e); return t || e; })(e)), this.encoding) ) { case "utf16le": (this.text = u), (this.end = c), (t = 4); break; case "utf8": (this.fillLast = s), (t = 4); break; case "base64": (this.text = l), (this.end = f), (t = 3); break; default: return (this.write = d), void (this.end = p); } (this.lastNeed = 0), (this.lastTotal = 0), (this.lastChar = r.allocUnsafe(t)); } function a(e) { return e <= 127 ? 0 : e >> 5 == 6 ? 2 : e >> 4 == 14 ? 3 : e >> 3 == 30 ? 4 : e >> 6 == 2 ? -1 : -2; } function s(e) { var t = this.lastTotal - this.lastNeed, n = (function (e, t, n) { if (128 != (192 & t[0])) return (e.lastNeed = 0), "�"; if (e.lastNeed > 1 && t.length > 1) { if (128 != (192 & t[1])) return (e.lastNeed = 1), "�"; if (e.lastNeed > 2 && t.length > 2 && 128 != (192 & t[2])) return (e.lastNeed = 2), "�"; } })(this, e); return void 0 !== n ? n : this.lastNeed <= e.length ? (e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (e.copy(this.lastChar, t, 0, e.length), void (this.lastNeed -= e.length)); } function u(e, t) { if ((e.length - t) % 2 == 0) { var n = e.toString("utf16le", t); if (n) { var r = n.charCodeAt(n.length - 1); if (r >= 55296 && r <= 56319) return ( (this.lastNeed = 2), (this.lastTotal = 4), (this.lastChar[0] = e[e.length - 2]), (this.lastChar[1] = e[e.length - 1]), n.slice(0, -1) ); } return n; } return ( (this.lastNeed = 1), (this.lastTotal = 2), (this.lastChar[0] = e[e.length - 1]), e.toString("utf16le", t, e.length - 1) ); } function c(e) { var t = e && e.length ? this.write(e) : ""; if (this.lastNeed) { var n = this.lastTotal - this.lastNeed; return t + this.lastChar.toString("utf16le", 0, n); } return t; } function l(e, t) { var n = (e.length - t) % 3; return 0 === n ? e.toString("base64", t) : ((this.lastNeed = 3 - n), (this.lastTotal = 3), 1 === n ? (this.lastChar[0] = e[e.length - 1]) : ((this.lastChar[0] = e[e.length - 2]), (this.lastChar[1] = e[e.length - 1])), e.toString("base64", t, e.length - n)); } function f(e) { var t = e && e.length ? this.write(e) : ""; return this.lastNeed ? t + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t; } function d(e) { return e.toString(this.encoding); } function p(e) { return e && e.length ? this.write(e) : ""; } (t.s = o), (o.prototype.write = function (e) { if (0 === e.length) return ""; var t, n; if (this.lastNeed) { if (void 0 === (t = this.fillLast(e))) return ""; (n = this.lastNeed), (this.lastNeed = 0); } else n = 0; return n < e.length ? t ? t + this.text(e, n) : this.text(e, n) : t || ""; }), (o.prototype.end = function (e) { var t = e && e.length ? this.write(e) : ""; return this.lastNeed ? t + "�" : t; }), (o.prototype.text = function (e, t) { var n = (function (e, t, n) { var r = t.length - 1; if (r < n) return 0; var i = a(t[r]); if (i >= 0) return i > 0 && (e.lastNeed = i - 1), i; if (--r < n || -2 === i) return 0; if ((i = a(t[r])) >= 0) return i > 0 && (e.lastNeed = i - 2), i; if (--r < n || -2 === i) return 0; if ((i = a(t[r])) >= 0) return i > 0 && (2 === i ? (i = 0) : (e.lastNeed = i - 3)), i; return 0; })(this, e, t); if (!this.lastNeed) return e.toString("utf8", t); this.lastTotal = n; var r = e.length - (n - this.lastNeed); return e.copy(this.lastChar, 0, r), e.toString("utf8", t, r); }), (o.prototype.fillLast = function (e) { if (this.lastNeed <= e.length) return ( e.copy( this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed ), this.lastChar.toString(this.encoding, 0, this.lastTotal) ); e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), (this.lastNeed -= e.length); }); }, 71169: function (e) { e.exports = function (e) { return e .replace(/[A-Z]/g, function (e) { return "-" + e.toLowerCase(); }) .toLowerCase(); }; }, 32553: function (e, t, n) { "use strict"; var r = n(89509).Buffer, i = r.isEncoding || function (e) { switch ((e = "" + e) && e.toLowerCase()) { case "hex": case "utf8": case "utf-8": case "ascii": case "binary": case "base64": case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": case "raw": return !0; default: return !1; } }; function o(e) { var t; switch ( ((this.encoding = (function (e) { var t = (function (e) { if (!e) return "utf8"; for (var t; ; ) switch (e) { case "utf8": case "utf-8": return "utf8"; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return "utf16le"; case "latin1": case "binary": return "latin1"; case "base64": case "ascii": case "hex": return e; default: if (t) return; (e = ("" + e).toLowerCase()), (t = !0); } })(e); if ("string" != typeof t && (r.isEncoding === i || !i(e))) throw new Error("Unknown encoding: " + e); return t || e; })(e)), this.encoding) ) { case "utf16le": (this.text = u), (this.end = c), (t = 4); break; case "utf8": (this.fillLast = s), (t = 4); break; case "base64": (this.text = l), (this.end = f), (t = 3); break; default: return (this.write = d), void (this.end = p); } (this.lastNeed = 0), (this.lastTotal = 0), (this.lastChar = r.allocUnsafe(t)); } function a(e) { return e <= 127 ? 0 : e >> 5 == 6 ? 2 : e >> 4 == 14 ? 3 : e >> 3 == 30 ? 4 : e >> 6 == 2 ? -1 : -2; } function s(e) { var t = this.lastTotal - this.lastNeed, n = (function (e, t, n) { if (128 != (192 & t[0])) return (e.lastNeed = 0), "�"; if (e.lastNeed > 1 && t.length > 1) { if (128 != (192 & t[1])) return (e.lastNeed = 1), "�"; if (e.lastNeed > 2 && t.length > 2 && 128 != (192 & t[2])) return (e.lastNeed = 2), "�"; } })(this, e); return void 0 !== n ? n : this.lastNeed <= e.length ? (e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (e.copy(this.lastChar, t, 0, e.length), void (this.lastNeed -= e.length)); } function u(e, t) { if ((e.length - t) % 2 == 0) { var n = e.toString("utf16le", t); if (n) { var r = n.charCodeAt(n.length - 1); if (r >= 55296 && r <= 56319) return ( (this.lastNeed = 2), (this.lastTotal = 4), (this.lastChar[0] = e[e.length - 2]), (this.lastChar[1] = e[e.length - 1]), n.slice(0, -1) ); } return n; } return ( (this.lastNeed = 1), (this.lastTotal = 2), (this.lastChar[0] = e[e.length - 1]), e.toString("utf16le", t, e.length - 1) ); } function c(e) { var t = e && e.length ? this.write(e) : ""; if (this.lastNeed) { var n = this.lastTotal - this.lastNeed; return t + this.lastChar.toString("utf16le", 0, n); } return t; } function l(e, t) { var n = (e.length - t) % 3; return 0 === n ? e.toString("base64", t) : ((this.lastNeed = 3 - n), (this.lastTotal = 3), 1 === n ? (this.lastChar[0] = e[e.length - 1]) : ((this.lastChar[0] = e[e.length - 2]), (this.lastChar[1] = e[e.length - 1])), e.toString("base64", t, e.length - n)); } function f(e) { var t = e && e.length ? this.write(e) : ""; return this.lastNeed ? t + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t; } function d(e) { return e.toString(this.encoding); } function p(e) { return e && e.length ? this.write(e) : ""; } (t.s = o), (o.prototype.write = function (e) { if (0 === e.length) return ""; var t, n; if (this.lastNeed) { if (void 0 === (t = this.fillLast(e))) return ""; (n = this.lastNeed), (this.lastNeed = 0); } else n = 0; return n < e.length ? t ? t + this.text(e, n) : this.text(e, n) : t || ""; }), (o.prototype.end = function (e) { var t = e && e.length ? this.write(e) : ""; return this.lastNeed ? t + "�" : t; }), (o.prototype.text = function (e, t) { var n = (function (e, t, n) { var r = t.length - 1; if (r < n) return 0; var i = a(t[r]); if (i >= 0) return i > 0 && (e.lastNeed = i - 1), i; if (--r < n || -2 === i) return 0; if ((i = a(t[r])) >= 0) return i > 0 && (e.lastNeed = i - 2), i; if (--r < n || -2 === i) return 0; if ((i = a(t[r])) >= 0) return i > 0 && (2 === i ? (i = 0) : (e.lastNeed = i - 3)), i; return 0; })(this, e, t); if (!this.lastNeed) return e.toString("utf8", t); this.lastTotal = n; var r = e.length - (n - this.lastNeed); return e.copy(this.lastChar, 0, r), e.toString("utf8", t, r); }), (o.prototype.fillLast = function (e) { if (this.lastNeed <= e.length) return ( e.copy( this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed ), this.lastChar.toString(this.encoding, 0, this.lastTotal) ); e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), (this.lastNeed -= e.length); }); }, 5238: function (e) { e.exports = (function () { "use strict"; var e = Math.cos, t = Math.sin, n = Math.pow, r = Math.abs, i = Math.sqrt, o = Math.asin, a = Math.PI, s = Math.max, u = Math.min, c = Math.round, l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, f = function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); }, d = (function () { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } return function (t, n, r) { return n && e(t.prototype, n), r && e(t, r), t; }; })(), p = n(2, 53) - 1, h = {}; function g(e) { return null == e ? "" : "object" === (void 0 === e ? "undefined" : l(e)) || "function" == typeof e ? h[Object.prototype.toString.call(e)] || "object" : void 0 === e ? "undefined" : l(e); } function m(e) { return "number" === g(e); } function y(e) { return "string" === g(e); } function v(e) { return "function" === g(e); } function b(e) { return Array.isArray(e); } function _(e) { var t = null == e ? null : e.length; return m(t) && t >= 0 && t <= p; } function w(e) { return !b(e) && e - parseFloat(e) + 1 >= 0; } function T(e) { return !b(e) && "object" === g(e); } function x(e, t) { return e && e.hasOwnProperty(t); } function S(e, t, n) { if (null == e) return e; var r = n || e; if (T(e)) { for (var i in e) if (x(e, i) && !1 === t.call(r, e[i], i)) break; } else if (_(e)) for (var o = 0; o < e.length && !1 !== t.call(r, e[o], o); o++); return e; } function k(e) { for ( var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r]; return ( S(n, function (t) { S(t, function (t, n) { e[n] = t; }); }), e ); } function E(e) { return e.replace(/\s*/g, "") || ""; } function O(e) { "undefined" != typeof console && "function" == typeof console.error && console.error(e); try { throw new Error(e); } catch (e) {} } ["Boolean", "Number", "String", "Function", "Array", "Object"].forEach( function (e) { h["[object " + e + "]"] = e.toLowerCase(); } ); var C = !( "undefined" == typeof window || !window.document || !window.document.createElement ), L = (function () { if (!C) return !1; var e = navigator.userAgent; return ( ((-1 === e.indexOf("Android 2.") && -1 === e.indexOf("Android 4.0")) || -1 === e.indexOf("Mobile Safari") || -1 !== e.indexOf("Chrome") || -1 !== e.indexOf("Windows Phone")) && window.history && "pushState" in window.history && "file:" !== window.location.protocol ); })(), A = C ? window : null, I = C ? document : null; function M(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null; if (e) return (null == t ? I : t).querySelector(e); } function P(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null; if (e) return (null == t ? I : t).querySelectorAll(e); } function R(e, t) { for ( var n = (e.document || e.ownerDocument).querySelectorAll(t), r = n.length; --r >= 0 && n.item(r) !== e; ); return r > -1; } var D = { y: "scrollTop", x: "scrollLeft" }, j = { y: "pageYOffset", x: "pageXOffset" }; function N(e) { return e === I.documentElement || e === I.body; } function B() { var e = A.outerWidth, t = A.innerWidth; return e ? e / t : 1; } function U(e) { for ( var t = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], n = D[ arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "y" ], r = e instanceof Element ? [e] : P(e), i = [], o = I.createElement("div"), a = 0; a < r.length; a++ ) { var s = r[a]; if ( (s[n] > 0 ? i.push(s) : ((o.style.width = s.clientWidth + 1 + "px"), (o.style.height = s.clientHeight + 1 + "px"), s.appendChild(o), (s[n] = 1.5 / B()), s[n] > 0 && i.push(s), (s[n] = 0), s.removeChild(o)), !t && i.length > 0) ) break; } return i; } function F(e, t) { var n = U(e, t, !1); return n.length >= 1 ? n[0] : null; } function z(e) { return null != e && e === e.window ? e : 9 === e.nodeType && e.defaultView; } function H(e) { return s(e.scrollHeight, e.clientHeight, e.offsetHeight); } function q(e) { return s(e.scrollWidth, e.clientWidth, e.offsetWidth); } function Z(e) { return { width: q(e), height: H(e) }; } function V() { return { width: s(q(I.body), q(I.documentElement)), height: s(H(I.body), H(I.documentElement)), }; } function W(e) { return N(e) ? { viewport: { width: u(A.innerWidth, I.documentElement.clientWidth), height: A.innerHeight, }, size: V(), } : { viewport: { width: e.clientWidth, height: e.clientHeight }, size: Z(e), }; } function $(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "y", n = z(e); return n ? n[j[t]] : e[D[t]]; } function G(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "y", r = z(e), i = "y" === n; r ? r.scrollTo(i ? r[j.x] : t, i ? t : r[j.y]) : (e[D[n]] = t); } function Y(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null; if (!e || (e && !e.getClientRects().length)) return { top: 0, left: 0 }; var n = e.getBoundingClientRect(); if (n.width || n.height) { var r = {}, i = null; if (null == t || N(t)) (i = e.ownerDocument.documentElement), (r.top = A.pageYOffset), (r.left = A.pageXOffset); else { var o = (i = t).getBoundingClientRect(); (r.top = -1 * o.top + i.scrollTop), (r.left = -1 * o.left + i.scrollLeft); } return { top: n.top + r.top - i.clientTop, left: n.left + r.left - i.clientLeft, }; } return n; } function K(e, t, n) { t.split(",").forEach(function (t) { e.addEventListener(t.trim(), n, !1); }); } function X(e, t, n) { t.split(",").forEach(function (t) { e.removeEventListener(t.trim(), n, !1); }); } function Q(e) { return e; } function J(e, t, n, r, i) { return r * (t /= i) * t + n; } function ee(e, t, n, r, i) { return -r * (t /= i) * (t - 2) + n; } function te(e, t, n, r, i) { return (t /= i / 2) < 1 ? (r / 2) * t * t + n : (-r / 2) * (--t * (t - 2) - 1) + n; } function ne(e, t, n, r, i) { return r * (t /= i) * t * t + n; } function re(e, t, n, r, i) { return r * ((t = t / i - 1) * t * t + 1) + n; } function ie(e, t, n, r, i) { return (t /= i / 2) < 1 ? (r / 2) * t * t * t + n : (r / 2) * ((t -= 2) * t * t + 2) + n; } function oe(e, t, n, r, i) { return r * (t /= i) * t * t * t + n; } function ae(e, t, n, r, i) { return -r * ((t = t / i - 1) * t * t * t - 1) + n; } function se(e, t, n, r, i) { return (t /= i / 2) < 1 ? (r / 2) * t * t * t * t + n : (-r / 2) * ((t -= 2) * t * t * t - 2) + n; } function ue(e, t, n, r, i) { return r * (t /= i) * t * t * t * t + n; } function ce(e, t, n, r, i) { return r * ((t = t / i - 1) * t * t * t * t + 1) + n; } function le(e, t, n, r, i) { return (t /= i / 2) < 1 ? (r / 2) * t * t * t * t * t + n : (r / 2) * ((t -= 2) * t * t * t * t + 2) + n; } function fe(t, n, r, i, o) { return -i * e((n / o) * (a / 2)) + i + r; } function de(e, n, r, i, o) { return i * t((n / o) * (a / 2)) + r; } function pe(t, n, r, i, o) { return (-i / 2) * (e((a * n) / o) - 1) + r; } function he(e, t, r, i, o) { return 0 === t ? r : i * n(2, 10 * (t / o - 1)) + r; } function ge(e, t, r, i, o) { return t === o ? r + i : i * (1 - n(2, (-10 * t) / o)) + r; } function me(e, t, r, i, o) { return 0 === t ? r : t === o ? r + i : (t /= o / 2) < 1 ? (i / 2) * n(2, 10 * (t - 1)) + r : (i / 2) * (2 - n(2, -10 * --t)) + r; } function ye(e, t, n, r, o) { return -r * (i(1 - (t /= o) * t) - 1) + n; } function ve(e, t, n, r, o) { return r * i(1 - (t = t / o - 1) * t) + n; } function be(e, t, n, r, o) { return (t /= o / 2) < 1 ? (-r / 2) * (i(1 - t * t) - 1) + n : (r / 2) * (i(1 - (t -= 2) * t) + 1) + n; } function _e(e, i, s, u, c) { var l = 1.70158, f = 0, d = u; return 0 === i ? s : 1 == (i /= c) ? s + u : (f || (f = 0.3 * c), d < r(u) ? ((d = u), (l = f / 4)) : (l = (f / (2 * a)) * o(u / d)), -d * n(2, 10 * (i -= 1)) * t((2 * a * (i * c - l)) / f) + s); } function we(e, i, s, u, c) { var l = 1.70158, f = 0, d = u; return 0 === i ? s : 1 == (i /= c) ? s + u : (f || (f = 0.3 * c), d < r(u) ? ((d = u), (l = f / 4)) : (l = (f / (2 * a)) * o(u / d)), d * n(2, -10 * i) * t((2 * a * (i * c - l)) / f) + u + s); } function Te(e, i, s, u, c) { var l = 1.70158, f = 0, d = u; return 0 === i ? s : 2 == (i /= c / 2) ? s + u : (f || (f = c * (0.3 * 1.5)), d < r(u) ? ((d = u), (l = f / 4)) : (l = (f / (2 * a)) * o(u / d)), i < 1 ? d * n(2, 10 * (i -= 1)) * t((2 * a * (i * c - l)) / f) * -0.5 + s : d * n(2, -10 * (i -= 1)) * t((2 * a * (i * c - l)) / f) * 0.5 + u + s); } function xe(e, t, n, r, i) { var o = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : 1.70158; return r * (t /= i) * t * ((o + 1) * t - o) + n; } function Se(e, t, n, r, i) { var o = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : 1.70158; return r * ((t = t / i - 1) * t * ((o + 1) * t + o) + 1) + n; } function ke(e, t, n, r, i) { var o = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : 1.70158; return (t /= i / 2) < 1 ? (r / 2) * (t * t * ((1 + (o *= 1.525)) * t - o)) + n : (r / 2) * ((t -= 2) * t * ((1 + (o *= 1.525)) * t + o) + 2) + n; } function Ee(e, t, n, r, i) { return (t /= i) < 1 / 2.75 ? r * (7.5625 * t * t) + n : t < 2 / 2.75 ? r * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + n : t < 2.5 / 2.75 ? r * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + n : r * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + n; } function Oe(e, t, n, r, i) { return r - Ee(e, i - t, 0, r, i) + n; } function Ce(e, t, n, r, i) { return t < i / 2 ? 0.5 * Oe(e, 2 * t, 0, r, i) + n : 0.5 * Ee(e, 2 * t - i, 0, r, i) + 0.5 * r + n; } var Le = Object.freeze({ linear: Q, InQuad: J, OutQuad: ee, InOutQuad: te, InCubic: ne, OutCubic: re, InOutCubic: ie, InQuart: oe, OutQuart: ae, InOutQuart: se, InQuint: ue, OutQuint: ce, InOutQuint: le, InSine: fe, OutSine: de, InOutSine: pe, InExpo: he, OutExpo: ge, InOutExpo: me, InCirc: ye, OutCirc: ve, InOutCirc: be, InElastic: _e, OutElastic: we, InOutElastic: Te, InBack: xe, OutBack: Se, InOutBack: ke, OutBounce: Ee, InBounce: Oe, InOutBounce: Ce, }), Ae = ["ms", "moz", "webkit"], Ie = 0, Me = C ? A.requestAnimationFrame : null, Pe = C ? A.cancelAnimationFrame : null; if (C) { for (var Re = 0; Re < Ae.length && !Me; ++Re) (Me = A[Ae[Re] + "RequestAnimationFrame"]), (Pe = A[Ae[Re] + "CancelAnimationFrame"] || A[Ae[Re] + "CancelRequestAnimationFrame"]); Me || (Me = function (e) { var t = Date.now(), n = s(0, 16 - (t - Ie)), r = setTimeout(function () { e(t + n); }, n); return (Ie = t + n), r; }), Pe || (Pe = function (e) { clearTimeout(e); }); } var De = (function () { function e(t) { f(this, e), (this.el = t), (this.props = {}), (this.options = {}), (this.progress = !1), (this.easing = null), (this.startTime = null), (this.rafId = null); } return ( d(e, [ { key: "run", value: function (e, t, n) { var r = this; this.progress || ((this.props = { x: e, y: t }), (this.options = n), (this.easing = v(n.easing) ? n.easing : Le[n.easing.replace("ease", "")]), (this.progress = !0), setTimeout(function () { (r.startProps = r.calcStartProps(e, t)), (r.rafId = Me(function (e) { return r._loop(e); })); }, this.options.delay)); }, }, { key: "stop", value: function () { var e = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0], t = this.options.complete; (this.startTime = null), (this.progress = !1), Pe(this.rafId), e && (G(this.el, this.props.x, "x"), G(this.el, this.props.y, "y")), v(t) && (t.call(this), (this.options.complete = null)); }, }, { key: "_loop", value: function (e) { var t = this; if ( (this.startTime || (this.startTime = e), this.progress) ) { var n = this.el, r = this.props, i = this.options, o = this.startTime, a = this.startProps, l = this.easing, f = i.duration, d = i.step, p = {}, h = e - o, g = u(1, s(h / f, 0)); S(r, function (e, t) { var n = a[t], r = e - n; if (0 === r) return !0; var i = l(g, f * g, 0, 1, f); p[t] = c(n + r * i); }), S(p, function (e, t) { G(n, e, t); }), h <= f ? (d.call(this, g, p), (this.rafId = Me(function (e) { return t._loop(e); }))) : this.stop(!0); } else this.stop(!1); }, }, { key: "calcStartProps", value: function (e, t) { var n = { x: $(this.el, "x"), y: $(this.el, "y") }; if (this.options.quickMode) { var i = W(this.el).viewport, o = i.width, a = i.height; r(n.y - t) > a && (n.y = n.y > t ? t + a : t - a), r(n.x - e) > o && (n.x = n.x > e ? e + o : e - o); } return n; }, }, ]), e ); })(), je = (C ? "onwheel" in I ? "wheel" : "onmousewheel" in I ? "mousewheel" : "DOMMouseScroll" : "wheel") + ", touchstart, touchmove", Ne = (function () { function e() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "body, html"; f(this, e), (this.isSSR = !C), (this.options = k({}, e.defaults, t)), (this.container = this.getContainer(n)), null == this.container ? ((this.header = null), (this.tween = null), this.isSSR || (/comp|inter|loaded/.test(I.readyState) ? this.log( 'Not found scrollable container. => "' + n + '"' ) : this.log( "Should be initialize later than DOMContentLoaded." ))) : ((this.header = M(this.options.header)), (this.tween = new De(this.container)), (this._trigger = null), (this._shouldCallCancelScroll = !1), this.bindContainerClick()); } return ( d(e, [ { key: "log", value: function (e) { this.options.outputLog && O("[SweetScroll] " + e); }, }, { key: "getScrollOffset", value: function (e, t) { var n = this.container, r = this.header, i = this.parseCoodinate(t.offset), o = this.parseCoodinate(e); if (!o && y(e)) if ("#" === e) o = { top: 0, left: 0 }; else { var a = Y(M(e), n); if (!a) return; o = a; } return o ? (i && ((o.top += i.top), (o.left += i.left)), r && (o.top = s(0, o.top - Z(r).height)), o) : null; }, }, { key: "normalizeScrollOffset", value: function (e, t) { var n = this.container, r = k({}, e), i = W(n), o = i.viewport, a = i.size; return ( (r.top = t.verticalScroll ? s(0, u(a.height - o.height, r.top)) : $(n, "y")), (r.left = t.horizontalScroll ? s(0, u(a.width - o.width, r.left)) : $(n, "x")), r ); }, }, { key: "to", value: function (e) { var t = this, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (!this.isSSR) { var r = this.container, i = k({}, this.options, n), o = this._trigger, a = y(e) && /^#/.test(e) ? e : null; if ( ((this._options = i), (this._trigger = null), (this._shouldCallCancelScroll = !1), this.stop(), !r) ) return this.log("Not found container element."); var s = this.getScrollOffset(e, i); if (!s) return this.log( "Invalid parameter of distance. => " + e ); !1 !== this.hook(i, "beforeScroll", s, o) ? ((s = this.normalizeScrollOffset(s, i)), this.tween.run(s.left, s.top, { duration: i.duration, delay: i.delay, easing: i.easing, quickMode: i.quickMode, complete: function () { null != a && a !== A.location.hash && t.updateURLHash(a, i.updateURL), t.unbindContainerStop(), (t._options = null), t._shouldCallCancelScroll ? t.hook(i, "cancelScroll") : t.hook(i, "afterScroll", s, o), t.hook( i, "completeScroll", t._shouldCallCancelScroll ); }, step: function (e, n) { t.hook(i, "stepScroll", e, n); }, }), this.bindContainerStop()) : (this._options = null); } }, }, { key: "toTop", value: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; this.to( e, k({}, t, { verticalScroll: !0, horizontalScroll: !1 }) ); }, }, { key: "toLeft", value: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; this.to( e, k({}, t, { verticalScroll: !1, horizontalScroll: !0 }) ); }, }, { key: "toElement", value: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (!this.isSSR) if (e instanceof Element) { var n = Y(e, this.container); this.to(n, k({}, t)); } else this.log("Invalid parameter."); }, }, { key: "stop", value: function () { var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; this.isSSR || (this.container ? (this._stopScrollListener && (this._shouldCallCancelScroll = !0), this.tween.stop(e)) : this.log("Not found scrollable container.")); }, }, { key: "update", value: function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; this.container ? (this.stop(), this.unbindContainerClick(), this.unbindContainerStop(), (this.options = k({}, this.options, e)), (this.header = M(this.options.header)), this.bindContainerClick()) : this.isSSR || this.log("Not found scrollable container."); }, }, { key: "destroy", value: function () { this.container ? (this.stop(), this.unbindContainerClick(), this.unbindContainerStop(), (this.container = null), (this.header = null), (this.tween = null)) : this.isSSR || this.log("Not found scrollable container."); }, }, { key: "beforeScroll", value: function (e, t) { return !0; }, }, { key: "cancelScroll", value: function () {} }, { key: "afterScroll", value: function (e, t) {} }, { key: "completeScroll", value: function (e) {} }, { key: "stepScroll", value: function (e, t) {} }, { key: "parseCoodinate", value: function (e) { var t = this._options ? this._options.verticalScroll : this.options.verticalScroll, n = { top: 0, left: 0 }; if (x(e, "top") || x(e, "left")) n = k(n, e); else if (b(e)) 2 === e.length ? ((n.top = e[0]), (n.left = e[1])) : ((n.top = t ? e[0] : 0), (n.left = t ? 0 : e[0])); else if (w(e)) (n.top = t ? e : 0), (n.left = t ? 0 : e); else { if (!y(e)) return null; var r = E(e); if (/^\d+,\d+$/.test(r)) (r = r.split(",")), (n.top = r[0]), (n.left = r[1]); else if ( /^(top|left):\d+,?(?:(top|left):\d+)?$/.test(r) ) { var i = r.match(/top:(\d+)/), o = r.match(/left:(\d+)/); (n.top = i ? i[1] : 0), (n.left = o ? o[1] : 0); } else { if (!this.container || !/^(\+|-)=(\d+)$/.test(r)) return null; var a = $(this.container, t ? "y" : "x"), s = r.match(/^(\+|-)=(\d+)$/), u = s[1], c = parseInt(s[2], 10); "+" === u ? ((n.top = t ? a + c : 0), (n.left = t ? 0 : a + c)) : ((n.top = t ? a - c : 0), (n.left = t ? 0 : a - c)); } } return ( (n.top = parseInt(n.top, 10)), (n.left = parseInt(n.left, 10)), n ); }, }, { key: "updateURLHash", value: function (e, t) { !this.isSSR && L && t && A.history["replace" === t ? "replaceState" : "pushState"]( null, null, e ); }, }, { key: "getContainer", value: function (e) { var t = this.options, n = t.verticalScroll, r = t.horizontalScroll, i = null; return ( this.isSSR || (n && (i = F(e, "y")), !i && r && (i = F(e, "x"))), i ); }, }, { key: "bindContainerClick", value: function () { var e = this.container; e && ((this._containerClickListener = this.handleContainerClick.bind(this)), K(e, "click", this._containerClickListener)); }, }, { key: "unbindContainerClick", value: function () { var e = this.container; e && this._containerClickListener && (X(e, "click", this._containerClickListener), (this._containerClickListener = null)); }, }, { key: "bindContainerStop", value: function () { var e = this.container; e && ((this._stopScrollListener = this.handleStopScroll.bind(this)), K(e, je, this._stopScrollListener)); }, }, { key: "unbindContainerStop", value: function () { var e = this.container; e && this._stopScrollListener && (X(e, je, this._stopScrollListener), (this._stopScrollListener = null)); }, }, { key: "hook", value: function (e, t) { for ( var n = e[t], r = arguments.length, i = Array(r > 2 ? r - 2 : 0), o = 2; o < r; o++ ) i[o - 2] = arguments[o]; if (v(n)) { var a = n.apply(this, i); if (void 0 === a) return a; } return this[t].apply(this, i); }, }, { key: "handleStopScroll", value: function (e) { ( this._options ? this._options.stopScroll : this.options.stopScroll ) ? this.stop() : e.preventDefault(); }, }, { key: "handleContainerClick", value: function (e) { for ( var t = this.options, n = e.target; n && n !== I; n = n.parentNode ) if (R(n, t.trigger)) { var r = n.getAttribute("data-scroll"), i = this.parseDataOptions(n), o = r || n.getAttribute("href"); (t = k({}, t, i)).preventDefault && e.preventDefault(), t.stopPropagation && e.stopPropagation(), (this._trigger = n), t.horizontalScroll && t.verticalScroll ? this.to(o, t) : t.verticalScroll ? this.toTop(o, t) : t.horizontalScroll && this.toLeft(o, t); } }, }, { key: "parseDataOptions", value: function (e) { var t = e.getAttribute("data-scroll-options"); return t ? JSON.parse(t) : {}; }, }, ]), e ); })(); return ( (Ne.defaults = { trigger: "[data-scroll]", header: "[data-scroll-header]", duration: 1e3, delay: 0, easing: "easeOutQuint", offset: 0, verticalScroll: !0, horizontalScroll: !1, stopScroll: !0, updateURL: !1, preventDefault: !0, stopPropagation: !0, outputLog: !1, quickMode: !1, beforeScroll: null, afterScroll: null, cancelScroll: null, completeScroll: null, stepScroll: null, }), Ne ); })(); }, 84463: function (e, t, n) { "use strict"; function r(e) { var t, n, r, o, a, s, u = Object.create(null); if (((this[l] = u), e)) if ("string" == typeof e) for ( "?" === e.charAt(0) && (e = e.slice(1)), a = 0, s = (o = e.split("&")).length; a < s; a++ ) -1 < (t = (r = o[a]).indexOf("=")) ? d(u, p(r.slice(0, t)), p(r.slice(t + 1))) : r.length && d(u, p(r), ""); else if (i(e)) for (a = 0, s = e.length; a < s; a++) d(u, (r = e[a])[0], r[1]); else if (e.forEach) e.forEach(f, u); else for (n in e) d(u, n, e[n]); } var i = Array.isArray, o = r.prototype, a = /[!'\(\)~]|%20|%00/g, s = /\+/g, u = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0", }, c = function (e) { return u[e]; }, l = "__URLSearchParams__:" + Math.random(); function f(e, t) { d(this, t, e); } function d(e, t, n) { var r = i(n) ? n.join(",") : n; t in e ? e[t].push(r) : (e[t] = [r]); } function p(e) { return decodeURIComponent(e.replace(s, " ")); } function h(e) { return encodeURIComponent(e).replace(a, c); } (o.append = function (e, t) { d(this[l], e, t); }), (o.delete = function (e) { delete this[l][e]; }), (o.get = function (e) { var t = this[l]; return e in t ? t[e][0] : null; }), (o.getAll = function (e) { var t = this[l]; return e in t ? t[e].slice(0) : []; }), (o.has = function (e) { return e in this[l]; }), (o.set = function (e, t) { this[l][e] = ["" + t]; }), (o.forEach = function (e, t) { var n = this[l]; Object.getOwnPropertyNames(n).forEach(function (r) { n[r].forEach(function (n) { e.call(t, n, r, this); }, this); }, this); }), (o.toJSON = function () { return {}; }), (o.toString = function () { var e, t, n, r, i = this[l], o = []; for (t in i) for (n = h(t), e = 0, r = i[t]; e < r.length; e++) o.push(n + "=" + h(r[e])); return o.join("&"); }), (function (e) { var t = (function () { try { return !!Symbol.iterator; } catch (e) { return !1; } })(); "forEach" in e || (e.forEach = function (e, t) { var n = Object.create(null); this.toString() .replace(/=[\s\S]*?(?:&|$)/g, "=") .split("=") .forEach(function (r) { r.length && !(r in n) && (n[r] = this.getAll(r)).forEach(function (n) { e.call(t, n, r, this); }, this); }, this); }), "keys" in e || (e.keys = function () { var e = []; this.forEach(function (t, n) { e.push(n); }); var n = { next: function () { var t = e.shift(); return { done: void 0 === t, value: t }; }, }; return ( t && (n[Symbol.iterator] = function () { return n; }), n ); }), "values" in e || (e.values = function () { var e = []; this.forEach(function (t) { e.push(t); }); var n = { next: function () { var t = e.shift(); return { done: void 0 === t, value: t }; }, }; return ( t && (n[Symbol.iterator] = function () { return n; }), n ); }), "entries" in e || (e.entries = function () { var e = []; this.forEach(function (t, n) { e.push([n, t]); }); var n = { next: function () { var t = e.shift(); return { done: void 0 === t, value: t }; }, }; return ( t && (n[Symbol.iterator] = function () { return n; }), n ); }), t && !(Symbol.iterator in e) && (e[Symbol.iterator] = e.entries), "sort" in e || (e.sort = function () { for ( var e, t, n, r = this.entries(), i = r.next(), o = i.done, a = [], s = Object.create(null); !o; ) (t = (n = i.value)[0]), a.push(t), t in s || (s[t] = []), s[t].push(n[1]), (o = (i = r.next()).done); for (a.sort(), e = 0; e < a.length; e++) this.delete(a[e]); for (e = 0; e < a.length; e++) (t = a[e]), this.append(t, s[t].shift()); }); })((r = e.exports = n.g.URLSearchParams || r).prototype); }, 49945: function (e) { var t, n, r, i, o; (t = /^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/), (n = /^(?=([^\/?#]*))\1([^]*)$/), (r = /(?:\/|^)\.(?=\/)/g), (i = /(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g), (o = { buildAbsoluteURL: function (e, t, r) { if (((r = r || {}), (e = e.trim()), !(t = t.trim()))) { if (!r.alwaysNormalize) return e; var i = o.parseURL(e); if (!i) throw new Error("Error trying to parse base URL."); return (i.path = o.normalizePath(i.path)), o.buildURLFromParts(i); } var a = o.parseURL(t); if (!a) throw new Error("Error trying to parse relative URL."); if (a.scheme) return r.alwaysNormalize ? ((a.path = o.normalizePath(a.path)), o.buildURLFromParts(a)) : t; var s = o.parseURL(e); if (!s) throw new Error("Error trying to parse base URL."); if (!s.netLoc && s.path && "/" !== s.path[0]) { var u = n.exec(s.path); (s.netLoc = u[1]), (s.path = u[2]); } s.netLoc && !s.path && (s.path = "/"); var c = { scheme: s.scheme, netLoc: a.netLoc, path: null, params: a.params, query: a.query, fragment: a.fragment, }; if (!a.netLoc && ((c.netLoc = s.netLoc), "/" !== a.path[0])) if (a.path) { var l = s.path, f = l.substring(0, l.lastIndexOf("/") + 1) + a.path; c.path = o.normalizePath(f); } else (c.path = s.path), a.params || ((c.params = s.params), a.query || (c.query = s.query)); return ( null === c.path && (c.path = r.alwaysNormalize ? o.normalizePath(a.path) : a.path), o.buildURLFromParts(c) ); }, parseURL: function (e) { var n = t.exec(e); return n ? { scheme: n[1] || "", netLoc: n[2] || "", path: n[3] || "", params: n[4] || "", query: n[5] || "", fragment: n[6] || "", } : null; }, normalizePath: function (e) { for ( e = e.split("").reverse().join("").replace(r, ""); e.length !== (e = e.replace(i, "")).length; ); return e.split("").reverse().join(""); }, buildURLFromParts: function (e) { return ( e.scheme + e.netLoc + e.path + e.params + e.query + e.fragment ); }, }), (e.exports = o); }, 8575: function (e, t, n) { "use strict"; var r = n(74971), i = n(62502); function o() { (this.protocol = null), (this.slashes = null), (this.auth = null), (this.host = null), (this.port = null), (this.hostname = null), (this.hash = null), (this.search = null), (this.query = null), (this.pathname = null), (this.path = null), (this.href = null); } (t.parse = b), (t.resolve = function (e, t) { return b(e, !1, !0).resolve(t); }), (t.resolveObject = function (e, t) { return e ? b(e, !1, !0).resolveObject(t) : t; }), (t.format = function (e) { i.isString(e) && (e = b(e)); return e instanceof o ? e.format() : o.prototype.format.call(e); }), (t.Url = o); var a = /^([a-z0-9.+-]+:)/i, s = /:[0-9]*$/, u = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, c = ["{", "}", "|", "\\", "^", "`"].concat([ "<", ">", '"', "`", " ", "\r", "\n", "\t", ]), l = ["'"].concat(c), f = ["%", "/", "?", ";", "#"].concat(l), d = ["/", "?", "#"], p = /^[+a-z0-9A-Z_-]{0,63}$/, h = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, g = { javascript: !0, "javascript:": !0 }, m = { javascript: !0, "javascript:": !0 }, y = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0, }, v = n(17673); function b(e, t, n) { if (e && i.isObject(e) && e instanceof o) return e; var r = new o(); return r.parse(e, t, n), r; } (o.prototype.parse = function (e, t, n) { if (!i.isString(e)) throw new TypeError( "Parameter 'url' must be a string, not " + typeof e ); var o = e.indexOf("?"), s = -1 !== o && o < e.indexOf("#") ? "?" : "#", c = e.split(s); c[0] = c[0].replace(/\\/g, "/"); var b = (e = c.join(s)); if (((b = b.trim()), !n && 1 === e.split("#").length)) { var _ = u.exec(b); if (_) return ( (this.path = b), (this.href = b), (this.pathname = _[1]), _[2] ? ((this.search = _[2]), (this.query = t ? v.parse(this.search.substr(1)) : this.search.substr(1))) : t && ((this.search = ""), (this.query = {})), this ); } var w = a.exec(b); if (w) { var T = (w = w[0]).toLowerCase(); (this.protocol = T), (b = b.substr(w.length)); } if (n || w || b.match(/^\/\/[^@\/]+@[^@\/]+/)) { var x = "//" === b.substr(0, 2); !x || (w && m[w]) || ((b = b.substr(2)), (this.slashes = !0)); } if (!m[w] && (x || (w && !y[w]))) { for (var S, k, E = -1, O = 0; O < d.length; O++) { -1 !== (C = b.indexOf(d[O])) && (-1 === E || C < E) && (E = C); } -1 !== (k = -1 === E ? b.lastIndexOf("@") : b.lastIndexOf("@", E)) && ((S = b.slice(0, k)), (b = b.slice(k + 1)), (this.auth = decodeURIComponent(S))), (E = -1); for (O = 0; O < f.length; O++) { var C; -1 !== (C = b.indexOf(f[O])) && (-1 === E || C < E) && (E = C); } -1 === E && (E = b.length), (this.host = b.slice(0, E)), (b = b.slice(E)), this.parseHost(), (this.hostname = this.hostname || ""); var L = "[" === this.hostname[0] && "]" === this.hostname[this.hostname.length - 1]; if (!L) for ( var A = this.hostname.split(/\./), I = ((O = 0), A.length); O < I; O++ ) { var M = A[O]; if (M && !M.match(p)) { for (var P = "", R = 0, D = M.length; R < D; R++) M.charCodeAt(R) > 127 ? (P += "x") : (P += M[R]); if (!P.match(p)) { var j = A.slice(0, O), N = A.slice(O + 1), B = M.match(h); B && (j.push(B[1]), N.unshift(B[2])), N.length && (b = "/" + N.join(".") + b), (this.hostname = j.join(".")); break; } } } this.hostname.length > 255 ? (this.hostname = "") : (this.hostname = this.hostname.toLowerCase()), L || (this.hostname = r.toASCII(this.hostname)); var U = this.port ? ":" + this.port : "", F = this.hostname || ""; (this.host = F + U), (this.href += this.host), L && ((this.hostname = this.hostname.substr( 1, this.hostname.length - 2 )), "/" !== b[0] && (b = "/" + b)); } if (!g[T]) for (O = 0, I = l.length; O < I; O++) { var z = l[O]; if (-1 !== b.indexOf(z)) { var H = encodeURIComponent(z); H === z && (H = escape(z)), (b = b.split(z).join(H)); } } var q = b.indexOf("#"); -1 !== q && ((this.hash = b.substr(q)), (b = b.slice(0, q))); var Z = b.indexOf("?"); if ( (-1 !== Z ? ((this.search = b.substr(Z)), (this.query = b.substr(Z + 1)), t && (this.query = v.parse(this.query)), (b = b.slice(0, Z))) : t && ((this.search = ""), (this.query = {})), b && (this.pathname = b), y[T] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) ) { U = this.pathname || ""; var V = this.search || ""; this.path = U + V; } return (this.href = this.format()), this; }), (o.prototype.format = function () { var e = this.auth || ""; e && ((e = (e = encodeURIComponent(e)).replace(/%3A/i, ":")), (e += "@")); var t = this.protocol || "", n = this.pathname || "", r = this.hash || "", o = !1, a = ""; this.host ? (o = e + this.host) : this.hostname && ((o = e + (-1 === this.hostname.indexOf(":") ? this.hostname : "[" + this.hostname + "]")), this.port && (o += ":" + this.port)), this.query && i.isObject(this.query) && Object.keys(this.query).length && (a = v.stringify(this.query)); var s = this.search || (a && "?" + a) || ""; return ( t && ":" !== t.substr(-1) && (t += ":"), this.slashes || ((!t || y[t]) && !1 !== o) ? ((o = "//" + (o || "")), n && "/" !== n.charAt(0) && (n = "/" + n)) : o || (o = ""), r && "#" !== r.charAt(0) && (r = "#" + r), s && "?" !== s.charAt(0) && (s = "?" + s), t + o + (n = n.replace(/[?#]/g, function (e) { return encodeURIComponent(e); })) + (s = s.replace("#", "%23")) + r ); }), (o.prototype.resolve = function (e) { return this.resolveObject(b(e, !1, !0)).format(); }), (o.prototype.resolveObject = function (e) { if (i.isString(e)) { var t = new o(); t.parse(e, !1, !0), (e = t); } for ( var n = new o(), r = Object.keys(this), a = 0; a < r.length; a++ ) { var s = r[a]; n[s] = this[s]; } if (((n.hash = e.hash), "" === e.href)) return (n.href = n.format()), n; if (e.slashes && !e.protocol) { for (var u = Object.keys(e), c = 0; c < u.length; c++) { var l = u[c]; "protocol" !== l && (n[l] = e[l]); } return ( y[n.protocol] && n.hostname && !n.pathname && (n.path = n.pathname = "/"), (n.href = n.format()), n ); } if (e.protocol && e.protocol !== n.protocol) { if (!y[e.protocol]) { for (var f = Object.keys(e), d = 0; d < f.length; d++) { var p = f[d]; n[p] = e[p]; } return (n.href = n.format()), n; } if (((n.protocol = e.protocol), e.host || m[e.protocol])) n.pathname = e.pathname; else { for ( var h = (e.pathname || "").split("/"); h.length && !(e.host = h.shift()); ); e.host || (e.host = ""), e.hostname || (e.hostname = ""), "" !== h[0] && h.unshift(""), h.length < 2 && h.unshift(""), (n.pathname = h.join("/")); } if ( ((n.search = e.search), (n.query = e.query), (n.host = e.host || ""), (n.auth = e.auth), (n.hostname = e.hostname || e.host), (n.port = e.port), n.pathname || n.search) ) { var g = n.pathname || "", v = n.search || ""; n.path = g + v; } return ( (n.slashes = n.slashes || e.slashes), (n.href = n.format()), n ); } var b = n.pathname && "/" === n.pathname.charAt(0), _ = e.host || (e.pathname && "/" === e.pathname.charAt(0)), w = _ || b || (n.host && e.pathname), T = w, x = (n.pathname && n.pathname.split("/")) || [], S = ((h = (e.pathname && e.pathname.split("/")) || []), n.protocol && !y[n.protocol]); if ( (S && ((n.hostname = ""), (n.port = null), n.host && ("" === x[0] ? (x[0] = n.host) : x.unshift(n.host)), (n.host = ""), e.protocol && ((e.hostname = null), (e.port = null), e.host && ("" === h[0] ? (h[0] = e.host) : h.unshift(e.host)), (e.host = null)), (w = w && ("" === h[0] || "" === x[0]))), _) ) (n.host = e.host || "" === e.host ? e.host : n.host), (n.hostname = e.hostname || "" === e.hostname ? e.hostname : n.hostname), (n.search = e.search), (n.query = e.query), (x = h); else if (h.length) x || (x = []), x.pop(), (x = x.concat(h)), (n.search = e.search), (n.query = e.query); else if (!i.isNullOrUndefined(e.search)) { if (S) (n.hostname = n.host = x.shift()), (L = !!(n.host && n.host.indexOf("@") > 0) && n.host.split("@")) && ((n.auth = L.shift()), (n.host = n.hostname = L.shift())); return ( (n.search = e.search), (n.query = e.query), (i.isNull(n.pathname) && i.isNull(n.search)) || (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), (n.href = n.format()), n ); } if (!x.length) return ( (n.pathname = null), n.search ? (n.path = "/" + n.search) : (n.path = null), (n.href = n.format()), n ); for ( var k = x.slice(-1)[0], E = ((n.host || e.host || x.length > 1) && ("." === k || ".." === k)) || "" === k, O = 0, C = x.length; C >= 0; C-- ) "." === (k = x[C]) ? x.splice(C, 1) : ".." === k ? (x.splice(C, 1), O++) : O && (x.splice(C, 1), O--); if (!w && !T) for (; O--; O) x.unshift(".."); !w || "" === x[0] || (x[0] && "/" === x[0].charAt(0)) || x.unshift(""), E && "/" !== x.join("/").substr(-1) && x.push(""); var L, A = "" === x[0] || (x[0] && "/" === x[0].charAt(0)); S && ((n.hostname = n.host = A ? "" : x.length ? x.shift() : ""), (L = !!(n.host && n.host.indexOf("@") > 0) && n.host.split("@")) && ((n.auth = L.shift()), (n.host = n.hostname = L.shift()))); return ( (w = w || (n.host && x.length)) && !A && x.unshift(""), x.length ? (n.pathname = x.join("/")) : ((n.pathname = null), (n.path = null)), (i.isNull(n.pathname) && i.isNull(n.search)) || (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), (n.auth = e.auth || n.auth), (n.slashes = n.slashes || e.slashes), (n.href = n.format()), n ); }), (o.prototype.parseHost = function () { var e = this.host, t = s.exec(e); t && (":" !== (t = t[0]) && (this.port = t.substr(1)), (e = e.substr(0, e.length - t.length))), e && (this.hostname = e); }); }, 62502: function (e) { "use strict"; e.exports = { isString: function (e) { return "string" == typeof e; }, isObject: function (e) { return "object" == typeof e && null !== e; }, isNull: function (e) { return null === e; }, isNullOrUndefined: function (e) { return null == e; }, }; }, 191: function (e, t, n) { "use strict"; var r = (this && this.__read) || function (e, t) { var n = "function" == typeof Symbol && e[Symbol.iterator]; if (!n) return e; var r, i, o = n.call(e), a = []; try { for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; ) a.push(r.value); } catch (e) { i = { error: e }; } finally { try { r && !r.done && (n = o.return) && n.call(o); } finally { if (i) throw i.error; } } return a; }; Object.defineProperty(t, "__esModule", { value: !0 }); var i = n(28416); t.default = function () { var e = r(i.useState(Object.create(null)), 2)[1]; return i.useCallback( function () { e(Object.create(null)); }, [e] ); }; }, 94927: function (e, t, n) { function r(e) { try { if (!n.g.localStorage) return !1; } catch (e) { return !1; } var t = n.g.localStorage[e]; return null != t && "true" === String(t).toLowerCase(); } e.exports = function (e, t) { if (r("noDeprecation")) return e; var n = !1; return function () { if (!n) { if (r("throwDeprecation")) throw new Error(t); r("traceDeprecation") ? console.trace(t) : console.warn(t), (n = !0); } return e.apply(this, arguments); }; }; }, 28721: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return c; }, }); var r = { randomUUID: "undefined" != typeof crypto && crypto.randomUUID && crypto.randomUUID.bind(crypto), }; let i; const o = new Uint8Array(16); function a() { if ( !i && ((i = "undefined" != typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)), !i) ) throw new Error( "crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported" ); return i(o); } const s = []; for (let e = 0; e < 256; ++e) s.push((e + 256).toString(16).slice(1)); function u(e, t = 0) { return ( s[e[t + 0]] + s[e[t + 1]] + s[e[t + 2]] + s[e[t + 3]] + "-" + s[e[t + 4]] + s[e[t + 5]] + "-" + s[e[t + 6]] + s[e[t + 7]] + "-" + s[e[t + 8]] + s[e[t + 9]] + "-" + s[e[t + 10]] + s[e[t + 11]] + s[e[t + 12]] + s[e[t + 13]] + s[e[t + 14]] + s[e[t + 15]] ).toLowerCase(); } var c = function (e, t, n) { if (r.randomUUID && !t && !e) return r.randomUUID(); const i = (e = e || {}).random || (e.rng || a)(); if (((i[6] = (15 & i[6]) | 64), (i[8] = (63 & i[8]) | 128), t)) { n = n || 0; for (let e = 0; e < 16; ++e) t[n + e] = i[e]; return t; } return u(i); }; }, 90285: function (e, t, n) { "use strict"; n.r(t), n.d(t, { default: function () { return Ta; }, }); var r = n(58908), i = n.n(r), o = n(89144), a = n.n(o), s = n(27537), u = n.n(s), c = n(75974), l = n.n(c), f = n(9603), d = n.n(f), p = n(13407), h = n.n(p), g = n(49945), m = n.n(g), y = "http://example.com", v = function (e, t) { if (/^[a-z]+:/i.test(t)) return t; /^data:/.test(e) && (e = (i().location && i().location.href) || ""); var n = "function" == typeof i().URL, r = /^\/\//.test(e), o = !i().location && !/\/\//i.test(e); if ( (n ? (e = new (i().URL)(e, i().location || y)) : /\/\//i.test(e) || (e = m().buildAbsoluteURL( (i().location && i().location.href) || "", e )), n) ) { var a = new URL(t, e); return o ? a.href.slice(y.length) : r ? a.href.slice(a.protocol.length) : a.href; } return m().buildAbsoluteURL(e, t); }, b = n(87462), _ = (function () { function e() { this.listeners = {}; } var t = e.prototype; return ( (t.on = function (e, t) { this.listeners[e] || (this.listeners[e] = []), this.listeners[e].push(t); }), (t.off = function (e, t) { if (!this.listeners[e]) return !1; var n = this.listeners[e].indexOf(t); return ( (this.listeners[e] = this.listeners[e].slice(0)), this.listeners[e].splice(n, 1), n > -1 ); }), (t.trigger = function (e) { var t = this.listeners[e]; if (t) if (2 === arguments.length) for (var n = t.length, r = 0; r < n; ++r) t[r].call(this, arguments[1]); else for ( var i = Array.prototype.slice.call(arguments, 1), o = t.length, a = 0; a < o; ++a ) t[a].apply(this, i); }), (t.dispose = function () { this.listeners = {}; }), (t.pipe = function (e) { this.on("data", function (t) { e.push(t); }); }), e ); })(); function w(e) { for ( var t, n = ((t = e), i().atob ? i().atob(t) : Buffer.from(t, "base64").toString("binary")), r = new Uint8Array(n.length), o = 0; o < n.length; o++ ) r[o] = n.charCodeAt(o); return r; } class T extends _ { constructor() { super(), (this.buffer = ""); } push(e) { let t; for ( this.buffer += e, t = this.buffer.indexOf("\n"); t > -1; t = this.buffer.indexOf("\n") ) this.trigger("data", this.buffer.substring(0, t)), (this.buffer = this.buffer.substring(t + 1)); } } const x = String.fromCharCode(9), S = function (e) { const t = /([0-9.]*)?@?([0-9.]*)?/.exec(e || ""), n = {}; return ( t[1] && (n.length = parseInt(t[1], 10)), t[2] && (n.offset = parseInt(t[2], 10)), n ); }, k = function (e) { const t = {}; if (!e) return t; const n = e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')); let r, i = n.length; for (; i--; ) "" !== n[i] && ((r = /([^=]*)=(.*)/.exec(n[i]).slice(1)), (r[0] = r[0].replace(/^\s+|\s+$/g, "")), (r[1] = r[1].replace(/^\s+|\s+$/g, "")), (r[1] = r[1].replace(/^['"](.*)['"]$/g, "$1")), (t[r[0]] = r[1])); return t; }; class E extends _ { constructor() { super(), (this.customParsers = []), (this.tagMappers = []); } push(e) { let t, n; if (0 === (e = e.trim()).length) return; if ("#" !== e[0]) return void this.trigger("data", { type: "uri", uri: e }); this.tagMappers .reduce( (t, n) => { const r = n(e); return r === e ? t : t.concat([r]); }, [e] ) .forEach((e) => { for (let t = 0; t < this.customParsers.length; t++) if (this.customParsers[t].call(this, e)) return; if (0 === e.indexOf("#EXT")) if (((e = e.replace("\r", "")), (t = /^#EXTM3U/.exec(e)), t)) this.trigger("data", { type: "tag", tagType: "m3u" }); else { if (((t = /^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e)), t)) return ( (n = { type: "tag", tagType: "inf" }), t[1] && (n.duration = parseFloat(t[1])), t[2] && (n.title = t[2]), void this.trigger("data", n) ); if (((t = /^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e)), t)) return ( (n = { type: "tag", tagType: "targetduration" }), t[1] && (n.duration = parseInt(t[1], 10)), void this.trigger("data", n) ); if (((t = /^#EXT-X-VERSION:([0-9.]*)?/.exec(e)), t)) return ( (n = { type: "tag", tagType: "version" }), t[1] && (n.version = parseInt(t[1], 10)), void this.trigger("data", n) ); if (((t = /^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e)), t)) return ( (n = { type: "tag", tagType: "media-sequence" }), t[1] && (n.number = parseInt(t[1], 10)), void this.trigger("data", n) ); if ( ((t = /^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec( e )), t) ) return ( (n = { type: "tag", tagType: "discontinuity-sequence" }), t[1] && (n.number = parseInt(t[1], 10)), void this.trigger("data", n) ); if (((t = /^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e)), t)) return ( (n = { type: "tag", tagType: "playlist-type" }), t[1] && (n.playlistType = t[1]), void this.trigger("data", n) ); if (((t = /^#EXT-X-BYTERANGE:(.*)?$/.exec(e)), t)) return ( (n = (0, b.Z)(S(t[1]), { type: "tag", tagType: "byterange", })), void this.trigger("data", n) ); if (((t = /^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e)), t)) return ( (n = { type: "tag", tagType: "allow-cache" }), t[1] && (n.allowed = !/NO/.test(t[1])), void this.trigger("data", n) ); if (((t = /^#EXT-X-MAP:(.*)$/.exec(e)), t)) { if (((n = { type: "tag", tagType: "map" }), t[1])) { const e = k(t[1]); e.URI && (n.uri = e.URI), e.BYTERANGE && (n.byterange = S(e.BYTERANGE)); } this.trigger("data", n); } else if (((t = /^#EXT-X-STREAM-INF:(.*)$/.exec(e)), t)) { if (((n = { type: "tag", tagType: "stream-inf" }), t[1])) { if (((n.attributes = k(t[1])), n.attributes.RESOLUTION)) { const e = n.attributes.RESOLUTION.split("x"), t = {}; e[0] && (t.width = parseInt(e[0], 10)), e[1] && (t.height = parseInt(e[1], 10)), (n.attributes.RESOLUTION = t); } n.attributes.BANDWIDTH && (n.attributes.BANDWIDTH = parseInt( n.attributes.BANDWIDTH, 10 )), n.attributes["FRAME-RATE"] && (n.attributes["FRAME-RATE"] = parseFloat( n.attributes["FRAME-RATE"] )), n.attributes["PROGRAM-ID"] && (n.attributes["PROGRAM-ID"] = parseInt( n.attributes["PROGRAM-ID"], 10 )); } this.trigger("data", n); } else { if (((t = /^#EXT-X-MEDIA:(.*)$/.exec(e)), t)) return ( (n = { type: "tag", tagType: "media" }), t[1] && (n.attributes = k(t[1])), void this.trigger("data", n) ); if (((t = /^#EXT-X-ENDLIST/.exec(e)), t)) this.trigger("data", { type: "tag", tagType: "endlist" }); else if (((t = /^#EXT-X-DISCONTINUITY/.exec(e)), t)) this.trigger("data", { type: "tag", tagType: "discontinuity", }); else { if (((t = /^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e)), t)) return ( (n = { type: "tag", tagType: "program-date-time" }), t[1] && ((n.dateTimeString = t[1]), (n.dateTimeObject = new Date(t[1]))), void this.trigger("data", n) ); if (((t = /^#EXT-X-KEY:(.*)$/.exec(e)), t)) return ( (n = { type: "tag", tagType: "key" }), t[1] && ((n.attributes = k(t[1])), n.attributes.IV && ("0x" === n.attributes.IV.substring(0, 2).toLowerCase() && (n.attributes.IV = n.attributes.IV.substring(2)), (n.attributes.IV = n.attributes.IV.match(/.{8}/g)), (n.attributes.IV[0] = parseInt( n.attributes.IV[0], 16 )), (n.attributes.IV[1] = parseInt( n.attributes.IV[1], 16 )), (n.attributes.IV[2] = parseInt( n.attributes.IV[2], 16 )), (n.attributes.IV[3] = parseInt( n.attributes.IV[3], 16 )), (n.attributes.IV = new Uint32Array( n.attributes.IV )))), void this.trigger("data", n) ); if (((t = /^#EXT-X-START:(.*)$/.exec(e)), t)) return ( (n = { type: "tag", tagType: "start" }), t[1] && ((n.attributes = k(t[1])), (n.attributes["TIME-OFFSET"] = parseFloat( n.attributes["TIME-OFFSET"] )), (n.attributes.PRECISE = /YES/.test( n.attributes.PRECISE ))), void this.trigger("data", n) ); if (((t = /^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e)), t)) return ( (n = { type: "tag", tagType: "cue-out-cont" }), t[1] ? (n.data = t[1]) : (n.data = ""), void this.trigger("data", n) ); if (((t = /^#EXT-X-CUE-OUT:(.*)?$/.exec(e)), t)) return ( (n = { type: "tag", tagType: "cue-out" }), t[1] ? (n.data = t[1]) : (n.data = ""), void this.trigger("data", n) ); if (((t = /^#EXT-X-CUE-IN:(.*)?$/.exec(e)), t)) return ( (n = { type: "tag", tagType: "cue-in" }), t[1] ? (n.data = t[1]) : (n.data = ""), void this.trigger("data", n) ); if (((t = /^#EXT-X-SKIP:(.*)$/.exec(e)), t && t[1])) return ( (n = { type: "tag", tagType: "skip" }), (n.attributes = k(t[1])), n.attributes.hasOwnProperty("SKIPPED-SEGMENTS") && (n.attributes["SKIPPED-SEGMENTS"] = parseInt( n.attributes["SKIPPED-SEGMENTS"], 10 )), n.attributes.hasOwnProperty( "RECENTLY-REMOVED-DATERANGES" ) && (n.attributes["RECENTLY-REMOVED-DATERANGES"] = n.attributes["RECENTLY-REMOVED-DATERANGES"].split( x )), void this.trigger("data", n) ); if (((t = /^#EXT-X-PART:(.*)$/.exec(e)), t && t[1])) return ( (n = { type: "tag", tagType: "part" }), (n.attributes = k(t[1])), ["DURATION"].forEach(function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = parseFloat(n.attributes[e])); }), ["INDEPENDENT", "GAP"].forEach(function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = /YES/.test(n.attributes[e])); }), n.attributes.hasOwnProperty("BYTERANGE") && (n.attributes.byterange = S( n.attributes.BYTERANGE )), void this.trigger("data", n) ); if ( ((t = /^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e)), t && t[1]) ) return ( (n = { type: "tag", tagType: "server-control" }), (n.attributes = k(t[1])), [ "CAN-SKIP-UNTIL", "PART-HOLD-BACK", "HOLD-BACK", ].forEach(function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = parseFloat(n.attributes[e])); }), ["CAN-SKIP-DATERANGES", "CAN-BLOCK-RELOAD"].forEach( function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = /YES/.test(n.attributes[e])); } ), void this.trigger("data", n) ); if (((t = /^#EXT-X-PART-INF:(.*)$/.exec(e)), t && t[1])) return ( (n = { type: "tag", tagType: "part-inf" }), (n.attributes = k(t[1])), ["PART-TARGET"].forEach(function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = parseFloat(n.attributes[e])); }), void this.trigger("data", n) ); if ( ((t = /^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e)), t && t[1]) ) return ( (n = { type: "tag", tagType: "preload-hint" }), (n.attributes = k(t[1])), ["BYTERANGE-START", "BYTERANGE-LENGTH"].forEach( function (e) { if (n.attributes.hasOwnProperty(e)) { n.attributes[e] = parseInt(n.attributes[e], 10); const t = "BYTERANGE-LENGTH" === e ? "length" : "offset"; (n.attributes.byterange = n.attributes.byterange || {}), (n.attributes.byterange[t] = n.attributes[e]), delete n.attributes[e]; } } ), void this.trigger("data", n) ); if ( ((t = /^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e)), t && t[1]) ) return ( (n = { type: "tag", tagType: "rendition-report" }), (n.attributes = k(t[1])), ["LAST-MSN", "LAST-PART"].forEach(function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = parseInt(n.attributes[e], 10)); }), void this.trigger("data", n) ); if ( ((t = /^#EXT-X-DATERANGE:(.*)$/.exec(e)), t && t[1]) ) { (n = { type: "tag", tagType: "daterange" }), (n.attributes = k(t[1])), ["ID", "CLASS"].forEach(function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = String(n.attributes[e])); }), ["START-DATE", "END-DATE"].forEach(function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = new Date(n.attributes[e])); }), ["DURATION", "PLANNED-DURATION"].forEach(function ( e ) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = parseFloat(n.attributes[e])); }), ["END-ON-NEXT"].forEach(function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = /YES/i.test(n.attributes[e])); }), ["SCTE35-CMD", " SCTE35-OUT", "SCTE35-IN"].forEach( function (e) { n.attributes.hasOwnProperty(e) && (n.attributes[e] = n.attributes[e].toString(16)); } ); const e = /^X-([A-Z]+-)+[A-Z]+$/; for (const t in n.attributes) { if (!e.test(t)) continue; const r = /[0-9A-Fa-f]{6}/g.test(n.attributes[t]), i = /^\d+(\.\d+)?$/.test(n.attributes[t]); n.attributes[t] = r ? n.attributes[t].toString(16) : i ? parseFloat(n.attributes[t]) : String(n.attributes[t]); } this.trigger("data", n); } else this.trigger("data", { type: "tag", data: e.slice(4) }); } } } else this.trigger("data", { type: "comment", text: e.slice(1) }); }); } addParser({ expression: e, customType: t, dataParser: n, segment: r }) { "function" != typeof n && (n = (e) => e), this.customParsers.push((i) => { if (e.exec(i)) return ( this.trigger("data", { type: "custom", data: n(i), customType: t, segment: r, }), !0 ); }); } addTagMapper({ expression: e, map: t }) { this.tagMappers.push((n) => (e.test(n) ? t(n) : n)); } } const O = function (e) { const t = {}; return ( Object.keys(e).forEach(function (n) { var r; t[ ((r = n), r.toLowerCase().replace(/-(\w)/g, (e) => e[1].toUpperCase())) ] = e[n]; }), t ); }, C = function (e) { const { serverControl: t, targetDuration: n, partTargetDuration: r, } = e; if (!t) return; const i = "#EXT-X-SERVER-CONTROL", o = "holdBack", a = "partHoldBack", s = n && 3 * n, u = r && 2 * r; n && !t.hasOwnProperty(o) && ((t[o] = s), this.trigger("info", { message: `${i} defaulting HOLD-BACK to targetDuration * 3 (${s}).`, })), s && t[o] < s && (this.trigger("warn", { message: `${i} clamping HOLD-BACK (${t[o]}) to targetDuration * 3 (${s})`, }), (t[o] = s)), r && !t.hasOwnProperty(a) && ((t[a] = 3 * r), this.trigger("info", { message: `${i} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`, })), r && t[a] < u && (this.trigger("warn", { message: `${i} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${u}).`, }), (t[a] = u)); }; class L extends _ { constructor() { super(), (this.lineStream = new T()), (this.parseStream = new E()), this.lineStream.pipe(this.parseStream); const e = this, t = []; let n, r, i = {}, o = !1; const a = function () {}, s = { AUDIO: {}, VIDEO: {}, "CLOSED-CAPTIONS": {}, SUBTITLES: {} }; let u = 0; this.manifest = { allowCache: !0, discontinuityStarts: [], segments: [], }; let c = 0, l = 0; const f = {}; this.on("end", () => { i.uri || (!i.parts && !i.preloadHints) || (!i.map && n && (i.map = n), !i.key && r && (i.key = r), i.timeline || "number" != typeof u || (i.timeline = u), (this.manifest.preloadSegment = i)); }), this.parseStream.on("data", function (d) { let p, h; ({ tag() { ( ({ version() { d.version && (this.manifest.version = d.version); }, "allow-cache"() { (this.manifest.allowCache = d.allowed), "allowed" in d || (this.trigger("info", { message: "defaulting allowCache to YES", }), (this.manifest.allowCache = !0)); }, byterange() { const e = {}; "length" in d && ((i.byterange = e), (e.length = d.length), "offset" in d || (d.offset = c)), "offset" in d && ((i.byterange = e), (e.offset = d.offset)), (c = e.offset + e.length); }, endlist() { this.manifest.endList = !0; }, inf() { "mediaSequence" in this.manifest || ((this.manifest.mediaSequence = 0), this.trigger("info", { message: "defaulting media sequence to zero", })), "discontinuitySequence" in this.manifest || ((this.manifest.discontinuitySequence = 0), this.trigger("info", { message: "defaulting discontinuity sequence to zero", })), d.duration > 0 && (i.duration = d.duration), 0 === d.duration && ((i.duration = 0.01), this.trigger("info", { message: "updating zero segment duration to a small value", })), (this.manifest.segments = t); }, key() { if (d.attributes) if ("NONE" !== d.attributes.METHOD) if (d.attributes.URI) { if ( "com.apple.streamingkeydelivery" === d.attributes.KEYFORMAT ) return ( (this.manifest.contentProtection = this.manifest.contentProtection || {}), void (this.manifest.contentProtection[ "com.apple.fps.1_0" ] = { attributes: d.attributes }) ); if ( "com.microsoft.playready" === d.attributes.KEYFORMAT ) return ( (this.manifest.contentProtection = this.manifest.contentProtection || {}), void (this.manifest.contentProtection[ "com.microsoft.playready" ] = { uri: d.attributes.URI }) ); if ( "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" === d.attributes.KEYFORMAT ) { return -1 === [ "SAMPLE-AES", "SAMPLE-AES-CTR", "SAMPLE-AES-CENC", ].indexOf(d.attributes.METHOD) ? void this.trigger("warn", { message: "invalid key method provided for Widevine", }) : ("SAMPLE-AES-CENC" === d.attributes.METHOD && this.trigger("warn", { message: "SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead", }), "data:text/plain;base64," !== d.attributes.URI.substring(0, 23) ? void this.trigger("warn", { message: "invalid key URI provided for Widevine", }) : d.attributes.KEYID && "0x" === d.attributes.KEYID.substring(0, 2) ? ((this.manifest.contentProtection = this.manifest.contentProtection || {}), void (this.manifest.contentProtection[ "com.widevine.alpha" ] = { attributes: { schemeIdUri: d.attributes.KEYFORMAT, keyId: d.attributes.KEYID.substring(2), }, pssh: w( d.attributes.URI.split(",")[1] ), })) : void this.trigger("warn", { message: "invalid key ID provided for Widevine", })); } d.attributes.METHOD || this.trigger("warn", { message: "defaulting key method to AES-128", }), (r = { method: d.attributes.METHOD || "AES-128", uri: d.attributes.URI, }), void 0 !== d.attributes.IV && (r.iv = d.attributes.IV); } else this.trigger("warn", { message: "ignoring key declaration without URI", }); else r = null; else this.trigger("warn", { message: "ignoring key declaration without attribute list", }); }, "media-sequence"() { isFinite(d.number) ? (this.manifest.mediaSequence = d.number) : this.trigger("warn", { message: "ignoring invalid media sequence: " + d.number, }); }, "discontinuity-sequence"() { isFinite(d.number) ? ((this.manifest.discontinuitySequence = d.number), (u = d.number)) : this.trigger("warn", { message: "ignoring invalid discontinuity sequence: " + d.number, }); }, "playlist-type"() { /VOD|EVENT/.test(d.playlistType) ? (this.manifest.playlistType = d.playlistType) : this.trigger("warn", { message: "ignoring unknown playlist type: " + d.playlist, }); }, map() { (n = {}), d.uri && (n.uri = d.uri), d.byterange && (n.byterange = d.byterange), r && (n.key = r); }, "stream-inf"() { (this.manifest.playlists = t), (this.manifest.mediaGroups = this.manifest.mediaGroups || s), d.attributes ? (i.attributes || (i.attributes = {}), (0, b.Z)(i.attributes, d.attributes)) : this.trigger("warn", { message: "ignoring empty stream-inf attributes", }); }, media() { if ( ((this.manifest.mediaGroups = this.manifest.mediaGroups || s), !( d.attributes && d.attributes.TYPE && d.attributes["GROUP-ID"] && d.attributes.NAME )) ) return void this.trigger("warn", { message: "ignoring incomplete or missing media group", }); const e = this.manifest.mediaGroups[d.attributes.TYPE]; (e[d.attributes["GROUP-ID"]] = e[d.attributes["GROUP-ID"]] || {}), (p = e[d.attributes["GROUP-ID"]]), (h = { default: /yes/i.test(d.attributes.DEFAULT) }), h.default ? (h.autoselect = !0) : (h.autoselect = /yes/i.test( d.attributes.AUTOSELECT )), d.attributes.LANGUAGE && (h.language = d.attributes.LANGUAGE), d.attributes.URI && (h.uri = d.attributes.URI), d.attributes["INSTREAM-ID"] && (h.instreamId = d.attributes["INSTREAM-ID"]), d.attributes.CHARACTERISTICS && (h.characteristics = d.attributes.CHARACTERISTICS), d.attributes.FORCED && (h.forced = /yes/i.test(d.attributes.FORCED)), (p[d.attributes.NAME] = h); }, discontinuity() { (u += 1), (i.discontinuity = !0), this.manifest.discontinuityStarts.push(t.length); }, "program-date-time"() { void 0 === this.manifest.dateTimeString && ((this.manifest.dateTimeString = d.dateTimeString), (this.manifest.dateTimeObject = d.dateTimeObject)), (i.dateTimeString = d.dateTimeString), (i.dateTimeObject = d.dateTimeObject); }, targetduration() { !isFinite(d.duration) || d.duration < 0 ? this.trigger("warn", { message: "ignoring invalid target duration: " + d.duration, }) : ((this.manifest.targetDuration = d.duration), C.call(this, this.manifest)); }, start() { d.attributes && !isNaN(d.attributes["TIME-OFFSET"]) ? (this.manifest.start = { timeOffset: d.attributes["TIME-OFFSET"], precise: d.attributes.PRECISE, }) : this.trigger("warn", { message: "ignoring start declaration without appropriate attribute list", }); }, "cue-out"() { i.cueOut = d.data; }, "cue-out-cont"() { i.cueOutCont = d.data; }, "cue-in"() { i.cueIn = d.data; }, skip() { (this.manifest.skip = O(d.attributes)), this.warnOnMissingAttributes_( "#EXT-X-SKIP", d.attributes, ["SKIPPED-SEGMENTS"] ); }, part() { o = !0; const e = this.manifest.segments.length, t = O(d.attributes); (i.parts = i.parts || []), i.parts.push(t), t.byterange && (t.byterange.hasOwnProperty("offset") || (t.byterange.offset = l), (l = t.byterange.offset + t.byterange.length)); const n = i.parts.length - 1; this.warnOnMissingAttributes_( `#EXT-X-PART #${n} for segment #${e}`, d.attributes, ["URI", "DURATION"] ), this.manifest.renditionReports && this.manifest.renditionReports.forEach((e, t) => { e.hasOwnProperty("lastPart") || this.trigger("warn", { message: `#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`, }); }); }, "server-control"() { const e = (this.manifest.serverControl = O( d.attributes )); e.hasOwnProperty("canBlockReload") || ((e.canBlockReload = !1), this.trigger("info", { message: "#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false", })), C.call(this, this.manifest), e.canSkipDateranges && !e.hasOwnProperty("canSkipUntil") && this.trigger("warn", { message: "#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set", }); }, "preload-hint"() { const e = this.manifest.segments.length, t = O(d.attributes), n = t.type && "PART" === t.type; (i.preloadHints = i.preloadHints || []), i.preloadHints.push(t), t.byterange && (t.byterange.hasOwnProperty("offset") || ((t.byterange.offset = n ? l : 0), n && (l = t.byterange.offset + t.byterange.length))); const r = i.preloadHints.length - 1; if ( (this.warnOnMissingAttributes_( `#EXT-X-PRELOAD-HINT #${r} for segment #${e}`, d.attributes, ["TYPE", "URI"] ), t.type) ) for (let n = 0; n < i.preloadHints.length - 1; n++) { const o = i.preloadHints[n]; o.type && o.type === t.type && this.trigger("warn", { message: `#EXT-X-PRELOAD-HINT #${r} for segment #${e} has the same TYPE ${t.type} as preload hint #${n}`, }); } }, "rendition-report"() { const e = O(d.attributes); (this.manifest.renditionReports = this.manifest.renditionReports || []), this.manifest.renditionReports.push(e); const t = this.manifest.renditionReports.length - 1, n = ["LAST-MSN", "URI"]; o && n.push("LAST-PART"), this.warnOnMissingAttributes_( `#EXT-X-RENDITION-REPORT #${t}`, d.attributes, n ); }, "part-inf"() { (this.manifest.partInf = O(d.attributes)), this.warnOnMissingAttributes_( "#EXT-X-PART-INF", d.attributes, ["PART-TARGET"] ), this.manifest.partInf.partTarget && (this.manifest.partTargetDuration = this.manifest.partInf.partTarget), C.call(this, this.manifest); }, daterange() { (this.manifest.daterange = this.manifest.daterange || []), this.manifest.daterange.push(O(d.attributes)); const e = this.manifest.daterange.length - 1; this.warnOnMissingAttributes_( `#EXT-X-DATERANGE #${e}`, d.attributes, ["ID", "START-DATE"] ); const t = this.manifest.daterange[e]; t.endDate && t.startDate && new Date(t.endDate) < new Date(t.startDate) && this.trigger("warn", { message: "EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE", }), t.duration && t.duration < 0 && this.trigger("warn", { message: "EXT-X-DATERANGE DURATION must not be negative", }), t.plannedDuration && t.plannedDuration < 0 && this.trigger("warn", { message: "EXT-X-DATERANGE PLANNED-DURATION must not be negative", }); const n = !!t.endOnNext; if ( (n && !t.class && this.trigger("warn", { message: "EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute", }), n && (t.duration || t.endDate) && this.trigger("warn", { message: "EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes", }), t.duration && t.endDate) ) { const n = t.startDate, r = n.setSeconds(n.getSeconds() + t.duration); this.manifest.daterange[e].endDate = new Date(r); } if ( (t && !this.manifest.dateTimeString && this.trigger("warn", { message: "A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag", }), f[t.id]) ) { for (const e in f[t.id]) if (f[t.id][e] !== t[e]) { this.trigger("warn", { message: "EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes and same attribute values", }); break; } } else f[t.id] = t; }, })[d.tagType] || a ).call(e); }, uri() { (i.uri = d.uri), t.push(i), this.manifest.targetDuration && !("duration" in i) && (this.trigger("warn", { message: "defaulting segment duration to the target duration", }), (i.duration = this.manifest.targetDuration)), r && (i.key = r), (i.timeline = u), n && (i.map = n), (l = 0), (i = {}); }, comment() {}, custom() { d.segment ? ((i.custom = i.custom || {}), (i.custom[d.customType] = d.data)) : ((this.manifest.custom = this.manifest.custom || {}), (this.manifest.custom[d.customType] = d.data)); }, })[d.type].call(e); }); } warnOnMissingAttributes_(e, t, n) { const r = []; n.forEach(function (e) { t.hasOwnProperty(e) || r.push(e); }), r.length && this.trigger("warn", { message: `${e} lacks required attribute(s): ${r.join(", ")}`, }); } push(e) { this.lineStream.push(e); } end() { this.lineStream.push("\n"), this.trigger("end"); } addParser(e) { this.parseStream.addParser(e); } addTagMapper(e) { this.parseStream.addTagMapper(e); } } var A, I, M = { mp4: /^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/, webm: /^(vp0?[89]|av0?1|opus|vorbis)/, ogg: /^(vp0?[89]|theora|flac|opus|vorbis)/, video: /^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/, audio: /^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/, text: /^(stpp.ttml.im1t)/, muxerVideo: /^(avc0?1)/, muxerAudio: /^(mp4a)/, muxerText: /a^/, }, P = ["video", "audio", "text"], R = ["Video", "Audio", "Text"], D = function (e) { return e ? e.replace(/avc1\.(\d+)\.(\d+)/i, function (e, t, n) { return ( "avc1." + ("00" + Number(t).toString(16)).slice(-2) + "00" + ("00" + Number(n).toString(16)).slice(-2) ); }) : e; }, j = function (e) { void 0 === e && (e = ""); var t = e.split(","), n = []; return ( t.forEach(function (e) { var t; (e = e.trim()), P.forEach(function (r) { var i = M[r].exec(e.toLowerCase()); if (i && !(i.length <= 1)) { t = r; var o = e.substring(0, i[1].length), a = e.replace(o, ""); n.push({ type: o, details: a, mediaType: r }); } }), t || n.push({ type: e, details: "", mediaType: "unknown" }); }), n ); }, N = function (e) { return void 0 === e && (e = ""), M.audio.test(e.trim().toLowerCase()); }, B = function (e) { if (e && "string" == typeof e) { var t, n = e .toLowerCase() .split(",") .map(function (e) { return D(e.trim()); }), r = "video"; 1 === n.length && N(n[0]) ? (r = "audio") : 1 === n.length && (void 0 === (t = n[0]) && (t = ""), M.text.test(t.trim().toLowerCase())) && (r = "application"); var i = "mp4"; return ( n.every(function (e) { return M.mp4.test(e); }) ? (i = "mp4") : n.every(function (e) { return M.webm.test(e); }) ? (i = "webm") : n.every(function (e) { return M.ogg.test(e); }) && (i = "ogg"), r + "/" + i + ';codecs="' + e + '"' ); } }, U = function (e) { return ( void 0 === e && (e = ""), (i().MediaSource && i().MediaSource.isTypeSupported && i().MediaSource.isTypeSupported(B(e))) || !1 ); }, F = function (e) { return ( void 0 === e && (e = ""), e .toLowerCase() .split(",") .every(function (e) { e = e.trim(); for (var t = 0; t < R.length; t++) { if (M["muxer" + R[t]].test(e)) return !0; } return !1; }) ); }, z = "mp4a.40.2", H = /^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i, q = /^application\/dash\+xml/i, Z = function (e) { return H.test(e) ? "hls" : q.test(e) ? "dash" : "application/vnd.videojs.vhs+json" === e ? "vhs-json" : null; }, V = function (e) { return "function" === ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer; }, W = function (e) { return e instanceof Uint8Array ? e : (Array.isArray(e) || V(e) || e instanceof ArrayBuffer || (e = "number" != typeof e || ("number" == typeof e && e != e) ? 0 : [e]), new Uint8Array( (e && e.buffer) || e, (e && e.byteOffset) || 0, (e && e.byteLength) || 0 )); }, $ = i().BigInt || Number, G = [ $("0x1"), $("0x100"), $("0x10000"), $("0x1000000"), $("0x100000000"), $("0x10000000000"), $("0x1000000000000"), $("0x100000000000000"), $("0x10000000000000000"), ], Y = ((A = new Uint16Array([65484])), 255 === (I = new Uint8Array(A.buffer, A.byteOffset, A.byteLength))[0] || I[0], function (e, t) { var n = void 0 === t ? {} : t, r = n.signed, i = void 0 !== r && r, o = n.le, a = void 0 !== o && o; e = W(e); var s = a ? "reduce" : "reduceRight", u = (e[s] ? e[s] : Array.prototype[s]).call( e, function (t, n, r) { var i = a ? r : Math.abs(r + 1 - e.length); return t + $(n) * G[i]; }, $(0) ); if (i) { var c = G[e.length] / $(2) - $(1); (u = $(u)) > c && ((u -= c), (u -= c), (u -= $(2))); } return Number(u); }), K = function (e, t) { var n = (void 0 === t ? {} : t).le, r = void 0 !== n && n; (("bigint" != typeof e && "number" != typeof e) || ("number" == typeof e && e != e)) && (e = 0), (e = $(e)); for ( var i, o = ((i = e), Math.ceil( (function (e) { return e.toString(2).length; })(i) / 8 )), a = new Uint8Array(new ArrayBuffer(o)), s = 0; s < o; s++ ) { var u = r ? s : Math.abs(s + 1 - a.length); (a[u] = Number((e / G[s]) & $(255))), e < 0 && ((a[u] = Math.abs(~a[u])), (a[u] -= 0 === s ? 1 : 2)); } return a; }, X = function (e, t) { if ( ("string" != typeof e && e && "function" == typeof e.toString && (e = e.toString()), "string" != typeof e) ) return new Uint8Array(); t || (e = unescape(encodeURIComponent(e))); for (var n = new Uint8Array(e.length), r = 0; r < e.length; r++) n[r] = e.charCodeAt(r); return n; }, Q = function (e, t, n) { var r = void 0 === n ? {} : n, i = r.offset, o = void 0 === i ? 0 : i, a = r.mask, s = void 0 === a ? [] : a; e = W(e); var u = (t = W(t)).every ? t.every : Array.prototype.every; return ( t.length && e.length - o >= t.length && u.call(t, function (t, n) { return t === (s[n] ? s[n] & e[o + n] : e[o + n]); }) ); }, J = "http://example.com", ee = function (e, t) { if (/^[a-z]+:/i.test(t)) return t; /^data:/.test(e) && (e = (i().location && i().location.href) || ""); var n = "function" == typeof i().URL, r = /^\/\//.test(e), o = !i().location && !/\/\//i.test(e); if ( (n ? (e = new (i().URL)(e, i().location || J)) : /\/\//i.test(e) || (e = m().buildAbsoluteURL( (i().location && i().location.href) || "", e )), n) ) { var a = new URL(t, e); return o ? a.href.slice(J.length) : r ? a.href.slice(a.protocol.length) : a.href; } return m().buildAbsoluteURL(e, t); }, te = n(3969); const ne = (e) => !!e && "object" == typeof e, re = (...e) => e.reduce( (e, t) => ( "object" != typeof t || Object.keys(t).forEach((n) => { Array.isArray(e[n]) && Array.isArray(t[n]) ? (e[n] = e[n].concat(t[n])) : ne(e[n]) && ne(t[n]) ? (e[n] = re(e[n], t[n])) : (e[n] = t[n]); }), e ), {} ), ie = (e) => Object.keys(e).map((t) => e[t]), oe = (e) => e.reduce((e, t) => e.concat(t), []), ae = (e) => { if (!e.length) return []; const t = []; for (let n = 0; n < e.length; n++) t.push(e[n]); return t; }; var se = "INVALID_NUMBER_OF_PERIOD", ue = "DASH_EMPTY_MANIFEST", ce = "DASH_INVALID_XML", le = "NO_BASE_URL", fe = "SEGMENT_TIME_UNSPECIFIED", de = "UNSUPPORTED_UTC_TIMING_SCHEME"; const pe = ({ baseUrl: e = "", source: t = "", range: n = "", indexRange: r = "", }) => { const o = { uri: t, resolvedUri: ee(e || "", t) }; if (n || r) { const e = (n || r).split("-"); let t, a = i().BigInt ? i().BigInt(e[0]) : parseInt(e[0], 10), s = i().BigInt ? i().BigInt(e[1]) : parseInt(e[1], 10); a < Number.MAX_SAFE_INTEGER && "bigint" == typeof a && (a = Number(a)), s < Number.MAX_SAFE_INTEGER && "bigint" == typeof s && (s = Number(s)), (t = "bigint" == typeof s || "bigint" == typeof a ? i().BigInt(s) - i().BigInt(a) + i().BigInt(1) : s - a + 1), "bigint" == typeof t && t < Number.MAX_SAFE_INTEGER && (t = Number(t)), (o.byterange = { length: t, offset: a }); } return o; }, he = (e) => ( e && "number" != typeof e && (e = parseInt(e, 10)), isNaN(e) ? null : e ), ge = { static(e) { const { duration: t, timescale: n = 1, sourceDuration: r, periodDuration: i, } = e, o = he(e.endNumber), a = t / n; return "number" == typeof o ? { start: 0, end: o } : "number" == typeof i ? { start: 0, end: i / a } : { start: 0, end: r / a }; }, dynamic(e) { const { NOW: t, clientOffset: n, availabilityStartTime: r, timescale: i = 1, duration: o, periodStart: a = 0, minimumUpdatePeriod: s = 0, timeShiftBufferDepth: u = 1 / 0, } = e, c = he(e.endNumber), l = (t + n) / 1e3, f = r + a, d = l + s - f, p = Math.ceil((d * i) / o), h = Math.floor(((l - f - u) * i) / o), g = Math.floor(((l - f) * i) / o); return { start: Math.max(0, h), end: "number" == typeof c ? c : Math.min(p, g), }; }, }, me = (e) => { const { type: t, duration: n, timescale: r = 1, periodDuration: i, sourceDuration: o, } = e, { start: a, end: s } = ge[t](e), u = ((e, t) => { const n = []; for (let r = e; r < t; r++) n.push(r); return n; })(a, s).map( ((e) => (t) => { const { duration: n, timescale: r = 1, periodStart: i, startNumber: o = 1, } = e; return { number: o + t, duration: n / r, timeline: i, time: t * n, }; })(e) ); if ("static" === t) { const e = u.length - 1, t = "number" == typeof i ? i : o; u[e].duration = t - (n / r) * e; } return u; }, ye = (e) => { const { baseUrl: t, initialization: n = {}, sourceDuration: r, indexRange: i = "", periodStart: o, presentationTime: a, number: s = 0, duration: u, } = e; if (!t) throw new Error(le); const c = pe({ baseUrl: t, source: n.sourceURL, range: n.range }), l = pe({ baseUrl: t, source: t, indexRange: i }); if (((l.map = c), u)) { const t = me(e); t.length && ((l.duration = t[0].duration), (l.timeline = t[0].timeline)); } else r && ((l.duration = r), (l.timeline = o)); return (l.presentationTime = a || o), (l.number = s), [l]; }, ve = (e, t, n) => { const r = e.sidx.map ? e.sidx.map : null, o = e.sidx.duration, a = e.timeline || 0, s = e.sidx.byterange, u = s.offset + s.length, c = t.timescale, l = t.references.filter((e) => 1 !== e.referenceType), f = [], d = e.endList ? "static" : "dynamic", p = e.sidx.timeline; let h, g = p, m = e.mediaSequence || 0; h = "bigint" == typeof t.firstOffset ? i().BigInt(u) + t.firstOffset : u + t.firstOffset; for (let e = 0; e < l.length; e++) { const s = t.references[e], u = s.referencedSize, l = s.subsegmentDuration; let y; y = "bigint" == typeof h ? h + i().BigInt(u) - i().BigInt(1) : h + u - 1; const v = ye({ baseUrl: n, timescale: c, timeline: a, periodStart: p, presentationTime: g, number: m, duration: l, sourceDuration: o, indexRange: `${h}-${y}`, type: d, })[0]; r && (v.map = r), f.push(v), (h += "bigint" == typeof h ? i().BigInt(u) : u), (g += l / c), m++; } return (e.segments = f), e; }, be = ["AUDIO", "SUBTITLES"], _e = (e) => { return ((t = e), (n = ({ timeline: e }) => e), ie( t.reduce( (e, t) => ( t.forEach((t) => { e[n(t)] = t; }), e ), {} ) )).sort((e, t) => (e.timeline > t.timeline ? 1 : -1)); var t, n; }, we = (e) => { let t = []; var n, r; return ( (n = e), (r = (e, n, r, i) => { t = t.concat(e.playlists || []); }), be.forEach(function (e) { for (var t in n.mediaGroups[e]) for (var i in n.mediaGroups[e][t]) { var o = n.mediaGroups[e][t][i]; r(o, e, t, i); } }), t ); }, Te = ({ playlist: e, mediaSequence: t }) => { (e.mediaSequence = t), e.segments.forEach((t, n) => { t.number = e.mediaSequence + n; }); }, xe = ({ oldManifest: e, newManifest: t }) => { const n = e.playlists.concat(we(e)), r = t.playlists.concat(we(t)); return ( (t.timelineStarts = _e([e.timelineStarts, t.timelineStarts])), (({ oldPlaylists: e, newPlaylists: t, timelineStarts: n }) => { t.forEach((t) => { t.discontinuitySequence = n.findIndex(function ({ timeline: e, }) { return e === t.timeline; }); const r = ((e, t) => { for (let n = 0; n < e.length; n++) if (e[n].attributes.NAME === t) return e[n]; return null; })(e, t.attributes.NAME); if (!r) return; if (t.sidx) return; const i = t.segments[0], o = r.segments.findIndex(function (e) { return ( Math.abs(e.presentationTime - i.presentationTime) < 0.016666666666666666 ); }); if (-1 === o) return ( Te({ playlist: t, mediaSequence: r.mediaSequence + r.segments.length, }), (t.segments[0].discontinuity = !0), t.discontinuityStarts.unshift(0), void ( ((!r.segments.length && t.timeline > r.timeline) || (r.segments.length && t.timeline > r.segments[r.segments.length - 1].timeline)) && t.discontinuitySequence-- ) ); r.segments[o].discontinuity && !i.discontinuity && ((i.discontinuity = !0), t.discontinuityStarts.unshift(0), t.discontinuitySequence--), Te({ playlist: t, mediaSequence: r.segments[o].number }); }); })({ oldPlaylists: n, newPlaylists: r, timelineStarts: t.timelineStarts, }), t ); }, Se = (e) => e && e.uri + "-" + ((e) => { let t; return ( (t = "bigint" == typeof e.offset || "bigint" == typeof e.length ? i().BigInt(e.offset) + i().BigInt(e.length) - i().BigInt(1) : e.offset + e.length - 1), `${e.offset}-${t}` ); })(e.byterange), ke = (e) => ie( e.reduce((e, t) => { const n = t.attributes.id + (t.attributes.lang || ""); return ( e[n] ? (t.segments && (t.segments[0] && (t.segments[0].discontinuity = !0), e[n].segments.push(...t.segments)), t.attributes.contentProtection && (e[n].attributes.contentProtection = t.attributes.contentProtection)) : ((e[n] = t), (e[n].attributes.timelineStarts = [])), e[n].attributes.timelineStarts.push({ start: t.attributes.periodStart, timeline: t.attributes.periodStart, }), e ); }, {}) ).map((e) => { var t, n; return ( (e.discontinuityStarts = ((t = e.segments || []), (n = "discontinuity"), t.reduce((e, t, r) => (t[n] && e.push(r), e), []))), e ); }), Ee = (e, t) => { const n = Se(e.sidx), r = n && t[n] && t[n].sidx; return r && ve(e, r, e.sidx.resolvedUri), e; }, Oe = (e, t = {}) => { if (!Object.keys(t).length) return e; for (const n in e) e[n] = Ee(e[n], t); return e; }, Ce = ({ attributes: e, segments: t, sidx: n, discontinuityStarts: r, }) => { const i = { attributes: { NAME: e.id, AUDIO: "audio", SUBTITLES: "subs", RESOLUTION: { width: e.width, height: e.height }, CODECS: e.codecs, BANDWIDTH: e.bandwidth, "PROGRAM-ID": 1, }, uri: "", endList: "static" === e.type, timeline: e.periodStart, resolvedUri: "", targetDuration: e.duration, discontinuityStarts: r, timelineStarts: e.timelineStarts, segments: t, }; return ( e.frameRate && (i.attributes["FRAME-RATE"] = e.frameRate), e.contentProtection && (i.contentProtection = e.contentProtection), n && (i.sidx = n), i ); }, Le = ({ attributes: e }) => "video/mp4" === e.mimeType || "video/webm" === e.mimeType || "video" === e.contentType, Ae = ({ attributes: e }) => "audio/mp4" === e.mimeType || "audio/webm" === e.mimeType || "audio" === e.contentType, Ie = ({ attributes: e }) => "text/vtt" === e.mimeType || "text" === e.contentType, Me = (e) => e ? Object.keys(e).reduce((t, n) => { const r = e[n]; return t.concat(r.playlists); }, []) : [], Pe = ({ dashPlaylists: e, locations: t, sidxMapping: n = {}, previousManifest: r, eventStream: i, }) => { if (!e.length) return {}; const { sourceDuration: o, type: a, suggestedPresentationDelay: s, minimumUpdatePeriod: u, } = e[0].attributes, c = ke(e.filter(Le)).map(Ce), l = ke(e.filter(Ae)), f = ke(e.filter(Ie)), d = e.map((e) => e.attributes.captionServices).filter(Boolean), p = { allowCache: !0, discontinuityStarts: [], segments: [], endList: !0, mediaGroups: { AUDIO: {}, VIDEO: {}, "CLOSED-CAPTIONS": {}, SUBTITLES: {}, }, uri: "", duration: o, playlists: Oe(c, n), }; u >= 0 && (p.minimumUpdatePeriod = 1e3 * u), t && (p.locations = t), "dynamic" === a && (p.suggestedPresentationDelay = s), i && i.length > 0 && (p.eventStream = i); const h = 0 === p.playlists.length, g = l.length ? ((e, t = {}, n = !1) => { let r; const i = e.reduce((e, i) => { const o = (i.attributes.role && i.attributes.role.value) || "", a = i.attributes.lang || ""; let s = i.attributes.label || "main"; if (a && !i.attributes.label) { const e = o ? ` (${o})` : ""; s = `${i.attributes.lang}${e}`; } e[s] || (e[s] = { language: a, autoselect: !0, default: "main" === o, playlists: [], uri: "", }); const u = Ee( (( { attributes: e, segments: t, sidx: n, mediaSequence: r, discontinuitySequence: i, discontinuityStarts: o, }, a ) => { const s = { attributes: { NAME: e.id, BANDWIDTH: e.bandwidth, CODECS: e.codecs, "PROGRAM-ID": 1, }, uri: "", endList: "static" === e.type, timeline: e.periodStart, resolvedUri: "", targetDuration: e.duration, discontinuitySequence: i, discontinuityStarts: o, timelineStarts: e.timelineStarts, mediaSequence: r, segments: t, }; return ( e.contentProtection && (s.contentProtection = e.contentProtection), n && (s.sidx = n), a && ((s.attributes.AUDIO = "audio"), (s.attributes.SUBTITLES = "subs")), s ); })(i, n), t ); return ( e[s].playlists.push(u), void 0 === r && "main" === o && ((r = i), (r.default = !0)), e ); }, {}); r || (i[Object.keys(i)[0]].default = !0); return i; })(l, n, h) : null, m = f.length ? ((e, t = {}) => e.reduce((e, n) => { const r = n.attributes.label || n.attributes.lang || "text"; return ( e[r] || (e[r] = { language: r, default: !1, autoselect: !1, playlists: [], uri: "", }), e[r].playlists.push( Ee( (({ attributes: e, segments: t, mediaSequence: n, discontinuityStarts: r, discontinuitySequence: i, }) => { void 0 === t && ((t = [ { uri: e.baseUrl, timeline: e.periodStart, resolvedUri: e.baseUrl || "", duration: e.sourceDuration, number: 0, }, ]), (e.duration = e.sourceDuration)); const o = { NAME: e.id, BANDWIDTH: e.bandwidth, "PROGRAM-ID": 1, }; return ( e.codecs && (o.CODECS = e.codecs), { attributes: o, uri: "", endList: "static" === e.type, timeline: e.periodStart, resolvedUri: e.baseUrl || "", targetDuration: e.duration, timelineStarts: e.timelineStarts, discontinuityStarts: r, discontinuitySequence: i, mediaSequence: n, segments: t, } ); })(n), t ) ), e ); }, {}))(f, n) : null, y = c.concat(Me(g), Me(m)), v = y.map(({ timelineStarts: e }) => e); var b, _; return ( (p.timelineStarts = _e(v)), (b = y), (_ = p.timelineStarts), b.forEach((e) => { (e.mediaSequence = 0), (e.discontinuitySequence = _.findIndex(function ({ timeline: t, }) { return t === e.timeline; })), e.segments && e.segments.forEach((e, t) => { e.number = t; }); }), g && (p.mediaGroups.AUDIO.audio = g), m && (p.mediaGroups.SUBTITLES.subs = m), d.length && (p.mediaGroups["CLOSED-CAPTIONS"].cc = d.reduce( (e, t) => t ? (t.forEach((t) => { const { channel: n, language: r } = t; (e[r] = { autoselect: !1, default: !1, instreamId: n, language: r, }), t.hasOwnProperty("aspectRatio") && (e[r].aspectRatio = t.aspectRatio), t.hasOwnProperty("easyReader") && (e[r].easyReader = t.easyReader), t.hasOwnProperty("3D") && (e[r]["3D"] = t["3D"]); }), e) : e, {} )), r ? xe({ oldManifest: r, newManifest: p }) : p ); }, Re = (e, t, n) => { const { NOW: r, clientOffset: i, availabilityStartTime: o, timescale: a = 1, periodStart: s = 0, minimumUpdatePeriod: u = 0, } = e, c = (r + i) / 1e3 + u - (o + s); return Math.ceil((c * a - t) / n); }, De = (e, t) => { const { type: n, minimumUpdatePeriod: r = 0, media: i = "", sourceDuration: o, timescale: a = 1, startNumber: s = 1, periodStart: u, } = e, c = []; let l = -1; for (let f = 0; f < t.length; f++) { const d = t[f], p = d.d, h = d.r || 0, g = d.t || 0; let m; if ((l < 0 && (l = g), g && g > l && (l = g), h < 0)) { const s = f + 1; m = s === t.length ? "dynamic" === n && r > 0 && i.indexOf("$Number$") > 0 ? Re(e, l, p) : (o * a - l) / p : (t[s].t - l) / p; } else m = h + 1; const y = s + c.length + m; let v = s + c.length; for (; v < y; ) c.push({ number: v, duration: p / a, time: l, timeline: u }), (l += p), v++; } return c; }, je = /\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g, Ne = (e, t) => e.replace( je, ((e) => (t, n, r, i) => { if ("$$" === t) return "$"; if (void 0 === e[n]) return t; const o = "" + e[n]; return "RepresentationID" === n ? o : ((i = r ? parseInt(i, 10) : 1), o.length >= i ? o : `${new Array(i - o.length + 1).join("0")}${o}`); })(t) ), Be = (e, t) => { const n = { RepresentationID: e.id, Bandwidth: e.bandwidth || 0 }, { initialization: r = { sourceURL: "", range: "" } } = e, i = pe({ baseUrl: e.baseUrl, source: Ne(r.sourceURL, n), range: r.range, }), o = ((e, t) => e.duration || t ? e.duration ? me(e) : De(e, t) : [ { number: e.startNumber || 1, duration: e.sourceDuration, time: 0, timeline: e.periodStart, }, ])(e, t); return o.map((t) => { (n.Number = t.number), (n.Time = t.time); const r = Ne(e.media || "", n), o = e.timescale || 1, a = e.presentationTimeOffset || 0, s = e.periodStart + (t.time - a) / o; return { uri: r, timeline: t.timeline, duration: t.duration, resolvedUri: ee(e.baseUrl || "", r), map: i, number: t.number, presentationTime: s, }; }); }, Ue = (e, t) => { const { duration: n, segmentUrls: r = [], periodStart: i } = e; if ((!n && !t) || (n && t)) throw new Error(fe); const o = r.map((t) => ((e, t) => { const { baseUrl: n, initialization: r = {} } = e, i = pe({ baseUrl: n, source: r.sourceURL, range: r.range }), o = pe({ baseUrl: n, source: t.media, range: t.mediaRange }); return (o.map = i), o; })(e, t) ); let a; n && (a = me(e)), t && (a = De(e, t)); return a .map((t, n) => { if (o[n]) { const r = o[n], a = e.timescale || 1, s = e.presentationTimeOffset || 0; return ( (r.timeline = t.timeline), (r.duration = t.duration), (r.number = t.number), (r.presentationTime = i + (t.time - s) / a), r ); } }) .filter((e) => e); }, Fe = ({ attributes: e, segmentInfo: t }) => { let n, r; t.template ? ((r = Be), (n = re(e, t.template))) : t.base ? ((r = ye), (n = re(e, t.base))) : t.list && ((r = Ue), (n = re(e, t.list))); const i = { attributes: e }; if (!r) return i; const o = r(n, t.segmentTimeline); if (n.duration) { const { duration: e, timescale: t = 1 } = n; n.duration = e / t; } else o.length ? (n.duration = o.reduce( (e, t) => Math.max(e, Math.ceil(t.duration)), 0 )) : (n.duration = 0); return ( (i.attributes = n), (i.segments = o), t.base && n.indexRange && ((i.sidx = o[0]), (i.segments = [])), i ); }, ze = (e, t) => ae(e.childNodes).filter(({ tagName: e }) => e === t), He = (e) => e.textContent.trim(), qe = (e) => { const t = /P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec( e ); if (!t) return 0; const [n, r, i, o, a, s] = t.slice(1); return ( 31536e3 * parseFloat(n || 0) + 2592e3 * parseFloat(r || 0) + 86400 * parseFloat(i || 0) + 3600 * parseFloat(o || 0) + 60 * parseFloat(a || 0) + parseFloat(s || 0) ); }, Ze = { mediaPresentationDuration: (e) => qe(e), availabilityStartTime(e) { return ( /^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test((t = e)) && (t += "Z"), Date.parse(t) / 1e3 ); var t; }, minimumUpdatePeriod: (e) => qe(e), suggestedPresentationDelay: (e) => qe(e), type: (e) => e, timeShiftBufferDepth: (e) => qe(e), start: (e) => qe(e), width: (e) => parseInt(e, 10), height: (e) => parseInt(e, 10), bandwidth: (e) => parseInt(e, 10), frameRate: (e) => ((e) => parseFloat(e.split("/").reduce((e, t) => e / t)))(e), startNumber: (e) => parseInt(e, 10), timescale: (e) => parseInt(e, 10), presentationTimeOffset: (e) => parseInt(e, 10), duration(e) { const t = parseInt(e, 10); return isNaN(t) ? qe(e) : t; }, d: (e) => parseInt(e, 10), t: (e) => parseInt(e, 10), r: (e) => parseInt(e, 10), presentationTime: (e) => parseInt(e, 10), DEFAULT: (e) => e, }, Ve = (e) => e && e.attributes ? ae(e.attributes).reduce((e, t) => { const n = Ze[t.name] || Ze.DEFAULT; return (e[t.name] = n(t.value)), e; }, {}) : {}, We = { "urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b": "org.w3.clearkey", "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed": "com.widevine.alpha", "urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95": "com.microsoft.playready", "urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb": "com.adobe.primetime", }, $e = (e, t) => t.length ? oe( e.map(function (e) { return t.map(function (t) { return ee(e, He(t)); }); }) ) : e, Ge = (e) => { const t = ze(e, "SegmentTemplate")[0], n = ze(e, "SegmentList")[0], r = n && ze(n, "SegmentURL").map((e) => re({ tag: "SegmentURL" }, Ve(e))), i = ze(e, "SegmentBase")[0], o = n || t, a = o && ze(o, "SegmentTimeline")[0], s = n || i || t, u = s && ze(s, "Initialization")[0], c = t && Ve(t); c && u ? (c.initialization = u && Ve(u)) : c && c.initialization && (c.initialization = { sourceURL: c.initialization }); const l = { template: c, segmentTimeline: a && ze(a, "S").map((e) => Ve(e)), list: n && re(Ve(n), { segmentUrls: r, initialization: Ve(u) }), base: i && re(Ve(i), { initialization: Ve(u) }), }; return ( Object.keys(l).forEach((e) => { l[e] || delete l[e]; }), l ); }, Ye = (e) => oe( ze(e.node, "EventStream").map((t) => { const n = Ve(t), r = n.schemeIdUri; return ze(t, "Event").map((t) => { const i = Ve(t), o = i.presentationTime || 0, a = n.timescale || 1, s = i.duration || 0, u = o / a + e.attributes.start; return { schemeIdUri: r, value: n.value, id: i.id, start: u, end: u + s / a, messageData: He(t) || i.messageData, contentEncoding: n.contentEncoding, presentationTimeOffset: n.presentationTimeOffset || 0, }; }); }) ), Ke = (e, t, n) => (r) => { const i = Ve(r), o = $e(t, ze(r, "BaseURL")), a = ze(r, "Role")[0], s = { role: Ve(a) }; let u = re(e, i, s); const c = ze(r, "Accessibility")[0], l = ((e) => { if ("urn:scte:dash:cc:cea-608:2015" === e.schemeIdUri) return ( "string" != typeof e.value ? [] : e.value.split(";") ).map((e) => { let t, n; return ( (n = e), /^CC\d=/.test(e) ? ([t, n] = e.split("=")) : /^CC\d$/.test(e) && (t = e), { channel: t, language: n } ); }); if ("urn:scte:dash:cc:cea-708:2015" === e.schemeIdUri) return ( "string" != typeof e.value ? [] : e.value.split(";") ).map((e) => { const t = { channel: void 0, language: void 0, aspectRatio: 1, easyReader: 0, "3D": 0, }; if (/=/.test(e)) { const [n, r = ""] = e.split("="); (t.channel = n), (t.language = e), r.split(",").forEach((e) => { const [n, r] = e.split(":"); "lang" === n ? (t.language = r) : "er" === n ? (t.easyReader = Number(r)) : "war" === n ? (t.aspectRatio = Number(r)) : "3D" === n && (t["3D"] = Number(r)); }); } else t.language = e; return t.channel && (t.channel = "SERVICE" + t.channel), t; }); })(Ve(c)); l && (u = re(u, { captionServices: l })); const f = ze(r, "Label")[0]; if (f && f.childNodes.length) { const e = f.childNodes[0].nodeValue.trim(); u = re(u, { label: e }); } const d = ze(r, "ContentProtection").reduce((e, t) => { const n = Ve(t); n.schemeIdUri && (n.schemeIdUri = n.schemeIdUri.toLowerCase()); const r = We[n.schemeIdUri]; if (r) { e[r] = { attributes: n }; const i = ze(t, "cenc:pssh")[0]; if (i) { const t = He(i); e[r].pssh = t && w(t); } } return e; }, {}); Object.keys(d).length && (u = re(u, { contentProtection: d })); const p = Ge(r), h = ze(r, "Representation"), g = re(n, p); return oe( h.map( ((e, t, n) => (r) => { const i = ze(r, "BaseURL"), o = $e(t, i), a = re(e, Ve(r)), s = Ge(r); return o.map((e) => ({ segmentInfo: re(n, s), attributes: re(a, { baseUrl: e }), })); })(u, o, g) ) ); }, Xe = (e, t) => (n, r) => { const i = $e(t, ze(n.node, "BaseURL")), o = re(e, { periodStart: n.attributes.start }); "number" == typeof n.attributes.duration && (o.periodDuration = n.attributes.duration); const a = ze(n.node, "AdaptationSet"), s = Ge(n.node); return oe(a.map(Ke(o, i, s))); }, Qe = (e) => { if ("" === e) throw new Error(ue); const t = new te.DOMParser(); let n, r; try { (n = t.parseFromString(e, "application/xml")), (r = n && "MPD" === n.documentElement.tagName ? n.documentElement : null); } catch (e) {} if (!r || (r && r.getElementsByTagName("parsererror").length > 0)) throw new Error(ce); return r; }, Je = (e, t = {}) => { const n = ((e, t = {}) => { const { manifestUri: n = "", NOW: r = Date.now(), clientOffset: i = 0, } = t, o = ze(e, "Period"); if (!o.length) throw new Error(se); const a = ze(e, "Location"), s = Ve(e), u = $e([n], ze(e, "BaseURL")); (s.type = s.type || "static"), (s.sourceDuration = s.mediaPresentationDuration || 0), (s.NOW = r), (s.clientOffset = i), a.length && (s.locations = a.map(He)); const c = []; return ( o.forEach((e, t) => { const n = Ve(e), r = c[t - 1]; (n.start = (({ attributes: e, priorPeriodAttributes: t, mpdType: n, }) => "number" == typeof e.start ? e.start : t && "number" == typeof t.start && "number" == typeof t.duration ? t.start + t.duration : t || "static" !== n ? null : 0)({ attributes: n, priorPeriodAttributes: r ? r.attributes : null, mpdType: s.type, })), c.push({ node: e, attributes: n }); }), { locations: s.locations, representationInfo: oe(c.map(Xe(s, u))), eventStream: oe(c.map(Ye)), } ); })(Qe(e), t), r = n.representationInfo.map(Fe); return Pe({ dashPlaylists: r, locations: n.locations, sidxMapping: t.sidxMapping, previousManifest: t.previousManifest, eventStream: n.eventStream, }); }, et = (e) => ((e) => { const t = ze(e, "UTCTiming")[0]; if (!t) return null; const n = Ve(t); switch (n.schemeIdUri) { case "urn:mpeg:dash:utc:http-head:2014": case "urn:mpeg:dash:utc:http-head:2012": n.method = "HEAD"; break; case "urn:mpeg:dash:utc:http-xsdate:2014": case "urn:mpeg:dash:utc:http-iso:2014": case "urn:mpeg:dash:utc:http-xsdate:2012": case "urn:mpeg:dash:utc:http-iso:2012": n.method = "GET"; break; case "urn:mpeg:dash:utc:direct:2014": case "urn:mpeg:dash:utc:direct:2012": (n.method = "DIRECT"), (n.value = Date.parse(n.value)); break; default: throw new Error(de); } return n; })(Qe(e)); var tt, nt = n(84221), rt = n.n(nt), it = W([73, 68, 51]), ot = function e(t, n) { return ( void 0 === n && (n = 0), (t = W(t)).length - n < 10 || !Q(t, it, { offset: n }) ? n : ((n += (function (e, t) { void 0 === t && (t = 0); var n = (e = W(e))[t + 5], r = (e[t + 6] << 21) | (e[t + 7] << 14) | (e[t + 8] << 7) | e[t + 9]; return (16 & n) >> 4 ? r + 20 : r + 10; })(t, n)), e(t, n)) ); }, at = (new Uint8Array([79, 112, 117, 115, 72, 101, 97, 100]), function (e) { return "string" == typeof e ? X(e) : e; }), st = function (e) { e = W(e); for (var t = [], n = 0; e.length > n; ) { var r = e[n], i = 0, o = 0, a = e[++o]; for (o++; 128 & a; ) (i = (127 & a) << 7), (a = e[o]), o++; i += 127 & a; for (var s = 0; s < tt.length; s++) { var u = tt[s], c = u.id, l = u.parser; if (r === c) { t.push(l(e.subarray(o, o + i))); break; } } n += i + o; } return t; }; tt = [ { id: 3, parser: function (e) { var t = { tag: 3, id: (e[0] << 8) | e[1], flags: e[2], size: 3, dependsOnEsId: 0, ocrEsId: 0, descriptors: [], url: "", }; if ( (128 & t.flags && ((t.dependsOnEsId = (e[t.size] << 8) | e[t.size + 1]), (t.size += 2)), 64 & t.flags) ) { var n = e[t.size]; (t.url = (function (e) { if (!e) return ""; e = Array.prototype.slice.call(e); var t = String.fromCharCode.apply(null, W(e)); try { return decodeURIComponent(escape(t)); } catch (e) {} return t; })(e.subarray(t.size + 1, t.size + 1 + n))), (t.size += n); } return ( 32 & t.flags && ((t.ocrEsId = (e[t.size] << 8) | e[t.size + 1]), (t.size += 2)), (t.descriptors = st(e.subarray(t.size)) || []), t ); }, }, { id: 4, parser: function (e) { return { tag: 4, oti: e[0], streamType: e[1], bufferSize: (e[2] << 16) | (e[3] << 8) | e[4], maxBitrate: (e[5] << 24) | (e[6] << 16) | (e[7] << 8) | e[8], avgBitrate: (e[9] << 24) | (e[10] << 16) | (e[11] << 8) | e[12], descriptors: st(e.subarray(13)), }; }, }, { id: 5, parser: function (e) { return { tag: 5, bytes: e }; }, }, { id: 6, parser: function (e) { return { tag: 6, bytes: e }; }, }, ]; var ut = function e(t, n, r) { void 0 === r && (r = !1), (n = (function (e) { return Array.isArray(e) ? e.map(function (e) { return at(e); }) : [at(e)]; })(n)), (t = W(t)); var i = []; if (!n.length) return i; for (var o = 0; o < t.length; ) { var a = ((t[o] << 24) | (t[o + 1] << 16) | (t[o + 2] << 8) | t[o + 3]) >>> 0, s = t.subarray(o + 4, o + 8); if (0 === a) break; var u = o + a; if (u > t.length) { if (r) break; u = t.length; } var c = t.subarray(o + 8, u); Q(s, n[0]) && (1 === n.length ? i.push(c) : i.push.apply(i, e(c, n.slice(1), r))), (o = u); } return i; }, ct = { EBML: W([26, 69, 223, 163]), DocType: W([66, 130]), Segment: W([24, 83, 128, 103]), SegmentInfo: W([21, 73, 169, 102]), Tracks: W([22, 84, 174, 107]), Track: W([174]), TrackNumber: W([215]), DefaultDuration: W([35, 227, 131]), TrackEntry: W([174]), TrackType: W([131]), FlagDefault: W([136]), CodecID: W([134]), CodecPrivate: W([99, 162]), VideoTrack: W([224]), AudioTrack: W([225]), Cluster: W([31, 67, 182, 117]), Timestamp: W([231]), TimestampScale: W([42, 215, 177]), BlockGroup: W([160]), BlockDuration: W([155]), Block: W([161]), SimpleBlock: W([163]), }, lt = [128, 64, 32, 16, 8, 4, 2, 1], ft = function (e, t, n, r) { void 0 === n && (n = !0), void 0 === r && (r = !1); var i = (function (e) { for (var t = 1, n = 0; n < lt.length && !(e & lt[n]); n++) t++; return t; })(e[t]), o = e.subarray(t, t + i); return ( n && ((o = Array.prototype.slice.call(e, t, t + i))[0] ^= lt[i - 1]), { length: i, value: Y(o, { signed: r }), bytes: o } ); }, dt = function e(t) { return "string" == typeof t ? t.match(/.{1,2}/g).map(function (t) { return e(t); }) : "number" == typeof t ? K(t) : t; }, pt = function e(t, n, r) { if (r >= n.length) return n.length; var i = ft(n, r, !1); if (Q(t.bytes, i.bytes)) return r; var o = ft(n, r + i.length); return e(t, n, r + o.length + o.value + i.length); }, ht = function e(t, n) { (n = (function (e) { return Array.isArray(e) ? e.map(function (e) { return dt(e); }) : [dt(e)]; })(n)), (t = W(t)); var r = []; if (!n.length) return r; for (var i = 0; i < t.length; ) { var o = ft(t, i, !1), a = ft(t, i + o.length), s = i + o.length + a.length; 127 === a.value && ((a.value = pt(o, t, s)), a.value !== t.length && (a.value -= s)); var u = s + a.value > t.length ? t.length : s + a.value, c = t.subarray(s, u); Q(n[0], o.bytes) && (1 === n.length ? r.push(c) : (r = r.concat(e(c, n.slice(1))))), (i += o.length + a.length + c.length); } return r; }, gt = W([0, 0, 0, 1]), mt = W([0, 0, 1]), yt = W([0, 0, 3]), vt = function (e) { for (var t = [], n = 1; n < e.length - 2; ) Q(e.subarray(n, n + 3), yt) && (t.push(n + 2), n++), n++; if (0 === t.length) return e; var r = e.length - t.length, i = new Uint8Array(r), o = 0; for (n = 0; n < r; o++, n++) o === t[0] && (o++, t.shift()), (i[n] = e[o]); return i; }, bt = function (e, t, n, r) { void 0 === r && (r = 1 / 0), (e = W(e)), (n = [].concat(n)); for (var i, o = 0, a = 0; o < e.length && (a < r || i); ) { var s = void 0; if ( (Q(e.subarray(o), gt) ? (s = 4) : Q(e.subarray(o), mt) && (s = 3), s) ) { if ((a++, i)) return vt(e.subarray(i, o)); var u = void 0; "h264" === t ? (u = 31 & e[o + s]) : "h265" === t && (u = (e[o + s] >> 1) & 63), -1 !== n.indexOf(u) && (i = o + s), (o += s + ("h264" === t ? 1 : 2)); } else o++; } return e.subarray(0, 0); }, _t = { webm: W([119, 101, 98, 109]), matroska: W([109, 97, 116, 114, 111, 115, 107, 97]), flac: W([102, 76, 97, 67]), ogg: W([79, 103, 103, 83]), ac3: W([11, 119]), riff: W([82, 73, 70, 70]), avi: W([65, 86, 73]), wav: W([87, 65, 86, 69]), "3gp": W([102, 116, 121, 112, 51, 103]), mp4: W([102, 116, 121, 112]), fmp4: W([115, 116, 121, 112]), mov: W([102, 116, 121, 112, 113, 116]), moov: W([109, 111, 111, 118]), moof: W([109, 111, 111, 102]), }, wt = { aac: function (e) { var t = ot(e); return Q(e, [255, 16], { offset: t, mask: [255, 22] }); }, mp3: function (e) { var t = ot(e); return Q(e, [255, 2], { offset: t, mask: [255, 6] }); }, webm: function (e) { var t = ht(e, [ct.EBML, ct.DocType])[0]; return Q(t, _t.webm); }, mkv: function (e) { var t = ht(e, [ct.EBML, ct.DocType])[0]; return Q(t, _t.matroska); }, mp4: function (e) { return ( !wt["3gp"](e) && !wt.mov(e) && (!( !Q(e, _t.mp4, { offset: 4 }) && !Q(e, _t.fmp4, { offset: 4 }) ) || !( !Q(e, _t.moof, { offset: 4 }) && !Q(e, _t.moov, { offset: 4 }) ) || void 0) ); }, mov: function (e) { return Q(e, _t.mov, { offset: 4 }); }, "3gp": function (e) { return Q(e, _t["3gp"], { offset: 4 }); }, ac3: function (e) { var t = ot(e); return Q(e, _t.ac3, { offset: t }); }, ts: function (e) { if (e.length < 189 && e.length >= 1) return 71 === e[0]; for (var t = 0; t + 188 < e.length && t < 188; ) { if (71 === e[t] && 71 === e[t + 188]) return !0; t += 1; } return !1; }, flac: function (e) { var t = ot(e); return Q(e, _t.flac, { offset: t }); }, ogg: function (e) { return Q(e, _t.ogg); }, avi: function (e) { return Q(e, _t.riff) && Q(e, _t.avi, { offset: 8 }); }, wav: function (e) { return Q(e, _t.riff) && Q(e, _t.wav, { offset: 8 }); }, h264: function (e) { return (function (e, t, n) { return bt(e, "h264", t, n); })(e, 7, 3).length; }, h265: function (e) { return (function (e, t, n) { return bt(e, "h265", t, n); })(e, [32, 33], 3).length; }, }, Tt = Object.keys(wt) .filter(function (e) { return "ts" !== e && "h264" !== e && "h265" !== e; }) .concat(["ts", "h264", "h265"]); Tt.forEach(function (e) { var t = wt[e]; wt[e] = function (e) { return t(W(e)); }; }); var xt = wt, St = function (e) { e = W(e); for (var t = 0; t < Tt.length; t++) { var n = Tt[t]; if (xt[n](e)) return n; } return ""; }, kt = n(51489), Et = "8.3.0"; const Ot = {}, Ct = function (e, t) { return (Ot[e] = Ot[e] || []), t && (Ot[e] = Ot[e].concat(t)), Ot[e]; }, Lt = function (e, t) { const n = Ct(e).indexOf(t); return ( !(n <= -1) && ((Ot[e] = Ot[e].slice()), Ot[e].splice(n, 1), !0) ); }, At = { prefixed: !0 }, It = [ [ "requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror", "fullscreen", ], [ "webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror", "-webkit-full-screen", ], [ "mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror", "-moz-full-screen", ], [ "msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError", "-ms-fullscreen", ], ], Mt = It[0]; let Pt; for (let e = 0; e < It.length; e++) if (It[e][1] in a()) { Pt = It[e]; break; } if (Pt) { for (let e = 0; e < Pt.length; e++) At[Mt[e]] = Pt[e]; At.prefixed = Pt[0] !== Mt[0]; } let Rt = []; const Dt = (function e(t) { let n, r = "info"; const o = function (...e) { n("log", r, e); }; return ( (n = ((e, t) => (n, r, o) => { const a = t.levels[r], s = new RegExp(`^(${a})$`); if ( ("log" !== n && o.unshift(n.toUpperCase() + ":"), o.unshift(e + ":"), Rt) ) { Rt.push([].concat(o)); const e = Rt.length - 1e3; Rt.splice(0, e > 0 ? e : 0); } if (!i().console) return; let u = i().console[n]; u || "debug" !== n || (u = i().console.info || i().console.log), u && a && s.test(n) && u[Array.isArray(o) ? "apply" : "call"](i().console, o); })(t, o)), (o.createLogger = (n) => e(t + ": " + n)), (o.levels = { all: "debug|log|warn|error", off: "", debug: "debug|log|warn|error", info: "log|warn|error", warn: "warn|error", error: "error", DEFAULT: r, }), (o.level = (e) => { if ("string" == typeof e) { if (!o.levels.hasOwnProperty(e)) throw new Error(`"${e}" in not a valid log level`); r = e; } return r; }), ((o.history = () => (Rt ? [].concat(Rt) : [])).filter = (e) => (Rt || []).filter((t) => new RegExp(`.*${e}.*`).test(t[0]))), (o.history.clear = () => { Rt && (Rt.length = 0); }), (o.history.disable = () => { null !== Rt && ((Rt.length = 0), (Rt = null)); }), (o.history.enable = () => { null === Rt && (Rt = []); }), (o.error = (...e) => n("error", r, e)), (o.warn = (...e) => n("warn", r, e)), (o.debug = (...e) => n("debug", r, e)), o ); })("VIDEOJS"), jt = Dt.createLogger, Nt = Object.prototype.toString, Bt = function (e) { return zt(e) ? Object.keys(e) : []; }; function Ut(e, t) { Bt(e).forEach((n) => t(e[n], n)); } function Ft(e, t, n = 0) { return Bt(e).reduce((n, r) => t(n, e[r], r), n); } function zt(e) { return !!e && "object" == typeof e; } function Ht(e) { return ( zt(e) && "[object Object]" === Nt.call(e) && e.constructor === Object ); } function qt(...e) { const t = {}; return ( e.forEach((e) => { e && Ut(e, (e, n) => { Ht(e) ? (Ht(t[n]) || (t[n] = {}), (t[n] = qt(t[n], e))) : (t[n] = e); }); }), t ); } function Zt(e, t, n, r = !0) { const i = (n) => Object.defineProperty(e, t, { value: n, enumerable: !0, writable: !0, }), o = { configurable: !0, enumerable: !0, get() { const e = n(); return i(e), e; }, }; return r && (o.set = i), Object.defineProperty(e, t, o); } var Vt = Object.freeze({ __proto__: null, each: Ut, reduce: Ft, isObject: zt, isPlain: Ht, merge: qt, defineLazyProperty: Zt, }); let Wt, $t = !1, Gt = null, Yt = !1, Kt = !1, Xt = !1, Qt = !1, Jt = !1, en = null, tn = null, nn = null, rn = !1, on = !1, an = !1, sn = !1; const un = Boolean( hn() && ("ontouchstart" in i() || i().navigator.maxTouchPoints || (i().DocumentTouch && i().document instanceof i().DocumentTouch)) ), cn = i().navigator && i().navigator.userAgentData; if ( (cn && ((Yt = "Android" === cn.platform), (Xt = Boolean(cn.brands.find((e) => "Microsoft Edge" === e.brand))), (Qt = Boolean(cn.brands.find((e) => "Chromium" === e.brand))), (Jt = !Xt && Qt), (en = tn = (cn.brands.find((e) => "Chromium" === e.brand) || {}).version || null), (on = "Windows" === cn.platform)), !Qt) ) { const e = (i().navigator && i().navigator.userAgent) || ""; ($t = /iPod/i.test(e)), (Gt = (function () { const t = e.match(/OS (\d+)_/i); return t && t[1] ? t[1] : null; })()), (Yt = /Android/i.test(e)), (Wt = (function () { const t = e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i); if (!t) return null; const n = t[1] && parseFloat(t[1]), r = t[2] && parseFloat(t[2]); return n && r ? parseFloat(t[1] + "." + t[2]) : n || null; })()), (Kt = /Firefox/i.test(e)), (Xt = /Edg/i.test(e)), (Qt = /Chrome/i.test(e) || /CriOS/i.test(e)), (Jt = !Xt && Qt), (en = tn = (function () { const t = e.match(/(Chrome|CriOS)\/(\d+)/); return t && t[2] ? parseFloat(t[2]) : null; })()), (nn = (function () { const t = /MSIE\s(\d+)\.\d/.exec(e); let n = t && parseFloat(t[1]); return ( !n && /Trident\/7.0/i.test(e) && /rv:11.0/.test(e) && (n = 11), n ); })()), (rn = /Safari/i.test(e) && !Jt && !Yt && !Xt), (on = /Windows/i.test(e)), (an = /iPad/i.test(e) || (rn && un && !/iPhone/i.test(e))), (sn = /iPhone/i.test(e) && !an); } const ln = sn || an || $t, fn = (rn || ln) && !Jt; var dn = Object.freeze({ __proto__: null, get IS_IPOD() { return $t; }, get IOS_VERSION() { return Gt; }, get IS_ANDROID() { return Yt; }, get ANDROID_VERSION() { return Wt; }, get IS_FIREFOX() { return Kt; }, get IS_EDGE() { return Xt; }, get IS_CHROMIUM() { return Qt; }, get IS_CHROME() { return Jt; }, get CHROMIUM_VERSION() { return en; }, get CHROME_VERSION() { return tn; }, get IE_VERSION() { return nn; }, get IS_SAFARI() { return rn; }, get IS_WINDOWS() { return on; }, get IS_IPAD() { return an; }, get IS_IPHONE() { return sn; }, TOUCH_ENABLED: un, IS_IOS: ln, IS_ANY_SAFARI: fn, }); function pn(e) { return "string" == typeof e && Boolean(e.trim()); } function hn() { return a() === i().document; } function gn(e) { return zt(e) && 1 === e.nodeType; } function mn() { try { return i().parent !== i().self; } catch (e) { return !0; } } function yn(e) { return function (t, n) { if (!pn(t)) return a()[e](null); pn(n) && (n = a().querySelector(n)); const r = gn(n) ? n : a(); return r[e] && r[e](t); }; } function vn(e = "div", t = {}, n = {}, r) { const i = a().createElement(e); return ( Object.getOwnPropertyNames(t).forEach(function (e) { const n = t[e]; "textContent" === e ? bn(i, n) : (i[e] === n && "tabIndex" !== e) || (i[e] = n); }), Object.getOwnPropertyNames(n).forEach(function (e) { i.setAttribute(e, n[e]); }), r && Bn(i, r), i ); } function bn(e, t) { return ( void 0 === e.textContent ? (e.innerText = t) : (e.textContent = t), e ); } function _n(e, t) { t.firstChild ? t.insertBefore(e, t.firstChild) : t.appendChild(e); } function wn(e, t) { return ( (function (e) { if (e.indexOf(" ") >= 0) throw new Error("class has illegal whitespace characters"); })(t), e.classList.contains(t) ); } function Tn(e, ...t) { return ( e.classList.add(...t.reduce((e, t) => e.concat(t.split(/\s+/)), [])), e ); } function xn(e, ...t) { return e ? (e.classList.remove( ...t.reduce((e, t) => e.concat(t.split(/\s+/)), []) ), e) : (Dt.warn( "removeClass was called with an element that doesn't exist" ), null); } function Sn(e, t, n) { return ( "function" == typeof n && (n = n(e, t)), "boolean" != typeof n && (n = void 0), t.split(/\s+/).forEach((t) => e.classList.toggle(t, n)), e ); } function kn(e, t) { Object.getOwnPropertyNames(t).forEach(function (n) { const r = t[n]; null == r || !1 === r ? e.removeAttribute(n) : e.setAttribute(n, !0 === r ? "" : r); }); } function En(e) { const t = {}, n = ",autoplay,controls,playsinline,loop,muted,default,defaultMuted,"; if (e && e.attributes && e.attributes.length > 0) { const r = e.attributes; for (let i = r.length - 1; i >= 0; i--) { const o = r[i].name; let a = r[i].value; ("boolean" != typeof e[o] && -1 === n.indexOf("," + o + ",")) || (a = null !== a), (t[o] = a); } } return t; } function On(e, t) { return e.getAttribute(t); } function Cn(e, t, n) { e.setAttribute(t, n); } function Ln(e, t) { e.removeAttribute(t); } function An() { a().body.focus(), (a().onselectstart = function () { return !1; }); } function In() { a().onselectstart = function () { return !0; }; } function Mn(e) { if (e && e.getBoundingClientRect && e.parentNode) { const t = e.getBoundingClientRect(), n = {}; return ( ["bottom", "height", "left", "right", "top", "width"].forEach( (e) => { void 0 !== t[e] && (n[e] = t[e]); } ), n.height || (n.height = parseFloat(qn(e, "height"))), n.width || (n.width = parseFloat(qn(e, "width"))), n ); } } function Pn(e) { if (!e || (e && !e.offsetParent)) return { left: 0, top: 0, width: 0, height: 0 }; const t = e.offsetWidth, n = e.offsetHeight; let r = 0, i = 0; for (; e.offsetParent && e !== a()[At.fullscreenElement]; ) (r += e.offsetLeft), (i += e.offsetTop), (e = e.offsetParent); return { left: r, top: i, width: t, height: n }; } function Rn(e, t) { const n = { x: 0, y: 0 }; if (ln) { let t = e; for (; t && "html" !== t.nodeName.toLowerCase(); ) { const e = qn(t, "transform"); if (/^matrix/.test(e)) { const t = e.slice(7, -1).split(/,\s/).map(Number); (n.x += t[4]), (n.y += t[5]); } else if (/^matrix3d/.test(e)) { const t = e.slice(9, -1).split(/,\s/).map(Number); (n.x += t[12]), (n.y += t[13]); } t = t.parentNode; } } const r = {}, i = Pn(t.target), o = Pn(e), a = o.width, s = o.height; let u = t.offsetY - (o.top - i.top), c = t.offsetX - (o.left - i.left); return ( t.changedTouches && ((c = t.changedTouches[0].pageX - o.left), (u = t.changedTouches[0].pageY + o.top), ln && ((c -= n.x), (u -= n.y))), (r.y = 1 - Math.max(0, Math.min(1, u / s))), (r.x = Math.max(0, Math.min(1, c / a))), r ); } function Dn(e) { return zt(e) && 3 === e.nodeType; } function jn(e) { for (; e.firstChild; ) e.removeChild(e.firstChild); return e; } function Nn(e) { return ( "function" == typeof e && (e = e()), (Array.isArray(e) ? e : [e]) .map( (e) => ( "function" == typeof e && (e = e()), gn(e) || Dn(e) ? e : "string" == typeof e && /\S/.test(e) ? a().createTextNode(e) : void 0 ) ) .filter((e) => e) ); } function Bn(e, t) { return Nn(t).forEach((t) => e.appendChild(t)), e; } function Un(e, t) { return Bn(jn(e), t); } function Fn(e) { return ( (void 0 === e.button && void 0 === e.buttons) || (0 === e.button && void 0 === e.buttons) || ("mouseup" === e.type && 0 === e.button && 0 === e.buttons) || (0 === e.button && 1 === e.buttons) ); } const zn = yn("querySelector"), Hn = yn("querySelectorAll"); function qn(e, t) { if (!e || !t) return ""; if ("function" == typeof i().getComputedStyle) { let n; try { n = i().getComputedStyle(e); } catch (e) { return ""; } return n ? n.getPropertyValue(t) || n[t] : ""; } return ""; } var Zn = Object.freeze({ __proto__: null, isReal: hn, isEl: gn, isInFrame: mn, createEl: vn, textContent: bn, prependTo: _n, hasClass: wn, addClass: Tn, removeClass: xn, toggleClass: Sn, setAttributes: kn, getAttributes: En, getAttribute: On, setAttribute: Cn, removeAttribute: Ln, blockTextSelection: An, unblockTextSelection: In, getBoundingClientRect: Mn, findPosition: Pn, getPointerPosition: Rn, isTextNode: Dn, emptyEl: jn, normalizeContent: Nn, appendContent: Bn, insertContent: Un, isSingleLeftClick: Fn, $: zn, $$: Hn, computedStyle: qn, }); let Vn, Wn = !1; const $n = function () { if (!1 === Vn.options.autoSetup) return; const e = Array.prototype.slice.call(a().getElementsByTagName("video")), t = Array.prototype.slice.call(a().getElementsByTagName("audio")), n = Array.prototype.slice.call(a().getElementsByTagName("video-js")), r = e.concat(t, n); if (r && r.length > 0) for (let e = 0, t = r.length; e < t; e++) { const t = r[e]; if (!t || !t.getAttribute) { Gn(1); break; } if (void 0 === t.player) { null !== t.getAttribute("data-setup") && Vn(t); } } else Wn || Gn(1); }; function Gn(e, t) { hn() && (t && (Vn = t), i().setTimeout($n, e)); } function Yn() { (Wn = !0), i().removeEventListener("load", Yn); } hn() && ("complete" === a().readyState ? Yn() : i().addEventListener("load", Yn)); const Kn = function (e) { const t = a().createElement("style"); return (t.className = e), t; }, Xn = function (e, t) { e.styleSheet ? (e.styleSheet.cssText = t) : (e.textContent = t); }; var Qn = new WeakMap(); let Jn, er = 3; function tr() { return er++; } function nr(e, t) { if (!Qn.has(e)) return; const n = Qn.get(e); 0 === n.handlers[t].length && (delete n.handlers[t], e.removeEventListener ? e.removeEventListener(t, n.dispatcher, !1) : e.detachEvent && e.detachEvent("on" + t, n.dispatcher)), Object.getOwnPropertyNames(n.handlers).length <= 0 && (delete n.handlers, delete n.dispatcher, delete n.disabled), 0 === Object.getOwnPropertyNames(n).length && Qn.delete(e); } function rr(e, t, n, r) { n.forEach(function (n) { e(t, n, r); }); } function ir(e) { if (e.fixed_) return e; function t() { return !0; } function n() { return !1; } if (!e || !e.isPropagationStopped || !e.isImmediatePropagationStopped) { const r = e || i().event; e = {}; for (const t in r) "layerX" !== t && "layerY" !== t && "keyLocation" !== t && "webkitMovementX" !== t && "webkitMovementY" !== t && "path" !== t && (("returnValue" === t && r.preventDefault) || (e[t] = r[t])); if ( (e.target || (e.target = e.srcElement || a()), e.relatedTarget || (e.relatedTarget = e.fromElement === e.target ? e.toElement : e.fromElement), (e.preventDefault = function () { r.preventDefault && r.preventDefault(), (e.returnValue = !1), (r.returnValue = !1), (e.defaultPrevented = !0); }), (e.defaultPrevented = !1), (e.stopPropagation = function () { r.stopPropagation && r.stopPropagation(), (e.cancelBubble = !0), (r.cancelBubble = !0), (e.isPropagationStopped = t); }), (e.isPropagationStopped = n), (e.stopImmediatePropagation = function () { r.stopImmediatePropagation && r.stopImmediatePropagation(), (e.isImmediatePropagationStopped = t), e.stopPropagation(); }), (e.isImmediatePropagationStopped = n), null !== e.clientX && void 0 !== e.clientX) ) { const t = a().documentElement, n = a().body; (e.pageX = e.clientX + ((t && t.scrollLeft) || (n && n.scrollLeft) || 0) - ((t && t.clientLeft) || (n && n.clientLeft) || 0)), (e.pageY = e.clientY + ((t && t.scrollTop) || (n && n.scrollTop) || 0) - ((t && t.clientTop) || (n && n.clientTop) || 0)); } (e.which = e.charCode || e.keyCode), null !== e.button && void 0 !== e.button && (e.button = 1 & e.button ? 0 : 4 & e.button ? 1 : 2 & e.button ? 2 : 0); } return (e.fixed_ = !0), e; } const or = ["touchstart", "touchmove"]; function ar(e, t, n) { if (Array.isArray(t)) return rr(ar, e, t, n); Qn.has(e) || Qn.set(e, {}); const r = Qn.get(e); if ( (r.handlers || (r.handlers = {}), r.handlers[t] || (r.handlers[t] = []), n.guid || (n.guid = tr()), r.handlers[t].push(n), r.dispatcher || ((r.disabled = !1), (r.dispatcher = function (t, n) { if (r.disabled) return; t = ir(t); const i = r.handlers[t.type]; if (i) { const r = i.slice(0); for ( let i = 0, o = r.length; i < o && !t.isImmediatePropagationStopped(); i++ ) try { r[i].call(e, t, n); } catch (e) { Dt.error(e); } } })), 1 === r.handlers[t].length) ) if (e.addEventListener) { let n = !1; (function () { if ("boolean" != typeof Jn) { Jn = !1; try { const e = Object.defineProperty({}, "passive", { get() { Jn = !0; }, }); i().addEventListener("test", null, e), i().removeEventListener("test", null, e); } catch (e) {} } return Jn; })() && or.indexOf(t) > -1 && (n = { passive: !0 }), e.addEventListener(t, r.dispatcher, n); } else e.attachEvent && e.attachEvent("on" + t, r.dispatcher); } function sr(e, t, n) { if (!Qn.has(e)) return; const r = Qn.get(e); if (!r.handlers) return; if (Array.isArray(t)) return rr(sr, e, t, n); const i = function (e, t) { (r.handlers[t] = []), nr(e, t); }; if (void 0 === t) { for (const t in r.handlers) Object.prototype.hasOwnProperty.call(r.handlers || {}, t) && i(e, t); return; } const o = r.handlers[t]; if (o) if (n) { if (n.guid) for (let e = 0; e < o.length; e++) o[e].guid === n.guid && o.splice(e--, 1); nr(e, t); } else i(e, t); } function ur(e, t, n) { const r = Qn.has(e) ? Qn.get(e) : {}, i = e.parentNode || e.ownerDocument; if ( ("string" == typeof t ? (t = { type: t, target: e }) : t.target || (t.target = e), (t = ir(t)), r.dispatcher && r.dispatcher.call(e, t, n), i && !t.isPropagationStopped() && !0 === t.bubbles) ) ur.call(null, i, t, n); else if (!i && !t.defaultPrevented && t.target && t.target[t.type]) { Qn.has(t.target) || Qn.set(t.target, {}); const e = Qn.get(t.target); t.target[t.type] && ((e.disabled = !0), "function" == typeof t.target[t.type] && t.target[t.type](), (e.disabled = !1)); } return !t.defaultPrevented; } function cr(e, t, n) { if (Array.isArray(t)) return rr(cr, e, t, n); const r = function () { sr(e, t, r), n.apply(this, arguments); }; (r.guid = n.guid = n.guid || tr()), ar(e, t, r); } function lr(e, t, n) { const r = function () { sr(e, t, r), n.apply(this, arguments); }; (r.guid = n.guid = n.guid || tr()), ar(e, t, r); } var fr = Object.freeze({ __proto__: null, fixEvent: ir, on: ar, off: sr, trigger: ur, one: cr, any: lr, }); const dr = 30, pr = function (e, t, n) { t.guid || (t.guid = tr()); const r = t.bind(e); return (r.guid = n ? n + "_" + t.guid : t.guid), r; }, hr = function (e, t) { let n = i().performance.now(); return function (...r) { const o = i().performance.now(); o - n >= t && (e(...r), (n = o)); }; }, gr = function (e, t, n, r = i()) { let o; const a = function () { const i = this, a = arguments; let s = function () { (o = null), (s = null), n || e.apply(i, a); }; !o && n && e.apply(i, a), r.clearTimeout(o), (o = r.setTimeout(s, t)); }; return ( (a.cancel = () => { r.clearTimeout(o), (o = null); }), a ); }; var mr = Object.freeze({ __proto__: null, UPDATE_REFRESH_INTERVAL: dr, bind_: pr, throttle: hr, debounce: gr, }); let yr; class vr { on(e, t) { const n = this.addEventListener; (this.addEventListener = () => {}), ar(this, e, t), (this.addEventListener = n); } off(e, t) { sr(this, e, t); } one(e, t) { const n = this.addEventListener; (this.addEventListener = () => {}), cr(this, e, t), (this.addEventListener = n); } any(e, t) { const n = this.addEventListener; (this.addEventListener = () => {}), lr(this, e, t), (this.addEventListener = n); } trigger(e) { const t = e.type || e; "string" == typeof e && (e = { type: t }), (e = ir(e)), this.allowedEvents_[t] && this["on" + t] && this["on" + t](e), ur(this, e); } queueTrigger(e) { yr || (yr = new Map()); const t = e.type || e; let n = yr.get(this); n || ((n = new Map()), yr.set(this, n)); const r = n.get(t); n.delete(t), i().clearTimeout(r); const o = i().setTimeout(() => { n.delete(t), 0 === n.size && ((n = null), yr.delete(this)), this.trigger(e); }, 0); n.set(t, o); } } (vr.prototype.allowedEvents_ = {}), (vr.prototype.addEventListener = vr.prototype.on), (vr.prototype.removeEventListener = vr.prototype.off), (vr.prototype.dispatchEvent = vr.prototype.trigger); const br = (e) => "function" == typeof e.name ? e.name() : "string" == typeof e.name ? e.name : e.name_ ? e.name_ : e.constructor && e.constructor.name ? e.constructor.name : typeof e, _r = (e) => e instanceof vr || (!!e.eventBusEl_ && ["on", "one", "off", "trigger"].every( (t) => "function" == typeof e[t] )), wr = (e) => ("string" == typeof e && /\S/.test(e)) || (Array.isArray(e) && !!e.length), Tr = (e, t, n) => { if (!e || (!e.nodeName && !_r(e))) throw new Error( `Invalid target for ${br( t )}#${n}; must be a DOM node or evented object.` ); }, xr = (e, t, n) => { if (!wr(e)) throw new Error( `Invalid event type for ${br( t )}#${n}; must be a non-empty string or array.` ); }, Sr = (e, t, n) => { if ("function" != typeof e) throw new Error( `Invalid listener for ${br(t)}#${n}; must be a function.` ); }, kr = (e, t, n) => { const r = t.length < 3 || t[0] === e || t[0] === e.eventBusEl_; let i, o, a; return ( r ? ((i = e.eventBusEl_), t.length >= 3 && t.shift(), ([o, a] = t)) : ([i, o, a] = t), Tr(i, e, n), xr(o, e, n), Sr(a, e, n), (a = pr(e, a)), { isTargetingSelf: r, target: i, type: o, listener: a } ); }, Er = (e, t, n, r) => { Tr(e, e, t), e.nodeName ? fr[t](e, n, r) : e[t](n, r); }, Or = { on(...e) { const { isTargetingSelf: t, target: n, type: r, listener: i, } = kr(this, e, "on"); if ((Er(n, "on", r, i), !t)) { const e = () => this.off(n, r, i); e.guid = i.guid; const t = () => this.off("dispose", e); (t.guid = i.guid), Er(this, "on", "dispose", e), Er(n, "on", "dispose", t); } }, one(...e) { const { isTargetingSelf: t, target: n, type: r, listener: i, } = kr(this, e, "one"); if (t) Er(n, "one", r, i); else { const e = (...t) => { this.off(n, r, e), i.apply(null, t); }; (e.guid = i.guid), Er(n, "one", r, e); } }, any(...e) { const { isTargetingSelf: t, target: n, type: r, listener: i, } = kr(this, e, "any"); if (t) Er(n, "any", r, i); else { const e = (...t) => { this.off(n, r, e), i.apply(null, t); }; (e.guid = i.guid), Er(n, "any", r, e); } }, off(e, t, n) { if (!e || wr(e)) sr(this.eventBusEl_, e, t); else { const r = e, i = t; Tr(r, this, "off"), xr(i, this, "off"), Sr(n, this, "off"), (n = pr(this, n)), this.off("dispose", n), r.nodeName ? (sr(r, i, n), sr(r, "dispose", n)) : _r(r) && (r.off(i, n), r.off("dispose", n)); } }, trigger(e, t) { Tr(this.eventBusEl_, this, "trigger"); const n = e && "string" != typeof e ? e.type : e; if (!wr(n)) throw new Error( `Invalid event type for ${br( this )}#trigger; must be a non-empty string or object with a type key that has a non-empty value.` ); return ur(this.eventBusEl_, e, t); }, }; function Cr(e, t = {}) { const { eventBusKey: n } = t; if (n) { if (!e[n].nodeName) throw new Error( `The eventBusKey "${n}" does not refer to an element.` ); e.eventBusEl_ = e[n]; } else e.eventBusEl_ = vn("span", { className: "vjs-event-bus" }); return ( Object.assign(e, Or), e.eventedCallbacks && e.eventedCallbacks.forEach((e) => { e(); }), e.on("dispose", () => { e.off(), [e, e.el_, e.eventBusEl_].forEach(function (e) { e && Qn.has(e) && Qn.delete(e); }), i().setTimeout(() => { e.eventBusEl_ = null; }, 0); }), e ); } const Lr = { state: {}, setState(e) { let t; return ( "function" == typeof e && (e = e()), Ut(e, (e, n) => { this.state[n] !== e && ((t = t || {}), (t[n] = { from: this.state[n], to: e })), (this.state[n] = e); }), t && _r(this) && this.trigger({ changes: t, type: "statechanged" }), t ); }, }; function Ar(e, t) { return ( Object.assign(e, Lr), (e.state = Object.assign({}, e.state, t)), "function" == typeof e.handleStateChanged && _r(e) && e.on("statechanged", e.handleStateChanged), e ); } const Ir = function (e) { return "string" != typeof e ? e : e.replace(/./, (e) => e.toLowerCase()); }, Mr = function (e) { return "string" != typeof e ? e : e.replace(/./, (e) => e.toUpperCase()); }, Pr = function (e, t) { return Mr(e) === Mr(t); }; var Rr = Object.freeze({ __proto__: null, toLowerCase: Ir, toTitleCase: Mr, titleCaseEquals: Pr, }); class Dr { constructor(e, t, n) { if ( (!e && this.play ? (this.player_ = e = this) : (this.player_ = e), (this.isDisposed_ = !1), (this.parentComponent_ = null), (this.options_ = qt({}, this.options_)), (t = this.options_ = qt(this.options_, t)), (this.id_ = t.id || (t.el && t.el.id)), !this.id_) ) { const t = (e && e.id && e.id()) || "no_player"; this.id_ = `${t}_component_${tr()}`; } (this.name_ = t.name || null), t.el ? (this.el_ = t.el) : !1 !== t.createEl && (this.el_ = this.createEl()), t.className && this.el_ && t.className.split(" ").forEach((e) => this.addClass(e)), ["on", "off", "one", "any", "trigger"].forEach((e) => { this[e] = void 0; }), !1 !== t.evented && (Cr(this, { eventBusKey: this.el_ ? "el_" : null }), (this.handleLanguagechange = this.handleLanguagechange.bind(this)), this.on( this.player_, "languagechange", this.handleLanguagechange )), Ar(this, this.constructor.defaultState), (this.children_ = []), (this.childIndex_ = {}), (this.childNameIndex_ = {}), (this.setTimeoutIds_ = new Set()), (this.setIntervalIds_ = new Set()), (this.rafIds_ = new Set()), (this.namedRafs_ = new Map()), (this.clearingTimersOnDispose_ = !1), !1 !== t.initChildren && this.initChildren(), this.ready(n), !1 !== t.reportTouchActivity && this.enableTouchActivity(); } on(e, t) {} off(e, t) {} one(e, t) {} any(e, t) {} trigger(e) {} dispose(e = {}) { if (!this.isDisposed_) { if ( (this.readyQueue_ && (this.readyQueue_.length = 0), this.trigger({ type: "dispose", bubbles: !1 }), (this.isDisposed_ = !0), this.children_) ) for (let e = this.children_.length - 1; e >= 0; e--) this.children_[e].dispose && this.children_[e].dispose(); (this.children_ = null), (this.childIndex_ = null), (this.childNameIndex_ = null), (this.parentComponent_ = null), this.el_ && (this.el_.parentNode && (e.restoreEl ? this.el_.parentNode.replaceChild(e.restoreEl, this.el_) : this.el_.parentNode.removeChild(this.el_)), (this.el_ = null)), (this.player_ = null); } } isDisposed() { return Boolean(this.isDisposed_); } player() { return this.player_; } options(e) { return e ? ((this.options_ = qt(this.options_, e)), this.options_) : this.options_; } el() { return this.el_; } createEl(e, t, n) { return vn(e, t, n); } localize(e, t, n = e) { const r = this.player_.language && this.player_.language(), i = this.player_.languages && this.player_.languages(), o = i && i[r], a = r && r.split("-")[0], s = i && i[a]; let u = n; return ( o && o[e] ? (u = o[e]) : s && s[e] && (u = s[e]), t && (u = u.replace(/\{(\d+)\}/g, function (e, n) { const r = t[n - 1]; let i = r; return void 0 === r && (i = e), i; })), u ); } handleLanguagechange() {} contentEl() { return this.contentEl_ || this.el_; } id() { return this.id_; } name() { return this.name_; } children() { return this.children_; } getChildById(e) { return this.childIndex_[e]; } getChild(e) { if (e) return this.childNameIndex_[e]; } getDescendant(...e) { e = e.reduce((e, t) => e.concat(t), []); let t = this; for (let n = 0; n < e.length; n++) if (((t = t.getChild(e[n])), !t || !t.getChild)) return; return t; } addChild(e, t = {}, n = this.children_.length) { let r, i; if ("string" == typeof e) { i = Mr(e); const n = t.componentClass || i; t.name = i; const o = Dr.getComponent(n); if (!o) throw new Error(`Component ${n} does not exist`); if ("function" != typeof o) return null; r = new o(this.player_ || this, t); } else r = e; if ( (r.parentComponent_ && r.parentComponent_.removeChild(r), this.children_.splice(n, 0, r), (r.parentComponent_ = this), "function" == typeof r.id && (this.childIndex_[r.id()] = r), (i = i || (r.name && Mr(r.name()))), i && ((this.childNameIndex_[i] = r), (this.childNameIndex_[Ir(i)] = r)), "function" == typeof r.el && r.el()) ) { let e = null; this.children_[n + 1] && (this.children_[n + 1].el_ ? (e = this.children_[n + 1].el_) : gn(this.children_[n + 1]) && (e = this.children_[n + 1])), this.contentEl().insertBefore(r.el(), e); } return r; } removeChild(e) { if ( ("string" == typeof e && (e = this.getChild(e)), !e || !this.children_) ) return; let t = !1; for (let n = this.children_.length - 1; n >= 0; n--) if (this.children_[n] === e) { (t = !0), this.children_.splice(n, 1); break; } if (!t) return; (e.parentComponent_ = null), (this.childIndex_[e.id()] = null), (this.childNameIndex_[Mr(e.name())] = null), (this.childNameIndex_[Ir(e.name())] = null); const n = e.el(); n && n.parentNode === this.contentEl() && this.contentEl().removeChild(e.el()); } initChildren() { const e = this.options_.children; if (e) { const t = this.options_, n = (e) => { const n = e.name; let r = e.opts; if ((void 0 !== t[n] && (r = t[n]), !1 === r)) return; !0 === r && (r = {}), (r.playerOptions = this.options_.playerOptions); const i = this.addChild(n, r); i && (this[n] = i); }; let r; const i = Dr.getComponent("Tech"); (r = Array.isArray(e) ? e : Object.keys(e)), r .concat( Object.keys(this.options_).filter(function (e) { return !r.some(function (t) { return "string" == typeof t ? e === t : e === t.name; }); }) ) .map((t) => { let n, r; return ( "string" == typeof t ? ((n = t), (r = e[n] || this.options_[n] || {})) : ((n = t.name), (r = t)), { name: n, opts: r } ); }) .filter((e) => { const t = Dr.getComponent( e.opts.componentClass || Mr(e.name) ); return t && !i.isTech(t); }) .forEach(n); } } buildCSSClass() { return ""; } ready(e, t = !1) { if (e) return this.isReady_ ? void (t ? e.call(this) : this.setTimeout(e, 1)) : ((this.readyQueue_ = this.readyQueue_ || []), void this.readyQueue_.push(e)); } triggerReady() { (this.isReady_ = !0), this.setTimeout(function () { const e = this.readyQueue_; (this.readyQueue_ = []), e && e.length > 0 && e.forEach(function (e) { e.call(this); }, this), this.trigger("ready"); }, 1); } $(e, t) { return zn(e, t || this.contentEl()); } $$(e, t) { return Hn(e, t || this.contentEl()); } hasClass(e) { return wn(this.el_, e); } addClass(...e) { Tn(this.el_, ...e); } removeClass(...e) { xn(this.el_, ...e); } toggleClass(e, t) { Sn(this.el_, e, t); } show() { this.removeClass("vjs-hidden"); } hide() { this.addClass("vjs-hidden"); } lockShowing() { this.addClass("vjs-lock-showing"); } unlockShowing() { this.removeClass("vjs-lock-showing"); } getAttribute(e) { return On(this.el_, e); } setAttribute(e, t) { Cn(this.el_, e, t); } removeAttribute(e) { Ln(this.el_, e); } width(e, t) { return this.dimension("width", e, t); } height(e, t) { return this.dimension("height", e, t); } dimensions(e, t) { this.width(e, !0), this.height(t); } dimension(e, t, n) { if (void 0 !== t) return ( (null !== t && t == t) || (t = 0), -1 !== ("" + t).indexOf("%") || -1 !== ("" + t).indexOf("px") ? (this.el_.style[e] = t) : (this.el_.style[e] = "auto" === t ? "" : t + "px"), void (n || this.trigger("componentresize")) ); if (!this.el_) return 0; const r = this.el_.style[e], i = r.indexOf("px"); return -1 !== i ? parseInt(r.slice(0, i), 10) : parseInt(this.el_["offset" + Mr(e)], 10); } currentDimension(e) { let t = 0; if ("width" !== e && "height" !== e) throw new Error( "currentDimension only accepts width or height value" ); if ( ((t = qn(this.el_, e)), (t = parseFloat(t)), 0 === t || isNaN(t)) ) { const n = `offset${Mr(e)}`; t = this.el_[n]; } return t; } currentDimensions() { return { width: this.currentDimension("width"), height: this.currentDimension("height"), }; } currentWidth() { return this.currentDimension("width"); } currentHeight() { return this.currentDimension("height"); } focus() { this.el_.focus(); } blur() { this.el_.blur(); } handleKeyDown(e) { this.player_ && (u().isEventKey(e, "Tab") || e.stopPropagation(), this.player_.handleKeyDown(e)); } handleKeyPress(e) { this.handleKeyDown(e); } emitTapEvents() { let e = 0, t = null; let n; this.on("touchstart", function (r) { 1 === r.touches.length && ((t = { pageX: r.touches[0].pageX, pageY: r.touches[0].pageY }), (e = i().performance.now()), (n = !0)); }), this.on("touchmove", function (e) { if (e.touches.length > 1) n = !1; else if (t) { const r = e.touches[0].pageX - t.pageX, i = e.touches[0].pageY - t.pageY; Math.sqrt(r * r + i * i) > 10 && (n = !1); } }); const r = function () { n = !1; }; this.on("touchleave", r), this.on("touchcancel", r), this.on("touchend", function (r) { if (((t = null), !0 === n)) { i().performance.now() - e < 200 && (r.preventDefault(), this.trigger("tap")); } }); } enableTouchActivity() { if (!this.player() || !this.player().reportUserActivity) return; const e = pr(this.player(), this.player().reportUserActivity); let t; this.on("touchstart", function () { e(), this.clearInterval(t), (t = this.setInterval(e, 250)); }); const n = function (n) { e(), this.clearInterval(t); }; this.on("touchmove", e), this.on("touchend", n), this.on("touchcancel", n); } setTimeout(e, t) { var n; return ( (e = pr(this, e)), this.clearTimersOnDispose_(), (n = i().setTimeout(() => { this.setTimeoutIds_.has(n) && this.setTimeoutIds_.delete(n), e(); }, t)), this.setTimeoutIds_.add(n), n ); } clearTimeout(e) { return ( this.setTimeoutIds_.has(e) && (this.setTimeoutIds_.delete(e), i().clearTimeout(e)), e ); } setInterval(e, t) { (e = pr(this, e)), this.clearTimersOnDispose_(); const n = i().setInterval(e, t); return this.setIntervalIds_.add(n), n; } clearInterval(e) { return ( this.setIntervalIds_.has(e) && (this.setIntervalIds_.delete(e), i().clearInterval(e)), e ); } requestAnimationFrame(e) { var t; return ( this.clearTimersOnDispose_(), (e = pr(this, e)), (t = i().requestAnimationFrame(() => { this.rafIds_.has(t) && this.rafIds_.delete(t), e(); })), this.rafIds_.add(t), t ); } requestNamedAnimationFrame(e, t) { if (this.namedRafs_.has(e)) return; this.clearTimersOnDispose_(), (t = pr(this, t)); const n = this.requestAnimationFrame(() => { t(), this.namedRafs_.has(e) && this.namedRafs_.delete(e); }); return this.namedRafs_.set(e, n), e; } cancelNamedAnimationFrame(e) { this.namedRafs_.has(e) && (this.cancelAnimationFrame(this.namedRafs_.get(e)), this.namedRafs_.delete(e)); } cancelAnimationFrame(e) { return ( this.rafIds_.has(e) && (this.rafIds_.delete(e), i().cancelAnimationFrame(e)), e ); } clearTimersOnDispose_() { this.clearingTimersOnDispose_ || ((this.clearingTimersOnDispose_ = !0), this.one("dispose", () => { [ ["namedRafs_", "cancelNamedAnimationFrame"], ["rafIds_", "cancelAnimationFrame"], ["setTimeoutIds_", "clearTimeout"], ["setIntervalIds_", "clearInterval"], ].forEach(([e, t]) => { this[e].forEach((e, n) => this[t](n)); }), (this.clearingTimersOnDispose_ = !1); })); } static registerComponent(e, t) { if ("string" != typeof e || !e) throw new Error( `Illegal component name, "${e}"; must be a non-empty string.` ); const n = Dr.getComponent("Tech"), r = n && n.isTech(t), i = Dr === t || Dr.prototype.isPrototypeOf(t.prototype); if (r || !i) { let t; throw ( ((t = r ? "techs must be registered using Tech.registerTech()" : "must be a Component subclass"), new Error(`Illegal component, "${e}"; ${t}.`)) ); } (e = Mr(e)), Dr.components_ || (Dr.components_ = {}); const o = Dr.getComponent("Player"); if ("Player" === e && o && o.players) { const e = o.players, t = Object.keys(e); if (e && t.length > 0 && t.map((t) => e[t]).every(Boolean)) throw new Error( "Can not register Player component after player has been created." ); } return (Dr.components_[e] = t), (Dr.components_[Ir(e)] = t), t; } static getComponent(e) { if (e && Dr.components_) return Dr.components_[e]; } } function jr(e, t, n, r) { return ( (function (e, t, n) { if ("number" != typeof t || t < 0 || t > n) throw new Error( `Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${n}).` ); })(e, r, n.length - 1), n[r][t] ); } function Nr(e) { let t; return ( (t = void 0 === e || 0 === e.length ? { length: 0, start() { throw new Error("This TimeRanges object is empty"); }, end() { throw new Error("This TimeRanges object is empty"); }, } : { length: e.length, start: jr.bind(null, "start", 0, e), end: jr.bind(null, "end", 1, e), }), i().Symbol && i().Symbol.iterator && (t[i().Symbol.iterator] = () => (e || []).values()), t ); } function Br(e, t) { return Array.isArray(e) ? Nr(e) : void 0 === e || void 0 === t ? Nr() : Nr([[e, t]]); } Dr.registerComponent("Component", Dr); const Ur = function (e, t) { e = e < 0 ? 0 : e; let n = Math.floor(e % 60), r = Math.floor((e / 60) % 60), i = Math.floor(e / 3600); const o = Math.floor((t / 60) % 60), a = Math.floor(t / 3600); return ( (isNaN(e) || e === 1 / 0) && (i = r = n = "-"), (i = i > 0 || a > 0 ? i + ":" : ""), (r = ((i || o >= 10) && r < 10 ? "0" + r : r) + ":"), (n = n < 10 ? "0" + n : n), i + r + n ); }; let Fr = Ur; function zr(e) { Fr = e; } function Hr() { Fr = Ur; } function qr(e, t = e) { return Fr(e, t); } var Zr = Object.freeze({ __proto__: null, createTimeRanges: Br, createTimeRange: Br, setFormatTime: zr, resetFormatTime: Hr, formatTime: qr, }); function Vr(e, t) { let n, r, i = 0; if (!t) return 0; (e && e.length) || (e = Br(0, 0)); for (let o = 0; o < e.length; o++) (n = e.start(o)), (r = e.end(o)), r > t && (r = t), (i += r - n); return i / t; } function Wr(e) { if (e instanceof Wr) return e; "number" == typeof e ? (this.code = e) : "string" == typeof e ? (this.message = e) : zt(e) && ("number" == typeof e.code && (this.code = e.code), Object.assign(this, e)), this.message || (this.message = Wr.defaultMessages[this.code] || ""); } (Wr.prototype.code = 0), (Wr.prototype.message = ""), (Wr.prototype.status = null), (Wr.errorTypes = [ "MEDIA_ERR_CUSTOM", "MEDIA_ERR_ABORTED", "MEDIA_ERR_NETWORK", "MEDIA_ERR_DECODE", "MEDIA_ERR_SRC_NOT_SUPPORTED", "MEDIA_ERR_ENCRYPTED", ]), (Wr.defaultMessages = { 1: "You aborted the media playback", 2: "A network error caused the media download to fail part-way.", 3: "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.", 4: "The media could not be loaded, either because the server or network failed or because the format is not supported.", 5: "The media is encrypted and we do not have the keys to decrypt it.", }); for (let e = 0; e < Wr.errorTypes.length; e++) (Wr[Wr.errorTypes[e]] = e), (Wr.prototype[Wr.errorTypes[e]] = e); function $r(e) { return null != e && "function" == typeof e.then; } function Gr(e) { $r(e) && e.then(null, (e) => {}); } const Yr = function (e) { return [ "kind", "label", "language", "id", "inBandMetadataTrackDispatchType", "mode", "src", ].reduce((t, n, r) => (e[n] && (t[n] = e[n]), t), { cues: e.cues && Array.prototype.map.call(e.cues, function (e) { return { startTime: e.startTime, endTime: e.endTime, text: e.text, id: e.id, }; }), }); }; var Kr = function (e) { const t = e.$$("track"), n = Array.prototype.map.call(t, (e) => e.track); return Array.prototype.map .call(t, function (e) { const t = Yr(e.track); return e.src && (t.src = e.src), t; }) .concat( Array.prototype.filter .call(e.textTracks(), function (e) { return -1 === n.indexOf(e); }) .map(Yr) ); }, Xr = function (e, t) { return ( e.forEach(function (e) { const n = t.addRemoteTextTrack(e).track; !e.src && e.cues && e.cues.forEach((e) => n.addCue(e)); }), t.textTracks() ); }; class Qr extends Dr { constructor(e, t) { super(e, t), (this.handleKeyDown_ = (e) => this.handleKeyDown(e)), (this.close_ = (e) => this.close(e)), (this.opened_ = this.hasBeenOpened_ = this.hasBeenFilled_ = !1), this.closeable(!this.options_.uncloseable), this.content(this.options_.content), (this.contentEl_ = vn( "div", { className: "vjs-modal-dialog-content" }, { role: "document" } )), (this.descEl_ = vn("p", { className: "vjs-modal-dialog-description vjs-control-text", id: this.el().getAttribute("aria-describedby"), })), bn(this.descEl_, this.description()), this.el_.appendChild(this.descEl_), this.el_.appendChild(this.contentEl_); } createEl() { return super.createEl( "div", { className: this.buildCSSClass(), tabIndex: -1 }, { "aria-describedby": `${this.id()}_description`, "aria-hidden": "true", "aria-label": this.label(), role: "dialog", } ); } dispose() { (this.contentEl_ = null), (this.descEl_ = null), (this.previouslyActiveEl_ = null), super.dispose(); } buildCSSClass() { return `vjs-modal-dialog vjs-hidden ${super.buildCSSClass()}`; } label() { return this.localize(this.options_.label || "Modal Window"); } description() { let e = this.options_.description || this.localize("This is a modal window."); return ( this.closeable() && (e += " " + this.localize( "This modal can be closed by pressing the Escape key or activating the close button." )), e ); } open() { if (!this.opened_) { const e = this.player(); this.trigger("beforemodalopen"), (this.opened_ = !0), (this.options_.fillAlways || (!this.hasBeenOpened_ && !this.hasBeenFilled_)) && this.fill(), (this.wasPlaying_ = !e.paused()), this.options_.pauseOnOpen && this.wasPlaying_ && e.pause(), this.on("keydown", this.handleKeyDown_), (this.hadControls_ = e.controls()), e.controls(!1), this.show(), this.conditionalFocus_(), this.el().setAttribute("aria-hidden", "false"), this.trigger("modalopen"), (this.hasBeenOpened_ = !0); } } opened(e) { return ( "boolean" == typeof e && this[e ? "open" : "close"](), this.opened_ ); } close() { if (!this.opened_) return; const e = this.player(); this.trigger("beforemodalclose"), (this.opened_ = !1), this.wasPlaying_ && this.options_.pauseOnOpen && e.play(), this.off("keydown", this.handleKeyDown_), this.hadControls_ && e.controls(!0), this.hide(), this.el().setAttribute("aria-hidden", "true"), this.trigger("modalclose"), this.conditionalBlur_(), this.options_.temporary && this.dispose(); } closeable(e) { if ("boolean" == typeof e) { const t = (this.closeable_ = !!e); let n = this.getChild("closeButton"); if (t && !n) { const e = this.contentEl_; (this.contentEl_ = this.el_), (n = this.addChild("closeButton", { controlText: "Close Modal Dialog", })), (this.contentEl_ = e), this.on(n, "close", this.close_); } !t && n && (this.off(n, "close", this.close_), this.removeChild(n), n.dispose()); } return this.closeable_; } fill() { this.fillWith(this.content()); } fillWith(e) { const t = this.contentEl(), n = t.parentNode, r = t.nextSibling; this.trigger("beforemodalfill"), (this.hasBeenFilled_ = !0), n.removeChild(t), this.empty(), Un(t, e), this.trigger("modalfill"), r ? n.insertBefore(t, r) : n.appendChild(t); const i = this.getChild("closeButton"); i && n.appendChild(i.el_); } empty() { this.trigger("beforemodalempty"), jn(this.contentEl()), this.trigger("modalempty"); } content(e) { return void 0 !== e && (this.content_ = e), this.content_; } conditionalFocus_() { const e = a().activeElement, t = this.player_.el_; (this.previouslyActiveEl_ = null), (t.contains(e) || t === e) && ((this.previouslyActiveEl_ = e), this.focus()); } conditionalBlur_() { this.previouslyActiveEl_ && (this.previouslyActiveEl_.focus(), (this.previouslyActiveEl_ = null)); } handleKeyDown(e) { if ( (e.stopPropagation(), u().isEventKey(e, "Escape") && this.closeable()) ) return e.preventDefault(), void this.close(); if (!u().isEventKey(e, "Tab")) return; const t = this.focusableEls_(), n = this.el_.querySelector(":focus"); let r; for (let e = 0; e < t.length; e++) if (n === t[e]) { r = e; break; } a().activeElement === this.el_ && (r = 0), e.shiftKey && 0 === r ? (t[t.length - 1].focus(), e.preventDefault()) : e.shiftKey || r !== t.length - 1 || (t[0].focus(), e.preventDefault()); } focusableEls_() { const e = this.el_.querySelectorAll("*"); return Array.prototype.filter.call( e, (e) => ((e instanceof i().HTMLAnchorElement || e instanceof i().HTMLAreaElement) && e.hasAttribute("href")) || ((e instanceof i().HTMLInputElement || e instanceof i().HTMLSelectElement || e instanceof i().HTMLTextAreaElement || e instanceof i().HTMLButtonElement) && !e.hasAttribute("disabled")) || e instanceof i().HTMLIFrameElement || e instanceof i().HTMLObjectElement || e instanceof i().HTMLEmbedElement || (e.hasAttribute("tabindex") && -1 !== e.getAttribute("tabindex")) || e.hasAttribute("contenteditable") ); } } (Qr.prototype.options_ = { pauseOnOpen: !0, temporary: !0 }), Dr.registerComponent("ModalDialog", Qr); class Jr extends vr { constructor(e = []) { super(), (this.tracks_ = []), Object.defineProperty(this, "length", { get() { return this.tracks_.length; }, }); for (let t = 0; t < e.length; t++) this.addTrack(e[t]); } addTrack(e) { const t = this.tracks_.length; "" + t in this || Object.defineProperty(this, t, { get() { return this.tracks_[t]; }, }), -1 === this.tracks_.indexOf(e) && (this.tracks_.push(e), this.trigger({ track: e, type: "addtrack", target: this })), (e.labelchange_ = () => { this.trigger({ track: e, type: "labelchange", target: this }); }), _r(e) && e.addEventListener("labelchange", e.labelchange_); } removeTrack(e) { let t; for (let n = 0, r = this.length; n < r; n++) if (this[n] === e) { (t = this[n]), t.off && t.off(), this.tracks_.splice(n, 1); break; } t && this.trigger({ track: t, type: "removetrack", target: this }); } getTrackById(e) { let t = null; for (let n = 0, r = this.length; n < r; n++) { const r = this[n]; if (r.id === e) { t = r; break; } } return t; } } Jr.prototype.allowedEvents_ = { change: "change", addtrack: "addtrack", removetrack: "removetrack", labelchange: "labelchange", }; for (const e in Jr.prototype.allowedEvents_) Jr.prototype["on" + e] = null; const ei = function (e, t) { for (let n = 0; n < e.length; n++) Object.keys(e[n]).length && t.id !== e[n].id && (e[n].enabled = !1); }; const ti = function (e, t) { for (let n = 0; n < e.length; n++) Object.keys(e[n]).length && t.id !== e[n].id && (e[n].selected = !1); }; class ni extends Jr { addTrack(e) { super.addTrack(e), this.queueChange_ || (this.queueChange_ = () => this.queueTrigger("change")), this.triggerSelectedlanguagechange || (this.triggerSelectedlanguagechange_ = () => this.trigger("selectedlanguagechange")), e.addEventListener("modechange", this.queueChange_); -1 === ["metadata", "chapters"].indexOf(e.kind) && e.addEventListener( "modechange", this.triggerSelectedlanguagechange_ ); } removeTrack(e) { super.removeTrack(e), e.removeEventListener && (this.queueChange_ && e.removeEventListener("modechange", this.queueChange_), this.selectedlanguagechange_ && e.removeEventListener( "modechange", this.triggerSelectedlanguagechange_ )); } } class ri { constructor(e) { ri.prototype.setCues_.call(this, e), Object.defineProperty(this, "length", { get() { return this.length_; }, }); } setCues_(e) { const t = this.length || 0; let n = 0; const r = e.length; (this.cues_ = e), (this.length_ = e.length); const i = function (e) { "" + e in this || Object.defineProperty(this, "" + e, { get() { return this.cues_[e]; }, }); }; if (t < r) for (n = t; n < r; n++) i.call(this, n); } getCueById(e) { let t = null; for (let n = 0, r = this.length; n < r; n++) { const r = this[n]; if (r.id === e) { t = r; break; } } return t; } } const ii = { alternative: "alternative", captions: "captions", main: "main", sign: "sign", subtitles: "subtitles", commentary: "commentary", }, oi = { alternative: "alternative", descriptions: "descriptions", main: "main", "main-desc": "main-desc", translation: "translation", commentary: "commentary", }, ai = { subtitles: "subtitles", captions: "captions", descriptions: "descriptions", chapters: "chapters", metadata: "metadata", }, si = { disabled: "disabled", hidden: "hidden", showing: "showing" }; class ui extends vr { constructor(e = {}) { super(); const t = { id: e.id || "vjs_track_" + tr(), kind: e.kind || "", language: e.language || "", }; let n = e.label || ""; for (const e in t) Object.defineProperty(this, e, { get: () => t[e], set() {} }); Object.defineProperty(this, "label", { get: () => n, set(e) { e !== n && ((n = e), this.trigger("labelchange")); }, }); } } const ci = function (e) { const t = [ "protocol", "hostname", "port", "pathname", "search", "hash", "host", ], n = a().createElement("a"); n.href = e; const r = {}; for (let e = 0; e < t.length; e++) r[t[e]] = n[t[e]]; return ( "http:" === r.protocol && (r.host = r.host.replace(/:80$/, "")), "https:" === r.protocol && (r.host = r.host.replace(/:443$/, "")), r.protocol || (r.protocol = i().location.protocol), r.host || (r.host = i().location.host), r ); }, li = function (e) { if (!e.match(/^https?:\/\//)) { const t = a().createElement("a"); (t.href = e), (e = t.href); } return e; }, fi = function (e) { if ("string" == typeof e) { const t = /^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec( e ); if (t) return t.pop().toLowerCase(); } return ""; }, di = function (e, t = i().location) { const n = ci(e); return ( (":" === n.protocol ? t.protocol : n.protocol) + n.host !== t.protocol + t.host ); }; var pi = Object.freeze({ __proto__: null, parseUrl: ci, getAbsoluteURL: li, getFileExtension: fi, isCrossOrigin: di, }); const hi = function (e, t) { const n = new (i().WebVTT.Parser)( i(), i().vttjs, i().WebVTT.StringDecoder() ), r = []; (n.oncue = function (e) { t.addCue(e); }), (n.onparsingerror = function (e) { r.push(e); }), (n.onflush = function () { t.trigger({ type: "loadeddata", target: t }); }), n.parse(e), r.length > 0 && (i().console && i().console.groupCollapsed && i().console.groupCollapsed( `Text Track parsing errors for ${t.src}` ), r.forEach((e) => Dt.error(e)), i().console && i().console.groupEnd && i().console.groupEnd()), n.flush(); }, gi = function (e, t) { const n = { uri: e }, r = di(e); r && (n.cors = r); const o = "use-credentials" === t.tech_.crossOrigin(); o && (n.withCredentials = o), d()( n, pr(this, function (e, n, r) { if (e) return Dt.error(e, n); (t.loaded_ = !0), "function" != typeof i().WebVTT ? t.tech_ && t.tech_.any(["vttjsloaded", "vttjserror"], (e) => { if ("vttjserror" !== e.type) return hi(r, t); Dt.error( `vttjs failed to load, stopping trying to process ${t.src}` ); }) : hi(r, t); }) ); }; class mi extends ui { constructor(e = {}) { if (!e.tech) throw new Error("A tech was not provided."); const t = qt(e, { kind: ai[e.kind] || "subtitles", language: e.language || e.srclang || "", }); let n = si[t.mode] || "disabled"; const r = t.default; ("metadata" !== t.kind && "chapters" !== t.kind) || (n = "hidden"), super(t), (this.tech_ = t.tech), (this.cues_ = []), (this.activeCues_ = []), (this.preload_ = !1 !== this.tech_.preloadTextTracks); const i = new ri(this.cues_), o = new ri(this.activeCues_); let a = !1; this.timeupdateHandler = pr(this, function (e = {}) { this.tech_.isDisposed() || (this.tech_.isReady_ ? ((this.activeCues = this.activeCues), a && (this.trigger("cuechange"), (a = !1)), "timeupdate" !== e.type && (this.rvf_ = this.tech_.requestVideoFrameCallback( this.timeupdateHandler ))) : "timeupdate" !== e.type && (this.rvf_ = this.tech_.requestVideoFrameCallback( this.timeupdateHandler ))); }); this.tech_.one("dispose", () => { this.stopTracking(); }), "disabled" !== n && this.startTracking(), Object.defineProperties(this, { default: { get: () => r, set() {} }, mode: { get: () => n, set(e) { si[e] && n !== e && ((n = e), this.preload_ || "disabled" === n || 0 !== this.cues.length || gi(this.src, this), this.stopTracking(), "disabled" !== n && this.startTracking(), this.trigger("modechange")); }, }, cues: { get() { return this.loaded_ ? i : null; }, set() {}, }, activeCues: { get() { if (!this.loaded_) return null; if (0 === this.cues.length) return o; const e = this.tech_.currentTime(), t = []; for (let n = 0, r = this.cues.length; n < r; n++) { const r = this.cues[n]; r.startTime <= e && r.endTime >= e && t.push(r); } if (((a = !1), t.length !== this.activeCues_.length)) a = !0; else for (let e = 0; e < t.length; e++) -1 === this.activeCues_.indexOf(t[e]) && (a = !0); return ( (this.activeCues_ = t), o.setCues_(this.activeCues_), o ); }, set() {}, }, }), t.src ? ((this.src = t.src), this.preload_ || (this.loaded_ = !0), (this.preload_ || ("subtitles" !== t.kind && "captions" !== t.kind)) && gi(this.src, this)) : (this.loaded_ = !0); } startTracking() { (this.rvf_ = this.tech_.requestVideoFrameCallback( this.timeupdateHandler )), this.tech_.on("timeupdate", this.timeupdateHandler); } stopTracking() { this.rvf_ && (this.tech_.cancelVideoFrameCallback(this.rvf_), (this.rvf_ = void 0)), this.tech_.off("timeupdate", this.timeupdateHandler); } addCue(e) { let t = e; if (i().vttjs && !(e instanceof i().vttjs.VTTCue)) { t = new (i().vttjs.VTTCue)(e.startTime, e.endTime, e.text); for (const n in e) n in t || (t[n] = e[n]); (t.id = e.id), (t.originalCue_ = e); } const n = this.tech_.textTracks(); for (let e = 0; e < n.length; e++) n[e] !== this && n[e].removeCue(t); this.cues_.push(t), this.cues.setCues_(this.cues_); } removeCue(e) { let t = this.cues_.length; for (; t--; ) { const n = this.cues_[t]; if (n === e || (n.originalCue_ && n.originalCue_ === e)) { this.cues_.splice(t, 1), this.cues.setCues_(this.cues_); break; } } } } mi.prototype.allowedEvents_ = { cuechange: "cuechange" }; class yi extends ui { constructor(e = {}) { const t = qt(e, { kind: oi[e.kind] || "" }); super(t); let n = !1; Object.defineProperty(this, "enabled", { get: () => n, set(e) { "boolean" == typeof e && e !== n && ((n = e), this.trigger("enabledchange")); }, }), t.enabled && (this.enabled = t.enabled), (this.loaded_ = !0); } } class vi extends ui { constructor(e = {}) { const t = qt(e, { kind: ii[e.kind] || "" }); super(t); let n = !1; Object.defineProperty(this, "selected", { get: () => n, set(e) { "boolean" == typeof e && e !== n && ((n = e), this.trigger("selectedchange")); }, }), t.selected && (this.selected = t.selected); } } class bi extends vr { constructor(e = {}) { let t; super(); const n = new mi(e); (this.kind = n.kind), (this.src = n.src), (this.srclang = n.language), (this.label = n.label), (this.default = n.default), Object.defineProperties(this, { readyState: { get: () => t }, track: { get: () => n }, }), (t = bi.NONE), n.addEventListener("loadeddata", () => { (t = bi.LOADED), this.trigger({ type: "load", target: this }); }); } } (bi.prototype.allowedEvents_ = { load: "load" }), (bi.NONE = 0), (bi.LOADING = 1), (bi.LOADED = 2), (bi.ERROR = 3); const _i = { audio: { ListClass: class extends Jr { constructor(e = []) { for (let t = e.length - 1; t >= 0; t--) if (e[t].enabled) { ei(e, e[t]); break; } super(e), (this.changing_ = !1); } addTrack(e) { e.enabled && ei(this, e), super.addTrack(e), e.addEventListener && ((e.enabledChange_ = () => { this.changing_ || ((this.changing_ = !0), ei(this, e), (this.changing_ = !1), this.trigger("change")); }), e.addEventListener("enabledchange", e.enabledChange_)); } removeTrack(e) { super.removeTrack(e), e.removeEventListener && e.enabledChange_ && (e.removeEventListener("enabledchange", e.enabledChange_), (e.enabledChange_ = null)); } }, TrackClass: yi, capitalName: "Audio", }, video: { ListClass: class extends Jr { constructor(e = []) { for (let t = e.length - 1; t >= 0; t--) if (e[t].selected) { ti(e, e[t]); break; } super(e), (this.changing_ = !1), Object.defineProperty(this, "selectedIndex", { get() { for (let e = 0; e < this.length; e++) if (this[e].selected) return e; return -1; }, set() {}, }); } addTrack(e) { e.selected && ti(this, e), super.addTrack(e), e.addEventListener && ((e.selectedChange_ = () => { this.changing_ || ((this.changing_ = !0), ti(this, e), (this.changing_ = !1), this.trigger("change")); }), e.addEventListener("selectedchange", e.selectedChange_)); } removeTrack(e) { super.removeTrack(e), e.removeEventListener && e.selectedChange_ && (e.removeEventListener("selectedchange", e.selectedChange_), (e.selectedChange_ = null)); } }, TrackClass: vi, capitalName: "Video", }, text: { ListClass: ni, TrackClass: mi, capitalName: "Text" }, }; Object.keys(_i).forEach(function (e) { (_i[e].getterName = `${e}Tracks`), (_i[e].privateName = `${e}Tracks_`); }); const wi = { remoteText: { ListClass: ni, TrackClass: mi, capitalName: "RemoteText", getterName: "remoteTextTracks", privateName: "remoteTextTracks_", }, remoteTextEl: { ListClass: class { constructor(e = []) { (this.trackElements_ = []), Object.defineProperty(this, "length", { get() { return this.trackElements_.length; }, }); for (let t = 0, n = e.length; t < n; t++) this.addTrackElement_(e[t]); } addTrackElement_(e) { const t = this.trackElements_.length; "" + t in this || Object.defineProperty(this, t, { get() { return this.trackElements_[t]; }, }), -1 === this.trackElements_.indexOf(e) && this.trackElements_.push(e); } getTrackElementByTrack_(e) { let t; for (let n = 0, r = this.trackElements_.length; n < r; n++) if (e === this.trackElements_[n].track) { t = this.trackElements_[n]; break; } return t; } removeTrackElement_(e) { for (let t = 0, n = this.trackElements_.length; t < n; t++) if (e === this.trackElements_[t]) { this.trackElements_[t].track && "function" == typeof this.trackElements_[t].track.off && this.trackElements_[t].track.off(), "function" == typeof this.trackElements_[t].off && this.trackElements_[t].off(), this.trackElements_.splice(t, 1); break; } } }, TrackClass: bi, capitalName: "RemoteTextTrackEls", getterName: "remoteTextTrackEls", privateName: "remoteTextTrackEls_", }, }, Ti = Object.assign({}, _i, wi); (wi.names = Object.keys(wi)), (_i.names = Object.keys(_i)), (Ti.names = [].concat(wi.names).concat(_i.names)); class xi extends Dr { constructor(e = {}, t = function () {}) { (e.reportTouchActivity = !1), super(null, e, t), (this.onDurationChange_ = (e) => this.onDurationChange(e)), (this.trackProgress_ = (e) => this.trackProgress(e)), (this.trackCurrentTime_ = (e) => this.trackCurrentTime(e)), (this.stopTrackingCurrentTime_ = (e) => this.stopTrackingCurrentTime(e)), (this.disposeSourceHandler_ = (e) => this.disposeSourceHandler(e)), (this.queuedHanders_ = new Set()), (this.hasStarted_ = !1), this.on("playing", function () { this.hasStarted_ = !0; }), this.on("loadstart", function () { this.hasStarted_ = !1; }), Ti.names.forEach((t) => { const n = Ti[t]; e && e[n.getterName] && (this[n.privateName] = e[n.getterName]); }), this.featuresProgressEvents || this.manualProgressOn(), this.featuresTimeupdateEvents || this.manualTimeUpdatesOn(), ["Text", "Audio", "Video"].forEach((t) => { !1 === e[`native${t}Tracks`] && (this[`featuresNative${t}Tracks`] = !1); }), !1 === e.nativeCaptions || !1 === e.nativeTextTracks ? (this.featuresNativeTextTracks = !1) : (!0 !== e.nativeCaptions && !0 !== e.nativeTextTracks) || (this.featuresNativeTextTracks = !0), this.featuresNativeTextTracks || this.emulateTextTracks(), (this.preloadTextTracks = !1 !== e.preloadTextTracks), (this.autoRemoteTextTracks_ = new Ti.text.ListClass()), this.initTrackListeners(), e.nativeControlsForTouch || this.emitTapEvents(), this.constructor && (this.name_ = this.constructor.name || "Unknown Tech"); } triggerSourceset(e) { this.isReady_ || this.one("ready", () => this.setTimeout(() => this.triggerSourceset(e), 1) ), this.trigger({ src: e, type: "sourceset" }); } manualProgressOn() { this.on("durationchange", this.onDurationChange_), (this.manualProgress = !0), this.one("ready", this.trackProgress_); } manualProgressOff() { (this.manualProgress = !1), this.stopTrackingProgress(), this.off("durationchange", this.onDurationChange_); } trackProgress(e) { this.stopTrackingProgress(), (this.progressInterval = this.setInterval( pr(this, function () { const e = this.bufferedPercent(); this.bufferedPercent_ !== e && this.trigger("progress"), (this.bufferedPercent_ = e), 1 === e && this.stopTrackingProgress(); }), 500 )); } onDurationChange(e) { this.duration_ = this.duration(); } buffered() { return Br(0, 0); } bufferedPercent() { return Vr(this.buffered(), this.duration_); } stopTrackingProgress() { this.clearInterval(this.progressInterval); } manualTimeUpdatesOn() { (this.manualTimeUpdates = !0), this.on("play", this.trackCurrentTime_), this.on("pause", this.stopTrackingCurrentTime_); } manualTimeUpdatesOff() { (this.manualTimeUpdates = !1), this.stopTrackingCurrentTime(), this.off("play", this.trackCurrentTime_), this.off("pause", this.stopTrackingCurrentTime_); } trackCurrentTime() { this.currentTimeInterval && this.stopTrackingCurrentTime(), (this.currentTimeInterval = this.setInterval(function () { this.trigger({ type: "timeupdate", target: this, manuallyTriggered: !0, }); }, 250)); } stopTrackingCurrentTime() { this.clearInterval(this.currentTimeInterval), this.trigger({ type: "timeupdate", target: this, manuallyTriggered: !0, }); } dispose() { this.clearTracks(_i.names), this.manualProgress && this.manualProgressOff(), this.manualTimeUpdates && this.manualTimeUpdatesOff(), super.dispose(); } clearTracks(e) { (e = [].concat(e)).forEach((e) => { const t = this[`${e}Tracks`]() || []; let n = t.length; for (; n--; ) { const r = t[n]; "text" === e && this.removeRemoteTextTrack(r), t.removeTrack(r); } }); } cleanupAutoTextTracks() { const e = this.autoRemoteTextTracks_ || []; let t = e.length; for (; t--; ) { const n = e[t]; this.removeRemoteTextTrack(n); } } reset() {} crossOrigin() {} setCrossOrigin() {} error(e) { return ( void 0 !== e && ((this.error_ = new Wr(e)), this.trigger("error")), this.error_ ); } played() { return this.hasStarted_ ? Br(0, 0) : Br(); } play() {} setScrubbing(e) {} scrubbing() {} setCurrentTime(e) { this.manualTimeUpdates && this.trigger({ type: "timeupdate", target: this, manuallyTriggered: !0, }); } initTrackListeners() { _i.names.forEach((e) => { const t = _i[e], n = () => { this.trigger(`${e}trackchange`); }, r = this[t.getterName](); r.addEventListener("removetrack", n), r.addEventListener("addtrack", n), this.on("dispose", () => { r.removeEventListener("removetrack", n), r.removeEventListener("addtrack", n); }); }); } addWebVttScript_() { if (!i().WebVTT) if (a().body.contains(this.el())) { if ( !this.options_["vtt.js"] && Ht(h()) && Object.keys(h()).length > 0 ) return void this.trigger("vttjsloaded"); const e = a().createElement("script"); (e.src = this.options_["vtt.js"] || "https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js"), (e.onload = () => { this.trigger("vttjsloaded"); }), (e.onerror = () => { this.trigger("vttjserror"); }), this.on("dispose", () => { (e.onload = null), (e.onerror = null); }), (i().WebVTT = !0), this.el().parentNode.appendChild(e); } else this.ready(this.addWebVttScript_); } emulateTextTracks() { const e = this.textTracks(), t = this.remoteTextTracks(), n = (t) => e.addTrack(t.track), r = (t) => e.removeTrack(t.track); t.on("addtrack", n), t.on("removetrack", r), this.addWebVttScript_(); const i = () => this.trigger("texttrackchange"), o = () => { i(); for (let t = 0; t < e.length; t++) { const n = e[t]; n.removeEventListener("cuechange", i), "showing" === n.mode && n.addEventListener("cuechange", i); } }; o(), e.addEventListener("change", o), e.addEventListener("addtrack", o), e.addEventListener("removetrack", o), this.on("dispose", function () { t.off("addtrack", n), t.off("removetrack", r), e.removeEventListener("change", o), e.removeEventListener("addtrack", o), e.removeEventListener("removetrack", o); for (let t = 0; t < e.length; t++) { e[t].removeEventListener("cuechange", i); } }); } addTextTrack(e, t, n) { if (!e) throw new Error("TextTrack kind is required but was not provided"); return (function (e, t, n, r, i = {}) { const o = e.textTracks(); (i.kind = t), n && (i.label = n), r && (i.language = r), (i.tech = e); const a = new Ti.text.TrackClass(i); return o.addTrack(a), a; })(this, e, t, n); } createRemoteTextTrack(e) { const t = qt(e, { tech: this }); return new wi.remoteTextEl.TrackClass(t); } addRemoteTextTrack(e = {}, t) { const n = this.createRemoteTextTrack(e); return ( "boolean" != typeof t && (t = !1), this.remoteTextTrackEls().addTrackElement_(n), this.remoteTextTracks().addTrack(n.track), !1 === t && this.ready(() => this.autoRemoteTextTracks_.addTrack(n.track)), n ); } removeRemoteTextTrack(e) { const t = this.remoteTextTrackEls().getTrackElementByTrack_(e); this.remoteTextTrackEls().removeTrackElement_(t), this.remoteTextTracks().removeTrack(e), this.autoRemoteTextTracks_.removeTrack(e); } getVideoPlaybackQuality() { return {}; } requestPictureInPicture() { return Promise.reject(); } disablePictureInPicture() { return !0; } setDisablePictureInPicture() {} requestVideoFrameCallback(e) { const t = tr(); return ( !this.isReady_ || this.paused() ? (this.queuedHanders_.add(t), this.one("playing", () => { this.queuedHanders_.has(t) && (this.queuedHanders_.delete(t), e()); })) : this.requestNamedAnimationFrame(t, e), t ); } cancelVideoFrameCallback(e) { this.queuedHanders_.has(e) ? this.queuedHanders_.delete(e) : this.cancelNamedAnimationFrame(e); } setPoster() {} playsinline() {} setPlaysinline() {} overrideNativeAudioTracks(e) {} overrideNativeVideoTracks(e) {} canPlayType(e) { return ""; } static canPlayType(e) { return ""; } static canPlaySource(e, t) { return xi.canPlayType(e.type); } static isTech(e) { return e.prototype instanceof xi || e instanceof xi || e === xi; } static registerTech(e, t) { if ((xi.techs_ || (xi.techs_ = {}), !xi.isTech(t))) throw new Error(`Tech ${e} must be a Tech`); if (!xi.canPlayType) throw new Error( "Techs must have a static canPlayType method on them" ); if (!xi.canPlaySource) throw new Error( "Techs must have a static canPlaySource method on them" ); return ( (e = Mr(e)), (xi.techs_[e] = t), (xi.techs_[Ir(e)] = t), "Tech" !== e && xi.defaultTechOrder_.push(e), t ); } static getTech(e) { if (e) return xi.techs_ && xi.techs_[e] ? xi.techs_[e] : ((e = Mr(e)), i() && i().videojs && i().videojs[e] ? (Dt.warn( `The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)` ), i().videojs[e]) : void 0); } } Ti.names.forEach(function (e) { const t = Ti[e]; xi.prototype[t.getterName] = function () { return ( (this[t.privateName] = this[t.privateName] || new t.ListClass()), this[t.privateName] ); }; }), (xi.prototype.featuresVolumeControl = !0), (xi.prototype.featuresMuteControl = !0), (xi.prototype.featuresFullscreenResize = !1), (xi.prototype.featuresPlaybackRate = !1), (xi.prototype.featuresProgressEvents = !1), (xi.prototype.featuresSourceset = !1), (xi.prototype.featuresTimeupdateEvents = !1), (xi.prototype.featuresNativeTextTracks = !1), (xi.prototype.featuresVideoFrameCallback = !1), (xi.withSourceHandlers = function (e) { (e.registerSourceHandler = function (t, n) { let r = e.sourceHandlers; r || (r = e.sourceHandlers = []), void 0 === n && (n = r.length), r.splice(n, 0, t); }), (e.canPlayType = function (t) { const n = e.sourceHandlers || []; let r; for (let e = 0; e < n.length; e++) if (((r = n[e].canPlayType(t)), r)) return r; return ""; }), (e.selectSourceHandler = function (t, n) { const r = e.sourceHandlers || []; let i; for (let e = 0; e < r.length; e++) if (((i = r[e].canHandleSource(t, n)), i)) return r[e]; return null; }), (e.canPlaySource = function (t, n) { const r = e.selectSourceHandler(t, n); return r ? r.canHandleSource(t, n) : ""; }); ["seekable", "seeking", "duration"].forEach(function (e) { const t = this[e]; "function" == typeof t && (this[e] = function () { return this.sourceHandler_ && this.sourceHandler_[e] ? this.sourceHandler_[e].apply(this.sourceHandler_, arguments) : t.apply(this, arguments); }); }, e.prototype), (e.prototype.setSource = function (t) { let n = e.selectSourceHandler(t, this.options_); n || (e.nativeSourceHandler ? (n = e.nativeSourceHandler) : Dt.error( "No source handler found for the current source." )), this.disposeSourceHandler(), this.off("dispose", this.disposeSourceHandler_), n !== e.nativeSourceHandler && (this.currentSource_ = t), (this.sourceHandler_ = n.handleSource(t, this, this.options_)), this.one("dispose", this.disposeSourceHandler_); }), (e.prototype.disposeSourceHandler = function () { this.currentSource_ && (this.clearTracks(["audio", "video"]), (this.currentSource_ = null)), this.cleanupAutoTextTracks(), this.sourceHandler_ && (this.sourceHandler_.dispose && this.sourceHandler_.dispose(), (this.sourceHandler_ = null)); }); }), Dr.registerComponent("Tech", xi), xi.registerTech("Tech", xi), (xi.defaultTechOrder_ = []); const Si = {}, ki = {}, Ei = {}; function Oi(e, t, n) { e.setTimeout(() => Pi(t, Si[t.type], n, e), 1); } function Ci(e, t, n, r = null) { const i = "call" + Mr(n), o = e.reduce(Mi(i), r), a = o === Ei, s = a ? null : t[n](o); return ( (function (e, t, n, r) { for (let i = e.length - 1; i >= 0; i--) { const o = e[i]; o[t] && o[t](r, n); } })(e, n, s, a), s ); } const Li = { buffered: 1, currentTime: 1, duration: 1, muted: 1, played: 1, paused: 1, seekable: 1, volume: 1, ended: 1, }, Ai = { setCurrentTime: 1, setMuted: 1, setVolume: 1 }, Ii = { play: 1, pause: 1 }; function Mi(e) { return (t, n) => (t === Ei ? Ei : n[e] ? n[e](t) : t); } function Pi(e = {}, t = [], n, r, i = [], o = !1) { const [a, ...s] = t; if ("string" == typeof a) Pi(e, Si[a], n, r, i, o); else if (a) { const t = (function (e, t) { const n = ki[e.id()]; let r = null; if (null == n) return (r = t(e)), (ki[e.id()] = [[t, r]]), r; for (let e = 0; e < n.length; e++) { const [i, o] = n[e]; i === t && (r = o); } return null === r && ((r = t(e)), n.push([t, r])), r; })(r, a); if (!t.setSource) return i.push(t), Pi(e, s, n, r, i, o); t.setSource(Object.assign({}, e), function (a, u) { if (a) return Pi(e, s, n, r, i, o); i.push(t), Pi(u, e.type === u.type ? s : Si[u.type], n, r, i, o); }); } else s.length ? Pi(e, s, n, r, i, o) : o ? n(e, i) : Pi(e, Si["*"], n, r, i, !0); } const Ri = { opus: "video/ogg", ogv: "video/ogg", mp4: "video/mp4", mov: "video/mp4", m4v: "video/mp4", mkv: "video/x-matroska", m4a: "audio/mp4", mp3: "audio/mpeg", aac: "audio/aac", caf: "audio/x-caf", flac: "audio/flac", oga: "audio/ogg", wav: "audio/wav", m3u8: "application/x-mpegURL", mpd: "application/dash+xml", jpg: "image/jpeg", jpeg: "image/jpeg", gif: "image/gif", png: "image/png", svg: "image/svg+xml", webp: "image/webp", }, Di = function (e = "") { const t = fi(e); return Ri[t.toLowerCase()] || ""; }, ji = function (e) { if (Array.isArray(e)) { let t = []; e.forEach(function (e) { (e = ji(e)), Array.isArray(e) ? (t = t.concat(e)) : zt(e) && t.push(e); }), (e = t); } else e = "string" == typeof e && e.trim() ? [Ni({ src: e })] : zt(e) && "string" == typeof e.src && e.src && e.src.trim() ? [Ni(e)] : []; return e; }; function Ni(e) { if (!e.type) { const t = Di(e.src); t && (e.type = t); } return e; } Dr.registerComponent( "MediaLoader", class extends Dr { constructor(e, t, n) { if ( (super(e, qt({ createEl: !1 }, t), n), t.playerOptions.sources && 0 !== t.playerOptions.sources.length) ) e.src(t.playerOptions.sources); else for ( let n = 0, r = t.playerOptions.techOrder; n < r.length; n++ ) { const t = Mr(r[n]); let i = xi.getTech(t); if ((t || (i = Dr.getComponent(t)), i && i.isSupported())) { e.loadTech_(t); break; } } } } ); class Bi extends Dr { constructor(e, t) { super(e, t), this.options_.controlText && this.controlText(this.options_.controlText), (this.handleMouseOver_ = (e) => this.handleMouseOver(e)), (this.handleMouseOut_ = (e) => this.handleMouseOut(e)), (this.handleClick_ = (e) => this.handleClick(e)), (this.handleKeyDown_ = (e) => this.handleKeyDown(e)), this.emitTapEvents(), this.enable(); } createEl(e = "div", t = {}, n = {}) { (t = Object.assign( { className: this.buildCSSClass(), tabIndex: 0 }, t )), "button" === e && Dt.error( `Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.` ), (n = Object.assign({ role: "button" }, n)), (this.tabIndex_ = t.tabIndex); const r = vn(e, t, n); return ( r.appendChild( vn( "span", { className: "vjs-icon-placeholder" }, { "aria-hidden": !0 } ) ), this.createControlTextEl(r), r ); } dispose() { (this.controlTextEl_ = null), super.dispose(); } createControlTextEl(e) { return ( (this.controlTextEl_ = vn( "span", { className: "vjs-control-text" }, { "aria-live": "polite" } )), e && e.appendChild(this.controlTextEl_), this.controlText(this.controlText_, e), this.controlTextEl_ ); } controlText(e, t = this.el()) { if (void 0 === e) return this.controlText_ || "Need Text"; const n = this.localize(e); (this.controlText_ = e), bn(this.controlTextEl_, n), this.nonIconControl || this.player_.options_.noUITitleAttributes || t.setAttribute("title", n); } buildCSSClass() { return `vjs-control vjs-button ${super.buildCSSClass()}`; } enable() { this.enabled_ || ((this.enabled_ = !0), this.removeClass("vjs-disabled"), this.el_.setAttribute("aria-disabled", "false"), void 0 !== this.tabIndex_ && this.el_.setAttribute("tabIndex", this.tabIndex_), this.on(["tap", "click"], this.handleClick_), this.on("keydown", this.handleKeyDown_)); } disable() { (this.enabled_ = !1), this.addClass("vjs-disabled"), this.el_.setAttribute("aria-disabled", "true"), void 0 !== this.tabIndex_ && this.el_.removeAttribute("tabIndex"), this.off("mouseover", this.handleMouseOver_), this.off("mouseout", this.handleMouseOut_), this.off(["tap", "click"], this.handleClick_), this.off("keydown", this.handleKeyDown_); } handleLanguagechange() { this.controlText(this.controlText_); } handleClick(e) { this.options_.clickHandler && this.options_.clickHandler.call(this, arguments); } handleKeyDown(e) { u().isEventKey(e, "Space") || u().isEventKey(e, "Enter") ? (e.preventDefault(), e.stopPropagation(), this.trigger("click")) : super.handleKeyDown(e); } } Dr.registerComponent("ClickableComponent", Bi); class Ui extends Bi { constructor(e, t) { super(e, t), this.update(), (this.update_ = (e) => this.update(e)), e.on("posterchange", this.update_); } dispose() { this.player().off("posterchange", this.update_), super.dispose(); } createEl() { return vn("div", { className: "vjs-poster" }); } crossOrigin(e) { if (void 0 === e) return this.$("img") ? this.$("img").crossOrigin : this.player_.tech_ && this.player_.tech_.isReady_ ? this.player_.crossOrigin() : this.player_.options_.crossOrigin || this.player_.options_.crossorigin || null; null === e || "anonymous" === e || "use-credentials" === e ? this.$("img") && (this.$("img").crossOrigin = e) : this.player_.log.warn( `crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"` ); } update(e) { const t = this.player().poster(); this.setSrc(t), t ? this.show() : this.hide(); } setSrc(e) { e ? (this.$("img") || this.el_.appendChild( vn( "picture", { className: "vjs-poster", tabIndex: -1 }, {}, vn( "img", { loading: "lazy", crossOrigin: this.crossOrigin() }, { alt: "" } ) ) ), (this.$("img").src = e)) : (this.el_.textContent = ""); } handleClick(e) { this.player_.controls() && (this.player_.tech(!0) && this.player_.tech(!0).focus(), this.player_.paused() ? Gr(this.player_.play()) : this.player_.pause()); } } (Ui.prototype.crossorigin = Ui.prototype.crossOrigin), Dr.registerComponent("PosterImage", Ui); const Fi = { monospace: "monospace", sansSerif: "sans-serif", serif: "serif", monospaceSansSerif: '"Andale Mono", "Lucida Console", monospace', monospaceSerif: '"Courier New", monospace', proportionalSansSerif: "sans-serif", proportionalSerif: "serif", casual: '"Comic Sans MS", Impact, fantasy', script: '"Monotype Corsiva", cursive', smallcaps: '"Andale Mono", "Lucida Console", monospace, sans-serif', }; function zi(e, t) { let n; if (4 === e.length) n = e[1] + e[1] + e[2] + e[2] + e[3] + e[3]; else { if (7 !== e.length) throw new Error( "Invalid color code provided, " + e + "; must be formatted as e.g. #f0e or #f604e2." ); n = e.slice(1); } return ( "rgba(" + parseInt(n.slice(0, 2), 16) + "," + parseInt(n.slice(2, 4), 16) + "," + parseInt(n.slice(4, 6), 16) + "," + t + ")" ); } function Hi(e, t, n) { try { e.style[t] = n; } catch (e) { return; } } Dr.registerComponent( "TextTrackDisplay", class extends Dr { constructor(e, t, n) { super(e, t, n); const r = (e) => this.updateDisplay(e); e.on("loadstart", (e) => this.toggleDisplay(e)), e.on("texttrackchange", r), e.on("loadedmetadata", (e) => this.preselectTrack(e)), e.ready( pr(this, function () { if (e.tech_ && e.tech_.featuresNativeTextTracks) return void this.hide(); e.on("fullscreenchange", r), e.on("playerresize", r); const t = i().screen.orientation || i(), n = i().screen.orientation ? "change" : "orientationchange"; t.addEventListener(n, r), e.on("dispose", () => t.removeEventListener(n, r)); const o = this.options_.playerOptions.tracks || []; for (let e = 0; e < o.length; e++) this.player_.addRemoteTextTrack(o[e], !0); this.preselectTrack(); }) ); } preselectTrack() { const e = { captions: 1, subtitles: 1 }, t = this.player_.textTracks(), n = this.player_.cache_.selectedLanguage; let r, i, o; for (let a = 0; a < t.length; a++) { const s = t[a]; n && n.enabled && n.language && n.language === s.language && s.kind in e ? s.kind === n.kind ? (o = s) : o || (o = s) : n && !n.enabled ? ((o = null), (r = null), (i = null)) : s.default && ("descriptions" !== s.kind || r ? s.kind in e && !i && (i = s) : (r = s)); } o ? (o.mode = "showing") : i ? (i.mode = "showing") : r && (r.mode = "showing"); } toggleDisplay() { this.player_.tech_ && this.player_.tech_.featuresNativeTextTracks ? this.hide() : this.show(); } createEl() { return super.createEl( "div", { className: "vjs-text-track-display" }, { translate: "yes", "aria-live": "off", "aria-atomic": "true" } ); } clearDisplay() { "function" == typeof i().WebVTT && i().WebVTT.processCues(i(), [], this.el_); } updateDisplay() { const e = this.player_.textTracks(), t = this.options_.allowMultipleShowingTracks; if ((this.clearDisplay(), t)) { const t = []; for (let n = 0; n < e.length; ++n) { const r = e[n]; "showing" === r.mode && t.push(r); } return void this.updateForTrack(t); } let n = null, r = null, i = e.length; for (; i--; ) { const t = e[i]; "showing" === t.mode && ("descriptions" === t.kind ? (n = t) : (r = t)); } r ? ("off" !== this.getAttribute("aria-live") && this.setAttribute("aria-live", "off"), this.updateForTrack(r)) : n && ("assertive" !== this.getAttribute("aria-live") && this.setAttribute("aria-live", "assertive"), this.updateForTrack(n)); } updateDisplayState(e) { const t = this.player_.textTrackSettings.getValues(), n = e.activeCues; let r = n.length; for (; r--; ) { const e = n[r]; if (!e) continue; const o = e.displayState; if ( (t.color && (o.firstChild.style.color = t.color), t.textOpacity && Hi( o.firstChild, "color", zi(t.color || "#fff", t.textOpacity) ), t.backgroundColor && (o.firstChild.style.backgroundColor = t.backgroundColor), t.backgroundOpacity && Hi( o.firstChild, "backgroundColor", zi(t.backgroundColor || "#000", t.backgroundOpacity) ), t.windowColor && (t.windowOpacity ? Hi( o, "backgroundColor", zi(t.windowColor, t.windowOpacity) ) : (o.style.backgroundColor = t.windowColor)), t.edgeStyle && ("dropshadow" === t.edgeStyle ? (o.firstChild.style.textShadow = "2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222") : "raised" === t.edgeStyle ? (o.firstChild.style.textShadow = "1px 1px #222, 2px 2px #222, 3px 3px #222") : "depressed" === t.edgeStyle ? (o.firstChild.style.textShadow = "1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222") : "uniform" === t.edgeStyle && (o.firstChild.style.textShadow = "0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")), t.fontPercent && 1 !== t.fontPercent) ) { const e = i().parseFloat(o.style.fontSize); (o.style.fontSize = e * t.fontPercent + "px"), (o.style.height = "auto"), (o.style.top = "auto"); } t.fontFamily && "default" !== t.fontFamily && ("small-caps" === t.fontFamily ? (o.firstChild.style.fontVariant = "small-caps") : (o.firstChild.style.fontFamily = Fi[t.fontFamily])); } } updateForTrack(e) { if ( (Array.isArray(e) || (e = [e]), "function" != typeof i().WebVTT || e.every((e) => !e.activeCues)) ) return; const t = []; for (let n = 0; n < e.length; ++n) { const r = e[n]; for (let e = 0; e < r.activeCues.length; ++e) t.push(r.activeCues[e]); } i().WebVTT.processCues(i(), t, this.el_); for (let t = 0; t < e.length; ++t) { const n = e[t]; for (let e = 0; e < n.activeCues.length; ++e) { const r = n.activeCues[e].displayState; Tn( r, "vjs-text-track-cue", "vjs-text-track-cue-" + (n.language ? n.language : t) ), n.language && Cn(r, "lang", n.language); } this.player_.textTrackSettings && this.updateDisplayState(n); } } } ); Dr.registerComponent( "LoadingSpinner", class extends Dr { createEl() { const e = this.player_.isAudio(), t = this.localize(e ? "Audio Player" : "Video Player"), n = vn("span", { className: "vjs-control-text", textContent: this.localize("{1} is loading.", [t]), }), r = super.createEl("div", { className: "vjs-loading-spinner", dir: "ltr", }); return r.appendChild(n), r; } handleLanguagechange() { this.$(".vjs-control-text").textContent = this.localize( "{1} is loading.", [this.player_.isAudio() ? "Audio Player" : "Video Player"] ); } } ); class qi extends Bi { createEl(e, t = {}, n = {}) { const r = vn( "button", (t = Object.assign({ className: this.buildCSSClass() }, t)), (n = Object.assign({ type: "button" }, n)) ); return ( r.appendChild( vn( "span", { className: "vjs-icon-placeholder" }, { "aria-hidden": !0 } ) ), this.createControlTextEl(r), r ); } addChild(e, t = {}) { const n = this.constructor.name; return ( Dt.warn( `Adding an actionable (user controllable) child to a Button (${n}) is not supported; use a ClickableComponent instead.` ), Dr.prototype.addChild.call(this, e, t) ); } enable() { super.enable(), this.el_.removeAttribute("disabled"); } disable() { super.disable(), this.el_.setAttribute("disabled", "disabled"); } handleKeyDown(e) { u().isEventKey(e, "Space") || u().isEventKey(e, "Enter") ? e.stopPropagation() : super.handleKeyDown(e); } } Dr.registerComponent("Button", qi); class Zi extends qi { constructor(e, t) { super(e, t), (this.mouseused_ = !1), this.on("mousedown", (e) => this.handleMouseDown(e)); } buildCSSClass() { return "vjs-big-play-button"; } handleClick(e) { const t = this.player_.play(); if (this.mouseused_ && e.clientX && e.clientY) return ( Gr(t), void (this.player_.tech(!0) && this.player_.tech(!0).focus()) ); const n = this.player_.getChild("controlBar"), r = n && n.getChild("playToggle"); if (!r) return void this.player_.tech(!0).focus(); const i = () => r.focus(); $r(t) ? t.then(i, () => {}) : this.setTimeout(i, 1); } handleKeyDown(e) { (this.mouseused_ = !1), super.handleKeyDown(e); } handleMouseDown(e) { this.mouseused_ = !0; } } (Zi.prototype.controlText_ = "Play Video"), Dr.registerComponent("BigPlayButton", Zi); Dr.registerComponent( "CloseButton", class extends qi { constructor(e, t) { super(e, t), this.controlText((t && t.controlText) || this.localize("Close")); } buildCSSClass() { return `vjs-close-button ${super.buildCSSClass()}`; } handleClick(e) { this.trigger({ type: "close", bubbles: !1 }); } handleKeyDown(e) { u().isEventKey(e, "Esc") ? (e.preventDefault(), e.stopPropagation(), this.trigger("click")) : super.handleKeyDown(e); } } ); class Vi extends qi { constructor(e, t = {}) { super(e, t), (t.replay = void 0 === t.replay || t.replay), this.on(e, "play", (e) => this.handlePlay(e)), this.on(e, "pause", (e) => this.handlePause(e)), t.replay && this.on(e, "ended", (e) => this.handleEnded(e)); } buildCSSClass() { return `vjs-play-control ${super.buildCSSClass()}`; } handleClick(e) { this.player_.paused() ? Gr(this.player_.play()) : this.player_.pause(); } handleSeeked(e) { this.removeClass("vjs-ended"), this.player_.paused() ? this.handlePause(e) : this.handlePlay(e); } handlePlay(e) { this.removeClass("vjs-ended", "vjs-paused"), this.addClass("vjs-playing"), this.controlText("Pause"); } handlePause(e) { this.removeClass("vjs-playing"), this.addClass("vjs-paused"), this.controlText("Play"); } handleEnded(e) { this.removeClass("vjs-playing"), this.addClass("vjs-ended"), this.controlText("Replay"), this.one(this.player_, "seeked", (e) => this.handleSeeked(e)); } } (Vi.prototype.controlText_ = "Play"), Dr.registerComponent("PlayToggle", Vi); class Wi extends Dr { constructor(e, t) { super(e, t), this.on(e, ["timeupdate", "ended"], (e) => this.updateContent(e)), this.updateTextNode_(); } createEl() { const e = this.buildCSSClass(), t = super.createEl("div", { className: `${e} vjs-time-control vjs-control`, }), n = vn( "span", { className: "vjs-control-text", textContent: `${this.localize(this.labelText_)} `, }, { role: "presentation" } ); return ( t.appendChild(n), (this.contentEl_ = vn( "span", { className: `${e}-display` }, { role: "presentation" } )), t.appendChild(this.contentEl_), t ); } dispose() { (this.contentEl_ = null), (this.textNode_ = null), super.dispose(); } updateTextNode_(e = 0) { (e = qr(e)), this.formattedTime_ !== e && ((this.formattedTime_ = e), this.requestNamedAnimationFrame( "TimeDisplay#updateTextNode_", () => { if (!this.contentEl_) return; let e = this.textNode_; e && this.contentEl_.firstChild !== e && ((e = null), Dt.warn( "TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead." )), (this.textNode_ = a().createTextNode(this.formattedTime_)), this.textNode_ && (e ? this.contentEl_.replaceChild(this.textNode_, e) : this.contentEl_.appendChild(this.textNode_)); } )); } updateContent(e) {} } (Wi.prototype.labelText_ = "Time"), (Wi.prototype.controlText_ = "Time"), Dr.registerComponent("TimeDisplay", Wi); class $i extends Wi { buildCSSClass() { return "vjs-current-time"; } updateContent(e) { let t; (t = this.player_.ended() ? this.player_.duration() : this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime()), this.updateTextNode_(t); } } ($i.prototype.labelText_ = "Current Time"), ($i.prototype.controlText_ = "Current Time"), Dr.registerComponent("CurrentTimeDisplay", $i); class Gi extends Wi { constructor(e, t) { super(e, t); const n = (e) => this.updateContent(e); this.on(e, "durationchange", n), this.on(e, "loadstart", n), this.on(e, "loadedmetadata", n); } buildCSSClass() { return "vjs-duration"; } updateContent(e) { const t = this.player_.duration(); this.updateTextNode_(t); } } (Gi.prototype.labelText_ = "Duration"), (Gi.prototype.controlText_ = "Duration"), Dr.registerComponent("DurationDisplay", Gi); Dr.registerComponent( "TimeDivider", class extends Dr { createEl() { const e = super.createEl( "div", { className: "vjs-time-control vjs-time-divider" }, { "aria-hidden": !0 } ), t = super.createEl("div"), n = super.createEl("span", { textContent: "/" }); return t.appendChild(n), e.appendChild(t), e; } } ); class Yi extends Wi { constructor(e, t) { super(e, t), this.on(e, "durationchange", (e) => this.updateContent(e)); } buildCSSClass() { return "vjs-remaining-time"; } createEl() { const e = super.createEl(); return ( !1 !== this.options_.displayNegative && e.insertBefore( vn("span", {}, { "aria-hidden": !0 }, "-"), this.contentEl_ ), e ); } updateContent(e) { if ("number" != typeof this.player_.duration()) return; let t; (t = this.player_.ended() ? 0 : this.player_.remainingTimeDisplay ? this.player_.remainingTimeDisplay() : this.player_.remainingTime()), this.updateTextNode_(t); } } (Yi.prototype.labelText_ = "Remaining Time"), (Yi.prototype.controlText_ = "Remaining Time"), Dr.registerComponent("RemainingTimeDisplay", Yi); Dr.registerComponent( "LiveDisplay", class extends Dr { constructor(e, t) { super(e, t), this.updateShowing(), this.on(this.player(), "durationchange", (e) => this.updateShowing(e) ); } createEl() { const e = super.createEl("div", { className: "vjs-live-control vjs-control", }); return ( (this.contentEl_ = vn( "div", { className: "vjs-live-display" }, { "aria-live": "off" } )), this.contentEl_.appendChild( vn("span", { className: "vjs-control-text", textContent: `${this.localize("Stream Type")} `, }) ), this.contentEl_.appendChild( a().createTextNode(this.localize("LIVE")) ), e.appendChild(this.contentEl_), e ); } dispose() { (this.contentEl_ = null), super.dispose(); } updateShowing(e) { this.player().duration() === 1 / 0 ? this.show() : this.hide(); } } ); class Ki extends qi { constructor(e, t) { super(e, t), this.updateLiveEdgeStatus(), this.player_.liveTracker && ((this.updateLiveEdgeStatusHandler_ = (e) => this.updateLiveEdgeStatus(e)), this.on( this.player_.liveTracker, "liveedgechange", this.updateLiveEdgeStatusHandler_ )); } createEl() { const e = super.createEl("button", { className: "vjs-seek-to-live-control vjs-control", }); return ( (this.textEl_ = vn( "span", { className: "vjs-seek-to-live-text", textContent: this.localize("LIVE"), }, { "aria-hidden": "true" } )), e.appendChild(this.textEl_), e ); } updateLiveEdgeStatus() { !this.player_.liveTracker || this.player_.liveTracker.atLiveEdge() ? (this.setAttribute("aria-disabled", !0), this.addClass("vjs-at-live-edge"), this.controlText("Seek to live, currently playing live")) : (this.setAttribute("aria-disabled", !1), this.removeClass("vjs-at-live-edge"), this.controlText("Seek to live, currently behind live")); } handleClick() { this.player_.liveTracker.seekToLiveEdge(); } dispose() { this.player_.liveTracker && this.off( this.player_.liveTracker, "liveedgechange", this.updateLiveEdgeStatusHandler_ ), (this.textEl_ = null), super.dispose(); } } function Xi(e, t, n) { return (e = Number(e)), Math.min(n, Math.max(t, isNaN(e) ? t : e)); } (Ki.prototype.controlText_ = "Seek to live, currently playing live"), Dr.registerComponent("SeekToLive", Ki); var Qi = Object.freeze({ __proto__: null, clamp: Xi }); class Ji extends Dr { constructor(e, t) { super(e, t), (this.handleMouseDown_ = (e) => this.handleMouseDown(e)), (this.handleMouseUp_ = (e) => this.handleMouseUp(e)), (this.handleKeyDown_ = (e) => this.handleKeyDown(e)), (this.handleClick_ = (e) => this.handleClick(e)), (this.handleMouseMove_ = (e) => this.handleMouseMove(e)), (this.update_ = (e) => this.update(e)), (this.bar = this.getChild(this.options_.barName)), this.vertical(!!this.options_.vertical), this.enable(); } enabled() { return this.enabled_; } enable() { this.enabled() || (this.on("mousedown", this.handleMouseDown_), this.on("touchstart", this.handleMouseDown_), this.on("keydown", this.handleKeyDown_), this.on("click", this.handleClick_), this.on(this.player_, "controlsvisible", this.update), this.playerEvent && this.on(this.player_, this.playerEvent, this.update), this.removeClass("disabled"), this.setAttribute("tabindex", 0), (this.enabled_ = !0)); } disable() { if (!this.enabled()) return; const e = this.bar.el_.ownerDocument; this.off("mousedown", this.handleMouseDown_), this.off("touchstart", this.handleMouseDown_), this.off("keydown", this.handleKeyDown_), this.off("click", this.handleClick_), this.off(this.player_, "controlsvisible", this.update_), this.off(e, "mousemove", this.handleMouseMove_), this.off(e, "mouseup", this.handleMouseUp_), this.off(e, "touchmove", this.handleMouseMove_), this.off(e, "touchend", this.handleMouseUp_), this.removeAttribute("tabindex"), this.addClass("disabled"), this.playerEvent && this.off(this.player_, this.playerEvent, this.update), (this.enabled_ = !1); } createEl(e, t = {}, n = {}) { return ( (t.className = t.className + " vjs-slider"), (t = Object.assign({ tabIndex: 0 }, t)), (n = Object.assign( { role: "slider", "aria-valuenow": 0, "aria-valuemin": 0, "aria-valuemax": 100, }, n )), super.createEl(e, t, n) ); } handleMouseDown(e) { const t = this.bar.el_.ownerDocument; "mousedown" === e.type && e.preventDefault(), "touchstart" !== e.type || Jt || e.preventDefault(), An(), this.addClass("vjs-sliding"), this.trigger("slideractive"), this.on(t, "mousemove", this.handleMouseMove_), this.on(t, "mouseup", this.handleMouseUp_), this.on(t, "touchmove", this.handleMouseMove_), this.on(t, "touchend", this.handleMouseUp_), this.handleMouseMove(e, !0); } handleMouseMove(e) {} handleMouseUp(e) { const t = this.bar.el_.ownerDocument; In(), this.removeClass("vjs-sliding"), this.trigger("sliderinactive"), this.off(t, "mousemove", this.handleMouseMove_), this.off(t, "mouseup", this.handleMouseUp_), this.off(t, "touchmove", this.handleMouseMove_), this.off(t, "touchend", this.handleMouseUp_), this.update(); } update() { if (!this.el_ || !this.bar) return; const e = this.getProgress(); return ( e === this.progress_ || ((this.progress_ = e), this.requestNamedAnimationFrame("Slider#update", () => { const t = this.vertical() ? "height" : "width"; this.bar.el().style[t] = (100 * e).toFixed(2) + "%"; })), e ); } getProgress() { return Number(Xi(this.getPercent(), 0, 1).toFixed(4)); } calculateDistance(e) { const t = Rn(this.el_, e); return this.vertical() ? t.y : t.x; } handleKeyDown(e) { u().isEventKey(e, "Left") || u().isEventKey(e, "Down") ? (e.preventDefault(), e.stopPropagation(), this.stepBack()) : u().isEventKey(e, "Right") || u().isEventKey(e, "Up") ? (e.preventDefault(), e.stopPropagation(), this.stepForward()) : super.handleKeyDown(e); } handleClick(e) { e.stopPropagation(), e.preventDefault(); } vertical(e) { if (void 0 === e) return this.vertical_ || !1; (this.vertical_ = !!e), this.vertical_ ? this.addClass("vjs-slider-vertical") : this.addClass("vjs-slider-horizontal"); } } Dr.registerComponent("Slider", Ji); const eo = (e, t) => Xi((e / t) * 100, 0, 100).toFixed(2) + "%"; Dr.registerComponent( "LoadProgressBar", class extends Dr { constructor(e, t) { super(e, t), (this.partEls_ = []), this.on(e, "progress", (e) => this.update(e)); } createEl() { const e = super.createEl("div", { className: "vjs-load-progress" }), t = vn("span", { className: "vjs-control-text" }), n = vn("span", { textContent: this.localize("Loaded") }), r = a().createTextNode(": "); return ( (this.percentageEl_ = vn("span", { className: "vjs-control-text-loaded-percentage", textContent: "0%", })), e.appendChild(t), t.appendChild(n), t.appendChild(r), t.appendChild(this.percentageEl_), e ); } dispose() { (this.partEls_ = null), (this.percentageEl_ = null), super.dispose(); } update(e) { this.requestNamedAnimationFrame("LoadProgressBar#update", () => { const e = this.player_.liveTracker, t = this.player_.buffered(), n = e && e.isLive() ? e.seekableEnd() : this.player_.duration(), r = this.player_.bufferedEnd(), i = this.partEls_, o = eo(r, n); this.percent_ !== o && ((this.el_.style.width = o), bn(this.percentageEl_, o), (this.percent_ = o)); for (let e = 0; e < t.length; e++) { const n = t.start(e), o = t.end(e); let a = i[e]; a || ((a = this.el_.appendChild(vn())), (i[e] = a)), (a.dataset.start === n && a.dataset.end === o) || ((a.dataset.start = n), (a.dataset.end = o), (a.style.left = eo(n, r)), (a.style.width = eo(o - n, r))); } for (let e = i.length; e > t.length; e--) this.el_.removeChild(i[e - 1]); i.length = t.length; }); } } ); Dr.registerComponent( "TimeTooltip", class extends Dr { constructor(e, t) { super(e, t), (this.update = hr(pr(this, this.update), dr)); } createEl() { return super.createEl( "div", { className: "vjs-time-tooltip" }, { "aria-hidden": "true" } ); } update(e, t, n) { const r = Pn(this.el_), i = Mn(this.player_.el()), o = e.width * t; if (!i || !r) return; const a = e.left - i.left + o, s = e.width - o + (i.right - e.right); let u = r.width / 2; a < u ? (u += u - a) : s < u && (u = s), u < 0 ? (u = 0) : u > r.width && (u = r.width), (u = Math.round(u)), (this.el_.style.right = `-${u}px`), this.write(n); } write(e) { bn(this.el_, e); } updateTime(e, t, n, r) { this.requestNamedAnimationFrame("TimeTooltip#updateTime", () => { let i; const o = this.player_.duration(); if ( this.player_.liveTracker && this.player_.liveTracker.isLive() ) { const e = this.player_.liveTracker.liveWindow(), n = e - t * e; i = (n < 1 ? "" : "-") + qr(n, e); } else i = qr(n, o); this.update(e, t, i), r && r(); }); } } ); class to extends Dr { constructor(e, t) { super(e, t), (this.update = hr(pr(this, this.update), dr)); } createEl() { return super.createEl( "div", { className: "vjs-play-progress vjs-slider-bar" }, { "aria-hidden": "true" } ); } update(e, t) { const n = this.getChild("timeTooltip"); if (!n) return; const r = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime(); n.updateTime(e, t, r); } } (to.prototype.options_ = { children: [] }), ln || Yt || to.prototype.options_.children.push("timeTooltip"), Dr.registerComponent("PlayProgressBar", to); class no extends Dr { constructor(e, t) { super(e, t), (this.update = hr(pr(this, this.update), dr)); } createEl() { return super.createEl("div", { className: "vjs-mouse-display" }); } update(e, t) { const n = t * this.player_.duration(); this.getChild("timeTooltip").updateTime(e, t, n, () => { this.el_.style.left = e.width * t + "px"; }); } } (no.prototype.options_ = { children: ["timeTooltip"] }), Dr.registerComponent("MouseTimeDisplay", no); class ro extends Ji { constructor(e, t) { super(e, t), this.setEventHandlers_(); } setEventHandlers_() { (this.update_ = pr(this, this.update)), (this.update = hr(this.update_, dr)), this.on( this.player_, ["ended", "durationchange", "timeupdate"], this.update ), this.player_.liveTracker && this.on(this.player_.liveTracker, "liveedgechange", this.update), (this.updateInterval = null), (this.enableIntervalHandler_ = (e) => this.enableInterval_(e)), (this.disableIntervalHandler_ = (e) => this.disableInterval_(e)), this.on(this.player_, ["playing"], this.enableIntervalHandler_), this.on( this.player_, ["ended", "pause", "waiting"], this.disableIntervalHandler_ ), "hidden" in a() && "visibilityState" in a() && this.on(a(), "visibilitychange", this.toggleVisibility_); } toggleVisibility_(e) { "hidden" === a().visibilityState ? (this.cancelNamedAnimationFrame("SeekBar#update"), this.cancelNamedAnimationFrame("Slider#update"), this.disableInterval_(e)) : (this.player_.ended() || this.player_.paused() || this.enableInterval_(), this.update()); } enableInterval_() { this.updateInterval || (this.updateInterval = this.setInterval(this.update, dr)); } disableInterval_(e) { (this.player_.liveTracker && this.player_.liveTracker.isLive() && e && "ended" !== e.type) || (this.updateInterval && (this.clearInterval(this.updateInterval), (this.updateInterval = null))); } createEl() { return super.createEl( "div", { className: "vjs-progress-holder" }, { "aria-label": this.localize("Progress Bar") } ); } update(e) { if ("hidden" === a().visibilityState) return; const t = super.update(); return ( this.requestNamedAnimationFrame("SeekBar#update", () => { const e = this.player_.ended() ? this.player_.duration() : this.getCurrentTime_(), n = this.player_.liveTracker; let r = this.player_.duration(); n && n.isLive() && (r = this.player_.liveTracker.liveCurrentTime()), this.percent_ !== t && (this.el_.setAttribute("aria-valuenow", (100 * t).toFixed(2)), (this.percent_ = t)), (this.currentTime_ === e && this.duration_ === r) || (this.el_.setAttribute( "aria-valuetext", this.localize( "progress bar timing: currentTime={1} duration={2}", [qr(e, r), qr(r, r)], "{1} of {2}" ) ), (this.currentTime_ = e), (this.duration_ = r)), this.bar && this.bar.update(Mn(this.el()), this.getProgress()); }), t ); } userSeek_(e) { this.player_.liveTracker && this.player_.liveTracker.isLive() && this.player_.liveTracker.nextSeekedFromUser(), this.player_.currentTime(e); } getCurrentTime_() { return this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime(); } getPercent() { const e = this.getCurrentTime_(); let t; const n = this.player_.liveTracker; return ( n && n.isLive() ? ((t = (e - n.seekableStart()) / n.liveWindow()), n.atLiveEdge() && (t = 1)) : (t = e / this.player_.duration()), t ); } handleMouseDown(e) { Fn(e) && (e.stopPropagation(), (this.videoWasPlaying = !this.player_.paused()), this.player_.pause(), super.handleMouseDown(e)); } handleMouseMove(e, t = !1) { if (!Fn(e)) return; let n; t || this.player_.scrubbing() || this.player_.scrubbing(!0); const r = this.calculateDistance(e), i = this.player_.liveTracker; if (i && i.isLive()) { if (r >= 0.99) return void i.seekToLiveEdge(); const e = i.seekableStart(), t = i.liveCurrentTime(); if ( ((n = e + r * i.liveWindow()), n >= t && (n = t), n <= e && (n = e + 0.1), n === 1 / 0) ) return; } else (n = r * this.player_.duration()), n === this.player_.duration() && (n -= 0.1); this.userSeek_(n); } enable() { super.enable(); const e = this.getChild("mouseTimeDisplay"); e && e.show(); } disable() { super.disable(); const e = this.getChild("mouseTimeDisplay"); e && e.hide(); } handleMouseUp(e) { super.handleMouseUp(e), e && e.stopPropagation(), this.player_.scrubbing(!1), this.player_.trigger({ type: "timeupdate", target: this, manuallyTriggered: !0, }), this.videoWasPlaying ? Gr(this.player_.play()) : this.update_(); } stepForward() { this.userSeek_(this.player_.currentTime() + 5); } stepBack() { this.userSeek_(this.player_.currentTime() - 5); } handleAction(e) { this.player_.paused() ? this.player_.play() : this.player_.pause(); } handleKeyDown(e) { const t = this.player_.liveTracker; if (u().isEventKey(e, "Space") || u().isEventKey(e, "Enter")) e.preventDefault(), e.stopPropagation(), this.handleAction(e); else if (u().isEventKey(e, "Home")) e.preventDefault(), e.stopPropagation(), this.userSeek_(0); else if (u().isEventKey(e, "End")) e.preventDefault(), e.stopPropagation(), t && t.isLive() ? this.userSeek_(t.liveCurrentTime()) : this.userSeek_(this.player_.duration()); else if (/^[0-9]$/.test(u()(e))) { e.preventDefault(), e.stopPropagation(); const n = (10 * (u().codes[u()(e)] - u().codes[0])) / 100; t && t.isLive() ? this.userSeek_(t.seekableStart() + t.liveWindow() * n) : this.userSeek_(this.player_.duration() * n); } else u().isEventKey(e, "PgDn") ? (e.preventDefault(), e.stopPropagation(), this.userSeek_(this.player_.currentTime() - 60)) : u().isEventKey(e, "PgUp") ? (e.preventDefault(), e.stopPropagation(), this.userSeek_(this.player_.currentTime() + 60)) : super.handleKeyDown(e); } dispose() { this.disableInterval_(), this.off( this.player_, ["ended", "durationchange", "timeupdate"], this.update ), this.player_.liveTracker && this.off(this.player_.liveTracker, "liveedgechange", this.update), this.off(this.player_, ["playing"], this.enableIntervalHandler_), this.off( this.player_, ["ended", "pause", "waiting"], this.disableIntervalHandler_ ), "hidden" in a() && "visibilityState" in a() && this.off(a(), "visibilitychange", this.toggleVisibility_), super.dispose(); } } (ro.prototype.options_ = { children: ["loadProgressBar", "playProgressBar"], barName: "playProgressBar", }), ln || Yt || ro.prototype.options_.children.splice(1, 0, "mouseTimeDisplay"), Dr.registerComponent("SeekBar", ro); class io extends Dr { constructor(e, t) { super(e, t), (this.handleMouseMove = hr(pr(this, this.handleMouseMove), dr)), (this.throttledHandleMouseSeek = hr( pr(this, this.handleMouseSeek), dr )), (this.handleMouseUpHandler_ = (e) => this.handleMouseUp(e)), (this.handleMouseDownHandler_ = (e) => this.handleMouseDown(e)), this.enable(); } createEl() { return super.createEl("div", { className: "vjs-progress-control vjs-control", }); } handleMouseMove(e) { const t = this.getChild("seekBar"); if (!t) return; const n = t.getChild("playProgressBar"), r = t.getChild("mouseTimeDisplay"); if (!n && !r) return; const i = t.el(), o = Pn(i); let a = Rn(i, e).x; (a = Xi(a, 0, 1)), r && r.update(o, a), n && n.update(o, t.getProgress()); } handleMouseSeek(e) { const t = this.getChild("seekBar"); t && t.handleMouseMove(e); } enabled() { return this.enabled_; } disable() { if ( (this.children().forEach((e) => e.disable && e.disable()), this.enabled() && (this.off( ["mousedown", "touchstart"], this.handleMouseDownHandler_ ), this.off(this.el_, "mousemove", this.handleMouseMove), this.removeListenersAddedOnMousedownAndTouchstart(), this.addClass("disabled"), (this.enabled_ = !1), this.player_.scrubbing())) ) { const e = this.getChild("seekBar"); this.player_.scrubbing(!1), e.videoWasPlaying && Gr(this.player_.play()); } } enable() { this.children().forEach((e) => e.enable && e.enable()), this.enabled() || (this.on( ["mousedown", "touchstart"], this.handleMouseDownHandler_ ), this.on(this.el_, "mousemove", this.handleMouseMove), this.removeClass("disabled"), (this.enabled_ = !0)); } removeListenersAddedOnMousedownAndTouchstart() { const e = this.el_.ownerDocument; this.off(e, "mousemove", this.throttledHandleMouseSeek), this.off(e, "touchmove", this.throttledHandleMouseSeek), this.off(e, "mouseup", this.handleMouseUpHandler_), this.off(e, "touchend", this.handleMouseUpHandler_); } handleMouseDown(e) { const t = this.el_.ownerDocument, n = this.getChild("seekBar"); n && n.handleMouseDown(e), this.on(t, "mousemove", this.throttledHandleMouseSeek), this.on(t, "touchmove", this.throttledHandleMouseSeek), this.on(t, "mouseup", this.handleMouseUpHandler_), this.on(t, "touchend", this.handleMouseUpHandler_); } handleMouseUp(e) { const t = this.getChild("seekBar"); t && t.handleMouseUp(e), this.removeListenersAddedOnMousedownAndTouchstart(); } } (io.prototype.options_ = { children: ["seekBar"] }), Dr.registerComponent("ProgressControl", io); class oo extends qi { constructor(e, t) { super(e, t), this.on( e, ["enterpictureinpicture", "leavepictureinpicture"], (e) => this.handlePictureInPictureChange(e) ), this.on( e, ["disablepictureinpicturechanged", "loadedmetadata"], (e) => this.handlePictureInPictureEnabledChange(e) ), this.on( e, [ "loadedmetadata", "audioonlymodechange", "audiopostermodechange", ], () => { "audio" === e.currentType().substring(0, 5) || e.audioPosterMode() || e.audioOnlyMode() ? (e.isInPictureInPicture() && e.exitPictureInPicture(), this.hide()) : this.show(); } ), this.disable(); } buildCSSClass() { return `vjs-picture-in-picture-control ${super.buildCSSClass()}`; } handlePictureInPictureEnabledChange() { (a().pictureInPictureEnabled && !1 === this.player_.disablePictureInPicture()) || (this.player_.options_.enableDocumentPictureInPicture && "documentPictureInPicture" in i()) ? this.enable() : this.disable(); } handlePictureInPictureChange(e) { this.player_.isInPictureInPicture() ? this.controlText("Exit Picture-in-Picture") : this.controlText("Picture-in-Picture"), this.handlePictureInPictureEnabledChange(); } handleClick(e) { this.player_.isInPictureInPicture() ? this.player_.exitPictureInPicture() : this.player_.requestPictureInPicture(); } } (oo.prototype.controlText_ = "Picture-in-Picture"), Dr.registerComponent("PictureInPictureToggle", oo); class ao extends qi { constructor(e, t) { super(e, t), this.on(e, "fullscreenchange", (e) => this.handleFullscreenChange(e) ), !1 === a()[e.fsApi_.fullscreenEnabled] && this.disable(); } buildCSSClass() { return `vjs-fullscreen-control ${super.buildCSSClass()}`; } handleFullscreenChange(e) { this.player_.isFullscreen() ? this.controlText("Exit Fullscreen") : this.controlText("Fullscreen"); } handleClick(e) { this.player_.isFullscreen() ? this.player_.exitFullscreen() : this.player_.requestFullscreen(); } } (ao.prototype.controlText_ = "Fullscreen"), Dr.registerComponent("FullscreenToggle", ao); Dr.registerComponent( "VolumeLevel", class extends Dr { createEl() { const e = super.createEl("div", { className: "vjs-volume-level" }); return ( e.appendChild( super.createEl("span", { className: "vjs-control-text" }) ), e ); } } ); Dr.registerComponent( "VolumeLevelTooltip", class extends Dr { constructor(e, t) { super(e, t), (this.update = hr(pr(this, this.update), dr)); } createEl() { return super.createEl( "div", { className: "vjs-volume-tooltip" }, { "aria-hidden": "true" } ); } update(e, t, n, r) { if (!n) { const n = Mn(this.el_), r = Mn(this.player_.el()), i = e.width * t; if (!r || !n) return; const o = e.left - r.left + i, a = e.width - i + (r.right - e.right); let s = n.width / 2; o < s ? (s += s - o) : a < s && (s = a), s < 0 ? (s = 0) : s > n.width && (s = n.width), (this.el_.style.right = `-${s}px`); } this.write(`${r}%`); } write(e) { bn(this.el_, e); } updateVolume(e, t, n, r, i) { this.requestNamedAnimationFrame( "VolumeLevelTooltip#updateVolume", () => { this.update(e, t, n, r.toFixed(0)), i && i(); } ); } } ); class so extends Dr { constructor(e, t) { super(e, t), (this.update = hr(pr(this, this.update), dr)); } createEl() { return super.createEl("div", { className: "vjs-mouse-display" }); } update(e, t, n) { const r = 100 * t; this.getChild("volumeLevelTooltip").updateVolume(e, t, n, r, () => { n ? (this.el_.style.bottom = e.height * t + "px") : (this.el_.style.left = e.width * t + "px"); }); } } (so.prototype.options_ = { children: ["volumeLevelTooltip"] }), Dr.registerComponent("MouseVolumeLevelDisplay", so); class uo extends Ji { constructor(e, t) { super(e, t), this.on("slideractive", (e) => this.updateLastVolume_(e)), this.on(e, "volumechange", (e) => this.updateARIAAttributes(e)), e.ready(() => this.updateARIAAttributes()); } createEl() { return super.createEl( "div", { className: "vjs-volume-bar vjs-slider-bar" }, { "aria-label": this.localize("Volume Level"), "aria-live": "polite", } ); } handleMouseDown(e) { Fn(e) && super.handleMouseDown(e); } handleMouseMove(e) { const t = this.getChild("mouseVolumeLevelDisplay"); if (t) { const n = this.el(), r = Mn(n), i = this.vertical(); let o = Rn(n, e); (o = i ? o.y : o.x), (o = Xi(o, 0, 1)), t.update(r, o, i); } Fn(e) && (this.checkMuted(), this.player_.volume(this.calculateDistance(e))); } checkMuted() { this.player_.muted() && this.player_.muted(!1); } getPercent() { return this.player_.muted() ? 0 : this.player_.volume(); } stepForward() { this.checkMuted(), this.player_.volume(this.player_.volume() + 0.1); } stepBack() { this.checkMuted(), this.player_.volume(this.player_.volume() - 0.1); } updateARIAAttributes(e) { const t = this.player_.muted() ? 0 : this.volumeAsPercentage_(); this.el_.setAttribute("aria-valuenow", t), this.el_.setAttribute("aria-valuetext", t + "%"); } volumeAsPercentage_() { return Math.round(100 * this.player_.volume()); } updateLastVolume_() { const e = this.player_.volume(); this.one("sliderinactive", () => { 0 === this.player_.volume() && this.player_.lastVolume_(e); }); } } (uo.prototype.options_ = { children: ["volumeLevel"], barName: "volumeLevel", }), ln || Yt || uo.prototype.options_.children.splice( 0, 0, "mouseVolumeLevelDisplay" ), (uo.prototype.playerEvent = "volumechange"), Dr.registerComponent("VolumeBar", uo); class co extends Dr { constructor(e, t = {}) { (t.vertical = t.vertical || !1), (void 0 === t.volumeBar || Ht(t.volumeBar)) && ((t.volumeBar = t.volumeBar || {}), (t.volumeBar.vertical = t.vertical)), super(e, t), (function (e, t) { t.tech_ && !t.tech_.featuresVolumeControl && e.addClass("vjs-hidden"), e.on(t, "loadstart", function () { t.tech_.featuresVolumeControl ? e.removeClass("vjs-hidden") : e.addClass("vjs-hidden"); }); })(this, e), (this.throttledHandleMouseMove = hr( pr(this, this.handleMouseMove), dr )), (this.handleMouseUpHandler_ = (e) => this.handleMouseUp(e)), this.on("mousedown", (e) => this.handleMouseDown(e)), this.on("touchstart", (e) => this.handleMouseDown(e)), this.on("mousemove", (e) => this.handleMouseMove(e)), this.on(this.volumeBar, ["focus", "slideractive"], () => { this.volumeBar.addClass("vjs-slider-active"), this.addClass("vjs-slider-active"), this.trigger("slideractive"); }), this.on(this.volumeBar, ["blur", "sliderinactive"], () => { this.volumeBar.removeClass("vjs-slider-active"), this.removeClass("vjs-slider-active"), this.trigger("sliderinactive"); }); } createEl() { let e = "vjs-volume-horizontal"; return ( this.options_.vertical && (e = "vjs-volume-vertical"), super.createEl("div", { className: `vjs-volume-control vjs-control ${e}`, }) ); } handleMouseDown(e) { const t = this.el_.ownerDocument; this.on(t, "mousemove", this.throttledHandleMouseMove), this.on(t, "touchmove", this.throttledHandleMouseMove), this.on(t, "mouseup", this.handleMouseUpHandler_), this.on(t, "touchend", this.handleMouseUpHandler_); } handleMouseUp(e) { const t = this.el_.ownerDocument; this.off(t, "mousemove", this.throttledHandleMouseMove), this.off(t, "touchmove", this.throttledHandleMouseMove), this.off(t, "mouseup", this.handleMouseUpHandler_), this.off(t, "touchend", this.handleMouseUpHandler_); } handleMouseMove(e) { this.volumeBar.handleMouseMove(e); } } (co.prototype.options_ = { children: ["volumeBar"] }), Dr.registerComponent("VolumeControl", co); class lo extends qi { constructor(e, t) { super(e, t), (function (e, t) { t.tech_ && !t.tech_.featuresMuteControl && e.addClass("vjs-hidden"), e.on(t, "loadstart", function () { t.tech_.featuresMuteControl ? e.removeClass("vjs-hidden") : e.addClass("vjs-hidden"); }); })(this, e), this.on(e, ["loadstart", "volumechange"], (e) => this.update(e)); } buildCSSClass() { return `vjs-mute-control ${super.buildCSSClass()}`; } handleClick(e) { const t = this.player_.volume(), n = this.player_.lastVolume_(); if (0 === t) { const e = n < 0.1 ? 0.1 : n; this.player_.volume(e), this.player_.muted(!1); } else this.player_.muted(!this.player_.muted()); } update(e) { this.updateIcon_(), this.updateControlText_(); } updateIcon_() { const e = this.player_.volume(); let t = 3; ln && this.player_.tech_ && this.player_.tech_.el_ && this.player_.muted(this.player_.tech_.el_.muted), 0 === e || this.player_.muted() ? (t = 0) : e < 0.33 ? (t = 1) : e < 0.67 && (t = 2), xn( this.el_, [0, 1, 2, 3].reduce( (e, t) => e + `${t ? " " : ""}vjs-vol-${t}`, "" ) ), Tn(this.el_, `vjs-vol-${t}`); } updateControlText_() { const e = this.player_.muted() || 0 === this.player_.volume() ? "Unmute" : "Mute"; this.controlText() !== e && this.controlText(e); } } (lo.prototype.controlText_ = "Mute"), Dr.registerComponent("MuteToggle", lo); class fo extends Dr { constructor(e, t = {}) { void 0 !== t.inline ? (t.inline = t.inline) : (t.inline = !0), (void 0 === t.volumeControl || Ht(t.volumeControl)) && ((t.volumeControl = t.volumeControl || {}), (t.volumeControl.vertical = !t.inline)), super(e, t), (this.handleKeyPressHandler_ = (e) => this.handleKeyPress(e)), this.on(e, ["loadstart"], (e) => this.volumePanelState_(e)), this.on(this.muteToggle, "keyup", (e) => this.handleKeyPress(e)), this.on(this.volumeControl, "keyup", (e) => this.handleVolumeControlKeyUp(e) ), this.on("keydown", (e) => this.handleKeyPress(e)), this.on("mouseover", (e) => this.handleMouseOver(e)), this.on("mouseout", (e) => this.handleMouseOut(e)), this.on(this.volumeControl, ["slideractive"], this.sliderActive_), this.on( this.volumeControl, ["sliderinactive"], this.sliderInactive_ ); } sliderActive_() { this.addClass("vjs-slider-active"); } sliderInactive_() { this.removeClass("vjs-slider-active"); } volumePanelState_() { this.volumeControl.hasClass("vjs-hidden") && this.muteToggle.hasClass("vjs-hidden") && this.addClass("vjs-hidden"), this.volumeControl.hasClass("vjs-hidden") && !this.muteToggle.hasClass("vjs-hidden") && this.addClass("vjs-mute-toggle-only"); } createEl() { let e = "vjs-volume-panel-horizontal"; return ( this.options_.inline || (e = "vjs-volume-panel-vertical"), super.createEl("div", { className: `vjs-volume-panel vjs-control ${e}`, }) ); } dispose() { this.handleMouseOut(), super.dispose(); } handleVolumeControlKeyUp(e) { u().isEventKey(e, "Esc") && this.muteToggle.focus(); } handleMouseOver(e) { this.addClass("vjs-hover"), ar(a(), "keyup", this.handleKeyPressHandler_); } handleMouseOut(e) { this.removeClass("vjs-hover"), sr(a(), "keyup", this.handleKeyPressHandler_); } handleKeyPress(e) { u().isEventKey(e, "Esc") && this.handleMouseOut(); } } (fo.prototype.options_ = { children: ["muteToggle", "volumeControl"] }), Dr.registerComponent("VolumePanel", fo); Dr.registerComponent( "SkipForward", class extends qi { constructor(e, t) { super(e, t), (this.validOptions = [5, 10, 30]), (this.skipTime = this.getSkipForwardTime()), this.skipTime && this.validOptions.includes(this.skipTime) ? (this.controlText( this.localize("Skip forward {1} seconds", [this.skipTime]) ), this.show()) : this.hide(); } getSkipForwardTime() { const e = this.options_.playerOptions; return ( e.controlBar && e.controlBar.skipButtons && e.controlBar.skipButtons.forward ); } buildCSSClass() { return `vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`; } handleClick(e) { const t = this.player_.currentTime(), n = this.player_.liveTracker, r = n && n.isLive() ? n.seekableEnd() : this.player_.duration(); let i; (i = t + this.skipTime <= r ? t + this.skipTime : r), this.player_.currentTime(i); } handleLanguagechange() { this.controlText( this.localize("Skip forward {1} seconds", [this.skipTime]) ); } } ); class po extends qi { constructor(e, t) { super(e, t), (this.validOptions = [5, 10, 30]), (this.skipTime = this.getSkipBackwardTime()), this.skipTime && this.validOptions.includes(this.skipTime) ? (this.controlText( this.localize("Skip backward {1} seconds", [this.skipTime]) ), this.show()) : this.hide(); } getSkipBackwardTime() { const e = this.options_.playerOptions; return ( e.controlBar && e.controlBar.skipButtons && e.controlBar.skipButtons.backward ); } buildCSSClass() { return `vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`; } handleClick(e) { const t = this.player_.currentTime(), n = this.player_.liveTracker, r = n && n.isLive() && n.seekableStart(); let i; (i = r && t - this.skipTime <= r ? r : t >= this.skipTime ? t - this.skipTime : 0), this.player_.currentTime(i); } handleLanguagechange() { this.controlText( this.localize("Skip backward {1} seconds", [this.skipTime]) ); } } (po.prototype.controlText_ = "Skip Backward"), Dr.registerComponent("SkipBackward", po); class ho extends Dr { constructor(e, t) { super(e, t), t && (this.menuButton_ = t.menuButton), (this.focusedChild_ = -1), this.on("keydown", (e) => this.handleKeyDown(e)), (this.boundHandleBlur_ = (e) => this.handleBlur(e)), (this.boundHandleTapClick_ = (e) => this.handleTapClick(e)); } addEventListenerForItem(e) { e instanceof Dr && (this.on(e, "blur", this.boundHandleBlur_), this.on(e, ["tap", "click"], this.boundHandleTapClick_)); } removeEventListenerForItem(e) { e instanceof Dr && (this.off(e, "blur", this.boundHandleBlur_), this.off(e, ["tap", "click"], this.boundHandleTapClick_)); } removeChild(e) { "string" == typeof e && (e = this.getChild(e)), this.removeEventListenerForItem(e), super.removeChild(e); } addItem(e) { const t = this.addChild(e); t && this.addEventListenerForItem(t); } createEl() { const e = this.options_.contentElType || "ul"; (this.contentEl_ = vn(e, { className: "vjs-menu-content" })), this.contentEl_.setAttribute("role", "menu"); const t = super.createEl("div", { append: this.contentEl_, className: "vjs-menu", }); return ( t.appendChild(this.contentEl_), ar(t, "click", function (e) { e.preventDefault(), e.stopImmediatePropagation(); }), t ); } dispose() { (this.contentEl_ = null), (this.boundHandleBlur_ = null), (this.boundHandleTapClick_ = null), super.dispose(); } handleBlur(e) { const t = e.relatedTarget || a().activeElement; if (!this.children().some((e) => e.el() === t)) { const e = this.menuButton_; e && e.buttonPressed_ && t !== e.el().firstChild && e.unpressButton(); } } handleTapClick(e) { if (this.menuButton_) { this.menuButton_.unpressButton(); const t = this.children(); if (!Array.isArray(t)) return; const n = t.filter((t) => t.el() === e.target)[0]; if (!n) return; "CaptionSettingsMenuItem" !== n.name() && this.menuButton_.focus(); } } handleKeyDown(e) { u().isEventKey(e, "Left") || u().isEventKey(e, "Down") ? (e.preventDefault(), e.stopPropagation(), this.stepForward()) : (u().isEventKey(e, "Right") || u().isEventKey(e, "Up")) && (e.preventDefault(), e.stopPropagation(), this.stepBack()); } stepForward() { let e = 0; void 0 !== this.focusedChild_ && (e = this.focusedChild_ + 1), this.focus(e); } stepBack() { let e = 0; void 0 !== this.focusedChild_ && (e = this.focusedChild_ - 1), this.focus(e); } focus(e = 0) { const t = this.children().slice(); t.length && t[0].hasClass("vjs-menu-title") && t.shift(), t.length > 0 && (e < 0 ? (e = 0) : e >= t.length && (e = t.length - 1), (this.focusedChild_ = e), t[e].el_.focus()); } } Dr.registerComponent("Menu", ho); class go extends Dr { constructor(e, t = {}) { super(e, t), (this.menuButton_ = new qi(e, t)), this.menuButton_.controlText(this.controlText_), this.menuButton_.el_.setAttribute("aria-haspopup", "true"); const n = qi.prototype.buildCSSClass(); (this.menuButton_.el_.className = this.buildCSSClass() + " " + n), this.menuButton_.removeClass("vjs-control"), this.addChild(this.menuButton_), this.update(), (this.enabled_ = !0); const r = (e) => this.handleClick(e); (this.handleMenuKeyUp_ = (e) => this.handleMenuKeyUp(e)), this.on(this.menuButton_, "tap", r), this.on(this.menuButton_, "click", r), this.on(this.menuButton_, "keydown", (e) => this.handleKeyDown(e)), this.on(this.menuButton_, "mouseenter", () => { this.addClass("vjs-hover"), this.menu.show(), ar(a(), "keyup", this.handleMenuKeyUp_); }), this.on("mouseleave", (e) => this.handleMouseLeave(e)), this.on("keydown", (e) => this.handleSubmenuKeyDown(e)); } update() { const e = this.createMenu(); this.menu && (this.menu.dispose(), this.removeChild(this.menu)), (this.menu = e), this.addChild(e), (this.buttonPressed_ = !1), this.menuButton_.el_.setAttribute("aria-expanded", "false"), this.items && this.items.length <= this.hideThreshold_ ? (this.hide(), this.menu.contentEl_.removeAttribute("role")) : (this.show(), this.menu.contentEl_.setAttribute("role", "menu")); } createMenu() { const e = new ho(this.player_, { menuButton: this }); if (((this.hideThreshold_ = 0), this.options_.title)) { const t = vn("li", { className: "vjs-menu-title", textContent: Mr(this.options_.title), tabIndex: -1, }), n = new Dr(this.player_, { el: t }); e.addItem(n); } if (((this.items = this.createItems()), this.items)) for (let t = 0; t < this.items.length; t++) e.addItem(this.items[t]); return e; } createItems() {} createEl() { return super.createEl( "div", { className: this.buildWrapperCSSClass() }, {} ); } buildWrapperCSSClass() { let e = "vjs-menu-button"; !0 === this.options_.inline ? (e += "-inline") : (e += "-popup"); return `vjs-menu-button ${e} ${qi.prototype.buildCSSClass()} ${super.buildCSSClass()}`; } buildCSSClass() { let e = "vjs-menu-button"; return ( !0 === this.options_.inline ? (e += "-inline") : (e += "-popup"), `vjs-menu-button ${e} ${super.buildCSSClass()}` ); } controlText(e, t = this.menuButton_.el()) { return this.menuButton_.controlText(e, t); } dispose() { this.handleMouseLeave(), super.dispose(); } handleClick(e) { this.buttonPressed_ ? this.unpressButton() : this.pressButton(); } handleMouseLeave(e) { this.removeClass("vjs-hover"), sr(a(), "keyup", this.handleMenuKeyUp_); } focus() { this.menuButton_.focus(); } blur() { this.menuButton_.blur(); } handleKeyDown(e) { u().isEventKey(e, "Esc") || u().isEventKey(e, "Tab") ? (this.buttonPressed_ && this.unpressButton(), u().isEventKey(e, "Tab") || (e.preventDefault(), this.menuButton_.focus())) : (u().isEventKey(e, "Up") || u().isEventKey(e, "Down")) && (this.buttonPressed_ || (e.preventDefault(), this.pressButton())); } handleMenuKeyUp(e) { (u().isEventKey(e, "Esc") || u().isEventKey(e, "Tab")) && this.removeClass("vjs-hover"); } handleSubmenuKeyPress(e) { this.handleSubmenuKeyDown(e); } handleSubmenuKeyDown(e) { (u().isEventKey(e, "Esc") || u().isEventKey(e, "Tab")) && (this.buttonPressed_ && this.unpressButton(), u().isEventKey(e, "Tab") || (e.preventDefault(), this.menuButton_.focus())); } pressButton() { if (this.enabled_) { if ( ((this.buttonPressed_ = !0), this.menu.show(), this.menu.lockShowing(), this.menuButton_.el_.setAttribute("aria-expanded", "true"), ln && mn()) ) return; this.menu.focus(); } } unpressButton() { this.enabled_ && ((this.buttonPressed_ = !1), this.menu.unlockShowing(), this.menu.hide(), this.menuButton_.el_.setAttribute("aria-expanded", "false")); } disable() { this.unpressButton(), (this.enabled_ = !1), this.addClass("vjs-disabled"), this.menuButton_.disable(); } enable() { (this.enabled_ = !0), this.removeClass("vjs-disabled"), this.menuButton_.enable(); } } Dr.registerComponent("MenuButton", go); class mo extends go { constructor(e, t) { const n = t.tracks; if ((super(e, t), this.items.length <= 1 && this.hide(), !n)) return; const r = pr(this, this.update); n.addEventListener("removetrack", r), n.addEventListener("addtrack", r), n.addEventListener("labelchange", r), this.player_.on("ready", r), this.player_.on("dispose", function () { n.removeEventListener("removetrack", r), n.removeEventListener("addtrack", r), n.removeEventListener("labelchange", r); }); } } Dr.registerComponent("TrackButton", mo); const yo = ["Tab", "Esc", "Up", "Down", "Right", "Left"]; class vo extends Bi { constructor(e, t) { super(e, t), (this.selectable = t.selectable), (this.isSelected_ = t.selected || !1), (this.multiSelectable = t.multiSelectable), this.selected(this.isSelected_), this.selectable ? this.multiSelectable ? this.el_.setAttribute("role", "menuitemcheckbox") : this.el_.setAttribute("role", "menuitemradio") : this.el_.setAttribute("role", "menuitem"); } createEl(e, t, n) { this.nonIconControl = !0; const r = super.createEl( "li", Object.assign({ className: "vjs-menu-item", tabIndex: -1 }, t), n ); return ( r.replaceChild( vn("span", { className: "vjs-menu-item-text", textContent: this.localize(this.options_.label), }), r.querySelector(".vjs-icon-placeholder") ), r ); } handleKeyDown(e) { yo.some((t) => u().isEventKey(e, t)) || super.handleKeyDown(e); } handleClick(e) { this.selected(!0); } selected(e) { this.selectable && (e ? (this.addClass("vjs-selected"), this.el_.setAttribute("aria-checked", "true"), this.controlText(", selected"), (this.isSelected_ = !0)) : (this.removeClass("vjs-selected"), this.el_.setAttribute("aria-checked", "false"), this.controlText(""), (this.isSelected_ = !1))); } } Dr.registerComponent("MenuItem", vo); class bo extends vo { constructor(e, t) { const n = t.track, r = e.textTracks(); (t.label = n.label || n.language || "Unknown"), (t.selected = "showing" === n.mode), super(e, t), (this.track = n), (this.kinds = (t.kinds || [t.kind || this.track.kind]).filter( Boolean )); const o = (...e) => { this.handleTracksChange.apply(this, e); }, s = (...e) => { this.handleSelectedLanguageChange.apply(this, e); }; if ( (e.on(["loadstart", "texttrackchange"], o), r.addEventListener("change", o), r.addEventListener("selectedlanguagechange", s), this.on("dispose", function () { e.off(["loadstart", "texttrackchange"], o), r.removeEventListener("change", o), r.removeEventListener("selectedlanguagechange", s); }), void 0 === r.onchange) ) { let e; this.on(["tap", "click"], function () { if ("object" != typeof i().Event) try { e = new (i().Event)("change"); } catch (e) {} e || ((e = a().createEvent("Event")), e.initEvent("change", !0, !0)), r.dispatchEvent(e); }); } this.handleTracksChange(); } handleClick(e) { const t = this.track, n = this.player_.textTracks(); if ((super.handleClick(e), n)) for (let e = 0; e < n.length; e++) { const r = n[e]; -1 !== this.kinds.indexOf(r.kind) && (r === t ? "showing" !== r.mode && (r.mode = "showing") : "disabled" !== r.mode && (r.mode = "disabled")); } } handleTracksChange(e) { const t = "showing" === this.track.mode; t !== this.isSelected_ && this.selected(t); } handleSelectedLanguageChange(e) { if ("showing" === this.track.mode) { const e = this.player_.cache_.selectedLanguage; if ( e && e.enabled && e.language === this.track.language && e.kind !== this.track.kind ) return; this.player_.cache_.selectedLanguage = { enabled: !0, language: this.track.language, kind: this.track.kind, }; } } dispose() { (this.track = null), super.dispose(); } } Dr.registerComponent("TextTrackMenuItem", bo); class _o extends bo { constructor(e, t) { (t.track = { player: e, kind: t.kind, kinds: t.kinds, default: !1, mode: "disabled", }), t.kinds || (t.kinds = [t.kind]), t.label ? (t.track.label = t.label) : (t.track.label = t.kinds.join(" and ") + " off"), (t.selectable = !0), (t.multiSelectable = !1), super(e, t); } handleTracksChange(e) { const t = this.player().textTracks(); let n = !0; for (let e = 0, r = t.length; e < r; e++) { const r = t[e]; if ( this.options_.kinds.indexOf(r.kind) > -1 && "showing" === r.mode ) { n = !1; break; } } n !== this.isSelected_ && this.selected(n); } handleSelectedLanguageChange(e) { const t = this.player().textTracks(); let n = !0; for (let e = 0, r = t.length; e < r; e++) { const r = t[e]; if ( ["captions", "descriptions", "subtitles"].indexOf(r.kind) > -1 && "showing" === r.mode ) { n = !1; break; } } n && (this.player_.cache_.selectedLanguage = { enabled: !1 }); } handleLanguagechange() { (this.$(".vjs-menu-item-text").textContent = this.player_.localize( this.options_.label )), super.handleLanguagechange(); } } Dr.registerComponent("OffTextTrackMenuItem", _o); class wo extends mo { constructor(e, t = {}) { (t.tracks = e.textTracks()), super(e, t); } createItems(e = [], t = bo) { let n; this.label_ && (n = `${this.label_} off`), e.push( new _o(this.player_, { kinds: this.kinds_, kind: this.kind_, label: n, }) ), (this.hideThreshold_ += 1); const r = this.player_.textTracks(); Array.isArray(this.kinds_) || (this.kinds_ = [this.kind_]); for (let n = 0; n < r.length; n++) { const i = r[n]; if (this.kinds_.indexOf(i.kind) > -1) { const n = new t(this.player_, { track: i, kinds: this.kinds_, kind: this.kind_, selectable: !0, multiSelectable: !1, }); n.addClass(`vjs-${i.kind}-menu-item`), e.push(n); } } return e; } } Dr.registerComponent("TextTrackButton", wo); class To extends vo { constructor(e, t) { const n = t.track, r = t.cue, i = e.currentTime(); (t.selectable = !0), (t.multiSelectable = !1), (t.label = r.text), (t.selected = r.startTime <= i && i < r.endTime), super(e, t), (this.track = n), (this.cue = r); } handleClick(e) { super.handleClick(), this.player_.currentTime(this.cue.startTime); } } Dr.registerComponent("ChaptersTrackMenuItem", To); class xo extends wo { constructor(e, t, n) { super(e, t, n), (this.selectCurrentItem_ = () => { this.items.forEach((e) => { e.selected(this.track_.activeCues[0] === e.cue); }); }); } buildCSSClass() { return `vjs-chapters-button ${super.buildCSSClass()}`; } buildWrapperCSSClass() { return `vjs-chapters-button ${super.buildWrapperCSSClass()}`; } update(e) { if (e && e.track && "chapters" !== e.track.kind) return; const t = this.findChaptersTrack(); t !== this.track_ ? (this.setTrack(t), super.update()) : (!this.items || (t && t.cues && t.cues.length !== this.items.length)) && super.update(); } setTrack(e) { if (this.track_ !== e) { if ( (this.updateHandler_ || (this.updateHandler_ = this.update.bind(this)), this.track_) ) { const e = this.player_ .remoteTextTrackEls() .getTrackElementByTrack_(this.track_); e && e.removeEventListener("load", this.updateHandler_), this.track_.removeEventListener( "cuechange", this.selectCurrentItem_ ), (this.track_ = null); } if (((this.track_ = e), this.track_)) { this.track_.mode = "hidden"; const e = this.player_ .remoteTextTrackEls() .getTrackElementByTrack_(this.track_); e && e.addEventListener("load", this.updateHandler_), this.track_.addEventListener( "cuechange", this.selectCurrentItem_ ); } } } findChaptersTrack() { const e = this.player_.textTracks() || []; for (let t = e.length - 1; t >= 0; t--) { const n = e[t]; if (n.kind === this.kind_) return n; } } getMenuCaption() { return this.track_ && this.track_.label ? this.track_.label : this.localize(Mr(this.kind_)); } createMenu() { return ( (this.options_.title = this.getMenuCaption()), super.createMenu() ); } createItems() { const e = []; if (!this.track_) return e; const t = this.track_.cues; if (!t) return e; for (let n = 0, r = t.length; n < r; n++) { const r = t[n], i = new To(this.player_, { track: this.track_, cue: r }); e.push(i); } return e; } } (xo.prototype.kind_ = "chapters"), (xo.prototype.controlText_ = "Chapters"), Dr.registerComponent("ChaptersButton", xo); class So extends wo { constructor(e, t, n) { super(e, t, n); const r = e.textTracks(), i = pr(this, this.handleTracksChange); r.addEventListener("change", i), this.on("dispose", function () { r.removeEventListener("change", i); }); } handleTracksChange(e) { const t = this.player().textTracks(); let n = !1; for (let e = 0, r = t.length; e < r; e++) { const r = t[e]; if (r.kind !== this.kind_ && "showing" === r.mode) { n = !0; break; } } n ? this.disable() : this.enable(); } buildCSSClass() { return `vjs-descriptions-button ${super.buildCSSClass()}`; } buildWrapperCSSClass() { return `vjs-descriptions-button ${super.buildWrapperCSSClass()}`; } } (So.prototype.kind_ = "descriptions"), (So.prototype.controlText_ = "Descriptions"), Dr.registerComponent("DescriptionsButton", So); class ko extends wo { constructor(e, t, n) { super(e, t, n); } buildCSSClass() { return `vjs-subtitles-button ${super.buildCSSClass()}`; } buildWrapperCSSClass() { return `vjs-subtitles-button ${super.buildWrapperCSSClass()}`; } } (ko.prototype.kind_ = "subtitles"), (ko.prototype.controlText_ = "Subtitles"), Dr.registerComponent("SubtitlesButton", ko); class Eo extends bo { constructor(e, t) { (t.track = { player: e, kind: t.kind, label: t.kind + " settings", selectable: !1, default: !1, mode: "disabled", }), (t.selectable = !1), (t.name = "CaptionSettingsMenuItem"), super(e, t), this.addClass("vjs-texttrack-settings"), this.controlText(", opens " + t.kind + " settings dialog"); } handleClick(e) { this.player().getChild("textTrackSettings").open(); } handleLanguagechange() { (this.$(".vjs-menu-item-text").textContent = this.player_.localize( this.options_.kind + " settings" )), super.handleLanguagechange(); } } Dr.registerComponent("CaptionSettingsMenuItem", Eo); class Oo extends wo { constructor(e, t, n) { super(e, t, n); } buildCSSClass() { return `vjs-captions-button ${super.buildCSSClass()}`; } buildWrapperCSSClass() { return `vjs-captions-button ${super.buildWrapperCSSClass()}`; } createItems() { const e = []; return ( (this.player().tech_ && this.player().tech_.featuresNativeTextTracks) || !this.player().getChild("textTrackSettings") || (e.push(new Eo(this.player_, { kind: this.kind_ })), (this.hideThreshold_ += 1)), super.createItems(e) ); } } (Oo.prototype.kind_ = "captions"), (Oo.prototype.controlText_ = "Captions"), Dr.registerComponent("CaptionsButton", Oo); class Co extends bo { createEl(e, t, n) { const r = super.createEl(e, t, n), i = r.querySelector(".vjs-menu-item-text"); return ( "captions" === this.options_.track.kind && (i.appendChild( vn( "span", { className: "vjs-icon-placeholder" }, { "aria-hidden": !0 } ) ), i.appendChild( vn("span", { className: "vjs-control-text", textContent: ` ${this.localize("Captions")}`, }) )), r ); } } Dr.registerComponent("SubsCapsMenuItem", Co); class Lo extends wo { constructor(e, t = {}) { super(e, t), (this.label_ = "subtitles"), ["en", "en-us", "en-ca", "fr-ca"].indexOf(this.player_.language_) > -1 && (this.label_ = "captions"), this.menuButton_.controlText(Mr(this.label_)); } buildCSSClass() { return `vjs-subs-caps-button ${super.buildCSSClass()}`; } buildWrapperCSSClass() { return `vjs-subs-caps-button ${super.buildWrapperCSSClass()}`; } createItems() { let e = []; return ( (this.player().tech_ && this.player().tech_.featuresNativeTextTracks) || !this.player().getChild("textTrackSettings") || (e.push(new Eo(this.player_, { kind: this.label_ })), (this.hideThreshold_ += 1)), (e = super.createItems(e, Co)), e ); } } (Lo.prototype.kinds_ = ["captions", "subtitles"]), (Lo.prototype.controlText_ = "Subtitles"), Dr.registerComponent("SubsCapsButton", Lo); class Ao extends vo { constructor(e, t) { const n = t.track, r = e.audioTracks(); (t.label = n.label || n.language || "Unknown"), (t.selected = n.enabled), super(e, t), (this.track = n), this.addClass(`vjs-${n.kind}-menu-item`); const i = (...e) => { this.handleTracksChange.apply(this, e); }; r.addEventListener("change", i), this.on("dispose", () => { r.removeEventListener("change", i); }); } createEl(e, t, n) { const r = super.createEl(e, t, n), i = r.querySelector(".vjs-menu-item-text"); return ( "main-desc" === this.options_.track.kind && (i.appendChild( vn( "span", { className: "vjs-icon-placeholder" }, { "aria-hidden": !0 } ) ), i.appendChild( vn("span", { className: "vjs-control-text", textContent: " " + this.localize("Descriptions"), }) )), r ); } handleClick(e) { if ( (super.handleClick(e), (this.track.enabled = !0), this.player_.tech_.featuresNativeAudioTracks) ) { const e = this.player_.audioTracks(); for (let t = 0; t < e.length; t++) { const n = e[t]; n !== this.track && (n.enabled = n === this.track); } } } handleTracksChange(e) { this.selected(this.track.enabled); } } Dr.registerComponent("AudioTrackMenuItem", Ao); class Io extends mo { constructor(e, t = {}) { (t.tracks = e.audioTracks()), super(e, t); } buildCSSClass() { return `vjs-audio-button ${super.buildCSSClass()}`; } buildWrapperCSSClass() { return `vjs-audio-button ${super.buildWrapperCSSClass()}`; } createItems(e = []) { this.hideThreshold_ = 1; const t = this.player_.audioTracks(); for (let n = 0; n < t.length; n++) { const r = t[n]; e.push( new Ao(this.player_, { track: r, selectable: !0, multiSelectable: !1, }) ); } return e; } } (Io.prototype.controlText_ = "Audio Track"), Dr.registerComponent("AudioTrackButton", Io); class Mo extends vo { constructor(e, t) { const n = t.rate, r = parseFloat(n, 10); (t.label = n), (t.selected = r === e.playbackRate()), (t.selectable = !0), (t.multiSelectable = !1), super(e, t), (this.label = n), (this.rate = r), this.on(e, "ratechange", (e) => this.update(e)); } handleClick(e) { super.handleClick(), this.player().playbackRate(this.rate); } update(e) { this.selected(this.player().playbackRate() === this.rate); } } (Mo.prototype.contentElType = "button"), Dr.registerComponent("PlaybackRateMenuItem", Mo); class Po extends go { constructor(e, t) { super(e, t), this.menuButton_.el_.setAttribute( "aria-describedby", this.labelElId_ ), this.updateVisibility(), this.updateLabel(), this.on(e, "loadstart", (e) => this.updateVisibility(e)), this.on(e, "ratechange", (e) => this.updateLabel(e)), this.on(e, "playbackrateschange", (e) => this.handlePlaybackRateschange(e) ); } createEl() { const e = super.createEl(); return ( (this.labelElId_ = "vjs-playback-rate-value-label-" + this.id_), (this.labelEl_ = vn("div", { className: "vjs-playback-rate-value", id: this.labelElId_, textContent: "1x", })), e.appendChild(this.labelEl_), e ); } dispose() { (this.labelEl_ = null), super.dispose(); } buildCSSClass() { return `vjs-playback-rate ${super.buildCSSClass()}`; } buildWrapperCSSClass() { return `vjs-playback-rate ${super.buildWrapperCSSClass()}`; } createItems() { const e = this.playbackRates(), t = []; for (let n = e.length - 1; n >= 0; n--) t.push(new Mo(this.player(), { rate: e[n] + "x" })); return t; } handlePlaybackRateschange(e) { this.update(); } playbackRates() { const e = this.player(); return (e.playbackRates && e.playbackRates()) || []; } playbackRateSupported() { return ( this.player().tech_ && this.player().tech_.featuresPlaybackRate && this.playbackRates() && this.playbackRates().length > 0 ); } updateVisibility(e) { this.playbackRateSupported() ? this.removeClass("vjs-hidden") : this.addClass("vjs-hidden"); } updateLabel(e) { this.playbackRateSupported() && (this.labelEl_.textContent = this.player().playbackRate() + "x"); } } (Po.prototype.controlText_ = "Playback Rate"), Dr.registerComponent("PlaybackRateMenuButton", Po); class Ro extends Dr { buildCSSClass() { return `vjs-spacer ${super.buildCSSClass()}`; } createEl(e = "div", t = {}, n = {}) { return ( t.className || (t.className = this.buildCSSClass()), super.createEl(e, t, n) ); } } Dr.registerComponent("Spacer", Ro); Dr.registerComponent( "CustomControlSpacer", class extends Ro { buildCSSClass() { return `vjs-custom-control-spacer ${super.buildCSSClass()}`; } createEl() { return super.createEl("div", { className: this.buildCSSClass(), textContent: " ", }); } } ); class Do extends Dr { createEl() { return super.createEl("div", { className: "vjs-control-bar", dir: "ltr", }); } } (Do.prototype.options_ = { children: [ "playToggle", "skipBackward", "skipForward", "volumePanel", "currentTimeDisplay", "timeDivider", "durationDisplay", "progressControl", "liveDisplay", "seekToLive", "remainingTimeDisplay", "customControlSpacer", "playbackRateMenuButton", "chaptersButton", "descriptionsButton", "subsCapsButton", "audioTrackButton", "fullscreenToggle", ], }), "exitPictureInPicture" in a() && Do.prototype.options_.children.splice( Do.prototype.options_.children.length - 1, 0, "pictureInPictureToggle" ), Dr.registerComponent("ControlBar", Do); class jo extends Qr { constructor(e, t) { super(e, t), this.on(e, "error", (e) => this.open(e)); } buildCSSClass() { return `vjs-error-display ${super.buildCSSClass()}`; } content() { const e = this.player().error(); return e ? this.localize(e.message) : ""; } } (jo.prototype.options_ = Object.assign({}, Qr.prototype.options_, { pauseOnOpen: !1, fillAlways: !0, temporary: !1, uncloseable: !0, })), Dr.registerComponent("ErrorDisplay", jo); const No = "vjs-text-track-settings", Bo = ["#000", "Black"], Uo = ["#00F", "Blue"], Fo = ["#0FF", "Cyan"], zo = ["#0F0", "Green"], Ho = ["#F0F", "Magenta"], qo = ["#F00", "Red"], Zo = ["#FFF", "White"], Vo = ["#FF0", "Yellow"], Wo = ["1", "Opaque"], $o = ["0.5", "Semi-Transparent"], Go = ["0", "Transparent"], Yo = { backgroundColor: { selector: ".vjs-bg-color > select", id: "captions-background-color-%s", label: "Color", options: [Bo, Zo, qo, zo, Uo, Vo, Ho, Fo], }, backgroundOpacity: { selector: ".vjs-bg-opacity > select", id: "captions-background-opacity-%s", label: "Opacity", options: [Wo, $o, Go], }, color: { selector: ".vjs-text-color > select", id: "captions-foreground-color-%s", label: "Color", options: [Zo, Bo, qo, zo, Uo, Vo, Ho, Fo], }, edgeStyle: { selector: ".vjs-edge-style > select", id: "%s", label: "Text Edge Style", options: [ ["none", "None"], ["raised", "Raised"], ["depressed", "Depressed"], ["uniform", "Uniform"], ["dropshadow", "Dropshadow"], ], }, fontFamily: { selector: ".vjs-font-family > select", id: "captions-font-family-%s", label: "Font Family", options: [ ["proportionalSansSerif", "Proportional Sans-Serif"], ["monospaceSansSerif", "Monospace Sans-Serif"], ["proportionalSerif", "Proportional Serif"], ["monospaceSerif", "Monospace Serif"], ["casual", "Casual"], ["script", "Script"], ["small-caps", "Small Caps"], ], }, fontPercent: { selector: ".vjs-font-percent > select", id: "captions-font-size-%s", label: "Font Size", options: [ ["0.50", "50%"], ["0.75", "75%"], ["1.00", "100%"], ["1.25", "125%"], ["1.50", "150%"], ["1.75", "175%"], ["2.00", "200%"], ["3.00", "300%"], ["4.00", "400%"], ], default: 2, parser: (e) => ("1.00" === e ? null : Number(e)), }, textOpacity: { selector: ".vjs-text-opacity > select", id: "captions-foreground-opacity-%s", label: "Opacity", options: [Wo, $o], }, windowColor: { selector: ".vjs-window-color > select", id: "captions-window-color-%s", label: "Color", }, windowOpacity: { selector: ".vjs-window-opacity > select", id: "captions-window-opacity-%s", label: "Opacity", options: [Go, $o, Wo], }, }; function Ko(e, t) { if ((t && (e = t(e)), e && "none" !== e)) return e; } Yo.windowColor.options = Yo.backgroundColor.options; Dr.registerComponent( "TextTrackSettings", class extends Qr { constructor(e, t) { (t.temporary = !1), super(e, t), (this.updateDisplay = this.updateDisplay.bind(this)), this.fill(), (this.hasBeenOpened_ = this.hasBeenFilled_ = !0), (this.endDialog = vn("p", { className: "vjs-control-text", textContent: this.localize("End of dialog window."), })), this.el().appendChild(this.endDialog), this.setDefaults(), void 0 === t.persistTextTrackSettings && (this.options_.persistTextTrackSettings = this.options_.playerOptions.persistTextTrackSettings), this.on(this.$(".vjs-done-button"), "click", () => { this.saveSettings(), this.close(); }), this.on(this.$(".vjs-default-button"), "click", () => { this.setDefaults(), this.updateDisplay(); }), Ut(Yo, (e) => { this.on(this.$(e.selector), "change", this.updateDisplay); }), this.options_.persistTextTrackSettings && this.restoreSettings(); } dispose() { (this.endDialog = null), super.dispose(); } createElSelect_(e, t = "", n = "label") { const r = Yo[e], i = r.id.replace("%s", this.id_), o = [t, i].join(" ").trim(); return [ `<${n} id="${i}" class="${"label" === n ? "vjs-label" : ""}">`, this.localize(r.label), ``, `") .join(""); } createElFgColor_() { const e = `captions-text-legend-${this.id_}`; return [ '
', ``, this.localize("Text"), "", '', this.createElSelect_("color", e), "", '', this.createElSelect_("textOpacity", e), "", "
", ].join(""); } createElBgColor_() { const e = `captions-background-${this.id_}`; return [ '
', ``, this.localize("Text Background"), "", '', this.createElSelect_("backgroundColor", e), "", '', this.createElSelect_("backgroundOpacity", e), "", "
", ].join(""); } createElWinColor_() { const e = `captions-window-${this.id_}`; return [ '
', ``, this.localize("Caption Area Background"), "", '', this.createElSelect_("windowColor", e), "", '', this.createElSelect_("windowOpacity", e), "", "
", ].join(""); } createElColors_() { return vn("div", { className: "vjs-track-settings-colors", innerHTML: [ this.createElFgColor_(), this.createElBgColor_(), this.createElWinColor_(), ].join(""), }); } createElFont_() { return vn("div", { className: "vjs-track-settings-font", innerHTML: [ '
', this.createElSelect_("fontPercent", "", "legend"), "
", '
', this.createElSelect_("edgeStyle", "", "legend"), "
", '
', this.createElSelect_("fontFamily", "", "legend"), "
", ].join(""), }); } createElControls_() { const e = this.localize( "restore all settings to the default values" ); return vn("div", { className: "vjs-track-settings-controls", innerHTML: [ `", ``, ].join(""), }); } content() { return [ this.createElColors_(), this.createElFont_(), this.createElControls_(), ]; } label() { return this.localize("Caption Settings Dialog"); } description() { return this.localize( "Beginning of dialog window. Escape will cancel and close the window." ); } buildCSSClass() { return super.buildCSSClass() + " vjs-text-track-settings"; } getValues() { return Ft( Yo, (e, t, n) => { const r = ((i = this.$(t.selector)), (o = t.parser), Ko(i.options[i.options.selectedIndex].value, o)); var i, o; return void 0 !== r && (e[n] = r), e; }, {} ); } setValues(e) { Ut(Yo, (t, n) => { !(function (e, t, n) { if (t) for (let r = 0; r < e.options.length; r++) if (Ko(e.options[r].value, n) === t) { e.selectedIndex = r; break; } })(this.$(t.selector), e[n], t.parser); }); } setDefaults() { Ut(Yo, (e) => { const t = e.hasOwnProperty("default") ? e.default : 0; this.$(e.selector).selectedIndex = t; }); } restoreSettings() { let e; try { e = JSON.parse(i().localStorage.getItem(No)); } catch (e) { Dt.warn(e); } e && this.setValues(e); } saveSettings() { if (!this.options_.persistTextTrackSettings) return; const e = this.getValues(); try { Object.keys(e).length ? i().localStorage.setItem(No, JSON.stringify(e)) : i().localStorage.removeItem(No); } catch (e) { Dt.warn(e); } } updateDisplay() { const e = this.player_.getChild("textTrackDisplay"); e && e.updateDisplay(); } conditionalBlur_() { this.previouslyActiveEl_ = null; const e = this.player_.controlBar, t = e && e.subsCapsButton, n = e && e.captionsButton; t ? t.focus() : n && n.focus(); } handleLanguagechange() { this.fill(); } } ); Dr.registerComponent( "ResizeManager", class extends Dr { constructor(e, t) { let n = t.ResizeObserver || i().ResizeObserver; null === t.ResizeObserver && (n = !1); super(e, qt({ createEl: !n, reportTouchActivity: !1 }, t)), (this.ResizeObserver = t.ResizeObserver || i().ResizeObserver), (this.loadListener_ = null), (this.resizeObserver_ = null), (this.debouncedHandler_ = gr( () => { this.resizeHandler(); }, 100, !1, this )), n ? ((this.resizeObserver_ = new this.ResizeObserver( this.debouncedHandler_ )), this.resizeObserver_.observe(e.el())) : ((this.loadListener_ = () => { if (!this.el_ || !this.el_.contentWindow) return; const e = this.debouncedHandler_; let t = (this.unloadListener_ = function () { sr(this, "resize", e), sr(this, "unload", t), (t = null); }); ar(this.el_.contentWindow, "unload", t), ar(this.el_.contentWindow, "resize", e); }), this.one("load", this.loadListener_)); } createEl() { return super.createEl( "iframe", { className: "vjs-resize-manager", tabIndex: -1, title: this.localize("No content"), }, { "aria-hidden": "true" } ); } resizeHandler() { this.player_ && this.player_.trigger && this.player_.trigger("playerresize"); } dispose() { this.debouncedHandler_ && this.debouncedHandler_.cancel(), this.resizeObserver_ && (this.player_.el() && this.resizeObserver_.unobserve(this.player_.el()), this.resizeObserver_.disconnect()), this.loadListener_ && this.off("load", this.loadListener_), this.el_ && this.el_.contentWindow && this.unloadListener_ && this.unloadListener_.call(this.el_.contentWindow), (this.ResizeObserver = null), (this.resizeObserver = null), (this.debouncedHandler_ = null), (this.loadListener_ = null), super.dispose(); } } ); const Xo = { trackingThreshold: 20, liveTolerance: 15 }; Dr.registerComponent( "LiveTracker", class extends Dr { constructor(e, t) { super(e, qt(Xo, t, { createEl: !1 })), (this.trackLiveHandler_ = () => this.trackLive_()), (this.handlePlay_ = (e) => this.handlePlay(e)), (this.handleFirstTimeupdate_ = (e) => this.handleFirstTimeupdate(e)), (this.handleSeeked_ = (e) => this.handleSeeked(e)), (this.seekToLiveEdge_ = (e) => this.seekToLiveEdge(e)), this.reset_(), this.on(this.player_, "durationchange", (e) => this.handleDurationchange(e) ), this.on(this.player_, "canplay", () => this.toggleTracking()); } trackLive_() { const e = this.player_.seekable(); if (!e || !e.length) return; const t = Number(i().performance.now().toFixed(4)), n = -1 === this.lastTime_ ? 0 : (t - this.lastTime_) / 1e3; (this.lastTime_ = t), (this.pastSeekEnd_ = this.pastSeekEnd() + n); const r = this.liveCurrentTime(), o = this.player_.currentTime(); let a = this.player_.paused() || this.seekedBehindLive_ || Math.abs(r - o) > this.options_.liveTolerance; (this.timeupdateSeen_ && r !== 1 / 0) || (a = !1), a !== this.behindLiveEdge_ && ((this.behindLiveEdge_ = a), this.trigger("liveedgechange")); } handleDurationchange() { this.toggleTracking(); } toggleTracking() { this.player_.duration() === 1 / 0 && this.liveWindow() >= this.options_.trackingThreshold ? (this.player_.options_.liveui && this.player_.addClass("vjs-liveui"), this.startTracking()) : (this.player_.removeClass("vjs-liveui"), this.stopTracking()); } startTracking() { this.isTracking() || (this.timeupdateSeen_ || (this.timeupdateSeen_ = this.player_.hasStarted()), (this.trackingInterval_ = this.setInterval( this.trackLiveHandler_, dr )), this.trackLive_(), this.on(this.player_, ["play", "pause"], this.trackLiveHandler_), this.timeupdateSeen_ ? this.on(this.player_, "seeked", this.handleSeeked_) : (this.one(this.player_, "play", this.handlePlay_), this.one( this.player_, "timeupdate", this.handleFirstTimeupdate_ ))); } handleFirstTimeupdate() { (this.timeupdateSeen_ = !0), this.on(this.player_, "seeked", this.handleSeeked_); } handleSeeked() { const e = Math.abs( this.liveCurrentTime() - this.player_.currentTime() ); (this.seekedBehindLive_ = this.nextSeekedFromUser_ && e > 2), (this.nextSeekedFromUser_ = !1), this.trackLive_(); } handlePlay() { this.one(this.player_, "timeupdate", this.seekToLiveEdge_); } reset_() { (this.lastTime_ = -1), (this.pastSeekEnd_ = 0), (this.lastSeekEnd_ = -1), (this.behindLiveEdge_ = !0), (this.timeupdateSeen_ = !1), (this.seekedBehindLive_ = !1), (this.nextSeekedFromUser_ = !1), this.clearInterval(this.trackingInterval_), (this.trackingInterval_ = null), this.off(this.player_, ["play", "pause"], this.trackLiveHandler_), this.off(this.player_, "seeked", this.handleSeeked_), this.off(this.player_, "play", this.handlePlay_), this.off(this.player_, "timeupdate", this.handleFirstTimeupdate_), this.off(this.player_, "timeupdate", this.seekToLiveEdge_); } nextSeekedFromUser() { this.nextSeekedFromUser_ = !0; } stopTracking() { this.isTracking() && (this.reset_(), this.trigger("liveedgechange")); } seekableEnd() { const e = this.player_.seekable(), t = []; let n = e ? e.length : 0; for (; n--; ) t.push(e.end(n)); return t.length ? t.sort()[t.length - 1] : 1 / 0; } seekableStart() { const e = this.player_.seekable(), t = []; let n = e ? e.length : 0; for (; n--; ) t.push(e.start(n)); return t.length ? t.sort()[0] : 0; } liveWindow() { const e = this.liveCurrentTime(); return e === 1 / 0 ? 0 : e - this.seekableStart(); } isLive() { return this.isTracking(); } atLiveEdge() { return !this.behindLiveEdge(); } liveCurrentTime() { return this.pastSeekEnd() + this.seekableEnd(); } pastSeekEnd() { const e = this.seekableEnd(); return ( -1 !== this.lastSeekEnd_ && e !== this.lastSeekEnd_ && (this.pastSeekEnd_ = 0), (this.lastSeekEnd_ = e), this.pastSeekEnd_ ); } behindLiveEdge() { return this.behindLiveEdge_; } isTracking() { return "number" == typeof this.trackingInterval_; } seekToLiveEdge() { (this.seekedBehindLive_ = !1), this.atLiveEdge() || ((this.nextSeekedFromUser_ = !1), this.player_.currentTime(this.liveCurrentTime())); } dispose() { this.stopTracking(), super.dispose(); } } ); Dr.registerComponent( "TitleBar", class extends Dr { constructor(e, t) { super(e, t), this.on("statechanged", (e) => this.updateDom_()), this.updateDom_(); } createEl() { return ( (this.els = { title: vn("div", { className: "vjs-title-bar-title", id: `vjs-title-bar-title-${tr()}`, }), description: vn("div", { className: "vjs-title-bar-description", id: `vjs-title-bar-description-${tr()}`, }), }), vn( "div", { className: "vjs-title-bar" }, {}, Object.values(this.els) ) ); } updateDom_() { const e = this.player_.tech_, t = e && e.el_, n = { title: "aria-labelledby", description: "aria-describedby" }; ["title", "description"].forEach((e) => { const r = this.state[e], i = this.els[e], o = n[e]; jn(i), r && bn(i, r), t && (t.removeAttribute(o), r && t.setAttribute(o, i.id)); }), this.state.title || this.state.description ? this.show() : this.hide(); } update(e) { this.setState(e); } dispose() { const e = this.player_.tech_, t = e && e.el_; t && (t.removeAttribute("aria-labelledby"), t.removeAttribute("aria-describedby")), super.dispose(), (this.els = null); } } ); const Qo = (e) => { const t = e.el(); if (t.hasAttribute("src")) return e.triggerSourceset(t.src), !0; const n = e.$$("source"), r = []; let i = ""; if (!n.length) return !1; for (let e = 0; e < n.length; e++) { const t = n[e].src; t && -1 === r.indexOf(t) && r.push(t); } return ( !!r.length && (1 === r.length && (i = r[0]), e.triggerSourceset(i), !0) ); }, Jo = Object.defineProperty({}, "innerHTML", { get() { return this.cloneNode(!0).innerHTML; }, set(e) { const t = a().createElement(this.nodeName.toLowerCase()); t.innerHTML = e; const n = a().createDocumentFragment(); for (; t.childNodes.length; ) n.appendChild(t.childNodes[0]); return ( (this.innerText = ""), i().Element.prototype.appendChild.call(this, n), this.innerHTML ); }, }), ea = (e, t) => { let n = {}; for ( let r = 0; r < e.length && ((n = Object.getOwnPropertyDescriptor(e[r], t)), !(n && n.set && n.get)); r++ ); return (n.enumerable = !0), (n.configurable = !0), n; }, ta = function (e) { const t = e.el(); if (t.resetSourceWatch_) return; const n = {}, r = ((e) => ea( [ e.el(), i().HTMLMediaElement.prototype, i().Element.prototype, Jo, ], "innerHTML" ))(e), o = (n) => (...r) => { const i = n.apply(t, r); return Qo(e), i; }; ["append", "appendChild", "insertAdjacentHTML"].forEach((e) => { t[e] && ((n[e] = t[e]), (t[e] = o(n[e]))); }), Object.defineProperty(t, "innerHTML", qt(r, { set: o(r.set) })), (t.resetSourceWatch_ = () => { (t.resetSourceWatch_ = null), Object.keys(n).forEach((e) => { t[e] = n[e]; }), Object.defineProperty(t, "innerHTML", r); }), e.one("sourceset", t.resetSourceWatch_); }, na = Object.defineProperty({}, "src", { get() { return this.hasAttribute("src") ? li(i().Element.prototype.getAttribute.call(this, "src")) : ""; }, set(e) { return i().Element.prototype.setAttribute.call(this, "src", e), e; }, }), ra = function (e) { if (!e.featuresSourceset) return; const t = e.el(); if (t.resetSourceset_) return; const n = ((e) => ea([e.el(), i().HTMLMediaElement.prototype, na], "src"))(e), r = t.setAttribute, o = t.load; Object.defineProperty( t, "src", qt(n, { set: (r) => { const i = n.set.call(t, r); return e.triggerSourceset(t.src), i; }, }) ), (t.setAttribute = (n, i) => { const o = r.call(t, n, i); return /src/i.test(n) && e.triggerSourceset(t.src), o; }), (t.load = () => { const n = o.call(t); return Qo(e) || (e.triggerSourceset(""), ta(e)), n; }), t.currentSrc ? e.triggerSourceset(t.currentSrc) : Qo(e) || ta(e), (t.resetSourceset_ = () => { (t.resetSourceset_ = null), (t.load = o), (t.setAttribute = r), Object.defineProperty(t, "src", n), t.resetSourceWatch_ && t.resetSourceWatch_(); }); }; class ia extends xi { constructor(e, t) { super(e, t); const n = e.source; let r = !1; if ( ((this.featuresVideoFrameCallback = this.featuresVideoFrameCallback && "VIDEO" === this.el_.tagName), n && (this.el_.currentSrc !== n.src || (e.tag && 3 === e.tag.initNetworkState_)) ? this.setSource(n) : this.handleLateInit_(this.el_), e.enableSourceset && this.setupSourcesetHandling_(), (this.isScrubbing_ = !1), this.el_.hasChildNodes()) ) { const e = this.el_.childNodes; let t = e.length; const n = []; for (; t--; ) { const i = e[t]; "track" === i.nodeName.toLowerCase() && (this.featuresNativeTextTracks ? (this.remoteTextTrackEls().addTrackElement_(i), this.remoteTextTracks().addTrack(i.track), this.textTracks().addTrack(i.track), r || this.el_.hasAttribute("crossorigin") || !di(i.src) || (r = !0)) : n.push(i)); } for (let e = 0; e < n.length; e++) this.el_.removeChild(n[e]); } this.proxyNativeTracks_(), this.featuresNativeTextTracks && r && Dt.warn( "Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading." ), this.restoreMetadataTracksInIOSNativePlayer_(), (un || sn) && !0 === e.nativeControlsForTouch && this.setControls(!0), this.proxyWebkitFullscreen_(), this.triggerReady(); } dispose() { this.el_ && this.el_.resetSourceset_ && this.el_.resetSourceset_(), ia.disposeMediaElement(this.el_), (this.options_ = null), super.dispose(); } setupSourcesetHandling_() { ra(this); } restoreMetadataTracksInIOSNativePlayer_() { const e = this.textTracks(); let t; const n = () => { t = []; for (let n = 0; n < e.length; n++) { const r = e[n]; "metadata" === r.kind && t.push({ track: r, storedMode: r.mode }); } }; n(), e.addEventListener("change", n), this.on("dispose", () => e.removeEventListener("change", n)); const r = () => { for (let e = 0; e < t.length; e++) { const n = t[e]; "disabled" === n.track.mode && n.track.mode !== n.storedMode && (n.track.mode = n.storedMode); } e.removeEventListener("change", r); }; this.on("webkitbeginfullscreen", () => { e.removeEventListener("change", n), e.removeEventListener("change", r), e.addEventListener("change", r); }), this.on("webkitendfullscreen", () => { e.removeEventListener("change", n), e.addEventListener("change", n), e.removeEventListener("change", r); }); } overrideNative_(e, t) { if (t !== this[`featuresNative${e}Tracks`]) return; const n = e.toLowerCase(); this[`${n}TracksListeners_`] && Object.keys(this[`${n}TracksListeners_`]).forEach((e) => { this.el()[`${n}Tracks`].removeEventListener( e, this[`${n}TracksListeners_`][e] ); }), (this[`featuresNative${e}Tracks`] = !t), (this[`${n}TracksListeners_`] = null), this.proxyNativeTracksForType_(n); } overrideNativeAudioTracks(e) { this.overrideNative_("Audio", e); } overrideNativeVideoTracks(e) { this.overrideNative_("Video", e); } proxyNativeTracksForType_(e) { const t = _i[e], n = this.el()[t.getterName], r = this[t.getterName](); if ( !this[`featuresNative${t.capitalName}Tracks`] || !n || !n.addEventListener ) return; const i = { change: (t) => { const n = { type: "change", target: r, currentTarget: r, srcElement: r, }; r.trigger(n), "text" === e && this[wi.remoteText.getterName]().trigger(n); }, addtrack(e) { r.addTrack(e.track); }, removetrack(e) { r.removeTrack(e.track); }, }, o = function () { const e = []; for (let t = 0; t < r.length; t++) { let i = !1; for (let e = 0; e < n.length; e++) if (n[e] === r[t]) { i = !0; break; } i || e.push(r[t]); } for (; e.length; ) r.removeTrack(e.shift()); }; (this[t.getterName + "Listeners_"] = i), Object.keys(i).forEach((e) => { const t = i[e]; n.addEventListener(e, t), this.on("dispose", (r) => n.removeEventListener(e, t)); }), this.on("loadstart", o), this.on("dispose", (e) => this.off("loadstart", o)); } proxyNativeTracks_() { _i.names.forEach((e) => { this.proxyNativeTracksForType_(e); }); } createEl() { let e = this.options_.tag; if ( !e || (!this.options_.playerElIngest && !this.movingMediaElementInDOM) ) { if (e) { const t = e.cloneNode(!0); e.parentNode && e.parentNode.insertBefore(t, e), ia.disposeMediaElement(e), (e = t); } else { e = a().createElement("video"); const t = qt({}, this.options_.tag && En(this.options_.tag)); (un && !0 === this.options_.nativeControlsForTouch) || delete t.controls, kn( e, Object.assign(t, { id: this.options_.techId, class: "vjs-tech", }) ); } e.playerId = this.options_.playerId; } void 0 !== this.options_.preload && Cn(e, "preload", this.options_.preload), void 0 !== this.options_.disablePictureInPicture && (e.disablePictureInPicture = this.options_.disablePictureInPicture); const t = ["loop", "muted", "playsinline", "autoplay"]; for (let n = 0; n < t.length; n++) { const r = t[n], i = this.options_[r]; void 0 !== i && (i ? Cn(e, r, r) : Ln(e, r), (e[r] = i)); } return e; } handleLateInit_(e) { if (0 === e.networkState || 3 === e.networkState) return; if (0 === e.readyState) { let e = !1; const t = function () { e = !0; }; this.on("loadstart", t); const n = function () { e || this.trigger("loadstart"); }; return ( this.on("loadedmetadata", n), void this.ready(function () { this.off("loadstart", t), this.off("loadedmetadata", n), e || this.trigger("loadstart"); }) ); } const t = ["loadstart"]; t.push("loadedmetadata"), e.readyState >= 2 && t.push("loadeddata"), e.readyState >= 3 && t.push("canplay"), e.readyState >= 4 && t.push("canplaythrough"), this.ready(function () { t.forEach(function (e) { this.trigger(e); }, this); }); } setScrubbing(e) { this.isScrubbing_ = e; } scrubbing() { return this.isScrubbing_; } setCurrentTime(e) { try { this.isScrubbing_ && this.el_.fastSeek && fn ? this.el_.fastSeek(e) : (this.el_.currentTime = e); } catch (e) { Dt(e, "Video is not ready. (Video.js)"); } } duration() { if ( this.el_.duration === 1 / 0 && Yt && Jt && 0 === this.el_.currentTime ) { const e = () => { this.el_.currentTime > 0 && (this.el_.duration === 1 / 0 && this.trigger("durationchange"), this.off("timeupdate", e)); }; return this.on("timeupdate", e), NaN; } return this.el_.duration || NaN; } width() { return this.el_.offsetWidth; } height() { return this.el_.offsetHeight; } proxyWebkitFullscreen_() { if (!("webkitDisplayingFullscreen" in this.el_)) return; const e = function () { this.trigger("fullscreenchange", { isFullscreen: !1 }), this.el_.controls && !this.options_.nativeControlsForTouch && this.controls() && (this.el_.controls = !1); }, t = function () { "webkitPresentationMode" in this.el_ && "picture-in-picture" !== this.el_.webkitPresentationMode && (this.one("webkitendfullscreen", e), this.trigger("fullscreenchange", { isFullscreen: !0, nativeIOSFullscreen: !0, })); }; this.on("webkitbeginfullscreen", t), this.on("dispose", () => { this.off("webkitbeginfullscreen", t), this.off("webkitendfullscreen", e); }); } supportsFullScreen() { return "function" == typeof this.el_.webkitEnterFullScreen; } enterFullScreen() { const e = this.el_; if (e.paused && e.networkState <= e.HAVE_METADATA) Gr(this.el_.play()), this.setTimeout(function () { e.pause(); try { e.webkitEnterFullScreen(); } catch (e) { this.trigger("fullscreenerror", e); } }, 0); else try { e.webkitEnterFullScreen(); } catch (e) { this.trigger("fullscreenerror", e); } } exitFullScreen() { this.el_.webkitDisplayingFullscreen ? this.el_.webkitExitFullScreen() : this.trigger( "fullscreenerror", new Error("The video is not fullscreen") ); } requestPictureInPicture() { return this.el_.requestPictureInPicture(); } requestVideoFrameCallback(e) { return this.featuresVideoFrameCallback && !this.el_.webkitKeys ? this.el_.requestVideoFrameCallback(e) : super.requestVideoFrameCallback(e); } cancelVideoFrameCallback(e) { this.featuresVideoFrameCallback && !this.el_.webkitKeys ? this.el_.cancelVideoFrameCallback(e) : super.cancelVideoFrameCallback(e); } src(e) { if (void 0 === e) return this.el_.src; this.setSrc(e); } reset() { ia.resetMediaElement(this.el_); } currentSrc() { return this.currentSource_ ? this.currentSource_.src : this.el_.currentSrc; } setControls(e) { this.el_.controls = !!e; } addTextTrack(e, t, n) { return this.featuresNativeTextTracks ? this.el_.addTextTrack(e, t, n) : super.addTextTrack(e, t, n); } createRemoteTextTrack(e) { if (!this.featuresNativeTextTracks) return super.createRemoteTextTrack(e); const t = a().createElement("track"); return ( e.kind && (t.kind = e.kind), e.label && (t.label = e.label), (e.language || e.srclang) && (t.srclang = e.language || e.srclang), e.default && (t.default = e.default), e.id && (t.id = e.id), e.src && (t.src = e.src), t ); } addRemoteTextTrack(e, t) { const n = super.addRemoteTextTrack(e, t); return this.featuresNativeTextTracks && this.el().appendChild(n), n; } removeRemoteTextTrack(e) { if ((super.removeRemoteTextTrack(e), this.featuresNativeTextTracks)) { const t = this.$$("track"); let n = t.length; for (; n--; ) (e !== t[n] && e !== t[n].track) || this.el().removeChild(t[n]); } } getVideoPlaybackQuality() { if ("function" == typeof this.el().getVideoPlaybackQuality) return this.el().getVideoPlaybackQuality(); const e = {}; return ( void 0 !== this.el().webkitDroppedFrameCount && void 0 !== this.el().webkitDecodedFrameCount && ((e.droppedVideoFrames = this.el().webkitDroppedFrameCount), (e.totalVideoFrames = this.el().webkitDecodedFrameCount)), i().performance && (e.creationTime = i().performance.now()), e ); } } Zt(ia, "TEST_VID", function () { if (!hn()) return; const e = a().createElement("video"), t = a().createElement("track"); return ( (t.kind = "captions"), (t.srclang = "en"), (t.label = "English"), e.appendChild(t), e ); }), (ia.isSupported = function () { try { ia.TEST_VID.volume = 0.5; } catch (e) { return !1; } return !(!ia.TEST_VID || !ia.TEST_VID.canPlayType); }), (ia.canPlayType = function (e) { return ia.TEST_VID.canPlayType(e); }), (ia.canPlaySource = function (e, t) { return ia.canPlayType(e.type); }), (ia.canControlVolume = function () { try { const e = ia.TEST_VID.volume; ia.TEST_VID.volume = e / 2 + 0.1; const t = e !== ia.TEST_VID.volume; return t && ln ? (i().setTimeout(() => { ia && ia.prototype && (ia.prototype.featuresVolumeControl = e !== ia.TEST_VID.volume); }), !1) : t; } catch (e) { return !1; } }), (ia.canMuteVolume = function () { try { const e = ia.TEST_VID.muted; return ( (ia.TEST_VID.muted = !e), ia.TEST_VID.muted ? Cn(ia.TEST_VID, "muted", "muted") : Ln(ia.TEST_VID, "muted"), e !== ia.TEST_VID.muted ); } catch (e) { return !1; } }), (ia.canControlPlaybackRate = function () { if (Yt && Jt && tn < 58) return !1; try { const e = ia.TEST_VID.playbackRate; return ( (ia.TEST_VID.playbackRate = e / 2 + 0.1), e !== ia.TEST_VID.playbackRate ); } catch (e) { return !1; } }), (ia.canOverrideAttributes = function () { try { const e = () => {}; Object.defineProperty(a().createElement("video"), "src", { get: e, set: e, }), Object.defineProperty(a().createElement("audio"), "src", { get: e, set: e, }), Object.defineProperty(a().createElement("video"), "innerHTML", { get: e, set: e, }), Object.defineProperty(a().createElement("audio"), "innerHTML", { get: e, set: e, }); } catch (e) { return !1; } return !0; }), (ia.supportsNativeTextTracks = function () { return fn || (ln && Jt); }), (ia.supportsNativeVideoTracks = function () { return !(!ia.TEST_VID || !ia.TEST_VID.videoTracks); }), (ia.supportsNativeAudioTracks = function () { return !(!ia.TEST_VID || !ia.TEST_VID.audioTracks); }), (ia.Events = [ "loadstart", "suspend", "abort", "error", "emptied", "stalled", "loadedmetadata", "loadeddata", "canplay", "canplaythrough", "playing", "waiting", "seeking", "seeked", "ended", "durationchange", "timeupdate", "progress", "play", "pause", "ratechange", "resize", "volumechange", ]), [ ["featuresMuteControl", "canMuteVolume"], ["featuresPlaybackRate", "canControlPlaybackRate"], ["featuresSourceset", "canOverrideAttributes"], ["featuresNativeTextTracks", "supportsNativeTextTracks"], ["featuresNativeVideoTracks", "supportsNativeVideoTracks"], ["featuresNativeAudioTracks", "supportsNativeAudioTracks"], ].forEach(function ([e, t]) { Zt(ia.prototype, e, () => ia[t](), !0); }), (ia.prototype.featuresVolumeControl = ia.canControlVolume()), (ia.prototype.movingMediaElementInDOM = !ln), (ia.prototype.featuresFullscreenResize = !0), (ia.prototype.featuresProgressEvents = !0), (ia.prototype.featuresTimeupdateEvents = !0), (ia.prototype.featuresVideoFrameCallback = !( !ia.TEST_VID || !ia.TEST_VID.requestVideoFrameCallback )), (ia.disposeMediaElement = function (e) { if (e) { for ( e.parentNode && e.parentNode.removeChild(e); e.hasChildNodes(); ) e.removeChild(e.firstChild); e.removeAttribute("src"), "function" == typeof e.load && (function () { try { e.load(); } catch (e) {} })(); } }), (ia.resetMediaElement = function (e) { if (!e) return; const t = e.querySelectorAll("source"); let n = t.length; for (; n--; ) e.removeChild(t[n]); e.removeAttribute("src"), "function" == typeof e.load && (function () { try { e.load(); } catch (e) {} })(); }), [ "muted", "defaultMuted", "autoplay", "controls", "loop", "playsinline", ].forEach(function (e) { ia.prototype[e] = function () { return this.el_[e] || this.el_.hasAttribute(e); }; }), ["muted", "defaultMuted", "autoplay", "loop", "playsinline"].forEach( function (e) { ia.prototype["set" + Mr(e)] = function (t) { (this.el_[e] = t), t ? this.el_.setAttribute(e, e) : this.el_.removeAttribute(e); }; } ), [ "paused", "currentTime", "buffered", "volume", "poster", "preload", "error", "seeking", "seekable", "ended", "playbackRate", "defaultPlaybackRate", "disablePictureInPicture", "played", "networkState", "readyState", "videoWidth", "videoHeight", "crossOrigin", ].forEach(function (e) { ia.prototype[e] = function () { return this.el_[e]; }; }), [ "volume", "src", "poster", "preload", "playbackRate", "defaultPlaybackRate", "disablePictureInPicture", "crossOrigin", ].forEach(function (e) { ia.prototype["set" + Mr(e)] = function (t) { this.el_[e] = t; }; }), ["pause", "load", "play"].forEach(function (e) { ia.prototype[e] = function () { return this.el_[e](); }; }), xi.withSourceHandlers(ia), (ia.nativeSourceHandler = {}), (ia.nativeSourceHandler.canPlayType = function (e) { try { return ia.TEST_VID.canPlayType(e); } catch (e) { return ""; } }), (ia.nativeSourceHandler.canHandleSource = function (e, t) { if (e.type) return ia.nativeSourceHandler.canPlayType(e.type); if (e.src) { const t = fi(e.src); return ia.nativeSourceHandler.canPlayType(`video/${t}`); } return ""; }), (ia.nativeSourceHandler.handleSource = function (e, t, n) { t.setSrc(e.src); }), (ia.nativeSourceHandler.dispose = function () {}), ia.registerSourceHandler(ia.nativeSourceHandler), xi.registerTech("Html5", ia); const oa = [ "progress", "abort", "suspend", "emptied", "stalled", "loadedmetadata", "loadeddata", "timeupdate", "resize", "volumechange", "texttrackchange", ], aa = { canplay: "CanPlay", canplaythrough: "CanPlayThrough", playing: "Playing", seeked: "Seeked", }, sa = ["tiny", "xsmall", "small", "medium", "large", "xlarge", "huge"], ua = {}; sa.forEach((e) => { const t = "x" === e.charAt(0) ? `x-${e.substring(1)}` : e; ua[e] = `vjs-layout-${t}`; }); const ca = { tiny: 210, xsmall: 320, small: 425, medium: 768, large: 1440, xlarge: 2560, huge: 1 / 0, }; class la extends Dr { constructor(e, t, n) { if ( ((e.id = e.id || t.id || `vjs_video_${tr()}`), ((t = Object.assign(la.getTagSettings(e), t)).initChildren = !1), (t.createEl = !1), (t.evented = !1), (t.reportTouchActivity = !1), !t.language) ) { const n = e.closest("[lang]"); n && (t.language = n.getAttribute("lang")); } if ( (super(null, t, n), (this.boundDocumentFullscreenChange_ = (e) => this.documentFullscreenChange_(e)), (this.boundFullWindowOnEscKey_ = (e) => this.fullWindowOnEscKey(e)), (this.boundUpdateStyleEl_ = (e) => this.updateStyleEl_(e)), (this.boundApplyInitTime_ = (e) => this.applyInitTime_(e)), (this.boundUpdateCurrentBreakpoint_ = (e) => this.updateCurrentBreakpoint_(e)), (this.boundHandleTechClick_ = (e) => this.handleTechClick_(e)), (this.boundHandleTechDoubleClick_ = (e) => this.handleTechDoubleClick_(e)), (this.boundHandleTechTouchStart_ = (e) => this.handleTechTouchStart_(e)), (this.boundHandleTechTouchMove_ = (e) => this.handleTechTouchMove_(e)), (this.boundHandleTechTouchEnd_ = (e) => this.handleTechTouchEnd_(e)), (this.boundHandleTechTap_ = (e) => this.handleTechTap_(e)), (this.isFullscreen_ = !1), (this.log = jt(this.id_)), (this.fsApi_ = At), (this.isPosterFromTech_ = !1), (this.queuedCallbacks_ = []), (this.isReady_ = !1), (this.hasStarted_ = !1), (this.userActive_ = !1), (this.debugEnabled_ = !1), (this.audioOnlyMode_ = !1), (this.audioPosterMode_ = !1), (this.audioOnlyCache_ = { playerHeight: null, hiddenChildren: [] }), !this.options_ || !this.options_.techOrder || !this.options_.techOrder.length) ) throw new Error( "No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?" ); if ( ((this.tag = e), (this.tagAttributes = e && En(e)), this.language(this.options_.language), t.languages) ) { const e = {}; Object.getOwnPropertyNames(t.languages).forEach(function (n) { e[n.toLowerCase()] = t.languages[n]; }), (this.languages_ = e); } else this.languages_ = la.prototype.options_.languages; this.resetCache_(), (this.poster_ = t.poster || ""), (this.controls_ = !!t.controls), (e.controls = !1), e.removeAttribute("controls"), (this.changingSrc_ = !1), (this.playCallbacks_ = []), (this.playTerminatedQueue_ = []), e.hasAttribute("autoplay") ? this.autoplay(!0) : this.autoplay(this.options_.autoplay), t.plugins && Object.keys(t.plugins).forEach((e) => { if ("function" != typeof this[e]) throw new Error(`plugin "${e}" does not exist`); }), (this.scrubbing_ = !1), (this.el_ = this.createEl()), Cr(this, { eventBusKey: "el_" }), this.fsApi_.requestFullscreen && (ar( a(), this.fsApi_.fullscreenchange, this.boundDocumentFullscreenChange_ ), this.on( this.fsApi_.fullscreenchange, this.boundDocumentFullscreenChange_ )), this.fluid_ && this.on(["playerreset", "resize"], this.boundUpdateStyleEl_); const r = qt(this.options_); t.plugins && Object.keys(t.plugins).forEach((e) => { this[e](t.plugins[e]); }), t.debug && this.debug(!0), (this.options_.playerOptions = r), (this.middleware_ = []), this.playbackRates(t.playbackRates), this.initChildren(), this.isAudio("audio" === e.nodeName.toLowerCase()), this.controls() ? this.addClass("vjs-controls-enabled") : this.addClass("vjs-controls-disabled"), this.el_.setAttribute("role", "region"), this.isAudio() ? this.el_.setAttribute( "aria-label", this.localize("Audio Player") ) : this.el_.setAttribute( "aria-label", this.localize("Video Player") ), this.isAudio() && this.addClass("vjs-audio"), un && this.addClass("vjs-touch-enabled"), ln || this.addClass("vjs-workinghover"), (la.players[this.id_] = this); const i = Et.split(".")[0]; this.addClass(`vjs-v${i}`), this.userActive(!0), this.reportUserActivity(), this.one("play", (e) => this.listenForUserActivity_(e)), this.on("keydown", (e) => this.handleKeyDown(e)), this.on("languagechange", (e) => this.handleLanguagechange(e)), this.breakpoints(this.options_.breakpoints), this.responsive(this.options_.responsive), this.on("ready", () => { this.audioPosterMode(this.options_.audioPosterMode), this.audioOnlyMode(this.options_.audioOnlyMode); }); } dispose() { this.trigger("dispose"), this.off("dispose"), sr( a(), this.fsApi_.fullscreenchange, this.boundDocumentFullscreenChange_ ), sr(a(), "keydown", this.boundFullWindowOnEscKey_), this.styleEl_ && this.styleEl_.parentNode && (this.styleEl_.parentNode.removeChild(this.styleEl_), (this.styleEl_ = null)), (la.players[this.id_] = null), this.tag && this.tag.player && (this.tag.player = null), this.el_ && this.el_.player && (this.el_.player = null), this.tech_ && (this.tech_.dispose(), (this.isPosterFromTech_ = !1), (this.poster_ = "")), this.playerElIngest_ && (this.playerElIngest_ = null), this.tag && (this.tag = null), (ki[this.id()] = null), Ti.names.forEach((e) => { const t = this[Ti[e].getterName](); t && t.off && t.off(); }), super.dispose({ restoreEl: this.options_.restoreEl }); } createEl() { let e, t = this.tag, n = (this.playerElIngest_ = t.parentNode && t.parentNode.hasAttribute && t.parentNode.hasAttribute("data-vjs-player")); const r = "video-js" === this.tag.tagName.toLowerCase(); n ? (e = this.el_ = t.parentNode) : r || (e = this.el_ = super.createEl("div")); const o = En(t); if (r) { for ( e = this.el_ = t, t = this.tag = a().createElement("video"); e.children.length; ) t.appendChild(e.firstChild); wn(e, "video-js") || Tn(e, "video-js"), e.appendChild(t), (n = this.playerElIngest_ = e), Object.keys(e).forEach((n) => { try { t[n] = e[n]; } catch (e) {} }); } if ( (t.setAttribute("tabindex", "-1"), (o.tabindex = "-1"), Jt && on && (t.setAttribute("role", "application"), (o.role = "application")), t.removeAttribute("width"), t.removeAttribute("height"), "width" in o && delete o.width, "height" in o && delete o.height, Object.getOwnPropertyNames(o).forEach(function (n) { (r && "class" === n) || e.setAttribute(n, o[n]), r && t.setAttribute(n, o[n]); }), (t.playerId = t.id), (t.id += "_html5_api"), (t.className = "vjs-tech"), (t.player = e.player = this), this.addClass("vjs-paused"), !0 !== i().VIDEOJS_NO_DYNAMIC_STYLE) ) { this.styleEl_ = Kn("vjs-styles-dimensions"); const e = zn(".vjs-styles-defaults"), t = zn("head"); t.insertBefore(this.styleEl_, e ? e.nextSibling : t.firstChild); } (this.fill_ = !1), (this.fluid_ = !1), this.width(this.options_.width), this.height(this.options_.height), this.fill(this.options_.fill), this.fluid(this.options_.fluid), this.aspectRatio(this.options_.aspectRatio), this.crossOrigin( this.options_.crossOrigin || this.options_.crossorigin ); const s = t.getElementsByTagName("a"); for (let e = 0; e < s.length; e++) { const t = s.item(e); Tn(t, "vjs-hidden"), t.setAttribute("hidden", "hidden"); } return ( (t.initNetworkState_ = t.networkState), t.parentNode && !n && t.parentNode.insertBefore(e, t), _n(t, e), this.children_.unshift(t), this.el_.setAttribute("lang", this.language_), this.el_.setAttribute("translate", "no"), (this.el_ = e), e ); } crossOrigin(e) { if (void 0 === e) return this.techGet_("crossOrigin"); null === e || "anonymous" === e || "use-credentials" === e ? (this.techCall_("setCrossOrigin", e), this.posterImage && this.posterImage.crossOrigin(e)) : Dt.warn( `crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"` ); } width(e) { return this.dimension("width", e); } height(e) { return this.dimension("height", e); } dimension(e, t) { const n = e + "_"; if (void 0 === t) return this[n] || 0; if ("" === t || "auto" === t) return (this[n] = void 0), void this.updateStyleEl_(); const r = parseFloat(t); isNaN(r) ? Dt.error(`Improper value "${t}" supplied for for ${e}`) : ((this[n] = r), this.updateStyleEl_()); } fluid(e) { if (void 0 === e) return !!this.fluid_; var t, n; (this.fluid_ = !!e), _r(this) && this.off(["playerreset", "resize"], this.boundUpdateStyleEl_), e ? (this.addClass("vjs-fluid"), this.fill(!1), (n = () => { this.on(["playerreset", "resize"], this.boundUpdateStyleEl_); }), _r((t = this)) ? n() : (t.eventedCallbacks || (t.eventedCallbacks = []), t.eventedCallbacks.push(n))) : this.removeClass("vjs-fluid"), this.updateStyleEl_(); } fill(e) { if (void 0 === e) return !!this.fill_; (this.fill_ = !!e), e ? (this.addClass("vjs-fill"), this.fluid(!1)) : this.removeClass("vjs-fill"); } aspectRatio(e) { if (void 0 === e) return this.aspectRatio_; if (!/^\d+\:\d+$/.test(e)) throw new Error( "Improper value supplied for aspect ratio. The format should be width:height, for example 16:9." ); (this.aspectRatio_ = e), this.fluid(!0), this.updateStyleEl_(); } updateStyleEl_() { if (!0 === i().VIDEOJS_NO_DYNAMIC_STYLE) { const e = "number" == typeof this.width_ ? this.width_ : this.options_.width, t = "number" == typeof this.height_ ? this.height_ : this.options_.height, n = this.tech_ && this.tech_.el(); return void ( n && (e >= 0 && (n.width = e), t >= 0 && (n.height = t)) ); } let e, t, n, r; n = void 0 !== this.aspectRatio_ && "auto" !== this.aspectRatio_ ? this.aspectRatio_ : this.videoWidth() > 0 ? this.videoWidth() + ":" + this.videoHeight() : "16:9"; const o = n.split(":"), a = o[1] / o[0]; (e = void 0 !== this.width_ ? this.width_ : void 0 !== this.height_ ? this.height_ / a : this.videoWidth() || 300), (t = void 0 !== this.height_ ? this.height_ : e * a), (r = /^[^a-zA-Z]/.test(this.id()) ? "dimensions-" + this.id() : this.id() + "-dimensions"), this.addClass(r), Xn( this.styleEl_, `\n .${r} {\n width: ${e}px;\n height: ${t}px;\n }\n\n .${r}.vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ${ 100 * a }%;\n }\n ` ); } loadTech_(e, t) { this.tech_ && this.unloadTech_(); const n = Mr(e), r = e.charAt(0).toLowerCase() + e.slice(1); "Html5" !== n && this.tag && (xi.getTech("Html5").disposeMediaElement(this.tag), (this.tag.player = null), (this.tag = null)), (this.techName_ = n), (this.isReady_ = !1); let i = this.autoplay(); ("string" == typeof this.autoplay() || (!0 === this.autoplay() && this.options_.normalizeAutoplay)) && (i = !1); const o = { source: t, autoplay: i, nativeControlsForTouch: this.options_.nativeControlsForTouch, playerId: this.id(), techId: `${this.id()}_${r}_api`, playsinline: this.options_.playsinline, preload: this.options_.preload, loop: this.options_.loop, disablePictureInPicture: this.options_.disablePictureInPicture, muted: this.options_.muted, poster: this.poster(), language: this.language(), playerElIngest: this.playerElIngest_ || !1, "vtt.js": this.options_["vtt.js"], canOverridePoster: !!this.options_.techCanOverridePoster, enableSourceset: this.options_.enableSourceset, }; Ti.names.forEach((e) => { const t = Ti[e]; o[t.getterName] = this[t.privateName]; }), Object.assign(o, this.options_[n]), Object.assign(o, this.options_[r]), Object.assign(o, this.options_[e.toLowerCase()]), this.tag && (o.tag = this.tag), t && t.src === this.cache_.src && this.cache_.currentTime > 0 && (o.startTime = this.cache_.currentTime); const a = xi.getTech(e); if (!a) throw new Error( `No Tech named '${n}' exists! '${n}' should be registered using videojs.registerTech()'` ); (this.tech_ = new a(o)), this.tech_.ready(pr(this, this.handleTechReady_), !0), Xr(this.textTracksJson_ || [], this.tech_), oa.forEach((e) => { this.on(this.tech_, e, (t) => this[`handleTech${Mr(e)}_`](t)); }), Object.keys(aa).forEach((e) => { this.on(this.tech_, e, (t) => { 0 === this.tech_.playbackRate() && this.tech_.seeking() ? this.queuedCallbacks_.push({ callback: this[`handleTech${aa[e]}_`].bind(this), event: t, }) : this[`handleTech${aa[e]}_`](t); }); }), this.on(this.tech_, "loadstart", (e) => this.handleTechLoadStart_(e) ), this.on(this.tech_, "sourceset", (e) => this.handleTechSourceset_(e) ), this.on(this.tech_, "waiting", (e) => this.handleTechWaiting_(e)), this.on(this.tech_, "ended", (e) => this.handleTechEnded_(e)), this.on(this.tech_, "seeking", (e) => this.handleTechSeeking_(e)), this.on(this.tech_, "play", (e) => this.handleTechPlay_(e)), this.on(this.tech_, "pause", (e) => this.handleTechPause_(e)), this.on(this.tech_, "durationchange", (e) => this.handleTechDurationChange_(e) ), this.on(this.tech_, "fullscreenchange", (e, t) => this.handleTechFullscreenChange_(e, t) ), this.on(this.tech_, "fullscreenerror", (e, t) => this.handleTechFullscreenError_(e, t) ), this.on(this.tech_, "enterpictureinpicture", (e) => this.handleTechEnterPictureInPicture_(e) ), this.on(this.tech_, "leavepictureinpicture", (e) => this.handleTechLeavePictureInPicture_(e) ), this.on(this.tech_, "error", (e) => this.handleTechError_(e)), this.on(this.tech_, "posterchange", (e) => this.handleTechPosterChange_(e) ), this.on(this.tech_, "textdata", (e) => this.handleTechTextData_(e)), this.on(this.tech_, "ratechange", (e) => this.handleTechRateChange_(e) ), this.on(this.tech_, "loadedmetadata", this.boundUpdateStyleEl_), this.usingNativeControls(this.techGet_("controls")), this.controls() && !this.usingNativeControls() && this.addTechControlsListeners_(), this.tech_.el().parentNode === this.el() || ("Html5" === n && this.tag) || _n(this.tech_.el(), this.el()), this.tag && ((this.tag.player = null), (this.tag = null)); } unloadTech_() { Ti.names.forEach((e) => { const t = Ti[e]; this[t.privateName] = this[t.getterName](); }), (this.textTracksJson_ = Kr(this.tech_)), (this.isReady_ = !1), this.tech_.dispose(), (this.tech_ = !1), this.isPosterFromTech_ && ((this.poster_ = ""), this.trigger("posterchange")), (this.isPosterFromTech_ = !1); } tech(e) { return ( void 0 === e && Dt.warn( "Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n" ), this.tech_ ); } addTechControlsListeners_() { this.removeTechControlsListeners_(), this.on(this.tech_, "click", this.boundHandleTechClick_), this.on(this.tech_, "dblclick", this.boundHandleTechDoubleClick_), this.on(this.tech_, "touchstart", this.boundHandleTechTouchStart_), this.on(this.tech_, "touchmove", this.boundHandleTechTouchMove_), this.on(this.tech_, "touchend", this.boundHandleTechTouchEnd_), this.on(this.tech_, "tap", this.boundHandleTechTap_); } removeTechControlsListeners_() { this.off(this.tech_, "tap", this.boundHandleTechTap_), this.off(this.tech_, "touchstart", this.boundHandleTechTouchStart_), this.off(this.tech_, "touchmove", this.boundHandleTechTouchMove_), this.off(this.tech_, "touchend", this.boundHandleTechTouchEnd_), this.off(this.tech_, "click", this.boundHandleTechClick_), this.off(this.tech_, "dblclick", this.boundHandleTechDoubleClick_); } handleTechReady_() { this.triggerReady(), this.cache_.volume && this.techCall_("setVolume", this.cache_.volume), this.handleTechPosterChange_(), this.handleTechDurationChange_(); } handleTechLoadStart_() { this.removeClass("vjs-ended", "vjs-seeking"), this.error(null), this.handleTechDurationChange_(), this.paused() ? (this.hasStarted(!1), this.trigger("loadstart")) : this.trigger("loadstart"), this.manualAutoplay_( !0 === this.autoplay() && this.options_.normalizeAutoplay ? "play" : this.autoplay() ); } manualAutoplay_(e) { if (!this.tech_ || "string" != typeof e) return; const t = () => { const e = this.muted(); this.muted(!0); const t = () => { this.muted(e); }; this.playTerminatedQueue_.push(t); const n = this.play(); if ($r(n)) return n.catch((e) => { throw ( (t(), new Error( `Rejection at manualAutoplay. Restoring muted value. ${ e || "" }` )) ); }); }; let n; return ( "any" !== e || this.muted() ? (n = "muted" !== e || this.muted() ? this.play() : t()) : ((n = this.play()), $r(n) && (n = n.catch(t))), $r(n) ? n .then(() => { this.trigger({ type: "autoplay-success", autoplay: e }); }) .catch(() => { this.trigger({ type: "autoplay-failure", autoplay: e }); }) : void 0 ); } updateSourceCaches_(e = "") { let t = e, n = ""; "string" != typeof t && ((t = e.src), (n = e.type)), (this.cache_.source = this.cache_.source || {}), (this.cache_.sources = this.cache_.sources || []), t && !n && (n = ((e, t) => { if (!t) return ""; if (e.cache_.source.src === t && e.cache_.source.type) return e.cache_.source.type; const n = e.cache_.sources.filter((e) => e.src === t); if (n.length) return n[0].type; const r = e.$$("source"); for (let e = 0; e < r.length; e++) { const n = r[e]; if (n.type && n.src && n.src === t) return n.type; } return Di(t); })(this, t)), (this.cache_.source = qt({}, e, { src: t, type: n })); const r = this.cache_.sources.filter((e) => e.src && e.src === t), i = [], o = this.$$("source"), a = []; for (let e = 0; e < o.length; e++) { const n = En(o[e]); i.push(n), n.src && n.src === t && a.push(n.src); } a.length && !r.length ? (this.cache_.sources = i) : r.length || (this.cache_.sources = [this.cache_.source]), (this.cache_.src = t); } handleTechSourceset_(e) { if (!this.changingSrc_) { let t = (e) => this.updateSourceCaches_(e); const n = this.currentSource().src, r = e.src; n && !/^blob:/.test(n) && /^blob:/.test(r) && (!this.lastSource_ || (this.lastSource_.tech !== r && this.lastSource_.player !== n)) && (t = () => {}), t(r), e.src || this.tech_.any(["sourceset", "loadstart"], (e) => { if ("sourceset" === e.type) return; const t = this.techGet("currentSrc"); (this.lastSource_.tech = t), this.updateSourceCaches_(t); }); } (this.lastSource_ = { player: this.currentSource().src, tech: e.src, }), this.trigger({ src: e.src, type: "sourceset" }); } hasStarted(e) { if (void 0 === e) return this.hasStarted_; e !== this.hasStarted_ && ((this.hasStarted_ = e), this.hasStarted_ ? this.addClass("vjs-has-started") : this.removeClass("vjs-has-started")); } handleTechPlay_() { this.removeClass("vjs-ended", "vjs-paused"), this.addClass("vjs-playing"), this.hasStarted(!0), this.trigger("play"); } handleTechRateChange_() { this.tech_.playbackRate() > 0 && 0 === this.cache_.lastPlaybackRate && (this.queuedCallbacks_.forEach((e) => e.callback(e.event)), (this.queuedCallbacks_ = [])), (this.cache_.lastPlaybackRate = this.tech_.playbackRate()), this.trigger("ratechange"); } handleTechWaiting_() { this.addClass("vjs-waiting"), this.trigger("waiting"); const e = this.currentTime(), t = () => { e !== this.currentTime() && (this.removeClass("vjs-waiting"), this.off("timeupdate", t)); }; this.on("timeupdate", t); } handleTechCanPlay_() { this.removeClass("vjs-waiting"), this.trigger("canplay"); } handleTechCanPlayThrough_() { this.removeClass("vjs-waiting"), this.trigger("canplaythrough"); } handleTechPlaying_() { this.removeClass("vjs-waiting"), this.trigger("playing"); } handleTechSeeking_() { this.addClass("vjs-seeking"), this.trigger("seeking"); } handleTechSeeked_() { this.removeClass("vjs-seeking", "vjs-ended"), this.trigger("seeked"); } handleTechPause_() { this.removeClass("vjs-playing"), this.addClass("vjs-paused"), this.trigger("pause"); } handleTechEnded_() { this.addClass("vjs-ended"), this.removeClass("vjs-waiting"), this.options_.loop ? (this.currentTime(0), this.play()) : this.paused() || this.pause(), this.trigger("ended"); } handleTechDurationChange_() { this.duration(this.techGet_("duration")); } handleTechClick_(e) { this.controls_ && ((void 0 !== this.options_ && void 0 !== this.options_.userActions && void 0 !== this.options_.userActions.click && !1 === this.options_.userActions.click) || (void 0 !== this.options_ && void 0 !== this.options_.userActions && "function" == typeof this.options_.userActions.click ? this.options_.userActions.click.call(this, e) : this.paused() ? Gr(this.play()) : this.pause())); } handleTechDoubleClick_(e) { if (!this.controls_) return; Array.prototype.some.call( this.$$(".vjs-control-bar, .vjs-modal-dialog"), (t) => t.contains(e.target) ) || (void 0 !== this.options_ && void 0 !== this.options_.userActions && void 0 !== this.options_.userActions.doubleClick && !1 === this.options_.userActions.doubleClick) || (void 0 !== this.options_ && void 0 !== this.options_.userActions && "function" == typeof this.options_.userActions.doubleClick ? this.options_.userActions.doubleClick.call(this, e) : this.isFullscreen() ? this.exitFullscreen() : this.requestFullscreen()); } handleTechTap_() { this.userActive(!this.userActive()); } handleTechTouchStart_() { this.userWasActive = this.userActive(); } handleTechTouchMove_() { this.userWasActive && this.reportUserActivity(); } handleTechTouchEnd_(e) { e.cancelable && e.preventDefault(); } toggleFullscreenClass_() { this.isFullscreen() ? this.addClass("vjs-fullscreen") : this.removeClass("vjs-fullscreen"); } documentFullscreenChange_(e) { const t = e.target.player; if (t && t !== this) return; const n = this.el(); let r = a()[this.fsApi_.fullscreenElement] === n; !r && n.matches ? (r = n.matches(":" + this.fsApi_.fullscreen)) : !r && n.msMatchesSelector && (r = n.msMatchesSelector(":" + this.fsApi_.fullscreen)), this.isFullscreen(r); } handleTechFullscreenChange_(e, t) { t && (t.nativeIOSFullscreen && (this.addClass("vjs-ios-native-fs"), this.tech_.one("webkitendfullscreen", () => { this.removeClass("vjs-ios-native-fs"); })), this.isFullscreen(t.isFullscreen)); } handleTechFullscreenError_(e, t) { this.trigger("fullscreenerror", t); } togglePictureInPictureClass_() { this.isInPictureInPicture() ? this.addClass("vjs-picture-in-picture") : this.removeClass("vjs-picture-in-picture"); } handleTechEnterPictureInPicture_(e) { this.isInPictureInPicture(!0); } handleTechLeavePictureInPicture_(e) { this.isInPictureInPicture(!1); } handleTechError_() { const e = this.tech_.error(); this.error(e); } handleTechTextData_() { let e = null; arguments.length > 1 && (e = arguments[1]), this.trigger("textdata", e); } getCache() { return this.cache_; } resetCache_() { this.cache_ = { currentTime: 0, initTime: 0, inactivityTimeout: this.options_.inactivityTimeout, duration: NaN, lastVolume: 1, lastPlaybackRate: this.defaultPlaybackRate(), media: null, src: "", source: {}, sources: [], playbackRates: [], volume: 1, }; } techCall_(e, t) { this.ready(function () { if (e in Ai) return (function (e, t, n, r) { return t[n](e.reduce(Mi(n), r)); })(this.middleware_, this.tech_, e, t); if (e in Ii) return Ci(this.middleware_, this.tech_, e, t); try { this.tech_ && this.tech_[e](t); } catch (e) { throw (Dt(e), e); } }, !0); } techGet_(e) { if (this.tech_ && this.tech_.isReady_) { if (e in Li) return (function (e, t, n) { return e.reduceRight(Mi(n), t[n]()); })(this.middleware_, this.tech_, e); if (e in Ii) return Ci(this.middleware_, this.tech_, e); try { return this.tech_[e](); } catch (t) { if (void 0 === this.tech_[e]) throw ( (Dt( `Video.js: ${e} method not defined for ${this.techName_} playback technology.`, t ), t) ); if ("TypeError" === t.name) throw ( (Dt( `Video.js: ${e} unavailable on ${this.techName_} playback technology element.`, t ), (this.tech_.isReady_ = !1), t) ); throw (Dt(t), t); } } } play() { return new Promise((e) => { this.play_(e); }); } play_(e = Gr) { this.playCallbacks_.push(e); const t = Boolean( !this.changingSrc_ && (this.src() || this.currentSrc()) ), n = Boolean(fn || ln); if ( (this.waitToPlay_ && (this.off(["ready", "loadstart"], this.waitToPlay_), (this.waitToPlay_ = null)), !this.isReady_ || !t) ) return ( (this.waitToPlay_ = (e) => { this.play_(); }), this.one(["ready", "loadstart"], this.waitToPlay_), void (!t && n && this.load()) ); const r = this.techGet_("play"); n && this.hasClass("vjs-ended") && this.resetProgressBar_(), null === r ? this.runPlayTerminatedQueue_() : this.runPlayCallbacks_(r); } runPlayTerminatedQueue_() { const e = this.playTerminatedQueue_.slice(0); (this.playTerminatedQueue_ = []), e.forEach(function (e) { e(); }); } runPlayCallbacks_(e) { const t = this.playCallbacks_.slice(0); (this.playCallbacks_ = []), (this.playTerminatedQueue_ = []), t.forEach(function (t) { t(e); }); } pause() { this.techCall_("pause"); } paused() { return !1 !== this.techGet_("paused"); } played() { return this.techGet_("played") || Br(0, 0); } scrubbing(e) { if (void 0 === e) return this.scrubbing_; (this.scrubbing_ = !!e), this.techCall_("setScrubbing", this.scrubbing_), e ? this.addClass("vjs-scrubbing") : this.removeClass("vjs-scrubbing"); } currentTime(e) { return void 0 !== e ? (e < 0 && (e = 0), this.isReady_ && !this.changingSrc_ && this.tech_ && this.tech_.isReady_ ? (this.techCall_("setCurrentTime", e), void (this.cache_.initTime = 0)) : ((this.cache_.initTime = e), this.off("canplay", this.boundApplyInitTime_), void this.one("canplay", this.boundApplyInitTime_))) : ((this.cache_.currentTime = this.techGet_("currentTime") || 0), this.cache_.currentTime); } applyInitTime_() { this.currentTime(this.cache_.initTime); } duration(e) { if (void 0 === e) return void 0 !== this.cache_.duration ? this.cache_.duration : NaN; (e = parseFloat(e)) < 0 && (e = 1 / 0), e !== this.cache_.duration && ((this.cache_.duration = e), e === 1 / 0 ? this.addClass("vjs-live") : this.removeClass("vjs-live"), isNaN(e) || this.trigger("durationchange")); } remainingTime() { return this.duration() - this.currentTime(); } remainingTimeDisplay() { return Math.floor(this.duration()) - Math.floor(this.currentTime()); } buffered() { let e = this.techGet_("buffered"); return (e && e.length) || (e = Br(0, 0)), e; } bufferedPercent() { return Vr(this.buffered(), this.duration()); } bufferedEnd() { const e = this.buffered(), t = this.duration(); let n = e.end(e.length - 1); return n > t && (n = t), n; } volume(e) { let t; return void 0 !== e ? ((t = Math.max(0, Math.min(1, parseFloat(e)))), (this.cache_.volume = t), this.techCall_("setVolume", t), void (t > 0 && this.lastVolume_(t))) : ((t = parseFloat(this.techGet_("volume"))), isNaN(t) ? 1 : t); } muted(e) { if (void 0 === e) return this.techGet_("muted") || !1; this.techCall_("setMuted", e); } defaultMuted(e) { return void 0 !== e ? this.techCall_("setDefaultMuted", e) : this.techGet_("defaultMuted") || !1; } lastVolume_(e) { if (void 0 === e || 0 === e) return this.cache_.lastVolume; this.cache_.lastVolume = e; } supportsFullScreen() { return this.techGet_("supportsFullScreen") || !1; } isFullscreen(e) { if (void 0 !== e) { const t = this.isFullscreen_; return ( (this.isFullscreen_ = Boolean(e)), this.isFullscreen_ !== t && this.fsApi_.prefixed && this.trigger("fullscreenchange"), void this.toggleFullscreenClass_() ); } return this.isFullscreen_; } requestFullscreen(e) { this.isInPictureInPicture() && this.exitPictureInPicture(); const t = this; return new Promise((n, r) => { function i() { t.off("fullscreenerror", a), t.off("fullscreenchange", o); } function o() { i(), n(); } function a(e, t) { i(), r(t); } t.one("fullscreenchange", o), t.one("fullscreenerror", a); const s = t.requestFullscreenHelper_(e); s && (s.then(i, i), s.then(n, r)); }); } requestFullscreenHelper_(e) { let t; if ( (this.fsApi_.prefixed || ((t = (this.options_.fullscreen && this.options_.fullscreen.options) || {}), void 0 !== e && (t = e)), this.fsApi_.requestFullscreen) ) { const e = this.el_[this.fsApi_.requestFullscreen](t); return ( e && e.then( () => this.isFullscreen(!0), () => this.isFullscreen(!1) ), e ); } this.tech_.supportsFullScreen() && !0 == !this.options_.preferFullWindow ? this.techCall_("enterFullScreen") : this.enterFullWindow(); } exitFullscreen() { const e = this; return new Promise((t, n) => { function r() { e.off("fullscreenerror", o), e.off("fullscreenchange", i); } function i() { r(), t(); } function o(e, t) { r(), n(t); } e.one("fullscreenchange", i), e.one("fullscreenerror", o); const a = e.exitFullscreenHelper_(); a && (a.then(r, r), a.then(t, n)); }); } exitFullscreenHelper_() { if (this.fsApi_.requestFullscreen) { const e = a()[this.fsApi_.exitFullscreen](); return e && Gr(e.then(() => this.isFullscreen(!1))), e; } this.tech_.supportsFullScreen() && !0 == !this.options_.preferFullWindow ? this.techCall_("exitFullScreen") : this.exitFullWindow(); } enterFullWindow() { this.isFullscreen(!0), (this.isFullWindow = !0), (this.docOrigOverflow = a().documentElement.style.overflow), ar(a(), "keydown", this.boundFullWindowOnEscKey_), (a().documentElement.style.overflow = "hidden"), Tn(a().body, "vjs-full-window"), this.trigger("enterFullWindow"); } fullWindowOnEscKey(e) { u().isEventKey(e, "Esc") && !0 === this.isFullscreen() && (this.isFullWindow ? this.exitFullWindow() : this.exitFullscreen()); } exitFullWindow() { this.isFullscreen(!1), (this.isFullWindow = !1), sr(a(), "keydown", this.boundFullWindowOnEscKey_), (a().documentElement.style.overflow = this.docOrigOverflow), xn(a().body, "vjs-full-window"), this.trigger("exitFullWindow"); } disablePictureInPicture(e) { if (void 0 === e) return this.techGet_("disablePictureInPicture"); this.techCall_("setDisablePictureInPicture", e), (this.options_.disablePictureInPicture = e), this.trigger("disablepictureinpicturechanged"); } isInPictureInPicture(e) { return void 0 !== e ? ((this.isInPictureInPicture_ = !!e), void this.togglePictureInPictureClass_()) : !!this.isInPictureInPicture_; } requestPictureInPicture() { if ( this.options_.enableDocumentPictureInPicture && i().documentPictureInPicture ) { const e = a().createElement(this.el().tagName); return ( (e.classList = this.el().classList), e.classList.add("vjs-pip-container"), this.posterImage && e.appendChild(this.posterImage.el().cloneNode(!0)), this.titleBar && e.appendChild(this.titleBar.el().cloneNode(!0)), e.appendChild( vn( "p", { className: "vjs-pip-text" }, {}, this.localize("Playing in picture-in-picture") ) ), i() .documentPictureInPicture.requestWindow({ initialAspectRatio: this.videoWidth() / this.videoHeight(), copyStyleSheets: !0, }) .then( (t) => ( this.el_.parentNode.insertBefore(e, this.el_), t.document.body.append(this.el_), t.document.body.classList.add("vjs-pip-window"), this.player_.isInPictureInPicture(!0), this.player_.trigger("enterpictureinpicture"), t.addEventListener("unload", (t) => { const n = t.target.querySelector(".video-js"); e.replaceWith(n), this.player_.isInPictureInPicture(!1), this.player_.trigger("leavepictureinpicture"); }), t ) ) ); } return "pictureInPictureEnabled" in a() && !1 === this.disablePictureInPicture() ? this.techGet_("requestPictureInPicture") : Promise.reject("No PiP mode is available"); } exitPictureInPicture() { return i().documentPictureInPicture && i().documentPictureInPicture.window ? (i().documentPictureInPicture.window.close(), Promise.resolve()) : "pictureInPictureEnabled" in a() ? a().exitPictureInPicture() : void 0; } handleKeyDown(e) { const { userActions: t } = this.options_; if (!t || !t.hotkeys) return; ((e) => { const t = e.tagName.toLowerCase(); if (e.isContentEditable) return !0; if ("input" === t) return ( -1 === [ "button", "checkbox", "hidden", "radio", "reset", "submit", ].indexOf(e.type) ); return -1 !== ["textarea"].indexOf(t); })(this.el_.ownerDocument.activeElement) || ("function" == typeof t.hotkeys ? t.hotkeys.call(this, e) : this.handleHotkeys(e)); } handleHotkeys(e) { const t = this.options_.userActions ? this.options_.userActions.hotkeys : {}, { fullscreenKey: n = (e) => u().isEventKey(e, "f"), muteKey: r = (e) => u().isEventKey(e, "m"), playPauseKey: i = (e) => u().isEventKey(e, "k") || u().isEventKey(e, "Space"), } = t; if (n.call(this, e)) { e.preventDefault(), e.stopPropagation(); const t = Dr.getComponent("FullscreenToggle"); !1 !== a()[this.fsApi_.fullscreenEnabled] && t.prototype.handleClick.call(this, e); } else if (r.call(this, e)) { e.preventDefault(), e.stopPropagation(); Dr.getComponent("MuteToggle").prototype.handleClick.call(this, e); } else if (i.call(this, e)) { e.preventDefault(), e.stopPropagation(); Dr.getComponent("PlayToggle").prototype.handleClick.call(this, e); } } canPlayType(e) { let t; for (let n = 0, r = this.options_.techOrder; n < r.length; n++) { const i = r[n]; let o = xi.getTech(i); if ((o || (o = Dr.getComponent(i)), o)) { if (o.isSupported() && ((t = o.canPlayType(e)), t)) return t; } else Dt.error( `The "${i}" tech is undefined. Skipped browser support check for that tech.` ); } return ""; } selectSource(e) { const t = this.options_.techOrder .map((e) => [e, xi.getTech(e)]) .filter(([e, t]) => t ? t.isSupported() : (Dt.error( `The "${e}" tech is undefined. Skipped browser support check for that tech.` ), !1) ), n = function (e, t, n) { let r; return ( e.some((e) => t.some((t) => { if (((r = n(e, t)), r)) return !0; }) ), r ); }; let r; const i = ([e, t], n) => { if (t.canPlaySource(n, this.options_[e.toLowerCase()])) return { source: n, tech: e }; }; var o; return ( (r = this.options_.sourceOrder ? n(e, t, ((o = i), (e, t) => o(t, e))) : n(t, e, i)), r || !1 ); } handleSrc_(e, t) { if (void 0 === e) return this.cache_.src || ""; this.resetRetryOnError_ && this.resetRetryOnError_(); const n = ji(e); if (n.length) { if ( ((this.changingSrc_ = !0), t || (this.cache_.sources = n), this.updateSourceCaches_(n[0]), Oi(this, n[0], (e, r) => { (this.middleware_ = r), t || (this.cache_.sources = n), this.updateSourceCaches_(e); if (this.src_(e)) return n.length > 1 ? this.handleSrc_(n.slice(1)) : ((this.changingSrc_ = !1), this.setTimeout(function () { this.error({ code: 4, message: this.options_.notSupportedMessage, }); }, 0), void this.triggerReady()); var i, o; (i = r), (o = this.tech_), i.forEach((e) => e.setTech && e.setTech(o)); }), n.length > 1) ) { const e = () => { this.error(null), this.handleSrc_(n.slice(1), !0); }, t = () => { this.off("error", e); }; this.one("error", e), this.one("playing", t), (this.resetRetryOnError_ = () => { this.off("error", e), this.off("playing", t); }); } } else this.setTimeout(function () { this.error({ code: 4, message: this.options_.notSupportedMessage, }); }, 0); } src(e) { return this.handleSrc_(e, !1); } src_(e) { const t = this.selectSource([e]); return ( !t || (Pr(t.tech, this.techName_) ? (this.ready(function () { this.tech_.constructor.prototype.hasOwnProperty("setSource") ? this.techCall_("setSource", e) : this.techCall_("src", e.src), (this.changingSrc_ = !1); }, !0), !1) : ((this.changingSrc_ = !0), this.loadTech_(t.tech, t.source), this.tech_.ready(() => { this.changingSrc_ = !1; }), !1)) ); } load() { this.techCall_("load"); } reset() { if (this.paused()) this.doReset_(); else { Gr(this.play().then(() => this.doReset_())); } } doReset_() { this.tech_ && this.tech_.clearTracks("text"), this.resetCache_(), this.poster(""), this.loadTech_(this.options_.techOrder[0], null), this.techCall_("reset"), this.resetControlBarUI_(), _r(this) && this.trigger("playerreset"); } resetControlBarUI_() { this.resetProgressBar_(), this.resetPlaybackRate_(), this.resetVolumeBar_(); } resetProgressBar_() { this.currentTime(0); const { currentTimeDisplay: e, durationDisplay: t, progressControl: n, remainingTimeDisplay: r, } = this.controlBar || {}, { seekBar: i } = n || {}; e && e.updateContent(), t && t.updateContent(), r && r.updateContent(), i && (i.update(), i.loadProgressBar && i.loadProgressBar.update()); } resetPlaybackRate_() { this.playbackRate(this.defaultPlaybackRate()), this.handleTechRateChange_(); } resetVolumeBar_() { this.volume(1), this.trigger("volumechange"); } currentSources() { const e = this.currentSource(), t = []; return ( 0 !== Object.keys(e).length && t.push(e), this.cache_.sources || t ); } currentSource() { return this.cache_.source || {}; } currentSrc() { return (this.currentSource() && this.currentSource().src) || ""; } currentType() { return (this.currentSource() && this.currentSource().type) || ""; } preload(e) { return void 0 !== e ? (this.techCall_("setPreload", e), void (this.options_.preload = e)) : this.techGet_("preload"); } autoplay(e) { if (void 0 === e) return this.options_.autoplay || !1; let t; ("string" == typeof e && /(any|play|muted)/.test(e)) || (!0 === e && this.options_.normalizeAutoplay) ? ((this.options_.autoplay = e), this.manualAutoplay_("string" == typeof e ? e : "play"), (t = !1)) : (this.options_.autoplay = !!e), (t = void 0 === t ? this.options_.autoplay : t), this.tech_ && this.techCall_("setAutoplay", t); } playsinline(e) { return void 0 !== e ? (this.techCall_("setPlaysinline", e), (this.options_.playsinline = e), this) : this.techGet_("playsinline"); } loop(e) { return void 0 !== e ? (this.techCall_("setLoop", e), void (this.options_.loop = e)) : this.techGet_("loop"); } poster(e) { if (void 0 === e) return this.poster_; e || (e = ""), e !== this.poster_ && ((this.poster_ = e), this.techCall_("setPoster", e), (this.isPosterFromTech_ = !1), this.trigger("posterchange")); } handleTechPosterChange_() { if ( (!this.poster_ || this.options_.techCanOverridePoster) && this.tech_ && this.tech_.poster ) { const e = this.tech_.poster() || ""; e !== this.poster_ && ((this.poster_ = e), (this.isPosterFromTech_ = !0), this.trigger("posterchange")); } } controls(e) { if (void 0 === e) return !!this.controls_; (e = !!e), this.controls_ !== e && ((this.controls_ = e), this.usingNativeControls() && this.techCall_("setControls", e), this.controls_ ? (this.removeClass("vjs-controls-disabled"), this.addClass("vjs-controls-enabled"), this.trigger("controlsenabled"), this.usingNativeControls() || this.addTechControlsListeners_()) : (this.removeClass("vjs-controls-enabled"), this.addClass("vjs-controls-disabled"), this.trigger("controlsdisabled"), this.usingNativeControls() || this.removeTechControlsListeners_())); } usingNativeControls(e) { if (void 0 === e) return !!this.usingNativeControls_; (e = !!e), this.usingNativeControls_ !== e && ((this.usingNativeControls_ = e), this.usingNativeControls_ ? (this.addClass("vjs-using-native-controls"), this.trigger("usingnativecontrols")) : (this.removeClass("vjs-using-native-controls"), this.trigger("usingcustomcontrols"))); } error(e) { if (void 0 === e) return this.error_ || null; if ( (Ct("beforeerror").forEach((t) => { const n = t(this, e); (zt(n) && !Array.isArray(n)) || "string" == typeof n || "number" == typeof n || null === n ? (e = n) : this.log.error( "please return a value that MediaError expects in beforeerror hooks" ); }), this.options_.suppressNotSupportedError && e && 4 === e.code) ) { const t = function () { this.error(e); }; return ( (this.options_.suppressNotSupportedError = !1), this.any(["click", "touchstart"], t), void this.one("loadstart", function () { this.off(["click", "touchstart"], t); }) ); } if (null === e) return ( (this.error_ = e), this.removeClass("vjs-error"), void (this.errorDisplay && this.errorDisplay.close()) ); (this.error_ = new Wr(e)), this.addClass("vjs-error"), Dt.error( `(CODE:${this.error_.code} ${Wr.errorTypes[this.error_.code]})`, this.error_.message, this.error_ ), this.trigger("error"), Ct("error").forEach((e) => e(this, this.error_)); } reportUserActivity(e) { this.userActivity_ = !0; } userActive(e) { if (void 0 === e) return this.userActive_; if ((e = !!e) !== this.userActive_) { if (((this.userActive_ = e), this.userActive_)) return ( (this.userActivity_ = !0), this.removeClass("vjs-user-inactive"), this.addClass("vjs-user-active"), void this.trigger("useractive") ); this.tech_ && this.tech_.one("mousemove", function (e) { e.stopPropagation(), e.preventDefault(); }), (this.userActivity_ = !1), this.removeClass("vjs-user-active"), this.addClass("vjs-user-inactive"), this.trigger("userinactive"); } } listenForUserActivity_() { let e, t, n; const r = pr(this, this.reportUserActivity), i = function (t) { r(), this.clearInterval(e); }; this.on("mousedown", function () { r(), this.clearInterval(e), (e = this.setInterval(r, 250)); }), this.on("mousemove", function (e) { (e.screenX === t && e.screenY === n) || ((t = e.screenX), (n = e.screenY), r()); }), this.on("mouseup", i), this.on("mouseleave", i); const o = this.getChild("controlBar"); let a; !o || ln || Yt || (o.on("mouseenter", function (e) { 0 !== this.player().options_.inactivityTimeout && (this.player().cache_.inactivityTimeout = this.player().options_.inactivityTimeout), (this.player().options_.inactivityTimeout = 0); }), o.on("mouseleave", function (e) { this.player().options_.inactivityTimeout = this.player().cache_.inactivityTimeout; })), this.on("keydown", r), this.on("keyup", r), this.setInterval(function () { if (!this.userActivity_) return; (this.userActivity_ = !1), this.userActive(!0), this.clearTimeout(a); const e = this.options_.inactivityTimeout; e <= 0 || (a = this.setTimeout(function () { this.userActivity_ || this.userActive(!1); }, e)); }, 250); } playbackRate(e) { if (void 0 === e) return this.tech_ && this.tech_.featuresPlaybackRate ? this.cache_.lastPlaybackRate || this.techGet_("playbackRate") : 1; this.techCall_("setPlaybackRate", e); } defaultPlaybackRate(e) { return void 0 !== e ? this.techCall_("setDefaultPlaybackRate", e) : this.tech_ && this.tech_.featuresPlaybackRate ? this.techGet_("defaultPlaybackRate") : 1; } isAudio(e) { if (void 0 === e) return !!this.isAudio_; this.isAudio_ = !!e; } enableAudioOnlyUI_() { this.addClass("vjs-audio-only-mode"); const e = this.children(), t = this.getChild("ControlBar"), n = t && t.currentHeight(); e.forEach((e) => { e !== t && e.el_ && !e.hasClass("vjs-hidden") && (e.hide(), this.audioOnlyCache_.hiddenChildren.push(e)); }), (this.audioOnlyCache_.playerHeight = this.currentHeight()), this.height(n), this.trigger("audioonlymodechange"); } disableAudioOnlyUI_() { this.removeClass("vjs-audio-only-mode"), this.audioOnlyCache_.hiddenChildren.forEach((e) => e.show()), this.height(this.audioOnlyCache_.playerHeight), this.trigger("audioonlymodechange"); } audioOnlyMode(e) { if ("boolean" != typeof e || e === this.audioOnlyMode_) return this.audioOnlyMode_; if (((this.audioOnlyMode_ = e), e)) { const e = []; return ( this.isInPictureInPicture() && e.push(this.exitPictureInPicture()), this.isFullscreen() && e.push(this.exitFullscreen()), this.audioPosterMode() && e.push(this.audioPosterMode(!1)), Promise.all(e).then(() => this.enableAudioOnlyUI_()) ); } return Promise.resolve().then(() => this.disableAudioOnlyUI_()); } enablePosterModeUI_() { (this.tech_ && this.tech_).hide(), this.addClass("vjs-audio-poster-mode"), this.trigger("audiopostermodechange"); } disablePosterModeUI_() { (this.tech_ && this.tech_).show(), this.removeClass("vjs-audio-poster-mode"), this.trigger("audiopostermodechange"); } audioPosterMode(e) { if ("boolean" != typeof e || e === this.audioPosterMode_) return this.audioPosterMode_; if (((this.audioPosterMode_ = e), e)) { if (this.audioOnlyMode()) { return this.audioOnlyMode(!1).then(() => { this.enablePosterModeUI_(); }); } return Promise.resolve().then(() => { this.enablePosterModeUI_(); }); } return Promise.resolve().then(() => { this.disablePosterModeUI_(); }); } addTextTrack(e, t, n) { if (this.tech_) return this.tech_.addTextTrack(e, t, n); } addRemoteTextTrack(e, t) { if (this.tech_) return this.tech_.addRemoteTextTrack(e, t); } removeRemoteTextTrack(e = {}) { let { track: t } = e; if ((t || (t = e), this.tech_)) return this.tech_.removeRemoteTextTrack(t); } getVideoPlaybackQuality() { return this.techGet_("getVideoPlaybackQuality"); } videoWidth() { return ( (this.tech_ && this.tech_.videoWidth && this.tech_.videoWidth()) || 0 ); } videoHeight() { return ( (this.tech_ && this.tech_.videoHeight && this.tech_.videoHeight()) || 0 ); } language(e) { if (void 0 === e) return this.language_; this.language_ !== String(e).toLowerCase() && ((this.language_ = String(e).toLowerCase()), _r(this) && this.trigger("languagechange")); } languages() { return qt(la.prototype.options_.languages, this.languages_); } toJSON() { const e = qt(this.options_), t = e.tracks; e.tracks = []; for (let n = 0; n < t.length; n++) { let r = t[n]; (r = qt(r)), (r.player = void 0), (e.tracks[n] = r); } return e; } createModal(e, t) { (t = t || {}).content = e || ""; const n = new Qr(this, t); return ( this.addChild(n), n.on("dispose", () => { this.removeChild(n); }), n.open(), n ); } updateCurrentBreakpoint_() { if (!this.responsive()) return; const e = this.currentBreakpoint(), t = this.currentWidth(); for (let n = 0; n < sa.length; n++) { const r = sa[n]; if (t <= this.breakpoints_[r]) { if (e === r) return; e && this.removeClass(ua[e]), this.addClass(ua[r]), (this.breakpoint_ = r); break; } } } removeCurrentBreakpoint_() { const e = this.currentBreakpointClass(); (this.breakpoint_ = ""), e && this.removeClass(e); } breakpoints(e) { return ( void 0 === e || ((this.breakpoint_ = ""), (this.breakpoints_ = Object.assign({}, ca, e)), this.updateCurrentBreakpoint_()), Object.assign(this.breakpoints_) ); } responsive(e) { if (void 0 === e) return this.responsive_; return (e = Boolean(e)) !== this.responsive_ ? ((this.responsive_ = e), e ? (this.on("playerresize", this.boundUpdateCurrentBreakpoint_), this.updateCurrentBreakpoint_()) : (this.off("playerresize", this.boundUpdateCurrentBreakpoint_), this.removeCurrentBreakpoint_()), e) : void 0; } currentBreakpoint() { return this.breakpoint_; } currentBreakpointClass() { return ua[this.breakpoint_] || ""; } loadMedia(e, t) { if (!e || "object" != typeof e) return; this.reset(), (this.cache_.media = qt(e)); const { artist: n, artwork: r, description: i, poster: o, src: a, textTracks: s, title: u, } = this.cache_.media; !r && o && (this.cache_.media.artwork = [{ src: o, type: Di(o) }]), a && this.src(a), o && this.poster(o), Array.isArray(s) && s.forEach((e) => this.addRemoteTextTrack(e, !1)), this.titleBar && this.titleBar.update({ title: u, description: i || n || "" }), this.ready(t); } getMedia() { if (!this.cache_.media) { const e = this.poster(), t = { src: this.currentSources(), textTracks: Array.prototype.map.call( this.remoteTextTracks(), (e) => ({ kind: e.kind, label: e.label, language: e.language, src: e.src, }) ), }; return ( e && ((t.poster = e), (t.artwork = [{ src: t.poster, type: Di(t.poster) }])), t ); } return qt(this.cache_.media); } static getTagSettings(e) { const t = { sources: [], tracks: [] }, n = En(e), r = n["data-setup"]; if ( (wn(e, "vjs-fill") && (n.fill = !0), wn(e, "vjs-fluid") && (n.fluid = !0), null !== r) ) { const [e, t] = l()(r || "{}"); e && Dt.error(e), Object.assign(n, t); } if ((Object.assign(t, n), e.hasChildNodes())) { const n = e.childNodes; for (let e = 0, r = n.length; e < r; e++) { const r = n[e], i = r.nodeName.toLowerCase(); "source" === i ? t.sources.push(En(r)) : "track" === i && t.tracks.push(En(r)); } } return t; } debug(e) { if (void 0 === e) return this.debugEnabled_; e ? (this.trigger("debugon"), (this.previousLogLevel_ = this.log.level), this.log.level("debug"), (this.debugEnabled_ = !0)) : (this.trigger("debugoff"), this.log.level(this.previousLogLevel_), (this.previousLogLevel_ = void 0), (this.debugEnabled_ = !1)); } playbackRates(e) { if (void 0 === e) return this.cache_.playbackRates; Array.isArray(e) && e.every((e) => "number" == typeof e) && ((this.cache_.playbackRates = e), this.trigger("playbackrateschange")); } } Ti.names.forEach(function (e) { const t = Ti[e]; la.prototype[t.getterName] = function () { return this.tech_ ? this.tech_[t.getterName]() : ((this[t.privateName] = this[t.privateName] || new t.ListClass()), this[t.privateName]); }; }), (la.prototype.crossorigin = la.prototype.crossOrigin), (la.players = {}); const fa = i().navigator; (la.prototype.options_ = { techOrder: xi.defaultTechOrder_, html5: {}, enableSourceset: !0, inactivityTimeout: 2e3, playbackRates: [], liveui: !1, children: [ "mediaLoader", "posterImage", "titleBar", "textTrackDisplay", "loadingSpinner", "bigPlayButton", "liveTracker", "controlBar", "errorDisplay", "textTrackSettings", "resizeManager", ], language: (fa && ((fa.languages && fa.languages[0]) || fa.userLanguage || fa.language)) || "en", languages: {}, notSupportedMessage: "No compatible source was found for this media.", normalizeAutoplay: !1, fullscreen: { options: { navigationUI: "hide" } }, breakpoints: {}, responsive: !1, audioOnlyMode: !1, audioPosterMode: !1, }), ["ended", "seeking", "seekable", "networkState", "readyState"].forEach( function (e) { la.prototype[e] = function () { return this.techGet_(e); }; } ), oa.forEach(function (e) { la.prototype[`handleTech${Mr(e)}_`] = function () { return this.trigger(e); }; }), Dr.registerComponent("Player", la); const da = "plugin", pa = {}, ha = (e) => pa.hasOwnProperty(e), ga = (e) => (ha(e) ? pa[e] : void 0), ma = (e, t) => { (e.activePlugins_ = e.activePlugins_ || {}), (e.activePlugins_[t] = !0); }, ya = (e, t, n) => { const r = (n ? "before" : "") + "pluginsetup"; e.trigger(r, t), e.trigger(r + ":" + t.name, t); }, va = (e, t) => ( (t.prototype.name = e), function (...n) { ya(this, { name: e, plugin: t, instance: null }, !0); const r = new t(...[this, ...n]); return (this[e] = () => r), ya(this, r.getEventHash()), r; } ); class ba { constructor(e) { if (this.constructor === ba) throw new Error( "Plugin must be sub-classed; not directly instantiated." ); (this.player = e), this.log || (this.log = this.player.log.createLogger(this.name)), Cr(this), delete this.trigger, Ar(this, this.constructor.defaultState), ma(e, this.name), (this.dispose = this.dispose.bind(this)), e.on("dispose", this.dispose); } version() { return this.constructor.VERSION; } getEventHash(e = {}) { return ( (e.name = this.name), (e.plugin = this.constructor), (e.instance = this), e ); } trigger(e, t = {}) { return ur(this.eventBusEl_, e, this.getEventHash(t)); } handleStateChanged(e) {} dispose() { const { name: e, player: t } = this; this.trigger("dispose"), this.off(), t.off("dispose", this.dispose), (t.activePlugins_[e] = !1), (this.player = this.state = null), (t[e] = va(e, pa[e])); } static isBasic(e) { const t = "string" == typeof e ? ga(e) : e; return ( "function" == typeof t && !ba.prototype.isPrototypeOf(t.prototype) ); } static registerPlugin(e, t) { if ("string" != typeof e) throw new Error( `Illegal plugin name, "${e}", must be a string, was ${typeof e}.` ); if (ha(e)) Dt.warn( `A plugin named "${e}" already exists. You may want to avoid re-registering plugins!` ); else if (la.prototype.hasOwnProperty(e)) throw new Error( `Illegal plugin name, "${e}", cannot share a name with an existing player method!` ); if ("function" != typeof t) throw new Error( `Illegal plugin for "${e}", must be a function, was ${typeof t}.` ); return ( (pa[e] = t), e !== da && (ba.isBasic(t) ? (la.prototype[e] = (function (e, t) { const n = function () { ya(this, { name: e, plugin: t, instance: null }, !0); const n = t.apply(this, arguments); return ( ma(this, e), ya(this, { name: e, plugin: t, instance: n }), n ); }; return ( Object.keys(t).forEach(function (e) { n[e] = t[e]; }), n ); })(e, t)) : (la.prototype[e] = va(e, t))), t ); } static deregisterPlugin(e) { if (e === da) throw new Error("Cannot de-register base plugin."); ha(e) && (delete pa[e], delete la.prototype[e]); } static getPlugins(e = Object.keys(pa)) { let t; return ( e.forEach((e) => { const n = ga(e); n && ((t = t || {}), (t[e] = n)); }), t ); } static getPluginVersion(e) { const t = ga(e); return (t && t.VERSION) || ""; } } function _a(e, t, n, r) { return (function (e, t) { let n = !1; return function (...r) { return n || Dt.warn(e), (n = !0), t.apply(this, r); }; })( `${t} is deprecated and will be removed in ${e}.0; please use ${n} instead.`, r ); } (ba.getPlugin = ga), (ba.BASE_PLUGIN_NAME = da), ba.registerPlugin(da, ba), (la.prototype.usingPlugin = function (e) { return !!this.activePlugins_ && !0 === this.activePlugins_[e]; }), (la.prototype.hasPlugin = function (e) { return !!ha(e); }); const wa = (e) => (0 === e.indexOf("#") ? e.slice(1) : e); function Ta(e, t, n) { let r = Ta.getPlayer(e); if (r) return ( t && Dt.warn( `Player "${e}" is already initialised. Options will not be applied.` ), n && r.ready(n), r ); const i = "string" == typeof e ? zn("#" + wa(e)) : e; if (!gn(i)) throw new TypeError( "The element or ID supplied is not valid. (videojs)" ); (i.ownerDocument.defaultView && i.ownerDocument.body.contains(i)) || Dt.warn("The element supplied is not included in the DOM"), !0 === (t = t || {}).restoreEl && (t.restoreEl = ( i.parentNode && i.parentNode.hasAttribute("data-vjs-player") ? i.parentNode : i ).cloneNode(!0)), Ct("beforesetup").forEach((e) => { const n = e(i, qt(t)); zt(n) && !Array.isArray(n) ? (t = qt(t, n)) : Dt.error("please return an object in beforesetup hooks"); }); const o = Dr.getComponent("Player"); return (r = new o(i, t, n)), Ct("setup").forEach((e) => e(r)), r; } if ( ((Ta.hooks_ = Ot), (Ta.hooks = Ct), (Ta.hook = function (e, t) { Ct(e, t); }), (Ta.hookOnce = function (e, t) { Ct( e, [].concat(t).map((t) => { const n = (...r) => (Lt(e, n), t(...r)); return n; }) ); }), (Ta.removeHook = Lt), !0 !== i().VIDEOJS_NO_DYNAMIC_STYLE && hn()) ) { let e = zn(".vjs-styles-defaults"); if (!e) { e = Kn("vjs-styles-defaults"); const t = zn("head"); t && t.insertBefore(e, t.firstChild), Xn( e, "\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n " ); } } Gn(1, Ta), (Ta.VERSION = Et), (Ta.options = la.prototype.options_), (Ta.getPlayers = () => la.players), (Ta.getPlayer = (e) => { const t = la.players; let n; if ("string" == typeof e) { const r = wa(e), i = t[r]; if (i) return i; n = zn("#" + r); } else n = e; if (gn(n)) { const { player: e, playerId: r } = n; if (e || t[r]) return e || t[r]; } }), (Ta.getAllPlayers = () => Object.keys(la.players) .map((e) => la.players[e]) .filter(Boolean)), (Ta.players = la.players), (Ta.getComponent = Dr.getComponent), (Ta.registerComponent = (e, t) => { xi.isTech(t) && Dt.warn( `The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)` ), Dr.registerComponent.call(Dr, e, t); }), (Ta.getTech = xi.getTech), (Ta.registerTech = xi.registerTech), (Ta.use = function (e, t) { (Si[e] = Si[e] || []), Si[e].push(t); }), Object.defineProperty(Ta, "middleware", { value: {}, writeable: !1, enumerable: !0, }), Object.defineProperty(Ta.middleware, "TERMINATOR", { value: Ei, writeable: !1, enumerable: !0, }), (Ta.browser = dn), (Ta.obj = Vt), (Ta.mergeOptions = _a( 9, "videojs.mergeOptions", "videojs.obj.merge", qt )), (Ta.defineLazyProperty = _a( 9, "videojs.defineLazyProperty", "videojs.obj.defineLazyProperty", Zt )), (Ta.bind = _a(9, "videojs.bind", "native Function.prototype.bind", pr)), (Ta.registerPlugin = ba.registerPlugin), (Ta.deregisterPlugin = ba.deregisterPlugin), (Ta.plugin = (e, t) => ( Dt.warn( "videojs.plugin() is deprecated; use videojs.registerPlugin() instead" ), ba.registerPlugin(e, t) )), (Ta.getPlugins = ba.getPlugins), (Ta.getPlugin = ba.getPlugin), (Ta.getPluginVersion = ba.getPluginVersion), (Ta.addLanguage = function (e, t) { return ( (e = ("" + e).toLowerCase()), (Ta.options.languages = qt(Ta.options.languages, { [e]: t })), Ta.options.languages[e] ); }), (Ta.log = Dt), (Ta.createLogger = jt), (Ta.time = Zr), (Ta.createTimeRange = _a( 9, "videojs.createTimeRange", "videojs.time.createTimeRanges", Br )), (Ta.createTimeRanges = _a( 9, "videojs.createTimeRanges", "videojs.time.createTimeRanges", Br )), (Ta.formatTime = _a( 9, "videojs.formatTime", "videojs.time.formatTime", qr )), (Ta.setFormatTime = _a( 9, "videojs.setFormatTime", "videojs.time.setFormatTime", zr )), (Ta.resetFormatTime = _a( 9, "videojs.resetFormatTime", "videojs.time.resetFormatTime", Hr )), (Ta.parseUrl = _a(9, "videojs.parseUrl", "videojs.url.parseUrl", ci)), (Ta.isCrossOrigin = _a( 9, "videojs.isCrossOrigin", "videojs.url.isCrossOrigin", di )), (Ta.EventTarget = vr), (Ta.any = lr), (Ta.on = ar), (Ta.one = cr), (Ta.off = sr), (Ta.trigger = ur), (Ta.xhr = d()), (Ta.TextTrack = mi), (Ta.AudioTrack = yi), (Ta.VideoTrack = vi), [ "isEl", "isTextNode", "createEl", "hasClass", "addClass", "removeClass", "toggleClass", "setAttributes", "getAttributes", "emptyEl", "appendContent", "insertContent", ].forEach((e) => { Ta[e] = function () { return ( Dt.warn( `videojs.${e}() is deprecated; use videojs.dom.${e}() instead` ), Zn[e].apply(null, arguments) ); }; }), (Ta.computedStyle = _a( 9, "videojs.computedStyle", "videojs.dom.computedStyle", qn )), (Ta.dom = Zn), (Ta.fn = mr), (Ta.num = Qi), (Ta.str = Rr), (Ta.url = pi); class xa { constructor(e) { let t = this; return ( (t.id = e.id), (t.label = t.id), (t.width = e.width), (t.height = e.height), (t.bitrate = e.bandwidth), (t.frameRate = e.frameRate), (t.enabled_ = e.enabled), Object.defineProperty(t, "enabled", { get: () => t.enabled_(), set(e) { t.enabled_(e); }, }), t ); } } class Sa extends Ta.EventTarget { constructor() { super(); let e = this; return ( (e.levels_ = []), (e.selectedIndex_ = -1), Object.defineProperty(e, "selectedIndex", { get: () => e.selectedIndex_, }), Object.defineProperty(e, "length", { get: () => e.levels_.length }), e ); } addQualityLevel(e) { let t = this.getQualityLevelById(e.id); if (t) return t; const n = this.levels_.length; return ( (t = new xa(e)), "" + n in this || Object.defineProperty(this, n, { get() { return this.levels_[n]; }, }), this.levels_.push(t), this.trigger({ qualityLevel: t, type: "addqualitylevel" }), t ); } removeQualityLevel(e) { let t = null; for (let n = 0, r = this.length; n < r; n++) if (this[n] === e) { (t = this.levels_.splice(n, 1)[0]), this.selectedIndex_ === n ? (this.selectedIndex_ = -1) : this.selectedIndex_ > n && this.selectedIndex_--; break; } return ( t && this.trigger({ qualityLevel: e, type: "removequalitylevel" }), t ); } getQualityLevelById(e) { for (let t = 0, n = this.length; t < n; t++) { const n = this[t]; if (n.id === e) return n; } return null; } dispose() { (this.selectedIndex_ = -1), (this.levels_.length = 0); } } Sa.prototype.allowedEvents_ = { change: "change", addqualitylevel: "addqualitylevel", removequalitylevel: "removequalitylevel", }; for (const e in Sa.prototype.allowedEvents_) Sa.prototype["on" + e] = null; var ka = "3.0.0"; const Ea = Ta.registerPlugin || Ta.plugin, Oa = function (e) { return (function (e, t) { const n = e.qualityLevels, r = new Sa(), i = function () { r.dispose(), (e.qualityLevels = n), e.off("dispose", i); }; return ( e.on("dispose", i), (e.qualityLevels = () => r), (e.qualityLevels.VERSION = ka), r ); })(this, Ta.mergeOptions({}, e)); }; Ea("qualityLevels", Oa), (Oa.VERSION = ka); const Ca = v, La = (e, t) => t && t.responseURL && e !== t.responseURL ? t.responseURL : e, Aa = (e) => Ta.log.debug ? Ta.log.debug.bind(Ta, "VHS:", `${e} >`) : function () {}; function Ia(...e) { const t = Ta.obj || Ta; return (t.merge || t.mergeOptions).apply(t, e); } function Ma(...e) { const t = Ta.time || Ta; return (t.createTimeRanges || t.createTimeRanges).apply(t, e); } const Pa = 1 / 30, Ra = 0.1, Da = function (e, t) { const n = []; let r; if (e && e.length) for (r = 0; r < e.length; r++) t(e.start(r), e.end(r)) && n.push([e.start(r), e.end(r)]); return Ma(n); }, ja = function (e, t) { return Da(e, function (e, n) { return e - Ra <= t && n + Ra >= t; }); }, Na = function (e, t) { return Da(e, function (e) { return e - Pa >= t; }); }, Ba = (e) => { const t = []; if (!e || !e.length) return ""; for (let n = 0; n < e.length; n++) t.push(e.start(n) + " => " + e.end(n)); return t.join(", "); }, Ua = (e) => { const t = []; for (let n = 0; n < e.length; n++) t.push({ start: e.start(n), end: e.end(n) }); return t; }, Fa = function (e) { if (e && e.length && e.end) return e.end(e.length - 1); }, za = function (e, t) { let n = 0; if (!e || !e.length) return n; for (let r = 0; r < e.length; r++) { const i = e.start(r), o = e.end(r); t > o || (n += t > i && t <= o ? o - t : o - i); } return n; }, Ha = (e, t) => { if (!t.preload) return t.duration; let n = 0; return ( (t.parts || []).forEach(function (e) { n += e.duration; }), (t.preloadHints || []).forEach(function (t) { "PART" === t.type && (n += e.partTargetDuration); }), n ); }, qa = (e) => (e.segments || []).reduce( (e, t, n) => ( t.parts ? t.parts.forEach(function (r, i) { e.push({ duration: r.duration, segmentIndex: n, partIndex: i, part: r, segment: t, }); }) : e.push({ duration: t.duration, segmentIndex: n, partIndex: null, segment: t, part: null, }), e ), [] ), Za = (e) => { const t = e.segments && e.segments.length && e.segments[e.segments.length - 1]; return (t && t.parts) || []; }, Va = ({ preloadSegment: e }) => { if (!e) return; const { parts: t, preloadHints: n } = e; let r = (n || []).reduce( (e, t) => e + ("PART" === t.type ? 1 : 0), 0 ); return (r += t && t.length ? t.length : 0), r; }, Wa = (e, t) => { if (t.endList) return 0; if (e && e.suggestedPresentationDelay) return e.suggestedPresentationDelay; const n = Za(t).length > 0; return n && t.serverControl && t.serverControl.partHoldBack ? t.serverControl.partHoldBack : n && t.partTargetDuration ? 3 * t.partTargetDuration : t.serverControl && t.serverControl.holdBack ? t.serverControl.holdBack : t.targetDuration ? 3 * t.targetDuration : 0; }, $a = function (e, t, n) { if ( (void 0 === t && (t = e.mediaSequence + e.segments.length), t < e.mediaSequence) ) return 0; const r = (function (e, t) { let n = 0, r = t - e.mediaSequence, i = e.segments[r]; if (i) { if (void 0 !== i.start) return { result: i.start, precise: !0 }; if (void 0 !== i.end) return { result: i.end - i.duration, precise: !0 }; } for (; r--; ) { if (((i = e.segments[r]), void 0 !== i.end)) return { result: n + i.end, precise: !0 }; if (((n += Ha(e, i)), void 0 !== i.start)) return { result: n + i.start, precise: !0 }; } return { result: n, precise: !1 }; })(e, t); if (r.precise) return r.result; const i = (function (e, t) { let n, r = 0, i = t - e.mediaSequence; for (; i < e.segments.length; i++) { if (((n = e.segments[i]), void 0 !== n.start)) return { result: n.start - r, precise: !0 }; if (((r += Ha(e, n)), void 0 !== n.end)) return { result: n.end - r, precise: !0 }; } return { result: -1, precise: !1 }; })(e, t); return i.precise ? i.result : r.result + n; }, Ga = function (e, t, n) { if (!e) return 0; if (("number" != typeof n && (n = 0), void 0 === t)) { if (e.totalDuration) return e.totalDuration; if (!e.endList) return i()[1 / 0]; } return $a(e, t, n); }, Ya = function ({ defaultDuration: e, durationList: t, startIndex: n, endIndex: r, }) { let i = 0; if ((n > r && ([n, r] = [r, n]), n < 0)) { for (let t = n; t < Math.min(0, r); t++) i += e; n = 0; } for (let e = n; e < r; e++) i += t[e].duration; return i; }, Ka = function (e, t, n, r) { if (!e || !e.segments) return null; if (e.endList) return Ga(e); if (null === t) return null; t = t || 0; let i = $a(e, e.mediaSequence + e.segments.length, t); return ( n && (i -= r = "number" == typeof r ? r : Wa(null, e)), Math.max(0, i) ); }, Xa = function (e) { return e.excludeUntil && e.excludeUntil > Date.now(); }, Qa = function (e) { return e.excludeUntil && e.excludeUntil === 1 / 0; }, Ja = function (e) { const t = Xa(e); return !e.disabled && !t; }, es = function (e, t) { return t.attributes && t.attributes[e]; }, ts = (e, t) => { if (1 === e.playlists.length) return !0; const n = t.attributes.BANDWIDTH || Number.MAX_VALUE; return ( 0 === e.playlists.filter( (e) => !!Ja(e) && (e.attributes.BANDWIDTH || 0) < n ).length ); }, ns = (e, t) => !((!e && !t) || (!e && t) || (e && !t)) && (e === t || !(!e.id || !t.id || e.id !== t.id) || !( !e.resolvedUri || !t.resolvedUri || e.resolvedUri !== t.resolvedUri ) || !(!e.uri || !t.uri || e.uri !== t.uri)), rs = function (e, t) { const n = (e && e.mediaGroups && e.mediaGroups.AUDIO) || {}; let r = !1; for (const e in n) { for (const i in n[e]) if (((r = t(n[e][i])), r)) break; if (r) break; } return !!r; }, is = (e) => { if (!e || !e.playlists || !e.playlists.length) { return rs(e, (e) => (e.playlists && e.playlists.length) || e.uri); } for (let t = 0; t < e.playlists.length; t++) { const n = e.playlists[t], r = n.attributes && n.attributes.CODECS; if (r && r.split(",").every((e) => N(e))) continue; if (!rs(e, (e) => ns(n, e))) return !1; } return !0; }; var os = { liveEdgeDelay: Wa, duration: Ga, seekable: function (e, t, n) { const r = t || 0, i = Ka(e, t, !0, n); return null === i ? Ma() : Ma(r, i); }, getMediaInfoForTime: function ({ playlist: e, currentTime: t, startingSegmentIndex: n, startingPartIndex: r, startTime: i, exactManifestTimings: o, }) { let a = t - i; const s = qa(e); let u = 0; for (let e = 0; e < s.length; e++) { const t = s[e]; if ( n === t.segmentIndex && ("number" != typeof r || "number" != typeof t.partIndex || r === t.partIndex) ) { u = e; break; } } if (a < 0) { if (u > 0) for (let t = u - 1; t >= 0; t--) { const n = s[t]; if (((a += n.duration), o)) { if (a < 0) continue; } else if (a + Pa <= 0) continue; return { partIndex: n.partIndex, segmentIndex: n.segmentIndex, startTime: i - Ya({ defaultDuration: e.targetDuration, durationList: s, startIndex: u, endIndex: t, }), }; } return { partIndex: (s[0] && s[0].partIndex) || null, segmentIndex: (s[0] && s[0].segmentIndex) || 0, startTime: t, }; } if (u < 0) { for (let n = u; n < 0; n++) if (((a -= e.targetDuration), a < 0)) return { partIndex: (s[0] && s[0].partIndex) || null, segmentIndex: (s[0] && s[0].segmentIndex) || 0, startTime: t, }; u = 0; } for (let t = u; t < s.length; t++) { const n = s[t]; if (((a -= n.duration), o)) { if (a > 0) continue; } else if (a - Pa >= 0) continue; return { partIndex: n.partIndex, segmentIndex: n.segmentIndex, startTime: i + Ya({ defaultDuration: e.targetDuration, durationList: s, startIndex: u, endIndex: t, }), }; } return { segmentIndex: s[s.length - 1].segmentIndex, partIndex: s[s.length - 1].partIndex, startTime: t, }; }, isEnabled: Ja, isDisabled: function (e) { return e.disabled; }, isExcluded: Xa, isIncompatible: Qa, playlistEnd: Ka, isAes: function (e) { for (let t = 0; t < e.segments.length; t++) if (e.segments[t].key) return !0; return !1; }, hasAttribute: es, estimateSegmentRequestTime: function (e, t, n, r = 0) { if (!es("BANDWIDTH", n)) return NaN; return (e * n.attributes.BANDWIDTH - 8 * r) / t; }, isLowestEnabledRendition: ts, isAudioOnly: is, playlistMatch: ns, segmentDurationWithParts: Ha, }; const { log: as } = Ta, ss = (e, t) => `${e}-${t}`, us = (e, t, n) => `placeholder-uri-${e}-${t}-${n}`, cs = (e, t) => { e.mediaGroups && ["AUDIO", "SUBTITLES"].forEach((n) => { if (e.mediaGroups[n]) for (const r in e.mediaGroups[n]) for (const i in e.mediaGroups[n][r]) { const o = e.mediaGroups[n][r][i]; t(o, n, r, i); } }); }, ls = ({ playlist: e, uri: t, id: n }) => { (e.id = n), (e.playlistErrors_ = 0), t && (e.uri = t), (e.attributes = e.attributes || {}); }, fs = (e, t, n = us) => { e.uri = t; for (let t = 0; t < e.playlists.length; t++) if (!e.playlists[t].uri) { const n = `placeholder-uri-${t}`; e.playlists[t].uri = n; } const r = is(e); cs(e, (t, i, o, a) => { if (!t.playlists || !t.playlists.length) { if (r && "AUDIO" === i && !t.uri) for (let t = 0; t < e.playlists.length; t++) { const n = e.playlists[t]; if ( n.attributes && n.attributes.AUDIO && n.attributes.AUDIO === o ) return; } t.playlists = [(0, b.Z)({}, t)]; } t.playlists.forEach(function (t, r) { const s = n(i, o, a, t), u = ss(r, s); t.uri ? (t.resolvedUri = t.resolvedUri || Ca(e.uri, t.uri)) : ((t.uri = 0 === r ? s : u), (t.resolvedUri = t.uri)), (t.id = t.id || u), (t.attributes = t.attributes || {}), (e.playlists[t.id] = t), (e.playlists[t.uri] = t); }); }), ((e) => { let t = e.playlists.length; for (; t--; ) { const n = e.playlists[t]; ls({ playlist: n, id: ss(t, n.uri) }), (n.resolvedUri = Ca(e.uri, n.uri)), (e.playlists[n.id] = n), (e.playlists[n.uri] = n), n.attributes.BANDWIDTH || as.warn( "Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute." ); } })(e), ((e) => { cs(e, (t) => { t.uri && (t.resolvedUri = Ca(e.uri, t.uri)); }); })(e); }, { EventTarget: ds } = Ta, ps = (e, t) => { if (!e) return t; const n = Ia(e, t); if ( (e.preloadHints && !t.preloadHints && delete n.preloadHints, e.parts && !t.parts) ) delete n.parts; else if (e.parts && t.parts) for (let r = 0; r < t.parts.length; r++) e.parts && e.parts[r] && (n.parts[r] = Ia(e.parts[r], t.parts[r])); return ( !e.skipped && t.skipped && (n.skipped = !1), e.preload && !t.preload && (n.preload = !1), n ); }, hs = (e, t) => { !e.resolvedUri && e.uri && (e.resolvedUri = Ca(t, e.uri)), e.key && !e.key.resolvedUri && (e.key.resolvedUri = Ca(t, e.key.uri)), e.map && !e.map.resolvedUri && (e.map.resolvedUri = Ca(t, e.map.uri)), e.map && e.map.key && !e.map.key.resolvedUri && (e.map.key.resolvedUri = Ca(t, e.map.key.uri)), e.parts && e.parts.length && e.parts.forEach((e) => { e.resolvedUri || (e.resolvedUri = Ca(t, e.uri)); }), e.preloadHints && e.preloadHints.length && e.preloadHints.forEach((e) => { e.resolvedUri || (e.resolvedUri = Ca(t, e.uri)); }); }, gs = function (e) { const t = e.segments || [], n = e.preloadSegment; if (n && n.parts && n.parts.length) { if (n.preloadHints) for (let e = 0; e < n.preloadHints.length; e++) if ("MAP" === n.preloadHints[e].type) return t; (n.duration = e.targetDuration), (n.preload = !0), t.push(n); } return t; }, ms = (e, t) => e === t || (e.segments && t.segments && e.segments.length === t.segments.length && e.endList === t.endList && e.mediaSequence === t.mediaSequence && e.preloadSegment === t.preloadSegment), ys = (e, t, n = ms) => { const r = Ia(e, {}), i = r.playlists[t.id]; if (!i) return null; if (n(i, t)) return null; t.segments = gs(t); const o = Ia(i, t); if ( (o.preloadSegment && !t.preloadSegment && delete o.preloadSegment, i.segments) ) { if (t.skip) { t.segments = t.segments || []; for (let e = 0; e < t.skip.skippedSegments; e++) t.segments.unshift({ skipped: !0 }); } o.segments = ((e, t, n) => { const r = e.slice(), i = t.slice(); n = n || 0; const o = []; let a; for (let e = 0; e < i.length; e++) { const t = r[e + n], s = i[e]; t ? ((a = t.map || a), o.push(ps(t, s))) : (a && !s.map && (s.map = a), o.push(s)); } return o; })(i.segments, t.segments, t.mediaSequence - i.mediaSequence); } o.segments.forEach((e) => { hs(e, o.resolvedUri); }); for (let e = 0; e < r.playlists.length; e++) r.playlists[e].id === t.id && (r.playlists[e] = o); return ( (r.playlists[t.id] = o), (r.playlists[t.uri] = o), cs(e, (e, n, r, i) => { if (e.playlists) for (let n = 0; n < e.playlists.length; n++) t.id === e.playlists[n].id && (e.playlists[n] = o); }), r ); }, vs = (e, t) => { const n = e.segments || [], r = n[n.length - 1], i = r && r.parts && r.parts[r.parts.length - 1], o = (i && i.duration) || (r && r.duration); return t && o ? 1e3 * o : 500 * (e.partTargetDuration || e.targetDuration || 10); }; class bs extends ds { constructor(e, t, n = {}) { if ((super(), !e)) throw new Error("A non-empty playlist URL or object is required"); this.logger_ = Aa("PlaylistLoader"); const { withCredentials: r = !1 } = n; (this.src = e), (this.vhs_ = t), (this.withCredentials = r); const i = t.options_; (this.customTagParsers = (i && i.customTagParsers) || []), (this.customTagMappers = (i && i.customTagMappers) || []), (this.llhls = i && i.llhls), (this.state = "HAVE_NOTHING"), (this.handleMediaupdatetimeout_ = this.handleMediaupdatetimeout_.bind(this)), this.on("mediaupdatetimeout", this.handleMediaupdatetimeout_); } handleMediaupdatetimeout_() { if ("HAVE_METADATA" !== this.state) return; const e = this.media(); let t = Ca(this.main.uri, e.uri); this.llhls && (t = ((e, t) => { if (t.endList || !t.serverControl) return e; const n = {}; if (t.serverControl.canBlockReload) { const { preloadSegment: e } = t; let r = t.mediaSequence + t.segments.length; if (e) { const i = e.parts || [], o = Va(t) - 1; o > -1 && o !== i.length - 1 && (n._HLS_part = o), (o > -1 || i.length) && r--; } n._HLS_msn = r; } if ( (t.serverControl && t.serverControl.canSkipUntil && (n._HLS_skip = t.serverControl.canSkipDateranges ? "v2" : "YES"), Object.keys(n).length) ) { const t = new (i().URL)(e); ["_HLS_skip", "_HLS_msn", "_HLS_part"].forEach(function (e) { n.hasOwnProperty(e) && t.searchParams.set(e, n[e]); }), (e = t.toString()); } return e; })(t, e)), (this.state = "HAVE_CURRENT_METADATA"), (this.request = this.vhs_.xhr( { uri: t, withCredentials: this.withCredentials }, (e, t) => { if (this.request) return e ? this.playlistRequestError( this.request, this.media(), "HAVE_METADATA" ) : void this.haveMetadata({ playlistString: this.request.responseText, url: this.media().uri, id: this.media().id, }); } )); } playlistRequestError(e, t, n) { const { uri: r, id: i } = t; (this.request = null), n && (this.state = n), (this.error = { playlist: this.main.playlists[i], status: e.status, message: `HLS playlist request error at URL: ${r}.`, responseText: e.responseText, code: e.status >= 500 ? 4 : 2, }), this.trigger("error"); } parseManifest_({ url: e, manifestString: t }) { return (({ onwarn: e, oninfo: t, manifestString: n, customTagParsers: r = [], customTagMappers: i = [], llhls: o, }) => { const a = new L(); e && a.on("warn", e), t && a.on("info", t), r.forEach((e) => a.addParser(e)), i.forEach((e) => a.addTagMapper(e)), a.push(n), a.end(); const s = a.manifest; if ( (o || ([ "preloadSegment", "skip", "serverControl", "renditionReports", "partInf", "partTargetDuration", ].forEach(function (e) { s.hasOwnProperty(e) && delete s[e]; }), s.segments && s.segments.forEach(function (e) { ["parts", "preloadHints"].forEach(function (t) { e.hasOwnProperty(t) && delete e[t]; }); })), !s.targetDuration) ) { let t = 10; s.segments && s.segments.length && (t = s.segments.reduce((e, t) => Math.max(e, t.duration), 0)), e && e(`manifest has no targetDuration defaulting to ${t}`), (s.targetDuration = t); } const u = Za(s); if (u.length && !s.partTargetDuration) { const t = u.reduce((e, t) => Math.max(e, t.duration), 0); e && (e(`manifest has no partTargetDuration defaulting to ${t}`), as.error( "LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed." )), (s.partTargetDuration = t); } return s; })({ onwarn: ({ message: t }) => this.logger_(`m3u8-parser warn for ${e}: ${t}`), oninfo: ({ message: t }) => this.logger_(`m3u8-parser info for ${e}: ${t}`), manifestString: t, customTagParsers: this.customTagParsers, customTagMappers: this.customTagMappers, llhls: this.llhls, }); } haveMetadata({ playlistString: e, playlistObject: t, url: n, id: r }) { (this.request = null), (this.state = "HAVE_METADATA"); const i = t || this.parseManifest_({ url: n, manifestString: e }); (i.lastRequest = Date.now()), ls({ playlist: i, uri: n, id: r }); const o = ys(this.main, i); (this.targetDuration = i.partTargetDuration || i.targetDuration), (this.pendingMedia_ = null), o ? ((this.main = o), (this.media_ = this.main.playlists[r])) : this.trigger("playlistunchanged"), this.updateMediaUpdateTimeout_(vs(this.media(), !!o)), this.trigger("loadedplaylist"); } dispose() { this.trigger("dispose"), this.stopRequest(), i().clearTimeout(this.mediaUpdateTimeout), i().clearTimeout(this.finalRenditionTimeout), this.off(); } stopRequest() { if (this.request) { const e = this.request; (this.request = null), (e.onreadystatechange = null), e.abort(); } } media(e, t) { if (!e) return this.media_; if ("HAVE_NOTHING" === this.state) throw new Error("Cannot switch media playlist from " + this.state); if ("string" == typeof e) { if (!this.main.playlists[e]) throw new Error("Unknown playlist URI: " + e); e = this.main.playlists[e]; } if ((i().clearTimeout(this.finalRenditionTimeout), t)) { const t = ((e.partTargetDuration || e.targetDuration) / 2) * 1e3 || 5e3; return void (this.finalRenditionTimeout = i().setTimeout( this.media.bind(this, e, !1), t )); } const n = this.state, r = !this.media_ || e.id !== this.media_.id, o = this.main.playlists[e.id]; if ((o && o.endList) || (e.endList && e.segments.length)) return ( this.request && ((this.request.onreadystatechange = null), this.request.abort(), (this.request = null)), (this.state = "HAVE_METADATA"), (this.media_ = e), void ( r && (this.trigger("mediachanging"), "HAVE_MAIN_MANIFEST" === n ? this.trigger("loadedmetadata") : this.trigger("mediachange")) ) ); if ((this.updateMediaUpdateTimeout_(vs(e, !0)), r)) { if (((this.state = "SWITCHING_MEDIA"), this.request)) { if (e.resolvedUri === this.request.url) return; (this.request.onreadystatechange = null), this.request.abort(), (this.request = null); } this.media_ && this.trigger("mediachanging"), (this.pendingMedia_ = e), (this.request = this.vhs_.xhr( { uri: e.resolvedUri, withCredentials: this.withCredentials }, (t, r) => { if (this.request) { if ( ((e.lastRequest = Date.now()), (e.resolvedUri = La(e.resolvedUri, r)), t) ) return this.playlistRequestError(this.request, e, n); this.haveMetadata({ playlistString: r.responseText, url: e.uri, id: e.id, }), "HAVE_MAIN_MANIFEST" === n ? this.trigger("loadedmetadata") : this.trigger("mediachange"); } } )); } } pause() { this.mediaUpdateTimeout && (i().clearTimeout(this.mediaUpdateTimeout), (this.mediaUpdateTimeout = null)), this.stopRequest(), "HAVE_NOTHING" === this.state && (this.started = !1), "SWITCHING_MEDIA" === this.state ? this.media_ ? (this.state = "HAVE_METADATA") : (this.state = "HAVE_MAIN_MANIFEST") : "HAVE_CURRENT_METADATA" === this.state && (this.state = "HAVE_METADATA"); } load(e) { this.mediaUpdateTimeout && (i().clearTimeout(this.mediaUpdateTimeout), (this.mediaUpdateTimeout = null)); const t = this.media(); if (e) { const e = t ? ((t.partTargetDuration || t.targetDuration) / 2) * 1e3 : 5e3; this.mediaUpdateTimeout = i().setTimeout(() => { (this.mediaUpdateTimeout = null), this.load(); }, e); } else this.started ? t && !t.endList ? this.trigger("mediaupdatetimeout") : this.trigger("loadedplaylist") : this.start(); } updateMediaUpdateTimeout_(e) { this.mediaUpdateTimeout && (i().clearTimeout(this.mediaUpdateTimeout), (this.mediaUpdateTimeout = null)), this.media() && !this.media().endList && (this.mediaUpdateTimeout = i().setTimeout(() => { (this.mediaUpdateTimeout = null), this.trigger("mediaupdatetimeout"), this.updateMediaUpdateTimeout_(e); }, e)); } start() { if (((this.started = !0), "object" == typeof this.src)) return ( this.src.uri || (this.src.uri = i().location.href), (this.src.resolvedUri = this.src.uri), void setTimeout(() => { this.setupInitialPlaylist(this.src); }, 0) ); this.request = this.vhs_.xhr( { uri: this.src, withCredentials: this.withCredentials }, (e, t) => { if (!this.request) return; if (((this.request = null), e)) return ( (this.error = { status: t.status, message: `HLS playlist request error at URL: ${this.src}.`, responseText: t.responseText, code: 2, }), "HAVE_NOTHING" === this.state && (this.started = !1), this.trigger("error") ); this.src = La(this.src, t); const n = this.parseManifest_({ manifestString: t.responseText, url: this.src, }); this.setupInitialPlaylist(n); } ); } srcUri() { return "string" == typeof this.src ? this.src : this.src.uri; } setupInitialPlaylist(e) { if (((this.state = "HAVE_MAIN_MANIFEST"), e.playlists)) return ( (this.main = e), fs(this.main, this.srcUri()), e.playlists.forEach((e) => { (e.segments = gs(e)), e.segments.forEach((t) => { hs(t, e.resolvedUri); }); }), this.trigger("loadedplaylist"), void (this.request || this.media(this.main.playlists[0])) ); const t = this.srcUri() || i().location.href; (this.main = ((e, t) => { const n = ss(0, t), r = { mediaGroups: { AUDIO: {}, VIDEO: {}, "CLOSED-CAPTIONS": {}, SUBTITLES: {}, }, uri: i().location.href, resolvedUri: i().location.href, playlists: [{ uri: t, id: n, resolvedUri: t, attributes: {} }], }; return ( (r.playlists[n] = r.playlists[0]), (r.playlists[t] = r.playlists[0]), r ); })(0, t)), this.haveMetadata({ playlistObject: e, url: t, id: this.main.playlists[0].id, }), this.trigger("loadedmetadata"); } } const { xhr: _s } = Ta, ws = function (e, t, n, r) { const i = "arraybuffer" === e.responseType ? e.response : e.responseText; !t && i && ((e.responseTime = Date.now()), (e.roundTripTime = e.responseTime - e.requestTime), (e.bytesReceived = i.byteLength || i.length), e.bandwidth || (e.bandwidth = Math.floor( (e.bytesReceived / e.roundTripTime) * 8 * 1e3 ))), n.headers && (e.responseHeaders = n.headers), t && "ETIMEDOUT" === t.code && (e.timedout = !0), t || e.aborted || 200 === n.statusCode || 206 === n.statusCode || 0 === n.statusCode || (t = new Error( "XHR Failed with a response of: " + (e && (i || e.responseText)) )), r(t, e); }, Ts = function () { const e = function e(t, n) { t = Ia({ timeout: 45e3 }, t); const r = e.beforeRequest || Ta.Vhs.xhr.beforeRequest; if (r && "function" == typeof r) { const e = r(t); e && (t = e); } const i = (!0 === Ta.Vhs.xhr.original ? _s : Ta.Vhs.xhr)( t, function (e, t) { return ws(i, e, t, n); } ), o = i.abort; return ( (i.abort = function () { return (i.aborted = !0), o.apply(i, arguments); }), (i.uri = t.uri), (i.requestTime = Date.now()), i ); }; return (e.original = !0), e; }, xs = function (e) { const t = {}; return ( e.byterange && (t.Range = (function (e) { let t; const n = e.offset; return ( (t = "bigint" == typeof e.offset || "bigint" == typeof e.length ? i().BigInt(e.offset) + i().BigInt(e.length) - i().BigInt(1) : e.offset + e.length - 1), "bytes=" + n + "-" + t ); })(e.byterange)), t ); }, Ss = function (e, t) { return e.start(t) + "-" + e.end(t); }, ks = function (e, t) { const n = e.toString(16); return "00".substring(0, 2 - n.length) + n + (t % 2 ? " " : ""); }, Es = function (e) { return e >= 32 && e < 126 ? String.fromCharCode(e) : "."; }, Os = function (e) { const t = {}; return ( Object.keys(e).forEach((n) => { const r = e[n]; V(r) ? (t[n] = { bytes: r.buffer, byteOffset: r.byteOffset, byteLength: r.byteLength, }) : (t[n] = r); }), t ); }, Cs = function (e) { const t = e.byterange || { length: 1 / 0, offset: 0 }; return [t.length, t.offset, e.resolvedUri].join(","); }, Ls = function (e) { return e.resolvedUri; }, As = (e) => { const t = Array.prototype.slice.call(e), n = 16; let r, i, o = ""; for (let e = 0; e < t.length / n; e++) (r = t .slice(e * n, e * n + n) .map(ks) .join("")), (i = t .slice(e * n, e * n + n) .map(Es) .join("")), (o += r + " " + i + "\n"); return o; }; var Is = Object.freeze({ __proto__: null, createTransferableMessage: Os, initSegmentId: Cs, segmentKeyId: Ls, hexDump: As, tagDump: ({ bytes: e }) => As(e), textRanges: (e) => { let t, n = ""; for (t = 0; t < e.length; t++) n += Ss(e, t) + " "; return n; }, }); const Ms = ({ playlist: e, time: t, callback: n }) => { if (!n) throw new Error("getProgramTime: callback must be provided"); if (!e || void 0 === t) return n({ message: "getProgramTime: playlist and time must be provided", }); const r = ((e, t) => { if (!t || !t.segments || 0 === t.segments.length) return null; let n, r = 0; for ( let i = 0; i < t.segments.length && ((n = t.segments[i]), (r = n.videoTimingInfo ? n.videoTimingInfo.transmuxedPresentationEnd : r + n.duration), !(e <= r)); i++ ); const i = t.segments[t.segments.length - 1]; if ( i.videoTimingInfo && i.videoTimingInfo.transmuxedPresentationEnd < e ) return null; if (e > r) { if (e > r + 0.25 * i.duration) return null; n = i; } return { segment: n, estimatedStart: n.videoTimingInfo ? n.videoTimingInfo.transmuxedPresentationStart : r - n.duration, type: n.videoTimingInfo ? "accurate" : "estimate", }; })(t, e); if (!r) return n({ message: "valid programTime was not found" }); if ("estimate" === r.type) return n({ message: "Accurate programTime could not be determined. Please seek to e.seekTime and try again", seekTime: r.estimatedStart, }); const i = { mediaSeconds: t }, o = ((e, t) => { if (!t.dateTimeObject) return null; const n = t.videoTimingInfo.transmuxerPrependedSeconds, r = e - (t.videoTimingInfo.transmuxedPresentationStart + n); return new Date(t.dateTimeObject.getTime() + 1e3 * r); })(t, r.segment); return o && (i.programDateTime = o.toISOString()), n(null, i); }, Ps = ({ programTime: e, playlist: t, retryCount: n = 2, seekTo: r, pauseAfterSeek: i = !0, tech: o, callback: a, }) => { if (!a) throw new Error("seekToProgramTime: callback must be provided"); if (void 0 === e || !t || !r) return a({ message: "seekToProgramTime: programTime, seekTo and playlist must be provided", }); if (!t.endList && !o.hasStarted_) return a({ message: "player must be playing a live stream to start buffering", }); if ( !((e) => { if (!e.segments || 0 === e.segments.length) return !1; for (let t = 0; t < e.segments.length; t++) if (!e.segments[t].dateTimeObject) return !1; return !0; })(t) ) return a({ message: "programDateTime tags must be provided in the manifest " + t.resolvedUri, }); const s = ((e, t) => { let n; try { n = new Date(e); } catch (e) { return null; } if (!t || !t.segments || 0 === t.segments.length) return null; let r = t.segments[0]; if (n < r.dateTimeObject) return null; for ( let e = 0; e < t.segments.length - 1 && ((r = t.segments[e]), !(n < t.segments[e + 1].dateTimeObject)); e++ ); const i = t.segments[t.segments.length - 1], o = i.dateTimeObject, a = i.videoTimingInfo ? (s = i.videoTimingInfo).transmuxedPresentationEnd - s.transmuxedPresentationStart - s.transmuxerPrependedSeconds : i.duration + 0.25 * i.duration; var s; return n > new Date(o.getTime() + 1e3 * a) ? null : (n > o && (r = i), { segment: r, estimatedStart: r.videoTimingInfo ? r.videoTimingInfo.transmuxedPresentationStart : os.duration(t, t.mediaSequence + t.segments.indexOf(r)), type: r.videoTimingInfo ? "accurate" : "estimate", }); })(e, t); if (!s) return a({ message: `${e} was not found in the stream` }); const u = s.segment, c = ((e, t) => { let n, r; try { (n = new Date(e)), (r = new Date(t)); } catch (e) {} const i = n.getTime(); return (r.getTime() - i) / 1e3; })(u.dateTimeObject, e); if ("estimate" === s.type) return 0 === n ? a({ message: `${e} is not buffered yet. Try again` }) : (r(s.estimatedStart + c), void o.one("seeked", () => { Ps({ programTime: e, playlist: t, retryCount: n - 1, seekTo: r, pauseAfterSeek: i, tech: o, callback: a, }); })); const l = u.start + c; o.one("seeked", () => a(null, o.currentTime())), i && o.pause(), r(l); }, Rs = (e, t) => { if (4 === e.readyState) return t(); }, Ds = (e, t, n) => { let r, i = [], o = !1; const a = function (e, t, r, i) { return t.abort(), (o = !0), n(e, t, r, i); }, s = function (e, t) { if (o) return; if (e) return a(e, t, "", i); const n = t.responseText.substring( (i && i.byteLength) || 0, t.responseText.length ); if ( ((i = (function () { for ( var e = arguments.length, t = new Array(e), n = 0; n < e; n++ ) t[n] = arguments[n]; if ( ((t = t.filter(function (e) { return ( e && (e.byteLength || e.length) && "string" != typeof e ); })), t.length <= 1) ) return W(t[0]); var r = t.reduce(function (e, t, n) { return e + (t.byteLength || t.length); }, 0), i = new Uint8Array(r), o = 0; return ( t.forEach(function (e) { (e = W(e)), i.set(e, o), (o += e.byteLength); }), i ); })(i, X(n, !0))), (r = r || ot(i)), i.length < 10 || (r && i.length < r + 2)) ) return Rs(t, () => a(e, t, "", i)); const s = St(i); return ("ts" === s && i.length < 188) || (!s && i.length < 376) ? Rs(t, () => a(e, t, "", i)) : a(null, t, s, i); }, u = { uri: e, beforeSend(e) { e.overrideMimeType("text/plain; charset=x-user-defined"), e.addEventListener( "progress", function ({ total: t, loaded: n }) { return ws(e, null, { statusCode: e.status }, s); } ); }, }, c = t(u, function (e, t) { return ws(c, e, t, s); }); return c; }, { EventTarget: js } = Ta, Ns = function (e, t) { if (!ms(e, t)) return !1; if ( e.sidx && t.sidx && (e.sidx.offset !== t.sidx.offset || e.sidx.length !== t.sidx.length) ) return !1; if ((!e.sidx && t.sidx) || (e.sidx && !t.sidx)) return !1; if ((e.segments && !t.segments) || (!e.segments && t.segments)) return !1; if (!e.segments && !t.segments) return !0; for (let n = 0; n < e.segments.length; n++) { const r = e.segments[n], i = t.segments[n]; if (r.uri !== i.uri) return !1; if (!r.byterange && !i.byterange) continue; const o = r.byterange, a = i.byterange; if ((o && !a) || (!o && a)) return !1; if (o.offset !== a.offset || o.length !== a.length) return !1; } return !0; }, Bs = (e, t, n, r) => `placeholder-uri-${e}-${t}-${r.attributes.NAME || n}`, Us = (e, t, n) => { let r = !0, i = Ia(e, { duration: t.duration, minimumUpdatePeriod: t.minimumUpdatePeriod, timelineStarts: t.timelineStarts, }); for (let e = 0; e < t.playlists.length; e++) { const o = t.playlists[e]; if (o.sidx) { const e = Se(o.sidx); n && n[e] && n[e].sidx && ve(o, n[e].sidx, o.sidx.resolvedUri); } const a = ys(i, o, Ns); a && ((i = a), (r = !1)); } return ( cs(t, (e, t, n, o) => { if (e.playlists && e.playlists.length) { const a = e.playlists[0].id, s = ys(i, e.playlists[0], Ns); s && ((i = s), o in i.mediaGroups[t][n] || (i.mediaGroups[t][n][o] = e), (i.mediaGroups[t][n][o].playlists[0] = i.playlists[a]), (r = !1)); } }), ((e, t) => { cs(e, (n, r, i, o) => { o in t.mediaGroups[r][i] || delete e.mediaGroups[r][i][o]; }); })(i, t), t.minimumUpdatePeriod !== e.minimumUpdatePeriod && (r = !1), r ? null : i ); }, Fs = (e, t) => (Boolean(!e.map && !t.map) || Boolean( e.map && t.map && e.map.byterange.offset === t.map.byterange.offset && e.map.byterange.length === t.map.byterange.length )) && e.uri === t.uri && e.byterange.offset === t.byterange.offset && e.byterange.length === t.byterange.length, zs = (e, t) => { const n = {}; for (const r in e) { const i = e[r].sidx; if (i) { const e = Se(i); if (!t[e]) break; const r = t[e].sidxInfo; Fs(r, i) && (n[e] = t[e]); } } return n; }; class Hs extends js { constructor(e, t, n = {}, r) { super(), (this.mainPlaylistLoader_ = r || this), r || (this.isMain_ = !0); const { withCredentials: i = !1 } = n; if (((this.vhs_ = t), (this.withCredentials = i), !e)) throw new Error("A non-empty playlist URL or object is required"); this.on("minimumUpdatePeriod", () => { this.refreshXml_(); }), this.on("mediaupdatetimeout", () => { this.refreshMedia_(this.media().id); }), (this.state = "HAVE_NOTHING"), (this.loadedPlaylists_ = {}), (this.logger_ = Aa("DashPlaylistLoader")), this.isMain_ ? ((this.mainPlaylistLoader_.srcUrl = e), (this.mainPlaylistLoader_.sidxMapping_ = {})) : (this.childPlaylist_ = e); } requestErrored_(e, t, n) { return ( !this.request || ((this.request = null), e ? ((this.error = "object" != typeof e || e instanceof Error ? { status: t.status, message: "DASH request error at URL: " + t.uri, response: t.response, code: 2, } : e), n && (this.state = n), this.trigger("error"), !0) : void 0) ); } addSidxSegments_(e, t, n) { const r = e.sidx && Se(e.sidx); if (!e.sidx || !r || this.mainPlaylistLoader_.sidxMapping_[r]) return void (this.mediaRequest_ = i().setTimeout(() => n(!1), 0)); const o = La(e.sidx.resolvedUri), a = (i, o) => { if (this.requestErrored_(i, o, t)) return; const a = this.mainPlaylistLoader_.sidxMapping_; let s; try { s = rt()(W(o.response).subarray(8)); } catch (e) { return void this.requestErrored_(e, o, t); } return ( (a[r] = { sidxInfo: e.sidx, sidx: s }), ve(e, s, e.sidx.resolvedUri), n(!0) ); }; this.request = Ds(o, this.vhs_.xhr, (t, n, r, i) => { if (t) return a(t, n); if (!r || "mp4" !== r) return a( { status: n.status, message: `Unsupported ${ r || "unknown" } container type for sidx segment at URL: ${o}`, response: "", playlist: e, internal: !0, playlistExclusionDuration: 1 / 0, code: 2, }, n ); const { offset: s, length: u } = e.sidx.byterange; if (i.length >= u + s) return a(t, { response: i.subarray(s, s + u), status: n.status, uri: n.uri, }); this.request = this.vhs_.xhr( { uri: o, responseType: "arraybuffer", headers: xs({ byterange: e.sidx.byterange }), }, a ); }); } dispose() { this.trigger("dispose"), this.stopRequest(), (this.loadedPlaylists_ = {}), i().clearTimeout(this.minimumUpdatePeriodTimeout_), i().clearTimeout(this.mediaRequest_), i().clearTimeout(this.mediaUpdateTimeout), (this.mediaUpdateTimeout = null), (this.mediaRequest_ = null), (this.minimumUpdatePeriodTimeout_ = null), this.mainPlaylistLoader_.createMupOnMedia_ && (this.off( "loadedmetadata", this.mainPlaylistLoader_.createMupOnMedia_ ), (this.mainPlaylistLoader_.createMupOnMedia_ = null)), this.off(); } hasPendingRequest() { return this.request || this.mediaRequest_; } stopRequest() { if (this.request) { const e = this.request; (this.request = null), (e.onreadystatechange = null), e.abort(); } } media(e) { if (!e) return this.media_; if ("HAVE_NOTHING" === this.state) throw new Error("Cannot switch media playlist from " + this.state); const t = this.state; if ("string" == typeof e) { if (!this.mainPlaylistLoader_.main.playlists[e]) throw new Error("Unknown playlist URI: " + e); e = this.mainPlaylistLoader_.main.playlists[e]; } const n = !this.media_ || e.id !== this.media_.id; if ( n && this.loadedPlaylists_[e.id] && this.loadedPlaylists_[e.id].endList ) return ( (this.state = "HAVE_METADATA"), (this.media_ = e), void ( n && (this.trigger("mediachanging"), this.trigger("mediachange")) ) ); n && (this.media_ && this.trigger("mediachanging"), this.addSidxSegments_(e, t, (n) => { this.haveMetadata({ startingState: t, playlist: e }); })); } haveMetadata({ startingState: e, playlist: t }) { (this.state = "HAVE_METADATA"), (this.loadedPlaylists_[t.id] = t), (this.mediaRequest_ = null), this.refreshMedia_(t.id), "HAVE_MAIN_MANIFEST" === e ? this.trigger("loadedmetadata") : this.trigger("mediachange"); } pause() { this.mainPlaylistLoader_.createMupOnMedia_ && (this.off( "loadedmetadata", this.mainPlaylistLoader_.createMupOnMedia_ ), (this.mainPlaylistLoader_.createMupOnMedia_ = null)), this.stopRequest(), i().clearTimeout(this.mediaUpdateTimeout), (this.mediaUpdateTimeout = null), this.isMain_ && (i().clearTimeout( this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_ ), (this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_ = null)), "HAVE_NOTHING" === this.state && (this.started = !1); } load(e) { i().clearTimeout(this.mediaUpdateTimeout), (this.mediaUpdateTimeout = null); const t = this.media(); if (e) { const e = t ? (t.targetDuration / 2) * 1e3 : 5e3; this.mediaUpdateTimeout = i().setTimeout(() => this.load(), e); } else this.started ? t && !t.endList ? (this.isMain_ && !this.minimumUpdatePeriodTimeout_ && (this.trigger("minimumUpdatePeriod"), this.updateMinimumUpdatePeriodTimeout_()), this.trigger("mediaupdatetimeout")) : this.trigger("loadedplaylist") : this.start(); } start() { (this.started = !0), this.isMain_ ? this.requestMain_((e, t) => { this.haveMain_(), this.hasPendingRequest() || this.media_ || this.media(this.mainPlaylistLoader_.main.playlists[0]); }) : (this.mediaRequest_ = i().setTimeout( () => this.haveMain_(), 0 )); } requestMain_(e) { this.request = this.vhs_.xhr( { uri: this.mainPlaylistLoader_.srcUrl, withCredentials: this.withCredentials, }, (t, n) => { if (this.requestErrored_(t, n)) return void ( "HAVE_NOTHING" === this.state && (this.started = !1) ); const r = n.responseText !== this.mainPlaylistLoader_.mainXml_; return ( (this.mainPlaylistLoader_.mainXml_ = n.responseText), n.responseHeaders && n.responseHeaders.date ? (this.mainLoaded_ = Date.parse(n.responseHeaders.date)) : (this.mainLoaded_ = Date.now()), (this.mainPlaylistLoader_.srcUrl = La( this.mainPlaylistLoader_.srcUrl, n )), r ? (this.handleMain_(), void this.syncClientServerClock_(() => e(n, r))) : e(n, r) ); } ); } syncClientServerClock_(e) { const t = et(this.mainPlaylistLoader_.mainXml_); return null === t ? ((this.mainPlaylistLoader_.clientOffset_ = this.mainLoaded_ - Date.now()), e()) : "DIRECT" === t.method ? ((this.mainPlaylistLoader_.clientOffset_ = t.value - Date.now()), e()) : void (this.request = this.vhs_.xhr( { uri: Ca(this.mainPlaylistLoader_.srcUrl, t.value), method: t.method, withCredentials: this.withCredentials, }, (n, r) => { if (!this.request) return; if (n) return ( (this.mainPlaylistLoader_.clientOffset_ = this.mainLoaded_ - Date.now()), e() ); let i; (i = "HEAD" === t.method ? r.responseHeaders && r.responseHeaders.date ? Date.parse(r.responseHeaders.date) : this.mainLoaded_ : Date.parse(r.responseText)), (this.mainPlaylistLoader_.clientOffset_ = i - Date.now()), e(); } )); } haveMain_() { (this.state = "HAVE_MAIN_MANIFEST"), this.isMain_ ? this.trigger("loadedplaylist") : this.media_ || this.media(this.childPlaylist_); } handleMain_() { this.mediaRequest_ = null; const e = this.mainPlaylistLoader_.main; let t = (({ mainXml: e, srcUrl: t, clientOffset: n, sidxMapping: r, previousManifest: i, }) => { const o = Je(e, { manifestUri: t, clientOffset: n, sidxMapping: r, previousManifest: i, }); return fs(o, t, Bs), o; })({ mainXml: this.mainPlaylistLoader_.mainXml_, srcUrl: this.mainPlaylistLoader_.srcUrl, clientOffset: this.mainPlaylistLoader_.clientOffset_, sidxMapping: this.mainPlaylistLoader_.sidxMapping_, previousManifest: e, }); e && (t = Us(e, t, this.mainPlaylistLoader_.sidxMapping_)), (this.mainPlaylistLoader_.main = t || e); const n = this.mainPlaylistLoader_.main.locations && this.mainPlaylistLoader_.main.locations[0]; return ( n && n !== this.mainPlaylistLoader_.srcUrl && (this.mainPlaylistLoader_.srcUrl = n), (!e || (t && t.minimumUpdatePeriod !== e.minimumUpdatePeriod)) && this.updateMinimumUpdatePeriodTimeout_(), Boolean(t) ); } updateMinimumUpdatePeriodTimeout_() { const e = this.mainPlaylistLoader_; e.createMupOnMedia_ && (e.off("loadedmetadata", e.createMupOnMedia_), (e.createMupOnMedia_ = null)), e.minimumUpdatePeriodTimeout_ && (i().clearTimeout(e.minimumUpdatePeriodTimeout_), (e.minimumUpdatePeriodTimeout_ = null)); let t = e.main && e.main.minimumUpdatePeriod; 0 === t && (e.media() ? (t = 1e3 * e.media().targetDuration) : ((e.createMupOnMedia_ = e.updateMinimumUpdatePeriodTimeout_), e.one("loadedmetadata", e.createMupOnMedia_))), "number" != typeof t || t <= 0 ? t < 0 && this.logger_( `found invalid minimumUpdatePeriod of ${t}, not setting a timeout` ) : this.createMUPTimeout_(t); } createMUPTimeout_(e) { const t = this.mainPlaylistLoader_; t.minimumUpdatePeriodTimeout_ = i().setTimeout(() => { (t.minimumUpdatePeriodTimeout_ = null), t.trigger("minimumUpdatePeriod"), t.createMUPTimeout_(e); }, e); } refreshXml_() { this.requestMain_((e, t) => { t && (this.media_ && (this.media_ = this.mainPlaylistLoader_.main.playlists[this.media_.id]), (this.mainPlaylistLoader_.sidxMapping_ = ((e, t) => { let n = zs(e.playlists, t); return ( cs(e, (e, r, i, o) => { if (e.playlists && e.playlists.length) { const r = e.playlists; n = Ia(n, zs(r, t)); } }), n ); })( this.mainPlaylistLoader_.main, this.mainPlaylistLoader_.sidxMapping_ )), this.addSidxSegments_(this.media(), this.state, (e) => { this.refreshMedia_(this.media().id); })); }); } refreshMedia_(e) { if (!e) throw new Error("refreshMedia_ must take a media id"); this.media_ && this.isMain_ && this.handleMain_(); const t = this.mainPlaylistLoader_.main.playlists, n = !this.media_ || this.media_ !== t[e]; if ( (n ? (this.media_ = t[e]) : this.trigger("playlistunchanged"), !this.mediaUpdateTimeout) ) { const e = () => { this.media().endList || (this.mediaUpdateTimeout = i().setTimeout(() => { this.trigger("mediaupdatetimeout"), e(); }, vs(this.media(), Boolean(n)))); }; e(); } this.trigger("loadedplaylist"); } } var qs = { GOAL_BUFFER_LENGTH: 30, MAX_GOAL_BUFFER_LENGTH: 60, BACK_BUFFER_LENGTH: 30, GOAL_BUFFER_LENGTH_RATE: 1, INITIAL_BANDWIDTH: 4194304, BANDWIDTH_VARIANCE: 1.2, BUFFER_LOW_WATER_LINE: 0, MAX_BUFFER_LOW_WATER_LINE: 30, EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE: 16, BUFFER_LOW_WATER_LINE_RATE: 1, BUFFER_HIGH_WATER_LINE: 30, }; const Zs = function (e) { return ( (e.on = e.addEventListener), (e.off = e.removeEventListener), e ); }, Vs = function (e) { return function () { const t = (function (e) { try { return URL.createObjectURL( new Blob([e], { type: "application/javascript" }) ); } catch (t) { const n = new BlobBuilder(); return n.append(e), URL.createObjectURL(n.getBlob()); } })(e), n = Zs(new Worker(t)); n.objURL = t; const r = n.terminate; return ( (n.on = n.addEventListener), (n.off = n.removeEventListener), (n.terminate = function () { return URL.revokeObjectURL(t), r.call(this); }), n ); }; }, Ws = function (e) { return ( `var browserWorkerPolyFill = ${Zs.toString()};\nbrowserWorkerPolyFill(self);\n` + e ); }, $s = function (e) { return e .toString() .replace(/^function.+?{/, "") .slice(0, -1); }, Gs = Ws( $s(function () { var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== n.g ? n.g : "undefined" != typeof self ? self : {}, t = function () { this.init = function () { var e = {}; (this.on = function (t, n) { e[t] || (e[t] = []), (e[t] = e[t].concat(n)); }), (this.off = function (t, n) { var r; return ( !!e[t] && ((r = e[t].indexOf(n)), (e[t] = e[t].slice()), e[t].splice(r, 1), r > -1) ); }), (this.trigger = function (t) { var n, r, i, o; if ((n = e[t])) if (2 === arguments.length) for (i = n.length, r = 0; r < i; ++r) n[r].call(this, arguments[1]); else { for ( o = [], r = arguments.length, r = 1; r < arguments.length; ++r ) o.push(arguments[r]); for (i = n.length, r = 0; r < i; ++r) n[r].apply(this, o); } }), (this.dispose = function () { e = {}; }); }; }; (t.prototype.pipe = function (e) { return ( this.on("data", function (t) { e.push(t); }), this.on("done", function (t) { e.flush(t); }), this.on("partialdone", function (t) { e.partialFlush(t); }), this.on("endedtimeline", function (t) { e.endTimeline(t); }), this.on("reset", function (t) { e.reset(t); }), e ); }), (t.prototype.push = function (e) { this.trigger("data", e); }), (t.prototype.flush = function (e) { this.trigger("done", e); }), (t.prototype.partialFlush = function (e) { this.trigger("partialdone", e); }), (t.prototype.endTimeline = function (e) { this.trigger("endedtimeline", e); }), (t.prototype.reset = function (e) { this.trigger("reset", e); }); var r, i, o, a, s, u, c, l, f, d, p, h, g, m, y, v, b, _, w, T, x, S, k, E, O, C, L, A, I, M, P, R, D, j, N, B, U, F, z, H, q = t, Z = Math.pow(2, 32), V = { getUint64: function (e) { var t, n = new DataView(e.buffer, e.byteOffset, e.byteLength); return n.getBigUint64 ? (t = n.getBigUint64(0)) < Number.MAX_SAFE_INTEGER ? Number(t) : t : n.getUint32(0) * Z + n.getUint32(4); }, MAX_UINT32: Z, }, W = V.MAX_UINT32; !(function () { var e; if ( ((S = { avc1: [], avcC: [], btrt: [], dinf: [], dref: [], esds: [], ftyp: [], hdlr: [], mdat: [], mdhd: [], mdia: [], mfhd: [], minf: [], moof: [], moov: [], mp4a: [], mvex: [], mvhd: [], pasp: [], sdtp: [], smhd: [], stbl: [], stco: [], stsc: [], stsd: [], stsz: [], stts: [], styp: [], tfdt: [], tfhd: [], traf: [], trak: [], trun: [], trex: [], tkhd: [], vmhd: [], }), "undefined" != typeof Uint8Array) ) { for (e in S) S.hasOwnProperty(e) && (S[e] = [ e.charCodeAt(0), e.charCodeAt(1), e.charCodeAt(2), e.charCodeAt(3), ]); (k = new Uint8Array([ "i".charCodeAt(0), "s".charCodeAt(0), "o".charCodeAt(0), "m".charCodeAt(0), ])), (O = new Uint8Array([ "a".charCodeAt(0), "v".charCodeAt(0), "c".charCodeAt(0), "1".charCodeAt(0), ])), (E = new Uint8Array([0, 0, 0, 1])), (C = new Uint8Array([ 0, 0, 0, 0, 0, 0, 0, 0, 118, 105, 100, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 86, 105, 100, 101, 111, 72, 97, 110, 100, 108, 101, 114, 0, ])), (L = new Uint8Array([ 0, 0, 0, 0, 0, 0, 0, 0, 115, 111, 117, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 111, 117, 110, 100, 72, 97, 110, 100, 108, 101, 114, 0, ])), (A = { video: C, audio: L }), (P = new Uint8Array([ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 12, 117, 114, 108, 32, 0, 0, 0, 1, ])), (M = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0])), (R = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0])), (D = R), (j = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])), (N = R), (I = new Uint8Array([0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0])); } })(), (r = function (e) { var t, n, r = [], i = 0; for (t = 1; t < arguments.length; t++) r.push(arguments[t]); for (t = r.length; t--; ) i += r[t].byteLength; for ( n = new Uint8Array(i + 8), new DataView( n.buffer, n.byteOffset, n.byteLength ).setUint32(0, n.byteLength), n.set(e, 4), t = 0, i = 8; t < r.length; t++ ) n.set(r[t], i), (i += r[t].byteLength); return n; }), (i = function () { return r(S.dinf, r(S.dref, P)); }), (o = function (e) { return r( S.esds, new Uint8Array([ 0, 0, 0, 0, 3, 25, 0, 0, 0, 4, 17, 64, 21, 0, 6, 0, 0, 0, 218, 192, 0, 0, 218, 192, 5, 2, (e.audioobjecttype << 3) | (e.samplingfrequencyindex >>> 1), (e.samplingfrequencyindex << 7) | (e.channelcount << 3), 6, 1, 2, ]) ); }), (y = function (e) { return r(S.hdlr, A[e]); }), (m = function (e) { var t = new Uint8Array([ 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 1, 95, 144, (e.duration >>> 24) & 255, (e.duration >>> 16) & 255, (e.duration >>> 8) & 255, 255 & e.duration, 85, 196, 0, 0, ]); return ( e.samplerate && ((t[12] = (e.samplerate >>> 24) & 255), (t[13] = (e.samplerate >>> 16) & 255), (t[14] = (e.samplerate >>> 8) & 255), (t[15] = 255 & e.samplerate)), r(S.mdhd, t) ); }), (g = function (e) { return r(S.mdia, m(e), y(e.type), u(e)); }), (s = function (e) { return r( S.mfhd, new Uint8Array([ 0, 0, 0, 0, (4278190080 & e) >> 24, (16711680 & e) >> 16, (65280 & e) >> 8, 255 & e, ]) ); }), (u = function (e) { return r( S.minf, "video" === e.type ? r(S.vmhd, I) : r(S.smhd, M), i(), b(e) ); }), (c = function (e, t) { for (var n = [], i = t.length; i--; ) n[i] = w(t[i]); return r.apply(null, [S.moof, s(e)].concat(n)); }), (l = function (e) { for (var t = e.length, n = []; t--; ) n[t] = p(e[t]); return r.apply( null, [S.moov, d(4294967295)].concat(n).concat(f(e)) ); }), (f = function (e) { for (var t = e.length, n = []; t--; ) n[t] = T(e[t]); return r.apply(null, [S.mvex].concat(n)); }), (d = function (e) { var t = new Uint8Array([ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 1, 95, 144, (4278190080 & e) >> 24, (16711680 & e) >> 16, (65280 & e) >> 8, 255 & e, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, ]); return r(S.mvhd, t); }), (v = function (e) { var t, n, i = e.samples || [], o = new Uint8Array(4 + i.length); for (n = 0; n < i.length; n++) (t = i[n].flags), (o[n + 4] = (t.dependsOn << 4) | (t.isDependedOn << 2) | t.hasRedundancy); return r(S.sdtp, o); }), (b = function (e) { return r( S.stbl, _(e), r(S.stts, N), r(S.stsc, D), r(S.stsz, j), r(S.stco, R) ); }), (_ = function (e) { return r( S.stsd, new Uint8Array([0, 0, 0, 0, 0, 0, 0, 1]), "video" === e.type ? B(e) : U(e) ); }), (B = function (e) { var t, n, i = e.sps || [], o = e.pps || [], a = [], s = []; for (t = 0; t < i.length; t++) a.push((65280 & i[t].byteLength) >>> 8), a.push(255 & i[t].byteLength), (a = a.concat(Array.prototype.slice.call(i[t]))); for (t = 0; t < o.length; t++) s.push((65280 & o[t].byteLength) >>> 8), s.push(255 & o[t].byteLength), (s = s.concat(Array.prototype.slice.call(o[t]))); if ( ((n = [ S.avc1, new Uint8Array([ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (65280 & e.width) >> 8, 255 & e.width, (65280 & e.height) >> 8, 255 & e.height, 0, 72, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 1, 19, 118, 105, 100, 101, 111, 106, 115, 45, 99, 111, 110, 116, 114, 105, 98, 45, 104, 108, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 17, 17, ]), r( S.avcC, new Uint8Array( [ 1, e.profileIdc, e.profileCompatibility, e.levelIdc, 255, ].concat([i.length], a, [o.length], s) ) ), r( S.btrt, new Uint8Array([ 0, 28, 156, 128, 0, 45, 198, 192, 0, 45, 198, 192, ]) ), ]), e.sarRatio) ) { var u = e.sarRatio[0], c = e.sarRatio[1]; n.push( r( S.pasp, new Uint8Array([ (4278190080 & u) >> 24, (16711680 & u) >> 16, (65280 & u) >> 8, 255 & u, (4278190080 & c) >> 24, (16711680 & c) >> 16, (65280 & c) >> 8, 255 & c, ]) ) ); } return r.apply(null, n); }), (U = function (e) { return r( S.mp4a, new Uint8Array([ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, (65280 & e.channelcount) >> 8, 255 & e.channelcount, (65280 & e.samplesize) >> 8, 255 & e.samplesize, 0, 0, 0, 0, (65280 & e.samplerate) >> 8, 255 & e.samplerate, 0, 0, ]), o(e) ); }), (h = function (e) { var t = new Uint8Array([ 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, (4278190080 & e.id) >> 24, (16711680 & e.id) >> 16, (65280 & e.id) >> 8, 255 & e.id, 0, 0, 0, 0, (4278190080 & e.duration) >> 24, (16711680 & e.duration) >> 16, (65280 & e.duration) >> 8, 255 & e.duration, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, (65280 & e.width) >> 8, 255 & e.width, 0, 0, (65280 & e.height) >> 8, 255 & e.height, 0, 0, ]); return r(S.tkhd, t); }), (w = function (e) { var t, n, i, o, a, s; return ( (t = r( S.tfhd, new Uint8Array([ 0, 0, 0, 58, (4278190080 & e.id) >> 24, (16711680 & e.id) >> 16, (65280 & e.id) >> 8, 255 & e.id, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ]) )), (a = Math.floor(e.baseMediaDecodeTime / W)), (s = Math.floor(e.baseMediaDecodeTime % W)), (n = r( S.tfdt, new Uint8Array([ 1, 0, 0, 0, (a >>> 24) & 255, (a >>> 16) & 255, (a >>> 8) & 255, 255 & a, (s >>> 24) & 255, (s >>> 16) & 255, (s >>> 8) & 255, 255 & s, ]) )), 92, "audio" === e.type ? ((i = x(e, 92)), r(S.traf, t, n, i)) : ((o = v(e)), (i = x(e, o.length + 92)), r(S.traf, t, n, i, o)) ); }), (p = function (e) { return ( (e.duration = e.duration || 4294967295), r(S.trak, h(e), g(e)) ); }), (T = function (e) { var t = new Uint8Array([ 0, 0, 0, 0, (4278190080 & e.id) >> 24, (16711680 & e.id) >> 16, (65280 & e.id) >> 8, 255 & e.id, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, ]); return ( "video" !== e.type && (t[t.length - 1] = 0), r(S.trex, t) ); }), (H = function (e, t) { var n = 0, r = 0, i = 0, o = 0; return ( e.length && (void 0 !== e[0].duration && (n = 1), void 0 !== e[0].size && (r = 2), void 0 !== e[0].flags && (i = 4), void 0 !== e[0].compositionTimeOffset && (o = 8)), [ 0, 0, n | r | i | o, 1, (4278190080 & e.length) >>> 24, (16711680 & e.length) >>> 16, (65280 & e.length) >>> 8, 255 & e.length, (4278190080 & t) >>> 24, (16711680 & t) >>> 16, (65280 & t) >>> 8, 255 & t, ] ); }), (z = function (e, t) { var n, i, o, a, s, u; for ( t += 20 + 16 * (a = e.samples || []).length, o = H(a, t), (i = new Uint8Array(o.length + 16 * a.length)).set(o), n = o.length, u = 0; u < a.length; u++ ) (s = a[u]), (i[n++] = (4278190080 & s.duration) >>> 24), (i[n++] = (16711680 & s.duration) >>> 16), (i[n++] = (65280 & s.duration) >>> 8), (i[n++] = 255 & s.duration), (i[n++] = (4278190080 & s.size) >>> 24), (i[n++] = (16711680 & s.size) >>> 16), (i[n++] = (65280 & s.size) >>> 8), (i[n++] = 255 & s.size), (i[n++] = (s.flags.isLeading << 2) | s.flags.dependsOn), (i[n++] = (s.flags.isDependedOn << 6) | (s.flags.hasRedundancy << 4) | (s.flags.paddingValue << 1) | s.flags.isNonSyncSample), (i[n++] = 61440 & s.flags.degradationPriority), (i[n++] = 15 & s.flags.degradationPriority), (i[n++] = (4278190080 & s.compositionTimeOffset) >>> 24), (i[n++] = (16711680 & s.compositionTimeOffset) >>> 16), (i[n++] = (65280 & s.compositionTimeOffset) >>> 8), (i[n++] = 255 & s.compositionTimeOffset); return r(S.trun, i); }), (F = function (e, t) { var n, i, o, a, s, u; for ( t += 20 + 8 * (a = e.samples || []).length, o = H(a, t), (n = new Uint8Array(o.length + 8 * a.length)).set(o), i = o.length, u = 0; u < a.length; u++ ) (s = a[u]), (n[i++] = (4278190080 & s.duration) >>> 24), (n[i++] = (16711680 & s.duration) >>> 16), (n[i++] = (65280 & s.duration) >>> 8), (n[i++] = 255 & s.duration), (n[i++] = (4278190080 & s.size) >>> 24), (n[i++] = (16711680 & s.size) >>> 16), (n[i++] = (65280 & s.size) >>> 8), (n[i++] = 255 & s.size); return r(S.trun, n); }), (x = function (e, t) { return "audio" === e.type ? F(e, t) : z(e, t); }); var $, G, Y, K, X, Q, J, ee, te = { ftyp: (a = function () { return r(S.ftyp, k, E, k, O); }), mdat: function (e) { return r(S.mdat, e); }, moof: c, moov: l, initSegment: function (e) { var t, n = a(), r = l(e); return ( (t = new Uint8Array(n.byteLength + r.byteLength)).set(n), t.set(r, n.byteLength), t ); }, }, ne = function (e, t) { var n = { size: 0, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0, degradationPriority: 0, isNonSyncSample: 1, }, }; return ( (n.dataOffset = t), (n.compositionTimeOffset = e.pts - e.dts), (n.duration = e.duration), (n.size = 4 * e.length), (n.size += e.byteLength), e.keyFrame && ((n.flags.dependsOn = 2), (n.flags.isNonSyncSample = 0)), n ); }, re = { groupNalsIntoFrames: function (e) { var t, n, r = [], i = []; for ( i.byteLength = 0, i.nalCount = 0, i.duration = 0, r.byteLength = 0, t = 0; t < e.length; t++ ) "access_unit_delimiter_rbsp" === (n = e[t]).nalUnitType ? (r.length && ((r.duration = n.dts - r.dts), (i.byteLength += r.byteLength), (i.nalCount += r.length), (i.duration += r.duration), i.push(r)), ((r = [n]).byteLength = n.data.byteLength), (r.pts = n.pts), (r.dts = n.dts)) : ("slice_layer_without_partitioning_rbsp_idr" === n.nalUnitType && (r.keyFrame = !0), (r.duration = n.dts - r.dts), (r.byteLength += n.data.byteLength), r.push(n)); return ( i.length && (!r.duration || r.duration <= 0) && (r.duration = i[i.length - 1].duration), (i.byteLength += r.byteLength), (i.nalCount += r.length), (i.duration += r.duration), i.push(r), i ); }, groupFramesIntoGops: function (e) { var t, n, r = [], i = []; for ( r.byteLength = 0, r.nalCount = 0, r.duration = 0, r.pts = e[0].pts, r.dts = e[0].dts, i.byteLength = 0, i.nalCount = 0, i.duration = 0, i.pts = e[0].pts, i.dts = e[0].dts, t = 0; t < e.length; t++ ) (n = e[t]).keyFrame ? (r.length && (i.push(r), (i.byteLength += r.byteLength), (i.nalCount += r.nalCount), (i.duration += r.duration)), ((r = [n]).nalCount = n.length), (r.byteLength = n.byteLength), (r.pts = n.pts), (r.dts = n.dts), (r.duration = n.duration)) : ((r.duration += n.duration), (r.nalCount += n.length), (r.byteLength += n.byteLength), r.push(n)); return ( i.length && r.duration <= 0 && (r.duration = i[i.length - 1].duration), (i.byteLength += r.byteLength), (i.nalCount += r.nalCount), (i.duration += r.duration), i.push(r), i ); }, extendFirstKeyFrame: function (e) { var t; return ( !e[0][0].keyFrame && e.length > 1 && ((t = e.shift()), (e.byteLength -= t.byteLength), (e.nalCount -= t.nalCount), (e[0][0].dts = t.dts), (e[0][0].pts = t.pts), (e[0][0].duration += t.duration)), e ); }, generateSampleTable: function (e, t) { var n, r, i, o, a, s = t || 0, u = []; for (n = 0; n < e.length; n++) for (o = e[n], r = 0; r < o.length; r++) (a = o[r]), (s += (i = ne(a, s)).size), u.push(i); return u; }, concatenateNalData: function (e) { var t, n, r, i, o, a, s = 0, u = e.byteLength, c = e.nalCount, l = new Uint8Array(u + 4 * c), f = new DataView(l.buffer); for (t = 0; t < e.length; t++) for (i = e[t], n = 0; n < i.length; n++) for (o = i[n], r = 0; r < o.length; r++) (a = o[r]), f.setUint32(s, a.data.byteLength), (s += 4), l.set(a.data, s), (s += a.data.byteLength); return l; }, generateSampleTableForFrame: function (e, t) { var n, r = []; return (n = ne(e, t || 0)), r.push(n), r; }, concatenateNalDataForFrame: function (e) { var t, n, r = 0, i = e.byteLength, o = e.length, a = new Uint8Array(i + 4 * o), s = new DataView(a.buffer); for (t = 0; t < e.length; t++) (n = e[t]), s.setUint32(r, n.data.byteLength), (r += 4), a.set(n.data, r), (r += n.data.byteLength); return a; }, }, ie = [33, 16, 5, 32, 164, 27], oe = [33, 65, 108, 84, 1, 2, 4, 8, 168, 2, 4, 8, 17, 191, 252], ae = function (e) { for (var t = []; e--; ) t.push(0); return t; }, se = 9e4; (Q = function (e, t) { return G(X(e, t)); }), (J = function (e, t) { return Y(K(e), t); }), (ee = function (e, t, n) { return K(n ? e : e - t); }); var ue = { ONE_SECOND_IN_TS: se, secondsToVideoTs: (G = function (e) { return e * se; }), secondsToAudioTs: (Y = function (e, t) { return e * t; }), videoTsToSeconds: (K = function (e) { return e / se; }), audioTsToSeconds: (X = function (e, t) { return e / t; }), audioTsToVideoTs: Q, videoTsToAudioTs: J, metadataTsToSeconds: ee, }, ce = function () { if (!$) { var e = { 96e3: [ie, [227, 64], ae(154), [56]], 88200: [ie, [231], ae(170), [56]], 64e3: [ie, [248, 192], ae(240), [56]], 48e3: [ ie, [255, 192], ae(268), [55, 148, 128], ae(54), [112], ], 44100: [ ie, [255, 192], ae(268), [55, 163, 128], ae(84), [112], ], 32e3: [ie, [255, 192], ae(268), [55, 234], ae(226), [112]], 24e3: [ ie, [255, 192], ae(268), [55, 255, 128], ae(268), [111, 112], ae(126), [224], ], 16e3: [ ie, [255, 192], ae(268), [55, 255, 128], ae(268), [111, 255], ae(269), [223, 108], ae(195), [1, 192], ], 12e3: [ oe, ae(268), [3, 127, 248], ae(268), [6, 255, 240], ae(268), [13, 255, 224], ae(268), [27, 253, 128], ae(259), [56], ], 11025: [ oe, ae(268), [3, 127, 248], ae(268), [6, 255, 240], ae(268), [13, 255, 224], ae(268), [27, 255, 192], ae(268), [55, 175, 128], ae(108), [112], ], 8e3: [oe, ae(268), [3, 121, 16], ae(47), [7]], }; (t = e), ($ = Object.keys(t).reduce(function (e, n) { return ( (e[n] = new Uint8Array( t[n].reduce(function (e, t) { return e.concat(t); }, []) )), e ); }, {})); } var t; return $; }, le = ue, fe = { prefixWithSilence: function (e, t, n, r) { var i, o, a, s, u, c = 0, l = 0, f = 0; if ( t.length && ((i = le.audioTsToVideoTs( e.baseMediaDecodeTime, e.samplerate )), (o = Math.ceil( le.ONE_SECOND_IN_TS / (e.samplerate / 1024) )), n && r && ((c = i - Math.max(n, r)), (f = (l = Math.floor(c / o)) * o)), !(l < 1 || f > le.ONE_SECOND_IN_TS / 2)) ) { for ( (a = ce()[e.samplerate]) || (a = t[0].data), s = 0; s < l; s++ ) (u = t[0]), t.splice(0, 0, { data: a, dts: u.dts - o, pts: u.pts - o, }); return ( (e.baseMediaDecodeTime -= Math.floor( le.videoTsToAudioTs(f, e.samplerate) )), f ); } }, trimAdtsFramesByEarliestDts: function (e, t, n) { return t.minSegmentDts >= n ? e : ((t.minSegmentDts = 1 / 0), e.filter(function (e) { return ( e.dts >= n && ((t.minSegmentDts = Math.min(t.minSegmentDts, e.dts)), (t.minSegmentPts = t.minSegmentDts), !0) ); })); }, generateSampleTable: function (e) { var t, n, r = []; for (t = 0; t < e.length; t++) (n = e[t]), r.push({ size: n.data.byteLength, duration: 1024 }); return r; }, concatenateFrameData: function (e) { var t, n, r = 0, i = new Uint8Array( (function (e) { var t, n = 0; for (t = 0; t < e.length; t++) n += e[t].data.byteLength; return n; })(e) ); for (t = 0; t < e.length; t++) (n = e[t]), i.set(n.data, r), (r += n.data.byteLength); return i; }, }, de = ue.ONE_SECOND_IN_TS, pe = { clearDtsInfo: function (e) { delete e.minSegmentDts, delete e.maxSegmentDts, delete e.minSegmentPts, delete e.maxSegmentPts; }, calculateTrackBaseMediaDecodeTime: function (e, t) { var n, r = e.minSegmentDts; return ( t || (r -= e.timelineStartInfo.dts), (n = e.timelineStartInfo.baseMediaDecodeTime), (n += r), (n = Math.max(0, n)), "audio" === e.type && ((n *= e.samplerate / de), (n = Math.floor(n))), n ); }, collectDtsInfo: function (e, t) { "number" == typeof t.pts && (void 0 === e.timelineStartInfo.pts && (e.timelineStartInfo.pts = t.pts), void 0 === e.minSegmentPts ? (e.minSegmentPts = t.pts) : (e.minSegmentPts = Math.min(e.minSegmentPts, t.pts)), void 0 === e.maxSegmentPts ? (e.maxSegmentPts = t.pts) : (e.maxSegmentPts = Math.max(e.maxSegmentPts, t.pts))), "number" == typeof t.dts && (void 0 === e.timelineStartInfo.dts && (e.timelineStartInfo.dts = t.dts), void 0 === e.minSegmentDts ? (e.minSegmentDts = t.dts) : (e.minSegmentDts = Math.min(e.minSegmentDts, t.dts)), void 0 === e.maxSegmentDts ? (e.maxSegmentDts = t.dts) : (e.maxSegmentDts = Math.max(e.maxSegmentDts, t.dts))); }, }, he = { parseSei: function (e) { for ( var t = 0, n = { payloadType: -1, payloadSize: 0 }, r = 0, i = 0; t < e.byteLength && 128 !== e[t]; ) { for (; 255 === e[t]; ) (r += 255), t++; for (r += e[t++]; 255 === e[t]; ) (i += 255), t++; if (((i += e[t++]), !n.payload && 4 === r)) { if ( "GA94" === String.fromCharCode( e[t + 3], e[t + 4], e[t + 5], e[t + 6] ) ) { (n.payloadType = r), (n.payloadSize = i), (n.payload = e.subarray(t, t + i)); break; } n.payload = void 0; } (t += i), (r = 0), (i = 0); } return n; }, parseUserData: function (e) { return 181 !== e.payload[0] || 49 != ((e.payload[1] << 8) | e.payload[2]) || "GA94" !== String.fromCharCode( e.payload[3], e.payload[4], e.payload[5], e.payload[6] ) || 3 !== e.payload[7] ? null : e.payload.subarray(8, e.payload.length - 1); }, parseCaptionPackets: function (e, t) { var n, r, i, o, a = []; if (!(64 & t[0])) return a; for (r = 31 & t[0], n = 0; n < r; n++) (o = { type: 3 & t[(i = 3 * n) + 2], pts: e }), 4 & t[i + 2] && ((o.ccData = (t[i + 3] << 8) | t[i + 4]), a.push(o)); return a; }, discardEmulationPreventionBytes: function (e) { for (var t, n, r = e.byteLength, i = [], o = 1; o < r - 2; ) 0 === e[o] && 0 === e[o + 1] && 3 === e[o + 2] ? (i.push(o + 2), (o += 2)) : o++; if (0 === i.length) return e; (t = r - i.length), (n = new Uint8Array(t)); var a = 0; for (o = 0; o < t; a++, o++) a === i[0] && (a++, i.shift()), (n[o] = e[a]); return n; }, USER_DATA_REGISTERED_ITU_T_T35: 4, }, ge = q, me = he, ye = function (e) { (e = e || {}), ye.prototype.init.call(this), (this.parse708captions_ = "boolean" != typeof e.parse708captions || e.parse708captions), (this.captionPackets_ = []), (this.ccStreams_ = [ new Oe(0, 0), new Oe(0, 1), new Oe(1, 0), new Oe(1, 1), ]), this.parse708captions_ && (this.cc708Stream_ = new Te({ captionServices: e.captionServices, })), this.reset(), this.ccStreams_.forEach(function (e) { e.on("data", this.trigger.bind(this, "data")), e.on( "partialdone", this.trigger.bind(this, "partialdone") ), e.on("done", this.trigger.bind(this, "done")); }, this), this.parse708captions_ && (this.cc708Stream_.on( "data", this.trigger.bind(this, "data") ), this.cc708Stream_.on( "partialdone", this.trigger.bind(this, "partialdone") ), this.cc708Stream_.on( "done", this.trigger.bind(this, "done") )); }; (ye.prototype = new ge()), (ye.prototype.push = function (e) { var t, n, r; if ( "sei_rbsp" === e.nalUnitType && (t = me.parseSei(e.escapedRBSP)).payload && t.payloadType === me.USER_DATA_REGISTERED_ITU_T_T35 && (n = me.parseUserData(t)) ) if (e.dts < this.latestDts_) this.ignoreNextEqualDts_ = !0; else { if (e.dts === this.latestDts_ && this.ignoreNextEqualDts_) return ( this.numSameDts_--, void ( this.numSameDts_ || (this.ignoreNextEqualDts_ = !1) ) ); (r = me.parseCaptionPackets(e.pts, n)), (this.captionPackets_ = this.captionPackets_.concat(r)), this.latestDts_ !== e.dts && (this.numSameDts_ = 0), this.numSameDts_++, (this.latestDts_ = e.dts); } }), (ye.prototype.flushCCStreams = function (e) { this.ccStreams_.forEach(function (t) { return "flush" === e ? t.flush() : t.partialFlush(); }, this); }), (ye.prototype.flushStream = function (e) { this.captionPackets_.length ? (this.captionPackets_.forEach(function (e, t) { e.presortIndex = t; }), this.captionPackets_.sort(function (e, t) { return e.pts === t.pts ? e.presortIndex - t.presortIndex : e.pts - t.pts; }), this.captionPackets_.forEach(function (e) { e.type < 2 ? this.dispatchCea608Packet(e) : this.dispatchCea708Packet(e); }, this), (this.captionPackets_.length = 0), this.flushCCStreams(e)) : this.flushCCStreams(e); }), (ye.prototype.flush = function () { return this.flushStream("flush"); }), (ye.prototype.partialFlush = function () { return this.flushStream("partialFlush"); }), (ye.prototype.reset = function () { (this.latestDts_ = null), (this.ignoreNextEqualDts_ = !1), (this.numSameDts_ = 0), (this.activeCea608Channel_ = [null, null]), this.ccStreams_.forEach(function (e) { e.reset(); }); }), (ye.prototype.dispatchCea608Packet = function (e) { this.setsTextOrXDSActive(e) ? (this.activeCea608Channel_[e.type] = null) : this.setsChannel1Active(e) ? (this.activeCea608Channel_[e.type] = 0) : this.setsChannel2Active(e) && (this.activeCea608Channel_[e.type] = 1), null !== this.activeCea608Channel_[e.type] && this.ccStreams_[ (e.type << 1) + this.activeCea608Channel_[e.type] ].push(e); }), (ye.prototype.setsChannel1Active = function (e) { return 4096 == (30720 & e.ccData); }), (ye.prototype.setsChannel2Active = function (e) { return 6144 == (30720 & e.ccData); }), (ye.prototype.setsTextOrXDSActive = function (e) { return ( 256 == (28928 & e.ccData) || 4138 == (30974 & e.ccData) || 6186 == (30974 & e.ccData) ); }), (ye.prototype.dispatchCea708Packet = function (e) { this.parse708captions_ && this.cc708Stream_.push(e); }); var ve = { 127: 9834, 4128: 32, 4129: 160, 4133: 8230, 4138: 352, 4140: 338, 4144: 9608, 4145: 8216, 4146: 8217, 4147: 8220, 4148: 8221, 4149: 8226, 4153: 8482, 4154: 353, 4156: 339, 4157: 8480, 4159: 376, 4214: 8539, 4215: 8540, 4216: 8541, 4217: 8542, 4218: 9168, 4219: 9124, 4220: 9123, 4221: 9135, 4222: 9126, 4223: 9121, 4256: 12600, }, be = function (e) { return (32 <= e && e <= 127) || (160 <= e && e <= 255); }, _e = function (e) { (this.windowNum = e), this.reset(); }; (_e.prototype.reset = function () { this.clearText(), (this.pendingNewLine = !1), (this.winAttr = {}), (this.penAttr = {}), (this.penLoc = {}), (this.penColor = {}), (this.visible = 0), (this.rowLock = 0), (this.columnLock = 0), (this.priority = 0), (this.relativePositioning = 0), (this.anchorVertical = 0), (this.anchorHorizontal = 0), (this.anchorPoint = 0), (this.rowCount = 1), (this.virtualRowCount = this.rowCount + 1), (this.columnCount = 41), (this.windowStyle = 0), (this.penStyle = 0); }), (_e.prototype.getText = function () { return this.rows.join("\n"); }), (_e.prototype.clearText = function () { (this.rows = [""]), (this.rowIdx = 0); }), (_e.prototype.newLine = function (e) { for ( this.rows.length >= this.virtualRowCount && "function" == typeof this.beforeRowOverflow && this.beforeRowOverflow(e), this.rows.length > 0 && (this.rows.push(""), this.rowIdx++); this.rows.length > this.virtualRowCount; ) this.rows.shift(), this.rowIdx--; }), (_e.prototype.isEmpty = function () { return ( 0 === this.rows.length || (1 === this.rows.length && "" === this.rows[0]) ); }), (_e.prototype.addText = function (e) { this.rows[this.rowIdx] += e; }), (_e.prototype.backspace = function () { if (!this.isEmpty()) { var e = this.rows[this.rowIdx]; this.rows[this.rowIdx] = e.substr(0, e.length - 1); } }); var we = function (e, t, n) { (this.serviceNum = e), (this.text = ""), (this.currentWindow = new _e(-1)), (this.windows = []), (this.stream = n), "string" == typeof t && this.createTextDecoder(t); }; (we.prototype.init = function (e, t) { this.startPts = e; for (var n = 0; n < 8; n++) (this.windows[n] = new _e(n)), "function" == typeof t && (this.windows[n].beforeRowOverflow = t); }), (we.prototype.setCurrentWindow = function (e) { this.currentWindow = this.windows[e]; }), (we.prototype.createTextDecoder = function (e) { if ("undefined" == typeof TextDecoder) this.stream.trigger("log", { level: "warn", message: "The `encoding` option is unsupported without TextDecoder support", }); else try { this.textDecoder_ = new TextDecoder(e); } catch (t) { this.stream.trigger("log", { level: "warn", message: "TextDecoder could not be created with " + e + " encoding. " + t, }); } }); var Te = function (e) { (e = e || {}), Te.prototype.init.call(this); var t, n = this, r = e.captionServices || {}, i = {}; Object.keys(r).forEach((e) => { (t = r[e]), /^SERVICE/.test(e) && (i[e] = t.encoding); }), (this.serviceEncodings = i), (this.current708Packet = null), (this.services = {}), (this.push = function (e) { 3 === e.type ? (n.new708Packet(), n.add708Bytes(e)) : (null === n.current708Packet && n.new708Packet(), n.add708Bytes(e)); }); }; (Te.prototype = new ge()), (Te.prototype.new708Packet = function () { null !== this.current708Packet && this.push708Packet(), (this.current708Packet = { data: [], ptsVals: [] }); }), (Te.prototype.add708Bytes = function (e) { var t = e.ccData, n = t >>> 8, r = 255 & t; this.current708Packet.ptsVals.push(e.pts), this.current708Packet.data.push(n), this.current708Packet.data.push(r); }), (Te.prototype.push708Packet = function () { var e = this.current708Packet, t = e.data, n = null, r = null, i = 0, o = t[i++]; for (e.seq = o >> 6, e.sizeCode = 63 & o; i < t.length; i++) (r = 31 & (o = t[i++])), 7 === (n = o >> 5) && r > 0 && (n = o = t[i++]), this.pushServiceBlock(n, i, r), r > 0 && (i += r - 1); }), (Te.prototype.pushServiceBlock = function (e, t, n) { var r, i = t, o = this.current708Packet.data, a = this.services[e]; for ( a || (a = this.initService(e, i)); i < t + n && i < o.length; i++ ) (r = o[i]), be(r) ? (i = this.handleText(i, a)) : 24 === r ? (i = this.multiByteCharacter(i, a)) : 16 === r ? (i = this.extendedCommands(i, a)) : 128 <= r && r <= 135 ? (i = this.setCurrentWindow(i, a)) : 152 <= r && r <= 159 ? (i = this.defineWindow(i, a)) : 136 === r ? (i = this.clearWindows(i, a)) : 140 === r ? (i = this.deleteWindows(i, a)) : 137 === r ? (i = this.displayWindows(i, a)) : 138 === r ? (i = this.hideWindows(i, a)) : 139 === r ? (i = this.toggleWindows(i, a)) : 151 === r ? (i = this.setWindowAttributes(i, a)) : 144 === r ? (i = this.setPenAttributes(i, a)) : 145 === r ? (i = this.setPenColor(i, a)) : 146 === r ? (i = this.setPenLocation(i, a)) : 143 === r ? (a = this.reset(i, a)) : 8 === r ? a.currentWindow.backspace() : 12 === r ? a.currentWindow.clearText() : 13 === r ? (a.currentWindow.pendingNewLine = !0) : 14 === r ? a.currentWindow.clearText() : 141 === r && i++; }), (Te.prototype.extendedCommands = function (e, t) { var n = this.current708Packet.data[++e]; return ( be(n) && (e = this.handleText(e, t, { isExtended: !0 })), e ); }), (Te.prototype.getPts = function (e) { return this.current708Packet.ptsVals[Math.floor(e / 2)]; }), (Te.prototype.initService = function (e, t) { var n, r, i = this; return ( (n = "SERVICE" + e) in this.serviceEncodings && (r = this.serviceEncodings[n]), (this.services[e] = new we(e, r, i)), this.services[e].init(this.getPts(t), function (t) { i.flushDisplayed(t, i.services[e]); }), this.services[e] ); }), (Te.prototype.handleText = function (e, t, n) { var r, i, o, a, s = n && n.isExtended, u = n && n.isMultiByte, c = this.current708Packet.data, l = s ? 4096 : 0, f = c[e], d = c[e + 1], p = t.currentWindow; return ( t.textDecoder_ && !s ? (u ? ((i = [f, d]), e++) : (i = [f]), (r = t.textDecoder_.decode(new Uint8Array(i)))) : ((a = ve[(o = l | f)] || o), (r = 4096 & o && o === a ? "" : String.fromCharCode(a))), p.pendingNewLine && !p.isEmpty() && p.newLine(this.getPts(e)), (p.pendingNewLine = !1), p.addText(r), e ); }), (Te.prototype.multiByteCharacter = function (e, t) { var n = this.current708Packet.data, r = n[e + 1], i = n[e + 2]; return ( be(r) && be(i) && (e = this.handleText(++e, t, { isMultiByte: !0 })), e ); }), (Te.prototype.setCurrentWindow = function (e, t) { var n = 7 & this.current708Packet.data[e]; return t.setCurrentWindow(n), e; }), (Te.prototype.defineWindow = function (e, t) { var n = this.current708Packet.data, r = n[e], i = 7 & r; t.setCurrentWindow(i); var o = t.currentWindow; return ( (r = n[++e]), (o.visible = (32 & r) >> 5), (o.rowLock = (16 & r) >> 4), (o.columnLock = (8 & r) >> 3), (o.priority = 7 & r), (r = n[++e]), (o.relativePositioning = (128 & r) >> 7), (o.anchorVertical = 127 & r), (r = n[++e]), (o.anchorHorizontal = r), (r = n[++e]), (o.anchorPoint = (240 & r) >> 4), (o.rowCount = 15 & r), (r = n[++e]), (o.columnCount = 63 & r), (r = n[++e]), (o.windowStyle = (56 & r) >> 3), (o.penStyle = 7 & r), (o.virtualRowCount = o.rowCount + 1), e ); }), (Te.prototype.setWindowAttributes = function (e, t) { var n = this.current708Packet.data, r = n[e], i = t.currentWindow.winAttr; return ( (r = n[++e]), (i.fillOpacity = (192 & r) >> 6), (i.fillRed = (48 & r) >> 4), (i.fillGreen = (12 & r) >> 2), (i.fillBlue = 3 & r), (r = n[++e]), (i.borderType = (192 & r) >> 6), (i.borderRed = (48 & r) >> 4), (i.borderGreen = (12 & r) >> 2), (i.borderBlue = 3 & r), (r = n[++e]), (i.borderType += (128 & r) >> 5), (i.wordWrap = (64 & r) >> 6), (i.printDirection = (48 & r) >> 4), (i.scrollDirection = (12 & r) >> 2), (i.justify = 3 & r), (r = n[++e]), (i.effectSpeed = (240 & r) >> 4), (i.effectDirection = (12 & r) >> 2), (i.displayEffect = 3 & r), e ); }), (Te.prototype.flushDisplayed = function (e, t) { for (var n = [], r = 0; r < 8; r++) t.windows[r].visible && !t.windows[r].isEmpty() && n.push(t.windows[r].getText()); (t.endPts = e), (t.text = n.join("\n\n")), this.pushCaption(t), (t.startPts = e); }), (Te.prototype.pushCaption = function (e) { "" !== e.text && (this.trigger("data", { startPts: e.startPts, endPts: e.endPts, text: e.text, stream: "cc708_" + e.serviceNum, }), (e.text = ""), (e.startPts = e.endPts)); }), (Te.prototype.displayWindows = function (e, t) { var n = this.current708Packet.data[++e], r = this.getPts(e); this.flushDisplayed(r, t); for (var i = 0; i < 8; i++) n & (1 << i) && (t.windows[i].visible = 1); return e; }), (Te.prototype.hideWindows = function (e, t) { var n = this.current708Packet.data[++e], r = this.getPts(e); this.flushDisplayed(r, t); for (var i = 0; i < 8; i++) n & (1 << i) && (t.windows[i].visible = 0); return e; }), (Te.prototype.toggleWindows = function (e, t) { var n = this.current708Packet.data[++e], r = this.getPts(e); this.flushDisplayed(r, t); for (var i = 0; i < 8; i++) n & (1 << i) && (t.windows[i].visible ^= 1); return e; }), (Te.prototype.clearWindows = function (e, t) { var n = this.current708Packet.data[++e], r = this.getPts(e); this.flushDisplayed(r, t); for (var i = 0; i < 8; i++) n & (1 << i) && t.windows[i].clearText(); return e; }), (Te.prototype.deleteWindows = function (e, t) { var n = this.current708Packet.data[++e], r = this.getPts(e); this.flushDisplayed(r, t); for (var i = 0; i < 8; i++) n & (1 << i) && t.windows[i].reset(); return e; }), (Te.prototype.setPenAttributes = function (e, t) { var n = this.current708Packet.data, r = n[e], i = t.currentWindow.penAttr; return ( (r = n[++e]), (i.textTag = (240 & r) >> 4), (i.offset = (12 & r) >> 2), (i.penSize = 3 & r), (r = n[++e]), (i.italics = (128 & r) >> 7), (i.underline = (64 & r) >> 6), (i.edgeType = (56 & r) >> 3), (i.fontStyle = 7 & r), e ); }), (Te.prototype.setPenColor = function (e, t) { var n = this.current708Packet.data, r = n[e], i = t.currentWindow.penColor; return ( (r = n[++e]), (i.fgOpacity = (192 & r) >> 6), (i.fgRed = (48 & r) >> 4), (i.fgGreen = (12 & r) >> 2), (i.fgBlue = 3 & r), (r = n[++e]), (i.bgOpacity = (192 & r) >> 6), (i.bgRed = (48 & r) >> 4), (i.bgGreen = (12 & r) >> 2), (i.bgBlue = 3 & r), (r = n[++e]), (i.edgeRed = (48 & r) >> 4), (i.edgeGreen = (12 & r) >> 2), (i.edgeBlue = 3 & r), e ); }), (Te.prototype.setPenLocation = function (e, t) { var n = this.current708Packet.data, r = n[e], i = t.currentWindow.penLoc; return ( (t.currentWindow.pendingNewLine = !0), (r = n[++e]), (i.row = 15 & r), (r = n[++e]), (i.column = 63 & r), e ); }), (Te.prototype.reset = function (e, t) { var n = this.getPts(e); return ( this.flushDisplayed(n, t), this.initService(t.serviceNum, e) ); }); var xe = { 42: 225, 92: 233, 94: 237, 95: 243, 96: 250, 123: 231, 124: 247, 125: 209, 126: 241, 127: 9608, 304: 174, 305: 176, 306: 189, 307: 191, 308: 8482, 309: 162, 310: 163, 311: 9834, 312: 224, 313: 160, 314: 232, 315: 226, 316: 234, 317: 238, 318: 244, 319: 251, 544: 193, 545: 201, 546: 211, 547: 218, 548: 220, 549: 252, 550: 8216, 551: 161, 552: 42, 553: 39, 554: 8212, 555: 169, 556: 8480, 557: 8226, 558: 8220, 559: 8221, 560: 192, 561: 194, 562: 199, 563: 200, 564: 202, 565: 203, 566: 235, 567: 206, 568: 207, 569: 239, 570: 212, 571: 217, 572: 249, 573: 219, 574: 171, 575: 187, 800: 195, 801: 227, 802: 205, 803: 204, 804: 236, 805: 210, 806: 242, 807: 213, 808: 245, 809: 123, 810: 125, 811: 92, 812: 94, 813: 95, 814: 124, 815: 126, 816: 196, 817: 228, 818: 214, 819: 246, 820: 223, 821: 165, 822: 164, 823: 9474, 824: 197, 825: 229, 826: 216, 827: 248, 828: 9484, 829: 9488, 830: 9492, 831: 9496, }, Se = function (e) { return null === e ? "" : ((e = xe[e] || e), String.fromCharCode(e)); }, ke = [ 4352, 4384, 4608, 4640, 5376, 5408, 5632, 5664, 5888, 5920, 4096, 4864, 4896, 5120, 5152, ], Ee = function () { for (var e = [], t = 15; t--; ) e.push(""); return e; }, Oe = function (e, t) { Oe.prototype.init.call(this), (this.field_ = e || 0), (this.dataChannel_ = t || 0), (this.name_ = "CC" + (1 + ((this.field_ << 1) | this.dataChannel_))), this.setConstants(), this.reset(), (this.push = function (e) { var t, n, r, i, o; if ((t = 32639 & e.ccData) !== this.lastControlCode_) { if ( (4096 == (61440 & t) ? (this.lastControlCode_ = t) : t !== this.PADDING_ && (this.lastControlCode_ = null), (r = t >>> 8), (i = 255 & t), t !== this.PADDING_) ) if (t === this.RESUME_CAPTION_LOADING_) this.mode_ = "popOn"; else if (t === this.END_OF_CAPTION_) (this.mode_ = "popOn"), this.clearFormatting(e.pts), this.flushDisplayed(e.pts), (n = this.displayed_), (this.displayed_ = this.nonDisplayed_), (this.nonDisplayed_ = n), (this.startPts_ = e.pts); else if (t === this.ROLL_UP_2_ROWS_) (this.rollUpRows_ = 2), this.setRollUp(e.pts); else if (t === this.ROLL_UP_3_ROWS_) (this.rollUpRows_ = 3), this.setRollUp(e.pts); else if (t === this.ROLL_UP_4_ROWS_) (this.rollUpRows_ = 4), this.setRollUp(e.pts); else if (t === this.CARRIAGE_RETURN_) this.clearFormatting(e.pts), this.flushDisplayed(e.pts), this.shiftRowsUp_(), (this.startPts_ = e.pts); else if (t === this.BACKSPACE_) "popOn" === this.mode_ ? (this.nonDisplayed_[this.row_] = this.nonDisplayed_[this.row_].slice(0, -1)) : (this.displayed_[this.row_] = this.displayed_[ this.row_ ].slice(0, -1)); else if (t === this.ERASE_DISPLAYED_MEMORY_) this.flushDisplayed(e.pts), (this.displayed_ = Ee()); else if (t === this.ERASE_NON_DISPLAYED_MEMORY_) this.nonDisplayed_ = Ee(); else if (t === this.RESUME_DIRECT_CAPTIONING_) "paintOn" !== this.mode_ && (this.flushDisplayed(e.pts), (this.displayed_ = Ee())), (this.mode_ = "paintOn"), (this.startPts_ = e.pts); else if (this.isSpecialCharacter(r, i)) (o = Se((r = (3 & r) << 8) | i)), this[this.mode_](e.pts, o), this.column_++; else if (this.isExtCharacter(r, i)) "popOn" === this.mode_ ? (this.nonDisplayed_[this.row_] = this.nonDisplayed_[this.row_].slice(0, -1)) : (this.displayed_[this.row_] = this.displayed_[ this.row_ ].slice(0, -1)), (o = Se((r = (3 & r) << 8) | i)), this[this.mode_](e.pts, o), this.column_++; else if (this.isMidRowCode(r, i)) this.clearFormatting(e.pts), this[this.mode_](e.pts, " "), this.column_++, 14 == (14 & i) && this.addFormatting(e.pts, ["i"]), 1 == (1 & i) && this.addFormatting(e.pts, ["u"]); else if (this.isOffsetControlCode(r, i)) this.column_ += 3 & i; else if (this.isPAC(r, i)) { var a = ke.indexOf(7968 & t); "rollUp" === this.mode_ && (a - this.rollUpRows_ + 1 < 0 && (a = this.rollUpRows_ - 1), this.setRollUp(e.pts, a)), a !== this.row_ && (this.clearFormatting(e.pts), (this.row_ = a)), 1 & i && -1 === this.formatting_.indexOf("u") && this.addFormatting(e.pts, ["u"]), 16 == (16 & t) && (this.column_ = 4 * ((14 & t) >> 1)), this.isColorPAC(i) && 14 == (14 & i) && this.addFormatting(e.pts, ["i"]); } else this.isNormalChar(r) && (0 === i && (i = null), (o = Se(r)), (o += Se(i)), this[this.mode_](e.pts, o), (this.column_ += o.length)); } else this.lastControlCode_ = null; }); }; (Oe.prototype = new ge()), (Oe.prototype.flushDisplayed = function (e) { var t = this.displayed_ .map(function (e, t) { try { return e.trim(); } catch (e) { return ( this.trigger("log", { level: "warn", message: "Skipping a malformed 608 caption at index " + t + ".", }), "" ); } }, this) .join("\n") .replace(/^\n+|\n+$/g, ""); t.length && this.trigger("data", { startPts: this.startPts_, endPts: e, text: t, stream: this.name_, }); }), (Oe.prototype.reset = function () { (this.mode_ = "popOn"), (this.topRow_ = 0), (this.startPts_ = 0), (this.displayed_ = Ee()), (this.nonDisplayed_ = Ee()), (this.lastControlCode_ = null), (this.column_ = 0), (this.row_ = 14), (this.rollUpRows_ = 2), (this.formatting_ = []); }), (Oe.prototype.setConstants = function () { 0 === this.dataChannel_ ? ((this.BASE_ = 16), (this.EXT_ = 17), (this.CONTROL_ = (20 | this.field_) << 8), (this.OFFSET_ = 23)) : 1 === this.dataChannel_ && ((this.BASE_ = 24), (this.EXT_ = 25), (this.CONTROL_ = (28 | this.field_) << 8), (this.OFFSET_ = 31)), (this.PADDING_ = 0), (this.RESUME_CAPTION_LOADING_ = 32 | this.CONTROL_), (this.END_OF_CAPTION_ = 47 | this.CONTROL_), (this.ROLL_UP_2_ROWS_ = 37 | this.CONTROL_), (this.ROLL_UP_3_ROWS_ = 38 | this.CONTROL_), (this.ROLL_UP_4_ROWS_ = 39 | this.CONTROL_), (this.CARRIAGE_RETURN_ = 45 | this.CONTROL_), (this.RESUME_DIRECT_CAPTIONING_ = 41 | this.CONTROL_), (this.BACKSPACE_ = 33 | this.CONTROL_), (this.ERASE_DISPLAYED_MEMORY_ = 44 | this.CONTROL_), (this.ERASE_NON_DISPLAYED_MEMORY_ = 46 | this.CONTROL_); }), (Oe.prototype.isSpecialCharacter = function (e, t) { return e === this.EXT_ && t >= 48 && t <= 63; }), (Oe.prototype.isExtCharacter = function (e, t) { return ( (e === this.EXT_ + 1 || e === this.EXT_ + 2) && t >= 32 && t <= 63 ); }), (Oe.prototype.isMidRowCode = function (e, t) { return e === this.EXT_ && t >= 32 && t <= 47; }), (Oe.prototype.isOffsetControlCode = function (e, t) { return e === this.OFFSET_ && t >= 33 && t <= 35; }), (Oe.prototype.isPAC = function (e, t) { return ( e >= this.BASE_ && e < this.BASE_ + 8 && t >= 64 && t <= 127 ); }), (Oe.prototype.isColorPAC = function (e) { return (e >= 64 && e <= 79) || (e >= 96 && e <= 127); }), (Oe.prototype.isNormalChar = function (e) { return e >= 32 && e <= 127; }), (Oe.prototype.setRollUp = function (e, t) { if ( ("rollUp" !== this.mode_ && ((this.row_ = 14), (this.mode_ = "rollUp"), this.flushDisplayed(e), (this.nonDisplayed_ = Ee()), (this.displayed_ = Ee())), void 0 !== t && t !== this.row_) ) for (var n = 0; n < this.rollUpRows_; n++) (this.displayed_[t - n] = this.displayed_[this.row_ - n]), (this.displayed_[this.row_ - n] = ""); void 0 === t && (t = this.row_), (this.topRow_ = t - this.rollUpRows_ + 1); }), (Oe.prototype.addFormatting = function (e, t) { this.formatting_ = this.formatting_.concat(t); var n = t.reduce(function (e, t) { return e + "<" + t + ">"; }, ""); this[this.mode_](e, n); }), (Oe.prototype.clearFormatting = function (e) { if (this.formatting_.length) { var t = this.formatting_.reverse().reduce(function (e, t) { return e + ""; }, ""); (this.formatting_ = []), this[this.mode_](e, t); } }), (Oe.prototype.popOn = function (e, t) { var n = this.nonDisplayed_[this.row_]; (n += t), (this.nonDisplayed_[this.row_] = n); }), (Oe.prototype.rollUp = function (e, t) { var n = this.displayed_[this.row_]; (n += t), (this.displayed_[this.row_] = n); }), (Oe.prototype.shiftRowsUp_ = function () { var e; for (e = 0; e < this.topRow_; e++) this.displayed_[e] = ""; for (e = this.row_ + 1; e < 15; e++) this.displayed_[e] = ""; for (e = this.topRow_; e < this.row_; e++) this.displayed_[e] = this.displayed_[e + 1]; this.displayed_[this.row_] = ""; }), (Oe.prototype.paintOn = function (e, t) { var n = this.displayed_[this.row_]; (n += t), (this.displayed_[this.row_] = n); }); var Ce = { CaptionStream: ye, Cea608Stream: Oe, Cea708Stream: Te }, Le = { H264_STREAM_TYPE: 27, ADTS_STREAM_TYPE: 15, METADATA_STREAM_TYPE: 21, }, Ae = q, Ie = "shared", Me = function (e, t) { var n = 1; for (e > t && (n = -1); Math.abs(t - e) > 4294967296; ) e += 8589934592 * n; return e; }, Pe = function (e) { var t, n; Pe.prototype.init.call(this), (this.type_ = e || Ie), (this.push = function (e) { (this.type_ !== Ie && e.type !== this.type_) || (void 0 === n && (n = e.dts), (e.dts = Me(e.dts, n)), (e.pts = Me(e.pts, n)), (t = e.dts), this.trigger("data", e)); }), (this.flush = function () { (n = t), this.trigger("done"); }), (this.endTimeline = function () { this.flush(), this.trigger("endedtimeline"); }), (this.discontinuity = function () { (n = void 0), (t = void 0); }), (this.reset = function () { this.discontinuity(), this.trigger("reset"); }); }; Pe.prototype = new Ae(); var Re, De = { TimestampRolloverStream: Pe, handleRollover: Me }, je = (e, t, n) => { if (!e) return -1; for (var r = n; r < e.length; r++) if (e[r] === t) return r; return -1; }, Ne = je, Be = 3, Ue = function (e, t, n) { var r, i = ""; for (r = t; r < n; r++) i += "%" + ("00" + e[r].toString(16)).slice(-2); return i; }, Fe = function (e, t, n) { return decodeURIComponent(Ue(e, t, n)); }, ze = function (e, t, n) { return unescape(Ue(e, t, n)); }, He = function (e) { return (e[0] << 21) | (e[1] << 14) | (e[2] << 7) | e[3]; }, qe = { APIC: function (e) { var t, n, r = 1; e.data[0] === Be && ((t = Ne(e.data, 0, r)) < 0 || ((e.mimeType = ze(e.data, r, t)), (r = t + 1), (e.pictureType = e.data[r]), r++, (n = Ne(e.data, 0, r)) < 0 || ((e.description = Fe(e.data, r, n)), (r = n + 1), "--\x3e" === e.mimeType ? (e.url = ze(e.data, r, e.data.length)) : (e.pictureData = e.data.subarray( r, e.data.length ))))); }, "T*": function (e) { e.data[0] === Be && ((e.value = Fe(e.data, 1, e.data.length).replace( /\0*$/, "" )), (e.values = e.value.split("\0"))); }, TXXX: function (e) { var t; e.data[0] === Be && -1 !== (t = Ne(e.data, 0, 1)) && ((e.description = Fe(e.data, 1, t)), (e.value = Fe(e.data, t + 1, e.data.length).replace( /\0*$/, "" )), (e.data = e.value)); }, "W*": function (e) { e.url = ze(e.data, 0, e.data.length).replace(/\0.*$/, ""); }, WXXX: function (e) { var t; e.data[0] === Be && -1 !== (t = Ne(e.data, 0, 1)) && ((e.description = Fe(e.data, 1, t)), (e.url = ze(e.data, t + 1, e.data.length).replace( /\0.*$/, "" ))); }, PRIV: function (e) { var t; for (t = 0; t < e.data.length; t++) if (0 === e.data[t]) { e.owner = ze(e.data, 0, t); break; } (e.privateData = e.data.subarray(t + 1)), (e.data = e.privateData); }, }, Ze = { parseId3Frames: function (e) { var t, n = 10, r = 0, i = []; if ( !( e.length < 10 || e[0] !== "I".charCodeAt(0) || e[1] !== "D".charCodeAt(0) || e[2] !== "3".charCodeAt(0) ) ) { (r = He(e.subarray(6, 10))), (r += 10), 64 & e[5] && ((n += 4), (n += He(e.subarray(10, 14))), (r -= He(e.subarray(16, 20)))); do { if ((t = He(e.subarray(n + 4, n + 8))) < 1) break; var o = { id: String.fromCharCode( e[n], e[n + 1], e[n + 2], e[n + 3] ), data: e.subarray(n + 10, n + t + 10), }; (o.key = o.id), qe[o.id] ? qe[o.id](o) : "T" === o.id[0] ? qe["T*"](o) : "W" === o.id[0] && qe["W*"](o), i.push(o), (n += 10), (n += t); } while (n < r); return i; } }, parseSyncSafeInteger: He, frameParsers: qe, }, Ve = Le, We = Ze; (Re = function (e) { var t, n = { descriptor: e && e.descriptor }, r = 0, i = [], o = 0; if ( (Re.prototype.init.call(this), (this.dispatchType = Ve.METADATA_STREAM_TYPE.toString(16)), n.descriptor) ) for (t = 0; t < n.descriptor.length; t++) this.dispatchType += ( "00" + n.descriptor[t].toString(16) ).slice(-2); this.push = function (e) { var t, n, a, s, u; if ("timed-metadata" === e.type) if ( (e.dataAlignmentIndicator && ((o = 0), (i.length = 0)), 0 === i.length && (e.data.length < 10 || e.data[0] !== "I".charCodeAt(0) || e.data[1] !== "D".charCodeAt(0) || e.data[2] !== "3".charCodeAt(0))) ) this.trigger("log", { level: "warn", message: "Skipping unrecognized metadata packet", }); else if ( (i.push(e), (o += e.data.byteLength), 1 === i.length && ((r = We.parseSyncSafeInteger(e.data.subarray(6, 10))), (r += 10)), !(o < r)) ) { for ( t = { data: new Uint8Array(r), frames: [], pts: i[0].pts, dts: i[0].dts, }, u = 0; u < r; ) t.data.set(i[0].data.subarray(0, r - u), u), (u += i[0].data.byteLength), (o -= i[0].data.byteLength), i.shift(); (n = 10), 64 & t.data[5] && ((n += 4), (n += We.parseSyncSafeInteger(t.data.subarray(10, 14))), (r -= We.parseSyncSafeInteger( t.data.subarray(16, 20) ))); do { if ( (a = We.parseSyncSafeInteger( t.data.subarray(n + 4, n + 8) )) < 1 ) { this.trigger("log", { level: "warn", message: "Malformed ID3 frame encountered. Skipping remaining metadata parsing.", }); break; } if ( (((s = { id: String.fromCharCode( t.data[n], t.data[n + 1], t.data[n + 2], t.data[n + 3] ), data: t.data.subarray(n + 10, n + a + 10), }).key = s.id), We.frameParsers[s.id] ? We.frameParsers[s.id](s) : "T" === s.id[0] ? We.frameParsers["T*"](s) : "W" === s.id[0] && We.frameParsers["W*"](s), "com.apple.streaming.transportStreamTimestamp" === s.owner) ) { var c = s.data, l = ((1 & c[3]) << 30) | (c[4] << 22) | (c[5] << 14) | (c[6] << 6) | (c[7] >>> 2); (l *= 4), (l += 3 & c[7]), (s.timeStamp = l), void 0 === t.pts && void 0 === t.dts && ((t.pts = s.timeStamp), (t.dts = s.timeStamp)), this.trigger("timestamp", s); } t.frames.push(s), (n += 10), (n += a); } while (n < r); this.trigger("data", t); } }; }).prototype = new q(); var $e, Ge, Ye, Ke = Re, Xe = q, Qe = Ce, Je = Le, et = De.TimestampRolloverStream, tt = 188; (($e = function () { var e = new Uint8Array(tt), t = 0; $e.prototype.init.call(this), (this.push = function (n) { var r, i = 0, o = tt; for ( t ? ((r = new Uint8Array(n.byteLength + t)).set( e.subarray(0, t) ), r.set(n, t), (t = 0)) : (r = n); o < r.byteLength; ) 71 !== r[i] || 71 !== r[o] ? (i++, o++) : (this.trigger("data", r.subarray(i, o)), (i += tt), (o += tt)); i < r.byteLength && (e.set(r.subarray(i), 0), (t = r.byteLength - i)); }), (this.flush = function () { t === tt && 71 === e[0] && (this.trigger("data", e), (t = 0)), this.trigger("done"); }), (this.endTimeline = function () { this.flush(), this.trigger("endedtimeline"); }), (this.reset = function () { (t = 0), this.trigger("reset"); }); }).prototype = new Xe()), (Ge = function () { var e, t, n, r; Ge.prototype.init.call(this), (r = this), (this.packetsWaitingForPmt = []), (this.programMapTable = void 0), (e = function (e, r) { var i = 0; r.payloadUnitStartIndicator && (i += e[i] + 1), "pat" === r.type ? t(e.subarray(i), r) : n(e.subarray(i), r); }), (t = function (e, t) { (t.section_number = e[7]), (t.last_section_number = e[8]), (r.pmtPid = ((31 & e[10]) << 8) | e[11]), (t.pmtPid = r.pmtPid); }), (n = function (e, t) { var n, i; if (1 & e[5]) { for ( r.programMapTable = { video: null, audio: null, "timed-metadata": {}, }, n = 3 + (((15 & e[1]) << 8) | e[2]) - 4, i = 12 + (((15 & e[10]) << 8) | e[11]); i < n; ) { var o = e[i], a = ((31 & e[i + 1]) << 8) | e[i + 2]; o === Je.H264_STREAM_TYPE && null === r.programMapTable.video ? (r.programMapTable.video = a) : o === Je.ADTS_STREAM_TYPE && null === r.programMapTable.audio ? (r.programMapTable.audio = a) : o === Je.METADATA_STREAM_TYPE && (r.programMapTable["timed-metadata"][a] = o), (i += 5 + (((15 & e[i + 3]) << 8) | e[i + 4])); } t.programMapTable = r.programMapTable; } }), (this.push = function (t) { var n = {}, r = 4; if ( ((n.payloadUnitStartIndicator = !!(64 & t[1])), (n.pid = 31 & t[1]), (n.pid <<= 8), (n.pid |= t[2]), (48 & t[3]) >>> 4 > 1 && (r += t[r] + 1), 0 === n.pid) ) (n.type = "pat"), e(t.subarray(r), n), this.trigger("data", n); else if (n.pid === this.pmtPid) for ( n.type = "pmt", e(t.subarray(r), n), this.trigger("data", n); this.packetsWaitingForPmt.length; ) this.processPes_.apply( this, this.packetsWaitingForPmt.shift() ); else void 0 === this.programMapTable ? this.packetsWaitingForPmt.push([t, r, n]) : this.processPes_(t, r, n); }), (this.processPes_ = function (e, t, n) { n.pid === this.programMapTable.video ? (n.streamType = Je.H264_STREAM_TYPE) : n.pid === this.programMapTable.audio ? (n.streamType = Je.ADTS_STREAM_TYPE) : (n.streamType = this.programMapTable["timed-metadata"][n.pid]), (n.type = "pes"), (n.data = e.subarray(t)), this.trigger("data", n); }); }), (Ge.prototype = new Xe()), (Ge.STREAM_TYPES = { h264: 27, adts: 15 }), (Ye = function () { var e, t = this, n = !1, r = { data: [], size: 0 }, i = { data: [], size: 0 }, o = { data: [], size: 0 }, a = function (e, n, r) { var i, o, a = new Uint8Array(e.size), s = { type: n }, u = 0, c = 0; if (e.data.length && !(e.size < 9)) { for ( s.trackId = e.data[0].pid, u = 0; u < e.data.length; u++ ) (o = e.data[u]), a.set(o.data, c), (c += o.data.byteLength); !(function (e, t) { var n; const r = (e[0] << 16) | (e[1] << 8) | e[2]; (t.data = new Uint8Array()), 1 === r && ((t.packetLength = 6 + ((e[4] << 8) | e[5])), (t.dataAlignmentIndicator = 0 != (4 & e[6])), 192 & (n = e[7]) && ((t.pts = ((14 & e[9]) << 27) | ((255 & e[10]) << 20) | ((254 & e[11]) << 12) | ((255 & e[12]) << 5) | ((254 & e[13]) >>> 3)), (t.pts *= 4), (t.pts += (6 & e[13]) >>> 1), (t.dts = t.pts), 64 & n && ((t.dts = ((14 & e[14]) << 27) | ((255 & e[15]) << 20) | ((254 & e[16]) << 12) | ((255 & e[17]) << 5) | ((254 & e[18]) >>> 3)), (t.dts *= 4), (t.dts += (6 & e[18]) >>> 1))), (t.data = e.subarray(9 + e[8]))); })(a, s), (i = "video" === n || s.packetLength <= e.size), (r || i) && ((e.size = 0), (e.data.length = 0)), i && t.trigger("data", s); } }; Ye.prototype.init.call(this), (this.push = function (s) { ({ pat: function () {}, pes: function () { var e, t; switch (s.streamType) { case Je.H264_STREAM_TYPE: (e = r), (t = "video"); break; case Je.ADTS_STREAM_TYPE: (e = i), (t = "audio"); break; case Je.METADATA_STREAM_TYPE: (e = o), (t = "timed-metadata"); break; default: return; } s.payloadUnitStartIndicator && a(e, t, !0), e.data.push(s), (e.size += s.data.byteLength); }, pmt: function () { var r = { type: "metadata", tracks: [] }; null !== (e = s.programMapTable).video && r.tracks.push({ timelineStartInfo: { baseMediaDecodeTime: 0 }, id: +e.video, codec: "avc", type: "video", }), null !== e.audio && r.tracks.push({ timelineStartInfo: { baseMediaDecodeTime: 0 }, id: +e.audio, codec: "adts", type: "audio", }), (n = !0), t.trigger("data", r); }, })[s.type](); }), (this.reset = function () { (r.size = 0), (r.data.length = 0), (i.size = 0), (i.data.length = 0), this.trigger("reset"); }), (this.flushStreams_ = function () { a(r, "video"), a(i, "audio"), a(o, "timed-metadata"); }), (this.flush = function () { if (!n && e) { var r = { type: "metadata", tracks: [] }; null !== e.video && r.tracks.push({ timelineStartInfo: { baseMediaDecodeTime: 0 }, id: +e.video, codec: "avc", type: "video", }), null !== e.audio && r.tracks.push({ timelineStartInfo: { baseMediaDecodeTime: 0 }, id: +e.audio, codec: "adts", type: "audio", }), t.trigger("data", r); } (n = !1), this.flushStreams_(), this.trigger("done"); }); }), (Ye.prototype = new Xe()); var nt = { PAT_PID: 0, MP2T_PACKET_LENGTH: tt, TransportPacketStream: $e, TransportParseStream: Ge, ElementaryStream: Ye, TimestampRolloverStream: et, CaptionStream: Qe.CaptionStream, Cea608Stream: Qe.Cea608Stream, Cea708Stream: Qe.Cea708Stream, MetadataStream: Ke, }; for (var rt in Je) Je.hasOwnProperty(rt) && (nt[rt] = Je[rt]); var it, ot = nt, at = ue.ONE_SECOND_IN_TS, st = [ 96e3, 88200, 64e3, 48e3, 44100, 32e3, 24e3, 22050, 16e3, 12e3, 11025, 8e3, 7350, ]; (it = function (e) { var t, n = 0; it.prototype.init.call(this), (this.skipWarn_ = function (e, t) { this.trigger("log", { level: "warn", message: `adts skiping bytes ${e} to ${t} in frame ${n} outside syncword`, }); }), (this.push = function (r) { var i, o, a, s, u, c = 0; if ((e || (n = 0), "audio" === r.type)) { var l; for ( t && t.length ? ((a = t), (t = new Uint8Array( a.byteLength + r.data.byteLength )).set(a), t.set(r.data, a.byteLength)) : (t = r.data); c + 7 < t.length; ) if (255 === t[c] && 240 == (246 & t[c + 1])) { if ( ("number" == typeof l && (this.skipWarn_(l, c), (l = null)), (o = 2 * (1 & ~t[c + 1])), (i = ((3 & t[c + 3]) << 11) | (t[c + 4] << 3) | ((224 & t[c + 5]) >> 5)), (u = ((s = 1024 * (1 + (3 & t[c + 6]))) * at) / st[(60 & t[c + 2]) >>> 2]), t.byteLength - c < i) ) break; this.trigger("data", { pts: r.pts + n * u, dts: r.dts + n * u, sampleCount: s, audioobjecttype: 1 + ((t[c + 2] >>> 6) & 3), channelcount: ((1 & t[c + 2]) << 2) | ((192 & t[c + 3]) >>> 6), samplerate: st[(60 & t[c + 2]) >>> 2], samplingfrequencyindex: (60 & t[c + 2]) >>> 2, samplesize: 16, data: t.subarray(c + 7 + o, c + i), }), n++, (c += i); } else "number" != typeof l && (l = c), c++; "number" == typeof l && (this.skipWarn_(l, c), (l = null)), (t = t.subarray(c)); } }), (this.flush = function () { (n = 0), this.trigger("done"); }), (this.reset = function () { (t = void 0), this.trigger("reset"); }), (this.endTimeline = function () { (t = void 0), this.trigger("endedtimeline"); }); }).prototype = new q(); var ut, ct, lt, ft = it, dt = q, pt = function (e) { var t = e.byteLength, n = 0, r = 0; (this.length = function () { return 8 * t; }), (this.bitsAvailable = function () { return 8 * t + r; }), (this.loadWord = function () { var i = e.byteLength - t, o = new Uint8Array(4), a = Math.min(4, t); if (0 === a) throw new Error("no bytes available"); o.set(e.subarray(i, i + a)), (n = new DataView(o.buffer).getUint32(0)), (r = 8 * a), (t -= a); }), (this.skipBits = function (e) { var i; r > e ? ((n <<= e), (r -= e)) : ((e -= r), (e -= 8 * (i = Math.floor(e / 8))), (t -= i), this.loadWord(), (n <<= e), (r -= e)); }), (this.readBits = function (e) { var i = Math.min(r, e), o = n >>> (32 - i); return ( (r -= i) > 0 ? (n <<= i) : t > 0 && this.loadWord(), (i = e - i) > 0 ? (o << i) | this.readBits(i) : o ); }), (this.skipLeadingZeros = function () { var e; for (e = 0; e < r; ++e) if (0 != (n & (2147483648 >>> e))) return (n <<= e), (r -= e), e; return this.loadWord(), e + this.skipLeadingZeros(); }), (this.skipUnsignedExpGolomb = function () { this.skipBits(1 + this.skipLeadingZeros()); }), (this.skipExpGolomb = function () { this.skipBits(1 + this.skipLeadingZeros()); }), (this.readUnsignedExpGolomb = function () { var e = this.skipLeadingZeros(); return this.readBits(e + 1) - 1; }), (this.readExpGolomb = function () { var e = this.readUnsignedExpGolomb(); return 1 & e ? (1 + e) >>> 1 : -1 * (e >>> 1); }), (this.readBoolean = function () { return 1 === this.readBits(1); }), (this.readUnsignedByte = function () { return this.readBits(8); }), this.loadWord(); }; ((ct = function () { var e, t, n = 0; ct.prototype.init.call(this), (this.push = function (r) { var i; t ? ((i = new Uint8Array( t.byteLength + r.data.byteLength )).set(t), i.set(r.data, t.byteLength), (t = i)) : (t = r.data); for (var o = t.byteLength; n < o - 3; n++) if (1 === t[n + 2]) { e = n + 5; break; } for (; e < o; ) switch (t[e]) { case 0: if (0 !== t[e - 1]) { e += 2; break; } if (0 !== t[e - 2]) { e++; break; } n + 3 !== e - 2 && this.trigger("data", t.subarray(n + 3, e - 2)); do { e++; } while (1 !== t[e] && e < o); (n = e - 2), (e += 3); break; case 1: if (0 !== t[e - 1] || 0 !== t[e - 2]) { e += 3; break; } this.trigger("data", t.subarray(n + 3, e - 2)), (n = e - 2), (e += 3); break; default: e += 3; } (t = t.subarray(n)), (e -= n), (n = 0); }), (this.reset = function () { (t = null), (n = 0), this.trigger("reset"); }), (this.flush = function () { t && t.byteLength > 3 && this.trigger("data", t.subarray(n + 3)), (t = null), (n = 0), this.trigger("done"); }), (this.endTimeline = function () { this.flush(), this.trigger("endedtimeline"); }); }).prototype = new dt()), (lt = { 100: !0, 110: !0, 122: !0, 244: !0, 44: !0, 83: !0, 86: !0, 118: !0, 128: !0, 138: !0, 139: !0, 134: !0, }), (ut = function () { var e, t, n, r, i, o, a, s = new ct(); ut.prototype.init.call(this), (e = this), (this.push = function (e) { "video" === e.type && ((t = e.trackId), (n = e.pts), (r = e.dts), s.push(e)); }), s.on("data", function (a) { var s = { trackId: t, pts: n, dts: r, data: a, nalUnitTypeCode: 31 & a[0], }; switch (s.nalUnitTypeCode) { case 5: s.nalUnitType = "slice_layer_without_partitioning_rbsp_idr"; break; case 6: (s.nalUnitType = "sei_rbsp"), (s.escapedRBSP = i(a.subarray(1))); break; case 7: (s.nalUnitType = "seq_parameter_set_rbsp"), (s.escapedRBSP = i(a.subarray(1))), (s.config = o(s.escapedRBSP)); break; case 8: s.nalUnitType = "pic_parameter_set_rbsp"; break; case 9: s.nalUnitType = "access_unit_delimiter_rbsp"; } e.trigger("data", s); }), s.on("done", function () { e.trigger("done"); }), s.on("partialdone", function () { e.trigger("partialdone"); }), s.on("reset", function () { e.trigger("reset"); }), s.on("endedtimeline", function () { e.trigger("endedtimeline"); }), (this.flush = function () { s.flush(); }), (this.partialFlush = function () { s.partialFlush(); }), (this.reset = function () { s.reset(); }), (this.endTimeline = function () { s.endTimeline(); }), (a = function (e, t) { var n, r = 8, i = 8; for (n = 0; n < e; n++) 0 !== i && (i = (r + t.readExpGolomb() + 256) % 256), (r = 0 === i ? r : i); }), (i = function (e) { for (var t, n, r = e.byteLength, i = [], o = 1; o < r - 2; ) 0 === e[o] && 0 === e[o + 1] && 3 === e[o + 2] ? (i.push(o + 2), (o += 2)) : o++; if (0 === i.length) return e; (t = r - i.length), (n = new Uint8Array(t)); var a = 0; for (o = 0; o < t; a++, o++) a === i[0] && (a++, i.shift()), (n[o] = e[a]); return n; }), (o = function (e) { var t, n, r, i, o, s, u, c, l, f, d, p, h = 0, g = 0, m = 0, y = 0, v = [1, 1]; if ( ((n = (t = new pt(e)).readUnsignedByte()), (i = t.readUnsignedByte()), (r = t.readUnsignedByte()), t.skipUnsignedExpGolomb(), lt[n] && (3 === (o = t.readUnsignedExpGolomb()) && t.skipBits(1), t.skipUnsignedExpGolomb(), t.skipUnsignedExpGolomb(), t.skipBits(1), t.readBoolean())) ) for (d = 3 !== o ? 8 : 12, p = 0; p < d; p++) t.readBoolean() && a(p < 6 ? 16 : 64, t); if ( (t.skipUnsignedExpGolomb(), 0 === (s = t.readUnsignedExpGolomb())) ) t.readUnsignedExpGolomb(); else if (1 === s) for ( t.skipBits(1), t.skipExpGolomb(), t.skipExpGolomb(), u = t.readUnsignedExpGolomb(), p = 0; p < u; p++ ) t.skipExpGolomb(); if ( (t.skipUnsignedExpGolomb(), t.skipBits(1), (c = t.readUnsignedExpGolomb()), (l = t.readUnsignedExpGolomb()), 0 === (f = t.readBits(1)) && t.skipBits(1), t.skipBits(1), t.readBoolean() && ((h = t.readUnsignedExpGolomb()), (g = t.readUnsignedExpGolomb()), (m = t.readUnsignedExpGolomb()), (y = t.readUnsignedExpGolomb())), t.readBoolean() && t.readBoolean()) ) { switch (t.readUnsignedByte()) { case 1: v = [1, 1]; break; case 2: v = [12, 11]; break; case 3: v = [10, 11]; break; case 4: v = [16, 11]; break; case 5: v = [40, 33]; break; case 6: v = [24, 11]; break; case 7: v = [20, 11]; break; case 8: v = [32, 11]; break; case 9: v = [80, 33]; break; case 10: v = [18, 11]; break; case 11: v = [15, 11]; break; case 12: v = [64, 33]; break; case 13: v = [160, 99]; break; case 14: v = [4, 3]; break; case 15: v = [3, 2]; break; case 16: v = [2, 1]; break; case 255: v = [ (t.readUnsignedByte() << 8) | t.readUnsignedByte(), (t.readUnsignedByte() << 8) | t.readUnsignedByte(), ]; } v && (v[0], v[1]); } return { profileIdc: n, levelIdc: r, profileCompatibility: i, width: 16 * (c + 1) - 2 * h - 2 * g, height: (2 - f) * (l + 1) * 16 - 2 * m - 2 * y, sarRatio: v, }; }); }), (ut.prototype = new dt()); var ht, gt = { H264Stream: ut, NalByteStream: ct }, mt = [ 96e3, 88200, 64e3, 48e3, 44100, 32e3, 24e3, 22050, 16e3, 12e3, 11025, 8e3, 7350, ], yt = function (e, t) { var n = (e[t + 6] << 21) | (e[t + 7] << 14) | (e[t + 8] << 7) | e[t + 9]; return ( (n = n >= 0 ? n : 0), (16 & e[t + 5]) >> 4 ? n + 20 : n + 10 ); }, vt = function (e, t) { return e.length - t < 10 || e[t] !== "I".charCodeAt(0) || e[t + 1] !== "D".charCodeAt(0) || e[t + 2] !== "3".charCodeAt(0) ? t : ((t += yt(e, t)), vt(e, t)); }, bt = function (e) { return (e[0] << 21) | (e[1] << 14) | (e[2] << 7) | e[3]; }, _t = { isLikelyAacData: function (e) { var t = vt(e, 0); return ( e.length >= t + 2 && 255 == (255 & e[t]) && 240 == (240 & e[t + 1]) && 16 == (22 & e[t + 1]) ); }, parseId3TagSize: yt, parseAdtsSize: function (e, t) { var n = (224 & e[t + 5]) >> 5, r = e[t + 4] << 3; return (6144 & e[t + 3]) | r | n; }, parseType: function (e, t) { return e[t] === "I".charCodeAt(0) && e[t + 1] === "D".charCodeAt(0) && e[t + 2] === "3".charCodeAt(0) ? "timed-metadata" : !0 & e[t] && 240 == (240 & e[t + 1]) ? "audio" : null; }, parseSampleRate: function (e) { for (var t = 0; t + 5 < e.length; ) { if (255 === e[t] && 240 == (246 & e[t + 1])) return mt[(60 & e[t + 2]) >>> 2]; t++; } return null; }, parseAacTimestamp: function (e) { var t, n, r; (t = 10), 64 & e[5] && ((t += 4), (t += bt(e.subarray(10, 14)))); do { if ((n = bt(e.subarray(t + 4, t + 8))) < 1) return null; if ( "PRIV" === String.fromCharCode(e[t], e[t + 1], e[t + 2], e[t + 3]) ) { r = e.subarray(t + 10, t + n + 10); for (var i = 0; i < r.byteLength; i++) if (0 === r[i]) { var o = unescape( (function (e, t, n) { var r, i = ""; for (r = t; r < n; r++) i += "%" + ("00" + e[r].toString(16)).slice(-2); return i; })(r, 0, i) ); if ( "com.apple.streaming.transportStreamTimestamp" === o ) { var a = r.subarray(i + 1), s = ((1 & a[3]) << 30) | (a[4] << 22) | (a[5] << 14) | (a[6] << 6) | (a[7] >>> 2); return (s *= 4), (s += 3 & a[7]); } break; } } (t += 10), (t += n); } while (t < e.byteLength); return null; }, }, wt = _t; (ht = function () { var e = new Uint8Array(), t = 0; ht.prototype.init.call(this), (this.setTimestamp = function (e) { t = e; }), (this.push = function (n) { var r, i, o, a, s = 0, u = 0; for ( e.length ? ((a = e.length), (e = new Uint8Array(n.byteLength + a)).set( e.subarray(0, a) ), e.set(n, a)) : (e = n); e.length - u >= 3; ) if ( e[u] !== "I".charCodeAt(0) || e[u + 1] !== "D".charCodeAt(0) || e[u + 2] !== "3".charCodeAt(0) ) if (255 != (255 & e[u]) || 240 != (240 & e[u + 1])) u++; else { if (e.length - u < 7) break; if (u + (s = wt.parseAdtsSize(e, u)) > e.length) break; (o = { type: "audio", data: e.subarray(u, u + s), pts: t, dts: t, }), this.trigger("data", o), (u += s); } else { if (e.length - u < 10) break; if (u + (s = wt.parseId3TagSize(e, u)) > e.length) break; (i = { type: "timed-metadata", data: e.subarray(u, u + s), }), this.trigger("data", i), (u += s); } (r = e.length - u), (e = r > 0 ? e.subarray(u) : new Uint8Array()); }), (this.reset = function () { (e = new Uint8Array()), this.trigger("reset"); }), (this.endTimeline = function () { (e = new Uint8Array()), this.trigger("endedtimeline"); }); }).prototype = new q(); var Tt, xt, St, kt, Et = q, Ot = te, Ct = re, Lt = fe, At = pe, It = ot, Mt = ue, Pt = ft, Rt = gt.H264Stream, Dt = ht, jt = _t.isLikelyAacData, Nt = ue.ONE_SECOND_IN_TS, Bt = [ "audioobjecttype", "channelcount", "samplerate", "samplingfrequencyindex", "samplesize", ], Ut = [ "width", "height", "profileIdc", "levelIdc", "profileCompatibility", "sarRatio", ], Ft = function (e, t) { (t.stream = e), this.trigger("log", t); }, zt = function (e, t) { for (var n = Object.keys(t), r = 0; r < n.length; r++) { var i = n[r]; "headOfPipeline" !== i && t[i].on && t[i].on("log", Ft.bind(e, i)); } }, Ht = function (e, t) { var n; if (e.length !== t.length) return !1; for (n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1; return !0; }, qt = function (e, t, n, r, i, o) { return { start: { dts: e, pts: e + (n - t) }, end: { dts: e + (r - t), pts: e + (i - n) }, prependedContentDuration: o, baseMediaDecodeTime: e, }; }; (xt = function (e, t) { var n, r = [], i = 0, o = 0, a = 1 / 0; (n = (t = t || {}).firstSequenceNumber || 0), xt.prototype.init.call(this), (this.push = function (t) { At.collectDtsInfo(e, t), e && Bt.forEach(function (n) { e[n] = t[n]; }), r.push(t); }), (this.setEarliestDts = function (e) { i = e; }), (this.setVideoBaseMediaDecodeTime = function (e) { a = e; }), (this.setAudioAppendStart = function (e) { o = e; }), (this.flush = function () { var s, u, c, l, f, d, p; 0 !== r.length ? ((s = Lt.trimAdtsFramesByEarliestDts(r, e, i)), (e.baseMediaDecodeTime = At.calculateTrackBaseMediaDecodeTime( e, t.keepOriginalTimestamps )), (p = Lt.prefixWithSilence(e, s, o, a)), (e.samples = Lt.generateSampleTable(s)), (c = Ot.mdat(Lt.concatenateFrameData(s))), (r = []), (u = Ot.moof(n, [e])), (l = new Uint8Array(u.byteLength + c.byteLength)), n++, l.set(u), l.set(c, u.byteLength), At.clearDtsInfo(e), (f = Math.ceil((1024 * Nt) / e.samplerate)), s.length && ((d = s.length * f), this.trigger( "segmentTimingInfo", qt( Mt.audioTsToVideoTs( e.baseMediaDecodeTime, e.samplerate ), s[0].dts, s[0].pts, s[0].dts + d, s[0].pts + d, p || 0 ) ), this.trigger("timingInfo", { start: s[0].pts, end: s[0].pts + d, })), this.trigger("data", { track: e, boxes: l }), this.trigger("done", "AudioSegmentStream")) : this.trigger("done", "AudioSegmentStream"); }), (this.reset = function () { At.clearDtsInfo(e), (r = []), this.trigger("reset"); }); }), (xt.prototype = new Et()), (Tt = function (e, t) { var n, r, i, o = [], a = []; (n = (t = t || {}).firstSequenceNumber || 0), Tt.prototype.init.call(this), delete e.minPTS, (this.gopCache_ = []), (this.push = function (t) { At.collectDtsInfo(e, t), "seq_parameter_set_rbsp" !== t.nalUnitType || r || ((r = t.config), (e.sps = [t.data]), Ut.forEach(function (t) { e[t] = r[t]; }, this)), "pic_parameter_set_rbsp" !== t.nalUnitType || i || ((i = t.data), (e.pps = [t.data])), o.push(t); }), (this.flush = function () { for ( var r, i, s, u, c, l, f, d, p = 0; o.length && "access_unit_delimiter_rbsp" !== o[0].nalUnitType; ) o.shift(); if (0 === o.length) return ( this.resetStream_(), void this.trigger("done", "VideoSegmentStream") ); if ( ((r = Ct.groupNalsIntoFrames(o)), (s = Ct.groupFramesIntoGops(r))[0][0].keyFrame || ((i = this.getGopForFusion_(o[0], e)) ? ((p = i.duration), s.unshift(i), (s.byteLength += i.byteLength), (s.nalCount += i.nalCount), (s.pts = i.pts), (s.dts = i.dts), (s.duration += i.duration)) : (s = Ct.extendFirstKeyFrame(s))), a.length) ) { var h; if ( !(h = t.alignGopsAtEnd ? this.alignGopsAtEnd_(s) : this.alignGopsAtStart_(s)) ) return ( this.gopCache_.unshift({ gop: s.pop(), pps: e.pps, sps: e.sps, }), (this.gopCache_.length = Math.min( 6, this.gopCache_.length )), (o = []), this.resetStream_(), void this.trigger("done", "VideoSegmentStream") ); At.clearDtsInfo(e), (s = h); } At.collectDtsInfo(e, s), (e.samples = Ct.generateSampleTable(s)), (c = Ot.mdat(Ct.concatenateNalData(s))), (e.baseMediaDecodeTime = At.calculateTrackBaseMediaDecodeTime( e, t.keepOriginalTimestamps )), this.trigger( "processedGopsInfo", s.map(function (e) { return { pts: e.pts, dts: e.dts, byteLength: e.byteLength, }; }) ), (f = s[0]), (d = s[s.length - 1]), this.trigger( "segmentTimingInfo", qt( e.baseMediaDecodeTime, f.dts, f.pts, d.dts + d.duration, d.pts + d.duration, p ) ), this.trigger("timingInfo", { start: s[0].pts, end: s[s.length - 1].pts + s[s.length - 1].duration, }), this.gopCache_.unshift({ gop: s.pop(), pps: e.pps, sps: e.sps, }), (this.gopCache_.length = Math.min( 6, this.gopCache_.length )), (o = []), this.trigger( "baseMediaDecodeTime", e.baseMediaDecodeTime ), this.trigger("timelineStartInfo", e.timelineStartInfo), (u = Ot.moof(n, [e])), (l = new Uint8Array(u.byteLength + c.byteLength)), n++, l.set(u), l.set(c, u.byteLength), this.trigger("data", { track: e, boxes: l }), this.resetStream_(), this.trigger("done", "VideoSegmentStream"); }), (this.reset = function () { this.resetStream_(), (o = []), (this.gopCache_.length = 0), (a.length = 0), this.trigger("reset"); }), (this.resetStream_ = function () { At.clearDtsInfo(e), (r = void 0), (i = void 0); }), (this.getGopForFusion_ = function (t) { var n, r, i, o, a, s = 1 / 0; for (a = 0; a < this.gopCache_.length; a++) (i = (o = this.gopCache_[a]).gop), e.pps && Ht(e.pps[0], o.pps[0]) && e.sps && Ht(e.sps[0], o.sps[0]) && (i.dts < e.timelineStartInfo.dts || ((n = t.dts - i.dts - i.duration) >= -1e4 && n <= 45e3 && (!r || s > n) && ((r = o), (s = n)))); return r ? r.gop : null; }), (this.alignGopsAtStart_ = function (e) { var t, n, r, i, o, s, u, c; for ( o = e.byteLength, s = e.nalCount, u = e.duration, t = n = 0; t < a.length && n < e.length && ((r = a[t]), (i = e[n]), r.pts !== i.pts); ) i.pts > r.pts ? t++ : (n++, (o -= i.byteLength), (s -= i.nalCount), (u -= i.duration)); return 0 === n ? e : n === e.length ? null : (((c = e.slice(n)).byteLength = o), (c.duration = u), (c.nalCount = s), (c.pts = c[0].pts), (c.dts = c[0].dts), c); }), (this.alignGopsAtEnd_ = function (e) { var t, n, r, i, o, s, u; for ( t = a.length - 1, n = e.length - 1, o = null, s = !1; t >= 0 && n >= 0; ) { if (((r = a[t]), (i = e[n]), r.pts === i.pts)) { s = !0; break; } r.pts > i.pts ? t-- : (t === a.length - 1 && (o = n), n--); } if (!s && null === o) return null; if (0 === (u = s ? n : o)) return e; var c = e.slice(u), l = c.reduce( function (e, t) { return ( (e.byteLength += t.byteLength), (e.duration += t.duration), (e.nalCount += t.nalCount), e ); }, { byteLength: 0, duration: 0, nalCount: 0 } ); return ( (c.byteLength = l.byteLength), (c.duration = l.duration), (c.nalCount = l.nalCount), (c.pts = c[0].pts), (c.dts = c[0].dts), c ); }), (this.alignGopsWith = function (e) { a = e; }); }), (Tt.prototype = new Et()), (kt = function (e, t) { (this.numberOfTracks = 0), (this.metadataStream = t), void 0 !== (e = e || {}).remux ? (this.remuxTracks = !!e.remux) : (this.remuxTracks = !0), "boolean" == typeof e.keepOriginalTimestamps ? (this.keepOriginalTimestamps = e.keepOriginalTimestamps) : (this.keepOriginalTimestamps = !1), (this.pendingTracks = []), (this.videoTrack = null), (this.pendingBoxes = []), (this.pendingCaptions = []), (this.pendingMetadata = []), (this.pendingBytes = 0), (this.emittedTracks = 0), kt.prototype.init.call(this), (this.push = function (e) { return e.text ? this.pendingCaptions.push(e) : e.frames ? this.pendingMetadata.push(e) : (this.pendingTracks.push(e.track), (this.pendingBytes += e.boxes.byteLength), "video" === e.track.type && ((this.videoTrack = e.track), this.pendingBoxes.push(e.boxes)), void ( "audio" === e.track.type && ((this.audioTrack = e.track), this.pendingBoxes.unshift(e.boxes)) )); }); }), (kt.prototype = new Et()), (kt.prototype.flush = function (e) { var t, n, r, i, o = 0, a = { captions: [], captionStreams: {}, metadata: [], info: {}, }, s = 0; if (this.pendingTracks.length < this.numberOfTracks) { if ("VideoSegmentStream" !== e && "AudioSegmentStream" !== e) return; if (this.remuxTracks) return; if (0 === this.pendingTracks.length) return ( this.emittedTracks++, void ( this.emittedTracks >= this.numberOfTracks && (this.trigger("done"), (this.emittedTracks = 0)) ) ); } if ( (this.videoTrack ? ((s = this.videoTrack.timelineStartInfo.pts), Ut.forEach(function (e) { a.info[e] = this.videoTrack[e]; }, this)) : this.audioTrack && ((s = this.audioTrack.timelineStartInfo.pts), Bt.forEach(function (e) { a.info[e] = this.audioTrack[e]; }, this)), this.videoTrack || this.audioTrack) ) { for ( 1 === this.pendingTracks.length ? (a.type = this.pendingTracks[0].type) : (a.type = "combined"), this.emittedTracks += this.pendingTracks.length, r = Ot.initSegment(this.pendingTracks), a.initSegment = new Uint8Array(r.byteLength), a.initSegment.set(r), a.data = new Uint8Array(this.pendingBytes), i = 0; i < this.pendingBoxes.length; i++ ) a.data.set(this.pendingBoxes[i], o), (o += this.pendingBoxes[i].byteLength); for (i = 0; i < this.pendingCaptions.length; i++) ((t = this.pendingCaptions[i]).startTime = Mt.metadataTsToSeconds( t.startPts, s, this.keepOriginalTimestamps )), (t.endTime = Mt.metadataTsToSeconds( t.endPts, s, this.keepOriginalTimestamps )), (a.captionStreams[t.stream] = !0), a.captions.push(t); for (i = 0; i < this.pendingMetadata.length; i++) ((n = this.pendingMetadata[i]).cueTime = Mt.metadataTsToSeconds( n.pts, s, this.keepOriginalTimestamps )), a.metadata.push(n); for ( a.metadata.dispatchType = this.metadataStream.dispatchType, this.pendingTracks.length = 0, this.videoTrack = null, this.pendingBoxes.length = 0, this.pendingCaptions.length = 0, this.pendingBytes = 0, this.pendingMetadata.length = 0, this.trigger("data", a), i = 0; i < a.captions.length; i++ ) (t = a.captions[i]), this.trigger("caption", t); for (i = 0; i < a.metadata.length; i++) (n = a.metadata[i]), this.trigger("id3Frame", n); } this.emittedTracks >= this.numberOfTracks && (this.trigger("done"), (this.emittedTracks = 0)); }), (kt.prototype.setRemux = function (e) { this.remuxTracks = e; }), ((St = function (e) { var t, n, r = this, i = !0; St.prototype.init.call(this), (e = e || {}), (this.baseMediaDecodeTime = e.baseMediaDecodeTime || 0), (this.transmuxPipeline_ = {}), (this.setupAacPipeline = function () { var i = {}; (this.transmuxPipeline_ = i), (i.type = "aac"), (i.metadataStream = new It.MetadataStream()), (i.aacStream = new Dt()), (i.audioTimestampRolloverStream = new It.TimestampRolloverStream("audio")), (i.timedMetadataTimestampRolloverStream = new It.TimestampRolloverStream("timed-metadata")), (i.adtsStream = new Pt()), (i.coalesceStream = new kt(e, i.metadataStream)), (i.headOfPipeline = i.aacStream), i.aacStream .pipe(i.audioTimestampRolloverStream) .pipe(i.adtsStream), i.aacStream .pipe(i.timedMetadataTimestampRolloverStream) .pipe(i.metadataStream) .pipe(i.coalesceStream), i.metadataStream.on("timestamp", function (e) { i.aacStream.setTimestamp(e.timeStamp); }), i.aacStream.on("data", function (o) { ("timed-metadata" !== o.type && "audio" !== o.type) || i.audioSegmentStream || ((n = n || { timelineStartInfo: { baseMediaDecodeTime: r.baseMediaDecodeTime, }, codec: "adts", type: "audio", }), i.coalesceStream.numberOfTracks++, (i.audioSegmentStream = new xt(n, e)), i.audioSegmentStream.on( "log", r.getLogTrigger_("audioSegmentStream") ), i.audioSegmentStream.on( "timingInfo", r.trigger.bind(r, "audioTimingInfo") ), i.adtsStream .pipe(i.audioSegmentStream) .pipe(i.coalesceStream), r.trigger("trackinfo", { hasAudio: !!n, hasVideo: !!t, })); }), i.coalesceStream.on( "data", this.trigger.bind(this, "data") ), i.coalesceStream.on( "done", this.trigger.bind(this, "done") ), zt(this, i); }), (this.setupTsPipeline = function () { var i = {}; (this.transmuxPipeline_ = i), (i.type = "ts"), (i.metadataStream = new It.MetadataStream()), (i.packetStream = new It.TransportPacketStream()), (i.parseStream = new It.TransportParseStream()), (i.elementaryStream = new It.ElementaryStream()), (i.timestampRolloverStream = new It.TimestampRolloverStream()), (i.adtsStream = new Pt()), (i.h264Stream = new Rt()), (i.captionStream = new It.CaptionStream(e)), (i.coalesceStream = new kt(e, i.metadataStream)), (i.headOfPipeline = i.packetStream), i.packetStream .pipe(i.parseStream) .pipe(i.elementaryStream) .pipe(i.timestampRolloverStream), i.timestampRolloverStream.pipe(i.h264Stream), i.timestampRolloverStream.pipe(i.adtsStream), i.timestampRolloverStream .pipe(i.metadataStream) .pipe(i.coalesceStream), i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream), i.elementaryStream.on("data", function (o) { var a; if ("metadata" === o.type) { for (a = o.tracks.length; a--; ) t || "video" !== o.tracks[a].type ? n || "audio" !== o.tracks[a].type || ((n = o.tracks[ a ]).timelineStartInfo.baseMediaDecodeTime = r.baseMediaDecodeTime) : ((t = o.tracks[ a ]).timelineStartInfo.baseMediaDecodeTime = r.baseMediaDecodeTime); t && !i.videoSegmentStream && (i.coalesceStream.numberOfTracks++, (i.videoSegmentStream = new Tt(t, e)), i.videoSegmentStream.on( "log", r.getLogTrigger_("videoSegmentStream") ), i.videoSegmentStream.on( "timelineStartInfo", function (t) { n && !e.keepOriginalTimestamps && ((n.timelineStartInfo = t), i.audioSegmentStream.setEarliestDts( t.dts - r.baseMediaDecodeTime )); } ), i.videoSegmentStream.on( "processedGopsInfo", r.trigger.bind(r, "gopInfo") ), i.videoSegmentStream.on( "segmentTimingInfo", r.trigger.bind(r, "videoSegmentTimingInfo") ), i.videoSegmentStream.on( "baseMediaDecodeTime", function (e) { n && i.audioSegmentStream.setVideoBaseMediaDecodeTime( e ); } ), i.videoSegmentStream.on( "timingInfo", r.trigger.bind(r, "videoTimingInfo") ), i.h264Stream .pipe(i.videoSegmentStream) .pipe(i.coalesceStream)), n && !i.audioSegmentStream && (i.coalesceStream.numberOfTracks++, (i.audioSegmentStream = new xt(n, e)), i.audioSegmentStream.on( "log", r.getLogTrigger_("audioSegmentStream") ), i.audioSegmentStream.on( "timingInfo", r.trigger.bind(r, "audioTimingInfo") ), i.audioSegmentStream.on( "segmentTimingInfo", r.trigger.bind(r, "audioSegmentTimingInfo") ), i.adtsStream .pipe(i.audioSegmentStream) .pipe(i.coalesceStream)), r.trigger("trackinfo", { hasAudio: !!n, hasVideo: !!t, }); } }), i.coalesceStream.on( "data", this.trigger.bind(this, "data") ), i.coalesceStream.on("id3Frame", function (e) { (e.dispatchType = i.metadataStream.dispatchType), r.trigger("id3Frame", e); }), i.coalesceStream.on( "caption", this.trigger.bind(this, "caption") ), i.coalesceStream.on( "done", this.trigger.bind(this, "done") ), zt(this, i); }), (this.setBaseMediaDecodeTime = function (r) { var i = this.transmuxPipeline_; e.keepOriginalTimestamps || (this.baseMediaDecodeTime = r), n && ((n.timelineStartInfo.dts = void 0), (n.timelineStartInfo.pts = void 0), At.clearDtsInfo(n), i.audioTimestampRolloverStream && i.audioTimestampRolloverStream.discontinuity()), t && (i.videoSegmentStream && (i.videoSegmentStream.gopCache_ = []), (t.timelineStartInfo.dts = void 0), (t.timelineStartInfo.pts = void 0), At.clearDtsInfo(t), i.captionStream.reset()), i.timestampRolloverStream && i.timestampRolloverStream.discontinuity(); }), (this.setAudioAppendStart = function (e) { n && this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart( e ); }), (this.setRemux = function (t) { var n = this.transmuxPipeline_; (e.remux = t), n && n.coalesceStream && n.coalesceStream.setRemux(t); }), (this.alignGopsWith = function (e) { t && this.transmuxPipeline_.videoSegmentStream && this.transmuxPipeline_.videoSegmentStream.alignGopsWith( e ); }), (this.getLogTrigger_ = function (e) { var t = this; return function (n) { (n.stream = e), t.trigger("log", n); }; }), (this.push = function (e) { if (i) { var t = jt(e); t && "aac" !== this.transmuxPipeline_.type ? this.setupAacPipeline() : t || "ts" === this.transmuxPipeline_.type || this.setupTsPipeline(), (i = !1); } this.transmuxPipeline_.headOfPipeline.push(e); }), (this.flush = function () { (i = !0), this.transmuxPipeline_.headOfPipeline.flush(); }), (this.endTimeline = function () { this.transmuxPipeline_.headOfPipeline.endTimeline(); }), (this.reset = function () { this.transmuxPipeline_.headOfPipeline && this.transmuxPipeline_.headOfPipeline.reset(); }), (this.resetCaptions = function () { this.transmuxPipeline_.captionStream && this.transmuxPipeline_.captionStream.reset(); }); }).prototype = new Et()); var Zt, Vt, Wt, $t, Gt = { Transmuxer: St, VideoSegmentStream: Tt, AudioSegmentStream: xt, AUDIO_PROPERTIES: Bt, VIDEO_PROPERTIES: Ut, generateSegmentTimingInfo: qt, }, Yt = function (e) { return e >>> 0; }, Kt = function (e) { var t = ""; return ( (t += String.fromCharCode(e[0])), (t += String.fromCharCode(e[1])), (t += String.fromCharCode(e[2])), (t += String.fromCharCode(e[3])) ); }, Xt = Yt, Qt = Kt, Jt = function (e, t) { var n, r, i, o, a, s = []; if (!t.length) return null; for (n = 0; n < e.byteLength; ) (r = Xt( (e[n] << 24) | (e[n + 1] << 16) | (e[n + 2] << 8) | e[n + 3] )), (i = Qt(e.subarray(n + 4, n + 8))), (o = r > 1 ? n + r : e.byteLength), i === t[0] && (1 === t.length ? s.push(e.subarray(n + 8, o)) : (a = Jt(e.subarray(n + 8, o), t.slice(1))).length && (s = s.concat(a))), (n = o); return s; }, en = Yt, tn = V.getUint64, nn = function (e) { var t = { version: e[0], flags: new Uint8Array(e.subarray(1, 4)), }; return ( 1 === t.version ? (t.baseMediaDecodeTime = tn(e.subarray(4))) : (t.baseMediaDecodeTime = en( (e[4] << 24) | (e[5] << 16) | (e[6] << 8) | e[7] )), t ); }, rn = function (e) { return { isLeading: (12 & e[0]) >>> 2, dependsOn: 3 & e[0], isDependedOn: (192 & e[1]) >>> 6, hasRedundancy: (48 & e[1]) >>> 4, paddingValue: (14 & e[1]) >>> 1, isNonSyncSample: 1 & e[1], degradationPriority: (e[2] << 8) | e[3], }; }, on = function (e) { var t, n = { version: e[0], flags: new Uint8Array(e.subarray(1, 4)), samples: [], }, r = new DataView(e.buffer, e.byteOffset, e.byteLength), i = 1 & n.flags[2], o = 4 & n.flags[2], a = 1 & n.flags[1], s = 2 & n.flags[1], u = 4 & n.flags[1], c = 8 & n.flags[1], l = r.getUint32(4), f = 8; for ( i && ((n.dataOffset = r.getInt32(f)), (f += 4)), o && l && ((t = { flags: rn(e.subarray(f, f + 4)) }), (f += 4), a && ((t.duration = r.getUint32(f)), (f += 4)), s && ((t.size = r.getUint32(f)), (f += 4)), c && (1 === n.version ? (t.compositionTimeOffset = r.getInt32(f)) : (t.compositionTimeOffset = r.getUint32(f)), (f += 4)), n.samples.push(t), l--); l--; ) (t = {}), a && ((t.duration = r.getUint32(f)), (f += 4)), s && ((t.size = r.getUint32(f)), (f += 4)), u && ((t.flags = rn(e.subarray(f, f + 4))), (f += 4)), c && (1 === n.version ? (t.compositionTimeOffset = r.getInt32(f)) : (t.compositionTimeOffset = r.getUint32(f)), (f += 4)), n.samples.push(t); return n; }, an = function (e) { var t, n = new DataView(e.buffer, e.byteOffset, e.byteLength), r = { version: e[0], flags: new Uint8Array(e.subarray(1, 4)), trackId: n.getUint32(4), }, i = 1 & r.flags[2], o = 2 & r.flags[2], a = 8 & r.flags[2], s = 16 & r.flags[2], u = 32 & r.flags[2], c = 65536 & r.flags[0], l = 131072 & r.flags[0]; return ( (t = 8), i && ((t += 4), (r.baseDataOffset = n.getUint32(12)), (t += 4)), o && ((r.sampleDescriptionIndex = n.getUint32(t)), (t += 4)), a && ((r.defaultSampleDuration = n.getUint32(t)), (t += 4)), s && ((r.defaultSampleSize = n.getUint32(t)), (t += 4)), u && (r.defaultSampleFlags = n.getUint32(t)), c && (r.durationIsEmpty = !0), !i && l && (r.baseDataOffsetIsMoof = !0), r ); }, sn = ((Zt = "undefined" != typeof window ? window : void 0 !== e ? e : "undefined" != typeof self ? self : {}), he.discardEmulationPreventionBytes), un = Ce.CaptionStream, cn = Jt, ln = nn, fn = on, dn = an, pn = Zt, hn = function (e, t) { for (var n = e, r = 0; r < t.length; r++) { var i = t[r]; if (n < i.size) return i; n -= i.size; } return null; }, gn = function (e, t) { var n = cn(e, ["moof", "traf"]), r = cn(e, ["mdat"]), i = {}, o = []; return ( r.forEach(function (e, t) { var r = n[t]; o.push({ mdat: e, traf: r }); }), o.forEach(function (e) { var n, r, o = e.mdat, a = e.traf, s = cn(a, ["tfhd"]), u = dn(s[0]), c = u.trackId, l = cn(a, ["tfdt"]), f = l.length > 0 ? ln(l[0]).baseMediaDecodeTime : 0, d = cn(a, ["trun"]); t === c && d.length > 0 && ((n = (function (e, t, n) { var r = t, i = n.defaultSampleDuration || 0, o = n.defaultSampleSize || 0, a = n.trackId, s = []; return ( e.forEach(function (e) { var t = fn(e).samples; t.forEach(function (e) { void 0 === e.duration && (e.duration = i), void 0 === e.size && (e.size = o), (e.trackId = a), (e.dts = r), void 0 === e.compositionTimeOffset && (e.compositionTimeOffset = 0), "bigint" == typeof r ? ((e.pts = r + pn.BigInt(e.compositionTimeOffset)), (r += pn.BigInt(e.duration))) : ((e.pts = r + e.compositionTimeOffset), (r += e.duration)); }), (s = s.concat(t)); }), s ); })(d, f, u)), (r = (function (e, t, n) { var r, i, o, a, s = new DataView( e.buffer, e.byteOffset, e.byteLength ), u = { logs: [], seiNals: [] }; for (i = 0; i + 4 < e.length; i += o) if (((o = s.getUint32(i)), (i += 4), !(o <= 0))) switch (31 & e[i]) { case 6: var c = e.subarray(i + 1, i + 1 + o), l = hn(i, t); if ( ((r = { nalUnitType: "sei_rbsp", size: o, data: c, escapedRBSP: sn(c), trackId: n, }), l) ) (r.pts = l.pts), (r.dts = l.dts), (a = l); else { if (!a) { u.logs.push({ level: "warn", message: "We've encountered a nal unit without data at " + i + " for trackId " + n + ". See mux.js#223.", }); break; } (r.pts = a.pts), (r.dts = a.dts); } u.seiNals.push(r); } return u; })(o, n, c)), i[c] || (i[c] = { seiNals: [], logs: [] }), (i[c].seiNals = i[c].seiNals.concat(r.seiNals)), (i[c].logs = i[c].logs.concat(r.logs))); }), i ); }, mn = function () { var e, t, n, r, i, o, a = !1; (this.isInitialized = function () { return a; }), (this.init = function (t) { (e = new un()), (a = !0), (o = !!t && t.isPartial), e.on("data", function (e) { (e.startTime = e.startPts / r), (e.endTime = e.endPts / r), i.captions.push(e), (i.captionStreams[e.stream] = !0); }), e.on("log", function (e) { i.logs.push(e); }); }), (this.isNewInit = function (e, t) { return ( !( (e && 0 === e.length) || (t && "object" == typeof t && 0 === Object.keys(t).length) ) && (n !== e[0] || r !== t[n]) ); }), (this.parse = function (e, o, a) { var s; if (!this.isInitialized()) return null; if (!o || !a) return null; if (this.isNewInit(o, a)) (n = o[0]), (r = a[n]); else if (null === n || !r) return t.push(e), null; for (; t.length > 0; ) { var u = t.shift(); this.parse(u, o, a); } return ( (s = (function (e, t, n) { if (null === t) return null; var r = gn(e, t)[t] || {}; return { seiNals: r.seiNals, logs: r.logs, timescale: n, }; })(e, n, r)), s && s.logs && (i.logs = i.logs.concat(s.logs)), null !== s && s.seiNals ? (this.pushNals(s.seiNals), this.flushStream(), i) : i.logs.length ? { logs: i.logs, captions: [], captionStreams: [] } : null ); }), (this.pushNals = function (t) { if (!this.isInitialized() || !t || 0 === t.length) return null; t.forEach(function (t) { e.push(t); }); }), (this.flushStream = function () { if (!this.isInitialized()) return null; o ? e.partialFlush() : e.flush(); }), (this.clearParsedCaptions = function () { (i.captions = []), (i.captionStreams = {}), (i.logs = []); }), (this.resetCaptionStream = function () { if (!this.isInitialized()) return null; e.reset(); }), (this.clearAllCaptions = function () { this.clearParsedCaptions(), this.resetCaptionStream(); }), (this.reset = function () { (t = []), (n = null), (r = null), i ? this.clearParsedCaptions() : (i = { captions: [], captionStreams: {}, logs: [] }), this.resetCaptionStream(); }), this.reset(); }, yn = function (e) { for ( var t = 0, n = String.fromCharCode(e[t]), r = ""; "\0" !== n; ) (r += n), t++, (n = String.fromCharCode(e[t])); return (r += n); }, vn = V.getUint64, bn = function (e, t) { var n = "\0" !== t.scheme_id_uri, r = 0 === e && _n(t.presentation_time_delta) && n, i = 1 === e && _n(t.presentation_time) && n; return (!(e > 1) && r) || i; }, _n = function (e) { return void 0 !== e || null !== e; }, wn = { parseEmsgBox: function (e) { var t, n, r, i, o, a, s, u = 4, c = e[0]; if (0 === c) (u += (t = yn(e.subarray(u))).length), (u += (n = yn(e.subarray(u))).length), (r = (l = new DataView(e.buffer)).getUint32(u)), (u += 4), (o = l.getUint32(u)), (u += 4), (a = l.getUint32(u)), (u += 4), (s = l.getUint32(u)), (u += 4); else if (1 === c) { var l; (r = (l = new DataView(e.buffer)).getUint32(u)), (u += 4), (i = vn(e.subarray(u))), (u += 8), (a = l.getUint32(u)), (u += 4), (s = l.getUint32(u)), (u += 4), (u += (t = yn(e.subarray(u))).length), (u += (n = yn(e.subarray(u))).length); } var f = { scheme_id_uri: t, value: n, timescale: r || 1, presentation_time: i, presentation_time_delta: o, event_duration: a, id: s, message_data: new Uint8Array(e.subarray(u, e.byteLength)), }; return bn(c, f) ? f : void 0; }, scaleTime: function (e, t, n, r) { return e || 0 === e ? e / t : r + n / t; }, }, Tn = Yt, xn = function (e) { return ("00" + e.toString(16)).slice(-2); }, Sn = Jt, kn = Kt, En = wn, On = an, Cn = on, Ln = nn, An = V.getUint64, In = Zt, Mn = Ze.parseId3Frames; (Vt = function (e, t) { var n = Sn(t, ["moof", "traf"]).reduce(function (t, n) { var r, i = Sn(n, ["tfhd"])[0], o = Tn((i[4] << 24) | (i[5] << 16) | (i[6] << 8) | i[7]), a = e[o] || 9e4, s = Sn(n, ["tfdt"])[0], u = new DataView(s.buffer, s.byteOffset, s.byteLength); let c; return ( "bigint" == typeof (r = 1 === s[0] ? An(s.subarray(4, 12)) : u.getUint32(4)) ? (c = r / In.BigInt(a)) : "number" != typeof r || isNaN(r) || (c = r / a), c < Number.MAX_SAFE_INTEGER && (c = Number(c)), c < t && (t = c), t ); }, 1 / 0); return "bigint" == typeof n || isFinite(n) ? n : 0; }), ($t = function (e) { var t = 0 === e[0] ? 12 : 20; return Tn( (e[t] << 24) | (e[t + 1] << 16) | (e[t + 2] << 8) | e[t + 3] ); }), (Wt = function (e) { var t = Sn(e, ["moov", "trak"]), n = []; return ( t.forEach(function (e) { var t, r, i = {}, o = Sn(e, ["tkhd"])[0]; o && ((r = (t = new DataView( o.buffer, o.byteOffset, o.byteLength )).getUint8(0)), (i.id = 0 === r ? t.getUint32(12) : t.getUint32(20))); var a = Sn(e, ["mdia", "hdlr"])[0]; if (a) { var s = kn(a.subarray(8, 12)); i.type = "vide" === s ? "video" : "soun" === s ? "audio" : s; } var u = Sn(e, ["mdia", "minf", "stbl", "stsd"])[0]; if (u) { var c = u.subarray(8); i.codec = kn(c.subarray(4, 8)); var l, f = Sn(c, [i.codec])[0]; f && (/^[asm]vc[1-9]$/i.test(i.codec) ? ((l = f.subarray(78)), "avcC" === kn(l.subarray(4, 8)) && l.length > 11 ? ((i.codec += "."), (i.codec += xn(l[9])), (i.codec += xn(l[10])), (i.codec += xn(l[11]))) : (i.codec = "avc1.4d400d")) : /^mp4[a,v]$/i.test(i.codec) ? ((l = f.subarray(28)), "esds" === kn(l.subarray(4, 8)) && l.length > 20 && 0 !== l[19] ? ((i.codec += "." + xn(l[19])), (i.codec += "." + xn((l[20] >>> 2) & 63).replace(/^0/, ""))) : (i.codec = "mp4a.40.2")) : (i.codec = i.codec.toLowerCase())); } var d = Sn(e, ["mdia", "mdhd"])[0]; d && (i.timescale = $t(d)), n.push(i); }), n ); }); var Pn = Vt, Rn = Wt, Dn = Le, jn = function (e) { var t = 31 & e[1]; return (t <<= 8), (t |= e[2]); }, Nn = function (e) { return !!(64 & e[1]); }, Bn = function (e) { var t = 0; return (48 & e[3]) >>> 4 > 1 && (t += e[4] + 1), t; }, Un = function (e) { switch (e) { case 5: return "slice_layer_without_partitioning_rbsp_idr"; case 6: return "sei_rbsp"; case 7: return "seq_parameter_set_rbsp"; case 8: return "pic_parameter_set_rbsp"; case 9: return "access_unit_delimiter_rbsp"; default: return null; } }, Fn = { parseType: function (e, t) { var n = jn(e); return 0 === n ? "pat" : n === t ? "pmt" : t ? "pes" : null; }, parsePat: function (e) { var t = Nn(e), n = 4 + Bn(e); return ( t && (n += e[n] + 1), ((31 & e[n + 10]) << 8) | e[n + 11] ); }, parsePmt: function (e) { var t = {}, n = Nn(e), r = 4 + Bn(e); if ((n && (r += e[r] + 1), 1 & e[r + 5])) { var i; i = 3 + (((15 & e[r + 1]) << 8) | e[r + 2]) - 4; for ( var o = 12 + (((15 & e[r + 10]) << 8) | e[r + 11]); o < i; ) { var a = r + o; (t[((31 & e[a + 1]) << 8) | e[a + 2]] = e[a]), (o += 5 + (((15 & e[a + 3]) << 8) | e[a + 4])); } return t; } }, parsePayloadUnitStartIndicator: Nn, parsePesType: function (e, t) { switch (t[jn(e)]) { case Dn.H264_STREAM_TYPE: return "video"; case Dn.ADTS_STREAM_TYPE: return "audio"; case Dn.METADATA_STREAM_TYPE: return "timed-metadata"; default: return null; } }, parsePesTime: function (e) { if (!Nn(e)) return null; var t = 4 + Bn(e); if (t >= e.byteLength) return null; var n, r = null; return ( 192 & (n = e[t + 7]) && (((r = {}).pts = ((14 & e[t + 9]) << 27) | ((255 & e[t + 10]) << 20) | ((254 & e[t + 11]) << 12) | ((255 & e[t + 12]) << 5) | ((254 & e[t + 13]) >>> 3)), (r.pts *= 4), (r.pts += (6 & e[t + 13]) >>> 1), (r.dts = r.pts), 64 & n && ((r.dts = ((14 & e[t + 14]) << 27) | ((255 & e[t + 15]) << 20) | ((254 & e[t + 16]) << 12) | ((255 & e[t + 17]) << 5) | ((254 & e[t + 18]) >>> 3)), (r.dts *= 4), (r.dts += (6 & e[t + 18]) >>> 1))), r ); }, videoPacketContainsKeyFrame: function (e) { for ( var t = 4 + Bn(e), n = e.subarray(t), r = 0, i = 0, o = !1; i < n.byteLength - 3; i++ ) if (1 === n[i + 2]) { r = i + 5; break; } for (; r < n.byteLength; ) switch (n[r]) { case 0: if (0 !== n[r - 1]) { r += 2; break; } if (0 !== n[r - 2]) { r++; break; } i + 3 !== r - 2 && "slice_layer_without_partitioning_rbsp_idr" === Un(31 & n[i + 3]) && (o = !0); do { r++; } while (1 !== n[r] && r < n.length); (i = r - 2), (r += 3); break; case 1: if (0 !== n[r - 1] || 0 !== n[r - 2]) { r += 3; break; } "slice_layer_without_partitioning_rbsp_idr" === Un(31 & n[i + 3]) && (o = !0), (i = r - 2), (r += 3); break; default: r += 3; } return ( (n = n.subarray(i)), (r -= i), (i = 0), n && n.byteLength > 3 && "slice_layer_without_partitioning_rbsp_idr" === Un(31 & n[i + 3]) && (o = !0), o ); }, }, zn = Le, Hn = De.handleRollover, qn = {}; (qn.ts = Fn), (qn.aac = _t); var Zn = ue.ONE_SECOND_IN_TS, Vn = 188, Wn = 71, $n = function (e, t, n) { for (var r, i, o, a, s = 0, u = Vn, c = !1; u <= e.byteLength; ) if (e[s] !== Wn || (e[u] !== Wn && u !== e.byteLength)) s++, u++; else { if ( ((r = e.subarray(s, u)), "pes" === qn.ts.parseType(r, t.pid)) ) (i = qn.ts.parsePesType(r, t.table)), (o = qn.ts.parsePayloadUnitStartIndicator(r)), "audio" === i && o && (a = qn.ts.parsePesTime(r)) && ((a.type = "audio"), n.audio.push(a), (c = !0)); if (c) break; (s += Vn), (u += Vn); } for (s = (u = e.byteLength) - Vn, c = !1; s >= 0; ) if (e[s] !== Wn || (e[u] !== Wn && u !== e.byteLength)) s--, u--; else { if ( ((r = e.subarray(s, u)), "pes" === qn.ts.parseType(r, t.pid)) ) (i = qn.ts.parsePesType(r, t.table)), (o = qn.ts.parsePayloadUnitStartIndicator(r)), "audio" === i && o && (a = qn.ts.parsePesTime(r)) && ((a.type = "audio"), n.audio.push(a), (c = !0)); if (c) break; (s -= Vn), (u -= Vn); } }, Gn = function (e, t, n) { for ( var r, i, o, a, s, u, c, l = 0, f = Vn, d = !1, p = { data: [], size: 0 }; f < e.byteLength; ) if (e[l] !== Wn || e[f] !== Wn) l++, f++; else { if ( ((r = e.subarray(l, f)), "pes" === qn.ts.parseType(r, t.pid)) ) if ( ((i = qn.ts.parsePesType(r, t.table)), (o = qn.ts.parsePayloadUnitStartIndicator(r)), "video" === i && (o && !d && (a = qn.ts.parsePesTime(r)) && ((a.type = "video"), n.video.push(a), (d = !0)), !n.firstKeyFrame)) ) { if (o && 0 !== p.size) { for ( s = new Uint8Array(p.size), u = 0; p.data.length; ) (c = p.data.shift()), s.set(c, u), (u += c.byteLength); if (qn.ts.videoPacketContainsKeyFrame(s)) { var h = qn.ts.parsePesTime(s); h ? ((n.firstKeyFrame = h), (n.firstKeyFrame.type = "video")) : console.warn( "Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself." ); } p.size = 0; } p.data.push(r), (p.size += r.byteLength); } if (d && n.firstKeyFrame) break; (l += Vn), (f += Vn); } for (l = (f = e.byteLength) - Vn, d = !1; l >= 0; ) if (e[l] !== Wn || e[f] !== Wn) l--, f--; else { if ( ((r = e.subarray(l, f)), "pes" === qn.ts.parseType(r, t.pid)) ) (i = qn.ts.parsePesType(r, t.table)), (o = qn.ts.parsePayloadUnitStartIndicator(r)), "video" === i && o && (a = qn.ts.parsePesTime(r)) && ((a.type = "video"), n.video.push(a), (d = !0)); if (d) break; (l -= Vn), (f -= Vn); } }, Yn = function (e) { var t = { pid: null, table: null }, n = {}; for (var r in ((function (e, t) { for (var n, r = 0, i = Vn; i < e.byteLength; ) if (e[r] !== Wn || e[i] !== Wn) r++, i++; else { switch ( ((n = e.subarray(r, i)), qn.ts.parseType(n, t.pid)) ) { case "pat": t.pid = qn.ts.parsePat(n); break; case "pmt": var o = qn.ts.parsePmt(n); (t.table = t.table || {}), Object.keys(o).forEach(function (e) { t.table[e] = o[e]; }); } (r += Vn), (i += Vn); } })(e, t), t.table)) { if (t.table.hasOwnProperty(r)) switch (t.table[r]) { case zn.H264_STREAM_TYPE: (n.video = []), Gn(e, t, n), 0 === n.video.length && delete n.video; break; case zn.ADTS_STREAM_TYPE: (n.audio = []), $n(e, t, n), 0 === n.audio.length && delete n.audio; } } return n; }, Kn = function (e, t) { var n; return ( (n = qn.aac.isLikelyAacData(e) ? (function (e) { for ( var t, n = !1, r = 0, i = null, o = null, a = 0, s = 0; e.length - s >= 3; ) { switch (qn.aac.parseType(e, s)) { case "timed-metadata": if (e.length - s < 10) { n = !0; break; } if ( (a = qn.aac.parseId3TagSize(e, s)) > e.length ) { n = !0; break; } null === o && ((t = e.subarray(s, s + a)), (o = qn.aac.parseAacTimestamp(t))), (s += a); break; case "audio": if (e.length - s < 7) { n = !0; break; } if ((a = qn.aac.parseAdtsSize(e, s)) > e.length) { n = !0; break; } null === i && ((t = e.subarray(s, s + a)), (i = qn.aac.parseSampleRate(t))), r++, (s += a); break; default: s++; } if (n) return null; } if (null === i || null === o) return null; var u = Zn / i; return { audio: [ { type: "audio", dts: o, pts: o }, { type: "audio", dts: o + 1024 * r * u, pts: o + 1024 * r * u, }, ], }; })(e) : Yn(e)), n && (n.audio || n.video) ? ((function (e, t) { if (e.audio && e.audio.length) { var n = t; (void 0 === n || isNaN(n)) && (n = e.audio[0].dts), e.audio.forEach(function (e) { (e.dts = Hn(e.dts, n)), (e.pts = Hn(e.pts, n)), (e.dtsTime = e.dts / Zn), (e.ptsTime = e.pts / Zn); }); } if (e.video && e.video.length) { var r = t; if ( ((void 0 === r || isNaN(r)) && (r = e.video[0].dts), e.video.forEach(function (e) { (e.dts = Hn(e.dts, r)), (e.pts = Hn(e.pts, r)), (e.dtsTime = e.dts / Zn), (e.ptsTime = e.pts / Zn); }), e.firstKeyFrame) ) { var i = e.firstKeyFrame; (i.dts = Hn(i.dts, r)), (i.pts = Hn(i.pts, r)), (i.dtsTime = i.dts / Zn), (i.ptsTime = i.pts / Zn); } } })(n, t), n) : null ); }; class Xn { constructor(e, t) { (this.options = t || {}), (this.self = e), this.init(); } init() { this.transmuxer && this.transmuxer.dispose(), (this.transmuxer = new Gt.Transmuxer(this.options)), (function (e, t) { t.on("data", function (t) { const n = t.initSegment; t.initSegment = { data: n.buffer, byteOffset: n.byteOffset, byteLength: n.byteLength, }; const r = t.data; (t.data = r.buffer), e.postMessage( { action: "data", segment: t, byteOffset: r.byteOffset, byteLength: r.byteLength, }, [t.data] ); }), t.on("done", function (t) { e.postMessage({ action: "done" }); }), t.on("gopInfo", function (t) { e.postMessage({ action: "gopInfo", gopInfo: t }); }), t.on("videoSegmentTimingInfo", function (t) { const n = { start: { decode: ue.videoTsToSeconds(t.start.dts), presentation: ue.videoTsToSeconds(t.start.pts), }, end: { decode: ue.videoTsToSeconds(t.end.dts), presentation: ue.videoTsToSeconds(t.end.pts), }, baseMediaDecodeTime: ue.videoTsToSeconds( t.baseMediaDecodeTime ), }; t.prependedContentDuration && (n.prependedContentDuration = ue.videoTsToSeconds( t.prependedContentDuration )), e.postMessage({ action: "videoSegmentTimingInfo", videoSegmentTimingInfo: n, }); }), t.on("audioSegmentTimingInfo", function (t) { const n = { start: { decode: ue.videoTsToSeconds(t.start.dts), presentation: ue.videoTsToSeconds(t.start.pts), }, end: { decode: ue.videoTsToSeconds(t.end.dts), presentation: ue.videoTsToSeconds(t.end.pts), }, baseMediaDecodeTime: ue.videoTsToSeconds( t.baseMediaDecodeTime ), }; t.prependedContentDuration && (n.prependedContentDuration = ue.videoTsToSeconds( t.prependedContentDuration )), e.postMessage({ action: "audioSegmentTimingInfo", audioSegmentTimingInfo: n, }); }), t.on("id3Frame", function (t) { e.postMessage({ action: "id3Frame", id3Frame: t }); }), t.on("caption", function (t) { e.postMessage({ action: "caption", caption: t }); }), t.on("trackinfo", function (t) { e.postMessage({ action: "trackinfo", trackInfo: t }); }), t.on("audioTimingInfo", function (t) { e.postMessage({ action: "audioTimingInfo", audioTimingInfo: { start: ue.videoTsToSeconds(t.start), end: ue.videoTsToSeconds(t.end), }, }); }), t.on("videoTimingInfo", function (t) { e.postMessage({ action: "videoTimingInfo", videoTimingInfo: { start: ue.videoTsToSeconds(t.start), end: ue.videoTsToSeconds(t.end), }, }); }), t.on("log", function (t) { e.postMessage({ action: "log", log: t }); }); })(this.self, this.transmuxer); } pushMp4Captions(e) { this.captionParser || ((this.captionParser = new mn()), this.captionParser.init()); const t = new Uint8Array(e.data, e.byteOffset, e.byteLength), n = this.captionParser.parse(t, e.trackIds, e.timescales); this.self.postMessage( { action: "mp4Captions", captions: (n && n.captions) || [], logs: (n && n.logs) || [], data: t.buffer, }, [t.buffer] ); } probeMp4StartTime({ timescales: e, data: t }) { const n = Pn(e, t); this.self.postMessage( { action: "probeMp4StartTime", startTime: n, data: t }, [t.buffer] ); } probeMp4Tracks({ data: e }) { const t = Rn(e); this.self.postMessage( { action: "probeMp4Tracks", tracks: t, data: e }, [e.buffer] ); } probeTs({ data: e, baseStartTime: t }) { const n = "number" != typeof t || isNaN(t) ? void 0 : t * ue.ONE_SECOND_IN_TS, r = Kn(e, n); let i = null; r && ((i = { hasVideo: (r.video && 2 === r.video.length) || !1, hasAudio: (r.audio && 2 === r.audio.length) || !1, }), i.hasVideo && (i.videoStart = r.video[0].ptsTime), i.hasAudio && (i.audioStart = r.audio[0].ptsTime)), this.self.postMessage( { action: "probeTs", result: i, data: e }, [e.buffer] ); } clearAllMp4Captions() { this.captionParser && this.captionParser.clearAllCaptions(); } clearParsedMp4Captions() { this.captionParser && this.captionParser.clearParsedCaptions(); } push(e) { const t = new Uint8Array(e.data, e.byteOffset, e.byteLength); this.transmuxer.push(t); } reset() { this.transmuxer.reset(); } setTimestampOffset(e) { const t = e.timestampOffset || 0; this.transmuxer.setBaseMediaDecodeTime( Math.round(ue.secondsToVideoTs(t)) ); } setAudioAppendStart(e) { this.transmuxer.setAudioAppendStart( Math.ceil(ue.secondsToVideoTs(e.appendStart)) ); } setRemux(e) { this.transmuxer.setRemux(e.remux); } flush(e) { this.transmuxer.flush(), self.postMessage({ action: "done", type: "transmuxed" }); } endTimeline() { this.transmuxer.endTimeline(), self.postMessage({ action: "endedtimeline", type: "transmuxed", }); } alignGopsWith(e) { this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice()); } } self.onmessage = function (e) { "init" === e.data.action && e.data.options ? (this.messageHandlers = new Xn(self, e.data.options)) : (this.messageHandlers || (this.messageHandlers = new Xn(self)), e.data && e.data.action && "init" !== e.data.action && this.messageHandlers[e.data.action] && this.messageHandlers[e.data.action](e.data)); }; }) ); var Ys = Vs(Gs); const Ks = (e) => { const { transmuxer: t, bytes: n, audioAppendStart: r, gopsToAlignWith: i, remux: o, onData: a, onTrackInfo: s, onAudioTimingInfo: u, onVideoTimingInfo: c, onVideoSegmentTimingInfo: l, onAudioSegmentTimingInfo: f, onId3: d, onCaptions: p, onDone: h, onEndedTimeline: g, onTransmuxerLog: m, isEndOfTimeline: y, } = e, v = { buffer: [] }; let b = y; if ( ((t.onmessage = (n) => { t.currentTransmux === e && ("data" === n.data.action && ((e, t, n) => { const { type: r, initSegment: i, captions: o, captionStreams: a, metadata: s, videoFrameDtsTime: u, videoFramePtsTime: c, } = e.data.segment; t.buffer.push({ captions: o, captionStreams: a, metadata: s, }); const l = e.data.segment.boxes || { data: e.data.segment.data, }, f = { type: r, data: new Uint8Array( l.data, l.data.byteOffset, l.data.byteLength ), initSegment: new Uint8Array( i.data, i.byteOffset, i.byteLength ), }; void 0 !== u && (f.videoFrameDtsTime = u), void 0 !== c && (f.videoFramePtsTime = c), n(f); })(n, v, a), "trackinfo" === n.data.action && s(n.data.trackInfo), "gopInfo" === n.data.action && ((e, t) => { t.gopInfo = e.data.gopInfo; })(n, v), "audioTimingInfo" === n.data.action && u(n.data.audioTimingInfo), "videoTimingInfo" === n.data.action && c(n.data.videoTimingInfo), "videoSegmentTimingInfo" === n.data.action && l(n.data.videoSegmentTimingInfo), "audioSegmentTimingInfo" === n.data.action && f(n.data.audioSegmentTimingInfo), "id3Frame" === n.data.action && d([n.data.id3Frame], n.data.id3Frame.dispatchType), "caption" === n.data.action && p(n.data.caption), "endedtimeline" === n.data.action && ((b = !1), g()), "log" === n.data.action && m(n.data.log), "transmuxed" === n.data.type && (b || ((t.onmessage = null), (({ transmuxedData: e, callback: t }) => { (e.buffer = []), t(e); })({ transmuxedData: v, callback: h }), Xs(t)))); }), r && t.postMessage({ action: "setAudioAppendStart", appendStart: r }), Array.isArray(i) && t.postMessage({ action: "alignGopsWith", gopsToAlignWith: i }), void 0 !== o && t.postMessage({ action: "setRemux", remux: o }), n.byteLength) ) { const e = n instanceof ArrayBuffer ? n : n.buffer, r = n instanceof ArrayBuffer ? 0 : n.byteOffset; t.postMessage( { action: "push", data: e, byteOffset: r, byteLength: n.byteLength, }, [e] ); } y && t.postMessage({ action: "endTimeline" }), t.postMessage({ action: "flush" }); }, Xs = (e) => { (e.currentTransmux = null), e.transmuxQueue.length && ((e.currentTransmux = e.transmuxQueue.shift()), "function" == typeof e.currentTransmux ? e.currentTransmux() : Ks(e.currentTransmux)); }, Qs = (e, t) => { e.postMessage({ action: t }), Xs(e); }, Js = (e, t) => { if (!t.currentTransmux) return (t.currentTransmux = e), void Qs(t, e); t.transmuxQueue.push(Qs.bind(null, t, e)); }, eu = (e) => { if (!e.transmuxer.currentTransmux) return (e.transmuxer.currentTransmux = e), void Ks(e); e.transmuxer.transmuxQueue.push(e); }; var tu = (e) => { Js("reset", e); }, nu = (e) => { const t = new Ys(); (t.currentTransmux = null), (t.transmuxQueue = []); const n = t.terminate; return ( (t.terminate = () => ( (t.currentTransmux = null), (t.transmuxQueue.length = 0), n.call(t) )), t.postMessage({ action: "init", options: e }), t ); }; const ru = function (e) { const t = e.transmuxer, n = e.endAction || e.action, r = e.callback, i = (0, b.Z)({}, e, { endAction: null, transmuxer: null, callback: null, }), o = (i) => { i.data.action === n && (t.removeEventListener("message", o), i.data.data && ((i.data.data = new Uint8Array( i.data.data, e.byteOffset || 0, e.byteLength || i.data.data.byteLength )), e.data && (e.data = i.data.data)), r(i.data)); }; if ((t.addEventListener("message", o), e.data)) { const n = e.data instanceof ArrayBuffer; (i.byteOffset = n ? 0 : e.data.byteOffset), (i.byteLength = e.data.byteLength); const r = [n ? e.data : e.data.buffer]; t.postMessage(i, r); } else t.postMessage(i); }, iu = 2, ou = -101, au = -102, su = (e) => { e.forEach((e) => { e.abort(); }); }, uu = (e, t) => t.timedout ? { status: t.status, message: "HLS request timed-out at URL: " + t.uri, code: ou, xhr: t, } : t.aborted ? { status: t.status, message: "HLS request aborted at URL: " + t.uri, code: au, xhr: t, } : e ? { status: t.status, message: "HLS request errored at URL: " + t.uri, code: iu, xhr: t, } : "arraybuffer" === t.responseType && 0 === t.response.byteLength ? { status: t.status, message: "Empty HLS response at URL: " + t.uri, code: iu, xhr: t, } : null, cu = (e, t, n) => (r, i) => { const o = i.response, a = uu(r, i); if (a) return n(a, e); if (16 !== o.byteLength) return n( { status: i.status, message: "Invalid HLS key at URL: " + i.uri, code: iu, xhr: i, }, e ); const s = new DataView(o), u = new Uint32Array([ s.getUint32(0), s.getUint32(4), s.getUint32(8), s.getUint32(12), ]); for (let e = 0; e < t.length; e++) t[e].bytes = u; return n(null, e); }, lu = (e, t) => { const n = St(e.map.bytes); if ("mp4" !== n) { const r = e.map.resolvedUri || e.map.uri; return t({ internal: !0, message: `Found unsupported ${ n || "unknown" } container for initialization segment at URL: ${r}`, code: iu, }); } ru({ action: "probeMp4Tracks", data: e.map.bytes, transmuxer: e.transmuxer, callback: ({ tracks: n, data: r }) => ( (e.map.bytes = r), n.forEach(function (t) { (e.map.tracks = e.map.tracks || {}), e.map.tracks[t.type] || ((e.map.tracks[t.type] = t), "number" == typeof t.id && t.timescale && ((e.map.timescales = e.map.timescales || {}), (e.map.timescales[t.id] = t.timescale))); }), t(null) ), }); }, fu = ({ segment: e, finishProcessingFn: t, responseType: n }) => (r, i) => { const o = uu(r, i); if (o) return t(o, e); const a = "arraybuffer" !== n && i.responseText ? ((e) => { const t = new Uint8Array(new ArrayBuffer(e.length)); for (let n = 0; n < e.length; n++) t[n] = e.charCodeAt(n); return t.buffer; })(i.responseText.substring(e.lastReachedChar || 0)) : i.response; return ( (e.stats = ((e) => ({ bandwidth: e.bandwidth, bytesReceived: e.bytesReceived || 0, roundTripTime: e.roundTripTime || 0, }))(i)), e.key ? (e.encryptedBytes = new Uint8Array(a)) : (e.bytes = new Uint8Array(a)), t(null, e) ); }, du = ({ segment: e, bytes: t, trackInfoFn: n, timingInfoFn: r, videoSegmentTimingInfoFn: i, audioSegmentTimingInfoFn: o, id3Fn: a, captionsFn: s, isEndOfTimeline: u, endedTimelineFn: c, dataFn: l, doneFn: f, onTransmuxerLog: d, }) => { const p = (e.map && e.map.tracks) || {}, h = Boolean(p.audio && p.video); let g = r.bind(null, e, "audio", "start"); const m = r.bind(null, e, "audio", "end"); let y = r.bind(null, e, "video", "start"); const v = r.bind(null, e, "video", "end"); ru({ action: "probeTs", transmuxer: e.transmuxer, data: t, baseStartTime: e.baseStartTime, callback: (r) => { e.bytes = t = r.data; const p = r.result; p && (n(e, { hasAudio: p.hasAudio, hasVideo: p.hasVideo, isMuxed: h, }), (n = null), p.hasAudio && !h && g(p.audioStart), p.hasVideo && y(p.videoStart), (g = null), (y = null)), eu({ bytes: t, transmuxer: e.transmuxer, audioAppendStart: e.audioAppendStart, gopsToAlignWith: e.gopsToAlignWith, remux: h, onData: (t) => { (t.type = "combined" === t.type ? "video" : t.type), l(e, t); }, onTrackInfo: (t) => { n && (h && (t.isMuxed = !0), n(e, t)); }, onAudioTimingInfo: (e) => { g && void 0 !== e.start && (g(e.start), (g = null)), m && void 0 !== e.end && m(e.end); }, onVideoTimingInfo: (e) => { y && void 0 !== e.start && (y(e.start), (y = null)), v && void 0 !== e.end && v(e.end); }, onVideoSegmentTimingInfo: (e) => { i(e); }, onAudioSegmentTimingInfo: (e) => { o(e); }, onId3: (t, n) => { a(e, t, n); }, onCaptions: (t) => { s(e, [t]); }, isEndOfTimeline: u, onEndedTimeline: () => { c(); }, onTransmuxerLog: d, onDone: (t) => { f && ((t.type = "combined" === t.type ? "video" : t.type), f(null, e, t)); }, }); }, }); }, pu = ({ segment: e, bytes: t, trackInfoFn: n, timingInfoFn: r, videoSegmentTimingInfoFn: i, audioSegmentTimingInfoFn: o, id3Fn: a, captionsFn: s, isEndOfTimeline: u, endedTimelineFn: c, dataFn: l, doneFn: f, onTransmuxerLog: d, }) => { let p = new Uint8Array(t); if ( (function (e) { return ut(e, ["moof"]).length > 0; })(p) ) { e.isFmp4 = !0; const { tracks: i } = e.map, o = { isFmp4: !0, hasVideo: !!i.video, hasAudio: !!i.audio }; i.audio && i.audio.codec && "enca" !== i.audio.codec && (o.audioCodec = i.audio.codec), i.video && i.video.codec && "encv" !== i.video.codec && (o.videoCodec = i.video.codec), i.video && i.audio && (o.isMuxed = !0), n(e, o); const a = (t) => { l(e, { data: p, type: o.hasAudio && !o.isMuxed ? "audio" : "video", }), t && t.length && s(e, t), f(null, e, {}); }; ru({ action: "probeMp4StartTime", timescales: e.map.timescales, data: p, transmuxer: e.transmuxer, callback: ({ data: n, startTime: s }) => { (t = n.buffer), (e.bytes = p = n), o.hasAudio && !o.isMuxed && r(e, "audio", "start", s), o.hasVideo && r(e, "video", "start", s), i.video && n.byteLength && e.transmuxer ? ru({ action: "pushMp4Captions", endAction: "mp4Captions", transmuxer: e.transmuxer, data: p, timescales: e.map.timescales, trackIds: [i.video.id], callback: (n) => { (t = n.data.buffer), (e.bytes = p = n.data), n.logs.forEach(function (e) { d(Ia(e, { stream: "mp4CaptionParser" })); }), a(n.captions); }, }) : a(); }, }); } else if (e.transmuxer) { if ( (void 0 === e.container && (e.container = St(p)), "ts" !== e.container && "aac" !== e.container) ) return n(e, { hasAudio: !1, hasVideo: !1 }), void f(null, e, {}); du({ segment: e, bytes: t, trackInfoFn: n, timingInfoFn: r, videoSegmentTimingInfoFn: i, audioSegmentTimingInfoFn: o, id3Fn: a, captionsFn: s, isEndOfTimeline: u, endedTimelineFn: c, dataFn: l, doneFn: f, onTransmuxerLog: d, }); } else f(null, e, {}); }, hu = function ( { id: e, key: t, encryptedBytes: n, decryptionWorker: r }, i ) { const o = (t) => { if (t.data.source === e) { r.removeEventListener("message", o); const e = t.data.decrypted; i(new Uint8Array(e.bytes, e.byteOffset, e.byteLength)); } }; let a; r.addEventListener("message", o), (a = t.bytes.slice ? t.bytes.slice() : new Uint32Array(Array.prototype.slice.call(t.bytes))), r.postMessage(Os({ source: e, encrypted: n, key: a, iv: t.iv }), [ n.buffer, a.buffer, ]); }, gu = ({ activeXhrs: e, decryptionWorker: t, trackInfoFn: n, timingInfoFn: r, videoSegmentTimingInfoFn: i, audioSegmentTimingInfoFn: o, id3Fn: a, captionsFn: s, isEndOfTimeline: u, endedTimelineFn: c, dataFn: l, doneFn: f, onTransmuxerLog: d, }) => { let p = 0, h = !1; return (g, m) => { if (!h) { if (g) return (h = !0), su(e), f(g, m); if (((p += 1), p === e.length)) { const p = function () { if (m.encryptedBytes) return (({ decryptionWorker: e, segment: t, trackInfoFn: n, timingInfoFn: r, videoSegmentTimingInfoFn: i, audioSegmentTimingInfoFn: o, id3Fn: a, captionsFn: s, isEndOfTimeline: u, endedTimelineFn: c, dataFn: l, doneFn: f, onTransmuxerLog: d, }) => { hu( { id: t.requestId, key: t.key, encryptedBytes: t.encryptedBytes, decryptionWorker: e, }, (e) => { (t.bytes = e), pu({ segment: t, bytes: t.bytes, trackInfoFn: n, timingInfoFn: r, videoSegmentTimingInfoFn: i, audioSegmentTimingInfoFn: o, id3Fn: a, captionsFn: s, isEndOfTimeline: u, endedTimelineFn: c, dataFn: l, doneFn: f, onTransmuxerLog: d, }); } ); })({ decryptionWorker: t, segment: m, trackInfoFn: n, timingInfoFn: r, videoSegmentTimingInfoFn: i, audioSegmentTimingInfoFn: o, id3Fn: a, captionsFn: s, isEndOfTimeline: u, endedTimelineFn: c, dataFn: l, doneFn: f, onTransmuxerLog: d, }); pu({ segment: m, bytes: m.bytes, trackInfoFn: n, timingInfoFn: r, videoSegmentTimingInfoFn: i, audioSegmentTimingInfoFn: o, id3Fn: a, captionsFn: s, isEndOfTimeline: u, endedTimelineFn: c, dataFn: l, doneFn: f, onTransmuxerLog: d, }); }; if ( ((m.endOfAllRequests = Date.now()), m.map && m.map.encryptedBytes && !m.map.bytes) ) return hu( { decryptionWorker: t, id: m.requestId + "-init", encryptedBytes: m.map.encryptedBytes, key: m.map.key, }, (t) => { (m.map.bytes = t), lu(m, (t) => { if (t) return su(e), f(t, m); p(); }); } ); p(); } } }; }, mu = ({ segment: e, progressFn: t, trackInfoFn: n, timingInfoFn: r, videoSegmentTimingInfoFn: i, audioSegmentTimingInfoFn: o, id3Fn: a, captionsFn: s, isEndOfTimeline: u, endedTimelineFn: c, dataFn: l, }) => (n) => { if (!n.target.aborted) return ( (e.stats = Ia( e.stats, ((e) => { const t = e.target, n = { bandwidth: 1 / 0, bytesReceived: 0, roundTripTime: Date.now() - t.requestTime || 0, }; return ( (n.bytesReceived = e.loaded), (n.bandwidth = Math.floor( (n.bytesReceived / n.roundTripTime) * 8 * 1e3 )), n ); })(n) )), !e.stats.firstBytesReceivedAt && e.stats.bytesReceived && (e.stats.firstBytesReceivedAt = Date.now()), t(n, e) ); }, yu = ({ xhr: e, xhrOptions: t, decryptionWorker: n, segment: r, abortFn: i, progressFn: o, trackInfoFn: a, timingInfoFn: s, videoSegmentTimingInfoFn: u, audioSegmentTimingInfoFn: c, id3Fn: l, captionsFn: f, isEndOfTimeline: d, endedTimelineFn: p, dataFn: h, doneFn: g, onTransmuxerLog: m, }) => { const y = [], v = gu({ activeXhrs: y, decryptionWorker: n, trackInfoFn: a, timingInfoFn: s, videoSegmentTimingInfoFn: u, audioSegmentTimingInfoFn: c, id3Fn: l, captionsFn: f, isEndOfTimeline: d, endedTimelineFn: p, dataFn: h, doneFn: g, onTransmuxerLog: m, }); if (r.key && !r.key.bytes) { const n = [r.key]; r.map && !r.map.bytes && r.map.key && r.map.key.resolvedUri === r.key.resolvedUri && n.push(r.map.key); const i = e( Ia(t, { uri: r.key.resolvedUri, responseType: "arraybuffer" }), cu(r, n, v) ); y.push(i); } if (r.map && !r.map.bytes) { if ( r.map.key && (!r.key || r.key.resolvedUri !== r.map.key.resolvedUri) ) { const n = e( Ia(t, { uri: r.map.key.resolvedUri, responseType: "arraybuffer", }), cu(r, [r.map.key], v) ); y.push(n); } const n = Ia(t, { uri: r.map.resolvedUri, responseType: "arraybuffer", headers: xs(r.map), }), i = ( ({ segment: e, finishProcessingFn: t }) => (n, r) => { const i = uu(n, r); if (i) return t(i, e); const o = new Uint8Array(r.response); if (e.map.key) return (e.map.encryptedBytes = o), t(null, e); (e.map.bytes = o), lu(e, function (n) { if (n) return (n.xhr = r), (n.status = r.status), t(n, e); t(null, e); }); } )({ segment: r, finishProcessingFn: v }), o = e(n, i); y.push(o); } const b = Ia(t, { uri: (r.part && r.part.resolvedUri) || r.resolvedUri, responseType: "arraybuffer", headers: xs(r), }), _ = e( b, fu({ segment: r, finishProcessingFn: v, responseType: b.responseType, }) ); _.addEventListener( "progress", mu({ segment: r, progressFn: o, trackInfoFn: a, timingInfoFn: s, videoSegmentTimingInfoFn: u, audioSegmentTimingInfoFn: c, id3Fn: l, captionsFn: f, isEndOfTimeline: d, endedTimelineFn: p, dataFn: h, }) ), y.push(_); const w = {}; return ( y.forEach((e) => { e.addEventListener( "loadend", ( ({ loadendState: e, abortFn: t }) => (n) => { n.target.aborted && t && !e.calledAbortFn && (t(), (e.calledAbortFn = !0)); } )({ loadendState: w, abortFn: i }) ); }), () => su(y) ); }, vu = Aa("CodecUtils"), bu = (e, t) => { const n = t.attributes || {}; return ( e && e.mediaGroups && e.mediaGroups.AUDIO && n.AUDIO && e.mediaGroups.AUDIO[n.AUDIO] ); }, _u = function (e) { const t = {}; return ( e.forEach(({ mediaType: e, type: n, details: r }) => { (t[e] = t[e] || []), t[e].push(D(`${n}${r}`)); }), Object.keys(t).forEach(function (e) { if (t[e].length > 1) return ( vu( `multiple ${e} codecs found as attributes: ${t[e].join( ", " )}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.` ), void (t[e] = null) ); t[e] = t[e][0]; }), t ); }, wu = function (e) { let t = 0; return e.audio && t++, e.video && t++, t; }, Tu = function (e, t) { const n = t.attributes || {}, r = _u( (function (e) { const t = e.attributes || {}; if (t.CODECS) return j(t.CODECS); })(t) || [] ); if ( bu(e, t) && !r.audio && !((e, t) => { if (!bu(e, t)) return !0; const n = t.attributes || {}, r = e.mediaGroups.AUDIO[n.AUDIO]; for (const e in r) if (!r[e].uri && !r[e].playlists) return !0; return !1; })(e, t) ) { const t = _u( (function (e, t) { if (!e.mediaGroups.AUDIO || !t) return null; var n = e.mediaGroups.AUDIO[t]; if (!n) return null; for (var r in n) { var i = n[r]; if (i.default && i.playlists) return j(i.playlists[0].attributes.CODECS); } return null; })(e, n.AUDIO) || [] ); t.audio && (r.audio = t.audio); } return r; }, xu = Aa("PlaylistSelector"), Su = function (e) { if (!e || !e.playlist) return; const t = e.playlist; return JSON.stringify({ id: t.id, bandwidth: e.bandwidth, width: e.width, height: e.height, codecs: (t.attributes && t.attributes.CODECS) || "", }); }, ku = function (e, t) { if (!e) return ""; const n = i().getComputedStyle(e); return n ? n[t] : ""; }, Eu = function (e, t) { const n = e.slice(); e.sort(function (e, r) { const i = t(e, r); return 0 === i ? n.indexOf(e) - n.indexOf(r) : i; }); }, Ou = function (e, t) { let n, r; return ( e.attributes.BANDWIDTH && (n = e.attributes.BANDWIDTH), (n = n || i().Number.MAX_VALUE), t.attributes.BANDWIDTH && (r = t.attributes.BANDWIDTH), (r = r || i().Number.MAX_VALUE), n - r ); }; let Cu = function (e, t, n, r, o, a) { if (!e) return; const s = { bandwidth: t, width: n, height: r, limitRenditionByPlayerDimensions: o, }; let u = e.playlists; os.isAudioOnly(e) && ((u = a.getAudioTrackPlaylists_()), (s.audioOnly = !0)); let c = u.map((e) => { let t; const n = e.attributes && e.attributes.RESOLUTION && e.attributes.RESOLUTION.width, r = e.attributes && e.attributes.RESOLUTION && e.attributes.RESOLUTION.height; return ( (t = e.attributes && e.attributes.BANDWIDTH), (t = t || i().Number.MAX_VALUE), { bandwidth: t, width: n, height: r, playlist: e } ); }); Eu(c, (e, t) => e.bandwidth - t.bandwidth), (c = c.filter((e) => !os.isIncompatible(e.playlist))); let l = c.filter((e) => os.isEnabled(e.playlist)); l.length || (l = c.filter((e) => !os.isDisabled(e.playlist))); const f = l.filter((e) => e.bandwidth * qs.BANDWIDTH_VARIANCE < t); let d = f[f.length - 1]; const p = f.filter((e) => e.bandwidth === d.bandwidth)[0]; if (!1 === o) { const e = p || l[0] || c[0]; if (e && e.playlist) { let t = "sortedPlaylistReps"; return ( p && (t = "bandwidthBestRep"), l[0] && (t = "enabledPlaylistReps"), xu(`choosing ${Su(e)} using ${t} with options`, s), e.playlist ); } return xu("could not choose a playlist with options", s), null; } const h = f.filter((e) => e.width && e.height); Eu(h, (e, t) => e.width - t.width); const g = h.filter((e) => e.width === n && e.height === r); d = g[g.length - 1]; const m = g.filter((e) => e.bandwidth === d.bandwidth)[0]; let y, v, b, _; if ( (m || ((y = h.filter((e) => e.width > n || e.height > r)), (v = y.filter( (e) => e.width === y[0].width && e.height === y[0].height )), (d = v[v.length - 1]), (b = v.filter((e) => e.bandwidth === d.bandwidth)[0])), a.leastPixelDiffSelector) ) { const e = h.map( (e) => ( (e.pixelDiff = Math.abs(e.width - n) + Math.abs(e.height - r)), e ) ); Eu(e, (e, t) => e.pixelDiff === t.pixelDiff ? t.bandwidth - e.bandwidth : e.pixelDiff - t.pixelDiff ), (_ = e[0]); } const w = _ || b || m || p || l[0] || c[0]; if (w && w.playlist) { let e = "sortedPlaylistReps"; return ( _ ? (e = "leastPixelDiffRep") : b ? (e = "resolutionPlusOneRep") : m ? (e = "resolutionBestRep") : p ? (e = "bandwidthBestRep") : l[0] && (e = "enabledPlaylistReps"), xu(`choosing ${Su(w)} using ${e} with options`, s), w.playlist ); } return xu("could not choose a playlist with options", s), null; }; const Lu = function () { const e = (this.useDevicePixelRatio && i().devicePixelRatio) || 1; return Cu( this.playlists.main, this.systemBandwidth, parseInt(ku(this.tech_.el(), "width"), 10) * e, parseInt(ku(this.tech_.el(), "height"), 10) * e, this.limitRenditionByPlayerDimensions, this.playlistController_ ); }, Au = ({ inbandTextTracks: e, metadataArray: t, timestampOffset: n, videoDuration: r, }) => { if (!t) return; const o = i().WebKitDataCue || i().VTTCue, a = e.metadataTrack_; if (!a) return; if ( (t.forEach((e) => { const t = e.cueTime + n; !("number" != typeof t || i().isNaN(t) || t < 0) && t < 1 / 0 && e.frames.forEach((e) => { const n = new o(t, t, e.value || e.url || e.data || ""); (n.frame = e), (n.value = e), (function (e) { Object.defineProperties(e.frame, { id: { get: () => ( Ta.log.warn( "cue.frame.id is deprecated. Use cue.value.key instead." ), e.value.key ), }, value: { get: () => ( Ta.log.warn( "cue.frame.value is deprecated. Use cue.value.data instead." ), e.value.data ), }, privateData: { get: () => ( Ta.log.warn( "cue.frame.privateData is deprecated. Use cue.value.data instead." ), e.value.data ), }, }); })(n), a.addCue(n); }); }), !a.cues || !a.cues.length) ) return; const s = a.cues, u = []; for (let e = 0; e < s.length; e++) s[e] && u.push(s[e]); const c = u.reduce((e, t) => { const n = e[t.startTime] || []; return n.push(t), (e[t.startTime] = n), e; }, {}), l = Object.keys(c).sort((e, t) => Number(e) - Number(t)); l.forEach((e, t) => { const n = c[e], i = Number(l[t + 1]) || r; n.forEach((e) => { e.endTime = i; }); }); }, Iu = function (e, t, n) { let r, i; if (n && n.cues) for (r = n.cues.length; r--; ) (i = n.cues[r]), i.startTime >= e && i.endTime <= t && n.removeCue(i); }, Mu = (e) => "number" == typeof e && isFinite(e), Pu = 1 / 60, Ru = (e) => { const { startOfSegment: t, duration: n, segment: r, part: i, playlist: { mediaSequence: o, id: a, segments: s = [] }, mediaIndex: u, partIndex: c, timeline: l, } = e, f = s.length - 1; let d = "mediaIndex/partIndex increment"; e.getMediaInfoForTime ? (d = `getMediaInfoForTime (${e.getMediaInfoForTime})`) : e.isSyncRequest && (d = "getSyncSegmentCandidate (isSyncRequest)"), e.independent && (d += ` with independent ${e.independent}`); const p = "number" == typeof c, h = e.segment.uri ? "segment" : "pre-segment", g = p ? Va({ preloadSegment: r }) - 1 : 0; return ( `${h} [${o + u}/${o + f}]` + (p ? ` part [${c}/${g}]` : "") + ` segment start/end [${r.start} => ${r.end}]` + (p ? ` part start/end [${i.start} => ${i.end}]` : "") + ` startOfSegment [${t}]` + ` duration [${n}]` + ` timeline [${l}]` + ` selected by [${d}]` + ` playlist [${a}]` ); }, Du = (e) => `${e}TimingInfo`, ju = ({ timelineChangeController: e, currentTimeline: t, segmentTimeline: n, loaderType: r, audioDisabled: i, }) => { if (t === n) return !1; if ("audio" === r) { const t = e.lastTimelineChange({ type: "main" }); return !t || t.to !== n; } if ("main" === r && i) { const t = e.pendingTimelineChange({ type: "audio" }); return !t || t.to !== n; } return !1; }, Nu = ({ segmentDuration: e, maxDuration: t }) => !!e && Math.round(e) > t + Pa, Bu = (e, t) => { if ("hls" !== t) return null; const n = ((e) => { let t = 0; return ( ["video", "audio"].forEach(function (n) { const r = e[`${n}TimingInfo`]; if (!r) return; const { start: o, end: a } = r; let s; "bigint" == typeof o || "bigint" == typeof a ? (s = i().BigInt(a) - i().BigInt(o)) : "number" == typeof o && "number" == typeof a && (s = a - o), void 0 !== s && s > t && (t = s); }), "bigint" == typeof t && t < Number.MAX_SAFE_INTEGER && (t = Number(t)), t ); })({ audioTimingInfo: e.audioTimingInfo, videoTimingInfo: e.videoTimingInfo, }); if (!n) return null; const r = e.playlist.targetDuration, o = Nu({ segmentDuration: n, maxDuration: 2 * r }), a = Nu({ segmentDuration: n, maxDuration: r }), s = `Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${n} when the reported duration is ${e.duration} and the target duration is ${r}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`; return o || a ? { severity: o ? "warn" : "info", message: s } : null; }; class Uu extends Ta.EventTarget { constructor(e, t = {}) { if ((super(), !e)) throw new TypeError("Initialization settings are required"); if ("function" != typeof e.currentTime) throw new TypeError("No currentTime getter specified"); if (!e.mediaSource) throw new TypeError("No MediaSource specified"); (this.bandwidth = e.bandwidth), (this.throughput = { rate: 0, count: 0 }), (this.roundTrip = NaN), this.resetStats_(), (this.mediaIndex = null), (this.partIndex = null), (this.hasPlayed_ = e.hasPlayed), (this.currentTime_ = e.currentTime), (this.seekable_ = e.seekable), (this.seeking_ = e.seeking), (this.duration_ = e.duration), (this.mediaSource_ = e.mediaSource), (this.vhs_ = e.vhs), (this.loaderType_ = e.loaderType), (this.currentMediaInfo_ = void 0), (this.startingMediaInfo_ = void 0), (this.segmentMetadataTrack_ = e.segmentMetadataTrack), (this.goalBufferLength_ = e.goalBufferLength), (this.sourceType_ = e.sourceType), (this.sourceUpdater_ = e.sourceUpdater), (this.inbandTextTracks_ = e.inbandTextTracks), (this.state_ = "INIT"), (this.timelineChangeController_ = e.timelineChangeController), (this.shouldSaveSegmentTimingInfo_ = !0), (this.parse708captions_ = e.parse708captions), (this.useDtsForTimestampOffset_ = e.useDtsForTimestampOffset), (this.captionServices_ = e.captionServices), (this.exactManifestTimings = e.exactManifestTimings), (this.checkBufferTimeout_ = null), (this.error_ = void 0), (this.currentTimeline_ = -1), (this.pendingSegment_ = null), (this.xhrOptions_ = null), (this.pendingSegments_ = []), (this.audioDisabled_ = !1), (this.isPendingTimestampOffset_ = !1), (this.gopBuffer_ = []), (this.timeMapping_ = 0), (this.safeAppend_ = Ta.browser.IE_VERSION >= 11), (this.appendInitSegment_ = { audio: !0, video: !0 }), (this.playlistOfLastInitSegment_ = { audio: null, video: null }), (this.callQueue_ = []), (this.loadQueue_ = []), (this.metadataQueue_ = { id3: [], caption: [] }), (this.waitingOnRemove_ = !1), (this.quotaExceededErrorRetryTimeout_ = null), (this.activeInitSegmentId_ = null), (this.initSegments_ = {}), (this.cacheEncryptionKeys_ = e.cacheEncryptionKeys), (this.keyCache_ = {}), (this.decrypter_ = e.decrypter), (this.syncController_ = e.syncController), (this.syncPoint_ = { segmentIndex: 0, time: 0 }), (this.transmuxer_ = this.createTransmuxer_()), (this.triggerSyncInfoUpdate_ = () => this.trigger("syncinfoupdate")), this.syncController_.on( "syncinfoupdate", this.triggerSyncInfoUpdate_ ), this.mediaSource_.addEventListener("sourceopen", () => { this.isEndOfStream_() || (this.ended_ = !1); }), (this.fetchAtBuffer_ = !1), (this.logger_ = Aa(`SegmentLoader[${this.loaderType_}]`)), Object.defineProperty(this, "state", { get() { return this.state_; }, set(e) { e !== this.state_ && (this.logger_(`${this.state_} -> ${e}`), (this.state_ = e), this.trigger("statechange")); }, }), this.sourceUpdater_.on("ready", () => { this.hasEnoughInfoToAppend_() && this.processCallQueue_(); }), "main" === this.loaderType_ && this.timelineChangeController_.on("pendingtimelinechange", () => { this.hasEnoughInfoToAppend_() && this.processCallQueue_(); }), "audio" === this.loaderType_ && this.timelineChangeController_.on("timelinechange", () => { this.hasEnoughInfoToLoad_() && this.processLoadQueue_(), this.hasEnoughInfoToAppend_() && this.processCallQueue_(); }); } createTransmuxer_() { return nu({ remux: !1, alignGopsAtEnd: this.safeAppend_, keepOriginalTimestamps: !0, parse708captions: this.parse708captions_, captionServices: this.captionServices_, }); } resetStats_() { (this.mediaBytesTransferred = 0), (this.mediaRequests = 0), (this.mediaRequestsAborted = 0), (this.mediaRequestsTimedout = 0), (this.mediaRequestsErrored = 0), (this.mediaTransferDuration = 0), (this.mediaSecondsLoaded = 0), (this.mediaAppends = 0); } dispose() { this.trigger("dispose"), (this.state = "DISPOSED"), this.pause(), this.abort_(), this.transmuxer_ && this.transmuxer_.terminate(), this.resetStats_(), this.checkBufferTimeout_ && i().clearTimeout(this.checkBufferTimeout_), this.syncController_ && this.triggerSyncInfoUpdate_ && this.syncController_.off( "syncinfoupdate", this.triggerSyncInfoUpdate_ ), this.off(); } setAudio(e) { (this.audioDisabled_ = !e), e ? (this.appendInitSegment_.audio = !0) : this.sourceUpdater_.removeAudio(0, this.duration_()); } abort() { "WAITING" === this.state ? (this.abort_(), (this.state = "READY"), this.paused() || this.monitorBuffer_()) : this.pendingSegment_ && (this.pendingSegment_ = null); } abort_() { this.pendingSegment_ && this.pendingSegment_.abortRequests && this.pendingSegment_.abortRequests(), (this.pendingSegment_ = null), (this.callQueue_ = []), (this.loadQueue_ = []), (this.metadataQueue_.id3 = []), (this.metadataQueue_.caption = []), this.timelineChangeController_.clearPendingTimelineChange( this.loaderType_ ), (this.waitingOnRemove_ = !1), i().clearTimeout(this.quotaExceededErrorRetryTimeout_), (this.quotaExceededErrorRetryTimeout_ = null); } checkForAbort_(e) { return "APPENDING" !== this.state || this.pendingSegment_ ? !this.pendingSegment_ || this.pendingSegment_.requestId !== e : ((this.state = "READY"), !0); } error(e) { return ( void 0 !== e && (this.logger_("error occurred:", e), (this.error_ = e)), (this.pendingSegment_ = null), this.error_ ); } endOfStream() { (this.ended_ = !0), this.transmuxer_ && tu(this.transmuxer_), (this.gopBuffer_.length = 0), this.pause(), this.trigger("ended"); } buffered_() { const e = this.getMediaInfo_(); if (!this.sourceUpdater_ || !e) return Ma(); if ("main" === this.loaderType_) { const { hasAudio: t, hasVideo: n, isMuxed: r } = e; if (n && t && !this.audioDisabled_ && !r) return this.sourceUpdater_.buffered(); if (n) return this.sourceUpdater_.videoBuffered(); } return this.sourceUpdater_.audioBuffered(); } initSegmentForMap(e, t = !1) { if (!e) return null; const n = Cs(e); let r = this.initSegments_[n]; return ( t && !r && e.bytes && (this.initSegments_[n] = r = { resolvedUri: e.resolvedUri, byterange: e.byterange, bytes: e.bytes, tracks: e.tracks, timescales: e.timescales, }), r || e ); } segmentKey(e, t = !1) { if (!e) return null; const n = Ls(e); let r = this.keyCache_[n]; this.cacheEncryptionKeys_ && t && !r && e.bytes && (this.keyCache_[n] = r = { resolvedUri: e.resolvedUri, bytes: e.bytes }); const i = { resolvedUri: (r || e).resolvedUri }; return r && (i.bytes = r.bytes), i; } couldBeginLoading_() { return this.playlist_ && !this.paused(); } load() { if ((this.monitorBuffer_(), this.playlist_)) return "INIT" === this.state && this.couldBeginLoading_() ? this.init_() : void ( !this.couldBeginLoading_() || ("READY" !== this.state && "INIT" !== this.state) || (this.state = "READY") ); } init_() { return ( (this.state = "READY"), this.resetEverything(), this.monitorBuffer_() ); } playlist(e, t = {}) { if (!e) return; const n = this.playlist_, r = this.pendingSegment_; (this.playlist_ = e), (this.xhrOptions_ = t), "INIT" === this.state && ((e.syncInfo = { mediaSequence: e.mediaSequence, time: 0 }), "main" === this.loaderType_ && this.syncController_.setDateTimeMappingForStart(e)); let i = null; if ( (n && (n.id ? (i = n.id) : n.uri && (i = n.uri)), this.logger_(`playlist update [${i} => ${e.id || e.uri}]`), this.trigger("syncinfoupdate"), "INIT" === this.state && this.couldBeginLoading_()) ) return this.init_(); if (!n || n.uri !== e.uri) return ( null !== this.mediaIndex && (e.endList ? this.resyncLoader() : this.resetLoader()), (this.currentMediaInfo_ = void 0), void this.trigger("playlistupdate") ); const o = e.mediaSequence - n.mediaSequence; if ( (this.logger_(`live window shift [${o}]`), null !== this.mediaIndex) ) if (((this.mediaIndex -= o), this.mediaIndex < 0)) (this.mediaIndex = null), (this.partIndex = null); else { const e = this.playlist_.segments[this.mediaIndex]; if ( this.partIndex && (!e.parts || !e.parts.length || !e.parts[this.partIndex]) ) { const e = this.mediaIndex; this.logger_( `currently processing part (index ${this.partIndex}) no longer exists.` ), this.resetLoader(), (this.mediaIndex = e); } } r && ((r.mediaIndex -= o), r.mediaIndex < 0 ? ((r.mediaIndex = null), (r.partIndex = null)) : (r.mediaIndex >= 0 && (r.segment = e.segments[r.mediaIndex]), r.partIndex >= 0 && r.segment.parts && (r.part = r.segment.parts[r.partIndex]))), this.syncController_.saveExpiredSegmentInfo(n, e); } pause() { this.checkBufferTimeout_ && (i().clearTimeout(this.checkBufferTimeout_), (this.checkBufferTimeout_ = null)); } paused() { return null === this.checkBufferTimeout_; } resetEverything(e) { (this.ended_ = !1), (this.activeInitSegmentId_ = null), (this.appendInitSegment_ = { audio: !0, video: !0 }), this.resetLoader(), this.remove(0, 1 / 0, e), this.transmuxer_ && (this.transmuxer_.postMessage({ action: "clearAllMp4Captions" }), this.transmuxer_.postMessage({ action: "reset" })); } resetLoader() { (this.fetchAtBuffer_ = !1), this.resyncLoader(); } resyncLoader() { this.transmuxer_ && tu(this.transmuxer_), (this.mediaIndex = null), (this.partIndex = null), (this.syncPoint_ = null), (this.isPendingTimestampOffset_ = !1), (this.callQueue_ = []), (this.loadQueue_ = []), (this.metadataQueue_.id3 = []), (this.metadataQueue_.caption = []), this.abort(), this.transmuxer_ && this.transmuxer_.postMessage({ action: "clearParsedMp4Captions", }); } remove(e, t, n = () => {}, r = !1) { if ((t === 1 / 0 && (t = this.duration_()), t <= e)) return void this.logger_( "skipping remove because end ${end} is <= start ${start}" ); if (!this.sourceUpdater_ || !this.getMediaInfo_()) return void this.logger_( "skipping remove because no source updater or starting media info" ); let i = 1; const o = () => { i--, 0 === i && n(); }; (!r && this.audioDisabled_) || (i++, this.sourceUpdater_.removeAudio(e, t, o)), (r || "main" === this.loaderType_) && ((this.gopBuffer_ = ((e, t, n, r) => { const i = Math.ceil((t - r) * kt.ONE_SECOND_IN_TS), o = Math.ceil((n - r) * kt.ONE_SECOND_IN_TS), a = e.slice(); let s = e.length; for (; s-- && !(e[s].pts <= o); ); if (-1 === s) return a; let u = s + 1; for (; u-- && !(e[u].pts <= i); ); return (u = Math.max(u, 0)), a.splice(u, s - u + 1), a; })(this.gopBuffer_, e, t, this.timeMapping_)), i++, this.sourceUpdater_.removeVideo(e, t, o)); for (const n in this.inbandTextTracks_) Iu(e, t, this.inbandTextTracks_[n]); Iu(e, t, this.segmentMetadataTrack_), o(); } monitorBuffer_() { this.checkBufferTimeout_ && i().clearTimeout(this.checkBufferTimeout_), (this.checkBufferTimeout_ = i().setTimeout( this.monitorBufferTick_.bind(this), 1 )); } monitorBufferTick_() { "READY" === this.state && this.fillBuffer_(), this.checkBufferTimeout_ && i().clearTimeout(this.checkBufferTimeout_), (this.checkBufferTimeout_ = i().setTimeout( this.monitorBufferTick_.bind(this), 500 )); } fillBuffer_() { if (this.sourceUpdater_.updating()) return; const e = this.chooseNextRequest_(); e && ("number" == typeof e.timestampOffset && ((this.isPendingTimestampOffset_ = !1), this.timelineChangeController_.pendingTimelineChange({ type: this.loaderType_, from: this.currentTimeline_, to: e.timeline, })), this.loadSegment_(e)); } isEndOfStream_( e = this.mediaIndex, t = this.playlist_, n = this.partIndex ) { if (!t || !this.mediaSource_) return !1; const r = "number" == typeof e && t.segments[e], i = e + 1 === t.segments.length, o = !r || !r.parts || n + 1 === r.parts.length; return t.endList && "open" === this.mediaSource_.readyState && i && o; } chooseNextRequest_() { const e = this.buffered_(), t = Fa(e) || 0, n = za(e, this.currentTime_()), r = !this.hasPlayed_() && n >= 1, i = n >= this.goalBufferLength_(), o = this.playlist_.segments; if (!o.length || r || i) return null; this.syncPoint_ = this.syncPoint_ || this.syncController_.getSyncPoint( this.playlist_, this.duration_(), this.currentTimeline_, this.currentTime_() ); const a = { partIndex: null, mediaIndex: null, startOfSegment: null, playlist: this.playlist_, isSyncRequest: Boolean(!this.syncPoint_), }; if (a.isSyncRequest) a.mediaIndex = (function (e, t, n) { t = t || []; const r = []; let i = 0; for (let o = 0; o < t.length; o++) { const a = t[o]; if (e === a.timeline && (r.push(o), (i += a.duration), i > n)) return o; } return 0 === r.length ? 0 : r[r.length - 1]; })(this.currentTimeline_, o, t); else if (null !== this.mediaIndex) { const e = o[this.mediaIndex], n = "number" == typeof this.partIndex ? this.partIndex : -1; (a.startOfSegment = e.end ? e.end : t), e.parts && e.parts[n + 1] ? ((a.mediaIndex = this.mediaIndex), (a.partIndex = n + 1)) : (a.mediaIndex = this.mediaIndex + 1); } else { const { segmentIndex: e, startTime: n, partIndex: r, } = os.getMediaInfoForTime({ exactManifestTimings: this.exactManifestTimings, playlist: this.playlist_, currentTime: this.fetchAtBuffer_ ? t : this.currentTime_(), startingPartIndex: this.syncPoint_.partIndex, startingSegmentIndex: this.syncPoint_.segmentIndex, startTime: this.syncPoint_.time, }); (a.getMediaInfoForTime = this.fetchAtBuffer_ ? `bufferedEnd ${t}` : `currentTime ${this.currentTime_()}`), (a.mediaIndex = e), (a.startOfSegment = n), (a.partIndex = r); } const s = o[a.mediaIndex]; let u = s && "number" == typeof a.partIndex && s.parts && s.parts[a.partIndex]; if (!s || ("number" == typeof a.partIndex && !u)) return null; if ( ("number" != typeof a.partIndex && s.parts && ((a.partIndex = 0), (u = s.parts[0])), !n && u && !u.independent) ) if (0 === a.partIndex) { const e = o[a.mediaIndex - 1], t = e.parts && e.parts.length && e.parts[e.parts.length - 1]; t && t.independent && ((a.mediaIndex -= 1), (a.partIndex = e.parts.length - 1), (a.independent = "previous segment")); } else s.parts[a.partIndex - 1].independent && ((a.partIndex -= 1), (a.independent = "previous part")); const c = this.mediaSource_ && "ended" === this.mediaSource_.readyState; return a.mediaIndex >= o.length - 1 && c && !this.seeking_() ? null : this.generateSegmentInfo_(a); } generateSegmentInfo_(e) { const { independent: t, playlist: n, mediaIndex: r, startOfSegment: i, isSyncRequest: o, partIndex: a, forceTimestampOffset: s, getMediaInfoForTime: u, } = e, c = n.segments[r], l = "number" == typeof a && c.parts[a], f = { requestId: "segment-loader-" + Math.random(), uri: (l && l.resolvedUri) || c.resolvedUri, mediaIndex: r, partIndex: l ? a : null, isSyncRequest: o, startOfSegment: i, playlist: n, bytes: null, encryptedBytes: null, timestampOffset: null, timeline: c.timeline, duration: (l && l.duration) || c.duration, segment: c, part: l, byteLength: 0, transmuxer: this.transmuxer_, getMediaInfoForTime: u, independent: t, }, d = void 0 !== s ? s : this.isPendingTimestampOffset_; f.timestampOffset = this.timestampOffsetForSegment_({ segmentTimeline: c.timeline, currentTimeline: this.currentTimeline_, startOfSegment: i, buffered: this.buffered_(), overrideCheck: d, }); const p = Fa(this.sourceUpdater_.audioBuffered()); return ( "number" == typeof p && (f.audioAppendStart = p - this.sourceUpdater_.audioTimestampOffset()), this.sourceUpdater_.videoBuffered().length && (f.gopsToAlignWith = ((e, t, n) => { if (null == t || !e.length) return []; const r = Math.ceil((t - n + 3) * kt.ONE_SECOND_IN_TS); let i; for (i = 0; i < e.length && !(e[i].pts > r); i++); return e.slice(i); })( this.gopBuffer_, this.currentTime_() - this.sourceUpdater_.videoTimestampOffset(), this.timeMapping_ )), f ); } timestampOffsetForSegment_(e) { return (({ segmentTimeline: e, currentTimeline: t, startOfSegment: n, buffered: r, overrideCheck: i, }) => i || e !== t ? e < t ? n : r.length ? r.end(r.length - 1) : n : null)(e); } earlyAbortWhenNeeded_(e) { if ( this.vhs_.tech_.paused() || !this.xhrOptions_.timeout || !this.playlist_.attributes.BANDWIDTH ) return; if (Date.now() - (e.firstBytesReceivedAt || Date.now()) < 1e3) return; const t = this.currentTime_(), n = e.bandwidth, r = this.pendingSegment_.duration, i = os.estimateSegmentRequestTime( r, n, this.playlist_, e.bytesReceived ), o = (function (e, t, n = 1) { return ((e.length ? e.end(e.length - 1) : 0) - t) / n; })(this.buffered_(), t, this.vhs_.tech_.playbackRate()) - 1; if (i <= o) return; const a = (function (e) { const { main: t, currentTime: n, bandwidth: r, duration: i, segmentDuration: o, timeUntilRebuffer: a, currentTimeline: s, syncController: u, } = e, c = t.playlists.filter((e) => !os.isIncompatible(e)); let l = c.filter(os.isEnabled); l.length || (l = c.filter((e) => !os.isDisabled(e))); const f = l .filter(os.hasAttribute.bind(null, "BANDWIDTH")) .map((e) => { const t = u.getSyncPoint(e, i, s, n) ? 1 : 2; return { playlist: e, rebufferingImpact: os.estimateSegmentRequestTime(o, r, e) * t - a, }; }), d = f.filter((e) => e.rebufferingImpact <= 0); return ( Eu(d, (e, t) => Ou(t.playlist, e.playlist)), d.length ? d[0] : (Eu(f, (e, t) => e.rebufferingImpact - t.rebufferingImpact), f[0] || null) ); })({ main: this.vhs_.playlists.main, currentTime: t, bandwidth: n, duration: this.duration_(), segmentDuration: r, timeUntilRebuffer: o, currentTimeline: this.currentTimeline_, syncController: this.syncController_, }); if (!a) return; const s = i - o - a.rebufferingImpact; let u = 0.5; o <= Pa && (u = 1), !a.playlist || a.playlist.uri === this.playlist_.uri || s < u || ((this.bandwidth = a.playlist.attributes.BANDWIDTH * qs.BANDWIDTH_VARIANCE + 1), this.trigger("earlyabort")); } handleAbort_(e) { this.logger_(`Aborting ${Ru(e)}`), (this.mediaRequestsAborted += 1); } handleProgress_(e, t) { this.earlyAbortWhenNeeded_(t.stats), this.checkForAbort_(t.requestId) || this.trigger("progress"); } handleTrackInfo_(e, t) { this.earlyAbortWhenNeeded_(e.stats), this.checkForAbort_(e.requestId) || this.checkForIllegalMediaSwitch(t) || ((t = t || {}), (function (e, t) { if ((!e && !t) || (!e && t) || (e && !t)) return !1; if (e === t) return !0; const n = Object.keys(e).sort(), r = Object.keys(t).sort(); if (n.length !== r.length) return !1; for (let i = 0; i < n.length; i++) { const o = n[i]; if (o !== r[i]) return !1; if (e[o] !== t[o]) return !1; } return !0; })(this.currentMediaInfo_, t) || ((this.appendInitSegment_ = { audio: !0, video: !0 }), (this.startingMediaInfo_ = t), (this.currentMediaInfo_ = t), this.logger_("trackinfo update", t), this.trigger("trackinfo")), this.checkForAbort_(e.requestId) || ((this.pendingSegment_.trackInfo = t), this.hasEnoughInfoToAppend_() && this.processCallQueue_())); } handleTimingInfo_(e, t, n, r) { if ( (this.earlyAbortWhenNeeded_(e.stats), this.checkForAbort_(e.requestId)) ) return; const i = this.pendingSegment_, o = Du(t); (i[o] = i[o] || {}), (i[o][n] = r), this.logger_(`timinginfo: ${t} - ${n} - ${r}`), this.hasEnoughInfoToAppend_() && this.processCallQueue_(); } handleCaptions_(e, t) { if ( (this.earlyAbortWhenNeeded_(e.stats), this.checkForAbort_(e.requestId)) ) return; if (0 === t.length) return void this.logger_( "SegmentLoader received no captions from a caption event" ); if (!this.pendingSegment_.hasAppendedData_) return void this.metadataQueue_.caption.push( this.handleCaptions_.bind(this, e, t) ); const n = null === this.sourceUpdater_.videoTimestampOffset() ? this.sourceUpdater_.audioTimestampOffset() : this.sourceUpdater_.videoTimestampOffset(), r = {}; t.forEach((e) => { r[e.stream] = r[e.stream] || { startTime: 1 / 0, captions: [], endTime: 0, }; const t = r[e.stream]; (t.startTime = Math.min(t.startTime, e.startTime + n)), (t.endTime = Math.max(t.endTime, e.endTime + n)), t.captions.push(e); }), Object.keys(r).forEach((e) => { const { startTime: t, endTime: o, captions: a } = r[e], s = this.inbandTextTracks_; this.logger_(`adding cues from ${t} -> ${o} for ${e}`), (function (e, t, n) { if (!e[n]) { t.trigger({ type: "usage", name: "vhs-608" }); let r = n; /^cc708_/.test(n) && (r = "SERVICE" + n.split("_")[1]); const i = t.textTracks().getTrackById(r); if (i) e[n] = i; else { let i = n, o = n, a = !1; const s = ((t.options_.vhs && t.options_.vhs.captionServices) || {})[r]; s && ((i = s.label), (o = s.language), (a = s.default)), (e[n] = t.addRemoteTextTrack( { kind: "captions", id: r, default: a, label: i, language: o, }, !1 ).track); } } })(s, this.vhs_.tech_, e), Iu(t, o, s[e]), (function ({ inbandTextTracks: e, captionArray: t, timestampOffset: n, }) { if (!t) return; const r = i().WebKitDataCue || i().VTTCue; t.forEach((t) => { const i = t.stream; e[i].addCue(new r(t.startTime + n, t.endTime + n, t.text)); }); })({ captionArray: a, inbandTextTracks: s, timestampOffset: n, }); }), this.transmuxer_ && this.transmuxer_.postMessage({ action: "clearParsedMp4Captions", }); } handleId3_(e, t, n) { if ( (this.earlyAbortWhenNeeded_(e.stats), this.checkForAbort_(e.requestId)) ) return; if (!this.pendingSegment_.hasAppendedData_) return void this.metadataQueue_.id3.push( this.handleId3_.bind(this, e, t, n) ); const r = null === this.sourceUpdater_.videoTimestampOffset() ? this.sourceUpdater_.audioTimestampOffset() : this.sourceUpdater_.videoTimestampOffset(); ((e, t, n) => { e.metadataTrack_ || ((e.metadataTrack_ = n.addRemoteTextTrack( { kind: "metadata", label: "Timed Metadata" }, !1 ).track), (e.metadataTrack_.inBandMetadataTrackDispatchType = t)); })(this.inbandTextTracks_, n, this.vhs_.tech_), Au({ inbandTextTracks: this.inbandTextTracks_, metadataArray: t, timestampOffset: r, videoDuration: this.duration_(), }); } processMetadataQueue_() { this.metadataQueue_.id3.forEach((e) => e()), this.metadataQueue_.caption.forEach((e) => e()), (this.metadataQueue_.id3 = []), (this.metadataQueue_.caption = []); } processCallQueue_() { const e = this.callQueue_; (this.callQueue_ = []), e.forEach((e) => e()); } processLoadQueue_() { const e = this.loadQueue_; (this.loadQueue_ = []), e.forEach((e) => e()); } hasEnoughInfoToLoad_() { if ("audio" !== this.loaderType_) return !0; const e = this.pendingSegment_; return ( !!e && (!this.getCurrentMediaInfo_() || !ju({ timelineChangeController: this.timelineChangeController_, currentTimeline: this.currentTimeline_, segmentTimeline: e.timeline, loaderType: this.loaderType_, audioDisabled: this.audioDisabled_, })) ); } getCurrentMediaInfo_(e = this.pendingSegment_) { return (e && e.trackInfo) || this.currentMediaInfo_; } getMediaInfo_(e = this.pendingSegment_) { return this.getCurrentMediaInfo_(e) || this.startingMediaInfo_; } getPendingSegmentPlaylist() { return this.pendingSegment_ ? this.pendingSegment_.playlist : null; } hasEnoughInfoToAppend_() { if (!this.sourceUpdater_.ready()) return !1; if (this.waitingOnRemove_ || this.quotaExceededErrorRetryTimeout_) return !1; const e = this.pendingSegment_, t = this.getCurrentMediaInfo_(); if (!e || !t) return !1; const { hasAudio: n, hasVideo: r, isMuxed: i } = t; return ( !(r && !e.videoTimingInfo) && !(n && !this.audioDisabled_ && !i && !e.audioTimingInfo) && !ju({ timelineChangeController: this.timelineChangeController_, currentTimeline: this.currentTimeline_, segmentTimeline: e.timeline, loaderType: this.loaderType_, audioDisabled: this.audioDisabled_, }) ); } handleData_(e, t) { if ( (this.earlyAbortWhenNeeded_(e.stats), this.checkForAbort_(e.requestId)) ) return; if (this.callQueue_.length || !this.hasEnoughInfoToAppend_()) return void this.callQueue_.push(this.handleData_.bind(this, e, t)); const n = this.pendingSegment_; if ( (this.setTimeMapping_(n.timeline), this.updateMediaSecondsLoaded_(n.part || n.segment), "closed" !== this.mediaSource_.readyState) ) { if ( (e.map && ((e.map = this.initSegmentForMap(e.map, !0)), (n.segment.map = e.map)), e.key && this.segmentKey(e.key, !0), (n.isFmp4 = e.isFmp4), (n.timingInfo = n.timingInfo || {}), n.isFmp4) ) this.trigger("fmp4"), (n.timingInfo.start = n[Du(t.type)].start); else { const e = this.getCurrentMediaInfo_(), t = "main" === this.loaderType_ && e && e.hasVideo; let r; t && (r = n.videoTimingInfo.start), (n.timingInfo.start = this.trueSegmentStart_({ currentStart: n.timingInfo.start, playlist: n.playlist, mediaIndex: n.mediaIndex, currentVideoTimestampOffset: this.sourceUpdater_.videoTimestampOffset(), useVideoTimingInfo: t, firstVideoFrameTimeForData: r, videoTimingInfo: n.videoTimingInfo, audioTimingInfo: n.audioTimingInfo, })); } if ( (this.updateAppendInitSegmentStatus(n, t.type), this.updateSourceBufferTimestampOffset_(n), n.isSyncRequest) ) { this.updateTimingInfoEnd_(n), this.syncController_.saveSegmentTimingInfo({ segmentInfo: n, shouldSaveTimelineMapping: "main" === this.loaderType_, }); const e = this.chooseNextRequest_(); if (e.mediaIndex !== n.mediaIndex || e.partIndex !== n.partIndex) return void this.logger_( "sync segment was incorrect, not appending" ); this.logger_("sync segment was correct, appending"); } (n.hasAppendedData_ = !0), this.processMetadataQueue_(), this.appendData_(n, t); } } updateAppendInitSegmentStatus(e, t) { "main" !== this.loaderType_ || "number" != typeof e.timestampOffset || e.changedTimestampOffset || (this.appendInitSegment_ = { audio: !0, video: !0 }), this.playlistOfLastInitSegment_[t] !== e.playlist && (this.appendInitSegment_[t] = !0); } getInitSegmentAndUpdateState_({ type: e, initSegment: t, map: n, playlist: r, }) { if (n) { const e = Cs(n); if (this.activeInitSegmentId_ === e) return null; (t = this.initSegmentForMap(n, !0).bytes), (this.activeInitSegmentId_ = e); } return t && this.appendInitSegment_[e] ? ((this.playlistOfLastInitSegment_[e] = r), (this.appendInitSegment_[e] = !1), (this.activeInitSegmentId_ = null), t) : null; } handleQuotaExceededError_({ segmentInfo: e, type: t, bytes: n }, r) { const o = this.sourceUpdater_.audioBuffered(), a = this.sourceUpdater_.videoBuffered(); o.length > 1 && this.logger_( "On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: " + Ua(o).join(", ") ), a.length > 1 && this.logger_( "On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: " + Ua(a).join(", ") ); const s = o.length ? o.start(0) : 0, u = o.length ? o.end(o.length - 1) : 0, c = a.length ? a.start(0) : 0, l = a.length ? a.end(a.length - 1) : 0; if (u - s <= 1 && l - c <= 1) return ( this.logger_( `On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${ n.byteLength }, audio buffer: ${Ua(o).join(", ")}, video buffer: ${Ua( a ).join(", ")}, ` ), this.error({ message: "Quota exceeded error with append of a single segment of content", excludeUntil: 1 / 0, }), void this.trigger("error") ); (this.waitingOnRemove_ = !0), this.callQueue_.push( this.appendToSourceBuffer_.bind(this, { segmentInfo: e, type: t, bytes: n, }) ); const f = this.currentTime_() - 1; this.logger_( `On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${f}` ), this.remove( 0, f, () => { this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"), (this.waitingOnRemove_ = !1), (this.quotaExceededErrorRetryTimeout_ = i().setTimeout(() => { this.logger_( "On QUOTA_EXCEEDED_ERR, re-processing call queue" ), (this.quotaExceededErrorRetryTimeout_ = null), this.processCallQueue_(); }, 1e3)); }, !0 ); } handleAppendError_({ segmentInfo: e, type: t, bytes: n }, r) { r && (22 !== r.code ? (this.logger_("Received non QUOTA_EXCEEDED_ERR on append", r), this.error( `${t} append of ${n.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}` ), this.trigger("appenderror")) : this.handleQuotaExceededError_({ segmentInfo: e, type: t, bytes: n, })); } appendToSourceBuffer_({ segmentInfo: e, type: t, initSegment: n, data: r, bytes: i, }) { if (!i) { const e = [r]; let t = r.byteLength; n && (e.unshift(n), (t += n.byteLength)), (i = ((e) => { let t, n = 0; return ( e.bytes && ((t = new Uint8Array(e.bytes)), e.segments.forEach((e) => { t.set(e, n), (n += e.byteLength); })), t ); })({ bytes: t, segments: e })); } this.sourceUpdater_.appendBuffer( { segmentInfo: e, type: t, bytes: i }, this.handleAppendError_.bind(this, { segmentInfo: e, type: t, bytes: i, }) ); } handleSegmentTimingInfo_(e, t, n) { if (!this.pendingSegment_ || t !== this.pendingSegment_.requestId) return; const r = this.pendingSegment_.segment, i = `${e}TimingInfo`; r[i] || (r[i] = {}), (r[i].transmuxerPrependedSeconds = n.prependedContentDuration || 0), (r[i].transmuxedPresentationStart = n.start.presentation), (r[i].transmuxedDecodeStart = n.start.decode), (r[i].transmuxedPresentationEnd = n.end.presentation), (r[i].transmuxedDecodeEnd = n.end.decode), (r[i].baseMediaDecodeTime = n.baseMediaDecodeTime); } appendData_(e, t) { const { type: n, data: r } = t; if (!r || !r.byteLength) return; if ("audio" === n && this.audioDisabled_) return; const i = this.getInitSegmentAndUpdateState_({ type: n, initSegment: t.initSegment, playlist: e.playlist, map: e.isFmp4 ? e.segment.map : null, }); this.appendToSourceBuffer_({ segmentInfo: e, type: n, initSegment: i, data: r, }); } loadSegment_(e) { (this.state = "WAITING"), (this.pendingSegment_ = e), this.trimBackBuffer_(e), "number" == typeof e.timestampOffset && this.transmuxer_ && this.transmuxer_.postMessage({ action: "clearAllMp4Captions" }), this.hasEnoughInfoToLoad_() ? this.updateTransmuxerAndRequestSegment_(e) : this.loadQueue_.push(() => { const t = (0, b.Z)({}, e, { forceTimestampOffset: !0 }); (0, b.Z)(e, this.generateSegmentInfo_(t)), (this.isPendingTimestampOffset_ = !1), this.updateTransmuxerAndRequestSegment_(e); }); } updateTransmuxerAndRequestSegment_(e) { this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset) && ((this.gopBuffer_.length = 0), (e.gopsToAlignWith = []), (this.timeMapping_ = 0), this.transmuxer_.postMessage({ action: "reset" }), this.transmuxer_.postMessage({ action: "setTimestampOffset", timestampOffset: e.timestampOffset, })); const t = this.createSimplifiedSegmentObj_(e), n = this.isEndOfStream_(e.mediaIndex, e.playlist, e.partIndex), r = null !== this.mediaIndex, i = e.timeline !== this.currentTimeline_ && e.timeline > 0, o = n || (r && i); this.logger_(`Requesting ${Ru(e)}`), t.map && !t.map.bytes && (this.logger_("going to request init segment."), (this.appendInitSegment_ = { video: !0, audio: !0 })), (e.abortRequests = yu({ xhr: this.vhs_.xhr, xhrOptions: this.xhrOptions_, decryptionWorker: this.decrypter_, segment: t, abortFn: this.handleAbort_.bind(this, e), progressFn: this.handleProgress_.bind(this), trackInfoFn: this.handleTrackInfo_.bind(this), timingInfoFn: this.handleTimingInfo_.bind(this), videoSegmentTimingInfoFn: this.handleSegmentTimingInfo_.bind( this, "video", e.requestId ), audioSegmentTimingInfoFn: this.handleSegmentTimingInfo_.bind( this, "audio", e.requestId ), captionsFn: this.handleCaptions_.bind(this), isEndOfTimeline: o, endedTimelineFn: () => { this.logger_("received endedtimeline callback"); }, id3Fn: this.handleId3_.bind(this), dataFn: this.handleData_.bind(this), doneFn: this.segmentRequestFinished_.bind(this), onTransmuxerLog: ({ message: t, level: n, stream: r }) => { this.logger_( `${Ru(e)} logged from transmuxer stream ${r} as a ${n}: ${t}` ); }, })); } trimBackBuffer_(e) { const t = ((e, t, n) => { let r = t - qs.BACK_BUFFER_LENGTH; e.length && (r = Math.max(r, e.start(0))); const i = t - n; return Math.min(i, r); })( this.seekable_(), this.currentTime_(), this.playlist_.targetDuration || 10 ); t > 0 && this.remove(0, t); } createSimplifiedSegmentObj_(e) { const t = e.segment, n = e.part, r = { resolvedUri: n ? n.resolvedUri : t.resolvedUri, byterange: n ? n.byterange : t.byterange, requestId: e.requestId, transmuxer: e.transmuxer, audioAppendStart: e.audioAppendStart, gopsToAlignWith: e.gopsToAlignWith, part: e.part, }, i = e.playlist.segments[e.mediaIndex - 1]; if ( (i && i.timeline === t.timeline && (i.videoTimingInfo ? (r.baseStartTime = i.videoTimingInfo.transmuxedDecodeEnd) : i.audioTimingInfo && (r.baseStartTime = i.audioTimingInfo.transmuxedDecodeEnd)), t.key) ) { const n = t.key.iv || new Uint32Array([ 0, 0, 0, e.mediaIndex + e.playlist.mediaSequence, ]); (r.key = this.segmentKey(t.key)), (r.key.iv = n); } return t.map && (r.map = this.initSegmentForMap(t.map)), r; } saveTransferStats_(e) { (this.mediaRequests += 1), e && ((this.mediaBytesTransferred += e.bytesReceived), (this.mediaTransferDuration += e.roundTripTime)); } saveBandwidthRelatedStats_(e, t) { (this.pendingSegment_.byteLength = t.bytesReceived), e < Pu ? this.logger_( `Ignoring segment's bandwidth because its duration of ${e} is less than the min to record 0.016666666666666666` ) : ((this.bandwidth = t.bandwidth), (this.roundTrip = t.roundTripTime)); } handleTimeout_() { (this.mediaRequestsTimedout += 1), (this.bandwidth = 1), (this.roundTrip = NaN), this.trigger("bandwidthupdate"), this.trigger("timeout"); } segmentRequestFinished_(e, t, n) { if (this.callQueue_.length) return void this.callQueue_.push( this.segmentRequestFinished_.bind(this, e, t, n) ); if ((this.saveTransferStats_(t.stats), !this.pendingSegment_)) return; if (t.requestId !== this.pendingSegment_.requestId) return; if (e) { if ( ((this.pendingSegment_ = null), (this.state = "READY"), e.code === au) ) return; return ( this.pause(), e.code === ou ? void this.handleTimeout_() : ((this.mediaRequestsErrored += 1), this.error(e), void this.trigger("error")) ); } const r = this.pendingSegment_; this.saveBandwidthRelatedStats_(r.duration, t.stats), (r.endOfAllRequests = t.endOfAllRequests), n.gopInfo && (this.gopBuffer_ = ((e, t, n) => { if (!t.length) return e; if (n) return t.slice(); const r = t[0].pts; let i = 0; for (; i < e.length && !(e[i].pts >= r); i++); return e.slice(0, i).concat(t); })(this.gopBuffer_, n.gopInfo, this.safeAppend_)), (this.state = "APPENDING"), this.trigger("appending"), this.waitForAppendsToComplete_(r); } setTimeMapping_(e) { const t = this.syncController_.mappingForTimeline(e); null !== t && (this.timeMapping_ = t); } updateMediaSecondsLoaded_(e) { "number" == typeof e.start && "number" == typeof e.end ? (this.mediaSecondsLoaded += e.end - e.start) : (this.mediaSecondsLoaded += e.duration); } shouldUpdateTransmuxerTimestampOffset_(e) { return ( null !== e && (("main" === this.loaderType_ && e !== this.sourceUpdater_.videoTimestampOffset()) || (!this.audioDisabled_ && e !== this.sourceUpdater_.audioTimestampOffset())) ); } trueSegmentStart_({ currentStart: e, playlist: t, mediaIndex: n, firstVideoFrameTimeForData: r, currentVideoTimestampOffset: i, useVideoTimingInfo: o, videoTimingInfo: a, audioTimingInfo: s, }) { if (void 0 !== e) return e; if (!o) return s.start; const u = t.segments[n - 1]; return 0 !== n && u && void 0 !== u.start && u.end === r + i ? a.start : r; } waitForAppendsToComplete_(e) { const t = this.getCurrentMediaInfo_(e); if (!t) return ( this.error({ message: "No starting media returned, likely due to an unsupported media format.", playlistExclusionDuration: 1 / 0, }), void this.trigger("error") ); const { hasAudio: n, hasVideo: r, isMuxed: i } = t, o = "main" === this.loaderType_ && r, a = !this.audioDisabled_ && n && !i; if (((e.waitingOnAppends = 0), !e.hasAppendedData_)) return ( e.timingInfo || "number" != typeof e.timestampOffset || (this.isPendingTimestampOffset_ = !0), (e.timingInfo = { start: 0 }), e.waitingOnAppends++, this.isPendingTimestampOffset_ || (this.updateSourceBufferTimestampOffset_(e), this.processMetadataQueue_()), void this.checkAppendsDone_(e) ); o && e.waitingOnAppends++, a && e.waitingOnAppends++, o && this.sourceUpdater_.videoQueueCallback( this.checkAppendsDone_.bind(this, e) ), a && this.sourceUpdater_.audioQueueCallback( this.checkAppendsDone_.bind(this, e) ); } checkAppendsDone_(e) { this.checkForAbort_(e.requestId) || (e.waitingOnAppends--, 0 === e.waitingOnAppends && this.handleAppendsDone_()); } checkForIllegalMediaSwitch(e) { const t = ((e, t, n) => "main" === e && t && n ? n.hasAudio || n.hasVideo ? t.hasVideo && !n.hasVideo ? "Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest." : !t.hasVideo && n.hasVideo ? "Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest." : null : "Neither audio nor video found in segment." : null)(this.loaderType_, this.getCurrentMediaInfo_(), e); return ( !!t && (this.error({ message: t, playlistExclusionDuration: 1 / 0 }), this.trigger("error"), !0) ); } updateSourceBufferTimestampOffset_(e) { if ( null === e.timestampOffset || "number" != typeof e.timingInfo.start || e.changedTimestampOffset || "main" !== this.loaderType_ ) return; let t = !1; (e.timestampOffset -= this.getSegmentStartTimeForTimestampOffsetCalculation_({ videoTimingInfo: e.segment.videoTimingInfo, audioTimingInfo: e.segment.audioTimingInfo, timingInfo: e.timingInfo, })), (e.changedTimestampOffset = !0), e.timestampOffset !== this.sourceUpdater_.videoTimestampOffset() && (this.sourceUpdater_.videoTimestampOffset(e.timestampOffset), (t = !0)), e.timestampOffset !== this.sourceUpdater_.audioTimestampOffset() && (this.sourceUpdater_.audioTimestampOffset(e.timestampOffset), (t = !0)), t && this.trigger("timestampoffset"); } getSegmentStartTimeForTimestampOffsetCalculation_({ videoTimingInfo: e, audioTimingInfo: t, timingInfo: n, }) { return this.useDtsForTimestampOffset_ ? e && "number" == typeof e.transmuxedDecodeStart ? e.transmuxedDecodeStart : t && "number" == typeof t.transmuxedDecodeStart ? t.transmuxedDecodeStart : n.start : n.start; } updateTimingInfoEnd_(e) { e.timingInfo = e.timingInfo || {}; const t = this.getMediaInfo_(), n = "main" === this.loaderType_ && t && t.hasVideo && e.videoTimingInfo ? e.videoTimingInfo : e.audioTimingInfo; n && (e.timingInfo.end = "number" == typeof n.end ? n.end : n.start + e.duration); } handleAppendsDone_() { if ( (this.pendingSegment_ && this.trigger("appendsdone"), !this.pendingSegment_) ) return ( (this.state = "READY"), void (this.paused() || this.monitorBuffer_()) ); const e = this.pendingSegment_; this.updateTimingInfoEnd_(e), this.shouldSaveSegmentTimingInfo_ && this.syncController_.saveSegmentTimingInfo({ segmentInfo: e, shouldSaveTimelineMapping: "main" === this.loaderType_, }); const t = Bu(e, this.sourceType_); if ( (t && ("warn" === t.severity ? Ta.log.warn(t.message) : this.logger_(t.message)), this.recordThroughput_(e), (this.pendingSegment_ = null), (this.state = "READY"), e.isSyncRequest && (this.trigger("syncinfoupdate"), !e.hasAppendedData_)) ) return void this.logger_( `Throwing away un-appended sync request ${Ru(e)}` ); this.logger_(`Appended ${Ru(e)}`), this.addSegmentMetadataCue_(e), (this.fetchAtBuffer_ = !0), this.currentTimeline_ !== e.timeline && (this.timelineChangeController_.lastTimelineChange({ type: this.loaderType_, from: this.currentTimeline_, to: e.timeline, }), "main" !== this.loaderType_ || this.audioDisabled_ || this.timelineChangeController_.lastTimelineChange({ type: "audio", from: this.currentTimeline_, to: e.timeline, })), (this.currentTimeline_ = e.timeline), this.trigger("syncinfoupdate"); const n = e.segment, r = e.part, i = n.end && this.currentTime_() - n.end > 3 * e.playlist.targetDuration, o = r && r.end && this.currentTime_() - r.end > 3 * e.playlist.partTargetDuration; if (i || o) return ( this.logger_(`bad ${i ? "segment" : "part"} ${Ru(e)}`), void this.resetEverything() ); null !== this.mediaIndex && this.trigger("bandwidthupdate"), this.trigger("progress"), (this.mediaIndex = e.mediaIndex), (this.partIndex = e.partIndex), this.isEndOfStream_(e.mediaIndex, e.playlist, e.partIndex) && this.endOfStream(), this.trigger("appended"), e.hasAppendedData_ && this.mediaAppends++, this.paused() || this.monitorBuffer_(); } recordThroughput_(e) { if (e.duration < Pu) return void this.logger_( `Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record 0.016666666666666666` ); const t = this.throughput.rate, n = Date.now() - e.endOfAllRequests + 1, r = Math.floor((e.byteLength / n) * 8 * 1e3); this.throughput.rate += (r - t) / ++this.throughput.count; } addSegmentMetadataCue_(e) { if (!this.segmentMetadataTrack_) return; const t = e.segment, n = t.start, r = t.end; if (!Mu(n) || !Mu(r)) return; Iu(n, r, this.segmentMetadataTrack_); const o = i().WebKitDataCue || i().VTTCue, a = { custom: t.custom, dateTimeObject: t.dateTimeObject, dateTimeString: t.dateTimeString, bandwidth: e.playlist.attributes.BANDWIDTH, resolution: e.playlist.attributes.RESOLUTION, codecs: e.playlist.attributes.CODECS, byteLength: e.byteLength, uri: e.uri, timeline: e.timeline, playlist: e.playlist.id, start: n, end: r, }, s = new o(n, r, JSON.stringify(a)); (s.value = a), this.segmentMetadataTrack_.addCue(s); } } function Fu() {} const zu = function (e) { return "string" != typeof e ? e : e.replace(/./, (e) => e.toUpperCase()); }, Hu = ["video", "audio"], qu = (e, t) => { const n = t[`${e}Buffer`]; return (n && n.updating) || t.queuePending[e]; }, Zu = (e, t) => { if (0 === t.queue.length) return; let n = 0, r = t.queue[n]; if ("mediaSource" !== r.type) { if ( "mediaSource" !== e && t.ready() && "closed" !== t.mediaSource.readyState && !qu(e, t) ) { if (r.type !== e) { if ( ((n = ((e, t) => { for (let n = 0; n < t.length; n++) { const r = t[n]; if ("mediaSource" === r.type) return null; if (r.type === e) return n; } return null; })(e, t.queue)), null === n) ) return; r = t.queue[n]; } return ( t.queue.splice(n, 1), (t.queuePending[e] = r), r.action(e, t), r.doneFn ? void 0 : ((t.queuePending[e] = null), void Zu(e, t)) ); } } else t.updating() || "closed" === t.mediaSource.readyState || (t.queue.shift(), r.action(t), r.doneFn && r.doneFn(), Zu("audio", t), Zu("video", t)); }, Vu = (e, t) => { const n = t[`${e}Buffer`], r = zu(e); n && (n.removeEventListener("updateend", t[`on${r}UpdateEnd_`]), n.removeEventListener("error", t[`on${r}Error_`]), (t.codecs[e] = null), (t[`${e}Buffer`] = null)); }, Wu = (e, t) => e && t && -1 !== Array.prototype.indexOf.call(e.sourceBuffers, t), $u = (e, t, n) => (r, i) => { const o = i[`${r}Buffer`]; if (Wu(i.mediaSource, o)) { i.logger_( `Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${r}Buffer` ); try { o.appendBuffer(e); } catch (e) { i.logger_( `Error with code ${e.code} ` + (22 === e.code ? "(QUOTA_EXCEEDED_ERR) " : "") + `when appending segment ${t.mediaIndex} to ${r}Buffer` ), (i.queuePending[r] = null), n(e); } } }, Gu = (e, t) => (n, r) => { const i = r[`${n}Buffer`]; if (Wu(r.mediaSource, i)) { r.logger_(`Removing ${e} to ${t} from ${n}Buffer`); try { i.remove(e, t); } catch (i) { r.logger_(`Remove ${e} to ${t} from ${n}Buffer failed`); } } }, Yu = (e) => (t, n) => { const r = n[`${t}Buffer`]; Wu(n.mediaSource, r) && (n.logger_(`Setting ${t}timestampOffset to ${e}`), (r.timestampOffset = e)); }, Ku = (e) => (t, n) => { e(); }, Xu = (e) => (t) => { if ("open" === t.mediaSource.readyState) { t.logger_(`Calling mediaSource endOfStream(${e || ""})`); try { t.mediaSource.endOfStream(e); } catch (e) { Ta.log.warn("Failed to call media source endOfStream", e); } } }, Qu = (e) => (t) => { t.logger_(`Setting mediaSource duration to ${e}`); try { t.mediaSource.duration = e; } catch (e) { Ta.log.warn("Failed to set media source duration", e); } }, Ju = () => (e, t) => { if ("open" !== t.mediaSource.readyState) return; const n = t[`${e}Buffer`]; if (Wu(t.mediaSource, n)) { t.logger_(`calling abort on ${e}Buffer`); try { n.abort(); } catch (t) { Ta.log.warn(`Failed to abort on ${e}Buffer`, t); } } }, ec = (e, t) => (n) => { const r = zu(e), i = B(t); n.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`); const o = n.mediaSource.addSourceBuffer(i); o.addEventListener("updateend", n[`on${r}UpdateEnd_`]), o.addEventListener("error", n[`on${r}Error_`]), (n.codecs[e] = t), (n[`${e}Buffer`] = o); }, tc = (e) => (t) => { const n = t[`${e}Buffer`]; if ((Vu(e, t), Wu(t.mediaSource, n))) { t.logger_( `Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource` ); try { t.mediaSource.removeSourceBuffer(n); } catch (t) { Ta.log.warn(`Failed to removeSourceBuffer ${e}Buffer`, t); } } }, nc = (e) => (t, n) => { const r = n[`${t}Buffer`], i = B(e); Wu(n.mediaSource, r) && n.codecs[t] !== e && (n.logger_(`changing ${t}Buffer codec from ${n.codecs[t]} to ${e}`), r.changeType(i), (n.codecs[t] = e)); }, rc = ({ type: e, sourceUpdater: t, action: n, doneFn: r, name: i }) => { t.queue.push({ type: e, action: n, doneFn: r, name: i }), Zu(e, t); }, ic = (e, t) => (n) => { if (t.queuePending[e]) { const n = t.queuePending[e].doneFn; (t.queuePending[e] = null), n && n(t[`${e}Error_`]); } Zu(e, t); }; class oc extends Ta.EventTarget { constructor(e) { super(), (this.mediaSource = e), (this.sourceopenListener_ = () => Zu("mediaSource", this)), this.mediaSource.addEventListener( "sourceopen", this.sourceopenListener_ ), (this.logger_ = Aa("SourceUpdater")), (this.audioTimestampOffset_ = 0), (this.videoTimestampOffset_ = 0), (this.queue = []), (this.queuePending = { audio: null, video: null }), (this.delayedAudioAppendQueue_ = []), (this.videoAppendQueued_ = !1), (this.codecs = {}), (this.onVideoUpdateEnd_ = ic("video", this)), (this.onAudioUpdateEnd_ = ic("audio", this)), (this.onVideoError_ = (e) => { this.videoError_ = e; }), (this.onAudioError_ = (e) => { this.audioError_ = e; }), (this.createdSourceBuffers_ = !1), (this.initializedEme_ = !1), (this.triggeredReady_ = !1); } initializedEme() { (this.initializedEme_ = !0), this.triggerReady(); } hasCreatedSourceBuffers() { return this.createdSourceBuffers_; } hasInitializedAnyEme() { return this.initializedEme_; } ready() { return this.hasCreatedSourceBuffers() && this.hasInitializedAnyEme(); } createSourceBuffers(e) { this.hasCreatedSourceBuffers() || (this.addOrChangeSourceBuffers(e), (this.createdSourceBuffers_ = !0), this.trigger("createdsourcebuffers"), this.triggerReady()); } triggerReady() { this.ready() && !this.triggeredReady_ && ((this.triggeredReady_ = !0), this.trigger("ready")); } addSourceBuffer(e, t) { rc({ type: "mediaSource", sourceUpdater: this, action: ec(e, t), name: "addSourceBuffer", }); } abort(e) { rc({ type: e, sourceUpdater: this, action: Ju(e), name: "abort" }); } removeSourceBuffer(e) { this.canRemoveSourceBuffer() ? rc({ type: "mediaSource", sourceUpdater: this, action: tc(e), name: "removeSourceBuffer", }) : Ta.log.error("removeSourceBuffer is not supported!"); } canRemoveSourceBuffer() { return ( !Ta.browser.IE_VERSION && !Ta.browser.IS_FIREFOX && i().MediaSource && i().MediaSource.prototype && "function" == typeof i().MediaSource.prototype.removeSourceBuffer ); } static canChangeType() { return ( i().SourceBuffer && i().SourceBuffer.prototype && "function" == typeof i().SourceBuffer.prototype.changeType ); } canChangeType() { return this.constructor.canChangeType(); } changeType(e, t) { this.canChangeType() ? rc({ type: e, sourceUpdater: this, action: nc(t), name: "changeType", }) : Ta.log.error("changeType is not supported!"); } addOrChangeSourceBuffers(e) { if (!e || "object" != typeof e || 0 === Object.keys(e).length) throw new Error( "Cannot addOrChangeSourceBuffers to undefined codecs" ); Object.keys(e).forEach((t) => { const n = e[t]; if (!this.hasCreatedSourceBuffers()) return this.addSourceBuffer(t, n); this.canChangeType() && this.changeType(t, n); }); } appendBuffer(e, t) { const { segmentInfo: n, type: r, bytes: i } = e; if ( ((this.processedAppend_ = !0), "audio" === r && this.videoBuffer && !this.videoAppendQueued_) ) return ( this.delayedAudioAppendQueue_.push([e, t]), void this.logger_( `delayed audio append of ${i.length} until video append` ) ); if ( (rc({ type: r, sourceUpdater: this, action: $u(i, n || { mediaIndex: -1 }, t), doneFn: t, name: "appendBuffer", }), "video" === r) ) { if ( ((this.videoAppendQueued_ = !0), !this.delayedAudioAppendQueue_.length) ) return; const e = this.delayedAudioAppendQueue_.slice(); this.logger_(`queuing delayed audio ${e.length} appendBuffers`), (this.delayedAudioAppendQueue_.length = 0), e.forEach((e) => { this.appendBuffer.apply(this, e); }); } } audioBuffered() { return Wu(this.mediaSource, this.audioBuffer) && this.audioBuffer.buffered ? this.audioBuffer.buffered : Ma(); } videoBuffered() { return Wu(this.mediaSource, this.videoBuffer) && this.videoBuffer.buffered ? this.videoBuffer.buffered : Ma(); } buffered() { const e = Wu(this.mediaSource, this.videoBuffer) ? this.videoBuffer : null, t = Wu(this.mediaSource, this.audioBuffer) ? this.audioBuffer : null; return t && !e ? this.audioBuffered() : e && !t ? this.videoBuffered() : (function (e, t) { let n = null, r = null, i = 0; const o = [], a = []; if (!(e && e.length && t && t.length)) return Ma(); let s = e.length; for (; s--; ) o.push({ time: e.start(s), type: "start" }), o.push({ time: e.end(s), type: "end" }); for (s = t.length; s--; ) o.push({ time: t.start(s), type: "start" }), o.push({ time: t.end(s), type: "end" }); for ( o.sort(function (e, t) { return e.time - t.time; }), s = 0; s < o.length; s++ ) "start" === o[s].type ? (i++, 2 === i && (n = o[s].time)) : "end" === o[s].type && (i--, 1 === i && (r = o[s].time)), null !== n && null !== r && (a.push([n, r]), (n = null), (r = null)); return Ma(a); })(this.audioBuffered(), this.videoBuffered()); } setDuration(e, t = Fu) { rc({ type: "mediaSource", sourceUpdater: this, action: Qu(e), name: "duration", doneFn: t, }); } endOfStream(e = null, t = Fu) { "string" != typeof e && (e = void 0), rc({ type: "mediaSource", sourceUpdater: this, action: Xu(e), name: "endOfStream", doneFn: t, }); } removeAudio(e, t, n = Fu) { this.audioBuffered().length && 0 !== this.audioBuffered().end(0) ? rc({ type: "audio", sourceUpdater: this, action: Gu(e, t), doneFn: n, name: "remove", }) : n(); } removeVideo(e, t, n = Fu) { this.videoBuffered().length && 0 !== this.videoBuffered().end(0) ? rc({ type: "video", sourceUpdater: this, action: Gu(e, t), doneFn: n, name: "remove", }) : n(); } updating() { return !(!qu("audio", this) && !qu("video", this)); } audioTimestampOffset(e) { return ( void 0 !== e && this.audioBuffer && this.audioTimestampOffset_ !== e && (rc({ type: "audio", sourceUpdater: this, action: Yu(e), name: "timestampOffset", }), (this.audioTimestampOffset_ = e)), this.audioTimestampOffset_ ); } videoTimestampOffset(e) { return ( void 0 !== e && this.videoBuffer && this.videoTimestampOffset !== e && (rc({ type: "video", sourceUpdater: this, action: Yu(e), name: "timestampOffset", }), (this.videoTimestampOffset_ = e)), this.videoTimestampOffset_ ); } audioQueueCallback(e) { this.audioBuffer && rc({ type: "audio", sourceUpdater: this, action: Ku(e), name: "callback", }); } videoQueueCallback(e) { this.videoBuffer && rc({ type: "video", sourceUpdater: this, action: Ku(e), name: "callback", }); } dispose() { this.trigger("dispose"), Hu.forEach((e) => { this.abort(e), this.canRemoveSourceBuffer() ? this.removeSourceBuffer(e) : this[`${e}QueueCallback`](() => Vu(e, this)); }), (this.videoAppendQueued_ = !1), (this.delayedAudioAppendQueue_.length = 0), this.sourceopenListener_ && this.mediaSource.removeEventListener( "sourceopen", this.sourceopenListener_ ), this.off(); } } const ac = (e) => decodeURIComponent(escape(String.fromCharCode.apply(null, e))), sc = new Uint8Array("\n\n".split("").map((e) => e.charCodeAt(0))); class uc extends Error { constructor() { super( "Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded." ); } } class cc extends Uu { constructor(e, t = {}) { super(e, t), (this.mediaSource_ = null), (this.subtitlesTrack_ = null), (this.loaderType_ = "subtitle"), (this.featuresNativeTextTracks_ = e.featuresNativeTextTracks), (this.loadVttJs = e.loadVttJs), (this.shouldSaveSegmentTimingInfo_ = !1); } createTransmuxer_() { return null; } buffered_() { if ( !this.subtitlesTrack_ || !this.subtitlesTrack_.cues || !this.subtitlesTrack_.cues.length ) return Ma(); const e = this.subtitlesTrack_.cues; return Ma([[e[0].startTime, e[e.length - 1].startTime]]); } initSegmentForMap(e, t = !1) { if (!e) return null; const n = Cs(e); let r = this.initSegments_[n]; if (t && !r && e.bytes) { const t = sc.byteLength + e.bytes.byteLength, i = new Uint8Array(t); i.set(e.bytes), i.set(sc, e.bytes.byteLength), (this.initSegments_[n] = r = { resolvedUri: e.resolvedUri, byterange: e.byterange, bytes: i, }); } return r || e; } couldBeginLoading_() { return this.playlist_ && this.subtitlesTrack_ && !this.paused(); } init_() { return ( (this.state = "READY"), this.resetEverything(), this.monitorBuffer_() ); } track(e) { return ( void 0 === e || ((this.subtitlesTrack_ = e), "INIT" === this.state && this.couldBeginLoading_() && this.init_()), this.subtitlesTrack_ ); } remove(e, t) { Iu(e, t, this.subtitlesTrack_); } fillBuffer_() { const e = this.chooseNextRequest_(); if (e) { if ( null === this.syncController_.timestampOffsetForTimeline(e.timeline) ) { const e = () => { (this.state = "READY"), this.paused() || this.monitorBuffer_(); }; return ( this.syncController_.one("timestampoffset", e), void (this.state = "WAITING_ON_TIMELINE") ); } this.loadSegment_(e); } } timestampOffsetForSegment_() { return null; } chooseNextRequest_() { return this.skipEmptySegments_(super.chooseNextRequest_()); } skipEmptySegments_(e) { for (; e && e.segment.empty; ) { if (e.mediaIndex + 1 >= e.playlist.segments.length) { e = null; break; } e = this.generateSegmentInfo_({ playlist: e.playlist, mediaIndex: e.mediaIndex + 1, startOfSegment: e.startOfSegment + e.duration, isSyncRequest: e.isSyncRequest, }); } return e; } stopForError(e) { this.error(e), (this.state = "READY"), this.pause(), this.trigger("error"); } segmentRequestFinished_(e, t, n) { if (!this.subtitlesTrack_) return void (this.state = "READY"); if ((this.saveTransferStats_(t.stats), !this.pendingSegment_)) return ( (this.state = "READY"), void (this.mediaRequestsAborted += 1) ); if (e) return ( e.code === ou && this.handleTimeout_(), e.code === au ? (this.mediaRequestsAborted += 1) : (this.mediaRequestsErrored += 1), void this.stopForError(e) ); const r = this.pendingSegment_; this.saveBandwidthRelatedStats_(r.duration, t.stats), t.key && this.segmentKey(t.key, !0), (this.state = "APPENDING"), this.trigger("appending"); const o = r.segment; if ( (o.map && (o.map.bytes = t.map.bytes), (r.bytes = t.bytes), "function" != typeof i().WebVTT && "function" == typeof this.loadVttJs) ) return ( (this.state = "WAITING_ON_VTTJS"), void this.loadVttJs().then( () => this.segmentRequestFinished_(e, t, n), () => this.stopForError({ message: "Error loading vtt.js" }) ) ); o.requested = !0; try { this.parseVTTCues_(r); } catch (e) { return void this.stopForError({ message: e.message }); } if ( (this.updateTimeMapping_( r, this.syncController_.timelines[r.timeline], this.playlist_ ), r.cues.length ? (r.timingInfo = { start: r.cues[0].startTime, end: r.cues[r.cues.length - 1].endTime, }) : (r.timingInfo = { start: r.startOfSegment, end: r.startOfSegment + r.duration, }), r.isSyncRequest) ) return ( this.trigger("syncinfoupdate"), (this.pendingSegment_ = null), void (this.state = "READY") ); (r.byteLength = r.bytes.byteLength), (this.mediaSecondsLoaded += o.duration), r.cues.forEach((e) => { this.subtitlesTrack_.addCue( this.featuresNativeTextTracks_ ? new (i().VTTCue)(e.startTime, e.endTime, e.text) : e ); }), (function (e) { const t = e.cues; if (t) for (let n = 0; n < t.length; n++) { const r = []; let i = 0; for (let e = 0; e < t.length; e++) t[n].startTime === t[e].startTime && t[n].endTime === t[e].endTime && t[n].text === t[e].text && (i++, i > 1 && r.push(t[e])); r.length && r.forEach((t) => e.removeCue(t)); } })(this.subtitlesTrack_), this.handleAppendsDone_(); } handleData_() {} updateTimingInfoEnd_() {} parseVTTCues_(e) { let t, n = !1; if ("function" != typeof i().WebVTT) throw new uc(); "function" == typeof i().TextDecoder ? (t = new (i().TextDecoder)("utf8")) : ((t = i().WebVTT.StringDecoder()), (n = !0)); const r = new (i().WebVTT.Parser)(i(), i().vttjs, t); if ( ((e.cues = []), (e.timestampmap = { MPEGTS: 0, LOCAL: 0 }), (r.oncue = e.cues.push.bind(e.cues)), (r.ontimestampmap = (t) => { e.timestampmap = t; }), (r.onparsingerror = (e) => { Ta.log.warn("Error encountered when parsing cues: " + e.message); }), e.segment.map) ) { let t = e.segment.map.bytes; n && (t = ac(t)), r.parse(t); } let o = e.bytes; n && (o = ac(o)), r.parse(o), r.flush(); } updateTimeMapping_(e, t, n) { const r = e.segment; if (!t) return; if (!e.cues.length) return void (r.empty = !0); const i = e.timestampmap, o = i.MPEGTS / kt.ONE_SECOND_IN_TS - i.LOCAL + t.mapping; if ( (e.cues.forEach((e) => { (e.startTime += o), (e.endTime += o); }), !n.syncInfo) ) { const t = e.cues[0].startTime, i = e.cues[e.cues.length - 1].startTime; n.syncInfo = { mediaSequence: n.mediaSequence + e.mediaIndex, time: Math.min(t, i - r.duration), }; } } } const lc = function (e, t) { const n = e.cues; for (let e = 0; e < n.length; e++) { const r = n[e]; if (t >= r.adStartTime && t <= r.adEndTime) return r; } return null; }, fc = [ { name: "VOD", run: (e, t, n, r, i) => { if (n !== 1 / 0) { return { time: 0, segmentIndex: 0, partIndex: null }; } return null; }, }, { name: "ProgramDateTime", run: (e, t, n, r, i) => { if (!Object.keys(e.timelineToDatetimeMappings).length) return null; let o = null, a = null; const s = qa(t); i = i || 0; for (let n = 0; n < s.length; n++) { const r = s[t.endList || 0 === i ? n : s.length - (n + 1)], u = r.segment, c = e.timelineToDatetimeMappings[u.timeline]; if (!c || !u.dateTimeObject) continue; let l = u.dateTimeObject.getTime() / 1e3 + c; if (u.parts && "number" == typeof r.partIndex) for (let e = 0; e < r.partIndex; e++) l += u.parts[e].duration; const f = Math.abs(i - l); if (null !== a && (0 === f || a < f)) break; (a = f), (o = { time: l, segmentIndex: r.segmentIndex, partIndex: r.partIndex, }); } return o; }, }, { name: "Segment", run: (e, t, n, r, i) => { let o = null, a = null; i = i || 0; const s = qa(t); for (let e = 0; e < s.length; e++) { const n = s[t.endList || 0 === i ? e : s.length - (e + 1)], u = n.segment, c = (n.part && n.part.start) || (u && u.start); if (u.timeline === r && void 0 !== c) { const e = Math.abs(i - c); if (null !== a && a < e) break; (!o || null === a || a >= e) && ((a = e), (o = { time: c, segmentIndex: n.segmentIndex, partIndex: n.partIndex, })); } } return o; }, }, { name: "Discontinuity", run: (e, t, n, r, i) => { let o = null; if ( ((i = i || 0), t.discontinuityStarts && t.discontinuityStarts.length) ) { let n = null; for (let r = 0; r < t.discontinuityStarts.length; r++) { const a = t.discontinuityStarts[r], s = t.discontinuitySequence + r + 1, u = e.discontinuities[s]; if (u) { const e = Math.abs(i - u.time); if (null !== n && n < e) break; (!o || null === n || n >= e) && ((n = e), (o = { time: u.time, segmentIndex: a, partIndex: null })); } } } return o; }, }, { name: "Playlist", run: (e, t, n, r, i) => { if (t.syncInfo) { return { time: t.syncInfo.time, segmentIndex: t.syncInfo.mediaSequence - t.mediaSequence, partIndex: null, }; } return null; }, }, ]; class dc extends Ta.EventTarget { constructor(e = {}) { super(), (this.timelines = []), (this.discontinuities = []), (this.timelineToDatetimeMappings = {}), (this.logger_ = Aa("SyncController")); } getSyncPoint(e, t, n, r) { const i = this.runStrategies_(e, t, n, r); return i.length ? this.selectSyncPoint_(i, { key: "time", value: r }) : null; } getExpiredTime(e, t) { if (!e || !e.segments) return null; const n = this.runStrategies_(e, t, e.discontinuitySequence, 0); if (!n.length) return null; const r = this.selectSyncPoint_(n, { key: "segmentIndex", value: 0 }); return ( r.segmentIndex > 0 && (r.time *= -1), Math.abs( r.time + Ya({ defaultDuration: e.targetDuration, durationList: e.segments, startIndex: r.segmentIndex, endIndex: 0, }) ) ); } runStrategies_(e, t, n, r) { const i = []; for (let o = 0; o < fc.length; o++) { const a = fc[o], s = a.run(this, e, t, n, r); s && ((s.strategy = a.name), i.push({ strategy: a.name, syncPoint: s })); } return i; } selectSyncPoint_(e, t) { let n = e[0].syncPoint, r = Math.abs(e[0].syncPoint[t.key] - t.value), i = e[0].strategy; for (let o = 1; o < e.length; o++) { const a = Math.abs(e[o].syncPoint[t.key] - t.value); a < r && ((r = a), (n = e[o].syncPoint), (i = e[o].strategy)); } return ( this.logger_( `syncPoint for [${t.key}: ${t.value}] chosen with strategy [${i}]: [time:${n.time}, segmentIndex:${n.segmentIndex}` + ("number" == typeof n.partIndex ? `,partIndex:${n.partIndex}` : "") + "]" ), n ); } saveExpiredSegmentInfo(e, t) { const n = t.mediaSequence - e.mediaSequence; if (n > 86400) Ta.log.warn( `Not saving expired segment info. Media sequence gap ${n} is too large.` ); else for (let r = n - 1; r >= 0; r--) { const n = e.segments[r]; if (n && void 0 !== n.start) { (t.syncInfo = { mediaSequence: e.mediaSequence + r, time: n.start, }), this.logger_( `playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]` ), this.trigger("syncinfoupdate"); break; } } } setDateTimeMappingForStart(e) { if ( ((this.timelineToDatetimeMappings = {}), e.segments && e.segments.length && e.segments[0].dateTimeObject) ) { const t = e.segments[0], n = t.dateTimeObject.getTime() / 1e3; this.timelineToDatetimeMappings[t.timeline] = -n; } } saveSegmentTimingInfo({ segmentInfo: e, shouldSaveTimelineMapping: t, }) { const n = this.calculateSegmentTimeMapping_(e, e.timingInfo, t), r = e.segment; n && (this.saveDiscontinuitySyncInfo_(e), e.playlist.syncInfo || (e.playlist.syncInfo = { mediaSequence: e.playlist.mediaSequence + e.mediaIndex, time: r.start, })); const i = r.dateTimeObject; r.discontinuity && t && i && (this.timelineToDatetimeMappings[r.timeline] = -i.getTime() / 1e3); } timestampOffsetForTimeline(e) { return void 0 === this.timelines[e] ? null : this.timelines[e].time; } mappingForTimeline(e) { return void 0 === this.timelines[e] ? null : this.timelines[e].mapping; } calculateSegmentTimeMapping_(e, t, n) { const r = e.segment, i = e.part; let o, a, s = this.timelines[e.timeline]; if ("number" == typeof e.timestampOffset) (s = { time: e.startOfSegment, mapping: e.startOfSegment - t.start, }), n && ((this.timelines[e.timeline] = s), this.trigger("timestampoffset"), this.logger_( `time mapping for timeline ${e.timeline}: [time: ${s.time}] [mapping: ${s.mapping}]` )), (o = e.startOfSegment), (a = t.end + s.mapping); else { if (!s) return !1; (o = t.start + s.mapping), (a = t.end + s.mapping); } return ( i && ((i.start = o), (i.end = a)), (!r.start || o < r.start) && (r.start = o), (r.end = a), !0 ); } saveDiscontinuitySyncInfo_(e) { const t = e.playlist, n = e.segment; if (n.discontinuity) this.discontinuities[n.timeline] = { time: n.start, accuracy: 0 }; else if (t.discontinuityStarts && t.discontinuityStarts.length) for (let r = 0; r < t.discontinuityStarts.length; r++) { const i = t.discontinuityStarts[r], o = t.discontinuitySequence + r + 1, a = i - e.mediaIndex, s = Math.abs(a); if ( !this.discontinuities[o] || this.discontinuities[o].accuracy > s ) { let r; (r = a < 0 ? n.start - Ya({ defaultDuration: t.targetDuration, durationList: t.segments, startIndex: e.mediaIndex, endIndex: i, }) : n.end + Ya({ defaultDuration: t.targetDuration, durationList: t.segments, startIndex: e.mediaIndex + 1, endIndex: i, })), (this.discontinuities[o] = { time: r, accuracy: s }); } } } dispose() { this.trigger("dispose"), this.off(); } } class pc extends Ta.EventTarget { constructor() { super(), (this.pendingTimelineChanges_ = {}), (this.lastTimelineChanges_ = {}); } clearPendingTimelineChange(e) { (this.pendingTimelineChanges_[e] = null), this.trigger("pendingtimelinechange"); } pendingTimelineChange({ type: e, from: t, to: n }) { return ( "number" == typeof t && "number" == typeof n && ((this.pendingTimelineChanges_[e] = { type: e, from: t, to: n }), this.trigger("pendingtimelinechange")), this.pendingTimelineChanges_[e] ); } lastTimelineChange({ type: e, from: t, to: n }) { return ( "number" == typeof t && "number" == typeof n && ((this.lastTimelineChanges_[e] = { type: e, from: t, to: n }), delete this.pendingTimelineChanges_[e], this.trigger("timelinechange")), this.lastTimelineChanges_[e] ); } dispose() { this.trigger("dispose"), (this.pendingTimelineChanges_ = {}), (this.lastTimelineChanges_ = {}), this.off(); } } const hc = Ws( $s(function () { var e = (function () { function e() { this.listeners = {}; } var t = e.prototype; return ( (t.on = function (e, t) { this.listeners[e] || (this.listeners[e] = []), this.listeners[e].push(t); }), (t.off = function (e, t) { if (!this.listeners[e]) return !1; var n = this.listeners[e].indexOf(t); return ( (this.listeners[e] = this.listeners[e].slice(0)), this.listeners[e].splice(n, 1), n > -1 ); }), (t.trigger = function (e) { var t = this.listeners[e]; if (t) if (2 === arguments.length) for (var n = t.length, r = 0; r < n; ++r) t[r].call(this, arguments[1]); else for ( var i = Array.prototype.slice.call(arguments, 1), o = t.length, a = 0; a < o; ++a ) t[a].apply(this, i); }), (t.dispose = function () { this.listeners = {}; }), (t.pipe = function (e) { this.on("data", function (t) { e.push(t); }); }), e ); })(); let t = null; class r { constructor(e) { let n, r, i; t || (t = (function () { const e = [ [[], [], [], [], []], [[], [], [], [], []], ], t = e[0], n = e[1], r = t[4], i = n[4]; let o, a, s; const u = [], c = []; let l, f, d, p, h, g; for (o = 0; o < 256; o++) c[(u[o] = (o << 1) ^ (283 * (o >> 7))) ^ o] = o; for (a = s = 0; !r[a]; a ^= l || 1, s = c[s] || 1) for ( p = s ^ (s << 1) ^ (s << 2) ^ (s << 3) ^ (s << 4), p = (p >> 8) ^ (255 & p) ^ 99, r[a] = p, i[p] = a, d = u[(f = u[(l = u[a])])], g = (16843009 * d) ^ (65537 * f) ^ (257 * l) ^ (16843008 * a), h = (257 * u[p]) ^ (16843008 * p), o = 0; o < 4; o++ ) (t[o][a] = h = (h << 24) ^ (h >>> 8)), (n[o][p] = g = (g << 24) ^ (g >>> 8)); for (o = 0; o < 5; o++) (t[o] = t[o].slice(0)), (n[o] = n[o].slice(0)); return e; })()), (this._tables = [ [ t[0][0].slice(), t[0][1].slice(), t[0][2].slice(), t[0][3].slice(), t[0][4].slice(), ], [ t[1][0].slice(), t[1][1].slice(), t[1][2].slice(), t[1][3].slice(), t[1][4].slice(), ], ]); const o = this._tables[0][4], a = this._tables[1], s = e.length; let u = 1; if (4 !== s && 6 !== s && 8 !== s) throw new Error("Invalid aes key size"); const c = e.slice(0), l = []; for (this._key = [c, l], n = s; n < 4 * s + 28; n++) (i = c[n - 1]), (n % s == 0 || (8 === s && n % s == 4)) && ((i = (o[i >>> 24] << 24) ^ (o[(i >> 16) & 255] << 16) ^ (o[(i >> 8) & 255] << 8) ^ o[255 & i]), n % s == 0 && ((i = (i << 8) ^ (i >>> 24) ^ (u << 24)), (u = (u << 1) ^ (283 * (u >> 7))))), (c[n] = c[n - s] ^ i); for (r = 0; n; r++, n--) (i = c[3 & r ? n : n - 4]), (l[r] = n <= 4 || r < 4 ? i : a[0][o[i >>> 24]] ^ a[1][o[(i >> 16) & 255]] ^ a[2][o[(i >> 8) & 255]] ^ a[3][o[255 & i]]); } decrypt(e, t, n, r, i, o) { const a = this._key[1]; let s, u, c, l = e ^ a[0], f = r ^ a[1], d = n ^ a[2], p = t ^ a[3]; const h = a.length / 4 - 2; let g, m = 4; const y = this._tables[1], v = y[0], b = y[1], _ = y[2], w = y[3], T = y[4]; for (g = 0; g < h; g++) (s = v[l >>> 24] ^ b[(f >> 16) & 255] ^ _[(d >> 8) & 255] ^ w[255 & p] ^ a[m]), (u = v[f >>> 24] ^ b[(d >> 16) & 255] ^ _[(p >> 8) & 255] ^ w[255 & l] ^ a[m + 1]), (c = v[d >>> 24] ^ b[(p >> 16) & 255] ^ _[(l >> 8) & 255] ^ w[255 & f] ^ a[m + 2]), (p = v[p >>> 24] ^ b[(l >> 16) & 255] ^ _[(f >> 8) & 255] ^ w[255 & d] ^ a[m + 3]), (m += 4), (l = s), (f = u), (d = c); for (g = 0; g < 4; g++) (i[(3 & -g) + o] = (T[l >>> 24] << 24) ^ (T[(f >> 16) & 255] << 16) ^ (T[(d >> 8) & 255] << 8) ^ T[255 & p] ^ a[m++]), (s = l), (l = f), (f = d), (d = p), (p = s); } } class i extends e { constructor() { super(e), (this.jobs = []), (this.delay = 1), (this.timeout_ = null); } processJob_() { this.jobs.shift()(), this.jobs.length ? (this.timeout_ = setTimeout( this.processJob_.bind(this), this.delay )) : (this.timeout_ = null); } push(e) { this.jobs.push(e), this.timeout_ || (this.timeout_ = setTimeout( this.processJob_.bind(this), this.delay )); } } const o = function (e) { return ( (e << 24) | ((65280 & e) << 8) | ((16711680 & e) >> 8) | (e >>> 24) ); }; class a { constructor(e, t, n, r) { const s = a.STEP, u = new Int32Array(e.buffer), c = new Uint8Array(e.byteLength); let l = 0; for ( this.asyncStream_ = new i(), this.asyncStream_.push( this.decryptChunk_(u.subarray(l, l + s), t, n, c) ), l = s; l < u.length; l += s ) (n = new Uint32Array([ o(u[l - 4]), o(u[l - 3]), o(u[l - 2]), o(u[l - 1]), ])), this.asyncStream_.push( this.decryptChunk_(u.subarray(l, l + s), t, n, c) ); this.asyncStream_.push(function () { var e; r( null, (e = c).subarray(0, e.byteLength - e[e.byteLength - 1]) ); }); } static get STEP() { return 32e3; } decryptChunk_(e, t, n, i) { return function () { const a = (function (e, t, n) { const i = new Int32Array( e.buffer, e.byteOffset, e.byteLength >> 2 ), a = new r(Array.prototype.slice.call(t)), s = new Uint8Array(e.byteLength), u = new Int32Array(s.buffer); let c, l, f, d, p, h, g, m, y; for ( c = n[0], l = n[1], f = n[2], d = n[3], y = 0; y < i.length; y += 4 ) (p = o(i[y])), (h = o(i[y + 1])), (g = o(i[y + 2])), (m = o(i[y + 3])), a.decrypt(p, h, g, m, u, y), (u[y] = o(u[y] ^ c)), (u[y + 1] = o(u[y + 1] ^ l)), (u[y + 2] = o(u[y + 2] ^ f)), (u[y + 3] = o(u[y + 3] ^ d)), (c = p), (l = h), (f = g), (d = m); return s; })(e, t, n); i.set(a, e.byteOffset); }; } } var s, u = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== n.g ? n.g : "undefined" != typeof self ? self : {}; s = "undefined" != typeof window ? window : void 0 !== u ? u : "undefined" != typeof self ? self : {}; var c = s.BigInt || Number; c("0x1"), c("0x100"), c("0x10000"), c("0x1000000"), c("0x100000000"), c("0x10000000000"), c("0x1000000000000"), c("0x100000000000000"), c("0x10000000000000000"), (function () { var e = new Uint16Array([65484]), t = new Uint8Array(e.buffer, e.byteOffset, e.byteLength); 255 === t[0] || t[0]; })(); const l = function (e) { const t = {}; return ( Object.keys(e).forEach((n) => { const r = e[n]; var i; (i = r), ( "function" === ArrayBuffer.isView ? ArrayBuffer.isView(i) : i && i.buffer instanceof ArrayBuffer ) ? (t[n] = { bytes: r.buffer, byteOffset: r.byteOffset, byteLength: r.byteLength, }) : (t[n] = r); }), t ); }; self.onmessage = function (e) { const t = e.data, n = new Uint8Array( t.encrypted.bytes, t.encrypted.byteOffset, t.encrypted.byteLength ), r = new Uint32Array( t.key.bytes, t.key.byteOffset, t.key.byteLength / 4 ), i = new Uint32Array( t.iv.bytes, t.iv.byteOffset, t.iv.byteLength / 4 ); new a(n, r, i, function (e, n) { self.postMessage(l({ source: t.source, decrypted: n }), [ n.buffer, ]); }); }; }) ); var gc = Vs(hc); const mc = (e) => { let t = e.default ? "main" : "alternative"; return ( e.characteristics && e.characteristics.indexOf( "public.accessibility.describes-video" ) >= 0 && (t = "main-desc"), t ); }, yc = (e, t) => { e.abort(), e.pause(), t && t.activePlaylistLoader && (t.activePlaylistLoader.pause(), (t.activePlaylistLoader = null)); }, vc = (e, t) => { (t.activePlaylistLoader = e), e.load(); }, bc = { AUDIO: (e, t) => () => { const { segmentLoaders: { [e]: n }, mediaTypes: { [e]: r }, excludePlaylist: i, } = t; yc(n, r); const o = r.activeTrack(), a = r.activeGroup(), s = (a.filter((e) => e.default)[0] || a[0]).id, u = r.tracks[s]; if (o !== u) { Ta.log.warn( "Problem encountered loading the alternate audio track.Switching back to default." ); for (const e in r.tracks) r.tracks[e].enabled = r.tracks[e] === u; r.onTrackChanged(); } else i({ error: { message: "Problem encountered loading the default audio track.", }, }); }, SUBTITLES: (e, t) => () => { const { segmentLoaders: { [e]: n }, mediaTypes: { [e]: r }, } = t; Ta.log.warn( "Problem encountered loading the subtitle track.Disabling subtitle track." ), yc(n, r); const i = r.activeTrack(); i && (i.mode = "disabled"), r.onTrackChanged(); }, }, _c = { AUDIO: (e, t, n) => { if (!t) return; const { tech: r, requestOptions: i, segmentLoaders: { [e]: o }, } = n; t.on("loadedmetadata", () => { const e = t.media(); o.playlist(e, i), (!r.paused() || (e.endList && "none" !== r.preload())) && o.load(); }), t.on("loadedplaylist", () => { o.playlist(t.media(), i), r.paused() || o.load(); }), t.on("error", bc[e](e, n)); }, SUBTITLES: (e, t, n) => { const { tech: r, requestOptions: i, segmentLoaders: { [e]: o }, mediaTypes: { [e]: a }, } = n; t.on("loadedmetadata", () => { const e = t.media(); o.playlist(e, i), o.track(a.activeTrack()), (!r.paused() || (e.endList && "none" !== r.preload())) && o.load(); }), t.on("loadedplaylist", () => { o.playlist(t.media(), i), r.paused() || o.load(); }), t.on("error", bc[e](e, n)); }, }, wc = { AUDIO: (e, t) => { const { vhs: n, sourceType: r, segmentLoaders: { [e]: i }, requestOptions: o, main: { mediaGroups: a }, mediaTypes: { [e]: { groups: s, tracks: u, logger_: c }, }, mainPlaylistLoader: l, } = t, f = is(l.main); (a[e] && 0 !== Object.keys(a[e]).length) || ((a[e] = { main: { default: { default: !0 } } }), f && (a[e].main.default.playlists = l.main.playlists)); for (const i in a[e]) { s[i] || (s[i] = []); for (const d in a[e][i]) { let p, h = a[e][i][d]; if ( (f ? (c(`AUDIO group '${i}' label '${d}' is a main playlist`), (h.isMainPlaylist = !0), (p = null)) : (p = "vhs-json" === r && h.playlists ? new bs(h.playlists[0], n, o) : h.resolvedUri ? new bs(h.resolvedUri, n, o) : h.playlists && "dash" === r ? new Hs(h.playlists[0], n, o, l) : null), (h = Ia({ id: d, playlistLoader: p }, h)), _c[e](e, h.playlistLoader, t), s[i].push(h), void 0 === u[d]) ) { const e = new Ta.AudioTrack({ id: d, kind: mc(h), enabled: !1, language: h.language, default: h.default, label: d, }); u[d] = e; } } } i.on("error", bc[e](e, t)); }, SUBTITLES: (e, t) => { const { tech: n, vhs: r, sourceType: i, segmentLoaders: { [e]: o }, requestOptions: a, main: { mediaGroups: s }, mediaTypes: { [e]: { groups: u, tracks: c }, }, mainPlaylistLoader: l, } = t; for (const o in s[e]) { u[o] || (u[o] = []); for (const f in s[e][o]) { if (s[e][o][f].forced) continue; let d, p = s[e][o][f]; if ("hls" === i) d = new bs(p.resolvedUri, r, a); else if ("dash" === i) { if ( !p.playlists.filter((e) => e.excludeUntil !== 1 / 0).length ) return; d = new Hs(p.playlists[0], r, a, l); } else "vhs-json" === i && (d = new bs( p.playlists ? p.playlists[0] : p.resolvedUri, r, a )); if ( ((p = Ia({ id: f, playlistLoader: d }, p)), _c[e](e, p.playlistLoader, t), u[o].push(p), void 0 === c[f]) ) { const e = n.addRemoteTextTrack( { id: f, kind: "subtitles", default: p.default && p.autoselect, language: p.language, label: f, }, !1 ).track; c[f] = e; } } } o.on("error", bc[e](e, t)); }, "CLOSED-CAPTIONS": (e, t) => { const { tech: n, main: { mediaGroups: r }, mediaTypes: { [e]: { groups: i, tracks: o }, }, } = t; for (const t in r[e]) { i[t] || (i[t] = []); for (const a in r[e][t]) { const s = r[e][t][a]; if (!/^(?:CC|SERVICE)/.test(s.instreamId)) continue; const u = (n.options_.vhs && n.options_.vhs.captionServices) || {}; let c = { label: a, language: s.language, instreamId: s.instreamId, default: s.default && s.autoselect, }; if ( (u[c.instreamId] && (c = Ia(c, u[c.instreamId])), void 0 === c.default && delete c.default, i[t].push(Ia({ id: a }, s)), void 0 === o[a]) ) { const e = n.addRemoteTextTrack( { id: c.instreamId, kind: "captions", default: c.default, language: c.language, label: c.label, }, !1 ).track; o[a] = e; } } } }, }, Tc = (e, t) => { for (let n = 0; n < e.length; n++) { if (ns(t, e[n])) return !0; if (e[n].playlists && Tc(e[n].playlists, t)) return !0; } return !1; }, xc = { AUDIO: (e, t) => () => { const { mediaTypes: { [e]: { tracks: n }, }, } = t; for (const e in n) if (n[e].enabled) return n[e]; return null; }, SUBTITLES: (e, t) => () => { const { mediaTypes: { [e]: { tracks: n }, }, } = t; for (const e in n) if ("showing" === n[e].mode || "hidden" === n[e].mode) return n[e]; return null; }, }, Sc = (e) => { ["AUDIO", "SUBTITLES", "CLOSED-CAPTIONS"].forEach((t) => { wc[t](t, e); }); const { mediaTypes: t, mainPlaylistLoader: n, tech: r, vhs: i, segmentLoaders: { AUDIO: o, main: a }, } = e; ["AUDIO", "SUBTITLES"].forEach((n) => { (t[n].activeGroup = ((e, t) => (n) => { const { mainPlaylistLoader: r, mediaTypes: { [e]: { groups: i }, }, } = t, o = r.media(); if (!o) return null; let a = null; o.attributes[e] && (a = i[o.attributes[e]]); const s = Object.keys(i); if (!a) if ("AUDIO" === e && s.length > 1 && is(t.main)) for (let e = 0; e < s.length; e++) { const t = i[s[e]]; if (Tc(t, o)) { a = t; break; } } else i.main ? (a = i.main) : 1 === s.length && (a = i[s[0]]); return void 0 === n ? a : (null !== n && a && a.filter((e) => e.id === n.id)[0]) || null; })(n, e)), (t[n].activeTrack = xc[n](n, e)), (t[n].onGroupChanged = ((e, t) => () => { const { segmentLoaders: { [e]: n, main: r }, mediaTypes: { [e]: i }, } = t, o = i.activeTrack(), a = i.getActiveGroup(), s = i.activePlaylistLoader, u = i.lastGroup_; (a && u && a.id === u.id) || ((i.lastGroup_ = a), (i.lastTrack_ = o), yc(n, i), a && !a.isMainPlaylist && (a.playlistLoader ? (n.resyncLoader(), vc(a.playlistLoader, i)) : s && r.resetEverything())); })(n, e)), (t[n].onGroupChanging = ((e, t) => () => { const { segmentLoaders: { [e]: n }, mediaTypes: { [e]: r }, } = t; (r.lastGroup_ = null), n.abort(), n.pause(); })(n, e)), (t[n].onTrackChanged = ((e, t) => () => { const { mainPlaylistLoader: n, segmentLoaders: { [e]: r, main: i }, mediaTypes: { [e]: o }, } = t, a = o.activeTrack(), s = o.getActiveGroup(), u = o.activePlaylistLoader, c = o.lastTrack_; if ( (!c || !a || c.id !== a.id) && ((o.lastGroup_ = s), (o.lastTrack_ = a), yc(r, o), s) ) { if (s.isMainPlaylist) { if (!a || !c || a.id === c.id) return; const e = t.vhs.playlistController_, r = e.selectPlaylist(); if (e.media() === r) return; return ( o.logger_( `track change. Switching main audio from ${c.id} to ${a.id}` ), n.pause(), i.resetEverything(), void e.fastQualityChange_(r) ); } if ("AUDIO" === e) { if (!s.playlistLoader) return i.setAudio(!0), void i.resetEverything(); r.setAudio(!0), i.setAudio(!1); } u !== s.playlistLoader ? (r.track && r.track(a), r.resetEverything(), vc(s.playlistLoader, o)) : vc(s.playlistLoader, o); } })(n, e)), (t[n].getActiveGroup = ( (e, { mediaTypes: t }) => () => { const n = t[e].activeTrack(); return n ? t[e].activeGroup(n) : null; } )(n, e)); }); const s = t.AUDIO.activeGroup(); if (s) { const e = (s.filter((e) => e.default)[0] || s[0]).id; (t.AUDIO.tracks[e].enabled = !0), t.AUDIO.onGroupChanged(), t.AUDIO.onTrackChanged(); t.AUDIO.getActiveGroup().playlistLoader ? (a.setAudio(!1), o.setAudio(!0)) : a.setAudio(!0); } n.on("mediachange", () => { ["AUDIO", "SUBTITLES"].forEach((e) => t[e].onGroupChanged()); }), n.on("mediachanging", () => { ["AUDIO", "SUBTITLES"].forEach((e) => t[e].onGroupChanging()); }); const u = () => { t.AUDIO.onTrackChanged(), r.trigger({ type: "usage", name: "vhs-audio-change" }); }; r.audioTracks().addEventListener("change", u), r .remoteTextTracks() .addEventListener("change", t.SUBTITLES.onTrackChanged), i.on("dispose", () => { r.audioTracks().removeEventListener("change", u), r .remoteTextTracks() .removeEventListener("change", t.SUBTITLES.onTrackChanged); }), r.clearTracks("audio"); for (const e in t.AUDIO.tracks) r.audioTracks().addTrack(t.AUDIO.tracks[e]); }; let kc; const Ec = [ "mediaRequests", "mediaRequestsAborted", "mediaRequestsTimedout", "mediaRequestsErrored", "mediaTransferDuration", "mediaBytesTransferred", "mediaAppends", ], Oc = function (e) { return this.audioSegmentLoader_[e] + this.mainSegmentLoader_[e]; }; class Cc extends Ta.EventTarget { constructor(e) { super(); const { src: t, withCredentials: n, tech: r, bandwidth: o, externVhs: a, useCueTags: s, playlistExclusionDuration: u, enableLowInitialPlaylist: c, sourceType: l, cacheEncryptionKeys: f, bufferBasedABR: d, leastPixelDiffSelector: p, captionServices: h, } = e; if (!t) throw new Error( "A non-empty playlist URL or JSON manifest string is required" ); let { maxPlaylistRetries: g } = e; null == g && (g = 1 / 0), (kc = a), (this.bufferBasedABR = Boolean(d)), (this.leastPixelDiffSelector = Boolean(p)), (this.withCredentials = n), (this.tech_ = r), (this.vhs_ = r.vhs), (this.sourceType_ = l), (this.useCueTags_ = s), (this.playlistExclusionDuration = u), (this.maxPlaylistRetries = g), (this.enableLowInitialPlaylist = c), this.useCueTags_ && ((this.cueTagsTrack_ = this.tech_.addTextTrack( "metadata", "ad-cues" )), (this.cueTagsTrack_.inBandMetadataTrackDispatchType = "")), (this.requestOptions_ = { withCredentials: n, maxPlaylistRetries: g, timeout: null, }), this.on("error", this.pauseLoading), (this.mediaTypes_ = (() => { const e = {}; return ( ["AUDIO", "SUBTITLES", "CLOSED-CAPTIONS"].forEach((t) => { e[t] = { groups: {}, tracks: {}, activePlaylistLoader: null, activeGroup: Fu, activeTrack: Fu, getActiveGroup: Fu, onGroupChanged: Fu, onTrackChanged: Fu, lastTrack_: null, logger_: Aa(`MediaGroups[${t}]`), }; }), e ); })()), (this.mediaSource = new (i().MediaSource)()), (this.handleDurationChange_ = this.handleDurationChange_.bind(this)), (this.handleSourceOpen_ = this.handleSourceOpen_.bind(this)), (this.handleSourceEnded_ = this.handleSourceEnded_.bind(this)), this.mediaSource.addEventListener( "durationchange", this.handleDurationChange_ ), this.mediaSource.addEventListener( "sourceopen", this.handleSourceOpen_ ), this.mediaSource.addEventListener( "sourceended", this.handleSourceEnded_ ), (this.seekable_ = Ma()), (this.hasPlayed_ = !1), (this.syncController_ = new dc(e)), (this.segmentMetadataTrack_ = r.addRemoteTextTrack( { kind: "metadata", label: "segment-metadata" }, !1 ).track), (this.decrypter_ = new gc()), (this.sourceUpdater_ = new oc(this.mediaSource)), (this.inbandTextTracks_ = {}), (this.timelineChangeController_ = new pc()); const m = { vhs: this.vhs_, parse708captions: e.parse708captions, useDtsForTimestampOffset: e.useDtsForTimestampOffset, captionServices: h, mediaSource: this.mediaSource, currentTime: this.tech_.currentTime.bind(this.tech_), seekable: () => this.seekable(), seeking: () => this.tech_.seeking(), duration: () => this.duration(), hasPlayed: () => this.hasPlayed_, goalBufferLength: () => this.goalBufferLength(), bandwidth: o, syncController: this.syncController_, decrypter: this.decrypter_, sourceType: this.sourceType_, inbandTextTracks: this.inbandTextTracks_, cacheEncryptionKeys: f, sourceUpdater: this.sourceUpdater_, timelineChangeController: this.timelineChangeController_, exactManifestTimings: e.exactManifestTimings, }; (this.mainPlaylistLoader_ = "dash" === this.sourceType_ ? new Hs(t, this.vhs_, this.requestOptions_) : new bs(t, this.vhs_, this.requestOptions_)), this.setupMainPlaylistLoaderListeners_(), (this.mainSegmentLoader_ = new Uu( Ia(m, { segmentMetadataTrack: this.segmentMetadataTrack_, loaderType: "main", }), e )), (this.audioSegmentLoader_ = new Uu( Ia(m, { loaderType: "audio" }), e )), (this.subtitleSegmentLoader_ = new cc( Ia(m, { loaderType: "vtt", featuresNativeTextTracks: this.tech_.featuresNativeTextTracks, loadVttJs: () => new Promise((e, t) => { function n() { r.off("vttjserror", i), e(); } function i() { r.off("vttjsloaded", n), t(); } r.one("vttjsloaded", n), r.one("vttjserror", i), r.addWebVttScript_(); }), }), e )), this.setupSegmentLoaderListeners_(), this.bufferBasedABR && (this.mainPlaylistLoader_.one("loadedplaylist", () => this.startABRTimer_() ), this.tech_.on("pause", () => this.stopABRTimer_()), this.tech_.on("play", () => this.startABRTimer_())), Ec.forEach((e) => { this[e + "_"] = Oc.bind(this, e); }), (this.logger_ = Aa("pc")), (this.triggeredFmp4Usage = !1), "none" === this.tech_.preload() ? ((this.loadOnPlay_ = () => { (this.loadOnPlay_ = null), this.mainPlaylistLoader_.load(); }), this.tech_.one("play", this.loadOnPlay_)) : this.mainPlaylistLoader_.load(), (this.timeToLoadedData__ = -1), (this.mainAppendsToLoadedData__ = -1), (this.audioAppendsToLoadedData__ = -1); const y = "none" === this.tech_.preload() ? "play" : "loadstart"; this.tech_.one(y, () => { const e = Date.now(); this.tech_.one("loadeddata", () => { (this.timeToLoadedData__ = Date.now() - e), (this.mainAppendsToLoadedData__ = this.mainSegmentLoader_.mediaAppends), (this.audioAppendsToLoadedData__ = this.audioSegmentLoader_.mediaAppends); }); }); } mainAppendsToLoadedData_() { return this.mainAppendsToLoadedData__; } audioAppendsToLoadedData_() { return this.audioAppendsToLoadedData__; } appendsToLoadedData_() { const e = this.mainAppendsToLoadedData_(), t = this.audioAppendsToLoadedData_(); return -1 === e || -1 === t ? -1 : e + t; } timeToLoadedData_() { return this.timeToLoadedData__; } checkABR_(e = "abr") { const t = this.selectPlaylist(); t && this.shouldSwitchToMedia_(t) && this.switchMedia_(t, e); } switchMedia_(e, t, n) { const r = this.media(), i = r && (r.id || r.uri), o = e.id || e.uri; i && i !== o && (this.logger_(`switch media ${i} -> ${o} from ${t}`), this.tech_.trigger({ type: "usage", name: `vhs-rendition-change-${t}`, })), this.mainPlaylistLoader_.media(e, n); } startABRTimer_() { this.stopABRTimer_(), (this.abrTimer_ = i().setInterval(() => this.checkABR_(), 250)); } stopABRTimer_() { (this.tech_.scrubbing && this.tech_.scrubbing()) || (i().clearInterval(this.abrTimer_), (this.abrTimer_ = null)); } getAudioTrackPlaylists_() { const e = this.main(), t = (e && e.playlists) || []; if (!e || !e.mediaGroups || !e.mediaGroups.AUDIO) return t; const n = e.mediaGroups.AUDIO, r = Object.keys(n); let i; if (Object.keys(this.mediaTypes_.AUDIO.groups).length) i = this.mediaTypes_.AUDIO.activeTrack(); else { const e = n.main || (r.length && n[r[0]]); for (const t in e) if (e[t].default) { i = { label: t }; break; } } if (!i) return t; const o = []; for (const t in n) if (n[t][i.label]) { const r = n[t][i.label]; if (r.playlists && r.playlists.length) o.push.apply(o, r.playlists); else if (r.uri) o.push(r); else if (e.playlists.length) for (let n = 0; n < e.playlists.length; n++) { const r = e.playlists[n]; r.attributes && r.attributes.AUDIO && r.attributes.AUDIO === t && o.push(r); } } return o.length ? o : t; } setupMainPlaylistLoaderListeners_() { this.mainPlaylistLoader_.on("loadedmetadata", () => { const e = this.mainPlaylistLoader_.media(), t = 1.5 * e.targetDuration * 1e3; ts(this.mainPlaylistLoader_.main, this.mainPlaylistLoader_.media()) ? (this.requestOptions_.timeout = 0) : (this.requestOptions_.timeout = t), e.endList && "none" !== this.tech_.preload() && (this.mainSegmentLoader_.playlist(e, this.requestOptions_), this.mainSegmentLoader_.load()), Sc({ sourceType: this.sourceType_, segmentLoaders: { AUDIO: this.audioSegmentLoader_, SUBTITLES: this.subtitleSegmentLoader_, main: this.mainSegmentLoader_, }, tech: this.tech_, requestOptions: this.requestOptions_, mainPlaylistLoader: this.mainPlaylistLoader_, vhs: this.vhs_, main: this.main(), mediaTypes: this.mediaTypes_, excludePlaylist: this.excludePlaylist.bind(this), }), this.triggerPresenceUsage_(this.main(), e), this.setupFirstPlay(), !this.mediaTypes_.AUDIO.activePlaylistLoader || this.mediaTypes_.AUDIO.activePlaylistLoader.media() ? this.trigger("selectedinitialmedia") : this.mediaTypes_.AUDIO.activePlaylistLoader.one( "loadedmetadata", () => { this.trigger("selectedinitialmedia"); } ); }), this.mainPlaylistLoader_.on("loadedplaylist", () => { this.loadOnPlay_ && this.tech_.off("play", this.loadOnPlay_); let e = this.mainPlaylistLoader_.media(); if (!e) { let t; if ( (this.excludeUnsupportedVariants_(), this.enableLowInitialPlaylist && (t = this.selectInitialPlaylist()), t || (t = this.selectPlaylist()), !t || !this.shouldSwitchToMedia_(t)) ) return; (this.initialMedia_ = t), this.switchMedia_(this.initialMedia_, "initial"); if ( !( "vhs-json" === this.sourceType_ && this.initialMedia_.segments ) ) return; e = this.initialMedia_; } this.handleUpdatedMediaPlaylist(e); }), this.mainPlaylistLoader_.on("error", () => { const e = this.mainPlaylistLoader_.error; this.excludePlaylist({ playlistToExclude: e.playlist, error: e }); }), this.mainPlaylistLoader_.on("mediachanging", () => { this.mainSegmentLoader_.abort(), this.mainSegmentLoader_.pause(); }), this.mainPlaylistLoader_.on("mediachange", () => { const e = this.mainPlaylistLoader_.media(), t = 1.5 * e.targetDuration * 1e3; ts( this.mainPlaylistLoader_.main, this.mainPlaylistLoader_.media() ) ? (this.requestOptions_.timeout = 0) : (this.requestOptions_.timeout = t), this.mainPlaylistLoader_.load(), this.mainSegmentLoader_.playlist(e, this.requestOptions_), this.mainSegmentLoader_.load(), this.tech_.trigger({ type: "mediachange", bubbles: !0 }); }), this.mainPlaylistLoader_.on("playlistunchanged", () => { const e = this.mainPlaylistLoader_.media(); if ("playlist-unchanged" === e.lastExcludeReason_) return; this.stuckAtPlaylistEnd_(e) && (this.excludePlaylist({ error: { message: "Playlist no longer updating.", reason: "playlist-unchanged", }, }), this.tech_.trigger("playliststuck")); }), this.mainPlaylistLoader_.on("renditiondisabled", () => { this.tech_.trigger({ type: "usage", name: "vhs-rendition-disabled", }); }), this.mainPlaylistLoader_.on("renditionenabled", () => { this.tech_.trigger({ type: "usage", name: "vhs-rendition-enabled", }); }); } handleUpdatedMediaPlaylist(e) { this.useCueTags_ && this.updateAdCues_(e), this.mainSegmentLoader_.playlist(e, this.requestOptions_), this.updateDuration(!e.endList), this.tech_.paused() || (this.mainSegmentLoader_.load(), this.audioSegmentLoader_ && this.audioSegmentLoader_.load()); } triggerPresenceUsage_(e, t) { const n = e.mediaGroups || {}; let r = !0; const i = Object.keys(n.AUDIO); for (const e in n.AUDIO) for (const t in n.AUDIO[e]) { n.AUDIO[e][t].uri || (r = !1); } r && this.tech_.trigger({ type: "usage", name: "vhs-demuxed" }), Object.keys(n.SUBTITLES).length && this.tech_.trigger({ type: "usage", name: "vhs-webvtt" }), kc.Playlist.isAes(t) && this.tech_.trigger({ type: "usage", name: "vhs-aes" }), i.length && Object.keys(n.AUDIO[i[0]]).length > 1 && this.tech_.trigger({ type: "usage", name: "vhs-alternate-audio", }), this.useCueTags_ && this.tech_.trigger({ type: "usage", name: "vhs-playlist-cue-tags", }); } shouldSwitchToMedia_(e) { const t = this.mainPlaylistLoader_.media() || this.mainPlaylistLoader_.pendingMedia_, n = this.tech_.currentTime(), r = this.bufferLowWaterLine(), i = this.bufferHighWaterLine(); return (function ({ currentPlaylist: e, buffered: t, currentTime: n, nextPlaylist: r, bufferLowWaterLine: i, bufferHighWaterLine: o, duration: a, bufferBasedABR: s, log: u, }) { if (!r) return ( Ta.log.warn( "We received no playlist to switch to. Please check your stream." ), !1 ); const c = `allowing switch ${(e && e.id) || "null"} -> ${r.id}`; if (!e) return u(`${c} as current playlist is not set`), !0; if (r.id === e.id) return !1; const l = Boolean(ja(t, n).length); if (!e.endList) return l || "number" != typeof e.partTargetDuration ? (u(`${c} as current playlist is live`), !0) : (u( `not ${c} as current playlist is live llhls, but currentTime isn't in buffered.` ), !1); const f = za(t, n), d = s ? qs.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE : qs.MAX_BUFFER_LOW_WATER_LINE; if (a < d) return ( u(`${c} as duration < max low water line (${a} < ${d})`), !0 ); const p = r.attributes.BANDWIDTH, h = e.attributes.BANDWIDTH; if (p < h && (!s || f < o)) { let e = `${c} as next bandwidth < current bandwidth (${p} < ${h})`; return ( s && (e += ` and forwardBuffer < bufferHighWaterLine (${f} < ${o})`), u(e), !0 ); } if ((!s || p > h) && f >= i) { let e = `${c} as forwardBuffer >= bufferLowWaterLine (${f} >= ${i})`; return ( s && (e += ` and next bandwidth > current bandwidth (${p} > ${h})`), u(e), !0 ); } return u(`not ${c} as no switching criteria met`), !1; })({ buffered: this.tech_.buffered(), currentTime: n, currentPlaylist: t, nextPlaylist: e, bufferLowWaterLine: r, bufferHighWaterLine: i, duration: this.duration(), bufferBasedABR: this.bufferBasedABR, log: this.logger_, }); } setupSegmentLoaderListeners_() { this.mainSegmentLoader_.on("bandwidthupdate", () => { this.checkABR_("bandwidthupdate"), this.tech_.trigger("bandwidthupdate"); }), this.mainSegmentLoader_.on("timeout", () => { this.bufferBasedABR && this.mainSegmentLoader_.load(); }), this.bufferBasedABR || this.mainSegmentLoader_.on("progress", () => { this.trigger("progress"); }), this.mainSegmentLoader_.on("error", () => { const e = this.mainSegmentLoader_.error(); this.excludePlaylist({ playlistToExclude: e.playlist, error: e }); }), this.mainSegmentLoader_.on("appenderror", () => { (this.error = this.mainSegmentLoader_.error_), this.trigger("error"); }), this.mainSegmentLoader_.on("syncinfoupdate", () => { this.onSyncInfoUpdate_(); }), this.mainSegmentLoader_.on("timestampoffset", () => { this.tech_.trigger({ type: "usage", name: "vhs-timestamp-offset", }); }), this.audioSegmentLoader_.on("syncinfoupdate", () => { this.onSyncInfoUpdate_(); }), this.audioSegmentLoader_.on("appenderror", () => { (this.error = this.audioSegmentLoader_.error_), this.trigger("error"); }), this.mainSegmentLoader_.on("ended", () => { this.logger_("main segment loader ended"), this.onEndOfStream(); }), this.mainSegmentLoader_.on("earlyabort", (e) => { this.bufferBasedABR || (this.delegateLoaders_("all", ["abort"]), this.excludePlaylist({ error: { message: "Aborted early because there isn't enough bandwidth to complete the request without rebuffering.", }, playlistExclusionDuration: 120, })); }); const e = () => { if (!this.sourceUpdater_.hasCreatedSourceBuffers()) return this.tryToCreateSourceBuffers_(); const e = this.getCodecsOrExclude_(); e && this.sourceUpdater_.addOrChangeSourceBuffers(e); }; this.mainSegmentLoader_.on("trackinfo", e), this.audioSegmentLoader_.on("trackinfo", e), this.mainSegmentLoader_.on("fmp4", () => { this.triggeredFmp4Usage || (this.tech_.trigger({ type: "usage", name: "vhs-fmp4" }), (this.triggeredFmp4Usage = !0)); }), this.audioSegmentLoader_.on("fmp4", () => { this.triggeredFmp4Usage || (this.tech_.trigger({ type: "usage", name: "vhs-fmp4" }), (this.triggeredFmp4Usage = !0)); }), this.audioSegmentLoader_.on("ended", () => { this.logger_("audioSegmentLoader ended"), this.onEndOfStream(); }); } mediaSecondsLoaded_() { return Math.max( this.audioSegmentLoader_.mediaSecondsLoaded + this.mainSegmentLoader_.mediaSecondsLoaded ); } load() { this.mainSegmentLoader_.load(), this.mediaTypes_.AUDIO.activePlaylistLoader && this.audioSegmentLoader_.load(), this.mediaTypes_.SUBTITLES.activePlaylistLoader && this.subtitleSegmentLoader_.load(); } fastQualityChange_(e = this.selectPlaylist()) { e !== this.mainPlaylistLoader_.media() ? (this.switchMedia_(e, "fast-quality"), this.mainSegmentLoader_.resetEverything(() => { Ta.browser.IE_VERSION || Ta.browser.IS_EDGE ? this.tech_.setCurrentTime(this.tech_.currentTime() + 0.04) : this.tech_.setCurrentTime(this.tech_.currentTime()); })) : this.logger_( "skipping fastQualityChange because new media is same as old" ); } play() { if (this.setupFirstPlay()) return; this.tech_.ended() && this.tech_.setCurrentTime(0), this.hasPlayed_ && this.load(); const e = this.tech_.seekable(); return this.tech_.duration() === 1 / 0 && this.tech_.currentTime() < e.start(0) ? this.tech_.setCurrentTime(e.end(e.length - 1)) : void 0; } setupFirstPlay() { const e = this.mainPlaylistLoader_.media(); if (!e || this.tech_.paused() || this.hasPlayed_) return !1; if (!e.endList) { const e = this.seekable(); if (!e.length) return !1; if (Ta.browser.IE_VERSION && 0 === this.tech_.readyState()) return ( this.tech_.one("loadedmetadata", () => { this.trigger("firstplay"), this.tech_.setCurrentTime(e.end(0)), (this.hasPlayed_ = !0); }), !1 ); this.trigger("firstplay"), this.tech_.setCurrentTime(e.end(0)); } return (this.hasPlayed_ = !0), this.load(), !0; } handleSourceOpen_() { if ((this.tryToCreateSourceBuffers_(), this.tech_.autoplay())) { const e = this.tech_.play(); void 0 !== e && "function" == typeof e.then && e.then(null, (e) => {}); } this.trigger("sourceopen"); } handleSourceEnded_() { if (!this.inbandTextTracks_.metadataTrack_) return; const e = this.inbandTextTracks_.metadataTrack_.cues; if (!e || !e.length) return; const t = this.duration(); e[e.length - 1].endTime = isNaN(t) || Math.abs(t) === 1 / 0 ? Number.MAX_VALUE : t; } handleDurationChange_() { this.tech_.trigger("durationchange"); } onEndOfStream() { let e = this.mainSegmentLoader_.ended_; if (this.mediaTypes_.AUDIO.activePlaylistLoader) { const t = this.mainSegmentLoader_.getCurrentMediaInfo_(); e = !t || t.hasVideo ? e && this.audioSegmentLoader_.ended_ : this.audioSegmentLoader_.ended_; } e && (this.stopABRTimer_(), this.sourceUpdater_.endOfStream()); } stuckAtPlaylistEnd_(e) { if (!this.seekable().length) return !1; const t = this.syncController_.getExpiredTime(e, this.duration()); if (null === t) return !1; const n = kc.Playlist.playlistEnd(e, t), r = this.tech_.currentTime(), i = this.tech_.buffered(); if (!i.length) return n - r <= Ra; const o = i.end(i.length - 1); return o - r <= Ra && n - o <= Ra; } excludePlaylist({ playlistToExclude: e = this.mainPlaylistLoader_.media(), error: t = {}, playlistExclusionDuration: n, }) { if ( ((e = e || this.mainPlaylistLoader_.media()), (n = n || t.playlistExclusionDuration || this.playlistExclusionDuration), !e) ) return ( (this.error = t), void ("open" !== this.mediaSource.readyState ? this.trigger("error") : this.sourceUpdater_.endOfStream("network")) ); e.playlistErrors_++; const r = this.mainPlaylistLoader_.main.playlists, i = r.filter(Ja), o = 1 === i.length && i[0] === e; if (1 === r.length && n !== 1 / 0) return ( Ta.log.warn( `Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.` ), this.tech_.trigger("retryplaylist"), this.mainPlaylistLoader_.load(o) ); if (o) { let t = !1; r.forEach((n) => { if (n === e) return; const r = n.excludeUntil; void 0 !== r && r !== 1 / 0 && ((t = !0), delete n.excludeUntil); }), t && (Ta.log.warn( "Removing other playlists from the exclusion list because the last rendition is about to be excluded." ), this.tech_.trigger("retryplaylist")); } let a; (a = e.playlistErrors_ > this.maxPlaylistRetries ? 1 / 0 : Date.now() + 1e3 * n), (e.excludeUntil = a), t.reason && (e.lastExcludeReason_ = t.reason), this.tech_.trigger("excludeplaylist"), this.tech_.trigger({ type: "usage", name: "vhs-rendition-excluded", }); const s = this.selectPlaylist(); if (!s) return ( (this.error = "Playback cannot continue. No available working or supported playlists."), void this.trigger("error") ); const u = t.internal ? this.logger_ : Ta.log.warn, c = t.message ? " " + t.message : ""; u( `${ t.internal ? "Internal problem" : "Problem" } encountered with playlist ${e.id}.${c} Switching to playlist ${ s.id }.` ), s.attributes.AUDIO !== e.attributes.AUDIO && this.delegateLoaders_("audio", ["abort", "pause"]), s.attributes.SUBTITLES !== e.attributes.SUBTITLES && this.delegateLoaders_("subtitle", ["abort", "pause"]), this.delegateLoaders_("main", ["abort", "pause"]); const l = (s.targetDuration / 2) * 1e3 || 5e3, f = "number" == typeof s.lastRequest && Date.now() - s.lastRequest <= l; return this.switchMedia_(s, "exclude", o || f); } pauseLoading() { this.delegateLoaders_("all", ["abort", "pause"]), this.stopABRTimer_(); } delegateLoaders_(e, t) { const n = [], r = "all" === e; (r || "main" === e) && n.push(this.mainPlaylistLoader_); const i = []; (r || "audio" === e) && i.push("AUDIO"), (r || "subtitle" === e) && (i.push("CLOSED-CAPTIONS"), i.push("SUBTITLES")), i.forEach((e) => { const t = this.mediaTypes_[e] && this.mediaTypes_[e].activePlaylistLoader; t && n.push(t); }), ["main", "audio", "subtitle"].forEach((t) => { const r = this[`${t}SegmentLoader_`]; !r || (e !== t && "all" !== e) || n.push(r); }), n.forEach((e) => t.forEach((t) => { "function" == typeof e[t] && e[t](); }) ); } setCurrentTime(e) { const t = ja(this.tech_.buffered(), e); return this.mainPlaylistLoader_ && this.mainPlaylistLoader_.media() && this.mainPlaylistLoader_.media().segments ? t && t.length ? e : (this.mainSegmentLoader_.resetEverything(), this.mainSegmentLoader_.abort(), this.mediaTypes_.AUDIO.activePlaylistLoader && (this.audioSegmentLoader_.resetEverything(), this.audioSegmentLoader_.abort()), this.mediaTypes_.SUBTITLES.activePlaylistLoader && (this.subtitleSegmentLoader_.resetEverything(), this.subtitleSegmentLoader_.abort()), void this.load()) : 0; } duration() { if (!this.mainPlaylistLoader_) return 0; const e = this.mainPlaylistLoader_.media(); return e ? e.endList ? this.mediaSource ? this.mediaSource.duration : kc.Playlist.duration(e) : 1 / 0 : 0; } seekable() { return this.seekable_; } onSyncInfoUpdate_() { let e; if (!this.mainPlaylistLoader_) return; let t = this.mainPlaylistLoader_.media(); if (!t) return; let n = this.syncController_.getExpiredTime(t, this.duration()); if (null === n) return; const r = this.mainPlaylistLoader_.main, i = kc.Playlist.seekable(t, n, kc.Playlist.liveEdgeDelay(r, t)); if (0 === i.length) return; if (this.mediaTypes_.AUDIO.activePlaylistLoader) { if ( ((t = this.mediaTypes_.AUDIO.activePlaylistLoader.media()), (n = this.syncController_.getExpiredTime(t, this.duration())), null === n) ) return; if ( ((e = kc.Playlist.seekable( t, n, kc.Playlist.liveEdgeDelay(r, t) )), 0 === e.length) ) return; } let o, a; this.seekable_ && this.seekable_.length && ((o = this.seekable_.end(0)), (a = this.seekable_.start(0))), e ? e.start(0) > i.end(0) || i.start(0) > e.end(0) ? (this.seekable_ = i) : (this.seekable_ = Ma([ [ e.start(0) > i.start(0) ? e.start(0) : i.start(0), e.end(0) < i.end(0) ? e.end(0) : i.end(0), ], ])) : (this.seekable_ = i), (this.seekable_ && this.seekable_.length && this.seekable_.end(0) === o && this.seekable_.start(0) === a) || (this.logger_(`seekable updated [${Ba(this.seekable_)}]`), this.tech_.trigger("seekablechanged")); } updateDuration(e) { if ( (this.updateDuration_ && (this.mediaSource.removeEventListener( "sourceopen", this.updateDuration_ ), (this.updateDuration_ = null)), "open" !== this.mediaSource.readyState) ) return ( (this.updateDuration_ = this.updateDuration.bind(this, e)), void this.mediaSource.addEventListener( "sourceopen", this.updateDuration_ ) ); if (e) { const e = this.seekable(); if (!e.length) return; return void ( (isNaN(this.mediaSource.duration) || this.mediaSource.duration < e.end(e.length - 1)) && this.sourceUpdater_.setDuration(e.end(e.length - 1)) ); } const t = this.tech_.buffered(); let n = kc.Playlist.duration(this.mainPlaylistLoader_.media()); t.length > 0 && (n = Math.max(n, t.end(t.length - 1))), this.mediaSource.duration !== n && this.sourceUpdater_.setDuration(n); } dispose() { this.trigger("dispose"), this.decrypter_.terminate(), this.mainPlaylistLoader_.dispose(), this.mainSegmentLoader_.dispose(), this.loadOnPlay_ && this.tech_.off("play", this.loadOnPlay_), ["AUDIO", "SUBTITLES"].forEach((e) => { const t = this.mediaTypes_[e].groups; for (const e in t) t[e].forEach((e) => { e.playlistLoader && e.playlistLoader.dispose(); }); }), this.audioSegmentLoader_.dispose(), this.subtitleSegmentLoader_.dispose(), this.sourceUpdater_.dispose(), this.timelineChangeController_.dispose(), this.stopABRTimer_(), this.updateDuration_ && this.mediaSource.removeEventListener( "sourceopen", this.updateDuration_ ), this.mediaSource.removeEventListener( "durationchange", this.handleDurationChange_ ), this.mediaSource.removeEventListener( "sourceopen", this.handleSourceOpen_ ), this.mediaSource.removeEventListener( "sourceended", this.handleSourceEnded_ ), this.off(); } main() { return this.mainPlaylistLoader_.main; } media() { return this.mainPlaylistLoader_.media() || this.initialMedia_; } areMediaTypesKnown_() { const e = !!this.mediaTypes_.AUDIO.activePlaylistLoader, t = !!this.mainSegmentLoader_.getCurrentMediaInfo_(), n = !e || !!this.audioSegmentLoader_.getCurrentMediaInfo_(); return !(!t || !n); } getCodecsOrExclude_() { const e = { main: this.mainSegmentLoader_.getCurrentMediaInfo_() || {}, audio: this.audioSegmentLoader_.getCurrentMediaInfo_() || {}, }, t = this.mainSegmentLoader_.getPendingSegmentPlaylist() || this.media(); e.video = e.main; const n = Tu(this.main(), t), r = {}, i = !!this.mediaTypes_.AUDIO.activePlaylistLoader; if ( (e.main.hasVideo && (r.video = n.video || e.main.videoCodec || "avc1.4d400d"), e.main.isMuxed && (r.video += `,${n.audio || e.main.audioCodec || z}`), ((e.main.hasAudio && !e.main.isMuxed) || e.audio.hasAudio || i) && ((r.audio = n.audio || e.main.audioCodec || e.audio.audioCodec || z), (e.audio.isFmp4 = e.main.hasAudio && !e.main.isMuxed ? e.main.isFmp4 : e.audio.isFmp4)), !r.audio && !r.video) ) return void this.excludePlaylist({ playlistToExclude: t, error: { message: "Could not determine codecs for playlist." }, playlistExclusionDuration: 1 / 0, }); const o = {}; let a; if ( (["video", "audio"].forEach(function (t) { if ( r.hasOwnProperty(t) && ((n = e[t].isFmp4), (i = r[t]), !(n ? U(i) : F(i))) ) { const n = e[t].isFmp4 ? "browser" : "muxer"; (o[n] = o[n] || []), o[n].push(r[t]), "audio" === t && (a = n); } var n, i; }), i && a && t.attributes.AUDIO) ) { const e = t.attributes.AUDIO; this.main().playlists.forEach((n) => { (n.attributes && n.attributes.AUDIO) === e && n !== t && (n.excludeUntil = 1 / 0); }), this.logger_( `excluding audio group ${e} as ${a} does not support codec(s): "${r.audio}"` ); } if (!Object.keys(o).length) { if ( this.sourceUpdater_.hasCreatedSourceBuffers() && !this.sourceUpdater_.canChangeType() ) { const e = []; if ( (["video", "audio"].forEach((t) => { const n = (j(this.sourceUpdater_.codecs[t] || "")[0] || {}) .type, i = (j(r[t] || "")[0] || {}).type; n && i && n.toLowerCase() !== i.toLowerCase() && e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${r[t]}"`); }), e.length) ) return void this.excludePlaylist({ playlistToExclude: t, error: { message: `Codec switching not supported: ${e.join(", ")}.`, internal: !0, }, playlistExclusionDuration: 1 / 0, }); } return r; } { const e = Object.keys(o).reduce( (e, t) => ( e && (e += ", "), (e += `${t} does not support codec(s): "${o[t].join(",")}"`) ), "" ) + "."; this.excludePlaylist({ playlistToExclude: t, error: { internal: !0, message: e }, playlistExclusionDuration: 1 / 0, }); } } tryToCreateSourceBuffers_() { if ( "open" !== this.mediaSource.readyState || this.sourceUpdater_.hasCreatedSourceBuffers() ) return; if (!this.areMediaTypesKnown_()) return; const e = this.getCodecsOrExclude_(); if (!e) return; this.sourceUpdater_.createSourceBuffers(e); const t = [e.video, e.audio].filter(Boolean).join(","); this.excludeIncompatibleVariants_(t); } excludeUnsupportedVariants_() { const e = this.main().playlists, t = []; Object.keys(e).forEach((n) => { const r = e[n]; if (-1 !== t.indexOf(r.id)) return; t.push(r.id); const i = Tu(this.main, r), o = []; !i.audio || F(i.audio) || U(i.audio) || o.push(`audio codec ${i.audio}`), !i.video || F(i.video) || U(i.video) || o.push(`video codec ${i.video}`), i.text && "stpp.ttml.im1t" === i.text && o.push(`text codec ${i.text}`), o.length && ((r.excludeUntil = 1 / 0), this.logger_( `excluding ${r.id} for unsupported: ${o.join(", ")}` )); }); } excludeIncompatibleVariants_(e) { const t = [], n = this.main().playlists, r = _u(j(e)), i = wu(r), o = (r.video && j(r.video)[0]) || null, a = (r.audio && j(r.audio)[0]) || null; Object.keys(n).forEach((e) => { const r = n[e]; if (-1 !== t.indexOf(r.id) || r.excludeUntil === 1 / 0) return; t.push(r.id); const s = [], u = Tu(this.mainPlaylistLoader_.main, r), c = wu(u); if (u.audio || u.video) { if ( (c !== i && s.push(`codec count "${c}" !== "${i}"`), !this.sourceUpdater_.canChangeType()) ) { const e = (u.video && j(u.video)[0]) || null, t = (u.audio && j(u.audio)[0]) || null; e && o && e.type.toLowerCase() !== o.type.toLowerCase() && s.push(`video codec "${e.type}" !== "${o.type}"`), t && a && t.type.toLowerCase() !== a.type.toLowerCase() && s.push(`audio codec "${t.type}" !== "${a.type}"`); } s.length && ((r.excludeUntil = 1 / 0), this.logger_(`excluding ${r.id}: ${s.join(" && ")}`)); } }); } updateAdCues_(e) { let t = 0; const n = this.seekable(); n.length && (t = n.start(0)), (function (e, t, n = 0) { if (!e.segments) return; let r, o = n; for (let n = 0; n < e.segments.length; n++) { const a = e.segments[n]; if ((r || (r = lc(t, o + a.duration / 2)), r)) { if ("cueIn" in a) { (r.endTime = o), (r.adEndTime = o), (o += a.duration), (r = null); continue; } if (o < r.endTime) { o += a.duration; continue; } r.endTime += a.duration; } else if ( ("cueOut" in a && ((r = new (i().VTTCue)(o, o + a.duration, a.cueOut)), (r.adStartTime = o), (r.adEndTime = o + parseFloat(a.cueOut)), t.addCue(r)), "cueOutCont" in a) ) { const [e, n] = a.cueOutCont.split("/").map(parseFloat); (r = new (i().VTTCue)(o, o + a.duration, "")), (r.adStartTime = o - e), (r.adEndTime = r.adStartTime + n), t.addCue(r); } o += a.duration; } })(e, this.cueTagsTrack_, t); } goalBufferLength() { const e = this.tech_.currentTime(), t = qs.GOAL_BUFFER_LENGTH, n = qs.GOAL_BUFFER_LENGTH_RATE, r = Math.max(t, qs.MAX_GOAL_BUFFER_LENGTH); return Math.min(t + e * n, r); } bufferLowWaterLine() { const e = this.tech_.currentTime(), t = qs.BUFFER_LOW_WATER_LINE, n = qs.BUFFER_LOW_WATER_LINE_RATE, r = Math.max(t, qs.MAX_BUFFER_LOW_WATER_LINE), i = Math.max(t, qs.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE); return Math.min(t + e * n, this.bufferBasedABR ? i : r); } bufferHighWaterLine() { return qs.BUFFER_HIGH_WATER_LINE; } } class Lc { constructor(e, t, n) { const { playlistController_: r } = e, i = r.fastQualityChange_.bind(r); if (t.attributes) { const e = t.attributes.RESOLUTION; (this.width = e && e.width), (this.height = e && e.height), (this.bandwidth = t.attributes.BANDWIDTH), (this.frameRate = t.attributes["FRAME-RATE"]); } var o, a, s; (this.codecs = Tu(r.main(), t)), (this.playlist = t), (this.id = n), (this.enabled = ((o = e.playlists), (a = t.id), (s = i), (e) => { const t = o.main.playlists[a], n = Qa(t), r = Ja(t); return void 0 === e ? r : (e ? delete t.disabled : (t.disabled = !0), e === r || n || (s(), e ? o.trigger("renditionenabled") : o.trigger("renditiondisabled")), e); })); } } const Ac = ["seeking", "seeked", "pause", "playing", "error"]; class Ic { constructor(e) { (this.playlistController_ = e.playlistController), (this.tech_ = e.tech), (this.seekable = e.seekable), (this.allowSeeksWithinUnsafeLiveWindow = e.allowSeeksWithinUnsafeLiveWindow), (this.liveRangeSafeTimeDelta = e.liveRangeSafeTimeDelta), (this.media = e.media), (this.consecutiveUpdates = 0), (this.lastRecordedTime = null), (this.checkCurrentTimeTimeout_ = null), (this.logger_ = Aa("PlaybackWatcher")), this.logger_("initialize"); const t = () => this.monitorCurrentTime_(), n = () => this.monitorCurrentTime_(), r = () => this.techWaiting_(), o = () => this.resetTimeUpdate_(), a = this.playlistController_, s = ["main", "subtitle", "audio"], u = {}; s.forEach((e) => { (u[e] = { reset: () => this.resetSegmentDownloads_(e), updateend: () => this.checkSegmentDownloads_(e), }), a[`${e}SegmentLoader_`].on("appendsdone", u[e].updateend), a[`${e}SegmentLoader_`].on("playlistupdate", u[e].reset), this.tech_.on(["seeked", "seeking"], u[e].reset); }); const c = (e) => { ["main", "audio"].forEach((t) => { a[`${t}SegmentLoader_`][e]("appended", this.seekingAppendCheck_); }); }; (this.seekingAppendCheck_ = () => { this.fixesBadSeeks_() && ((this.consecutiveUpdates = 0), (this.lastRecordedTime = this.tech_.currentTime()), c("off")); }), (this.clearSeekingAppendCheck_ = () => c("off")), (this.watchForBadSeeking_ = () => { this.clearSeekingAppendCheck_(), c("on"); }), this.tech_.on("seeked", this.clearSeekingAppendCheck_), this.tech_.on("seeking", this.watchForBadSeeking_), this.tech_.on("waiting", r), this.tech_.on(Ac, o), this.tech_.on("canplay", n), this.tech_.one("play", t), (this.dispose = () => { this.clearSeekingAppendCheck_(), this.logger_("dispose"), this.tech_.off("waiting", r), this.tech_.off(Ac, o), this.tech_.off("canplay", n), this.tech_.off("play", t), this.tech_.off("seeking", this.watchForBadSeeking_), this.tech_.off("seeked", this.clearSeekingAppendCheck_), s.forEach((e) => { a[`${e}SegmentLoader_`].off("appendsdone", u[e].updateend), a[`${e}SegmentLoader_`].off("playlistupdate", u[e].reset), this.tech_.off(["seeked", "seeking"], u[e].reset); }), this.checkCurrentTimeTimeout_ && i().clearTimeout(this.checkCurrentTimeTimeout_), this.resetTimeUpdate_(); }); } monitorCurrentTime_() { this.checkCurrentTime_(), this.checkCurrentTimeTimeout_ && i().clearTimeout(this.checkCurrentTimeTimeout_), (this.checkCurrentTimeTimeout_ = i().setTimeout( this.monitorCurrentTime_.bind(this), 250 )); } resetSegmentDownloads_(e) { const t = this.playlistController_[`${e}SegmentLoader_`]; this[`${e}StalledDownloads_`] > 0 && this.logger_( `resetting possible stalled download count for ${e} loader` ), (this[`${e}StalledDownloads_`] = 0), (this[`${e}Buffered_`] = t.buffered_()); } checkSegmentDownloads_(e) { const t = this.playlistController_, n = t[`${e}SegmentLoader_`], r = n.buffered_(), i = (function (e, t) { if (e === t) return !1; if ((!e && t) || (!t && e)) return !0; if (e.length !== t.length) return !0; for (let n = 0; n < e.length; n++) if (e.start(n) !== t.start(n) || e.end(n) !== t.end(n)) return !0; return !1; })(this[`${e}Buffered_`], r); (this[`${e}Buffered_`] = r), i ? this.resetSegmentDownloads_(e) : (this[`${e}StalledDownloads_`]++, this.logger_( `found #${ this[`${e}StalledDownloads_`] } ${e} appends that did not increase buffer (possible stalled download)`, { playlistId: n.playlist_ && n.playlist_.id, buffered: Ua(r) } ), this[`${e}StalledDownloads_`] < 10 || (this.logger_(`${e} loader stalled download exclusion`), this.resetSegmentDownloads_(e), this.tech_.trigger({ type: "usage", name: `vhs-${e}-download-exclusion`, }), "subtitle" !== e && t.excludePlaylist({ error: { message: `Excessive ${e} segment downloading detected.`, }, playlistExclusionDuration: 1 / 0, }))); } checkCurrentTime_() { if (this.tech_.paused() || this.tech_.seeking()) return; const e = this.tech_.currentTime(), t = this.tech_.buffered(); if ( this.lastRecordedTime === e && (!t.length || e + Ra >= t.end(t.length - 1)) ) return this.techWaiting_(); this.consecutiveUpdates >= 5 && e === this.lastRecordedTime ? (this.consecutiveUpdates++, this.waiting_()) : e === this.lastRecordedTime ? this.consecutiveUpdates++ : ((this.consecutiveUpdates = 0), (this.lastRecordedTime = e)); } resetTimeUpdate_() { this.consecutiveUpdates = 0; } fixesBadSeeks_() { if (!this.tech_.seeking()) return !1; const e = this.seekable(), t = this.tech_.currentTime(); let n; if ( this.afterSeekableWindow_( e, t, this.media(), this.allowSeeksWithinUnsafeLiveWindow ) ) { n = e.end(e.length - 1); } if (this.beforeSeekableWindow_(e, t)) { const t = e.start(0); n = t + (t === e.end(0) ? 0 : Ra); } if (void 0 !== n) return ( this.logger_( `Trying to seek outside of seekable at time ${t} with seekable range ${Ba( e )}. Seeking to ${n}.` ), this.tech_.setCurrentTime(n), !0 ); const r = this.playlistController_.sourceUpdater_, i = this.tech_.buffered(), o = r.audioBuffer ? r.audioBuffered() : null, a = r.videoBuffer ? r.videoBuffered() : null, s = this.media(), u = s.partTargetDuration ? s.partTargetDuration : 2 * (s.targetDuration - Pa), c = [o, a]; for (let e = 0; e < c.length; e++) { if (!c[e]) continue; if (za(c[e], t) < u) return !1; } const l = Na(i, t); return ( 0 !== l.length && ((n = l.start(0) + Ra), this.logger_( `Buffered region starts (${l.start( 0 )}) just beyond seek point (${t}). Seeking to ${n}.` ), this.tech_.setCurrentTime(n), !0) ); } waiting_() { if (this.techWaiting_()) return; const e = this.tech_.currentTime(), t = this.tech_.buffered(), n = ja(t, e); return n.length && e + 3 <= n.end(0) ? (this.resetTimeUpdate_(), this.tech_.setCurrentTime(e), this.logger_( `Stopped at ${e} while inside a buffered region [${n.start( 0 )} -> ${n.end( 0 )}]. Attempting to resume playback by seeking to the current time.` ), void this.tech_.trigger({ type: "usage", name: "vhs-unknown-waiting", })) : void 0; } techWaiting_() { const e = this.seekable(), t = this.tech_.currentTime(); if (this.tech_.seeking()) return !0; if (this.beforeSeekableWindow_(e, t)) { const n = e.end(e.length - 1); return ( this.logger_( `Fell out of live window at time ${t}. Seeking to live point (seekable end) ${n}` ), this.resetTimeUpdate_(), this.tech_.setCurrentTime(n), this.tech_.trigger({ type: "usage", name: "vhs-live-resync" }), !0 ); } const n = this.tech_.vhs.playlistController_.sourceUpdater_, r = this.tech_.buffered(); if ( this.videoUnderflow_({ audioBuffered: n.audioBuffered(), videoBuffered: n.videoBuffered(), currentTime: t, }) ) return ( this.resetTimeUpdate_(), this.tech_.setCurrentTime(t), this.tech_.trigger({ type: "usage", name: "vhs-video-underflow", }), !0 ); const i = Na(r, t); return ( i.length > 0 && (this.logger_(`Stopped at ${t} and seeking to ${i.start(0)}`), this.resetTimeUpdate_(), this.skipTheGap_(t), !0) ); } afterSeekableWindow_(e, t, n, r = !1) { if (!e.length) return !1; let i = e.end(e.length - 1) + Ra; return ( !n.endList && r && (i = e.end(e.length - 1) + 3 * n.targetDuration), t > i ); } beforeSeekableWindow_(e, t) { return !!( e.length && e.start(0) > 0 && t < e.start(0) - this.liveRangeSafeTimeDelta ); } videoUnderflow_({ videoBuffered: e, audioBuffered: t, currentTime: n, }) { if (!e) return; let r; if (e.length && t.length) { const i = ja(e, n - 3), o = ja(e, n), a = ja(t, n); a.length && !o.length && i.length && (r = { start: i.end(0), end: a.end(0) }); } else { Na(e, n).length || (r = this.gapFromVideoUnderflow_(e, n)); } return ( !!r && (this.logger_( `Encountered a gap in video from ${r.start} to ${r.end}. Seeking to current time ${n}` ), !0) ); } skipTheGap_(e) { const t = this.tech_.buffered(), n = this.tech_.currentTime(), r = Na(t, n); this.resetTimeUpdate_(), 0 !== r.length && n === e && (this.logger_( "skipTheGap_:", "currentTime:", n, "scheduled currentTime:", e, "nextRange start:", r.start(0) ), this.tech_.setCurrentTime(r.start(0) + Pa), this.tech_.trigger({ type: "usage", name: "vhs-gap-skip" })); } gapFromVideoUnderflow_(e, t) { const n = (function (e) { if (e.length < 2) return Ma(); const t = []; for (let n = 1; n < e.length; n++) { const r = e.end(n - 1), i = e.start(n); t.push([r, i]); } return Ma(t); })(e); for (let e = 0; e < n.length; e++) { const r = n.start(e), i = n.end(e); if (t - r < 4 && t - r > 2) return { start: r, end: i }; } return null; } } const Mc = { errorInterval: 30, getSource(e) { return e( this.tech({ IWillNotUseThisInPlugins: !0 }).currentSource_ || this.currentSource() ); }, }, Pc = function (e, t) { let n = 0, r = 0; const i = Ia(Mc, t); e.ready(() => { e.trigger({ type: "usage", name: "vhs-error-reload-initialized" }); }); const o = function () { r && e.currentTime(r); }, a = function (t) { null != t && ((r = (e.duration() !== 1 / 0 && e.currentTime()) || 0), e.one("loadedmetadata", o), e.src(t), e.trigger({ type: "usage", name: "vhs-error-reload" }), e.play()); }, s = function () { if (Date.now() - n < 1e3 * i.errorInterval) e.trigger({ type: "usage", name: "vhs-error-reload-canceled" }); else { if (i.getSource && "function" == typeof i.getSource) return (n = Date.now()), i.getSource.call(e, a); Ta.log.error( "ERROR: reloadSourceOnError - The option getSource must be a function!" ); } }, u = function () { e.off("loadedmetadata", o), e.off("error", s), e.off("dispose", u); }; e.on("error", s), e.on("dispose", u), (e.reloadSourceOnError = function (t) { u(), Pc(e, t); }); }, Rc = function (e) { Pc(this, e); }; var Dc = "3.0.2"; const jc = { PlaylistLoader: bs, Playlist: os, utils: Is, STANDARD_PLAYLIST_SELECTOR: Lu, INITIAL_PLAYLIST_SELECTOR: function () { const e = this.playlists.main.playlists.filter(os.isEnabled); Eu(e, (e, t) => Ou(e, t)); return e.filter((e) => !!Tu(this.playlists.main, e).video)[0] || null; }, lastBandwidthSelector: Lu, movingAverageBandwidthSelector: function (e) { let t = -1, n = -1; if (e < 0 || e > 1) throw new Error( "Moving average bandwidth decay must be between 0 and 1." ); return function () { const r = (this.useDevicePixelRatio && i().devicePixelRatio) || 1; return ( t < 0 && ((t = this.systemBandwidth), (n = this.systemBandwidth)), this.systemBandwidth > 0 && this.systemBandwidth !== n && ((t = e * this.systemBandwidth + (1 - e) * t), (n = this.systemBandwidth)), Cu( this.playlists.main, t, parseInt(ku(this.tech_.el(), "width"), 10) * r, parseInt(ku(this.tech_.el(), "height"), 10) * r, this.limitRenditionByPlayerDimensions, this.playlistController_ ) ); }; }, comparePlaylistBandwidth: Ou, comparePlaylistResolution: function (e, t) { let n, r; return ( e.attributes.RESOLUTION && e.attributes.RESOLUTION.width && (n = e.attributes.RESOLUTION.width), (n = n || i().Number.MAX_VALUE), t.attributes.RESOLUTION && t.attributes.RESOLUTION.width && (r = t.attributes.RESOLUTION.width), (r = r || i().Number.MAX_VALUE), n === r && e.attributes.BANDWIDTH && t.attributes.BANDWIDTH ? e.attributes.BANDWIDTH - t.attributes.BANDWIDTH : n - r ); }, xhr: Ts(), }; Object.keys(qs).forEach((e) => { Object.defineProperty(jc, e, { get: () => ( Ta.log.warn( `using Vhs.${e} is UNSAFE be sure you know what you are doing` ), qs[e] ), set(t) { Ta.log.warn( `using Vhs.${e} is UNSAFE be sure you know what you are doing` ), "number" != typeof t || t < 0 ? Ta.log.warn( `value of Vhs.${e} must be greater than or equal to 0` ) : (qs[e] = t); }, }); }); const Nc = "videojs-vhs", Bc = function (e, t) { const n = t.media(); let r = -1; for (let t = 0; t < e.length; t++) if (e[t].id === n.id) { r = t; break; } (e.selectedIndex_ = r), e.trigger({ selectedIndex: r, type: "change" }); }; jc.canPlaySource = function () { return Ta.log.warn( "VHS is no longer a tech. Please remove it from your player's techOrder." ); }; const Uc = ({ player: e, sourceKeySystems: t, audioMedia: n, mainPlaylists: r, }) => { if (!e.eme.initializeMediaKeys) return Promise.resolve(); const i = ((e, t) => e.reduce((e, n) => { if (!n.contentProtection) return e; const r = t.reduce((e, t) => { const r = n.contentProtection[t]; return r && r.pssh && (e[t] = { pssh: r.pssh }), e; }, {}); return Object.keys(r).length && e.push(r), e; }, []))(n ? r.concat([n]) : r, Object.keys(t)), o = [], a = []; return ( i.forEach((t) => { a.push( new Promise((t, n) => { e.tech_.one("keysessioncreated", t); }) ), o.push( new Promise((n, r) => { e.eme.initializeMediaKeys({ keySystems: t }, (e) => { e ? r(e) : n(); }); }) ); }), Promise.race([Promise.all(o), Promise.race(a)]) ); }, Fc = ({ player: e, sourceKeySystems: t, media: n, audioMedia: r }) => { const i = ((e, t, n) => { if (!e) return e; let r = {}; t && t.attributes && t.attributes.CODECS && (r = _u(j(t.attributes.CODECS))), n && n.attributes && n.attributes.CODECS && (r.audio = n.attributes.CODECS); const i = B(r.video), o = B(r.audio), a = {}; for (const n in e) (a[n] = {}), o && (a[n].audioContentType = o), i && (a[n].videoContentType = i), t.contentProtection && t.contentProtection[n] && t.contentProtection[n].pssh && (a[n].pssh = t.contentProtection[n].pssh), "string" == typeof e[n] && (a[n].url = e[n]); return Ia(e, a); })(t, n, r); return ( !!i && ((e.currentSource().keySystems = i), !(i && !e.eme) || (Ta.log.warn( "DRM encrypted source cannot be decrypted without a DRM plugin" ), !1)) ); }, zc = () => { if (!i().localStorage) return null; const e = i().localStorage.getItem(Nc); if (!e) return null; try { return JSON.parse(e); } catch (e) { return null; } }; (jc.supportsNativeHls = (function () { if (!a() || !a().createElement) return !1; const e = a().createElement("video"); if (!Ta.getTech("Html5").isSupported()) return !1; return [ "application/vnd.apple.mpegurl", "audio/mpegurl", "audio/x-mpegurl", "application/x-mpegurl", "video/x-mpegurl", "video/mpegurl", "application/mpegurl", ].some(function (t) { return /maybe|probably/i.test(e.canPlayType(t)); }); })()), (jc.supportsNativeDash = !!(a() && a().createElement && Ta.getTech("Html5").isSupported()) && /maybe|probably/i.test( a().createElement("video").canPlayType("application/dash+xml") )), (jc.supportsTypeNatively = (e) => "hls" === e ? jc.supportsNativeHls : "dash" === e && jc.supportsNativeDash), (jc.isSupported = function () { return Ta.log.warn( "VHS is no longer a tech. Please remove it from your player's techOrder." ); }); const Hc = Ta.getComponent("Component"); class qc extends Hc { constructor(e, t, n) { if ( (super(t, n.vhs), "number" == typeof n.initialBandwidth && (this.options_.bandwidth = n.initialBandwidth), (this.logger_ = Aa("VhsHandler")), t.options_ && t.options_.playerId) ) { const e = Ta.getPlayer(t.options_.playerId); this.player_ = e; } if ( ((this.tech_ = t), (this.source_ = e), (this.stats = {}), (this.ignoreNextSeekingEvent_ = !1), this.setOptions_(), this.options_.overrideNative && t.overrideNativeAudioTracks && t.overrideNativeVideoTracks) ) t.overrideNativeAudioTracks(!0), t.overrideNativeVideoTracks(!0); else if ( this.options_.overrideNative && (t.featuresNativeVideoTracks || t.featuresNativeAudioTracks) ) throw new Error( "Overriding native VHS requires emulated tracks. See https://git.io/vMpjB" ); this.on( a(), [ "fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange", ], (e) => { const t = a().fullscreenElement || a().webkitFullscreenElement || a().mozFullScreenElement || a().msFullscreenElement; t && t.contains(this.tech_.el()) ? this.playlistController_.fastQualityChange_() : this.playlistController_.checkABR_(); } ), this.on(this.tech_, "seeking", function () { this.ignoreNextSeekingEvent_ ? (this.ignoreNextSeekingEvent_ = !1) : this.setCurrentTime(this.tech_.currentTime()); }), this.on(this.tech_, "error", function () { this.tech_.error() && this.playlistController_ && this.playlistController_.pauseLoading(); }), this.on(this.tech_, "play", this.play); } setOptions_() { if ( ((this.options_.withCredentials = this.options_.withCredentials || !1), (this.options_.limitRenditionByPlayerDimensions = !1 !== this.options_.limitRenditionByPlayerDimensions), (this.options_.useDevicePixelRatio = this.options_.useDevicePixelRatio || !1), (this.options_.useBandwidthFromLocalStorage = void 0 !== this.source_.useBandwidthFromLocalStorage ? this.source_.useBandwidthFromLocalStorage : this.options_.useBandwidthFromLocalStorage || !1), (this.options_.useNetworkInformationApi = this.options_.useNetworkInformationApi || !1), (this.options_.useDtsForTimestampOffset = this.options_.useDtsForTimestampOffset || !1), (this.options_.customTagParsers = this.options_.customTagParsers || []), (this.options_.customTagMappers = this.options_.customTagMappers || []), (this.options_.cacheEncryptionKeys = this.options_.cacheEncryptionKeys || !1), (this.options_.llhls = !1 !== this.options_.llhls), (this.options_.bufferBasedABR = this.options_.bufferBasedABR || !1), "number" != typeof this.options_.playlistExclusionDuration && (this.options_.playlistExclusionDuration = 300), "number" != typeof this.options_.bandwidth && this.options_.useBandwidthFromLocalStorage) ) { const e = zc(); e && e.bandwidth && ((this.options_.bandwidth = e.bandwidth), this.tech_.trigger({ type: "usage", name: "vhs-bandwidth-from-local-storage", })), e && e.throughput && ((this.options_.throughput = e.throughput), this.tech_.trigger({ type: "usage", name: "vhs-throughput-from-local-storage", })); } "number" != typeof this.options_.bandwidth && (this.options_.bandwidth = qs.INITIAL_BANDWIDTH), (this.options_.enableLowInitialPlaylist = this.options_.enableLowInitialPlaylist && this.options_.bandwidth === qs.INITIAL_BANDWIDTH), [ "withCredentials", "useDevicePixelRatio", "limitRenditionByPlayerDimensions", "bandwidth", "customTagParsers", "customTagMappers", "cacheEncryptionKeys", "playlistSelector", "initialPlaylistSelector", "bufferBasedABR", "liveRangeSafeTimeDelta", "llhls", "useNetworkInformationApi", "useDtsForTimestampOffset", "exactManifestTimings", "leastPixelDiffSelector", ].forEach((e) => { void 0 !== this.source_[e] && (this.options_[e] = this.source_[e]); }), (this.limitRenditionByPlayerDimensions = this.options_.limitRenditionByPlayerDimensions), (this.useDevicePixelRatio = this.options_.useDevicePixelRatio); } src(e, t) { if (!e) return; var n; this.setOptions_(), (this.options_.src = 0 === (n = this.source_.src) .toLowerCase() .indexOf("data:application/vnd.videojs.vhs+json,") ? JSON.parse(n.substring(n.indexOf(",") + 1)) : n), (this.options_.tech = this.tech_), (this.options_.externVhs = jc), (this.options_.sourceType = Z(t)), (this.options_.seekTo = (e) => { this.tech_.setCurrentTime(e); }), (this.playlistController_ = new Cc(this.options_)); const r = Ia({ liveRangeSafeTimeDelta: Ra }, this.options_, { seekable: () => this.seekable(), media: () => this.playlistController_.media(), playlistController: this.playlistController_, }); (this.playbackWatcher_ = new Ic(r)), this.playlistController_.on("error", () => { const e = Ta.players[this.tech_.options_.playerId]; let t = this.playlistController_.error; "object" != typeof t || t.code ? "string" == typeof t && (t = { message: t, code: 3 }) : (t.code = 3), e.error(t); }); const o = this.options_.bufferBasedABR ? jc.movingAverageBandwidthSelector(0.55) : jc.STANDARD_PLAYLIST_SELECTOR; (this.playlistController_.selectPlaylist = this.selectPlaylist ? this.selectPlaylist.bind(this) : o.bind(this)), (this.playlistController_.selectInitialPlaylist = jc.INITIAL_PLAYLIST_SELECTOR.bind(this)), (this.playlists = this.playlistController_.mainPlaylistLoader_), (this.mediaSource = this.playlistController_.mediaSource), Object.defineProperties(this, { selectPlaylist: { get() { return this.playlistController_.selectPlaylist; }, set(e) { this.playlistController_.selectPlaylist = e.bind(this); }, }, throughput: { get() { return this.playlistController_.mainSegmentLoader_.throughput .rate; }, set(e) { (this.playlistController_.mainSegmentLoader_.throughput.rate = e), (this.playlistController_.mainSegmentLoader_.throughput.count = 1); }, }, bandwidth: { get() { let e = this.playlistController_.mainSegmentLoader_.bandwidth; const t = i().navigator.connection || i().navigator.mozConnection || i().navigator.webkitConnection, n = 1e7; if (this.options_.useNetworkInformationApi && t) { const r = 1e3 * t.downlink * 1e3; e = r >= n && e >= n ? Math.max(e, r) : r; } return e; }, set(e) { (this.playlistController_.mainSegmentLoader_.bandwidth = e), (this.playlistController_.mainSegmentLoader_.throughput = { rate: 0, count: 0, }); }, }, systemBandwidth: { get() { const e = 1 / (this.bandwidth || 1); let t; t = this.throughput > 0 ? 1 / this.throughput : 0; return Math.floor(1 / (e + t)); }, set() { Ta.log.error('The "systemBandwidth" property is read-only'); }, }, }), this.options_.bandwidth && (this.bandwidth = this.options_.bandwidth), this.options_.throughput && (this.throughput = this.options_.throughput), Object.defineProperties(this.stats, { bandwidth: { get: () => this.bandwidth || 0, enumerable: !0 }, mediaRequests: { get: () => this.playlistController_.mediaRequests_() || 0, enumerable: !0, }, mediaRequestsAborted: { get: () => this.playlistController_.mediaRequestsAborted_() || 0, enumerable: !0, }, mediaRequestsTimedout: { get: () => this.playlistController_.mediaRequestsTimedout_() || 0, enumerable: !0, }, mediaRequestsErrored: { get: () => this.playlistController_.mediaRequestsErrored_() || 0, enumerable: !0, }, mediaTransferDuration: { get: () => this.playlistController_.mediaTransferDuration_() || 0, enumerable: !0, }, mediaBytesTransferred: { get: () => this.playlistController_.mediaBytesTransferred_() || 0, enumerable: !0, }, mediaSecondsLoaded: { get: () => this.playlistController_.mediaSecondsLoaded_() || 0, enumerable: !0, }, mediaAppends: { get: () => this.playlistController_.mediaAppends_() || 0, enumerable: !0, }, mainAppendsToLoadedData: { get: () => this.playlistController_.mainAppendsToLoadedData_() || 0, enumerable: !0, }, audioAppendsToLoadedData: { get: () => this.playlistController_.audioAppendsToLoadedData_() || 0, enumerable: !0, }, appendsToLoadedData: { get: () => this.playlistController_.appendsToLoadedData_() || 0, enumerable: !0, }, timeToLoadedData: { get: () => this.playlistController_.timeToLoadedData_() || 0, enumerable: !0, }, buffered: { get: () => Ua(this.tech_.buffered()), enumerable: !0, }, currentTime: { get: () => this.tech_.currentTime(), enumerable: !0, }, currentSource: { get: () => this.tech_.currentSource_, enumerable: !0, }, currentTech: { get: () => this.tech_.name_, enumerable: !0 }, duration: { get: () => this.tech_.duration(), enumerable: !0 }, main: { get: () => this.playlists.main, enumerable: !0 }, playerDimensions: { get: () => this.tech_.currentDimensions(), enumerable: !0, }, seekable: { get: () => Ua(this.tech_.seekable()), enumerable: !0, }, timestamp: { get: () => Date.now(), enumerable: !0 }, videoPlaybackQuality: { get: () => this.tech_.getVideoPlaybackQuality(), enumerable: !0, }, }), this.tech_.one( "canplay", this.playlistController_.setupFirstPlay.bind( this.playlistController_ ) ), this.tech_.on("bandwidthupdate", () => { this.options_.useBandwidthFromLocalStorage && ((e) => { if (!i().localStorage) return !1; let t = zc(); t = t ? Ia(t, e) : e; try { i().localStorage.setItem(Nc, JSON.stringify(t)); } catch (e) { return !1; } })({ bandwidth: this.bandwidth, throughput: Math.round(this.throughput), }); }), this.playlistController_.on("selectedinitialmedia", () => { var e; (e = this).representations = () => { const t = e.playlistController_.main(), n = is(t) ? e.playlistController_.getAudioTrackPlaylists_() : t.playlists; return n ? n.filter((e) => !Qa(e)).map((t, n) => new Lc(e, t, t.id)) : []; }; }), this.playlistController_.sourceUpdater_.on( "createdsourcebuffers", () => { this.setupEme_(); } ), this.on(this.playlistController_, "progress", function () { this.tech_.trigger("progress"); }), this.on(this.playlistController_, "firstplay", function () { this.ignoreNextSeekingEvent_ = !0; }), this.setupQualityLevels_(), this.tech_.el() && ((this.mediaSourceUrl_ = i().URL.createObjectURL( this.playlistController_.mediaSource )), this.tech_.src(this.mediaSourceUrl_)); } createKeySessions_() { const e = this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader; this.logger_("waiting for EME key session creation"), Uc({ player: this.player_, sourceKeySystems: this.source_.keySystems, audioMedia: e && e.media(), mainPlaylists: this.playlists.main.playlists, }) .then(() => { this.logger_("created EME key session"), this.playlistController_.sourceUpdater_.initializedEme(); }) .catch((e) => { this.logger_("error while creating EME key session", e), this.player_.error({ message: "Failed to initialize media keys for EME", code: 3, }); }); } handleWaitingForKey_() { this.logger_( "waitingforkey fired, attempting to create any new key sessions" ), this.createKeySessions_(); } setupEme_() { const e = this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader, t = Fc({ player: this.player_, sourceKeySystems: this.source_.keySystems, media: this.playlists.media(), audioMedia: e && e.media(), }); this.player_.tech_.on("keystatuschange", (e) => { if ("output-restricted" !== e.status) return; const t = this.playlistController_.main(); if (!t || !t.playlists) return; const n = []; t.playlists.forEach((e) => { e && e.attributes && e.attributes.RESOLUTION && e.attributes.RESOLUTION.height >= 720 && (!e.excludeUntil || e.excludeUntil < 1 / 0) && ((e.excludeUntil = 1 / 0), n.push(e)); }), n.length && (Ta.log.warn( 'DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.', ...n ), this.playlistController_.fastQualityChange_()); }), (this.handleWaitingForKey_ = this.handleWaitingForKey_.bind(this)), this.player_.tech_.on("waitingforkey", this.handleWaitingForKey_), 11 !== Ta.browser.IE_VERSION && t ? this.createKeySessions_() : this.playlistController_.sourceUpdater_.initializedEme(); } setupQualityLevels_() { const e = Ta.players[this.tech_.options_.playerId]; e && e.qualityLevels && !this.qualityLevels_ && ((this.qualityLevels_ = e.qualityLevels()), this.playlistController_.on("selectedinitialmedia", () => { !(function (e, t) { t.representations().forEach((t) => { e.addQualityLevel(t); }), Bc(e, t.playlists); })(this.qualityLevels_, this); }), this.playlists.on("mediachange", () => { Bc(this.qualityLevels_, this.playlists); })); } static version() { return { "@videojs/http-streaming": Dc, "mux.js": "6.3.0", "mpd-parser": "1.0.1", "m3u8-parser": "6.0.0", "aes-decrypter": "4.0.1", }; } version() { return this.constructor.version(); } canChangeType() { return oc.canChangeType(); } play() { this.playlistController_.play(); } setCurrentTime(e) { this.playlistController_.setCurrentTime(e); } duration() { return this.playlistController_.duration(); } seekable() { return this.playlistController_.seekable(); } dispose() { this.playbackWatcher_ && this.playbackWatcher_.dispose(), this.playlistController_ && this.playlistController_.dispose(), this.qualityLevels_ && this.qualityLevels_.dispose(), this.tech_ && this.tech_.vhs && delete this.tech_.vhs, this.mediaSourceUrl_ && i().URL.revokeObjectURL && (i().URL.revokeObjectURL(this.mediaSourceUrl_), (this.mediaSourceUrl_ = null)), this.tech_ && this.tech_.off("waitingforkey", this.handleWaitingForKey_), super.dispose(); } convertToProgramTime(e, t) { return Ms({ playlist: this.playlistController_.media(), time: e, callback: t, }); } seekToProgramTime(e, t, n = !0, r = 2) { return Ps({ programTime: e, playlist: this.playlistController_.media(), retryCount: r, pauseAfterSeek: n, seekTo: this.options_.seekTo, tech: this.options_.tech, callback: t, }); } } const Zc = { name: "videojs-http-streaming", VERSION: Dc, canHandleSource(e, t = {}) { const n = Ia(Ta.options, t); return Zc.canPlayType(e.type, n); }, handleSource(e, t, n = {}) { const r = Ia(Ta.options, n); return ( (t.vhs = new qc(e, t, r)), (t.vhs.xhr = Ts()), t.vhs.src(e.src, e.type), t.vhs ); }, canPlayType(e, t) { const n = Z(e); if (!n) return ""; const r = Zc.getOverrideNative(t); return !jc.supportsTypeNatively(n) || r ? "maybe" : ""; }, getOverrideNative(e = {}) { const { vhs: t = {} } = e, n = !(Ta.browser.IS_ANY_SAFARI || Ta.browser.IS_IOS), { overrideNative: r = n } = t; return r; }, }; U("avc1.4d400d,mp4a.40.2") && Ta.getTech("Html5").registerSourceHandler(Zc, 0), (Ta.VhsHandler = qc), (Ta.VhsSourceHandler = Zc), (Ta.Vhs = jc), Ta.use || Ta.registerComponent("Vhs", jc), (Ta.options.vhs = Ta.options.vhs || {}), (Ta.getPlugin && Ta.getPlugin("reloadSourceOnError")) || Ta.registerPlugin("reloadSourceOnError", Rc); }, 13407: function (e, t, n) { var r = n(58908), i = (e.exports = { WebVTT: n(63706), VTTCue: n(22230), VTTRegion: n(13710), }); (r.vttjs = i), (r.WebVTT = i.WebVTT); var o = i.VTTCue, a = i.VTTRegion, s = r.VTTCue, u = r.VTTRegion; (i.shim = function () { (r.VTTCue = o), (r.VTTRegion = a); }), (i.restore = function () { (r.VTTCue = s), (r.VTTRegion = u); }), r.VTTCue || i.shim(); }, 63706: function (e, t, n) { var r = n(89144), i = Object.create || (function () { function e() {} return function (t) { if (1 !== arguments.length) throw new Error( "Object.create shim only accepts one parameter." ); return (e.prototype = t), new e(); }; })(); function o(e, t) { (this.name = "ParsingError"), (this.code = e.code), (this.message = t || e.message); } function a(e) { function t(e, t, n, r) { return 3600 * (0 | e) + 60 * (0 | t) + (0 | n) + (0 | r) / 1e3; } var n = e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/); return n ? n[3] ? t(n[1], n[2], n[3].replace(":", ""), n[4]) : n[1] > 59 ? t(n[1], n[2], 0, n[4]) : t(0, n[1], n[2], n[4]) : null; } function s() { this.values = i(null); } function u(e, t, n, r) { var i = r ? e.split(r) : [e]; for (var o in i) if ("string" == typeof i[o]) { var a = i[o].split(n); if (2 === a.length) t(a[0].trim(), a[1].trim()); } } function c(e, t, n) { var r = e; function i() { var t = a(e); if (null === t) throw new o(o.Errors.BadTimeStamp, "Malformed timestamp: " + r); return (e = e.replace(/^[^\sa-zA-Z-]+/, "")), t; } function c() { e = e.replace(/^\s+/, ""); } if ((c(), (t.startTime = i()), c(), "--\x3e" !== e.substr(0, 3))) throw new o( o.Errors.BadTimeStamp, "Malformed time stamp (time stamps must be separated by '--\x3e'): " + r ); (e = e.substr(3)), c(), (t.endTime = i()), c(), (function (e, t) { var r = new s(); u( e, function (e, t) { switch (e) { case "region": for (var i = n.length - 1; i >= 0; i--) if (n[i].id === t) { r.set(e, n[i].region); break; } break; case "vertical": r.alt(e, t, ["rl", "lr"]); break; case "line": var o = t.split(","), a = o[0]; r.integer(e, a), r.percent(e, a) && r.set("snapToLines", !1), r.alt(e, a, ["auto"]), 2 === o.length && r.alt("lineAlign", o[1], ["start", "center", "end"]); break; case "position": (o = t.split(",")), r.percent(e, o[0]), 2 === o.length && r.alt("positionAlign", o[1], [ "start", "center", "end", ]); break; case "size": r.percent(e, t); break; case "align": r.alt(e, t, ["start", "center", "end", "left", "right"]); } }, /:/, /\s/ ), (t.region = r.get("region", null)), (t.vertical = r.get("vertical", "")); try { t.line = r.get("line", "auto"); } catch (e) {} (t.lineAlign = r.get("lineAlign", "start")), (t.snapToLines = r.get("snapToLines", !0)), (t.size = r.get("size", 100)); try { t.align = r.get("align", "center"); } catch (e) { t.align = r.get("align", "middle"); } try { t.position = r.get("position", "auto"); } catch (e) { t.position = r.get( "position", { start: 0, left: 0, center: 50, middle: 50, end: 100, right: 100, }, t.align ); } t.positionAlign = r.get( "positionAlign", { start: "start", left: "start", center: "center", middle: "center", end: "end", right: "end", }, t.align ); })(e, t); } (o.prototype = i(Error.prototype)), (o.prototype.constructor = o), (o.Errors = { BadSignature: { code: 0, message: "Malformed WebVTT signature." }, BadTimeStamp: { code: 1, message: "Malformed time stamp." }, }), (s.prototype = { set: function (e, t) { this.get(e) || "" === t || (this.values[e] = t); }, get: function (e, t, n) { return n ? this.has(e) ? this.values[e] : t[n] : this.has(e) ? this.values[e] : t; }, has: function (e) { return e in this.values; }, alt: function (e, t, n) { for (var r = 0; r < n.length; ++r) if (t === n[r]) { this.set(e, t); break; } }, integer: function (e, t) { /^-?\d+$/.test(t) && this.set(e, parseInt(t, 10)); }, percent: function (e, t) { return ( !!( t.match(/^([\d]{1,3})(\.[\d]*)?%$/) && (t = parseFloat(t)) >= 0 && t <= 100 ) && (this.set(e, t), !0) ); }, }); var l = r.createElement && r.createElement("textarea"), f = { c: "span", i: "i", b: "b", u: "u", ruby: "ruby", rt: "rt", v: "span", lang: "span", }, d = { white: "rgba(255,255,255,1)", lime: "rgba(0,255,0,1)", cyan: "rgba(0,255,255,1)", red: "rgba(255,0,0,1)", yellow: "rgba(255,255,0,1)", magenta: "rgba(255,0,255,1)", blue: "rgba(0,0,255,1)", black: "rgba(0,0,0,1)", }, p = { v: "title", lang: "lang" }, h = { rt: "ruby" }; function g(e, t) { function n() { if (!t) return null; var e, n = t.match(/^([^<]*)(<[^>]*>?)?/); return (e = n[1] ? n[1] : n[2]), (t = t.substr(e.length)), e; } function r(e, t) { return !h[t.localName] || h[t.localName] === e.localName; } function i(t, n) { var r = f[t]; if (!r) return null; var i = e.document.createElement(r), o = p[t]; return o && n && (i[o] = n.trim()), i; } for ( var o, s, u = e.document.createElement("div"), c = u, g = []; null !== (o = n()); ) if ("<" !== o[0]) c.appendChild( e.document.createTextNode( ((s = o), (l.innerHTML = s), (s = l.textContent), (l.textContent = ""), s) ) ); else { if ("/" === o[1]) { g.length && g[g.length - 1] === o.substr(2).replace(">", "") && (g.pop(), (c = c.parentNode)); continue; } var m, y = a(o.substr(1, o.length - 2)); if (y) { (m = e.document.createProcessingInstruction("timestamp", y)), c.appendChild(m); continue; } var v = o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/); if (!v) continue; if (!(m = i(v[1], v[3]))) continue; if (!r(c, m)) continue; if (v[2]) { var b = v[2].split("."); b.forEach(function (e) { var t = /^bg_/.test(e), n = t ? e.slice(3) : e; if (d.hasOwnProperty(n)) { var r = t ? "background-color" : "color", i = d[n]; m.style[r] = i; } }), (m.className = b.join(" ")); } g.push(v[1]), c.appendChild(m), (c = m); } return u; } var m = [ [1470, 1470], [1472, 1472], [1475, 1475], [1478, 1478], [1488, 1514], [1520, 1524], [1544, 1544], [1547, 1547], [1549, 1549], [1563, 1563], [1566, 1610], [1645, 1647], [1649, 1749], [1765, 1766], [1774, 1775], [1786, 1805], [1807, 1808], [1810, 1839], [1869, 1957], [1969, 1969], [1984, 2026], [2036, 2037], [2042, 2042], [2048, 2069], [2074, 2074], [2084, 2084], [2088, 2088], [2096, 2110], [2112, 2136], [2142, 2142], [2208, 2208], [2210, 2220], [8207, 8207], [64285, 64285], [64287, 64296], [64298, 64310], [64312, 64316], [64318, 64318], [64320, 64321], [64323, 64324], [64326, 64449], [64467, 64829], [64848, 64911], [64914, 64967], [65008, 65020], [65136, 65140], [65142, 65276], [67584, 67589], [67592, 67592], [67594, 67637], [67639, 67640], [67644, 67644], [67647, 67669], [67671, 67679], [67840, 67867], [67872, 67897], [67903, 67903], [67968, 68023], [68030, 68031], [68096, 68096], [68112, 68115], [68117, 68119], [68121, 68147], [68160, 68167], [68176, 68184], [68192, 68223], [68352, 68405], [68416, 68437], [68440, 68466], [68472, 68479], [68608, 68680], [126464, 126467], [126469, 126495], [126497, 126498], [126500, 126500], [126503, 126503], [126505, 126514], [126516, 126519], [126521, 126521], [126523, 126523], [126530, 126530], [126535, 126535], [126537, 126537], [126539, 126539], [126541, 126543], [126545, 126546], [126548, 126548], [126551, 126551], [126553, 126553], [126555, 126555], [126557, 126557], [126559, 126559], [126561, 126562], [126564, 126564], [126567, 126570], [126572, 126578], [126580, 126583], [126585, 126588], [126590, 126590], [126592, 126601], [126603, 126619], [126625, 126627], [126629, 126633], [126635, 126651], [1114109, 1114109], ]; function y(e) { for (var t = 0; t < m.length; t++) { var n = m[t]; if (e >= n[0] && e <= n[1]) return !0; } return !1; } function v(e) { var t = [], n = ""; if (!e || !e.childNodes) return "ltr"; function r(e, t) { for (var n = t.childNodes.length - 1; n >= 0; n--) e.push(t.childNodes[n]); } function i(e) { if (!e || !e.length) return null; var t = e.pop(), n = t.textContent || t.innerText; if (n) { var o = n.match(/^.*(\n|\r)/); return o ? ((e.length = 0), o[0]) : n; } return "ruby" === t.tagName ? i(e) : t.childNodes ? (r(e, t), i(e)) : void 0; } for (r(t, e); (n = i(t)); ) for (var o = 0; o < n.length; o++) if (y(n.charCodeAt(o))) return "rtl"; return "ltr"; } function b() {} function _(e, t, n) { b.call(this), (this.cue = t), (this.cueDiv = g(e, t.text)); var r = { color: "rgba(255, 255, 255, 1)", backgroundColor: "rgba(0, 0, 0, 0.8)", position: "relative", left: 0, right: 0, top: 0, bottom: 0, display: "inline", writingMode: "" === t.vertical ? "horizontal-tb" : "lr" === t.vertical ? "vertical-lr" : "vertical-rl", unicodeBidi: "plaintext", }; this.applyStyles(r, this.cueDiv), (this.div = e.document.createElement("div")), (r = { direction: v(this.cueDiv), writingMode: "" === t.vertical ? "horizontal-tb" : "lr" === t.vertical ? "vertical-lr" : "vertical-rl", unicodeBidi: "plaintext", textAlign: "middle" === t.align ? "center" : t.align, font: n.font, whiteSpace: "pre-line", position: "absolute", }), this.applyStyles(r), this.div.appendChild(this.cueDiv); var i = 0; switch (t.positionAlign) { case "start": i = t.position; break; case "center": i = t.position - t.size / 2; break; case "end": i = t.position - t.size; } "" === t.vertical ? this.applyStyles({ left: this.formatStyle(i, "%"), width: this.formatStyle(t.size, "%"), }) : this.applyStyles({ top: this.formatStyle(i, "%"), height: this.formatStyle(t.size, "%"), }), (this.move = function (e) { this.applyStyles({ top: this.formatStyle(e.top, "px"), bottom: this.formatStyle(e.bottom, "px"), left: this.formatStyle(e.left, "px"), right: this.formatStyle(e.right, "px"), height: this.formatStyle(e.height, "px"), width: this.formatStyle(e.width, "px"), }); }); } function w(e) { var t, n, r, i; if (e.div) { (n = e.div.offsetHeight), (r = e.div.offsetWidth), (i = e.div.offsetTop); var o = (o = e.div.childNodes) && (o = o[0]) && o.getClientRects && o.getClientRects(); (e = e.div.getBoundingClientRect()), (t = o ? Math.max((o[0] && o[0].height) || 0, e.height / o.length) : 0); } (this.left = e.left), (this.right = e.right), (this.top = e.top || i), (this.height = e.height || n), (this.bottom = e.bottom || i + (e.height || n)), (this.width = e.width || r), (this.lineHeight = void 0 !== t ? t : e.lineHeight); } function T(e, t, n, r) { var i = new w(t), o = t.cue, a = (function (e) { if ( "number" == typeof e.line && (e.snapToLines || (e.line >= 0 && e.line <= 100)) ) return e.line; if ( !e.track || !e.track.textTrackList || !e.track.textTrackList.mediaElement ) return -1; for ( var t = e.track, n = t.textTrackList, r = 0, i = 0; i < n.length && n[i] !== t; i++ ) "showing" === n[i].mode && r++; return -1 * ++r; })(o), s = []; if (o.snapToLines) { var u; switch (o.vertical) { case "": (s = ["+y", "-y"]), (u = "height"); break; case "rl": (s = ["+x", "-x"]), (u = "width"); break; case "lr": (s = ["-x", "+x"]), (u = "width"); } var c = i.lineHeight, l = c * Math.round(a), f = n[u] + c, d = s[0]; Math.abs(l) > f && ((l = l < 0 ? -1 : 1), (l *= Math.ceil(f / c) * c)), a < 0 && ((l += "" === o.vertical ? n.height : n.width), (s = s.reverse())), i.move(d, l); } else { var p = (i.lineHeight / n.height) * 100; switch (o.lineAlign) { case "center": a -= p / 2; break; case "end": a -= p; } switch (o.vertical) { case "": t.applyStyles({ top: t.formatStyle(a, "%") }); break; case "rl": t.applyStyles({ left: t.formatStyle(a, "%") }); break; case "lr": t.applyStyles({ right: t.formatStyle(a, "%") }); } (s = ["+y", "-x", "+x", "-y"]), (i = new w(t)); } var h = (function (e, t) { for (var i, o = new w(e), a = 1, s = 0; s < t.length; s++) { for ( ; e.overlapsOppositeAxis(n, t[s]) || (e.within(n) && e.overlapsAny(r)); ) e.move(t[s]); if (e.within(n)) return e; var u = e.intersectPercentage(n); a > u && ((i = new w(e)), (a = u)), (e = new w(o)); } return i || o; })(i, s); t.move(h.toCSSCompatValues(n)); } function x() {} (b.prototype.applyStyles = function (e, t) { for (var n in ((t = t || this.div), e)) e.hasOwnProperty(n) && (t.style[n] = e[n]); }), (b.prototype.formatStyle = function (e, t) { return 0 === e ? 0 : e + t; }), (_.prototype = i(b.prototype)), (_.prototype.constructor = _), (w.prototype.move = function (e, t) { switch (((t = void 0 !== t ? t : this.lineHeight), e)) { case "+x": (this.left += t), (this.right += t); break; case "-x": (this.left -= t), (this.right -= t); break; case "+y": (this.top += t), (this.bottom += t); break; case "-y": (this.top -= t), (this.bottom -= t); } }), (w.prototype.overlaps = function (e) { return ( this.left < e.right && this.right > e.left && this.top < e.bottom && this.bottom > e.top ); }), (w.prototype.overlapsAny = function (e) { for (var t = 0; t < e.length; t++) if (this.overlaps(e[t])) return !0; return !1; }), (w.prototype.within = function (e) { return ( this.top >= e.top && this.bottom <= e.bottom && this.left >= e.left && this.right <= e.right ); }), (w.prototype.overlapsOppositeAxis = function (e, t) { switch (t) { case "+x": return this.left < e.left; case "-x": return this.right > e.right; case "+y": return this.top < e.top; case "-y": return this.bottom > e.bottom; } }), (w.prototype.intersectPercentage = function (e) { return ( (Math.max( 0, Math.min(this.right, e.right) - Math.max(this.left, e.left) ) * Math.max( 0, Math.min(this.bottom, e.bottom) - Math.max(this.top, e.top) )) / (this.height * this.width) ); }), (w.prototype.toCSSCompatValues = function (e) { return { top: this.top - e.top, bottom: e.bottom - this.bottom, left: this.left - e.left, right: e.right - this.right, height: this.height, width: this.width, }; }), (w.getSimpleBoxPosition = function (e) { var t = e.div ? e.div.offsetHeight : e.tagName ? e.offsetHeight : 0, n = e.div ? e.div.offsetWidth : e.tagName ? e.offsetWidth : 0, r = e.div ? e.div.offsetTop : e.tagName ? e.offsetTop : 0; return { left: (e = e.div ? e.div.getBoundingClientRect() : e.tagName ? e.getBoundingClientRect() : e).left, right: e.right, top: e.top || r, height: e.height || t, bottom: e.bottom || r + (e.height || t), width: e.width || n, }; }), (x.StringDecoder = function () { return { decode: function (e) { if (!e) return ""; if ("string" != typeof e) throw new Error("Error - expected string data."); return decodeURIComponent(encodeURIComponent(e)); }, }; }), (x.convertCueToDOMTree = function (e, t) { return e && t ? g(e, t) : null; }); (x.processCues = function (e, t, n) { if (!e || !t || !n) return null; for (; n.firstChild; ) n.removeChild(n.firstChild); var r = e.document.createElement("div"); if ( ((r.style.position = "absolute"), (r.style.left = "0"), (r.style.right = "0"), (r.style.top = "0"), (r.style.bottom = "0"), (r.style.margin = "1.5%"), n.appendChild(r), (function (e) { for (var t = 0; t < e.length; t++) if (e[t].hasBeenReset || !e[t].displayState) return !0; return !1; })(t)) ) { var i = [], o = w.getSimpleBoxPosition(r), a = { font: Math.round(0.05 * o.height * 100) / 100 + "px sans-serif", }; !(function () { for (var n, s, u = 0; u < t.length; u++) (s = t[u]), (n = new _(e, s, a)), r.appendChild(n.div), T(0, n, o, i), (s.displayState = n.div), i.push(w.getSimpleBoxPosition(n)); })(); } else for (var s = 0; s < t.length; s++) r.appendChild(t[s].displayState); }), (x.Parser = function (e, t, n) { n || ((n = t), (t = {})), t || (t = {}), (this.window = e), (this.vttjs = t), (this.state = "INITIAL"), (this.buffer = ""), (this.decoder = n || new TextDecoder("utf8")), (this.regionList = []); }), (x.Parser.prototype = { reportOrThrowError: function (e) { if (!(e instanceof o)) throw e; this.onparsingerror && this.onparsingerror(e); }, parse: function (e) { var t = this; function n() { for ( var e = t.buffer, n = 0; n < e.length && "\r" !== e[n] && "\n" !== e[n]; ) ++n; var r = e.substr(0, n); return ( "\r" === e[n] && ++n, "\n" === e[n] && ++n, (t.buffer = e.substr(n)), r ); } function r(e) { e.match(/X-TIMESTAMP-MAP/) ? u( e, function (e, n) { if ("X-TIMESTAMP-MAP" === e) !(function (e) { var n = new s(); u( e, function (e, t) { switch (e) { case "MPEGT": n.integer(e + "S", t); break; case "LOCA": n.set(e + "L", a(t)); } }, /[^\d]:/, /,/ ), t.ontimestampmap && t.ontimestampmap({ MPEGTS: n.get("MPEGTS"), LOCAL: n.get("LOCAL"), }); })(n); }, /=/ ) : u( e, function (e, n) { if ("Region" === e) !(function (e) { var n = new s(); if ( (u( e, function (e, t) { switch (e) { case "id": n.set(e, t); break; case "width": n.percent(e, t); break; case "lines": n.integer(e, t); break; case "regionanchor": case "viewportanchor": var r = t.split(","); if (2 !== r.length) break; var i = new s(); if ( (i.percent("x", r[0]), i.percent("y", r[1]), !i.has("x") || !i.has("y")) ) break; n.set(e + "X", i.get("x")), n.set(e + "Y", i.get("y")); break; case "scroll": n.alt(e, t, ["up"]); } }, /=/, /\s/ ), n.has("id")) ) { var r = new (t.vttjs.VTTRegion || t.window.VTTRegion)(); (r.width = n.get("width", 100)), (r.lines = n.get("lines", 3)), (r.regionAnchorX = n.get("regionanchorX", 0)), (r.regionAnchorY = n.get("regionanchorY", 100)), (r.viewportAnchorX = n.get("viewportanchorX", 0)), (r.viewportAnchorY = n.get( "viewportanchorY", 100 )), (r.scroll = n.get("scroll", "")), t.onregion && t.onregion(r), t.regionList.push({ id: n.get("id"), region: r }); } })(n); }, /:/ ); } e && (t.buffer += t.decoder.decode(e, { stream: !0 })); try { var i; if ("INITIAL" === t.state) { if (!/\r\n|\n/.test(t.buffer)) return this; var l = (i = n()).match(/^WEBVTT([ \t].*)?$/); if (!l || !l[0]) throw new o(o.Errors.BadSignature); t.state = "HEADER"; } for (var f = !1; t.buffer; ) { if (!/\r\n|\n/.test(t.buffer)) return this; switch ((f ? (f = !1) : (i = n()), t.state)) { case "HEADER": /:/.test(i) ? r(i) : i || (t.state = "ID"); continue; case "NOTE": i || (t.state = "ID"); continue; case "ID": if (/^NOTE($|[ \t])/.test(i)) { t.state = "NOTE"; break; } if (!i) continue; t.cue = new (t.vttjs.VTTCue || t.window.VTTCue)(0, 0, ""); try { t.cue.align = "center"; } catch (e) { t.cue.align = "middle"; } if (((t.state = "CUE"), -1 === i.indexOf("--\x3e"))) { t.cue.id = i; continue; } case "CUE": try { c(i, t.cue, t.regionList); } catch (e) { t.reportOrThrowError(e), (t.cue = null), (t.state = "BADCUE"); continue; } t.state = "CUETEXT"; continue; case "CUETEXT": var d = -1 !== i.indexOf("--\x3e"); if (!i || (d && (f = !0))) { t.oncue && t.oncue(t.cue), (t.cue = null), (t.state = "ID"); continue; } t.cue.text && (t.cue.text += "\n"), (t.cue.text += i .replace(/\u2028/g, "\n") .replace(/u2029/g, "\n")); continue; case "BADCUE": i || (t.state = "ID"); continue; } } } catch (e) { t.reportOrThrowError(e), "CUETEXT" === t.state && t.cue && t.oncue && t.oncue(t.cue), (t.cue = null), (t.state = "INITIAL" === t.state ? "BADWEBVTT" : "BADCUE"); } return this; }, flush: function () { var e = this; try { if ( ((e.buffer += e.decoder.decode()), (e.cue || "HEADER" === e.state) && ((e.buffer += "\n\n"), e.parse()), "INITIAL" === e.state) ) throw new o(o.Errors.BadSignature); } catch (t) { e.reportOrThrowError(t); } return e.onflush && e.onflush(), this; }, }), (e.exports = x); }, 22230: function (e) { var t = { "": 1, lr: 1, rl: 1 }, n = { start: 1, center: 1, end: 1, left: 1, right: 1, auto: 1, "line-left": 1, "line-right": 1, }; function r(e) { return "string" == typeof e && !!n[e.toLowerCase()] && e.toLowerCase(); } function i(e, n, i) { this.hasBeenReset = !1; var o = "", a = !1, s = e, u = n, c = i, l = null, f = "", d = !0, p = "auto", h = "start", g = "auto", m = "auto", y = 100, v = "center"; Object.defineProperties(this, { id: { enumerable: !0, get: function () { return o; }, set: function (e) { o = "" + e; }, }, pauseOnExit: { enumerable: !0, get: function () { return a; }, set: function (e) { a = !!e; }, }, startTime: { enumerable: !0, get: function () { return s; }, set: function (e) { if ("number" != typeof e) throw new TypeError("Start time must be set to a number."); (s = e), (this.hasBeenReset = !0); }, }, endTime: { enumerable: !0, get: function () { return u; }, set: function (e) { if ("number" != typeof e) throw new TypeError("End time must be set to a number."); (u = e), (this.hasBeenReset = !0); }, }, text: { enumerable: !0, get: function () { return c; }, set: function (e) { (c = "" + e), (this.hasBeenReset = !0); }, }, region: { enumerable: !0, get: function () { return l; }, set: function (e) { (l = e), (this.hasBeenReset = !0); }, }, vertical: { enumerable: !0, get: function () { return f; }, set: function (e) { var n = (function (e) { return ( "string" == typeof e && !!t[e.toLowerCase()] && e.toLowerCase() ); })(e); if (!1 === n) throw new SyntaxError( "Vertical: an invalid or illegal direction string was specified." ); (f = n), (this.hasBeenReset = !0); }, }, snapToLines: { enumerable: !0, get: function () { return d; }, set: function (e) { (d = !!e), (this.hasBeenReset = !0); }, }, line: { enumerable: !0, get: function () { return p; }, set: function (e) { if ("number" != typeof e && "auto" !== e) throw new SyntaxError( "Line: an invalid number or illegal string was specified." ); (p = e), (this.hasBeenReset = !0); }, }, lineAlign: { enumerable: !0, get: function () { return h; }, set: function (e) { var t = r(e); t ? ((h = t), (this.hasBeenReset = !0)) : console.warn( "lineAlign: an invalid or illegal string was specified." ); }, }, position: { enumerable: !0, get: function () { return g; }, set: function (e) { if (e < 0 || e > 100) throw new Error("Position must be between 0 and 100."); (g = e), (this.hasBeenReset = !0); }, }, positionAlign: { enumerable: !0, get: function () { return m; }, set: function (e) { var t = r(e); t ? ((m = t), (this.hasBeenReset = !0)) : console.warn( "positionAlign: an invalid or illegal string was specified." ); }, }, size: { enumerable: !0, get: function () { return y; }, set: function (e) { if (e < 0 || e > 100) throw new Error("Size must be between 0 and 100."); (y = e), (this.hasBeenReset = !0); }, }, align: { enumerable: !0, get: function () { return v; }, set: function (e) { var t = r(e); if (!t) throw new SyntaxError( "align: an invalid or illegal alignment string was specified." ); (v = t), (this.hasBeenReset = !0); }, }, }), (this.displayState = void 0); } (i.prototype.getCueAsHTML = function () { return WebVTT.convertCueToDOMTree(window, this.text); }), (e.exports = i); }, 13710: function (e) { var t = { "": !0, up: !0 }; function n(e) { return "number" == typeof e && e >= 0 && e <= 100; } e.exports = function () { var e = 100, r = 3, i = 0, o = 100, a = 0, s = 100, u = ""; Object.defineProperties(this, { width: { enumerable: !0, get: function () { return e; }, set: function (t) { if (!n(t)) throw new Error("Width must be between 0 and 100."); e = t; }, }, lines: { enumerable: !0, get: function () { return r; }, set: function (e) { if ("number" != typeof e) throw new TypeError("Lines must be set to a number."); r = e; }, }, regionAnchorY: { enumerable: !0, get: function () { return o; }, set: function (e) { if (!n(e)) throw new Error("RegionAnchorX must be between 0 and 100."); o = e; }, }, regionAnchorX: { enumerable: !0, get: function () { return i; }, set: function (e) { if (!n(e)) throw new Error("RegionAnchorY must be between 0 and 100."); i = e; }, }, viewportAnchorY: { enumerable: !0, get: function () { return s; }, set: function (e) { if (!n(e)) throw new Error("ViewportAnchorY must be between 0 and 100."); s = e; }, }, viewportAnchorX: { enumerable: !0, get: function () { return a; }, set: function (e) { if (!n(e)) throw new Error("ViewportAnchorX must be between 0 and 100."); a = e; }, }, scroll: { enumerable: !0, get: function () { return u; }, set: function (e) { var n = (function (e) { return ( "string" == typeof e && !!t[e.toLowerCase()] && e.toLowerCase() ); })(e); !1 === n ? console.warn( "Scroll: an invalid or illegal string was specified." ) : (u = n); }, }, }); }; }, 30670: function (e) { "use strict"; e.exports = function () {}; }, 75933: function (e, t, n) { var r; !(function () { function i(e, t, n) { return e.call.apply(e.bind, arguments); } function o(e, t, n) { if (!e) throw Error(); if (2 < arguments.length) { var r = Array.prototype.slice.call(arguments, 2); return function () { var n = Array.prototype.slice.call(arguments); return Array.prototype.unshift.apply(n, r), e.apply(t, n); }; } return function () { return e.apply(t, arguments); }; } function a(e, t, n) { return (a = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? i : o).apply(null, arguments); } var s = Date.now || function () { return +new Date(); }; function u(e, t) { (this.a = e), (this.o = t || e), (this.c = this.o.document); } var c = !!window.FontFace; function l(e, t, n, r) { if (((t = e.c.createElement(t)), n)) for (var i in n) n.hasOwnProperty(i) && ("style" == i ? (t.style.cssText = n[i]) : t.setAttribute(i, n[i])); return r && t.appendChild(e.c.createTextNode(r)), t; } function f(e, t, n) { (e = e.c.getElementsByTagName(t)[0]) || (e = document.documentElement), e.insertBefore(n, e.lastChild); } function d(e) { e.parentNode && e.parentNode.removeChild(e); } function p(e, t, n) { (t = t || []), (n = n || []); for (var r = e.className.split(/\s+/), i = 0; i < t.length; i += 1) { for (var o = !1, a = 0; a < r.length; a += 1) if (t[i] === r[a]) { o = !0; break; } o || r.push(t[i]); } for (t = [], i = 0; i < r.length; i += 1) { for (o = !1, a = 0; a < n.length; a += 1) if (r[i] === n[a]) { o = !0; break; } o || t.push(r[i]); } e.className = t .join(" ") .replace(/\s+/g, " ") .replace(/^\s+|\s+$/, ""); } function h(e, t) { for ( var n = e.className.split(/\s+/), r = 0, i = n.length; r < i; r++ ) if (n[r] == t) return !0; return !1; } function g(e, t, n) { function r() { s && i && o && (s(a), (s = null)); } t = l(e, "link", { rel: "stylesheet", href: t, media: "all" }); var i = !1, o = !0, a = null, s = n || null; c ? ((t.onload = function () { (i = !0), r(); }), (t.onerror = function () { (i = !0), (a = Error("Stylesheet failed to load")), r(); })) : setTimeout(function () { (i = !0), r(); }, 0), f(e, "head", t); } function m(e, t, n, r) { var i = e.c.getElementsByTagName("head")[0]; if (i) { var o = l(e, "script", { src: t }), a = !1; return ( (o.onload = o.onreadystatechange = function () { a || (this.readyState && "loaded" != this.readyState && "complete" != this.readyState) || ((a = !0), n && n(null), (o.onload = o.onreadystatechange = null), "HEAD" == o.parentNode.tagName && i.removeChild(o)); }), i.appendChild(o), setTimeout(function () { a || ((a = !0), n && n(Error("Script load timeout"))); }, r || 5e3), o ); } return null; } function y() { (this.a = 0), (this.c = null); } function v(e) { return ( e.a++, function () { e.a--, _(e); } ); } function b(e, t) { (e.c = t), _(e); } function _(e) { 0 == e.a && e.c && (e.c(), (e.c = null)); } function w(e) { this.a = e || "-"; } function T(e, t) { (this.c = e), (this.f = 4), (this.a = "n"); var n = (t || "n4").match(/^([nio])([1-9])$/i); n && ((this.a = n[1]), (this.f = parseInt(n[2], 10))); } function x(e) { var t = []; e = e.split(/,\s*/); for (var n = 0; n < e.length; n++) { var r = e[n].replace(/['"]/g, ""); -1 != r.indexOf(" ") || /^\d/.test(r) ? t.push("'" + r + "'") : t.push(r); } return t.join(","); } function S(e) { return e.a + e.f; } function k(e) { var t = "normal"; return ( "o" === e.a ? (t = "oblique") : "i" === e.a && (t = "italic"), t ); } function E(e) { var t = 4, n = "n", r = null; return ( e && ((r = e.match(/(normal|oblique|italic)/i)) && r[1] && (n = r[1].substr(0, 1).toLowerCase()), (r = e.match(/([1-9]00|normal|bold)/i)) && r[1] && (/bold/i.test(r[1]) ? (t = 7) : /[1-9]00/.test(r[1]) && (t = parseInt(r[1].substr(0, 1), 10)))), n + t ); } function O(e, t) { (this.c = e), (this.f = e.o.document.documentElement), (this.h = t), (this.a = new w("-")), (this.j = !1 !== t.events), (this.g = !1 !== t.classes); } function C(e) { if (e.g) { var t = h(e.f, e.a.c("wf", "active")), n = [], r = [e.a.c("wf", "loading")]; t || n.push(e.a.c("wf", "inactive")), p(e.f, n, r); } L(e, "inactive"); } function L(e, t, n) { e.j && e.h[t] && (n ? e.h[t](n.c, S(n)) : e.h[t]()); } function A() { this.c = {}; } function I(e, t) { (this.c = e), (this.f = t), (this.a = l(this.c, "span", { "aria-hidden": "true" }, this.f)); } function M(e) { f(e.c, "body", e.a); } function P(e) { return ( "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + x(e.c) + ";font-style:" + k(e) + ";font-weight:" + e.f + "00;" ); } function R(e, t, n, r, i, o) { (this.g = e), (this.j = t), (this.a = r), (this.c = n), (this.f = i || 3e3), (this.h = o || void 0); } function D(e, t, n, r, i, o, a) { (this.v = e), (this.B = t), (this.c = n), (this.a = r), (this.s = a || "BESbswy"), (this.f = {}), (this.w = i || 3e3), (this.u = o || null), (this.m = this.j = this.h = this.g = null), (this.g = new I(this.c, this.s)), (this.h = new I(this.c, this.s)), (this.j = new I(this.c, this.s)), (this.m = new I(this.c, this.s)), (e = P((e = new T(this.a.c + ",serif", S(this.a))))), (this.g.a.style.cssText = e), (e = P((e = new T(this.a.c + ",sans-serif", S(this.a))))), (this.h.a.style.cssText = e), (e = P((e = new T("serif", S(this.a))))), (this.j.a.style.cssText = e), (e = P((e = new T("sans-serif", S(this.a))))), (this.m.a.style.cssText = e), M(this.g), M(this.h), M(this.j), M(this.m); } (w.prototype.c = function (e) { for (var t = [], n = 0; n < arguments.length; n++) t.push(arguments[n].replace(/[\W_]+/g, "").toLowerCase()); return t.join(this.a); }), (R.prototype.start = function () { var e = this.c.o.document, t = this, n = s(), r = new Promise(function (r, i) { !(function o() { s() - n >= t.f ? i() : e.fonts .load( (function (e) { return k(e) + " " + e.f + "00 300px " + x(e.c); })(t.a), t.h ) .then( function (e) { 1 <= e.length ? r() : setTimeout(o, 25); }, function () { i(); } ); })(); }), i = null, o = new Promise(function (e, n) { i = setTimeout(n, t.f); }); Promise.race([o, r]).then( function () { i && (clearTimeout(i), (i = null)), t.g(t.a); }, function () { t.j(t.a); } ); }); var j = { D: "serif", C: "sans-serif" }, N = null; function B() { if (null === N) { var e = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec( window.navigator.userAgent ); N = !!e && (536 > parseInt(e[1], 10) || (536 === parseInt(e[1], 10) && 11 >= parseInt(e[2], 10))); } return N; } function U(e, t, n) { for (var r in j) if (j.hasOwnProperty(r) && t === e.f[j[r]] && n === e.f[j[r]]) return !0; return !1; } function F(e) { var t, n = e.g.a.offsetWidth, r = e.h.a.offsetWidth; (t = n === e.f.serif && r === e.f["sans-serif"]) || (t = B() && U(e, n, r)), t ? s() - e.A >= e.w ? B() && U(e, n, r) && (null === e.u || e.u.hasOwnProperty(e.a.c)) ? z(e, e.v) : z(e, e.B) : (function (e) { setTimeout( a(function () { F(this); }, e), 50 ); })(e) : z(e, e.v); } function z(e, t) { setTimeout( a(function () { d(this.g.a), d(this.h.a), d(this.j.a), d(this.m.a), t(this.a); }, e), 0 ); } function H(e, t, n) { (this.c = e), (this.a = t), (this.f = 0), (this.m = this.j = !1), (this.s = n); } D.prototype.start = function () { (this.f.serif = this.j.a.offsetWidth), (this.f["sans-serif"] = this.m.a.offsetWidth), (this.A = s()), F(this); }; var q = null; function Z(e) { 0 == --e.f && e.j && (e.m ? ((e = e.a).g && p( e.f, [e.a.c("wf", "active")], [e.a.c("wf", "loading"), e.a.c("wf", "inactive")] ), L(e, "active")) : C(e.a)); } function V(e) { (this.j = e), (this.a = new A()), (this.h = 0), (this.f = this.g = !0); } function W(e, t, n, r, i) { var o = 0 == --e.h; (e.f || e.g) && setTimeout(function () { var e = i || null, s = r || {}; if (0 === n.length && o) C(t.a); else { (t.f += n.length), o && (t.j = o); var u, c = []; for (u = 0; u < n.length; u++) { var l = n[u], f = s[l.c], d = t.a, h = l; if ( (d.g && p(d.f, [d.a.c("wf", h.c, S(h).toString(), "loading")]), L(d, "fontloading", h), (d = null), null === q) ) if (window.FontFace) { h = /Gecko.*Firefox\/(\d+)/.exec( window.navigator.userAgent ); var g = /OS X.*Version\/10\..*Safari/.exec( window.navigator.userAgent ) && /Apple/.exec(window.navigator.vendor); q = h ? 42 < parseInt(h[1], 10) : !g; } else q = !1; (d = q ? new R(a(t.g, t), a(t.h, t), t.c, l, t.s, f) : new D(a(t.g, t), a(t.h, t), t.c, l, t.s, e, f)), c.push(d); } for (u = 0; u < c.length; u++) c[u].start(); } }, 0); } function $(e, t) { (this.c = e), (this.a = t); } function G(e, t) { (this.c = e), (this.a = t); } function Y(e, t) { (this.c = e || K), (this.a = []), (this.f = []), (this.g = t || ""); } (H.prototype.g = function (e) { var t = this.a; t.g && p( t.f, [t.a.c("wf", e.c, S(e).toString(), "active")], [ t.a.c("wf", e.c, S(e).toString(), "loading"), t.a.c("wf", e.c, S(e).toString(), "inactive"), ] ), L(t, "fontactive", e), (this.m = !0), Z(this); }), (H.prototype.h = function (e) { var t = this.a; if (t.g) { var n = h(t.f, t.a.c("wf", e.c, S(e).toString(), "active")), r = [], i = [t.a.c("wf", e.c, S(e).toString(), "loading")]; n || r.push(t.a.c("wf", e.c, S(e).toString(), "inactive")), p(t.f, r, i); } L(t, "fontinactive", e), Z(this); }), (V.prototype.load = function (e) { (this.c = new u(this.j, e.context || this.j)), (this.g = !1 !== e.events), (this.f = !1 !== e.classes), (function (e, t, n) { var r = [], i = n.timeout; !(function (e) { e.g && p(e.f, [e.a.c("wf", "loading")]), L(e, "loading"); })(t); r = (function (e, t, n) { var r, i = []; for (r in t) if (t.hasOwnProperty(r)) { var o = e.c[r]; o && i.push(o(t[r], n)); } return i; })(e.a, n, e.c); var o = new H(e.c, t, i); for (e.h = r.length, t = 0, n = r.length; t < n; t++) r[t].load(function (t, n, r) { W(e, o, t, n, r); }); })(this, new O(this.c, e), e); }), ($.prototype.load = function (e) { function t() { if (o["__mti_fntLst" + r]) { var n, i = o["__mti_fntLst" + r](), a = []; if (i) for (var s = 0; s < i.length; s++) { var u = i[s].fontfamily; null != i[s].fontStyle && null != i[s].fontWeight ? ((n = i[s].fontStyle + i[s].fontWeight), a.push(new T(u, n))) : a.push(new T(u)); } e(a); } else setTimeout(function () { t(); }, 50); } var n = this, r = n.a.projectId, i = n.a.version; if (r) { var o = n.c.o; m( this.c, (n.a.api || "https://fast.fonts.net/jsapi") + "/" + r + ".js" + (i ? "?v=" + i : ""), function (i) { i ? e([]) : ((o["__MonotypeConfiguration__" + r] = function () { return n.a; }), t()); } ).id = "__MonotypeAPIScript__" + r; } else e([]); }), (G.prototype.load = function (e) { var t, n, r = this.a.urls || [], i = this.a.families || [], o = this.a.testStrings || {}, a = new y(); for (t = 0, n = r.length; t < n; t++) g(this.c, r[t], v(a)); var s = []; for (t = 0, n = i.length; t < n; t++) if ((r = i[t].split(":"))[1]) for (var u = r[1].split(","), c = 0; c < u.length; c += 1) s.push(new T(r[0], u[c])); else s.push(new T(r[0])); b(a, function () { e(s, o); }); }); var K = "https://fonts.googleapis.com/css"; function X(e) { (this.f = e), (this.a = []), (this.c = {}); } var Q = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ", }, J = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7", }, ee = { i: "i", italic: "i", n: "n", normal: "n" }, te = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/; function ne(e, t) { (this.c = e), (this.a = t); } var re = { Arimo: !0, Cousine: !0, Tinos: !0 }; function ie(e, t) { (this.c = e), (this.a = t); } function oe(e, t) { (this.c = e), (this.f = t), (this.a = []); } (ne.prototype.load = function (e) { var t = new y(), n = this.c, r = new Y(this.a.api, this.a.text), i = this.a.families; !(function (e, t) { for (var n = t.length, r = 0; r < n; r++) { var i = t[r].split(":"); 3 == i.length && e.f.push(i.pop()); var o = ""; 2 == i.length && "" != i[1] && (o = ":"), e.a.push(i.join(o)); } })(r, i); var o = new X(i); !(function (e) { for (var t = e.f.length, n = 0; n < t; n++) { var r = e.f[n].split(":"), i = r[0].replace(/\+/g, " "), o = ["n4"]; if (2 <= r.length) { var a; if (((a = []), (s = r[1]))) for ( var s, u = (s = s.split(",")).length, c = 0; c < u; c++ ) { var l; if ((l = s[c]).match(/^[\w-]+$/)) if (null == (f = te.exec(l.toLowerCase()))) l = ""; else { if ( ((l = null == (l = f[2]) || "" == l ? "n" : ee[l]), null == (f = f[1]) || "" == f) ) f = "4"; else var f = J[f] || (isNaN(f) ? "4" : f.substr(0, 1)); l = [l, f].join(""); } else l = ""; l && a.push(l); } 0 < a.length && (o = a), 3 == r.length && ((a = []), 0 < (r = (r = r[2]) ? r.split(",") : a).length && (r = Q[r[0]]) && (e.c[i] = r)); } for ( e.c[i] || ((r = Q[i]) && (e.c[i] = r)), r = 0; r < o.length; r += 1 ) e.a.push(new T(i, o[r])); } })(o), g( n, (function (e) { if (0 == e.a.length) throw Error("No fonts to load!"); if (-1 != e.c.indexOf("kit=")) return e.c; for (var t = e.a.length, n = [], r = 0; r < t; r++) n.push(e.a[r].replace(/ /g, "+")); return ( (t = e.c + "?family=" + n.join("%7C")), 0 < e.f.length && (t += "&subset=" + e.f.join(",")), 0 < e.g.length && (t += "&text=" + encodeURIComponent(e.g)), t ); })(r), v(t) ), b(t, function () { e(o.a, o.c, re); }); }), (ie.prototype.load = function (e) { var t = this.a.id, n = this.c.o; t ? m( this.c, (this.a.api || "https://use.typekit.net") + "/" + t + ".js", function (t) { if (t) e([]); else if ( n.Typekit && n.Typekit.config && n.Typekit.config.fn ) { t = n.Typekit.config.fn; for (var r = [], i = 0; i < t.length; i += 2) for ( var o = t[i], a = t[i + 1], s = 0; s < a.length; s++ ) r.push(new T(o, a[s])); try { n.Typekit.load({ events: !1, classes: !1, async: !0 }); } catch (e) {} e(r); } }, 2e3 ) : e([]); }), (oe.prototype.load = function (e) { var t = this.f.id, n = this.c.o, r = this; t ? (n.__webfontfontdeckmodule__ || (n.__webfontfontdeckmodule__ = {}), (n.__webfontfontdeckmodule__[t] = function (t, n) { for (var i = 0, o = n.fonts.length; i < o; ++i) { var a = n.fonts[i]; r.a.push( new T( a.name, E("font-weight:" + a.weight + ";font-style:" + a.style) ) ); } e(r.a); }), m( this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + (function (e) { return e.o.location.hostname || e.a.location.hostname; })(this.c) + "/" + t + ".js", function (t) { t && e([]); } )) : e([]); }); var ae = new V(window); (ae.a.c.custom = function (e, t) { return new G(t, e); }), (ae.a.c.fontdeck = function (e, t) { return new oe(t, e); }), (ae.a.c.monotype = function (e, t) { return new $(t, e); }), (ae.a.c.typekit = function (e, t) { return new ie(t, e); }), (ae.a.c.google = function (e, t) { return new ne(t, e); }); var se = { load: a(ae.load, ae) }; void 0 === (r = function () { return se; }.call(t, n, t, e)) || (e.exports = r); })(); }, 47529: function (e) { e.exports = function () { for (var e = {}, n = 0; n < arguments.length; n++) { var r = arguments[n]; for (var i in r) t.call(r, i) && (e[i] = r[i]); } return e; }; var t = Object.prototype.hasOwnProperty; }, 10349: function (e, t, n) { e.exports = n(51714); }, 98235: function (e, t, n) { e.exports = n(25122); }, 19389: function (e, t, n) { e.exports = n(78458); }, 92381: function (e, t, n) { e.exports = n(34153); }, 48216: function (e, t, n) { e.exports = n(65600); }, 8571: function (e, t, n) { e.exports = n(28266); }, 61539: function (e, t, n) { e.exports = n(44399); }, 40703: function (e, t, n) { e.exports = n(39367); }, 18033: function (e, t, n) { e.exports = n(22005); }, 73324: function (e, t, n) { e.exports = n(34748); }, 13464: function (e, t, n) { e.exports = n(83696); }, 86981: function (e, t, n) { e.exports = n(76516); }, 99595: function (e, t, n) { e.exports = n(56368); }, 91829: function (e, t, n) { e.exports = n(93739); }, 51791: function (e, t, n) { e.exports = n(89151); }, 29898: function (e, t, n) { e.exports = n(17654); }, 88946: function (e, t, n) { e.exports = n(57762); }, 7488: function (e, t, n) { e.exports = n(81004); }, 86526: function (e, t, n) { e.exports = n(13885); }, 35704: function (e, t, n) { e.exports = n(89329); }, 76555: function (e, t, n) { e.exports = n(38755); }, 45181: function (e, t, n) { e.exports = n(55781); }, 84705: function (e, t, n) { e.exports = n(53185); }, 89221: function (e, t, n) { e.exports = n(88235); }, 58218: function (e, t, n) { e.exports = n(59829); }, 54847: function (e, t, n) { e.exports = n(65560); }, 59898: function (e, t, n) { e.exports = n(41047); }, 31634: function (e, t, n) { e.exports = n(40911); }, 14051: function (e, t, n) { e.exports = n(85655); }, 60312: function (e, t, n) { e.exports = n(23482); }, 35293: function (e, t, n) { e.exports = n(87034); }, 73672: function (e, t, n) { e.exports = n(83734); }, 67552: function (e, t, n) { e.exports = n(20711); }, 3841: function (e, t, n) { e.exports = n(86488); }, 57445: function (e, t, n) { e.exports = n(8827); }, 39290: function (e, t, n) { e.exports = n(56581); }, 88546: function (e, t, n) { e.exports = n(41633); }, 66775: function (e, t, n) { e.exports = n(20344); }, 52020: function (e, t, n) { e.exports = n(48909); }, 39272: function (e, t, n) { e.exports = n(6258); }, 42692: function (e, t, n) { e.exports = n(57602); }, 62079: function (e, t, n) { e.exports = n(11024); }, 92984: function (e, t, n) { e.exports = n(44705); }, 31082: function (e, t, n) { e.exports = n(12232); }, 35820: function (e, t, n) { e.exports = n(44565); }, 3563: function (e, t, n) { e.exports = n(73637); }, 24835: function (e, t, n) { e.exports = n(80407); }, 25926: function (e, t, n) { e.exports = n(19502); }, 23513: function (e, t, n) { e.exports = n(63969); }, 52472: function (e, t, n) { e.exports = n(21085); }, 48994: function (e, t, n) { e.exports = n(21277); }, 40024: function (e, t, n) { e.exports = n(90007); }, 57170: function (e, t, n) { e.exports = n(34976); }, 81290: function (e, t, n) { e.exports = n(41680); }, 98186: function (e, t, n) { e.exports = n(95214); }, 5177: function (e, t, n) { var r = n(20474).default, i = n(57445), o = n(52472), a = n(3841), s = n(39272), u = n(99595), c = n(92984), l = n(35820), f = n(86526), d = n(35704); function p() { "use strict"; (e.exports = p = function () { return t; }), (e.exports.__esModule = !0), (e.exports.default = e.exports); var t = {}, n = Object.prototype, h = n.hasOwnProperty, g = i || function (e, t, n) { e[t] = n.value; }, m = "function" == typeof o ? o : {}, y = m.iterator || "@@iterator", v = m.asyncIterator || "@@asyncIterator", b = m.toStringTag || "@@toStringTag"; function _(e, t, n) { return ( i(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0, }), e[t] ); } try { _({}, ""); } catch (e) { _ = function (e, t, n) { return (e[t] = n); }; } function w(e, t, n, r) { var i = t && t.prototype instanceof S ? t : S, o = a(i.prototype), s = new j(r || []); return g(o, "_invoke", { value: M(e, n, s) }), o; } function T(e, t, n) { try { return { type: "normal", arg: e.call(t, n) }; } catch (e) { return { type: "throw", arg: e }; } } t.wrap = w; var x = {}; function S() {} function k() {} function E() {} var O = {}; _(O, y, function () { return this; }); var C = s && s(s(N([]))); C && C !== n && h.call(C, y) && (O = C); var L = (E.prototype = S.prototype = a(O)); function A(e) { var t; u((t = ["next", "throw", "return"])).call(t, function (t) { _(e, t, function (e) { return this._invoke(t, e); }); }); } function I(e, t) { function n(i, o, a, s) { var u = T(e[i], e, o); if ("throw" !== u.type) { var c = u.arg, l = c.value; return l && "object" == r(l) && h.call(l, "__await") ? t.resolve(l.__await).then( function (e) { n("next", e, a, s); }, function (e) { n("throw", e, a, s); } ) : t.resolve(l).then( function (e) { (c.value = e), a(c); }, function (e) { return n("throw", e, a, s); } ); } s(u.arg); } var i; g(this, "_invoke", { value: function (e, r) { function o() { return new t(function (t, i) { n(e, r, t, i); }); } return (i = i ? i.then(o, o) : o()); }, }); } function M(e, t, n) { var r = "suspendedStart"; return function (i, o) { if ("executing" === r) throw new Error("Generator is already running"); if ("completed" === r) { if ("throw" === i) throw o; return B(); } for (n.method = i, n.arg = o; ; ) { var a = n.delegate; if (a) { var s = P(a, n); if (s) { if (s === x) continue; return s; } } if ("next" === n.method) n.sent = n._sent = n.arg; else if ("throw" === n.method) { if ("suspendedStart" === r) throw ((r = "completed"), n.arg); n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); r = "executing"; var u = T(e, t, n); if ("normal" === u.type) { if ( ((r = n.done ? "completed" : "suspendedYield"), u.arg === x) ) continue; return { value: u.arg, done: n.done }; } "throw" === u.type && ((r = "completed"), (n.method = "throw"), (n.arg = u.arg)); } }; } function P(e, t) { var n = t.method, r = e.iterator[n]; if (void 0 === r) return ( (t.delegate = null), ("throw" === n && e.iterator.return && ((t.method = "return"), (t.arg = void 0), P(e, t), "throw" === t.method)) || ("return" !== n && ((t.method = "throw"), (t.arg = new TypeError( "The iterator does not provide a '" + n + "' method" )))), x ); var i = T(r, e.iterator, t.arg); if ("throw" === i.type) return ( (t.method = "throw"), (t.arg = i.arg), (t.delegate = null), x ); var o = i.arg; return o ? o.done ? ((t[e.resultName] = o.value), (t.next = e.nextLoc), "return" !== t.method && ((t.method = "next"), (t.arg = void 0)), (t.delegate = null), x) : o : ((t.method = "throw"), (t.arg = new TypeError("iterator result is not an object")), (t.delegate = null), x); } function R(e) { var t = { tryLoc: e[0] }; 1 in e && (t.catchLoc = e[1]), 2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])), this.tryEntries.push(t); } function D(e) { var t = e.completion || {}; (t.type = "normal"), delete t.arg, (e.completion = t); } function j(e) { (this.tryEntries = [{ tryLoc: "root" }]), u(e).call(e, R, this), this.reset(!0); } function N(e) { if (e) { var t = e[y]; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var n = -1, r = function t() { for (; ++n < e.length; ) if (h.call(e, n)) return (t.value = e[n]), (t.done = !1), t; return (t.value = void 0), (t.done = !0), t; }; return (r.next = r); } } return { next: B }; } function B() { return { value: void 0, done: !0 }; } return ( (k.prototype = E), g(L, "constructor", { value: E, configurable: !0 }), g(E, "constructor", { value: k, configurable: !0 }), (k.displayName = _(E, b, "GeneratorFunction")), (t.isGeneratorFunction = function (e) { var t = "function" == typeof e && e.constructor; return ( !!t && (t === k || "GeneratorFunction" === (t.displayName || t.name)) ); }), (t.mark = function (e) { return ( c ? c(e, E) : ((e.__proto__ = E), _(e, b, "GeneratorFunction")), (e.prototype = a(L)), e ); }), (t.awrap = function (e) { return { __await: e }; }), A(I.prototype), _(I.prototype, v, function () { return this; }), (t.AsyncIterator = I), (t.async = function (e, n, r, i, o) { void 0 === o && (o = l); var a = new I(w(e, n, r, i), o); return t.isGeneratorFunction(n) ? a : a.next().then(function (e) { return e.done ? e.value : a.next(); }); }), A(L), _(L, b, "Generator"), _(L, y, function () { return this; }), _(L, "toString", function () { return "[object Generator]"; }), (t.keys = function (e) { var t = Object(e), n = []; for (var r in t) n.push(r); return ( f(n).call(n), function e() { for (; n.length; ) { var r = n.pop(); if (r in t) return (e.value = r), (e.done = !1), e; } return (e.done = !0), e; } ); }), (t.values = N), (j.prototype = { constructor: j, reset: function (e) { var t; if ( ((this.prev = 0), (this.next = 0), (this.sent = this._sent = void 0), (this.done = !1), (this.delegate = null), (this.method = "next"), (this.arg = void 0), u((t = this.tryEntries)).call(t, D), !e) ) for (var n in this) "t" === n.charAt(0) && h.call(this, n) && !isNaN(+d(n).call(n, 1)) && (this[n] = void 0); }, stop: function () { this.done = !0; var e = this.tryEntries[0].completion; if ("throw" === e.type) throw e.arg; return this.rval; }, dispatchException: function (e) { if (this.done) throw e; var t = this; function n(n, r) { return ( (o.type = "throw"), (o.arg = e), (t.next = n), r && ((t.method = "next"), (t.arg = void 0)), !!r ); } for (var r = this.tryEntries.length - 1; r >= 0; --r) { var i = this.tryEntries[r], o = i.completion; if ("root" === i.tryLoc) return n("end"); if (i.tryLoc <= this.prev) { var a = h.call(i, "catchLoc"), s = h.call(i, "finallyLoc"); if (a && s) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0); if (this.prev < i.finallyLoc) return n(i.finallyLoc); } else if (a) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0); } else { if (!s) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return n(i.finallyLoc); } } } }, abrupt: function (e, t) { for (var n = this.tryEntries.length - 1; n >= 0; --n) { var r = this.tryEntries[n]; if ( r.tryLoc <= this.prev && h.call(r, "finallyLoc") && this.prev < r.finallyLoc ) { var i = r; break; } } i && ("break" === e || "continue" === e) && i.tryLoc <= t && t <= i.finallyLoc && (i = null); var o = i ? i.completion : {}; return ( (o.type = e), (o.arg = t), i ? ((this.method = "next"), (this.next = i.finallyLoc), x) : this.complete(o) ); }, complete: function (e, t) { if ("throw" === e.type) throw e.arg; return ( "break" === e.type || "continue" === e.type ? (this.next = e.arg) : "return" === e.type ? ((this.rval = this.arg = e.arg), (this.method = "return"), (this.next = "end")) : "normal" === e.type && t && (this.next = t), x ); }, finish: function (e) { for (var t = this.tryEntries.length - 1; t >= 0; --t) { var n = this.tryEntries[t]; if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), D(n), x; } }, catch: function (e) { for (var t = this.tryEntries.length - 1; t >= 0; --t) { var n = this.tryEntries[t]; if (n.tryLoc === e) { var r = n.completion; if ("throw" === r.type) { var i = r.arg; D(n); } return i; } } throw new Error("illegal catch attempt"); }, delegateYield: function (e, t, n) { return ( (this.delegate = { iterator: N(e), resultName: t, nextLoc: n }), "next" === this.method && (this.arg = void 0), x ); }, }), t ); } (e.exports = p), (e.exports.__esModule = !0), (e.exports.default = e.exports); }, 20474: function (e, t, n) { var r = n(52472), i = n(48994); function o(t) { return ( (e.exports = o = "function" == typeof r && "symbol" == typeof i ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof r && e.constructor === r && e !== r.prototype ? "symbol" : typeof e; }), (e.exports.__esModule = !0), (e.exports.default = e.exports), o(t) ); } (e.exports = o), (e.exports.__esModule = !0), (e.exports.default = e.exports); }, 30222: function (e, t, n) { var r = n(5177)(); e.exports = r; try { regeneratorRuntime = r; } catch (e) { "object" == typeof globalThis ? (globalThis.regeneratorRuntime = r) : Function("r", "regeneratorRuntime = r")(r); } }, 10434: function (e) { function t() { return ( (e.exports = t = 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; }), (e.exports.__esModule = !0), (e.exports.default = e.exports), t.apply(this, arguments) ); } (e.exports = t), (e.exports.__esModule = !0), (e.exports.default = e.exports); }, 97218: function (e, t, n) { "use strict"; function r(e, t) { return function () { return e.apply(t, arguments); }; } const { toString: i } = Object.prototype, { getPrototypeOf: o } = Object, a = ((s = Object.create(null)), (e) => { const t = i.call(e); return s[t] || (s[t] = t.slice(8, -1).toLowerCase()); }); var s; const u = (e) => ((e = e.toLowerCase()), (t) => a(t) === e), c = (e) => (t) => typeof t === e, { isArray: l } = Array, f = c("undefined"); const d = u("ArrayBuffer"); const p = c("string"), h = c("function"), g = c("number"), m = (e) => null !== e && "object" == typeof e, y = (e) => { if ("object" !== a(e)) return !1; const t = o(e); return !( (null !== t && t !== Object.prototype && null !== Object.getPrototypeOf(t)) || Symbol.toStringTag in e || Symbol.iterator in e ); }, v = u("Date"), b = u("File"), _ = u("Blob"), w = u("FileList"), T = u("URLSearchParams"); function x(e, t, { allOwnKeys: n = !1 } = {}) { if (null == e) return; let r, i; if (("object" != typeof e && (e = [e]), l(e))) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e); else { const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length; let a; for (r = 0; r < o; r++) (a = i[r]), t.call(null, e[a], a, e); } } function S(e, t) { t = t.toLowerCase(); const n = Object.keys(e); let r, i = n.length; for (; i-- > 0; ) if (((r = n[i]), t === r.toLowerCase())) return r; return null; } const k = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof window ? window : n.g, E = (e) => !f(e) && e !== k; const O = ((C = "undefined" != typeof Uint8Array && o(Uint8Array)), (e) => C && e instanceof C); var C; const L = u("HTMLFormElement"), A = ( ({ hasOwnProperty: e }) => (t, n) => e.call(t, n) )(Object.prototype), I = u("RegExp"), M = (e, t) => { const n = Object.getOwnPropertyDescriptors(e), r = {}; x(n, (n, i) => { let o; !1 !== (o = t(n, i, e)) && (r[i] = o || n); }), Object.defineProperties(e, r); }, P = "abcdefghijklmnopqrstuvwxyz", R = "0123456789", D = { DIGIT: R, ALPHA: P, ALPHA_DIGIT: P + P.toUpperCase() + R }; const j = u("AsyncFunction"); var N = { isArray: l, isArrayBuffer: d, isBuffer: function (e) { return ( null !== e && !f(e) && null !== e.constructor && !f(e.constructor) && h(e.constructor.isBuffer) && e.constructor.isBuffer(e) ); }, isFormData: (e) => { let t; return ( e && (("function" == typeof FormData && e instanceof FormData) || (h(e.append) && ("formdata" === (t = a(e)) || ("object" === t && h(e.toString) && "[object FormData]" === e.toString())))) ); }, isArrayBufferView: function (e) { let t; return ( (t = "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && d(e.buffer)), t ); }, isString: p, isNumber: g, isBoolean: (e) => !0 === e || !1 === e, isObject: m, isPlainObject: y, isUndefined: f, isDate: v, isFile: b, isBlob: _, isRegExp: I, isFunction: h, isStream: (e) => m(e) && h(e.pipe), isURLSearchParams: T, isTypedArray: O, isFileList: w, forEach: x, merge: function e() { const { caseless: t } = (E(this) && this) || {}, n = {}, r = (r, i) => { const o = (t && S(n, i)) || i; y(n[o]) && y(r) ? (n[o] = e(n[o], r)) : y(r) ? (n[o] = e({}, r)) : l(r) ? (n[o] = r.slice()) : (n[o] = r); }; for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && x(arguments[e], r); return n; }, extend: (e, t, n, { allOwnKeys: i } = {}) => ( x( t, (t, i) => { n && h(t) ? (e[i] = r(t, n)) : (e[i] = t); }, { allOwnKeys: i } ), e ), trim: (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), stripBOM: (e) => (65279 === e.charCodeAt(0) && (e = e.slice(1)), e), inherits: (e, t, n, r) => { (e.prototype = Object.create(t.prototype, r)), (e.prototype.constructor = e), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n); }, toFlatObject: (e, t, n, r) => { let i, a, s; const u = {}; if (((t = t || {}), null == e)) return t; do { for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0; ) (s = i[a]), (r && !r(s, e, t)) || u[s] || ((t[s] = e[s]), (u[s] = !0)); e = !1 !== n && o(e); } while (e && (!n || n(e, t)) && e !== Object.prototype); return t; }, kindOf: a, kindOfTest: u, endsWith: (e, t, n) => { (e = String(e)), (void 0 === n || n > e.length) && (n = e.length), (n -= t.length); const r = e.indexOf(t, n); return -1 !== r && r === n; }, toArray: (e) => { if (!e) return null; if (l(e)) return e; let t = e.length; if (!g(t)) return null; const n = new Array(t); for (; t-- > 0; ) n[t] = e[t]; return n; }, forEachEntry: (e, t) => { const n = (e && e[Symbol.iterator]).call(e); let r; for (; (r = n.next()) && !r.done; ) { const n = r.value; t.call(e, n[0], n[1]); } }, matchAll: (e, t) => { let n; const r = []; for (; null !== (n = e.exec(t)); ) r.push(n); return r; }, isHTMLForm: L, hasOwnProperty: A, hasOwnProp: A, reduceDescriptors: M, freezeMethods: (e) => { M(e, (t, n) => { if (h(e) && -1 !== ["arguments", "caller", "callee"].indexOf(n)) return !1; const r = e[n]; h(r) && ((t.enumerable = !1), "writable" in t ? (t.writable = !1) : t.set || (t.set = () => { throw Error("Can not rewrite read-only method '" + n + "'"); })); }); }, toObjectSet: (e, t) => { const n = {}, r = (e) => { e.forEach((e) => { n[e] = !0; }); }; return l(e) ? r(e) : r(String(e).split(t)), n; }, toCamelCase: (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function (e, t, n) { return t.toUpperCase() + n; }), noop: () => {}, toFiniteNumber: (e, t) => ((e = +e), Number.isFinite(e) ? e : t), findKey: S, global: k, isContextDefined: E, ALPHABET: D, generateString: (e = 16, t = D.ALPHA_DIGIT) => { let n = ""; const { length: r } = t; for (; e--; ) n += t[(Math.random() * r) | 0]; return n; }, isSpecCompliantForm: function (e) { return !!( e && h(e.append) && "FormData" === e[Symbol.toStringTag] && e[Symbol.iterator] ); }, toJSONObject: (e) => { const t = new Array(10), n = (e, r) => { if (m(e)) { if (t.indexOf(e) >= 0) return; if (!("toJSON" in e)) { t[r] = e; const i = l(e) ? [] : {}; return ( x(e, (e, t) => { const o = n(e, r + 1); !f(o) && (i[t] = o); }), (t[r] = void 0), i ); } } return e; }; return n(e, 0); }, isAsyncFn: j, isThenable: (e) => e && (m(e) || h(e)) && h(e.then) && h(e.catch), }; function B(e, t, n, r, i) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : (this.stack = new Error().stack), (this.message = e), (this.name = "AxiosError"), t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i); } N.inherits(B, Error, { toJSON: function () { return { message: this.message, name: this.name, description: this.description, number: this.number, fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, config: N.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null, }; }, }); const U = B.prototype, F = {}; [ "ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL", ].forEach((e) => { F[e] = { value: e }; }), Object.defineProperties(B, F), Object.defineProperty(U, "isAxiosError", { value: !0 }), (B.from = (e, t, n, r, i, o) => { const a = Object.create(U); return ( N.toFlatObject( e, a, function (e) { return e !== Error.prototype; }, (e) => "isAxiosError" !== e ), B.call(a, e.message, t, n, r, i), (a.cause = e), (a.name = e.name), o && Object.assign(a, o), a ); }); function z(e) { return N.isPlainObject(e) || N.isArray(e); } function H(e) { return N.endsWith(e, "[]") ? e.slice(0, -2) : e; } function q(e, t, n) { return e ? e .concat(t) .map(function (e, t) { return (e = H(e)), !n && t ? "[" + e + "]" : e; }) .join(n ? "." : "") : t; } const Z = N.toFlatObject(N, {}, null, function (e) { return /^is[A-Z]/.test(e); }); function V(e, t, n) { if (!N.isObject(e)) throw new TypeError("target must be an object"); t = t || new FormData(); const r = (n = N.toFlatObject( n, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function (e, t) { return !N.isUndefined(t[e]); } )).metaTokens, i = n.visitor || c, o = n.dots, a = n.indexes, s = (n.Blob || ("undefined" != typeof Blob && Blob)) && N.isSpecCompliantForm(t); if (!N.isFunction(i)) throw new TypeError("visitor must be a function"); function u(e) { if (null === e) return ""; if (N.isDate(e)) return e.toISOString(); if (!s && N.isBlob(e)) throw new B("Blob is not supported. Use a Buffer instead."); return N.isArrayBuffer(e) || N.isTypedArray(e) ? s && "function" == typeof Blob ? new Blob([e]) : Buffer.from(e) : e; } function c(e, n, i) { let s = e; if (e && !i && "object" == typeof e) if (N.endsWith(n, "{}")) (n = r ? n : n.slice(0, -2)), (e = JSON.stringify(e)); else if ( (N.isArray(e) && (function (e) { return N.isArray(e) && !e.some(z); })(e)) || ((N.isFileList(e) || N.endsWith(n, "[]")) && (s = N.toArray(e))) ) return ( (n = H(n)), s.forEach(function (e, r) { !N.isUndefined(e) && null !== e && t.append( !0 === a ? q([n], r, o) : null === a ? n : n + "[]", u(e) ); }), !1 ); return !!z(e) || (t.append(q(i, n, o), u(e)), !1); } const l = [], f = Object.assign(Z, { defaultVisitor: c, convertValue: u, isVisitable: z, }); if (!N.isObject(e)) throw new TypeError("data must be an object"); return ( (function e(n, r) { if (!N.isUndefined(n)) { if (-1 !== l.indexOf(n)) throw Error("Circular reference detected in " + r.join(".")); l.push(n), N.forEach(n, function (n, o) { !0 === (!(N.isUndefined(n) || null === n) && i.call(t, n, N.isString(o) ? o.trim() : o, r, f)) && e(n, r ? r.concat(o) : [o]); }), l.pop(); } })(e), t ); } function W(e) { const t = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0", }; return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function (e) { return t[e]; }); } function $(e, t) { (this._pairs = []), e && V(e, this, t); } const G = $.prototype; function Y(e) { return encodeURIComponent(e) .replace(/%3A/gi, ":") .replace(/%24/g, "$") .replace(/%2C/gi, ",") .replace(/%20/g, "+") .replace(/%5B/gi, "[") .replace(/%5D/gi, "]"); } function K(e, t, n) { if (!t) return e; const r = (n && n.encode) || Y, i = n && n.serialize; let o; if ( ((o = i ? i(t, n) : N.isURLSearchParams(t) ? t.toString() : new $(t, n).toString(r)), o) ) { const t = e.indexOf("#"); -1 !== t && (e = e.slice(0, t)), (e += (-1 === e.indexOf("?") ? "?" : "&") + o); } return e; } (G.append = function (e, t) { this._pairs.push([e, t]); }), (G.toString = function (e) { const t = e ? function (t) { return e.call(this, t, W); } : W; return this._pairs .map(function (e) { return t(e[0]) + "=" + t(e[1]); }, "") .join("&"); }); var X = class { constructor() { this.handlers = []; } use(e, t, n) { return ( this.handlers.push({ fulfilled: e, rejected: t, synchronous: !!n && n.synchronous, runWhen: n ? n.runWhen : null, }), this.handlers.length - 1 ); } eject(e) { this.handlers[e] && (this.handlers[e] = null); } clear() { this.handlers && (this.handlers = []); } forEach(e) { N.forEach(this.handlers, function (t) { null !== t && e(t); }); } }, Q = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1, }, J = { isBrowser: !0, classes: { URLSearchParams: "undefined" != typeof URLSearchParams ? URLSearchParams : $, FormData: "undefined" != typeof FormData ? FormData : null, Blob: "undefined" != typeof Blob ? Blob : null, }, protocols: ["http", "https", "file", "blob", "url", "data"], }; const ee = "undefined" != typeof window && "undefined" != typeof document, te = ((ne = "undefined" != typeof navigator && navigator.product), ee && ["ReactNative", "NativeScript", "NS"].indexOf(ne) < 0); var ne; const re = "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && "function" == typeof self.importScripts; var ie = { ...Object.freeze({ __proto__: null, hasBrowserEnv: ee, hasStandardBrowserWebWorkerEnv: re, hasStandardBrowserEnv: te, }), ...J, }; function oe(e) { function t(e, n, r, i) { let o = e[i++]; if ("__proto__" === o) return !0; const a = Number.isFinite(+o), s = i >= e.length; if (((o = !o && N.isArray(r) ? r.length : o), s)) return N.hasOwnProp(r, o) ? (r[o] = [r[o], n]) : (r[o] = n), !a; (r[o] && N.isObject(r[o])) || (r[o] = []); return ( t(e, n, r[o], i) && N.isArray(r[o]) && (r[o] = (function (e) { const t = {}, n = Object.keys(e); let r; const i = n.length; let o; for (r = 0; r < i; r++) (o = n[r]), (t[o] = e[o]); return t; })(r[o])), !a ); } if (N.isFormData(e) && N.isFunction(e.entries)) { const n = {}; return ( N.forEachEntry(e, (e, r) => { t( (function (e) { return N.matchAll(/\w+|\[(\w*)]/g, e).map((e) => "[]" === e[0] ? "" : e[1] || e[0] ); })(e), r, n, 0 ); }), n ); } return null; } const ae = { transitional: Q, adapter: ["xhr", "http"], transformRequest: [ function (e, t) { const n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = N.isObject(e); i && N.isHTMLForm(e) && (e = new FormData(e)); if (N.isFormData(e)) return r ? JSON.stringify(oe(e)) : e; if ( N.isArrayBuffer(e) || N.isBuffer(e) || N.isStream(e) || N.isFile(e) || N.isBlob(e) ) return e; if (N.isArrayBufferView(e)) return e.buffer; if (N.isURLSearchParams(e)) return ( t.setContentType( "application/x-www-form-urlencoded;charset=utf-8", !1 ), e.toString() ); let o; if (i) { if (n.indexOf("application/x-www-form-urlencoded") > -1) return (function (e, t) { return V( e, new ie.classes.URLSearchParams(), Object.assign( { visitor: function (e, t, n, r) { return ie.isNode && N.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments); }, }, t ) ); })(e, this.formSerializer).toString(); if ( (o = N.isFileList(e)) || n.indexOf("multipart/form-data") > -1 ) { const t = this.env && this.env.FormData; return V( o ? { "files[]": e } : e, t && new t(), this.formSerializer ); } } return i || r ? (t.setContentType("application/json", !1), (function (e, t, n) { if (N.isString(e)) try { return (t || JSON.parse)(e), N.trim(e); } catch (e) { if ("SyntaxError" !== e.name) throw e; } return (n || JSON.stringify)(e); })(e)) : e; }, ], transformResponse: [ function (e) { const t = this.transitional || ae.transitional, n = t && t.forcedJSONParsing, r = "json" === this.responseType; if (e && N.isString(e) && ((n && !this.responseType) || r)) { const n = !(t && t.silentJSONParsing) && r; try { return JSON.parse(e); } catch (e) { if (n) { if ("SyntaxError" === e.name) throw B.from( e, B.ERR_BAD_RESPONSE, this, null, this.response ); throw e; } } } return e; }, ], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: ie.classes.FormData, Blob: ie.classes.Blob }, validateStatus: function (e) { return e >= 200 && e < 300; }, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0, }, }, }; N.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => { ae.headers[e] = {}; }); var se = ae; const ue = N.toObjectSet([ "age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent", ]); const ce = Symbol("internals"); function le(e) { return e && String(e).trim().toLowerCase(); } function fe(e) { return !1 === e || null == e ? e : N.isArray(e) ? e.map(fe) : String(e); } function de(e, t, n, r, i) { return N.isFunction(r) ? r.call(this, t, n) : (i && (t = n), N.isString(t) ? N.isString(r) ? -1 !== t.indexOf(r) : N.isRegExp(r) ? r.test(t) : void 0 : void 0); } class pe { constructor(e) { e && this.set(e); } set(e, t, n) { const r = this; function i(e, t, n) { const i = le(t); if (!i) throw new Error("header name must be a non-empty string"); const o = N.findKey(r, i); (!o || void 0 === r[o] || !0 === n || (void 0 === n && !1 !== r[o])) && (r[o || t] = fe(e)); } const o = (e, t) => N.forEach(e, (e, n) => i(e, n, t)); return ( N.isPlainObject(e) || e instanceof this.constructor ? o(e, t) : N.isString(e) && (e = e.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()) ? o( ((e) => { const t = {}; let n, r, i; return ( e && e.split("\n").forEach(function (e) { (i = e.indexOf(":")), (n = e.substring(0, i).trim().toLowerCase()), (r = e.substring(i + 1).trim()), !n || (t[n] && ue[n]) || ("set-cookie" === n ? t[n] ? t[n].push(r) : (t[n] = [r]) : (t[n] = t[n] ? t[n] + ", " + r : r)); }), t ); })(e), t ) : null != e && i(t, e, n), this ); } get(e, t) { if ((e = le(e))) { const n = N.findKey(this, e); if (n) { const e = this[n]; if (!t) return e; if (!0 === t) return (function (e) { const t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let r; for (; (r = n.exec(e)); ) t[r[1]] = r[2]; return t; })(e); if (N.isFunction(t)) return t.call(this, e, n); if (N.isRegExp(t)) return t.exec(e); throw new TypeError("parser must be boolean|regexp|function"); } } } has(e, t) { if ((e = le(e))) { const n = N.findKey(this, e); return !(!n || void 0 === this[n] || (t && !de(0, this[n], n, t))); } return !1; } delete(e, t) { const n = this; let r = !1; function i(e) { if ((e = le(e))) { const i = N.findKey(n, e); !i || (t && !de(0, n[i], i, t)) || (delete n[i], (r = !0)); } } return N.isArray(e) ? e.forEach(i) : i(e), r; } clear(e) { const t = Object.keys(this); let n = t.length, r = !1; for (; n--; ) { const i = t[n]; (e && !de(0, this[i], i, e, !0)) || (delete this[i], (r = !0)); } return r; } normalize(e) { const t = this, n = {}; return ( N.forEach(this, (r, i) => { const o = N.findKey(n, i); if (o) return (t[o] = fe(r)), void delete t[i]; const a = e ? (function (e) { return e .trim() .toLowerCase() .replace( /([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n ); })(i) : String(i).trim(); a !== i && delete t[i], (t[a] = fe(r)), (n[a] = !0); }), this ); } concat(...e) { return this.constructor.concat(this, ...e); } toJSON(e) { const t = Object.create(null); return ( N.forEach(this, (n, r) => { null != n && !1 !== n && (t[r] = e && N.isArray(n) ? n.join(", ") : n); }), t ); } [Symbol.iterator]() { return Object.entries(this.toJSON())[Symbol.iterator](); } toString() { return Object.entries(this.toJSON()) .map(([e, t]) => e + ": " + t) .join("\n"); } get [Symbol.toStringTag]() { return "AxiosHeaders"; } static from(e) { return e instanceof this ? e : new this(e); } static concat(e, ...t) { const n = new this(e); return t.forEach((e) => n.set(e)), n; } static accessor(e) { const t = (this[ce] = this[ce] = { accessors: {} }).accessors, n = this.prototype; function r(e) { const r = le(e); t[r] || (!(function (e, t) { const n = N.toCamelCase(" " + t); ["get", "set", "has"].forEach((r) => { Object.defineProperty(e, r + n, { value: function (e, n, i) { return this[r].call(this, t, e, n, i); }, configurable: !0, }); }); })(n, e), (t[r] = !0)); } return N.isArray(e) ? e.forEach(r) : r(e), this; } } pe.accessor([ "Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization", ]), N.reduceDescriptors(pe.prototype, ({ value: e }, t) => { let n = t[0].toUpperCase() + t.slice(1); return { get: () => e, set(e) { this[n] = e; }, }; }), N.freezeMethods(pe); var he = pe; function ge(e, t) { const n = this || se, r = t || n, i = he.from(r.headers); let o = r.data; return ( N.forEach(e, function (e) { o = e.call(n, o, i.normalize(), t ? t.status : void 0); }), i.normalize(), o ); } function me(e) { return !(!e || !e.__CANCEL__); } function ye(e, t, n) { B.call(this, null == e ? "canceled" : e, B.ERR_CANCELED, t, n), (this.name = "CanceledError"); } N.inherits(ye, B, { __CANCEL__: !0 }); var ve = ie.hasStandardBrowserEnv ? { write(e, t, n, r, i, o) { const a = [e + "=" + encodeURIComponent(t)]; N.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), N.isString(r) && a.push("path=" + r), N.isString(i) && a.push("domain=" + i), !0 === o && a.push("secure"), (document.cookie = a.join("; ")); }, read(e) { const t = document.cookie.match( new RegExp("(^|;\\s*)(" + e + ")=([^;]*)") ); return t ? decodeURIComponent(t[3]) : null; }, remove(e) { this.write(e, "", Date.now() - 864e5); }, } : { write() {}, read: () => null, remove() {} }; function be(e, t) { return e && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t) ? (function (e, t) { return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; })(e, t) : t; } var _e = ie.hasStandardBrowserEnv ? (function () { const e = /(msie|trident)/i.test(navigator.userAgent), t = document.createElement("a"); let n; function r(n) { let r = n; return ( e && (t.setAttribute("href", r), (r = t.href)), t.setAttribute("href", r), { href: t.href, protocol: t.protocol ? t.protocol.replace(/:$/, "") : "", host: t.host, search: t.search ? t.search.replace(/^\?/, "") : "", hash: t.hash ? t.hash.replace(/^#/, "") : "", hostname: t.hostname, port: t.port, pathname: "/" === t.pathname.charAt(0) ? t.pathname : "/" + t.pathname, } ); } return ( (n = r(window.location.href)), function (e) { const t = N.isString(e) ? r(e) : e; return t.protocol === n.protocol && t.host === n.host; } ); })() : function () { return !0; }; function we(e, t) { let n = 0; const r = (function (e, t) { e = e || 10; const n = new Array(e), r = new Array(e); let i, o = 0, a = 0; return ( (t = void 0 !== t ? t : 1e3), function (s) { const u = Date.now(), c = r[a]; i || (i = u), (n[o] = s), (r[o] = u); let l = a, f = 0; for (; l !== o; ) (f += n[l++]), (l %= e); if (((o = (o + 1) % e), o === a && (a = (a + 1) % e), u - i < t)) return; const d = c && u - c; return d ? Math.round((1e3 * f) / d) : void 0; } ); })(50, 250); return (i) => { const o = i.loaded, a = i.lengthComputable ? i.total : void 0, s = o - n, u = r(s); n = o; const c = { loaded: o, total: a, progress: a ? o / a : void 0, bytes: s, rate: u || void 0, estimated: u && a && o <= a ? (a - o) / u : void 0, event: i, }; (c[t ? "download" : "upload"] = !0), e(c); }; } const Te = { http: null, xhr: "undefined" != typeof XMLHttpRequest && function (e) { return new Promise(function (t, n) { let r = e.data; const i = he.from(e.headers).normalize(); let o, a, { responseType: s, withXSRFToken: u } = e; function c() { e.cancelToken && e.cancelToken.unsubscribe(o), e.signal && e.signal.removeEventListener("abort", o); } if (N.isFormData(r)) if ( ie.hasStandardBrowserEnv || ie.hasStandardBrowserWebWorkerEnv ) i.setContentType(!1); else if (!1 !== (a = i.getContentType())) { const [e, ...t] = a ? a .split(";") .map((e) => e.trim()) .filter(Boolean) : []; i.setContentType( [e || "multipart/form-data", ...t].join("; ") ); } let l = new XMLHttpRequest(); if (e.auth) { const t = e.auth.username || "", n = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : ""; i.set("Authorization", "Basic " + btoa(t + ":" + n)); } const f = be(e.baseURL, e.url); function d() { if (!l) return; const r = he.from( "getAllResponseHeaders" in l && l.getAllResponseHeaders() ); !(function (e, t, n) { const r = n.config.validateStatus; n.status && r && !r(n.status) ? t( new B( "Request failed with status code " + n.status, [B.ERR_BAD_REQUEST, B.ERR_BAD_RESPONSE][ Math.floor(n.status / 100) - 4 ], n.config, n.request, n ) ) : e(n); })( function (e) { t(e), c(); }, function (e) { n(e), c(); }, { data: s && "text" !== s && "json" !== s ? l.response : l.responseText, status: l.status, statusText: l.statusText, headers: r, config: e, request: l, } ), (l = null); } if ( (l.open( e.method.toUpperCase(), K(f, e.params, e.paramsSerializer), !0 ), (l.timeout = e.timeout), "onloadend" in l ? (l.onloadend = d) : (l.onreadystatechange = function () { l && 4 === l.readyState && (0 !== l.status || (l.responseURL && 0 === l.responseURL.indexOf("file:"))) && setTimeout(d); }), (l.onabort = function () { l && (n(new B("Request aborted", B.ECONNABORTED, e, l)), (l = null)); }), (l.onerror = function () { n(new B("Network Error", B.ERR_NETWORK, e, l)), (l = null); }), (l.ontimeout = function () { let t = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded"; const r = e.transitional || Q; e.timeoutErrorMessage && (t = e.timeoutErrorMessage), n( new B( t, r.clarifyTimeoutError ? B.ETIMEDOUT : B.ECONNABORTED, e, l ) ), (l = null); }), ie.hasStandardBrowserEnv && (u && N.isFunction(u) && (u = u(e)), u || (!1 !== u && _e(f)))) ) { const t = e.xsrfHeaderName && e.xsrfCookieName && ve.read(e.xsrfCookieName); t && i.set(e.xsrfHeaderName, t); } void 0 === r && i.setContentType(null), "setRequestHeader" in l && N.forEach(i.toJSON(), function (e, t) { l.setRequestHeader(t, e); }), N.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), s && "json" !== s && (l.responseType = e.responseType), "function" == typeof e.onDownloadProgress && l.addEventListener("progress", we(e.onDownloadProgress, !0)), "function" == typeof e.onUploadProgress && l.upload && l.upload.addEventListener("progress", we(e.onUploadProgress)), (e.cancelToken || e.signal) && ((o = (t) => { l && (n(!t || t.type ? new ye(null, e, l) : t), l.abort(), (l = null)); }), e.cancelToken && e.cancelToken.subscribe(o), e.signal && (e.signal.aborted ? o() : e.signal.addEventListener("abort", o))); const p = (function (e) { const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e); return (t && t[1]) || ""; })(f); p && -1 === ie.protocols.indexOf(p) ? n( new B( "Unsupported protocol " + p + ":", B.ERR_BAD_REQUEST, e ) ) : l.send(r || null); }); }, }; N.forEach(Te, (e, t) => { if (e) { try { Object.defineProperty(e, "name", { value: t }); } catch (e) {} Object.defineProperty(e, "adapterName", { value: t }); } }); const xe = (e) => `- ${e}`, Se = (e) => N.isFunction(e) || null === e || !1 === e; var ke = (e) => { e = N.isArray(e) ? e : [e]; const { length: t } = e; let n, r; const i = {}; for (let o = 0; o < t; o++) { let t; if ( ((n = e[o]), (r = n), !Se(n) && ((r = Te[(t = String(n)).toLowerCase()]), void 0 === r)) ) throw new B(`Unknown adapter '${t}'`); if (r) break; i[t || "#" + o] = r; } if (!r) { const e = Object.entries(i).map( ([e, t]) => `adapter ${e} ` + (!1 === t ? "is not supported by the environment" : "is not available in the build") ); throw new B( "There is no suitable adapter to dispatch the request " + (t ? e.length > 1 ? "since :\n" + e.map(xe).join("\n") : " " + xe(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT" ); } return r; }; function Ee(e) { if ( (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) ) throw new ye(null, e); } function Oe(e) { Ee(e), (e.headers = he.from(e.headers)), (e.data = ge.call(e, e.transformRequest)), -1 !== ["post", "put", "patch"].indexOf(e.method) && e.headers.setContentType("application/x-www-form-urlencoded", !1); return ke(e.adapter || se.adapter)(e).then( function (t) { return ( Ee(e), (t.data = ge.call(e, e.transformResponse, t)), (t.headers = he.from(t.headers)), t ); }, function (t) { return ( me(t) || (Ee(e), t && t.response && ((t.response.data = ge.call( e, e.transformResponse, t.response )), (t.response.headers = he.from(t.response.headers)))), Promise.reject(t) ); } ); } const Ce = (e) => (e instanceof he ? e.toJSON() : e); function Le(e, t) { t = t || {}; const n = {}; function r(e, t, n) { return N.isPlainObject(e) && N.isPlainObject(t) ? N.merge.call({ caseless: n }, e, t) : N.isPlainObject(t) ? N.merge({}, t) : N.isArray(t) ? t.slice() : t; } function i(e, t, n) { return N.isUndefined(t) ? N.isUndefined(e) ? void 0 : r(void 0, e, n) : r(e, t, n); } function o(e, t) { if (!N.isUndefined(t)) return r(void 0, t); } function a(e, t) { return N.isUndefined(t) ? N.isUndefined(e) ? void 0 : r(void 0, e) : r(void 0, t); } function s(n, i, o) { return o in t ? r(n, i) : o in e ? r(void 0, n) : void 0; } const u = { url: o, method: o, data: o, baseURL: a, transformRequest: a, transformResponse: a, paramsSerializer: a, timeout: a, timeoutMessage: a, withCredentials: a, withXSRFToken: a, adapter: a, responseType: a, xsrfCookieName: a, xsrfHeaderName: a, onUploadProgress: a, onDownloadProgress: a, decompress: a, maxContentLength: a, maxBodyLength: a, beforeRedirect: a, transport: a, httpAgent: a, httpsAgent: a, cancelToken: a, socketPath: a, responseEncoding: a, validateStatus: s, headers: (e, t) => i(Ce(e), Ce(t), !0), }; return ( N.forEach(Object.keys(Object.assign({}, e, t)), function (r) { const o = u[r] || i, a = o(e[r], t[r], r); (N.isUndefined(a) && o !== s) || (n[r] = a); }), n ); } const Ae = "1.6.7", Ie = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach( (e, t) => { Ie[e] = function (n) { return typeof n === e || "a" + (t < 1 ? "n " : " ") + e; }; } ); const Me = {}; Ie.transitional = function (e, t, n) { function r(e, t) { return ( "[Axios v1.6.7] Transitional option '" + e + "'" + t + (n ? ". " + n : "") ); } return (n, i, o) => { if (!1 === e) throw new B( r(i, " has been removed" + (t ? " in " + t : "")), B.ERR_DEPRECATED ); return ( t && !Me[i] && ((Me[i] = !0), console.warn( r( i, " has been deprecated since v" + t + " and will be removed in the near future" ) )), !e || e(n, i, o) ); }; }; var Pe = { assertOptions: function (e, t, n) { if ("object" != typeof e) throw new B("options must be an object", B.ERR_BAD_OPTION_VALUE); const r = Object.keys(e); let i = r.length; for (; i-- > 0; ) { const o = r[i], a = t[o]; if (a) { const t = e[o], n = void 0 === t || a(t, o, e); if (!0 !== n) throw new B( "option " + o + " must be " + n, B.ERR_BAD_OPTION_VALUE ); } else if (!0 !== n) throw new B("Unknown option " + o, B.ERR_BAD_OPTION); } }, validators: Ie, }; const Re = Pe.validators; class De { constructor(e) { (this.defaults = e), (this.interceptors = { request: new X(), response: new X() }); } async request(e, t) { try { return await this._request(e, t); } catch (e) { if (e instanceof Error) { let t; Error.captureStackTrace ? Error.captureStackTrace((t = {})) : (t = new Error()); const n = t.stack ? t.stack.replace(/^.+\n/, "") : ""; e.stack ? n && !String(e.stack).endsWith(n.replace(/^.+\n.+\n/, "")) && (e.stack += "\n" + n) : (e.stack = n); } throw e; } } _request(e, t) { "string" == typeof e ? ((t = t || {}).url = e) : (t = e || {}), (t = Le(this.defaults, t)); const { transitional: n, paramsSerializer: r, headers: i } = t; void 0 !== n && Pe.assertOptions( n, { silentJSONParsing: Re.transitional(Re.boolean), forcedJSONParsing: Re.transitional(Re.boolean), clarifyTimeoutError: Re.transitional(Re.boolean), }, !1 ), null != r && (N.isFunction(r) ? (t.paramsSerializer = { serialize: r }) : Pe.assertOptions( r, { encode: Re.function, serialize: Re.function }, !0 )), (t.method = ( t.method || this.defaults.method || "get" ).toLowerCase()); let o = i && N.merge(i.common, i[t.method]); i && N.forEach( ["delete", "get", "head", "post", "put", "patch", "common"], (e) => { delete i[e]; } ), (t.headers = he.concat(o, i)); const a = []; let s = !0; this.interceptors.request.forEach(function (e) { ("function" == typeof e.runWhen && !1 === e.runWhen(t)) || ((s = s && e.synchronous), a.unshift(e.fulfilled, e.rejected)); }); const u = []; let c; this.interceptors.response.forEach(function (e) { u.push(e.fulfilled, e.rejected); }); let l, f = 0; if (!s) { const e = [Oe.bind(this), void 0]; for ( e.unshift.apply(e, a), e.push.apply(e, u), l = e.length, c = Promise.resolve(t); f < l; ) c = c.then(e[f++], e[f++]); return c; } l = a.length; let d = t; for (f = 0; f < l; ) { const e = a[f++], t = a[f++]; try { d = e(d); } catch (e) { t.call(this, e); break; } } try { c = Oe.call(this, d); } catch (e) { return Promise.reject(e); } for (f = 0, l = u.length; f < l; ) c = c.then(u[f++], u[f++]); return c; } getUri(e) { return K( be((e = Le(this.defaults, e)).baseURL, e.url), e.params, e.paramsSerializer ); } } N.forEach(["delete", "get", "head", "options"], function (e) { De.prototype[e] = function (t, n) { return this.request( Le(n || {}, { method: e, url: t, data: (n || {}).data }) ); }; }), N.forEach(["post", "put", "patch"], function (e) { function t(t) { return function (n, r, i) { return this.request( Le(i || {}, { method: e, headers: t ? { "Content-Type": "multipart/form-data" } : {}, url: n, data: r, }) ); }; } (De.prototype[e] = t()), (De.prototype[e + "Form"] = t(!0)); }); var je = De; class Ne { constructor(e) { if ("function" != typeof e) throw new TypeError("executor must be a function."); let t; this.promise = new Promise(function (e) { t = e; }); const n = this; this.promise.then((e) => { if (!n._listeners) return; let t = n._listeners.length; for (; t-- > 0; ) n._listeners[t](e); n._listeners = null; }), (this.promise.then = (e) => { let t; const r = new Promise((e) => { n.subscribe(e), (t = e); }).then(e); return ( (r.cancel = function () { n.unsubscribe(t); }), r ); }), e(function (e, r, i) { n.reason || ((n.reason = new ye(e, r, i)), t(n.reason)); }); } throwIfRequested() { if (this.reason) throw this.reason; } subscribe(e) { this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : (this._listeners = [e]); } unsubscribe(e) { if (!this._listeners) return; const t = this._listeners.indexOf(e); -1 !== t && this._listeners.splice(t, 1); } static source() { let e; return { token: new Ne(function (t) { e = t; }), cancel: e, }; } } var Be = Ne; const Ue = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511, }; Object.entries(Ue).forEach(([e, t]) => { Ue[t] = e; }); var Fe = Ue; const ze = (function e(t) { const n = new je(t), i = r(je.prototype.request, n); return ( N.extend(i, je.prototype, n, { allOwnKeys: !0 }), N.extend(i, n, null, { allOwnKeys: !0 }), (i.create = function (n) { return e(Le(t, n)); }), i ); })(se); (ze.Axios = je), (ze.CanceledError = ye), (ze.CancelToken = Be), (ze.isCancel = me), (ze.VERSION = Ae), (ze.toFormData = V), (ze.AxiosError = B), (ze.Cancel = ze.CanceledError), (ze.all = function (e) { return Promise.all(e); }), (ze.spread = function (e) { return function (t) { return e.apply(null, t); }; }), (ze.isAxiosError = function (e) { return N.isObject(e) && !0 === e.isAxiosError; }), (ze.mergeConfig = Le), (ze.AxiosHeaders = he), (ze.formToJSON = (e) => oe(N.isHTMLForm(e) ? new FormData(e) : e)), (ze.getAdapter = ke), (ze.HttpStatusCode = Fe), (ze.default = ze), (e.exports = ze); }, 84406: function (e, t, n) { "use strict"; function r(e, t) { (null == t || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } n.d(t, { Z: function () { return r; }, }); }, 9869: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return i; }, }); var r = n(98235); function i(e) { if (r(e)) return e; } }, 5281: function (e, t, n) { "use strict"; function r(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } n.d(t, { Z: function () { return r; }, }); }, 33938: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return o; }, }); var r = n(35820); function i(e, t, n, i, o, a, s) { try { var u = e[a](s), c = u.value; } catch (e) { return void n(e); } u.done ? t(c) : r.resolve(c).then(i, o); } function o(e) { return function () { var t = this, n = arguments; return new r(function (r, o) { var a = e.apply(t, n); function s(e) { i(a, r, o, s, u, "next", e); } function u(e) { i(a, r, o, s, u, "throw", e); } s(void 0); }); }; } }, 68420: function (e, t, n) { "use strict"; function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } n.d(t, { Z: function () { return r; }, }); }, 27344: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return a; }, }); var r = n(57445), i = n(35991); function o(e, t) { for (var n = 0; n < t.length; n++) { var o = t[n]; (o.enumerable = o.enumerable || !1), (o.configurable = !0), "value" in o && (o.writable = !0), r(e, (0, i.Z)(o.key), o); } } function a(e, t, n) { return ( t && o(e.prototype, t), n && o(e, n), r(e, "prototype", { writable: !1 }), e ); } }, 44845: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return o; }, }); var r = n(57445), i = n(35991); function o(e, t, n) { return ( (t = (0, i.Z)(t)) in e ? r(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = n), e ); } }, 73126: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return o; }, }); var r = n(67552), i = n(48216); function o() { var e; return ( (o = r ? i((e = r)).call(e) : 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; }), o.apply(this, arguments) ); } }, 18486: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return u; }, }); var r = n(25926), i = n(48216), o = n(88546), a = n(3362); function s(e, t) { for ( ; !Object.prototype.hasOwnProperty.call(e, t) && null !== (e = (0, a.Z)(e)); ); return e; } function u() { var e; "undefined" != typeof Reflect && r ? (u = i((e = r)).call(e)) : (u = function (e, t, n) { var r = s(e, t); if (r) { var i = o(r, t); return i.get ? i.get.call(arguments.length < 3 ? e : n) : i.value; } }); return u.apply(this, arguments); } }, 3362: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return a; }, }); var r = n(92984), i = n(48216), o = n(39272); function a(e) { var t; return ( (a = r ? i((t = o)).call(t) : function (e) { return e.__proto__ || o(e); }), a(e) ); } }, 90306: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return a; }, }); var r = n(3841), i = n(57445), o = n(62534); function a(e, t) { if ("function" != typeof t && null !== t) throw new TypeError( "Super expression must either be null or a function" ); (e.prototype = r(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 }, })), i(e, "prototype", { writable: !1 }), t && (0, o.Z)(e, t); } }, 24713: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return a; }, }); var r = n(52472), i = n(19389), o = n(10349); function a(e) { if ((void 0 !== r && null != i(e)) || null != e["@@iterator"]) return o(e); } }, 13743: function (e, t, n) { "use strict"; function r() { throw new TypeError( "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); } n.d(t, { Z: function () { return r; }, }); }, 41266: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return a; }, }); var r = n(52020), i = n(51791), o = n(62079); function a(e, t) { if (null == e) return {}; var n, a, s = (function (e, t) { if (null == e) return {}; var n, r, a = {}, s = o(e); for (r = 0; r < s.length; r++) (n = s[r]), i(t).call(t, n) >= 0 || (a[n] = e[n]); return a; })(e, t); if (r) { var u = r(e); for (a = 0; a < u.length; a++) (n = u[a]), i(t).call(t, n) >= 0 || (Object.prototype.propertyIsEnumerable.call(e, n) && (s[n] = e[n])); } return s; } }, 3020: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return o; }, }); var r = n(19623), i = n(5281); function o(e, t) { if (t && ("object" === (0, r.Z)(t) || "function" == typeof t)) return t; if (void 0 !== t) throw new TypeError( "Derived constructors may only return object or undefined" ); return (0, i.Z)(e); } }, 62534: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return o; }, }); var r = n(92984), i = n(48216); function o(e, t) { var n; return ( (o = r ? i((n = r)).call(n) : function (e, t) { return (e.__proto__ = t), e; }), o(e, t) ); } }, 59056: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return u; }, }); var r = n(9869), i = n(52472), o = n(19389); var a = n(71518), s = n(13743); function u(e, t) { return ( (0, r.Z)(e) || (function (e, t) { var n = null == e ? null : (void 0 !== i && o(e)) || e["@@iterator"]; if (null != n) { var r, a, s, u, c = [], l = !0, f = !1; try { if (((s = (n = n.call(e)).next), 0 === t)) { if (Object(n) !== n) return; l = !1; } else for ( ; !(l = (r = s.call(n)).done) && (c.push(r.value), c.length !== t); l = !0 ); } catch (e) { (f = !0), (a = e); } finally { try { if ( !l && null != n.return && ((u = n.return()), Object(u) !== u) ) return; } finally { if (f) throw a; } } return c; } })(e, t) || (0, a.Z)(e, t) || (0, s.Z)() ); } }, 15713: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return s; }, }); var r = n(9869), i = n(24713), o = n(71518), a = n(13743); function s(e) { return (0, r.Z)(e) || (0, i.Z)(e) || (0, o.Z)(e) || (0, a.Z)(); } }, 79349: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return s; }, }); var r = n(98235), i = n(84406); var o = n(24713), a = n(71518); function s(e) { return ( (function (e) { if (r(e)) return (0, i.Z)(e); })(e) || (0, o.Z)(e) || (0, a.Z)(e) || (function () { throw new TypeError( "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); })() ); } }, 35991: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return o; }, }); var r = n(19623), i = n(40024); function o(e) { var t = (function (e, t) { if ("object" !== (0, r.Z)(e) || null === e) return e; var n = e[i]; if (void 0 !== n) { var o = n.call(e, t || "default"); if ("object" !== (0, r.Z)(o)) return o; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === t ? String : Number)(e); })(e, "string"); return "symbol" === (0, r.Z)(t) ? t : String(t); } }, 19623: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return o; }, }); var r = n(52472), i = n(48994); function o(e) { return ( (o = "function" == typeof r && "symbol" == typeof i ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof r && e.constructor === r && e !== r.prototype ? "symbol" : typeof e; }), o(e) ); } }, 71518: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return a; }, }); var r = n(35704), i = n(10349), o = n(84406); function a(e, t) { var n; if (e) { if ("string" == typeof e) return (0, o.Z)(e, t); var a = r((n = Object.prototype.toString.call(e))).call(n, 8, -1); return ( "Object" === a && e.constructor && (a = e.constructor.name), "Map" === a || "Set" === a ? i(e) : "Arguments" === a || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a) ? (0, o.Z)(e, t) : void 0 ); } } }, 87462: function (e, t, n) { "use strict"; function r() { return ( (r = 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; }), r.apply(this, arguments) ); } n.d(t, { Z: function () { return r; }, }); }, 51721: function (e, t, n) { "use strict"; function r(e, t) { return ( (r = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) { return (e.__proto__ = t), e; }), r(e, t) ); } function i(e, t) { (e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), r(e, t); } n.d(t, { Z: function () { return i; }, }); }, 63366: function (e, t, n) { "use strict"; function r(e, t) { if (null == e) return {}; var n, r, i = {}, o = Object.keys(e); for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n]); return i; } n.d(t, { Z: function () { return r; }, }); }, 72881: function (e, t, n) { "use strict"; function r(e) { return ( (r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }), r(e) ); } function i(e) { var t = (function (e, t) { if ("object" != r(e) || !e) return e; var n = e[Symbol.toPrimitive]; if (void 0 !== n) { var i = n.call(e, t || "default"); if ("object" != r(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === t ? String : Number)(e); })(e, "string"); return "symbol" == r(t) ? t : t + ""; } n.d(t, { Z: function () { return i; }, }); }, 23636: function (e, t, n) { "use strict"; function r(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function (t) { return Object.getOwnPropertyDescriptor(e, t).enumerable; })), n.push.apply(n, r); } return n; } function i(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? r(Object(n), !0).forEach(function (t) { s(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach(function (t) { Object.defineProperty( e, t, Object.getOwnPropertyDescriptor(n, t) ); }); } return e; } function o(e) { return ( (o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }), o(e) ); } function a(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r); } } function s(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = n), e ); } function u(e, t) { return ( (function (e) { if (Array.isArray(e)) return e; })(e) || (function (e, t) { var n = null == e ? null : ("undefined" != typeof Symbol && e[Symbol.iterator]) || e["@@iterator"]; if (null == n) return; var r, i, o = [], a = !0, s = !1; try { for ( n = n.call(e); !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t); a = !0 ); } catch (e) { (s = !0), (i = e); } finally { try { a || null == n.return || n.return(); } finally { if (s) throw i; } } return o; })(e, t) || l(e, t) || (function () { throw new TypeError( "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); })() ); } function c(e) { return ( (function (e) { if (Array.isArray(e)) return f(e); })(e) || (function (e) { if ( ("undefined" != typeof Symbol && null != e[Symbol.iterator]) || null != e["@@iterator"] ) return Array.from(e); })(e) || l(e) || (function () { throw new TypeError( "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); })() ); } function l(e, t) { if (e) { if ("string" == typeof e) return f(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); return ( "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? f(e, t) : void 0 ); } } function f(e, t) { (null == t || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } n.d(t, { Qc: function () { return yn; }, qv: function () { return vn; }, vI: function () { return gn; }, vz: function () { return mn; }, }); var d = function () {}, p = {}, h = {}, g = null, m = { mark: d, measure: d }; try { "undefined" != typeof window && (p = window), "undefined" != typeof document && (h = document), "undefined" != typeof MutationObserver && (g = MutationObserver), "undefined" != typeof performance && (m = performance); } catch (e) {} var y, v, b, _, w, T = (p.navigator || {}).userAgent, x = void 0 === T ? "" : T, S = p, k = h, E = g, O = m, C = (S.document, !!k.documentElement && !!k.head && "function" == typeof k.addEventListener && "function" == typeof k.createElement), L = ~x.indexOf("MSIE") || ~x.indexOf("Trident/"), A = "svg-inline--fa", I = "data-fa-i2svg", M = "data-fa-pseudo-element", P = "data-prefix", R = "data-icon", D = "fontawesome-i2svg", j = ["HTML", "HEAD", "STYLE", "SCRIPT"], N = (function () { try { return !0; } catch (e) { return !1; } })(), B = "classic", U = "sharp", F = [B, U]; function z(e) { return new Proxy(e, { get: function (e, t) { return t in e ? e[t] : e.classic; }, }); } var H = z( (s((y = {}), B, { fa: "solid", fas: "solid", "fa-solid": "solid", far: "regular", "fa-regular": "regular", fal: "light", "fa-light": "light", fat: "thin", "fa-thin": "thin", fad: "duotone", "fa-duotone": "duotone", fab: "brands", "fa-brands": "brands", fak: "kit", "fa-kit": "kit", }), s(y, U, { fa: "solid", fass: "solid", "fa-solid": "solid" }), y) ), q = z( (s((v = {}), B, { solid: "fas", regular: "far", light: "fal", thin: "fat", duotone: "fad", brands: "fab", kit: "fak", }), s(v, U, { solid: "fass" }), v) ), Z = z( (s((b = {}), B, { fab: "fa-brands", fad: "fa-duotone", fak: "fa-kit", fal: "fa-light", far: "fa-regular", fas: "fa-solid", fat: "fa-thin", }), s(b, U, { fass: "fa-solid" }), b) ), V = z( (s((_ = {}), B, { "fa-brands": "fab", "fa-duotone": "fad", "fa-kit": "fak", "fa-light": "fal", "fa-regular": "far", "fa-solid": "fas", "fa-thin": "fat", }), s(_, U, { "fa-solid": "fass" }), _) ), W = /fa(s|r|l|t|d|b|k|ss)?[\-\ ]/, $ = "fa-layers-text", G = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i, Y = z( (s((w = {}), B, { 900: "fas", 400: "far", normal: "far", 300: "fal", 100: "fat", }), s(w, U, { 900: "fass" }), w) ), K = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], X = K.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), Q = [ "class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask", ], J = "duotone-group", ee = "swap-opacity", te = "primary", ne = "secondary", re = new Set(); Object.keys(q.classic).map(re.add.bind(re)), Object.keys(q.sharp).map(re.add.bind(re)); var ie = [] .concat(F, c(re), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", J, ee, te, ne, ]) .concat( K.map(function (e) { return "".concat(e, "x"); }) ) .concat( X.map(function (e) { return "w-".concat(e); }) ), oe = S.FontAwesomeConfig || {}; if (k && "function" == typeof k.querySelector) { [ ["data-family-prefix", "familyPrefix"], ["data-css-prefix", "cssPrefix"], ["data-family-default", "familyDefault"], ["data-style-default", "styleDefault"], ["data-replacement-class", "replacementClass"], ["data-auto-replace-svg", "autoReplaceSvg"], ["data-auto-add-css", "autoAddCss"], ["data-auto-a11y", "autoA11y"], ["data-search-pseudo-elements", "searchPseudoElements"], ["data-observe-mutations", "observeMutations"], ["data-mutate-approach", "mutateApproach"], ["data-keep-original-source", "keepOriginalSource"], ["data-measure-performance", "measurePerformance"], ["data-show-missing-icons", "showMissingIcons"], ].forEach(function (e) { var t = u(e, 2), n = t[0], r = t[1], i = (function (e) { return "" === e || ("false" !== e && ("true" === e || e)); })( (function (e) { var t = k.querySelector("script[" + e + "]"); if (t) return t.getAttribute(e); })(n) ); null != i && (oe[r] = i); }); } var ae = { styleDefault: "solid", familyDefault: "classic", cssPrefix: "fa", replacementClass: A, autoReplaceSvg: !0, autoAddCss: !0, autoA11y: !0, searchPseudoElements: !1, observeMutations: !0, mutateApproach: "async", keepOriginalSource: !0, measurePerformance: !1, showMissingIcons: !0, }; oe.familyPrefix && (oe.cssPrefix = oe.familyPrefix); var se = i(i({}, ae), oe); se.autoReplaceSvg || (se.observeMutations = !1); var ue = {}; Object.keys(ae).forEach(function (e) { Object.defineProperty(ue, e, { enumerable: !0, set: function (t) { (se[e] = t), ce.forEach(function (e) { return e(ue); }); }, get: function () { return se[e]; }, }); }), Object.defineProperty(ue, "familyPrefix", { enumerable: !0, set: function (e) { (se.cssPrefix = e), ce.forEach(function (e) { return e(ue); }); }, get: function () { return se.cssPrefix; }, }), (S.FontAwesomeConfig = ue); var ce = []; var le = 16, fe = { size: 16, x: 0, y: 0, rotate: 0, flipX: !1, flipY: !1 }; function de() { for (var e = 12, t = ""; e-- > 0; ) t += "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[ (62 * Math.random()) | 0 ]; return t; } function pe(e) { for (var t = [], n = (e || []).length >>> 0; n--; ) t[n] = e[n]; return t; } function he(e) { return e.classList ? pe(e.classList) : (e.getAttribute("class") || "").split(" ").filter(function (e) { return e; }); } function ge(e) { return "" .concat(e) .replace(/&/g, "&") .replace(/"/g, """) .replace(/'/g, "'") .replace(//g, ">"); } function me(e) { return Object.keys(e || {}).reduce(function (t, n) { return t + "".concat(n, ": ").concat(e[n].trim(), ";"); }, ""); } function ye(e) { return ( e.size !== fe.size || e.x !== fe.x || e.y !== fe.y || e.rotate !== fe.rotate || e.flipX || e.flipY ); } function ve() { var e = "fa", t = A, n = ue.cssPrefix, r = ue.replacementClass, i = ':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}'; if (n !== e || r !== t) { var o = new RegExp("\\.".concat(e, "\\-"), "g"), a = new RegExp("\\--".concat(e, "\\-"), "g"), s = new RegExp("\\.".concat(t), "g"); i = i .replace(o, ".".concat(n, "-")) .replace(a, "--".concat(n, "-")) .replace(s, ".".concat(r)); } return i; } var be = !1; function _e() { ue.autoAddCss && !be && (!(function (e) { if (e && C) { var t = k.createElement("style"); t.setAttribute("type", "text/css"), (t.innerHTML = e); for ( var n = k.head.childNodes, r = null, i = n.length - 1; i > -1; i-- ) { var o = n[i], a = (o.tagName || "").toUpperCase(); ["STYLE", "LINK"].indexOf(a) > -1 && (r = o); } k.head.insertBefore(t, r); } })(ve()), (be = !0)); } var we = { mixout: function () { return { dom: { css: ve, insertCss: _e } }; }, hooks: function () { return { beforeDOMElementCreation: function () { _e(); }, beforeI2svg: function () { _e(); }, }; }, }, Te = S || {}; Te.___FONT_AWESOME___ || (Te.___FONT_AWESOME___ = {}), Te.___FONT_AWESOME___.styles || (Te.___FONT_AWESOME___.styles = {}), Te.___FONT_AWESOME___.hooks || (Te.___FONT_AWESOME___.hooks = {}), Te.___FONT_AWESOME___.shims || (Te.___FONT_AWESOME___.shims = []); var xe = Te.___FONT_AWESOME___, Se = [], ke = !1; function Ee(e) { C && (ke ? setTimeout(e, 0) : Se.push(e)); } function Oe(e) { var t = e.tag, n = e.attributes, r = void 0 === n ? {} : n, i = e.children, o = void 0 === i ? [] : i; return "string" == typeof e ? ge(e) : "<" .concat(t, " ") .concat( (function (e) { return Object.keys(e || {}) .reduce(function (t, n) { return t + "".concat(n, '="').concat(ge(e[n]), '" '); }, "") .trim(); })(r), ">" ) .concat(o.map(Oe).join(""), ""); } function Ce(e, t, n) { if (e && e[t] && e[t][n]) return { prefix: t, iconName: n, icon: e[t][n] }; } C && ((ke = ( k.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/ ).test(k.readyState)) || k.addEventListener("DOMContentLoaded", function e() { k.removeEventListener("DOMContentLoaded", e), (ke = 1), Se.map(function (e) { return e(); }); })); var Le = function (e, t, n, r) { var i, o, a, s = Object.keys(e), u = s.length, c = void 0 !== r ? (function (e, t) { return function (n, r, i, o) { return e.call(t, n, r, i, o); }; })(t, r) : t; for ( void 0 === n ? ((i = 1), (a = e[s[0]])) : ((i = 0), (a = n)); i < u; i++ ) a = c(a, e[(o = s[i])], o, e); return a; }; function Ae(e) { var t = (function (e) { for (var t = [], n = 0, r = e.length; n < r; ) { var i = e.charCodeAt(n++); if (i >= 55296 && i <= 56319 && n < r) { var o = e.charCodeAt(n++); 56320 == (64512 & o) ? t.push(((1023 & i) << 10) + (1023 & o) + 65536) : (t.push(i), n--); } else t.push(i); } return t; })(e); return 1 === t.length ? t[0].toString(16) : null; } function Ie(e) { return Object.keys(e).reduce(function (t, n) { var r = e[n]; return !!r.icon ? (t[r.iconName] = r.icon) : (t[n] = r), t; }, {}); } function Me(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, r = n.skipHooks, o = void 0 !== r && r, a = Ie(t); "function" != typeof xe.hooks.addPack || o ? (xe.styles[e] = i(i({}, xe.styles[e] || {}), a)) : xe.hooks.addPack(e, Ie(t)), "fas" === e && Me("fa", t); } var Pe, Re, De, je = xe.styles, Ne = xe.shims, Be = (s((Pe = {}), B, Object.values(Z.classic)), s(Pe, U, Object.values(Z.sharp)), Pe), Ue = null, Fe = {}, ze = {}, He = {}, qe = {}, Ze = {}, Ve = (s((Re = {}), B, Object.keys(H.classic)), s(Re, U, Object.keys(H.sharp)), Re); function We(e, t) { var n, r = t.split("-"), i = r[0], o = r.slice(1).join("-"); return i !== e || "" === o || ((n = o), ~ie.indexOf(n)) ? null : o; } var $e, Ge = function () { var e = function (e) { return Le( je, function (t, n, r) { return (t[r] = Le(n, e, {})), t; }, {} ); }; (Fe = e(function (e, t, n) { (t[3] && (e[t[3]] = n), t[2]) && t[2] .filter(function (e) { return "number" == typeof e; }) .forEach(function (t) { e[t.toString(16)] = n; }); return e; })), (ze = e(function (e, t, n) { ((e[n] = n), t[2]) && t[2] .filter(function (e) { return "string" == typeof e; }) .forEach(function (t) { e[t] = n; }); return e; })), (Ze = e(function (e, t, n) { var r = t[2]; return ( (e[n] = n), r.forEach(function (t) { e[t] = n; }), e ); })); var t = "far" in je || ue.autoFetchSvg, n = Le( Ne, function (e, n) { var r = n[0], i = n[1], o = n[2]; return ( "far" !== i || t || (i = "fas"), "string" == typeof r && (e.names[r] = { prefix: i, iconName: o }), "number" == typeof r && (e.unicodes[r.toString(16)] = { prefix: i, iconName: o }), e ); }, { names: {}, unicodes: {} } ); (He = n.names), (qe = n.unicodes), (Ue = Je(ue.styleDefault, { family: ue.familyDefault })); }; function Ye(e, t) { return (Fe[e] || {})[t]; } function Ke(e, t) { return (Ze[e] || {})[t]; } function Xe(e) { return He[e] || { prefix: null, iconName: null }; } function Qe() { return Ue; } ($e = function (e) { Ue = Je(e.styleDefault, { family: ue.familyDefault }); }), ce.push($e), Ge(); function Je(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.family, r = void 0 === n ? B : n, i = H[r][e], o = q[r][e] || q[r][i], a = e in xe.styles ? e : null; return o || a || null; } var et = (s((De = {}), B, Object.keys(Z.classic)), s(De, U, Object.keys(Z.sharp)), De); function tt(e) { var t, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r = n.skipLookups, i = void 0 !== r && r, o = (s((t = {}), B, "".concat(ue.cssPrefix, "-").concat(B)), s(t, U, "".concat(ue.cssPrefix, "-").concat(U)), t), a = null, u = B; (e.includes(o.classic) || e.some(function (e) { return et.classic.includes(e); })) && (u = B), (e.includes(o.sharp) || e.some(function (e) { return et.sharp.includes(e); })) && (u = U); var c = e.reduce( function (e, t) { var n = We(ue.cssPrefix, t); if ( (je[t] ? ((t = Be[u].includes(t) ? V[u][t] : t), (a = t), (e.prefix = t)) : Ve[u].indexOf(t) > -1 ? ((a = t), (e.prefix = Je(t, { family: u }))) : n ? (e.iconName = n) : t !== ue.replacementClass && t !== o.classic && t !== o.sharp && e.rest.push(t), !i && e.prefix && e.iconName) ) { var r = "fa" === a ? Xe(e.iconName) : {}, s = Ke(e.prefix, e.iconName); r.prefix && (a = null), (e.iconName = r.iconName || s || e.iconName), (e.prefix = r.prefix || e.prefix), "far" !== e.prefix || je.far || !je.fas || ue.autoFetchSvg || (e.prefix = "fas"); } return e; }, { prefix: null, iconName: null, rest: [] } ); return ( (e.includes("fa-brands") || e.includes("fab")) && (c.prefix = "fab"), (e.includes("fa-duotone") || e.includes("fad")) && (c.prefix = "fad"), c.prefix || u !== U || (!je.fass && !ue.autoFetchSvg) || ((c.prefix = "fass"), (c.iconName = Ke(c.prefix, c.iconName) || c.iconName)), ("fa" !== c.prefix && "fa" !== a) || (c.prefix = Qe() || "fas"), c ); } var nt = (function () { function e() { !(function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); })(this, e), (this.definitions = {}); } var t, n, r; return ( (t = e), (n = [ { key: "add", value: function () { for ( var e = this, t = arguments.length, n = new Array(t), r = 0; r < t; r++ ) n[r] = arguments[r]; var o = n.reduce(this._pullDefinitions, {}); Object.keys(o).forEach(function (t) { (e.definitions[t] = i(i({}, e.definitions[t] || {}), o[t])), Me(t, o[t]); var n = Z.classic[t]; n && Me(n, o[t]), Ge(); }); }, }, { key: "reset", value: function () { this.definitions = {}; }, }, { key: "_pullDefinitions", value: function (e, t) { var n = t.prefix && t.iconName && t.icon ? { 0: t } : t; return ( Object.keys(n).map(function (t) { var r = n[t], i = r.prefix, o = r.iconName, a = r.icon, s = a[2]; e[i] || (e[i] = {}), s.length > 0 && s.forEach(function (t) { "string" == typeof t && (e[i][t] = a); }), (e[i][o] = a); }), e ); }, }, ]), n && a(t.prototype, n), r && a(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), e ); })(), rt = [], it = {}, ot = {}, at = Object.keys(ot); function st(e, t) { for ( var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++ ) r[i - 2] = arguments[i]; var o = it[e] || []; return ( o.forEach(function (e) { t = e.apply(null, [t].concat(r)); }), t ); } function ut(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r]; var i = it[e] || []; i.forEach(function (e) { e.apply(null, n); }); } function ct() { var e = arguments[0], t = Array.prototype.slice.call(arguments, 1); return ot[e] ? ot[e].apply(null, t) : void 0; } function lt(e) { "fa" === e.prefix && (e.prefix = "fas"); var t = e.iconName, n = e.prefix || Qe(); if (t) return ( (t = Ke(n, t) || t), Ce(ft.definitions, n, t) || Ce(xe.styles, n, t) ); } var ft = new nt(), dt = { i2svg: function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; return C ? (ut("beforeI2svg", e), ct("pseudoElements2svg", e), ct("i2svg", e)) : Promise.reject("Operation requires a DOM of some kind."); }, watch: function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.autoReplaceSvgRoot; !1 === ue.autoReplaceSvg && (ue.autoReplaceSvg = !0), (ue.observeMutations = !0), Ee(function () { ht({ autoReplaceSvgRoot: t }), ut("watch", e); }); }, }, pt = { noAuto: function () { (ue.autoReplaceSvg = !1), (ue.observeMutations = !1), ut("noAuto"); }, config: ue, dom: dt, parse: { icon: function (e) { if (null === e) return null; if ("object" === o(e) && e.prefix && e.iconName) return { prefix: e.prefix, iconName: Ke(e.prefix, e.iconName) || e.iconName, }; if (Array.isArray(e) && 2 === e.length) { var t = 0 === e[1].indexOf("fa-") ? e[1].slice(3) : e[1], n = Je(e[0]); return { prefix: n, iconName: Ke(n, t) || t }; } if ( "string" == typeof e && (e.indexOf("".concat(ue.cssPrefix, "-")) > -1 || e.match(W)) ) { var r = tt(e.split(" "), { skipLookups: !0 }); return { prefix: r.prefix || Qe(), iconName: Ke(r.prefix, r.iconName) || r.iconName, }; } if ("string" == typeof e) { var i = Qe(); return { prefix: i, iconName: Ke(i, e) || e }; } }, }, library: ft, findIconDefinition: lt, toHtml: Oe, }, ht = function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.autoReplaceSvgRoot, n = void 0 === t ? k : t; (Object.keys(xe.styles).length > 0 || ue.autoFetchSvg) && C && ue.autoReplaceSvg && pt.dom.i2svg({ node: n }); }; function gt(e, t) { return ( Object.defineProperty(e, "abstract", { get: t }), Object.defineProperty(e, "html", { get: function () { return e.abstract.map(function (e) { return Oe(e); }); }, }), Object.defineProperty(e, "node", { get: function () { if (C) { var t = k.createElement("div"); return (t.innerHTML = e.html), t.children; } }, }), e ); } function mt(e) { var t = e.icons, n = t.main, r = t.mask, o = e.prefix, a = e.iconName, s = e.transform, u = e.symbol, c = e.title, l = e.maskId, f = e.titleId, d = e.extra, p = e.watchable, h = void 0 !== p && p, g = r.found ? r : n, m = g.width, y = g.height, v = "fak" === o, b = [ ue.replacementClass, a ? "".concat(ue.cssPrefix, "-").concat(a) : "", ] .filter(function (e) { return -1 === d.classes.indexOf(e); }) .filter(function (e) { return "" !== e || !!e; }) .concat(d.classes) .join(" "), _ = { children: [], attributes: i( i({}, d.attributes), {}, { "data-prefix": o, "data-icon": a, class: b, role: d.attributes.role || "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 ".concat(m, " ").concat(y), } ), }, w = v && !~d.classes.indexOf("fa-fw") ? { width: "".concat((m / y) * 16 * 0.0625, "em") } : {}; h && (_.attributes[I] = ""), c && (_.children.push({ tag: "title", attributes: { id: _.attributes["aria-labelledby"] || "title-".concat(f || de()), }, children: [c], }), delete _.attributes.title); var T = i( i({}, _), {}, { prefix: o, iconName: a, main: n, mask: r, maskId: l, transform: s, symbol: u, styles: i(i({}, w), d.styles), } ), x = r.found && n.found ? ct("generateAbstractMask", T) || { children: [], attributes: {}, } : ct("generateAbstractIcon", T) || { children: [], attributes: {}, }, S = x.children, k = x.attributes; return ( (T.children = S), (T.attributes = k), u ? (function (e) { var t = e.prefix, n = e.iconName, r = e.children, o = e.attributes, a = e.symbol, s = !0 === a ? "".concat(t, "-").concat(ue.cssPrefix, "-").concat(n) : a; return [ { tag: "svg", attributes: { style: "display: none;" }, children: [ { tag: "symbol", attributes: i(i({}, o), {}, { id: s }), children: r, }, ], }, ]; })(T) : (function (e) { var t = e.children, n = e.main, r = e.mask, o = e.attributes, a = e.styles, s = e.transform; if (ye(s) && n.found && !r.found) { var u = { x: n.width / n.height / 2, y: 0.5 }; o.style = me( i( i({}, a), {}, { "transform-origin": "" .concat(u.x + s.x / 16, "em ") .concat(u.y + s.y / 16, "em"), } ) ); } return [{ tag: "svg", attributes: o, children: t }]; })(T) ); } function yt(e) { var t = e.content, n = e.width, r = e.height, o = e.transform, a = e.title, s = e.extra, u = e.watchable, c = void 0 !== u && u, l = i( i(i({}, s.attributes), a ? { title: a } : {}), {}, { class: s.classes.join(" ") } ); c && (l[I] = ""); var f = i({}, s.styles); ye(o) && ((f.transform = (function (e) { var t = e.transform, n = e.width, r = void 0 === n ? 16 : n, i = e.height, o = void 0 === i ? 16 : i, a = e.startCentered, s = void 0 !== a && a, u = ""; return ( (u += s && L ? "translate(" .concat(t.x / le - r / 2, "em, ") .concat(t.y / le - o / 2, "em) ") : s ? "translate(calc(-50% + " .concat(t.x / le, "em), calc(-50% + ") .concat(t.y / le, "em)) ") : "translate(" .concat(t.x / le, "em, ") .concat(t.y / le, "em) ")), (u += "scale(" .concat((t.size / le) * (t.flipX ? -1 : 1), ", ") .concat((t.size / le) * (t.flipY ? -1 : 1), ") ")), u + "rotate(".concat(t.rotate, "deg) ") ); })({ transform: o, startCentered: !0, width: n, height: r })), (f["-webkit-transform"] = f.transform)); var d = me(f); d.length > 0 && (l.style = d); var p = []; return ( p.push({ tag: "span", attributes: l, children: [t] }), a && p.push({ tag: "span", attributes: { class: "sr-only" }, children: [a], }), p ); } function vt(e) { var t = e.content, n = e.title, r = e.extra, o = i( i(i({}, r.attributes), n ? { title: n } : {}), {}, { class: r.classes.join(" ") } ), a = me(r.styles); a.length > 0 && (o.style = a); var s = []; return ( s.push({ tag: "span", attributes: o, children: [t] }), n && s.push({ tag: "span", attributes: { class: "sr-only" }, children: [n], }), s ); } var bt = xe.styles; function _t(e) { var t = e[0], n = e[1], r = u(e.slice(4), 1)[0]; return { found: !0, width: t, height: n, icon: Array.isArray(r) ? { tag: "g", attributes: { class: "".concat(ue.cssPrefix, "-").concat(J) }, children: [ { tag: "path", attributes: { class: "".concat(ue.cssPrefix, "-").concat(ne), fill: "currentColor", d: r[0], }, }, { tag: "path", attributes: { class: "".concat(ue.cssPrefix, "-").concat(te), fill: "currentColor", d: r[1], }, }, ], } : { tag: "path", attributes: { fill: "currentColor", d: r } }, }; } var wt = { found: !1, width: 512, height: 512 }; function Tt(e, t) { var n = t; return ( "fa" === t && null !== ue.styleDefault && (t = Qe()), new Promise(function (r, o) { ct("missingIconAbstract"); if ("fa" === n) { var a = Xe(e) || {}; (e = a.iconName || e), (t = a.prefix || t); } if (e && t && bt[t] && bt[t][e]) return r(_t(bt[t][e])); !(function (e, t) { N || ue.showMissingIcons || !e || console.error( 'Icon with name "' .concat(e, '" and prefix "') .concat(t, '" is missing.') ); })(e, t), r( i( i({}, wt), {}, { icon: (ue.showMissingIcons && e && ct("missingIconAbstract")) || {}, } ) ); }) ); } var xt = function () {}, St = ue.measurePerformance && O && O.mark && O.measure ? O : { mark: xt, measure: xt }, kt = 'FA "6.2.1"', Et = function (e) { St.mark("".concat(kt, " ").concat(e, " ends")), St.measure( "".concat(kt, " ").concat(e), "".concat(kt, " ").concat(e, " begins"), "".concat(kt, " ").concat(e, " ends") ); }, Ot = function (e) { return ( St.mark("".concat(kt, " ").concat(e, " begins")), function () { return Et(e); } ); }, Ct = function () {}; function Lt(e) { return "string" == typeof (e.getAttribute ? e.getAttribute(I) : null); } function At(e) { return k.createElementNS("http://www.w3.org/2000/svg", e); } function It(e) { return k.createElement(e); } function Mt(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.ceFn, r = void 0 === n ? ("svg" === e.tag ? At : It) : n; if ("string" == typeof e) return k.createTextNode(e); var i = r(e.tag); Object.keys(e.attributes || []).forEach(function (t) { i.setAttribute(t, e.attributes[t]); }); var o = e.children || []; return ( o.forEach(function (e) { i.appendChild(Mt(e, { ceFn: r })); }), i ); } var Pt = { replace: function (e) { var t = e[0]; if (t.parentNode) if ( (e[1].forEach(function (e) { t.parentNode.insertBefore(Mt(e), t); }), null === t.getAttribute(I) && ue.keepOriginalSource) ) { var n = k.createComment( (function (e) { var t = " ".concat(e.outerHTML, " "); return "".concat(t, "Font Awesome fontawesome.com "); })(t) ); t.parentNode.replaceChild(n, t); } else t.remove(); }, nest: function (e) { var t = e[0], n = e[1]; if (~he(t).indexOf(ue.replacementClass)) return Pt.replace(e); var r = new RegExp("".concat(ue.cssPrefix, "-.*")); if ((delete n[0].attributes.id, n[0].attributes.class)) { var i = n[0].attributes.class.split(" ").reduce( function (e, t) { return ( t === ue.replacementClass || t.match(r) ? e.toSvg.push(t) : e.toNode.push(t), e ); }, { toNode: [], toSvg: [] } ); (n[0].attributes.class = i.toSvg.join(" ")), 0 === i.toNode.length ? t.removeAttribute("class") : t.setAttribute("class", i.toNode.join(" ")); } var o = n .map(function (e) { return Oe(e); }) .join("\n"); t.setAttribute(I, ""), (t.innerHTML = o); }, }; function Rt(e) { e(); } function Dt(e, t) { var n = "function" == typeof t ? t : Ct; if (0 === e.length) n(); else { var r = Rt; "async" === ue.mutateApproach && (r = S.requestAnimationFrame || Rt), r(function () { var t = !0 === ue.autoReplaceSvg ? Pt.replace : Pt[ue.autoReplaceSvg] || Pt.replace, r = Ot("mutate"); e.map(t), r(), n(); }); } } var jt = !1; function Nt() { jt = !0; } function Bt() { jt = !1; } var Ut = null; function Ft(e) { if (E && ue.observeMutations) { var t = e.treeCallback, n = void 0 === t ? Ct : t, r = e.nodeCallback, i = void 0 === r ? Ct : r, o = e.pseudoElementsCallback, a = void 0 === o ? Ct : o, s = e.observeMutationsRoot, u = void 0 === s ? k : s; (Ut = new E(function (e) { if (!jt) { var t = Qe(); pe(e).forEach(function (e) { if ( ("childList" === e.type && e.addedNodes.length > 0 && !Lt(e.addedNodes[0]) && (ue.searchPseudoElements && a(e.target), n(e.target)), "attributes" === e.type && e.target.parentNode && ue.searchPseudoElements && a(e.target.parentNode), "attributes" === e.type && Lt(e.target) && ~Q.indexOf(e.attributeName)) ) if ( "class" === e.attributeName && (function (e) { var t = e.getAttribute ? e.getAttribute(P) : null, n = e.getAttribute ? e.getAttribute(R) : null; return t && n; })(e.target) ) { var r = tt(he(e.target)), o = r.prefix, s = r.iconName; e.target.setAttribute(P, o || t), s && e.target.setAttribute(R, s); } else (u = e.target) && u.classList && u.classList.contains && u.classList.contains(ue.replacementClass) && i(e.target); var u; }); } })), C && Ut.observe(u, { childList: !0, attributes: !0, characterData: !0, subtree: !0, }); } } function zt(e) { var t = e.getAttribute("style"), n = []; return ( t && (n = t.split(";").reduce(function (e, t) { var n = t.split(":"), r = n[0], i = n.slice(1); return r && i.length > 0 && (e[r] = i.join(":").trim()), e; }, {})), n ); } function Ht(e) { var t, n, r = e.getAttribute("data-prefix"), i = e.getAttribute("data-icon"), o = void 0 !== e.innerText ? e.innerText.trim() : "", a = tt(he(e)); return ( a.prefix || (a.prefix = Qe()), r && i && ((a.prefix = r), (a.iconName = i)), (a.iconName && a.prefix) || (a.prefix && o.length > 0 && (a.iconName = ((t = a.prefix), (n = e.innerText), (ze[t] || {})[n] || Ye(a.prefix, Ae(e.innerText)))), !a.iconName && ue.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (a.iconName = e.firstChild.data)), a ); } function qt(e) { var t = pe(e.attributes).reduce(function (e, t) { return ( "class" !== e.name && "style" !== e.name && (e[t.name] = t.value), e ); }, {}), n = e.getAttribute("title"), r = e.getAttribute("data-fa-title-id"); return ( ue.autoA11y && (n ? (t["aria-labelledby"] = "" .concat(ue.replacementClass, "-title-") .concat(r || de())) : ((t["aria-hidden"] = "true"), (t.focusable = "false"))), t ); } function Zt(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { styleParser: !0 }, n = Ht(e), r = n.iconName, o = n.prefix, a = n.rest, s = qt(e), u = st("parseNodeAttributes", {}, e), c = t.styleParser ? zt(e) : []; return i( { iconName: r, title: e.getAttribute("title"), titleId: e.getAttribute("data-fa-title-id"), prefix: o, transform: fe, mask: { iconName: null, prefix: null, rest: [] }, maskId: null, symbol: !1, extra: { classes: a, styles: c, attributes: s }, }, u ); } var Vt = xe.styles; function Wt(e) { var t = "nest" === ue.autoReplaceSvg ? Zt(e, { styleParser: !1 }) : Zt(e); return ~t.extra.classes.indexOf($) ? ct("generateLayersText", e, t) : ct("generateSvgReplacementMutation", e, t); } var $t = new Set(); function Gt(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null; if (!C) return Promise.resolve(); var n = k.documentElement.classList, r = function (e) { return n.add("".concat(D, "-").concat(e)); }, i = function (e) { return n.remove("".concat(D, "-").concat(e)); }, o = ue.autoFetchSvg ? $t : F.map(function (e) { return "fa-".concat(e); }).concat(Object.keys(Vt)); o.includes("fa") || o.push("fa"); var a = [".".concat($, ":not([").concat(I, "])")] .concat( o.map(function (e) { return ".".concat(e, ":not([").concat(I, "])"); }) ) .join(", "); if (0 === a.length) return Promise.resolve(); var s = []; try { s = pe(e.querySelectorAll(a)); } catch (e) {} if (!(s.length > 0)) return Promise.resolve(); r("pending"), i("complete"); var u = Ot("onTree"), c = s.reduce(function (e, t) { try { var n = Wt(t); n && e.push(n); } catch (e) { N || ("MissingIcon" === e.name && console.error(e)); } return e; }, []); return new Promise(function (e, n) { Promise.all(c) .then(function (n) { Dt(n, function () { r("active"), r("complete"), i("pending"), "function" == typeof t && t(), u(), e(); }); }) .catch(function (e) { u(), n(e); }); }); } function Yt(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null; Wt(e).then(function (e) { e && Dt([e], t); }); } F.map(function (e) { $t.add("fa-".concat(e)); }), Object.keys(H.classic).map($t.add.bind($t)), Object.keys(H.sharp).map($t.add.bind($t)), ($t = c($t)); var Kt = function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.transform, r = void 0 === n ? fe : n, o = t.symbol, a = void 0 !== o && o, s = t.mask, u = void 0 === s ? null : s, c = t.maskId, l = void 0 === c ? null : c, f = t.title, d = void 0 === f ? null : f, p = t.titleId, h = void 0 === p ? null : p, g = t.classes, m = void 0 === g ? [] : g, y = t.attributes, v = void 0 === y ? {} : y, b = t.styles, _ = void 0 === b ? {} : b; if (e) { var w = e.prefix, T = e.iconName, x = e.icon; return gt(i({ type: "icon" }, e), function () { return ( ut("beforeDOMElementCreation", { iconDefinition: e, params: t, }), ue.autoA11y && (d ? (v["aria-labelledby"] = "" .concat(ue.replacementClass, "-title-") .concat(h || de())) : ((v["aria-hidden"] = "true"), (v.focusable = "false"))), mt({ icons: { main: _t(x), mask: u ? _t(u.icon) : { found: !1, width: null, height: null, icon: {} }, }, prefix: w, iconName: T, transform: i(i({}, fe), r), symbol: a, title: d, maskId: l, titleId: h, extra: { attributes: v, styles: _, classes: m }, }) ); }); } }, Xt = { mixout: function () { return { icon: ((e = Kt), function (t) { var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r = (t || {}).icon ? t : lt(t || {}), o = n.mask; return ( o && (o = (o || {}).icon ? o : lt(o || {})), e(r, i(i({}, n), {}, { mask: o })) ); }), }; var e; }, hooks: function () { return { mutationObserverCallbacks: function (e) { return (e.treeCallback = Gt), (e.nodeCallback = Yt), e; }, }; }, provides: function (e) { (e.i2svg = function (e) { var t = e.node, n = void 0 === t ? k : t, r = e.callback; return Gt(n, void 0 === r ? function () {} : r); }), (e.generateSvgReplacementMutation = function (e, t) { var n = t.iconName, r = t.title, i = t.titleId, o = t.prefix, a = t.transform, s = t.symbol, c = t.mask, l = t.maskId, f = t.extra; return new Promise(function (t, d) { Promise.all([ Tt(n, o), c.iconName ? Tt(c.iconName, c.prefix) : Promise.resolve({ found: !1, width: 512, height: 512, icon: {}, }), ]) .then(function (c) { var d = u(c, 2), p = d[0], h = d[1]; t([ e, mt({ icons: { main: p, mask: h }, prefix: o, iconName: n, transform: a, symbol: s, maskId: l, title: r, titleId: i, extra: f, watchable: !0, }), ]); }) .catch(d); }); }), (e.generateAbstractIcon = function (e) { var t, n = e.children, r = e.attributes, i = e.main, o = e.transform, a = me(e.styles); return ( a.length > 0 && (r.style = a), ye(o) && (t = ct("generateAbstractTransformGrouping", { main: i, transform: o, containerWidth: i.width, iconWidth: i.width, })), n.push(t || i.icon), { children: n, attributes: r } ); }); }, }, Qt = { mixout: function () { return { layer: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.classes, r = void 0 === n ? [] : n; return gt({ type: "layer" }, function () { ut("beforeDOMElementCreation", { assembler: e, params: t }); var n = []; return ( e(function (e) { Array.isArray(e) ? e.map(function (e) { n = n.concat(e.abstract); }) : (n = n.concat(e.abstract)); }), [ { tag: "span", attributes: { class: ["".concat(ue.cssPrefix, "-layers")] .concat(c(r)) .join(" "), }, children: n, }, ] ); }); }, }; }, }, Jt = { mixout: function () { return { counter: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.title, r = void 0 === n ? null : n, i = t.classes, o = void 0 === i ? [] : i, a = t.attributes, s = void 0 === a ? {} : a, u = t.styles, l = void 0 === u ? {} : u; return gt({ type: "counter", content: e }, function () { return ( ut("beforeDOMElementCreation", { content: e, params: t }), vt({ content: e.toString(), title: r, extra: { attributes: s, styles: l, classes: [ "".concat(ue.cssPrefix, "-layers-counter"), ].concat(c(o)), }, }) ); }); }, }; }, }, en = { mixout: function () { return { text: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.transform, r = void 0 === n ? fe : n, o = t.title, a = void 0 === o ? null : o, s = t.classes, u = void 0 === s ? [] : s, l = t.attributes, f = void 0 === l ? {} : l, d = t.styles, p = void 0 === d ? {} : d; return gt({ type: "text", content: e }, function () { return ( ut("beforeDOMElementCreation", { content: e, params: t }), yt({ content: e, transform: i(i({}, fe), r), title: a, extra: { attributes: f, styles: p, classes: [ "".concat(ue.cssPrefix, "-layers-text"), ].concat(c(u)), }, }) ); }); }, }; }, provides: function (e) { e.generateLayersText = function (e, t) { var n = t.title, r = t.transform, i = t.extra, o = null, a = null; if (L) { var s = parseInt(getComputedStyle(e).fontSize, 10), u = e.getBoundingClientRect(); (o = u.width / s), (a = u.height / s); } return ( ue.autoA11y && !n && (i.attributes["aria-hidden"] = "true"), Promise.resolve([ e, yt({ content: e.innerHTML, width: o, height: a, transform: r, title: n, extra: i, watchable: !0, }), ]) ); }; }, }, tn = new RegExp('"', "ug"), nn = [1105920, 1112319]; function rn(e, t) { var n = "" .concat("data-fa-pseudo-element-pending") .concat(t.replace(":", "-")); return new Promise(function (r, o) { if (null !== e.getAttribute(n)) return r(); var a, s, u, c = pe(e.children).filter(function (e) { return e.getAttribute(M) === t; })[0], l = S.getComputedStyle(e, t), f = l.getPropertyValue("font-family").match(G), d = l.getPropertyValue("font-weight"), p = l.getPropertyValue("content"); if (c && !f) return e.removeChild(c), r(); if (f && "none" !== p && "" !== p) { var h = l.getPropertyValue("content"), g = ~["Sharp"].indexOf(f[2]) ? U : B, m = ~[ "Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit", ].indexOf(f[2]) ? q[g][f[2].toLowerCase()] : Y[g][d], y = (function (e) { var t, n, r, i, o, a = e.replace(tn, ""), s = ((n = 0), (i = (t = a).length), (o = t.charCodeAt(n)) >= 55296 && o <= 56319 && i > n + 1 && (r = t.charCodeAt(n + 1)) >= 56320 && r <= 57343 ? 1024 * (o - 55296) + r - 56320 + 65536 : o), u = s >= nn[0] && s <= nn[1], c = 2 === a.length && a[0] === a[1]; return { value: Ae(c ? a[0] : a), isSecondary: u || c }; })(h), v = y.value, b = y.isSecondary, _ = f[0].startsWith("FontAwesome"), w = Ye(m, v), T = w; if (_) { var x = ((s = qe[(a = v)]), (u = Ye("fas", a)), s || (u ? { prefix: "fas", iconName: u } : null) || { prefix: null, iconName: null, }); x.iconName && x.prefix && ((w = x.iconName), (m = x.prefix)); } if ( !w || b || (c && c.getAttribute(P) === m && c.getAttribute(R) === T) ) r(); else { e.setAttribute(n, T), c && e.removeChild(c); var E = { iconName: null, title: null, titleId: null, prefix: null, transform: fe, symbol: !1, mask: { iconName: null, prefix: null, rest: [] }, maskId: null, extra: { classes: [], styles: {}, attributes: {} }, }, O = E.extra; (O.attributes[M] = t), Tt(w, m) .then(function (o) { var a = mt( i( i({}, E), {}, { icons: { main: o, mask: { prefix: null, iconName: null, rest: [] }, }, prefix: m, iconName: T, extra: O, watchable: !0, } ) ), s = k.createElement("svg"); "::before" === t ? e.insertBefore(s, e.firstChild) : e.appendChild(s), (s.outerHTML = a .map(function (e) { return Oe(e); }) .join("\n")), e.removeAttribute(n), r(); }) .catch(o); } } else r(); }); } function on(e) { return Promise.all([rn(e, "::before"), rn(e, "::after")]); } function an(e) { return !( e.parentNode === document.head || ~j.indexOf(e.tagName.toUpperCase()) || e.getAttribute(M) || (e.parentNode && "svg" === e.parentNode.tagName) ); } function sn(e) { if (C) return new Promise(function (t, n) { var r = pe(e.querySelectorAll("*")).filter(an).map(on), i = Ot("searchPseudoElements"); Nt(), Promise.all(r) .then(function () { i(), Bt(), t(); }) .catch(function () { i(), Bt(), n(); }); }); } var un = !1, cn = function (e) { return e .toLowerCase() .split(" ") .reduce( function (e, t) { var n = t.toLowerCase().split("-"), r = n[0], i = n.slice(1).join("-"); if (r && "h" === i) return (e.flipX = !0), e; if (r && "v" === i) return (e.flipY = !0), e; if (((i = parseFloat(i)), isNaN(i))) return e; switch (r) { case "grow": e.size = e.size + i; break; case "shrink": e.size = e.size - i; break; case "left": e.x = e.x - i; break; case "right": e.x = e.x + i; break; case "up": e.y = e.y - i; break; case "down": e.y = e.y + i; break; case "rotate": e.rotate = e.rotate + i; } return e; }, { size: 16, x: 0, y: 0, flipX: !1, flipY: !1, rotate: 0 } ); }, ln = { mixout: function () { return { parse: { transform: function (e) { return cn(e); }, }, }; }, hooks: function () { return { parseNodeAttributes: function (e, t) { var n = t.getAttribute("data-fa-transform"); return n && (e.transform = cn(n)), e; }, }; }, provides: function (e) { e.generateAbstractTransformGrouping = function (e) { var t = e.main, n = e.transform, r = e.containerWidth, o = e.iconWidth, a = { transform: "translate(".concat(r / 2, " 256)") }, s = "translate(".concat(32 * n.x, ", ").concat(32 * n.y, ") "), u = "scale(" .concat((n.size / 16) * (n.flipX ? -1 : 1), ", ") .concat((n.size / 16) * (n.flipY ? -1 : 1), ") "), c = "rotate(".concat(n.rotate, " 0 0)"), l = { outer: a, inner: { transform: "".concat(s, " ").concat(u, " ").concat(c), }, path: { transform: "translate(".concat((o / 2) * -1, " -256)"), }, }; return { tag: "g", attributes: i({}, l.outer), children: [ { tag: "g", attributes: i({}, l.inner), children: [ { tag: t.icon.tag, children: t.icon.children, attributes: i(i({}, t.icon.attributes), l.path), }, ], }, ], }; }; }, }, fn = { x: 0, y: 0, width: "100%", height: "100%" }; function dn(e) { var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; return ( e.attributes && (e.attributes.fill || t) && (e.attributes.fill = "black"), e ); } var pn = { hooks: function () { return { parseNodeAttributes: function (e, t) { var n = t.getAttribute("data-fa-mask"), r = n ? tt( n.split(" ").map(function (e) { return e.trim(); }) ) : { prefix: null, iconName: null, rest: [] }; return ( r.prefix || (r.prefix = Qe()), (e.mask = r), (e.maskId = t.getAttribute("data-fa-mask-id")), e ); }, }; }, provides: function (e) { e.generateAbstractMask = function (e) { var t, n = e.children, r = e.attributes, o = e.main, a = e.mask, s = e.maskId, u = e.transform, c = o.width, l = o.icon, f = a.width, d = a.icon, p = (function (e) { var t = e.transform, n = e.containerWidth, r = e.iconWidth, i = { transform: "translate(".concat(n / 2, " 256)") }, o = "translate(" .concat(32 * t.x, ", ") .concat(32 * t.y, ") "), a = "scale(" .concat((t.size / 16) * (t.flipX ? -1 : 1), ", ") .concat((t.size / 16) * (t.flipY ? -1 : 1), ") "), s = "rotate(".concat(t.rotate, " 0 0)"); return { outer: i, inner: { transform: "".concat(o, " ").concat(a, " ").concat(s), }, path: { transform: "translate(".concat((r / 2) * -1, " -256)"), }, }; })({ transform: u, containerWidth: f, iconWidth: c }), h = { tag: "rect", attributes: i(i({}, fn), {}, { fill: "white" }), }, g = l.children ? { children: l.children.map(dn) } : {}, m = { tag: "g", attributes: i({}, p.inner), children: [ dn( i( { tag: l.tag, attributes: i(i({}, l.attributes), p.path), }, g ) ), ], }, y = { tag: "g", attributes: i({}, p.outer), children: [m] }, v = "mask-".concat(s || de()), b = "clip-".concat(s || de()), _ = { tag: "mask", attributes: i( i({}, fn), {}, { id: v, maskUnits: "userSpaceOnUse", maskContentUnits: "userSpaceOnUse", } ), children: [h, y], }, w = { tag: "defs", children: [ { tag: "clipPath", attributes: { id: b }, children: ((t = d), "g" === t.tag ? t.children : [t]), }, _, ], }; return ( n.push(w, { tag: "rect", attributes: i( { fill: "currentColor", "clip-path": "url(#".concat(b, ")"), mask: "url(#".concat(v, ")"), }, fn ), }), { children: n, attributes: r } ); }; }, }, hn = { provides: function (e) { var t = !1; S.matchMedia && (t = S.matchMedia("(prefers-reduced-motion: reduce)").matches), (e.missingIconAbstract = function () { var e = [], n = { fill: "currentColor" }, r = { attributeType: "XML", repeatCount: "indefinite", dur: "2s", }; e.push({ tag: "path", attributes: i( i({}, n), {}, { d: "M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z", } ), }); var o = i(i({}, r), {}, { attributeName: "opacity" }), a = { tag: "circle", attributes: i( i({}, n), {}, { cx: "256", cy: "364", r: "28" } ), children: [], }; return ( t || a.children.push( { tag: "animate", attributes: i( i({}, r), {}, { attributeName: "r", values: "28;14;28;28;14;28;" } ), }, { tag: "animate", attributes: i(i({}, o), {}, { values: "1;0;1;1;0;1;" }), } ), e.push(a), e.push({ tag: "path", attributes: i( i({}, n), {}, { opacity: "1", d: "M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z", } ), children: t ? [] : [ { tag: "animate", attributes: i( i({}, o), {}, { values: "1;0;0;0;0;1;" } ), }, ], }), t || e.push({ tag: "path", attributes: i( i({}, n), {}, { opacity: "0", d: "M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z", } ), children: [ { tag: "animate", attributes: i( i({}, o), {}, { values: "0;0;1;1;0;0;" } ), }, ], }), { tag: "g", attributes: { class: "missing" }, children: e } ); }); }, }; !(function (e, t) { var n = t.mixoutsTo; (rt = e), (it = {}), Object.keys(ot).forEach(function (e) { -1 === at.indexOf(e) && delete ot[e]; }), rt.forEach(function (e) { var t = e.mixout ? e.mixout() : {}; if ( (Object.keys(t).forEach(function (e) { "function" == typeof t[e] && (n[e] = t[e]), "object" === o(t[e]) && Object.keys(t[e]).forEach(function (r) { n[e] || (n[e] = {}), (n[e][r] = t[e][r]); }); }), e.hooks) ) { var r = e.hooks(); Object.keys(r).forEach(function (e) { it[e] || (it[e] = []), it[e].push(r[e]); }); } e.provides && e.provides(ot); }); })( [ we, Xt, Qt, Jt, en, { hooks: function () { return { mutationObserverCallbacks: function (e) { return (e.pseudoElementsCallback = sn), e; }, }; }, provides: function (e) { e.pseudoElements2svg = function (e) { var t = e.node, n = void 0 === t ? k : t; ue.searchPseudoElements && sn(n); }; }, }, { mixout: function () { return { dom: { unwatch: function () { Nt(), (un = !0); }, }, }; }, hooks: function () { return { bootstrap: function () { Ft(st("mutationObserverCallbacks", {})); }, noAuto: function () { Ut && Ut.disconnect(); }, watch: function (e) { var t = e.observeMutationsRoot; un ? Bt() : Ft( st("mutationObserverCallbacks", { observeMutationsRoot: t, }) ); }, }; }, }, ln, pn, hn, { hooks: function () { return { parseNodeAttributes: function (e, t) { var n = t.getAttribute("data-fa-symbol"), r = null !== n && ("" === n || n); return (e.symbol = r), e; }, }; }, }, ], { mixoutsTo: pt } ); var gn = pt.library, mn = pt.dom, yn = pt.parse, vn = pt.icon; }, 29204: function (e, t, n) { "use strict"; n.d(t, { Mw: function () { return s; }, }); var r = n(71257); const { Axios: i, AxiosError: o, CanceledError: a, isCancel: s, CancelToken: u, VERSION: c, all: l, Cancel: f, isAxiosError: d, spread: p, toFormData: h, AxiosHeaders: g, HttpStatusCode: m, formToJSON: y, getAdapter: v, mergeConfig: b, } = r.Z; }, 71257: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return $e; }, }); var r = {}; function i(e, t) { return function () { return e.apply(t, arguments); }; } n.r(r), n.d(r, { hasBrowserEnv: function () { return re; }, hasStandardBrowserEnv: function () { return ie; }, hasStandardBrowserWebWorkerEnv: function () { return ae; }, }); const { toString: o } = Object.prototype, { getPrototypeOf: a } = Object, s = ((u = Object.create(null)), (e) => { const t = o.call(e); return u[t] || (u[t] = t.slice(8, -1).toLowerCase()); }); var u; const c = (e) => ((e = e.toLowerCase()), (t) => s(t) === e), l = (e) => (t) => typeof t === e, { isArray: f } = Array, d = l("undefined"); const p = c("ArrayBuffer"); const h = l("string"), g = l("function"), m = l("number"), y = (e) => null !== e && "object" == typeof e, v = (e) => { if ("object" !== s(e)) return !1; const t = a(e); return !( (null !== t && t !== Object.prototype && null !== Object.getPrototypeOf(t)) || Symbol.toStringTag in e || Symbol.iterator in e ); }, b = c("Date"), _ = c("File"), w = c("Blob"), T = c("FileList"), x = c("URLSearchParams"); function S(e, t, { allOwnKeys: n = !1 } = {}) { if (null == e) return; let r, i; if (("object" != typeof e && (e = [e]), f(e))) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e); else { const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length; let a; for (r = 0; r < o; r++) (a = i[r]), t.call(null, e[a], a, e); } } function k(e, t) { t = t.toLowerCase(); const n = Object.keys(e); let r, i = n.length; for (; i-- > 0; ) if (((r = n[i]), t === r.toLowerCase())) return r; return null; } const E = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof window ? window : global, O = (e) => !d(e) && e !== E; const C = ((L = "undefined" != typeof Uint8Array && a(Uint8Array)), (e) => L && e instanceof L); var L; const A = c("HTMLFormElement"), I = ( ({ hasOwnProperty: e }) => (t, n) => e.call(t, n) )(Object.prototype), M = c("RegExp"), P = (e, t) => { const n = Object.getOwnPropertyDescriptors(e), r = {}; S(n, (n, i) => { let o; !1 !== (o = t(n, i, e)) && (r[i] = o || n); }), Object.defineProperties(e, r); }, R = "abcdefghijklmnopqrstuvwxyz", D = "0123456789", j = { DIGIT: D, ALPHA: R, ALPHA_DIGIT: R + R.toUpperCase() + D }; const N = c("AsyncFunction"); var B = { isArray: f, isArrayBuffer: p, isBuffer: function (e) { return ( null !== e && !d(e) && null !== e.constructor && !d(e.constructor) && g(e.constructor.isBuffer) && e.constructor.isBuffer(e) ); }, isFormData: (e) => { let t; return ( e && (("function" == typeof FormData && e instanceof FormData) || (g(e.append) && ("formdata" === (t = s(e)) || ("object" === t && g(e.toString) && "[object FormData]" === e.toString())))) ); }, isArrayBufferView: function (e) { let t; return ( (t = "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && p(e.buffer)), t ); }, isString: h, isNumber: m, isBoolean: (e) => !0 === e || !1 === e, isObject: y, isPlainObject: v, isUndefined: d, isDate: b, isFile: _, isBlob: w, isRegExp: M, isFunction: g, isStream: (e) => y(e) && g(e.pipe), isURLSearchParams: x, isTypedArray: C, isFileList: T, forEach: S, merge: function e() { const { caseless: t } = (O(this) && this) || {}, n = {}, r = (r, i) => { const o = (t && k(n, i)) || i; v(n[o]) && v(r) ? (n[o] = e(n[o], r)) : v(r) ? (n[o] = e({}, r)) : f(r) ? (n[o] = r.slice()) : (n[o] = r); }; for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && S(arguments[e], r); return n; }, extend: (e, t, n, { allOwnKeys: r } = {}) => ( S( t, (t, r) => { n && g(t) ? (e[r] = i(t, n)) : (e[r] = t); }, { allOwnKeys: r } ), e ), trim: (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), stripBOM: (e) => (65279 === e.charCodeAt(0) && (e = e.slice(1)), e), inherits: (e, t, n, r) => { (e.prototype = Object.create(t.prototype, r)), (e.prototype.constructor = e), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n); }, toFlatObject: (e, t, n, r) => { let i, o, s; const u = {}; if (((t = t || {}), null == e)) return t; do { for (i = Object.getOwnPropertyNames(e), o = i.length; o-- > 0; ) (s = i[o]), (r && !r(s, e, t)) || u[s] || ((t[s] = e[s]), (u[s] = !0)); e = !1 !== n && a(e); } while (e && (!n || n(e, t)) && e !== Object.prototype); return t; }, kindOf: s, kindOfTest: c, endsWith: (e, t, n) => { (e = String(e)), (void 0 === n || n > e.length) && (n = e.length), (n -= t.length); const r = e.indexOf(t, n); return -1 !== r && r === n; }, toArray: (e) => { if (!e) return null; if (f(e)) return e; let t = e.length; if (!m(t)) return null; const n = new Array(t); for (; t-- > 0; ) n[t] = e[t]; return n; }, forEachEntry: (e, t) => { const n = (e && e[Symbol.iterator]).call(e); let r; for (; (r = n.next()) && !r.done; ) { const n = r.value; t.call(e, n[0], n[1]); } }, matchAll: (e, t) => { let n; const r = []; for (; null !== (n = e.exec(t)); ) r.push(n); return r; }, isHTMLForm: A, hasOwnProperty: I, hasOwnProp: I, reduceDescriptors: P, freezeMethods: (e) => { P(e, (t, n) => { if (g(e) && -1 !== ["arguments", "caller", "callee"].indexOf(n)) return !1; const r = e[n]; g(r) && ((t.enumerable = !1), "writable" in t ? (t.writable = !1) : t.set || (t.set = () => { throw Error("Can not rewrite read-only method '" + n + "'"); })); }); }, toObjectSet: (e, t) => { const n = {}, r = (e) => { e.forEach((e) => { n[e] = !0; }); }; return f(e) ? r(e) : r(String(e).split(t)), n; }, toCamelCase: (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function (e, t, n) { return t.toUpperCase() + n; }), noop: () => {}, toFiniteNumber: (e, t) => ((e = +e), Number.isFinite(e) ? e : t), findKey: k, global: E, isContextDefined: O, ALPHABET: j, generateString: (e = 16, t = j.ALPHA_DIGIT) => { let n = ""; const { length: r } = t; for (; e--; ) n += t[(Math.random() * r) | 0]; return n; }, isSpecCompliantForm: function (e) { return !!( e && g(e.append) && "FormData" === e[Symbol.toStringTag] && e[Symbol.iterator] ); }, toJSONObject: (e) => { const t = new Array(10), n = (e, r) => { if (y(e)) { if (t.indexOf(e) >= 0) return; if (!("toJSON" in e)) { t[r] = e; const i = f(e) ? [] : {}; return ( S(e, (e, t) => { const o = n(e, r + 1); !d(o) && (i[t] = o); }), (t[r] = void 0), i ); } } return e; }; return n(e, 0); }, isAsyncFn: N, isThenable: (e) => e && (y(e) || g(e)) && g(e.then) && g(e.catch), }; function U(e, t, n, r, i) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : (this.stack = new Error().stack), (this.message = e), (this.name = "AxiosError"), t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i); } B.inherits(U, Error, { toJSON: function () { return { message: this.message, name: this.name, description: this.description, number: this.number, fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, config: B.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null, }; }, }); const F = U.prototype, z = {}; [ "ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL", ].forEach((e) => { z[e] = { value: e }; }), Object.defineProperties(U, z), Object.defineProperty(F, "isAxiosError", { value: !0 }), (U.from = (e, t, n, r, i, o) => { const a = Object.create(F); return ( B.toFlatObject( e, a, function (e) { return e !== Error.prototype; }, (e) => "isAxiosError" !== e ), U.call(a, e.message, t, n, r, i), (a.cause = e), (a.name = e.name), o && Object.assign(a, o), a ); }); var H = U; function q(e) { return B.isPlainObject(e) || B.isArray(e); } function Z(e) { return B.endsWith(e, "[]") ? e.slice(0, -2) : e; } function V(e, t, n) { return e ? e .concat(t) .map(function (e, t) { return (e = Z(e)), !n && t ? "[" + e + "]" : e; }) .join(n ? "." : "") : t; } const W = B.toFlatObject(B, {}, null, function (e) { return /^is[A-Z]/.test(e); }); var $ = function (e, t, n) { if (!B.isObject(e)) throw new TypeError("target must be an object"); t = t || new FormData(); const r = (n = B.toFlatObject( n, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function (e, t) { return !B.isUndefined(t[e]); } )).metaTokens, i = n.visitor || c, o = n.dots, a = n.indexes, s = (n.Blob || ("undefined" != typeof Blob && Blob)) && B.isSpecCompliantForm(t); if (!B.isFunction(i)) throw new TypeError("visitor must be a function"); function u(e) { if (null === e) return ""; if (B.isDate(e)) return e.toISOString(); if (!s && B.isBlob(e)) throw new H("Blob is not supported. Use a Buffer instead."); return B.isArrayBuffer(e) || B.isTypedArray(e) ? s && "function" == typeof Blob ? new Blob([e]) : Buffer.from(e) : e; } function c(e, n, i) { let s = e; if (e && !i && "object" == typeof e) if (B.endsWith(n, "{}")) (n = r ? n : n.slice(0, -2)), (e = JSON.stringify(e)); else if ( (B.isArray(e) && (function (e) { return B.isArray(e) && !e.some(q); })(e)) || ((B.isFileList(e) || B.endsWith(n, "[]")) && (s = B.toArray(e))) ) return ( (n = Z(n)), s.forEach(function (e, r) { !B.isUndefined(e) && null !== e && t.append( !0 === a ? V([n], r, o) : null === a ? n : n + "[]", u(e) ); }), !1 ); return !!q(e) || (t.append(V(i, n, o), u(e)), !1); } const l = [], f = Object.assign(W, { defaultVisitor: c, convertValue: u, isVisitable: q, }); if (!B.isObject(e)) throw new TypeError("data must be an object"); return ( (function e(n, r) { if (!B.isUndefined(n)) { if (-1 !== l.indexOf(n)) throw Error("Circular reference detected in " + r.join(".")); l.push(n), B.forEach(n, function (n, o) { !0 === (!(B.isUndefined(n) || null === n) && i.call(t, n, B.isString(o) ? o.trim() : o, r, f)) && e(n, r ? r.concat(o) : [o]); }), l.pop(); } })(e), t ); }; function G(e) { const t = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0", }; return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function (e) { return t[e]; }); } function Y(e, t) { (this._pairs = []), e && $(e, this, t); } const K = Y.prototype; (K.append = function (e, t) { this._pairs.push([e, t]); }), (K.toString = function (e) { const t = e ? function (t) { return e.call(this, t, G); } : G; return this._pairs .map(function (e) { return t(e[0]) + "=" + t(e[1]); }, "") .join("&"); }); var X = Y; function Q(e) { return encodeURIComponent(e) .replace(/%3A/gi, ":") .replace(/%24/g, "$") .replace(/%2C/gi, ",") .replace(/%20/g, "+") .replace(/%5B/gi, "[") .replace(/%5D/gi, "]"); } function J(e, t, n) { if (!t) return e; const r = (n && n.encode) || Q, i = n && n.serialize; let o; if ( ((o = i ? i(t, n) : B.isURLSearchParams(t) ? t.toString() : new X(t, n).toString(r)), o) ) { const t = e.indexOf("#"); -1 !== t && (e = e.slice(0, t)), (e += (-1 === e.indexOf("?") ? "?" : "&") + o); } return e; } var ee = class { constructor() { this.handlers = []; } use(e, t, n) { return ( this.handlers.push({ fulfilled: e, rejected: t, synchronous: !!n && n.synchronous, runWhen: n ? n.runWhen : null, }), this.handlers.length - 1 ); } eject(e) { this.handlers[e] && (this.handlers[e] = null); } clear() { this.handlers && (this.handlers = []); } forEach(e) { B.forEach(this.handlers, function (t) { null !== t && e(t); }); } }, te = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1, }, ne = { isBrowser: !0, classes: { URLSearchParams: "undefined" != typeof URLSearchParams ? URLSearchParams : X, FormData: "undefined" != typeof FormData ? FormData : null, Blob: "undefined" != typeof Blob ? Blob : null, }, protocols: ["http", "https", "file", "blob", "url", "data"], }; const re = "undefined" != typeof window && "undefined" != typeof document, ie = ((oe = "undefined" != typeof navigator && navigator.product), re && ["ReactNative", "NativeScript", "NS"].indexOf(oe) < 0); var oe; const ae = "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && "function" == typeof self.importScripts; var se = { ...r, ...ne }; var ue = function (e) { function t(e, n, r, i) { let o = e[i++]; if ("__proto__" === o) return !0; const a = Number.isFinite(+o), s = i >= e.length; if (((o = !o && B.isArray(r) ? r.length : o), s)) return B.hasOwnProp(r, o) ? (r[o] = [r[o], n]) : (r[o] = n), !a; (r[o] && B.isObject(r[o])) || (r[o] = []); return ( t(e, n, r[o], i) && B.isArray(r[o]) && (r[o] = (function (e) { const t = {}, n = Object.keys(e); let r; const i = n.length; let o; for (r = 0; r < i; r++) (o = n[r]), (t[o] = e[o]); return t; })(r[o])), !a ); } if (B.isFormData(e) && B.isFunction(e.entries)) { const n = {}; return ( B.forEachEntry(e, (e, r) => { t( (function (e) { return B.matchAll(/\w+|\[(\w*)]/g, e).map((e) => "[]" === e[0] ? "" : e[1] || e[0] ); })(e), r, n, 0 ); }), n ); } return null; }; const ce = { transitional: te, adapter: ["xhr", "http"], transformRequest: [ function (e, t) { const n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = B.isObject(e); i && B.isHTMLForm(e) && (e = new FormData(e)); if (B.isFormData(e)) return r ? JSON.stringify(ue(e)) : e; if ( B.isArrayBuffer(e) || B.isBuffer(e) || B.isStream(e) || B.isFile(e) || B.isBlob(e) ) return e; if (B.isArrayBufferView(e)) return e.buffer; if (B.isURLSearchParams(e)) return ( t.setContentType( "application/x-www-form-urlencoded;charset=utf-8", !1 ), e.toString() ); let o; if (i) { if (n.indexOf("application/x-www-form-urlencoded") > -1) return (function (e, t) { return $( e, new se.classes.URLSearchParams(), Object.assign( { visitor: function (e, t, n, r) { return se.isNode && B.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments); }, }, t ) ); })(e, this.formSerializer).toString(); if ( (o = B.isFileList(e)) || n.indexOf("multipart/form-data") > -1 ) { const t = this.env && this.env.FormData; return $( o ? { "files[]": e } : e, t && new t(), this.formSerializer ); } } return i || r ? (t.setContentType("application/json", !1), (function (e, t, n) { if (B.isString(e)) try { return (t || JSON.parse)(e), B.trim(e); } catch (e) { if ("SyntaxError" !== e.name) throw e; } return (n || JSON.stringify)(e); })(e)) : e; }, ], transformResponse: [ function (e) { const t = this.transitional || ce.transitional, n = t && t.forcedJSONParsing, r = "json" === this.responseType; if (e && B.isString(e) && ((n && !this.responseType) || r)) { const n = !(t && t.silentJSONParsing) && r; try { return JSON.parse(e); } catch (e) { if (n) { if ("SyntaxError" === e.name) throw H.from( e, H.ERR_BAD_RESPONSE, this, null, this.response ); throw e; } } } return e; }, ], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: se.classes.FormData, Blob: se.classes.Blob }, validateStatus: function (e) { return e >= 200 && e < 300; }, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0, }, }, }; B.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => { ce.headers[e] = {}; }); var le = ce; const fe = B.toObjectSet([ "age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent", ]); const de = Symbol("internals"); function pe(e) { return e && String(e).trim().toLowerCase(); } function he(e) { return !1 === e || null == e ? e : B.isArray(e) ? e.map(he) : String(e); } function ge(e, t, n, r, i) { return B.isFunction(r) ? r.call(this, t, n) : (i && (t = n), B.isString(t) ? B.isString(r) ? -1 !== t.indexOf(r) : B.isRegExp(r) ? r.test(t) : void 0 : void 0); } class me { constructor(e) { e && this.set(e); } set(e, t, n) { const r = this; function i(e, t, n) { const i = pe(t); if (!i) throw new Error("header name must be a non-empty string"); const o = B.findKey(r, i); (!o || void 0 === r[o] || !0 === n || (void 0 === n && !1 !== r[o])) && (r[o || t] = he(e)); } const o = (e, t) => B.forEach(e, (e, n) => i(e, n, t)); return ( B.isPlainObject(e) || e instanceof this.constructor ? o(e, t) : B.isString(e) && (e = e.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()) ? o( ((e) => { const t = {}; let n, r, i; return ( e && e.split("\n").forEach(function (e) { (i = e.indexOf(":")), (n = e.substring(0, i).trim().toLowerCase()), (r = e.substring(i + 1).trim()), !n || (t[n] && fe[n]) || ("set-cookie" === n ? t[n] ? t[n].push(r) : (t[n] = [r]) : (t[n] = t[n] ? t[n] + ", " + r : r)); }), t ); })(e), t ) : null != e && i(t, e, n), this ); } get(e, t) { if ((e = pe(e))) { const n = B.findKey(this, e); if (n) { const e = this[n]; if (!t) return e; if (!0 === t) return (function (e) { const t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let r; for (; (r = n.exec(e)); ) t[r[1]] = r[2]; return t; })(e); if (B.isFunction(t)) return t.call(this, e, n); if (B.isRegExp(t)) return t.exec(e); throw new TypeError("parser must be boolean|regexp|function"); } } } has(e, t) { if ((e = pe(e))) { const n = B.findKey(this, e); return !(!n || void 0 === this[n] || (t && !ge(0, this[n], n, t))); } return !1; } delete(e, t) { const n = this; let r = !1; function i(e) { if ((e = pe(e))) { const i = B.findKey(n, e); !i || (t && !ge(0, n[i], i, t)) || (delete n[i], (r = !0)); } } return B.isArray(e) ? e.forEach(i) : i(e), r; } clear(e) { const t = Object.keys(this); let n = t.length, r = !1; for (; n--; ) { const i = t[n]; (e && !ge(0, this[i], i, e, !0)) || (delete this[i], (r = !0)); } return r; } normalize(e) { const t = this, n = {}; return ( B.forEach(this, (r, i) => { const o = B.findKey(n, i); if (o) return (t[o] = he(r)), void delete t[i]; const a = e ? (function (e) { return e .trim() .toLowerCase() .replace( /([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n ); })(i) : String(i).trim(); a !== i && delete t[i], (t[a] = he(r)), (n[a] = !0); }), this ); } concat(...e) { return this.constructor.concat(this, ...e); } toJSON(e) { const t = Object.create(null); return ( B.forEach(this, (n, r) => { null != n && !1 !== n && (t[r] = e && B.isArray(n) ? n.join(", ") : n); }), t ); } [Symbol.iterator]() { return Object.entries(this.toJSON())[Symbol.iterator](); } toString() { return Object.entries(this.toJSON()) .map(([e, t]) => e + ": " + t) .join("\n"); } get [Symbol.toStringTag]() { return "AxiosHeaders"; } static from(e) { return e instanceof this ? e : new this(e); } static concat(e, ...t) { const n = new this(e); return t.forEach((e) => n.set(e)), n; } static accessor(e) { const t = (this[de] = this[de] = { accessors: {} }).accessors, n = this.prototype; function r(e) { const r = pe(e); t[r] || (!(function (e, t) { const n = B.toCamelCase(" " + t); ["get", "set", "has"].forEach((r) => { Object.defineProperty(e, r + n, { value: function (e, n, i) { return this[r].call(this, t, e, n, i); }, configurable: !0, }); }); })(n, e), (t[r] = !0)); } return B.isArray(e) ? e.forEach(r) : r(e), this; } } me.accessor([ "Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization", ]), B.reduceDescriptors(me.prototype, ({ value: e }, t) => { let n = t[0].toUpperCase() + t.slice(1); return { get: () => e, set(e) { this[n] = e; }, }; }), B.freezeMethods(me); var ye = me; function ve(e, t) { const n = this || le, r = t || n, i = ye.from(r.headers); let o = r.data; return ( B.forEach(e, function (e) { o = e.call(n, o, i.normalize(), t ? t.status : void 0); }), i.normalize(), o ); } function be(e) { return !(!e || !e.__CANCEL__); } function _e(e, t, n) { H.call(this, null == e ? "canceled" : e, H.ERR_CANCELED, t, n), (this.name = "CanceledError"); } B.inherits(_e, H, { __CANCEL__: !0 }); var we = _e; var Te = se.hasStandardBrowserEnv ? { write(e, t, n, r, i, o) { const a = [e + "=" + encodeURIComponent(t)]; B.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), B.isString(r) && a.push("path=" + r), B.isString(i) && a.push("domain=" + i), !0 === o && a.push("secure"), (document.cookie = a.join("; ")); }, read(e) { const t = document.cookie.match( new RegExp("(^|;\\s*)(" + e + ")=([^;]*)") ); return t ? decodeURIComponent(t[3]) : null; }, remove(e) { this.write(e, "", Date.now() - 864e5); }, } : { write() {}, read: () => null, remove() {} }; function xe(e, t) { return e && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t) ? (function (e, t) { return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; })(e, t) : t; } var Se = se.hasStandardBrowserEnv ? (function () { const e = /(msie|trident)/i.test(navigator.userAgent), t = document.createElement("a"); let n; function r(n) { let r = n; return ( e && (t.setAttribute("href", r), (r = t.href)), t.setAttribute("href", r), { href: t.href, protocol: t.protocol ? t.protocol.replace(/:$/, "") : "", host: t.host, search: t.search ? t.search.replace(/^\?/, "") : "", hash: t.hash ? t.hash.replace(/^#/, "") : "", hostname: t.hostname, port: t.port, pathname: "/" === t.pathname.charAt(0) ? t.pathname : "/" + t.pathname, } ); } return ( (n = r(window.location.href)), function (e) { const t = B.isString(e) ? r(e) : e; return t.protocol === n.protocol && t.host === n.host; } ); })() : function () { return !0; }; var ke = function (e, t) { e = e || 10; const n = new Array(e), r = new Array(e); let i, o = 0, a = 0; return ( (t = void 0 !== t ? t : 1e3), function (s) { const u = Date.now(), c = r[a]; i || (i = u), (n[o] = s), (r[o] = u); let l = a, f = 0; for (; l !== o; ) (f += n[l++]), (l %= e); if (((o = (o + 1) % e), o === a && (a = (a + 1) % e), u - i < t)) return; const d = c && u - c; return d ? Math.round((1e3 * f) / d) : void 0; } ); }; function Ee(e, t) { let n = 0; const r = ke(50, 250); return (i) => { const o = i.loaded, a = i.lengthComputable ? i.total : void 0, s = o - n, u = r(s); n = o; const c = { loaded: o, total: a, progress: a ? o / a : void 0, bytes: s, rate: u || void 0, estimated: u && a && o <= a ? (a - o) / u : void 0, event: i, }; (c[t ? "download" : "upload"] = !0), e(c); }; } const Oe = { http: null, xhr: "undefined" != typeof XMLHttpRequest && function (e) { return new Promise(function (t, n) { let r = e.data; const i = ye.from(e.headers).normalize(); let o, a, { responseType: s, withXSRFToken: u } = e; function c() { e.cancelToken && e.cancelToken.unsubscribe(o), e.signal && e.signal.removeEventListener("abort", o); } if (B.isFormData(r)) if ( se.hasStandardBrowserEnv || se.hasStandardBrowserWebWorkerEnv ) i.setContentType(!1); else if (!1 !== (a = i.getContentType())) { const [e, ...t] = a ? a .split(";") .map((e) => e.trim()) .filter(Boolean) : []; i.setContentType( [e || "multipart/form-data", ...t].join("; ") ); } let l = new XMLHttpRequest(); if (e.auth) { const t = e.auth.username || "", n = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : ""; i.set("Authorization", "Basic " + btoa(t + ":" + n)); } const f = xe(e.baseURL, e.url); function d() { if (!l) return; const r = ye.from( "getAllResponseHeaders" in l && l.getAllResponseHeaders() ); !(function (e, t, n) { const r = n.config.validateStatus; n.status && r && !r(n.status) ? t( new H( "Request failed with status code " + n.status, [H.ERR_BAD_REQUEST, H.ERR_BAD_RESPONSE][ Math.floor(n.status / 100) - 4 ], n.config, n.request, n ) ) : e(n); })( function (e) { t(e), c(); }, function (e) { n(e), c(); }, { data: s && "text" !== s && "json" !== s ? l.response : l.responseText, status: l.status, statusText: l.statusText, headers: r, config: e, request: l, } ), (l = null); } if ( (l.open( e.method.toUpperCase(), J(f, e.params, e.paramsSerializer), !0 ), (l.timeout = e.timeout), "onloadend" in l ? (l.onloadend = d) : (l.onreadystatechange = function () { l && 4 === l.readyState && (0 !== l.status || (l.responseURL && 0 === l.responseURL.indexOf("file:"))) && setTimeout(d); }), (l.onabort = function () { l && (n(new H("Request aborted", H.ECONNABORTED, e, l)), (l = null)); }), (l.onerror = function () { n(new H("Network Error", H.ERR_NETWORK, e, l)), (l = null); }), (l.ontimeout = function () { let t = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded"; const r = e.transitional || te; e.timeoutErrorMessage && (t = e.timeoutErrorMessage), n( new H( t, r.clarifyTimeoutError ? H.ETIMEDOUT : H.ECONNABORTED, e, l ) ), (l = null); }), se.hasStandardBrowserEnv && (u && B.isFunction(u) && (u = u(e)), u || (!1 !== u && Se(f)))) ) { const t = e.xsrfHeaderName && e.xsrfCookieName && Te.read(e.xsrfCookieName); t && i.set(e.xsrfHeaderName, t); } void 0 === r && i.setContentType(null), "setRequestHeader" in l && B.forEach(i.toJSON(), function (e, t) { l.setRequestHeader(t, e); }), B.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), s && "json" !== s && (l.responseType = e.responseType), "function" == typeof e.onDownloadProgress && l.addEventListener("progress", Ee(e.onDownloadProgress, !0)), "function" == typeof e.onUploadProgress && l.upload && l.upload.addEventListener("progress", Ee(e.onUploadProgress)), (e.cancelToken || e.signal) && ((o = (t) => { l && (n(!t || t.type ? new we(null, e, l) : t), l.abort(), (l = null)); }), e.cancelToken && e.cancelToken.subscribe(o), e.signal && (e.signal.aborted ? o() : e.signal.addEventListener("abort", o))); const p = (function (e) { const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e); return (t && t[1]) || ""; })(f); p && -1 === se.protocols.indexOf(p) ? n( new H( "Unsupported protocol " + p + ":", H.ERR_BAD_REQUEST, e ) ) : l.send(r || null); }); }, }; B.forEach(Oe, (e, t) => { if (e) { try { Object.defineProperty(e, "name", { value: t }); } catch (e) {} Object.defineProperty(e, "adapterName", { value: t }); } }); const Ce = (e) => `- ${e}`, Le = (e) => B.isFunction(e) || null === e || !1 === e; var Ae = (e) => { e = B.isArray(e) ? e : [e]; const { length: t } = e; let n, r; const i = {}; for (let o = 0; o < t; o++) { let t; if ( ((n = e[o]), (r = n), !Le(n) && ((r = Oe[(t = String(n)).toLowerCase()]), void 0 === r)) ) throw new H(`Unknown adapter '${t}'`); if (r) break; i[t || "#" + o] = r; } if (!r) { const e = Object.entries(i).map( ([e, t]) => `adapter ${e} ` + (!1 === t ? "is not supported by the environment" : "is not available in the build") ); let n = t ? e.length > 1 ? "since :\n" + e.map(Ce).join("\n") : " " + Ce(e[0]) : "as no adapter specified"; throw new H( "There is no suitable adapter to dispatch the request " + n, "ERR_NOT_SUPPORT" ); } return r; }; function Ie(e) { if ( (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) ) throw new we(null, e); } function Me(e) { Ie(e), (e.headers = ye.from(e.headers)), (e.data = ve.call(e, e.transformRequest)), -1 !== ["post", "put", "patch"].indexOf(e.method) && e.headers.setContentType("application/x-www-form-urlencoded", !1); return Ae(e.adapter || le.adapter)(e).then( function (t) { return ( Ie(e), (t.data = ve.call(e, e.transformResponse, t)), (t.headers = ye.from(t.headers)), t ); }, function (t) { return ( be(t) || (Ie(e), t && t.response && ((t.response.data = ve.call( e, e.transformResponse, t.response )), (t.response.headers = ye.from(t.response.headers)))), Promise.reject(t) ); } ); } const Pe = (e) => (e instanceof ye ? e.toJSON() : e); function Re(e, t) { t = t || {}; const n = {}; function r(e, t, n) { return B.isPlainObject(e) && B.isPlainObject(t) ? B.merge.call({ caseless: n }, e, t) : B.isPlainObject(t) ? B.merge({}, t) : B.isArray(t) ? t.slice() : t; } function i(e, t, n) { return B.isUndefined(t) ? B.isUndefined(e) ? void 0 : r(void 0, e, n) : r(e, t, n); } function o(e, t) { if (!B.isUndefined(t)) return r(void 0, t); } function a(e, t) { return B.isUndefined(t) ? B.isUndefined(e) ? void 0 : r(void 0, e) : r(void 0, t); } function s(n, i, o) { return o in t ? r(n, i) : o in e ? r(void 0, n) : void 0; } const u = { url: o, method: o, data: o, baseURL: a, transformRequest: a, transformResponse: a, paramsSerializer: a, timeout: a, timeoutMessage: a, withCredentials: a, withXSRFToken: a, adapter: a, responseType: a, xsrfCookieName: a, xsrfHeaderName: a, onUploadProgress: a, onDownloadProgress: a, decompress: a, maxContentLength: a, maxBodyLength: a, beforeRedirect: a, transport: a, httpAgent: a, httpsAgent: a, cancelToken: a, socketPath: a, responseEncoding: a, validateStatus: s, headers: (e, t) => i(Pe(e), Pe(t), !0), }; return ( B.forEach(Object.keys(Object.assign({}, e, t)), function (r) { const o = u[r] || i, a = o(e[r], t[r], r); (B.isUndefined(a) && o !== s) || (n[r] = a); }), n ); } const De = "1.6.7", je = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach( (e, t) => { je[e] = function (n) { return typeof n === e || "a" + (t < 1 ? "n " : " ") + e; }; } ); const Ne = {}; je.transitional = function (e, t, n) { function r(e, t) { return ( "[Axios v1.6.7] Transitional option '" + e + "'" + t + (n ? ". " + n : "") ); } return (n, i, o) => { if (!1 === e) throw new H( r(i, " has been removed" + (t ? " in " + t : "")), H.ERR_DEPRECATED ); return ( t && !Ne[i] && ((Ne[i] = !0), console.warn( r( i, " has been deprecated since v" + t + " and will be removed in the near future" ) )), !e || e(n, i, o) ); }; }; var Be = { assertOptions: function (e, t, n) { if ("object" != typeof e) throw new H("options must be an object", H.ERR_BAD_OPTION_VALUE); const r = Object.keys(e); let i = r.length; for (; i-- > 0; ) { const o = r[i], a = t[o]; if (a) { const t = e[o], n = void 0 === t || a(t, o, e); if (!0 !== n) throw new H( "option " + o + " must be " + n, H.ERR_BAD_OPTION_VALUE ); } else if (!0 !== n) throw new H("Unknown option " + o, H.ERR_BAD_OPTION); } }, validators: je, }; const Ue = Be.validators; class Fe { constructor(e) { (this.defaults = e), (this.interceptors = { request: new ee(), response: new ee() }); } async request(e, t) { try { return await this._request(e, t); } catch (e) { if (e instanceof Error) { let t; Error.captureStackTrace ? Error.captureStackTrace((t = {})) : (t = new Error()); const n = t.stack ? t.stack.replace(/^.+\n/, "") : ""; e.stack ? n && !String(e.stack).endsWith(n.replace(/^.+\n.+\n/, "")) && (e.stack += "\n" + n) : (e.stack = n); } throw e; } } _request(e, t) { "string" == typeof e ? ((t = t || {}).url = e) : (t = e || {}), (t = Re(this.defaults, t)); const { transitional: n, paramsSerializer: r, headers: i } = t; void 0 !== n && Be.assertOptions( n, { silentJSONParsing: Ue.transitional(Ue.boolean), forcedJSONParsing: Ue.transitional(Ue.boolean), clarifyTimeoutError: Ue.transitional(Ue.boolean), }, !1 ), null != r && (B.isFunction(r) ? (t.paramsSerializer = { serialize: r }) : Be.assertOptions( r, { encode: Ue.function, serialize: Ue.function }, !0 )), (t.method = ( t.method || this.defaults.method || "get" ).toLowerCase()); let o = i && B.merge(i.common, i[t.method]); i && B.forEach( ["delete", "get", "head", "post", "put", "patch", "common"], (e) => { delete i[e]; } ), (t.headers = ye.concat(o, i)); const a = []; let s = !0; this.interceptors.request.forEach(function (e) { ("function" == typeof e.runWhen && !1 === e.runWhen(t)) || ((s = s && e.synchronous), a.unshift(e.fulfilled, e.rejected)); }); const u = []; let c; this.interceptors.response.forEach(function (e) { u.push(e.fulfilled, e.rejected); }); let l, f = 0; if (!s) { const e = [Me.bind(this), void 0]; for ( e.unshift.apply(e, a), e.push.apply(e, u), l = e.length, c = Promise.resolve(t); f < l; ) c = c.then(e[f++], e[f++]); return c; } l = a.length; let d = t; for (f = 0; f < l; ) { const e = a[f++], t = a[f++]; try { d = e(d); } catch (e) { t.call(this, e); break; } } try { c = Me.call(this, d); } catch (e) { return Promise.reject(e); } for (f = 0, l = u.length; f < l; ) c = c.then(u[f++], u[f++]); return c; } getUri(e) { return J( xe((e = Re(this.defaults, e)).baseURL, e.url), e.params, e.paramsSerializer ); } } B.forEach(["delete", "get", "head", "options"], function (e) { Fe.prototype[e] = function (t, n) { return this.request( Re(n || {}, { method: e, url: t, data: (n || {}).data }) ); }; }), B.forEach(["post", "put", "patch"], function (e) { function t(t) { return function (n, r, i) { return this.request( Re(i || {}, { method: e, headers: t ? { "Content-Type": "multipart/form-data" } : {}, url: n, data: r, }) ); }; } (Fe.prototype[e] = t()), (Fe.prototype[e + "Form"] = t(!0)); }); var ze = Fe; class He { constructor(e) { if ("function" != typeof e) throw new TypeError("executor must be a function."); let t; this.promise = new Promise(function (e) { t = e; }); const n = this; this.promise.then((e) => { if (!n._listeners) return; let t = n._listeners.length; for (; t-- > 0; ) n._listeners[t](e); n._listeners = null; }), (this.promise.then = (e) => { let t; const r = new Promise((e) => { n.subscribe(e), (t = e); }).then(e); return ( (r.cancel = function () { n.unsubscribe(t); }), r ); }), e(function (e, r, i) { n.reason || ((n.reason = new we(e, r, i)), t(n.reason)); }); } throwIfRequested() { if (this.reason) throw this.reason; } subscribe(e) { this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : (this._listeners = [e]); } unsubscribe(e) { if (!this._listeners) return; const t = this._listeners.indexOf(e); -1 !== t && this._listeners.splice(t, 1); } static source() { let e; return { token: new He(function (t) { e = t; }), cancel: e, }; } } var qe = He; const Ze = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511, }; Object.entries(Ze).forEach(([e, t]) => { Ze[t] = e; }); var Ve = Ze; const We = (function e(t) { const n = new ze(t), r = i(ze.prototype.request, n); return ( B.extend(r, ze.prototype, n, { allOwnKeys: !0 }), B.extend(r, n, null, { allOwnKeys: !0 }), (r.create = function (n) { return e(Re(t, n)); }), r ); })(le); (We.Axios = ze), (We.CanceledError = we), (We.CancelToken = qe), (We.isCancel = be), (We.VERSION = De), (We.toFormData = $), (We.AxiosError = H), (We.Cancel = We.CanceledError), (We.all = function (e) { return Promise.all(e); }), (We.spread = function (e) { return function (t) { return e.apply(null, t); }; }), (We.isAxiosError = function (e) { return B.isObject(e) && !0 === e.isAxiosError; }), (We.mergeConfig = Re), (We.AxiosHeaders = ye), (We.formToJSON = (e) => ue(B.isHTMLForm(e) ? new FormData(e) : e)), (We.getAdapter = Ae), (We.HttpStatusCode = Ve), (We.default = We); var $e = We; }, 66773: function (e, t, n) { "use strict"; n.d(t, { ZP: function () { return u; }, db: function () { return s; }, mh: function () { return a; }, }); var r = n(8571), i = n(68238), o = n(38754), a = { D50: [0.3457 / 0.3585, 1, 0.2958 / 0.3585], D65: [0.3127 / 0.329, 1, 0.3583 / 0.329], }; function s(e) { return Array.isArray(e) ? e : a[e]; } function u(e, t, n) { var u, c, l = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; if (((e = s(e)), (t = s(t)), !e || !t)) throw new TypeError( r( (u = r( (c = "Missing white point to convert ".concat(e ? "" : "from")) ).call(c, e || t ? "" : "/")) ).call(u, t ? "" : "to") ); if (e === t) return n; var f = { W1: e, W2: t, XYZ: n, options: l }; if ( (i.Z.run("chromatic-adaptation-start", f), f.M || (f.W1 === a.D65 && f.W2 === a.D50 ? (f.M = [ [ 1.0479297925449969, 0.022946870601609652, -0.05019226628920524, ], [ 0.02962780877005599, 0.9904344267538799, -0.017073799063418826, ], [ -0.009243040646204504, 0.015055191490298152, 0.7518742814281371, ], ]) : f.W1 === a.D50 && f.W2 === a.D65 && (f.M = [ [ 0.955473421488075, -0.02309845494876471, 0.06325924320057072, ], [ -0.0283697093338637, 1.0099953980813041, 0.021041441191917323, ], [ 0.012314014864481998, -0.020507649298898964, 1.330365926242124, ], ])), i.Z.run("chromatic-adaptation-end", f), f.M) ) return (0, o.Z)(f.M, f.XYZ); throw new TypeError( "Only Bradford CAT with white points D50 and D65 supported for now." ); } }, 50012: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return M; }, }); var r = {}; n.r(r), n.d(r, { contrastAPCA: function () { return y; }, contrastDeltaPhi: function () { return A; }, contrastLstar: function () { return w; }, contrastMichelson: function () { return v; }, contrastWCAG21: function () { return d; }, contrastWeber: function () { return b; }, }); var i = n(41266), o = n(88946), a = n(62079), s = n(8293), u = n(75064), c = n(64030), l = n(65049); function f(e) { return (0, c.Z)(e, [l.Z, "y"]); } function d(e, t) { (e = (0, s.Z)(e)), (t = (0, s.Z)(t)); var n = Math.max(f(e), 0), r = Math.max(f(t), 0); if (r > n) { var i = [r, n]; (n = i[0]), (r = i[1]); } return (n + 0.05) / (r + 0.05); } var p = n(59056), h = n(19487); function g(e) { return e >= 0.022 ? e : e + Math.pow(0.022 - e, 1.414); } function m(e) { var t = e < 0 ? -1 : 1, n = Math.abs(e); return t * Math.pow(n, 2.4); } function y(e, t) { var n, r, i, o; (t = (0, s.Z)(t)), (e = (0, s.Z)(e)), (t = (0, h.Z)(t, "srgb")); var a = (0, p.Z)(t.coords, 3); (r = a[0]), (i = a[1]), (o = a[2]); var u = 0.2126729 * m(r) + 0.7151522 * m(i) + 0.072175 * m(o); e = (0, h.Z)(e, "srgb"); var c = (0, p.Z)(e.coords, 3); (r = c[0]), (i = c[1]), (o = c[2]); var l = 0.2126729 * m(r) + 0.7151522 * m(i) + 0.072175 * m(o), f = g(u), d = g(l), y = d > f; return ( (n = Math.abs(d - f) < 5e-4 ? 0 : y ? 1.14 * (Math.pow(d, 0.56) - Math.pow(f, 0.57)) : 1.14 * (Math.pow(d, 0.65) - Math.pow(f, 0.62))), 100 * (Math.abs(n) < 0.1 ? 0 : n > 0 ? n - 0.027 : n + 0.027) ); } function v(e, t) { (e = (0, s.Z)(e)), (t = (0, s.Z)(t)); var n = Math.max(f(e), 0), r = Math.max(f(t), 0); if (r > n) { var i = [r, n]; (n = i[0]), (r = i[1]); } var o = n + r; return 0 === o ? 0 : (n - r) / o; } function b(e, t) { (e = (0, s.Z)(e)), (t = (0, s.Z)(t)); var n = Math.max(f(e), 0), r = Math.max(f(t), 0); if (r > n) { var i = [r, n]; (n = i[0]), (r = i[1]); } return 0 === r ? 5e4 : (n - r) / r; } var _ = n(54123); function w(e, t) { (e = (0, s.Z)(e)), (t = (0, s.Z)(t)); var n = (0, c.Z)(e, [_.Z, "l"]), r = (0, c.Z)(t, [_.Z, "l"]); return Math.abs(n - r); } var T = n(59898), x = n(4020), S = n(66773), k = 24 / 116, E = 24389 / 27, O = S.mh.D65, C = new x.Z({ id: "lab-d65", name: "Lab D65", coords: { l: { refRange: [0, 100], name: "Lightness" }, a: { refRange: [-125, 125] }, b: { refRange: [-125, 125] }, }, white: O, base: l.Z, fromBase: function (e) { var t = o(e).call(e, function (e, t) { return e / O[t]; }), n = o(t).call(t, function (e) { return e > 0.008856451679035631 ? T(e) : (E * e + 16) / 116; }); return [116 * n[1] - 16, 500 * (n[0] - n[1]), 200 * (n[1] - n[2])]; }, toBase: function (e) { var t = []; (t[1] = (e[0] + 16) / 116), (t[0] = e[1] / 500 + t[1]), (t[2] = t[1] - e[2] / 200); var n = [ t[0] > k ? Math.pow(t[0], 3) : (116 * t[0] - 16) / E, e[0] > 8 ? Math.pow((e[0] + 16) / 116, 3) : e[0] / E, t[2] > k ? Math.pow(t[2], 3) : (116 * t[2] - 16) / E, ]; return o(n).call(n, function (e, t) { return e * O[t]; }); }, formats: { "lab-d65": { coords: [ " | ", " | [-1,1]", " | [-1,1]", ], }, }, }), L = 0.5 * Math.pow(5, 0.5) + 0.5; function A(e, t) { (e = (0, s.Z)(e)), (t = (0, s.Z)(t)); var n = (0, c.Z)(e, [C, "l"]), r = (0, c.Z)(t, [C, "l"]), i = Math.abs(Math.pow(n, L) - Math.pow(r, L)), o = Math.pow(i, 1 / L) * Math.SQRT2 - 40; return o < 7.5 ? 0 : o; } var I = ["algorithm"]; function M(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; (0, u.HD)(n) && (n = { algorithm: n }); var c = n, l = c.algorithm, f = (0, i.Z)(c, I); if (!l) { var d, p = o((d = a(r))) .call(d, function (e) { return e.replace(/^contrast/, ""); }) .join(", "); throw new TypeError( "contrast() function needs a contrast algorithm. Please specify one of: ".concat( p ) ); } for (var h in ((e = (0, s.Z)(e)), (t = (0, s.Z)(t)), r)) if ("contrast" + l.toLowerCase() === h.toLowerCase()) return r[h](e, t, f); throw new TypeError("Unknown contrast algorithm: ".concat(l)); } }, 90781: function (e, t, n) { "use strict"; var r, i, o, a = n(92381); t.Z = { gamut_mapping: "css", precision: 5, deltaE: "76", verbose: "test" !== (null == a || null === (r = a.process) || void 0 === r || null === (i = r.env) || void 0 === i || null === (o = i.NODE_ENV) || void 0 === o ? void 0 : o.toLowerCase()), warn: function (e) { var t, n; this.verbose && (null == a || null === (t = a.console) || void 0 === t || null === (n = t.warn) || void 0 === n || n.call(t, e)); }, }; }, 64030: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return a; }, }); var r = n(4020), i = n(89289), o = n(8293); function a(e, t) { e = (0, o.Z)(e); var n = r.Z.resolveCoord(t, e.space), a = n.space, s = n.index; return (0, i.Z)(e, a)[s]; } }, 89289: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return a; }, }); var r = n(35704), i = n(4020), o = n(8293); function a(e, t) { var n; return ( (e = (0, o.Z)(e)), !t || e.space.equals(t) ? r((n = e.coords)).call(n) : (t = i.Z.get(t)).from(e) ); } }, 8293: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return s; }, }); var r = n(88946), i = n(4020), o = n(75064), a = n(99725); function s(e) { if (Array.isArray(e)) return r(e).call(e, s); if (!e) throw new TypeError("Empty color reference"); (0, o.HD)(e) && (e = (0, a.Z)(e)); var t = e.space || e.spaceId; return ( t instanceof i.Z || (e.space = i.Z.get(t)), void 0 === e.alpha && (e.alpha = 1), e ); } }, 68238: function (e, t, n) { "use strict"; var r = n(68420), i = n(27344), o = (function () { function e() { (0, r.Z)(this, e); } return ( (0, i.Z)(e, [ { key: "add", value: function (e, t, n) { if ("string" == typeof arguments[0]) (Array.isArray(e) ? e : [e]).forEach(function (e) { (this[e] = this[e] || []), t && this[e][n ? "unshift" : "push"](t); }, this); else for (var e in arguments[0]) this.add(e, arguments[0][e], arguments[1]); }, }, { key: "run", value: function (e, t) { (this[e] = this[e] || []), this[e].forEach(function (e) { e.call(t && t.context ? t.context : t, t); }); }, }, ]), e ); })(), a = new o(); t.Z = a; }, 38754: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return l; }, }); var r = n(88946), i = n(35704), o = n(10349), a = n(52472), s = n(19389); function u(e, t) { var n = (void 0 !== a && s(e)) || e["@@iterator"]; if (!n) { if ( Array.isArray(e) || (n = (function (e, t) { var n; if (!e) return; if ("string" == typeof e) return c(e, t); var r = i((n = Object.prototype.toString.call(e))).call(n, 8, -1); "Object" === r && e.constructor && (r = e.constructor.name); if ("Map" === r || "Set" === r) return o(e); if ( "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ) return c(e, t); })(e)) || (t && e && "number" == typeof e.length) ) { n && (e = n); var r = 0, u = function () {}; return { s: u, n: function () { return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] }; }, e: function (e) { throw e; }, f: u, }; } throw new TypeError( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); } var l, f = !0, d = !1; return { s: function () { n = n.call(e); }, n: function () { var e = n.next(); return (f = e.done), e; }, e: function (e) { (d = !0), (l = e); }, f: function () { try { f || null == n.return || n.return(); } finally { if (d) throw l; } }, }; } function c(e, t) { (null == t || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function l(e, t) { var n, i = e.length; Array.isArray(e[0]) || (e = [e]), Array.isArray(t[0]) || (t = r(t).call(t, function (e) { return [e]; })); var o = t[0].length, a = r((n = t[0])).call(n, function (e, n) { return r(t).call(t, function (e) { return e[n]; }); }), s = r(e).call(e, function (e) { return r(a).call(a, function (t) { var n = 0; if (!Array.isArray(e)) { var r, i = u(t); try { for (i.s(); !(r = i.n()).done; ) { var o = r.value; n += e * o; } } catch (e) { i.e(e); } finally { i.f(); } return n; } for (var a = 0; a < e.length; a++) n += e[a] * (t[a] || 0); return n; }); }); return ( 1 === i && (s = s[0]), 1 === o ? r(s).call(s, function (e) { return e[0]; }) : s ); } }, 99725: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return C; }, }); var r = n(35704), i = n(10349), o = n(52472), a = n(19389), s = n(19623), u = n(59056), c = n(23513), l = n(88946), f = n(39290), d = n(86981), p = n(8571), h = n(84705), g = n(45181), m = n(91829), y = n(73324), v = n(62079), b = n(67552), _ = n(75064), w = n(68238), T = n(4020), x = n(90781); function S(e, t) { var n = (void 0 !== o && a(e)) || e["@@iterator"]; if (!n) { if ( Array.isArray(e) || (n = (function (e, t) { var n; if (!e) return; if ("string" == typeof e) return k(e, t); var o = r((n = Object.prototype.toString.call(e))).call(n, 8, -1); "Object" === o && e.constructor && (o = e.constructor.name); if ("Map" === o || "Set" === o) return i(e); if ( "Arguments" === o || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o) ) return k(e, t); })(e)) || (t && e && "number" == typeof e.length) ) { n && (e = n); var s = 0, u = function () {}; return { s: u, n: function () { return s >= e.length ? { done: !0 } : { done: !1, value: e[s++] }; }, e: function (e) { throw e; }, f: u, }; } throw new TypeError( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); } var c, l = !0, f = !1; return { s: function () { n = n.call(e); }, n: function () { var e = n.next(); return (l = e.done), e; }, e: function (e) { (f = !0), (c = e); }, f: function () { try { l || null == n.return || n.return(); } finally { if (f) throw c; } }, }; } function k(e, t) { (null == t || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } var E = new c(["", "", ""]); function O(e, t, n, r) { var i; return l((i = f(e.coords))).call(i, function (e, i) { var o, a = (0, u.Z)(e, 2), s = a[0], c = a[1], l = t.coordGrammar[i], f = r[i], h = null == f ? void 0 : f.type; if ( !(o = f.none ? d(l).call(l, function (e) { return E.has(e); }) : d(l).call(l, function (e) { return e == h; })) ) { var g, m, y = c.name || s; throw new TypeError( p( (g = p( (m = "".concat(null != h ? h : f.raw, " not allowed for ")) ).call(m, y, " in ")) ).call(g, n, "()") ); } var v = o.range; "" === h && (v || (v = [0, 1])); var b = c.range || c.refRange; return v && b && (r[i] = _.KK(v, b, r[i])), o; }); } function C(e) { var t, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r = n.meta, i = { str: null === (t = String(e)) || void 0 === t ? void 0 : h(t).call(t), }; if ((w.Z.run("parse-start", i), i.color)) return i.color; if (((i.parsed = _.dL(i.str)), i.parsed)) { var o = i.parsed.name; if ("color" === o) { var a = (function () { var e, t = i.parsed.args.shift(), n = g(t).call(t, "--") ? t.substring(2) : "--".concat(t), o = [t, n], a = i.parsed.rawArgs.indexOf("/") > 0 ? i.parsed.args.pop() : 1, s = S(T.Z.all); try { for (s.s(); !(e = s.n()).done; ) { var u, c = e.value, f = c.getFormat("color"); if (f) if ( m(o).call(o, f.id) || (null !== (u = f.ids) && void 0 !== u && y(u).call(u, function (e) { return m(o).call(o, e); }).length) ) { var d, h, _, w, k, E = l((d = v(c.coords))).call(d, function (e, t) { return i.parsed.args[t] || 0; }), C = void 0; if ( (f.coordGrammar && (C = O(c, f, "color", E)), r && b(r, { formatId: "color", types: C }), g((h = f.id)).call(h, "--") && !g(t).call(t, "--")) ) x.Z.warn( "".concat( c.name, " is a non-standard space and not currently supported in the CSS spec. " ) + p( (w = "Use prefixed color(".concat( f.id, ") instead of color(" )) ).call(w, t, ").") ); if (g(t).call(t, "--") && !g((_ = f.id)).call(_, "--")) x.Z.warn( "".concat( c.name, " is a standard space and supported in the CSS spec. " ) + p( (k = "Use color(".concat( f.id, ") instead of prefixed color(" )) ).call(k, t, ").") ); return { v: { spaceId: c.id, coords: E, alpha: a } }; } } } catch (e) { s.e(e); } finally { s.f(); } var L = "", A = t in T.Z.registry ? t : n; if (A in T.Z.registry) { var I, M, P = null === (I = T.Z.registry[A].formats) || void 0 === I || null === (M = I.color) || void 0 === M ? void 0 : M.id; P && (L = "Did you mean color(".concat(P, ")?")); } throw new TypeError( "Cannot parse color(".concat(t, "). ") + (L || "Missing a plugin?") ); })(); if ("object" === (0, s.Z)(a)) return a.v; } else { var u, c = S(T.Z.all); try { for (c.s(); !(u = c.n()).done; ) { var f = u.value, d = f.getFormat(o); if (d && "function" === d.type) { var k = 1; (d.lastAlpha || _.Z$(i.parsed.args).alpha) && (k = i.parsed.args.pop()); var E = i.parsed.args, C = void 0; return ( d.coordGrammar && (C = O(f, d, o, E)), r && b(r, { formatId: d.name, types: C }), { spaceId: f.id, coords: E, alpha: k } ); } } } catch (e) { c.e(e); } finally { c.f(); } } } else { var L, A = S(T.Z.all); try { for (A.s(); !(L = A.n()).done; ) { var I = L.value; for (var M in I.formats) { var P = I.formats[M]; if ("custom" === P.type && (!P.test || P.test(i.str))) { var R, D = P.parse(i.str); if (D) return ( (null !== (R = D.alpha) && void 0 !== R) || (D.alpha = 1), r && (r.formatId = M), D ); } } } } catch (e) { A.e(e); } finally { A.f(); } } throw new TypeError( "Could not parse ".concat(e, " as a color. Missing a plugin?") ); } }, 4020: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return D; }, }); var r = n(52020), i = n(73324), o = n(88546), a = n(66775), s = n(35704), u = n(10349), c = n(52472), l = n(19389), f = n(79349), d = n(19623), p = n(59056), h = n(68420), g = n(27344), m = n(44845), y = n(86526), v = n(31082), b = n(35293), _ = n(88946), w = n(8571), T = n(23513), x = n(91829), S = n(39290), k = n(62079), E = n(75064), O = n(66773), C = n(68238), L = n(8293); function A(e, t) { var n = (void 0 !== c && l(e)) || e["@@iterator"]; if (!n) { if ( Array.isArray(e) || (n = (function (e, t) { var n; if (!e) return; if ("string" == typeof e) return I(e, t); var r = s((n = Object.prototype.toString.call(e))).call(n, 8, -1); "Object" === r && e.constructor && (r = e.constructor.name); if ("Map" === r || "Set" === r) return u(e); if ( "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ) return I(e, t); })(e)) || (t && e && "number" == typeof e.length) ) { n && (e = n); var r = 0, i = function () {}; return { s: i, n: function () { return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] }; }, e: function (e) { throw e; }, f: i, }; } throw new TypeError( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); } var o, a = !0, f = !1; return { s: function () { n = n.call(e); }, n: function () { var e = n.next(); return (a = e.done), e; }, e: function (e) { (f = !0), (o = e); }, f: function () { try { a || null == n.return || n.return(); } finally { if (f) throw o; } }, }; } function I(e, t) { (null == t || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function M(e, t) { var n = k(e); if (r) { var a = r(e); t && (a = i(a).call(a, function (t) { return o(e, t).enumerable; })), n.push.apply(n, a); } return n; } function P(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? M(Object(n), !0).forEach(function (t) { (0, m.Z)(e, t, n[t]); }) : a ? Object.defineProperties(e, a(n)) : M(Object(n)).forEach(function (t) { Object.defineProperty(e, t, o(n, t)); }); } return e; } var R = 75e-6, D = (function () { function e(t) { var n, r, i, o, a, s; (0, h.Z)(this, e), (this.id = t.id), (this.name = t.name), (this.base = t.base ? e.get(t.base) : null), (this.aliases = t.aliases), this.base && ((this.fromBase = t.fromBase), (this.toBase = t.toBase)); var u = null !== (n = t.coords) && void 0 !== n ? n : this.base.coords; for (var c in u) "name" in u[c] || (u[c].name = c); this.coords = u; var l, f = null !== (r = null !== (i = t.white) && void 0 !== i ? i : this.base.white) && void 0 !== r ? r : "D65"; for (var d in ((this.white = (0, O.db)(f)), (this.formats = null !== (o = t.formats) && void 0 !== o ? o : {}), this.formats)) { var p = this.formats[d]; p.type || (p.type = "function"), p.name || (p.name = d); } (null !== (a = this.formats.color) && void 0 !== a && a.id) || (this.formats.color = P( P( {}, null !== (l = this.formats.color) && void 0 !== l ? l : {} ), {}, { id: t.cssId || this.id } )); t.gamutSpace ? (this.gamutSpace = "self" === t.gamutSpace ? this : e.get(t.gamutSpace)) : this.isPolar ? (this.gamutSpace = this.base) : (this.gamutSpace = this), this.gamutSpace.isUnbounded && (this.inGamut = function (e, t) { return !0; }), (this.referred = t.referred), Object.defineProperty(this, "path", { value: y((s = j(this))).call(s), writable: !1, enumerable: !0, configurable: !0, }), C.Z.run("colorspace-init-end", this); } return ( (0, g.Z)( e, [ { key: "inGamut", value: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.epsilon, r = void 0 === n ? R : n; if (!this.equals(this.gamutSpace)) return ( (e = this.to(this.gamutSpace, e)), this.gamutSpace.inGamut(e, { epsilon: r }) ); var i = v(this.coords); return e.every(function (e, t) { var n = i[t]; if ("angle" !== n.type && n.range) { if (b(e)) return !0; var o = (0, p.Z)(n.range, 2), a = o[0], s = o[1]; return ( (void 0 === a || e >= a - r) && (void 0 === s || e <= s + r) ); } return !0; }); }, }, { key: "isUnbounded", get: function () { return v(this.coords).every(function (e) { return !("range" in e); }); }, }, { key: "cssId", get: function () { var e, t; return ( (null === (e = this.formats) || void 0 === e || null === (t = e.color) || void 0 === t ? void 0 : t.id) || this.id ); }, }, { key: "isPolar", get: function () { for (var e in this.coords) if ("angle" === this.coords[e].type) return !0; return !1; }, }, { key: "getFormat", value: function (e) { return "object" === (0, d.Z)(e) ? (e = N(e, this)) : (t = "default" === e ? v(this.formats)[0] : this.formats[e]) ? (t = N(t, this)) : null; var t; }, }, { key: "equals", value: function (e) { return ( !!e && (this === e || this.id === e || this.id === e.id) ); }, }, { key: "to", value: function (t, n) { if (1 === arguments.length) { var r = (0, L.Z)(t), i = [r.space, r.coords]; (t = i[0]), (n = i[1]); } if (((t = e.get(t)), this.equals(t))) return n; n = _(n).call(n, function (e) { return b(e) ? 0 : e; }); for ( var o, a, s, u = this.path, c = t.path, l = 0; l < u.length && u[l].equals(c[l]); l++ ) (o = u[l]), (a = l); if (!o) throw new Error( w( (s = "Cannot convert between color spaces ".concat( this, " and " )) ).call(s, t, ": no connection space was found") ); for (var f = u.length - 1; f > a; f--) n = u[f].toBase(n); for (var d = a + 1; d < c.length; d++) n = c[d].fromBase(n); return n; }, }, { key: "from", value: function (t, n) { if (1 === arguments.length) { var r = (0, L.Z)(t), i = [r.space, r.coords]; (t = i[0]), (n = i[1]); } return (t = e.get(t)).to(this, n); }, }, { key: "toString", value: function () { var e; return w((e = "".concat(this.name, " ("))).call( e, this.id, ")" ); }, }, { key: "getMinCoords", value: function () { var e = []; for (var t in this.coords) { var n, r = this.coords[t], i = r.range || r.refRange; e.push( null !== (n = null == i ? void 0 : i.min) && void 0 !== n ? n : 0 ); } return e; }, }, ], [ { key: "all", get: function () { return (0, f.Z)(new T(v(e.registry))); }, }, { key: "register", value: function (e, t) { if ( (1 === arguments.length && (e = (t = arguments[0]).id), (t = this.get(t)), this.registry[e] && this.registry[e] !== t) ) throw new Error( "Duplicate color space registration: '".concat(e, "'") ); if ( ((this.registry[e] = t), 1 === arguments.length && t.aliases) ) { var n, r = A(t.aliases); try { for (r.s(); !(n = r.n()).done; ) { var i = n.value; this.register(i, t); } } catch (e) { r.e(e); } finally { r.f(); } } return t; }, }, { key: "get", value: function (t) { if (!t || t instanceof e) return t; var n = (0, E.dt)(t); if ("string" === n) { var r = e.registry[t.toLowerCase()]; if (!r) throw new TypeError( 'No color space found with id = "'.concat(t, '"') ); return r; } for ( var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++ ) o[a - 1] = arguments[a]; if (o.length) return e.get.apply(e, o); throw new TypeError( "".concat(t, " is not a valid color space") ); }, }, { key: "resolveCoord", value: function (t, n) { var r, i, o, a, s = (0, E.dt)(t); if ("string" === s) if (x(t).call(t, ".")) { var u = t.split("."), c = (0, p.Z)(u, 2); (o = c[0]), (a = c[1]); } else (o = void 0), (a = t); else if (Array.isArray(t)) { var l = (0, p.Z)(t, 2); (o = l[0]), (a = l[1]); } else (o = t.space), (a = t.coordId); if (((o = e.get(o)) || (o = n), !o)) throw new TypeError( "Cannot resolve coordinate reference ".concat( t, ": No color space specified and relative references are not allowed here" ) ); if ( "number" === (s = (0, E.dt)(a)) || ("string" === s && a >= 0) ) { var f = S(o.coords)[a]; if (f) return P({ space: o, id: f[0], index: a }, f[1]); } o = e.get(o); var d = a.toLowerCase(), h = 0; for (var g in o.coords) { var m, y = o.coords[g]; if ( g.toLowerCase() === d || (null === (m = y.name) || void 0 === m ? void 0 : m.toLowerCase()) === d ) return P({ space: o, id: g, index: h }, y); h++; } throw new TypeError( w( (r = w( (i = 'No "'.concat(a, '" coordinate found in ')) ).call(i, o.name, ". Its coordinates are: ")) ).call(r, k(o.coords).join(", ")) ); }, }, ] ), e ); })(); function j(e) { for (var t = [e], n = e; (n = n.base); ) t.push(n); return t; } function N(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.coords; if (e.coords && !e.coordGrammar) { var r; e.type || (e.type = "function"), e.name || (e.name = "color"), (e.coordGrammar = (0, E.T7)(e.coords)); var i = _((r = S(n))).call(r, function (t, n) { var r = (0, p.Z)(t, 2), i = (r[0], r[1]), o = e.coordGrammar[n][0], a = i.range || i.refRange, s = o.range, u = ""; return ( "" == o ? ((s = [0, 100]), (u = "%")) : "" == o && (u = "deg"), { fromRange: a, toRange: s, suffix: u } ); }); e.serializeCoords = function (e, t) { return _(e).call(e, function (e, n) { var r = i[n], o = r.fromRange, a = r.toRange, s = r.suffix; return ( o && a && (e = (0, E.KK)(o, a, e)), (e = (0, E.zL)(e, { precision: t, unit: s })) ); }); }; } return e; } (0, m.Z)(D, "registry", {}), (0, m.Z)(D, "DEFAULT_FORMAT", { type: "functions", name: "color" }); }, 79801: function (e, t, n) { "use strict"; var r = n(59056), i = n(79349), o = n(4020), a = n(39191); t.Z = new o.Z({ id: "hsl", name: "HSL", coords: { h: { refRange: [0, 360], type: "angle", name: "Hue" }, s: { range: [0, 100], name: "Saturation" }, l: { range: [0, 100], name: "Lightness" }, }, base: a.Z, fromBase: function (e) { var t = Math.max.apply(Math, (0, i.Z)(e)), n = Math.min.apply(Math, (0, i.Z)(e)), o = (0, r.Z)(e, 3), a = o[0], s = o[1], u = o[2], c = NaN, l = 0, f = (n + t) / 2, d = t - n; if (0 !== d) { switch ( ((l = 0 === f || 1 === f ? 0 : (t - f) / Math.min(f, 1 - f)), t) ) { case a: c = (s - u) / d + (s < u ? 6 : 0); break; case s: c = (u - a) / d + 2; break; case u: c = (a - s) / d + 4; } c *= 60; } return ( l < 0 && ((c += 180), (l = Math.abs(l))), c >= 360 && (c -= 360), [c, 100 * l, 100 * f] ); }, toBase: function (e) { var t = (0, r.Z)(e, 3), n = t[0], i = t[1], o = t[2]; function a(e) { var t = (e + n / 30) % 12, r = i * Math.min(o, 1 - o); return o - r * Math.max(-1, Math.min(t - 3, 9 - t, 1)); } return ( (n %= 360) < 0 && (n += 360), (i /= 100), (o /= 100), [a(0), a(8), a(4)] ); }, formats: { hsl: { coords: [" | ", "", ""], }, hsla: { coords: [" | ", "", ""], commas: !0, lastAlpha: !0, }, }, }); }, 54123: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return d; }, }); var r = n(88946), i = n(59898), o = n(4020), a = n(66773), s = n(65049), u = new o.Z({ id: "xyz-d50", name: "XYZ D50", white: "D50", base: s.Z, fromBase: function (e) { return (0, a.ZP)(s.Z.white, "D50", e); }, toBase: function (e) { return (0, a.ZP)("D50", s.Z.white, e); }, }), c = 24 / 116, l = 24389 / 27, f = a.mh.D50, d = new o.Z({ id: "lab", name: "Lab", coords: { l: { refRange: [0, 100], name: "Lightness" }, a: { refRange: [-125, 125] }, b: { refRange: [-125, 125] }, }, white: f, base: u, fromBase: function (e) { var t = r(e).call(e, function (e, t) { return e / f[t]; }), n = r(t).call(t, function (e) { return e > 0.008856451679035631 ? i(e) : (l * e + 16) / 116; }); return [116 * n[1] - 16, 500 * (n[0] - n[1]), 200 * (n[1] - n[2])]; }, toBase: function (e) { var t = []; (t[1] = (e[0] + 16) / 116), (t[0] = e[1] / 500 + t[1]), (t[2] = t[1] - e[2] / 200); var n = [ t[0] > c ? Math.pow(t[0], 3) : (116 * t[0] - 16) / l, e[0] > 8 ? Math.pow((e[0] + 16) / 116, 3) : e[0] / l, t[2] > c ? Math.pow(t[2], 3) : (116 * t[2] - 16) / l, ]; return r(n).call(n, function (e, t) { return e * f[t]; }); }, formats: { lab: { coords: [ " | ", " | [-1,1]", " | [-1,1]", ], }, }, }); }, 39191: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return S; }, }); var r = n(18033), i = n(88946), o = n(35704), a = n(7488), s = n(24835), u = n(68420), c = n(90306), l = n(3020), f = n(3362), d = n(4020), p = n(38754), h = n(66773), g = n(65049); function m(e) { var t = (function () { if ("undefined" == typeof Reflect || !s) return !1; if (s.sham) return !1; if ("function" == typeof Proxy) return !0; try { return ( Boolean.prototype.valueOf.call(s(Boolean, [], function () {})), !0 ); } catch (e) { return !1; } })(); return function () { var n, r = (0, f.Z)(e); if (t) { var i = (0, f.Z)(this).constructor; n = s(r, arguments, i); } else n = r.apply(this, arguments); return (0, l.Z)(this, n); }; } var y, v, b = (function (e) { (0, c.Z)(n, e); var t = m(n); function n(e) { var r, i, o, a; ((0, u.Z)(this, n), e.coords || (e.coords = { r: { range: [0, 1], name: "Red" }, g: { range: [0, 1], name: "Green" }, b: { range: [0, 1], name: "Blue" }, }), e.base || (e.base = g.Z), e.toXYZ_M && e.fromXYZ_M) && ((null !== (o = e.toBase) && void 0 !== o) || (e.toBase = function (t) { var n = (0, p.Z)(e.toXYZ_M, t); return ( i.white !== i.base.white && (n = (0, h.ZP)(i.white, i.base.white, n)), n ); }), (null !== (a = e.fromBase) && void 0 !== a) || (e.fromBase = function (t) { return ( (t = (0, h.ZP)(i.base.white, i.white, t)), (0, p.Z)(e.fromXYZ_M, t) ); })); return ( (null !== (r = e.referred) && void 0 !== r) || (e.referred = "display"), (i = t.call(this, e)) ); } return n; })(d.Z), _ = new b({ id: "srgb-linear", name: "Linear sRGB", white: "D65", toXYZ_M: [ [0.41239079926595934, 0.357584339383878, 0.1804807884018343], [0.21263900587151027, 0.715168678767756, 0.07219231536073371], [0.01933081871559182, 0.11919477979462598, 0.9505321522496607], ], fromXYZ_M: [ [3.2409699419045226, -1.537383177570094, -0.4986107602930034], [-0.9692436362808796, 1.8759675015077202, 0.04155505740717559], [0.05563007969699366, -0.20397695888897652, 1.0569715142428786], ], }), w = { aliceblue: [240 / 255, 248 / 255, 1], antiquewhite: [250 / 255, 235 / 255, 215 / 255], aqua: [0, 1, 1], aquamarine: [127 / 255, 1, 212 / 255], azure: [240 / 255, 1, 1], beige: [245 / 255, 245 / 255, 220 / 255], bisque: [1, 228 / 255, 196 / 255], black: [0, 0, 0], blanchedalmond: [1, 235 / 255, 205 / 255], blue: [0, 0, 1], blueviolet: [138 / 255, 43 / 255, 226 / 255], brown: [165 / 255, 42 / 255, 42 / 255], burlywood: [222 / 255, 184 / 255, 135 / 255], cadetblue: [95 / 255, 158 / 255, 160 / 255], chartreuse: [127 / 255, 1, 0], chocolate: [210 / 255, 105 / 255, 30 / 255], coral: [1, 127 / 255, 80 / 255], cornflowerblue: [100 / 255, 149 / 255, 237 / 255], cornsilk: [1, 248 / 255, 220 / 255], crimson: [220 / 255, 20 / 255, 60 / 255], cyan: [0, 1, 1], darkblue: [0, 0, 139 / 255], darkcyan: [0, 139 / 255, 139 / 255], darkgoldenrod: [184 / 255, 134 / 255, 11 / 255], darkgray: [169 / 255, 169 / 255, 169 / 255], darkgreen: [0, 100 / 255, 0], darkgrey: [169 / 255, 169 / 255, 169 / 255], darkkhaki: [189 / 255, 183 / 255, 107 / 255], darkmagenta: [139 / 255, 0, 139 / 255], darkolivegreen: [85 / 255, 107 / 255, 47 / 255], darkorange: [1, 140 / 255, 0], darkorchid: [0.6, 50 / 255, 0.8], darkred: [139 / 255, 0, 0], darksalmon: [233 / 255, 150 / 255, 122 / 255], darkseagreen: [143 / 255, 188 / 255, 143 / 255], darkslateblue: [72 / 255, 61 / 255, 139 / 255], darkslategray: [47 / 255, 79 / 255, 79 / 255], darkslategrey: [47 / 255, 79 / 255, 79 / 255], darkturquoise: [0, 206 / 255, 209 / 255], darkviolet: [148 / 255, 0, 211 / 255], deeppink: [1, 20 / 255, 147 / 255], deepskyblue: [0, 191 / 255, 1], dimgray: [105 / 255, 105 / 255, 105 / 255], dimgrey: [105 / 255, 105 / 255, 105 / 255], dodgerblue: [30 / 255, 144 / 255, 1], firebrick: [178 / 255, 34 / 255, 34 / 255], floralwhite: [1, 250 / 255, 240 / 255], forestgreen: [34 / 255, 139 / 255, 34 / 255], fuchsia: [1, 0, 1], gainsboro: [220 / 255, 220 / 255, 220 / 255], ghostwhite: [248 / 255, 248 / 255, 1], gold: [1, 215 / 255, 0], goldenrod: [218 / 255, 165 / 255, 32 / 255], gray: [128 / 255, 128 / 255, 128 / 255], green: [0, 128 / 255, 0], greenyellow: [173 / 255, 1, 47 / 255], grey: [128 / 255, 128 / 255, 128 / 255], honeydew: [240 / 255, 1, 240 / 255], hotpink: [1, 105 / 255, 180 / 255], indianred: [205 / 255, 92 / 255, 92 / 255], indigo: [75 / 255, 0, 130 / 255], ivory: [1, 1, 240 / 255], khaki: [240 / 255, 230 / 255, 140 / 255], lavender: [230 / 255, 230 / 255, 250 / 255], lavenderblush: [1, 240 / 255, 245 / 255], lawngreen: [124 / 255, 252 / 255, 0], lemonchiffon: [1, 250 / 255, 205 / 255], lightblue: [173 / 255, 216 / 255, 230 / 255], lightcoral: [240 / 255, 128 / 255, 128 / 255], lightcyan: [224 / 255, 1, 1], lightgoldenrodyellow: [250 / 255, 250 / 255, 210 / 255], lightgray: [211 / 255, 211 / 255, 211 / 255], lightgreen: [144 / 255, 238 / 255, 144 / 255], lightgrey: [211 / 255, 211 / 255, 211 / 255], lightpink: [1, 182 / 255, 193 / 255], lightsalmon: [1, 160 / 255, 122 / 255], lightseagreen: [32 / 255, 178 / 255, 170 / 255], lightskyblue: [135 / 255, 206 / 255, 250 / 255], lightslategray: [119 / 255, 136 / 255, 0.6], lightslategrey: [119 / 255, 136 / 255, 0.6], lightsteelblue: [176 / 255, 196 / 255, 222 / 255], lightyellow: [1, 1, 224 / 255], lime: [0, 1, 0], limegreen: [50 / 255, 205 / 255, 50 / 255], linen: [250 / 255, 240 / 255, 230 / 255], magenta: [1, 0, 1], maroon: [128 / 255, 0, 0], mediumaquamarine: [0.4, 205 / 255, 170 / 255], mediumblue: [0, 0, 205 / 255], mediumorchid: [186 / 255, 85 / 255, 211 / 255], mediumpurple: [147 / 255, 112 / 255, 219 / 255], mediumseagreen: [60 / 255, 179 / 255, 113 / 255], mediumslateblue: [123 / 255, 104 / 255, 238 / 255], mediumspringgreen: [0, 250 / 255, 154 / 255], mediumturquoise: [72 / 255, 209 / 255, 0.8], mediumvioletred: [199 / 255, 21 / 255, 133 / 255], midnightblue: [25 / 255, 25 / 255, 112 / 255], mintcream: [245 / 255, 1, 250 / 255], mistyrose: [1, 228 / 255, 225 / 255], moccasin: [1, 228 / 255, 181 / 255], navajowhite: [1, 222 / 255, 173 / 255], navy: [0, 0, 128 / 255], oldlace: [253 / 255, 245 / 255, 230 / 255], olive: [128 / 255, 128 / 255, 0], olivedrab: [107 / 255, 142 / 255, 35 / 255], orange: [1, 165 / 255, 0], orangered: [1, 69 / 255, 0], orchid: [218 / 255, 112 / 255, 214 / 255], palegoldenrod: [238 / 255, 232 / 255, 170 / 255], palegreen: [152 / 255, 251 / 255, 152 / 255], paleturquoise: [175 / 255, 238 / 255, 238 / 255], palevioletred: [219 / 255, 112 / 255, 147 / 255], papayawhip: [1, 239 / 255, 213 / 255], peachpuff: [1, 218 / 255, 185 / 255], peru: [205 / 255, 133 / 255, 63 / 255], pink: [1, 192 / 255, 203 / 255], plum: [221 / 255, 160 / 255, 221 / 255], powderblue: [176 / 255, 224 / 255, 230 / 255], purple: [128 / 255, 0, 128 / 255], rebeccapurple: [0.4, 0.2, 0.6], red: [1, 0, 0], rosybrown: [188 / 255, 143 / 255, 143 / 255], royalblue: [65 / 255, 105 / 255, 225 / 255], saddlebrown: [139 / 255, 69 / 255, 19 / 255], salmon: [250 / 255, 128 / 255, 114 / 255], sandybrown: [244 / 255, 164 / 255, 96 / 255], seagreen: [46 / 255, 139 / 255, 87 / 255], seashell: [1, 245 / 255, 238 / 255], sienna: [160 / 255, 82 / 255, 45 / 255], silver: [192 / 255, 192 / 255, 192 / 255], skyblue: [135 / 255, 206 / 255, 235 / 255], slateblue: [106 / 255, 90 / 255, 205 / 255], slategray: [112 / 255, 128 / 255, 144 / 255], slategrey: [112 / 255, 128 / 255, 144 / 255], snow: [1, 250 / 255, 250 / 255], springgreen: [0, 1, 127 / 255], steelblue: [70 / 255, 130 / 255, 180 / 255], tan: [210 / 255, 180 / 255, 140 / 255], teal: [0, 128 / 255, 128 / 255], thistle: [216 / 255, 191 / 255, 216 / 255], tomato: [1, 99 / 255, 71 / 255], turquoise: [64 / 255, 224 / 255, 208 / 255], violet: [238 / 255, 130 / 255, 238 / 255], wheat: [245 / 255, 222 / 255, 179 / 255], white: [1, 1, 1], whitesmoke: [245 / 255, 245 / 255, 245 / 255], yellow: [1, 1, 0], yellowgreen: [154 / 255, 205 / 255, 50 / 255], }, T = r((y = Array(3))).call(y, " | [0, 255]"), x = r((v = Array(3))).call(v, "[0, 255]"), S = new b({ id: "srgb", name: "sRGB", base: _, fromBase: function (e) { return i(e).call(e, function (e) { var t = e < 0 ? -1 : 1, n = e * t; return n > 0.0031308 ? t * (1.055 * Math.pow(n, 1 / 2.4) - 0.055) : 12.92 * e; }); }, toBase: function (e) { return i(e).call(e, function (e) { var t = e < 0 ? -1 : 1, n = e * t; return n <= 0.04045 ? e / 12.92 : t * Math.pow((n + 0.055) / 1.055, 2.4); }); }, formats: { rgb: { coords: T }, rgb_number: { name: "rgb", commas: !0, coords: x, noAlpha: !0 }, color: {}, rgba: { coords: T, commas: !0, lastAlpha: !0 }, rgba_number: { name: "rgba", commas: !0, coords: x }, hex: { type: "custom", toGamut: !0, test: function (e) { return /^#([a-f0-9]{3,4}){1,2}$/i.test(e); }, parse: function (e) { e.length <= 5 && (e = e.replace(/[a-f0-9]/gi, "$&$&")); var t = []; return ( e.replace(/[a-f0-9]{2}/gi, function (e) { t.push(parseInt(e, 16) / 255); }), { spaceId: "srgb", coords: o(t).call(t, 0, 3), alpha: o(t).call(t, 3)[0], } ); }, serialize: function (e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, r = n.collapse, o = void 0 === r || r; t < 1 && e.push(t), (e = i(e).call(e, function (e) { return Math.round(255 * e); })); var s = o && e.every(function (e) { return e % 17 == 0; }), u = i(e) .call(e, function (e) { var t; return s ? (e / 17).toString(16) : a((t = e.toString(16))).call(t, 2, "0"); }) .join(""); return "#" + u; }, }, keyword: { type: "custom", test: function (e) { return /^[a-z]+$/i.test(e); }, parse: function (e) { var t = { spaceId: "srgb", coords: null, alpha: 1 }; if ( ("transparent" === (e = e.toLowerCase()) ? ((t.coords = w.black), (t.alpha = 0)) : (t.coords = w[e]), t.coords) ) return t; }, }, }, }); }, 65049: function (e, t, n) { "use strict"; var r = n(4020); t.Z = new r.Z({ id: "xyz-d65", name: "XYZ D65", coords: { x: { name: "X" }, y: { name: "Y" }, z: { name: "Z" } }, white: "D65", formats: { color: { ids: ["xyz-d65", "xyz"] } }, aliases: ["xyz"], }); }, 19487: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return $e; }, }); var r = n(8293), i = n(4020), o = n(59056), a = n(31634), s = n(62079), u = n(88946), c = n(31082), l = n(75064), f = n(90781), d = n(54123); function p(e) { return ((e % 360) + 360) % 360; } var h = new i.Z({ id: "lch", name: "LCH", coords: { l: { refRange: [0, 100], name: "Lightness" }, c: { refRange: [0, 150], name: "Chroma" }, h: { refRange: [0, 360], type: "angle", name: "Hue" }, }, base: d.Z, fromBase: function (e) { var t, n = (0, o.Z)(e, 3), r = n[0], i = n[1], a = n[2]; return ( (t = Math.abs(i) < 0.02 && Math.abs(a) < 0.02 ? NaN : (180 * Math.atan2(a, i)) / Math.PI), [r, Math.sqrt(Math.pow(i, 2) + Math.pow(a, 2)), p(t)] ); }, toBase: function (e) { var t = (0, o.Z)(e, 3), n = t[0], r = t[1], i = t[2]; return ( r < 0 && (r = 0), isNaN(i) && (i = 0), [ n, r * Math.cos((i * Math.PI) / 180), r * Math.sin((i * Math.PI) / 180), ] ); }, formats: { lch: { coords: [ " | ", " | ", " | ", ], }, }, }), g = Math.pow(25, 7), m = Math.PI, y = 180 / m, v = m / 180; function b(e) { var t = e * e; return t * t * t * e; } function _(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, i = n.kL, a = void 0 === i ? 1 : i, s = n.kC, u = void 0 === s ? 1 : s, c = n.kH, l = void 0 === c ? 1 : c, p = (0, r.Z)([e, t]), _ = (0, o.Z)(p, 2); (e = _[0]), (t = _[1]); var w = d.Z.from(e), T = (0, o.Z)(w, 3), x = T[0], S = T[1], k = T[2], E = h.from(d.Z, [x, S, k])[1], O = d.Z.from(t), C = (0, o.Z)(O, 3), L = C[0], A = C[1], I = C[2], M = h.from(d.Z, [L, A, I])[1]; E < 0 && (E = 0), M < 0 && (M = 0); var P = (E + M) / 2, R = b(P), D = 0.5 * (1 - Math.sqrt(R / (R + g))), j = (1 + D) * S, N = (1 + D) * A, B = Math.sqrt(Math.pow(j, 2) + Math.pow(k, 2)), U = Math.sqrt(Math.pow(N, 2) + Math.pow(I, 2)), F = 0 === j && 0 === k ? 0 : Math.atan2(k, j), z = 0 === N && 0 === I ? 0 : Math.atan2(I, N); F < 0 && (F += 2 * m), z < 0 && (z += 2 * m); var H, q = L - x, Z = U - B, V = (z *= y) - (F *= y), W = F + z, $ = Math.abs(V); B * U == 0 ? (H = 0) : $ <= 180 ? (H = V) : V > 180 ? (H = V - 360) : V < -180 ? (H = V + 360) : f.Z.warn("the unthinkable has happened"); var G, Y = 2 * Math.sqrt(U * B) * Math.sin((H * v) / 2), K = (x + L) / 2, X = (B + U) / 2, Q = b(X); G = B * U == 0 ? W : $ <= 180 ? W / 2 : W < 360 ? (W + 360) / 2 : (W - 360) / 2; var J = Math.pow(K - 50, 2), ee = 1 + (0.015 * J) / Math.sqrt(20 + J), te = 1 + 0.045 * X, ne = 1; (ne -= 0.17 * Math.cos((G - 30) * v)), (ne += 0.24 * Math.cos(2 * G * v)), (ne += 0.32 * Math.cos((3 * G + 6) * v)); var re = 1 + 0.015 * X * (ne -= 0.2 * Math.cos((4 * G - 63) * v)), ie = 30 * Math.exp(-1 * Math.pow((G - 275) / 25, 2)), oe = 2 * Math.sqrt(Q / (Q + g)), ae = -1 * Math.sin(2 * ie * v) * oe, se = Math.pow(q / (a * ee), 2); return ( (se += Math.pow(Z / (u * te), 2)), (se += Math.pow(Y / (l * re), 2)), (se += ae * (Z / (u * te)) * (Y / (l * re))), Math.sqrt(se) ); } var w = n(59898), T = n(38754), x = n(65049), S = [ [0.819022437996703, 0.3619062600528904, -0.1288737815209879], [0.0329836539323885, 0.9292868615863434, 0.0361446663506424], [0.0481771893596242, 0.2642395317527308, 0.6335478284694309], ], k = [ [1.2268798758459243, -0.5578149944602171, 0.2813910456659647], [-0.0405757452148008, 1.112286803280317, -0.0717110580655164], [-0.0763729366746601, -0.4214933324022432, 1.5869240198367816], ], E = [ [0.210454268309314, 0.7936177747023054, -0.0040720430116193], [1.9779985324311684, -2.42859224204858, 0.450593709617411], [0.0259040424655478, 0.7827717124575296, -0.8086757549230774], ], O = [ [1, 0.3963377773761749, 0.2158037573099136], [1, -0.1055613458156586, -0.0638541728258133], [1, -0.0894841775298119, -1.2914855480194092], ], C = new i.Z({ id: "oklab", name: "Oklab", coords: { l: { refRange: [0, 1], name: "Lightness" }, a: { refRange: [-0.4, 0.4] }, b: { refRange: [-0.4, 0.4] }, }, white: "D65", base: x.Z, fromBase: function (e) { var t = (0, T.Z)(S, e), n = u(t).call(t, function (e) { return w(e); }); return (0, T.Z)(E, n); }, toBase: function (e) { var t = (0, T.Z)(O, e), n = u(t).call(t, function (e) { return Math.pow(e, 3); }); return (0, T.Z)(k, n); }, formats: { oklab: { coords: [ " | ", " | [-1,1]", " | [-1,1]", ], }, }, }); function L(e, t) { var n = (0, r.Z)([e, t]), i = (0, o.Z)(n, 2); (e = i[0]), (t = i[1]); var a = C.from(e), s = (0, o.Z)(a, 3), u = s[0], c = s[1], l = s[2], f = C.from(t), d = (0, o.Z)(f, 3), p = u - d[0], h = c - d[1], g = l - d[2]; return Math.sqrt(Math.pow(p, 2) + Math.pow(h, 2) + Math.pow(g, 2)); } var A = 75e-6; function I(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, o = n.epsilon, a = void 0 === o ? A : o; (e = (0, r.Z)(e)), t || (t = e.space), (t = i.Z.get(t)); var s = e.coords; return t !== e.space && (s = t.from(e)), t.inGamut(s, { epsilon: a }); } var M = n(64030), P = n(89289); function R(e, t, n) { return ( (e = (0, r.Z)(e)), (t = i.Z.get(t)), (e.coords = t.to(e.space, n)), e ); } function D(e, t, n) { if ( ((e = (0, r.Z)(e)), 2 === arguments.length && "object" === (0, l.dt)(arguments[1])) ) { var o = arguments[1]; for (var a in o) D(e, a, o[a]); } else { "function" == typeof n && (n = n((0, M.Z)(e, t))); var s = i.Z.resolveCoord(t, e.space), u = s.space, c = s.index, f = (0, P.Z)(e, u); (f[c] = n), R(e, u, f); } return e; } (R.returns = "color"), (D.returns = "color"); var j = n(35704); function N(e) { var t; return { space: e.space, coords: j((t = e.coords)).call(t), alpha: e.alpha, }; } var B = n(35293), U = Math.PI / 180; var F = new i.Z({ id: "xyz-abs-d65", cssId: "--xyz-abs-d65", name: "Absolute XYZ D65", coords: { x: { refRange: [0, 9504.7], name: "Xa" }, y: { refRange: [0, 1e4], name: "Ya" }, z: { refRange: [0, 10888.3], name: "Za" }, }, base: x.Z, fromBase: function (e) { return u(e).call(e, function (e) { return Math.max(203 * e, 0); }); }, toBase: function (e) { return u(e).call(e, function (e) { return Math.max(e / 203, 0); }); }, }), z = 1.15, H = 0.66, q = 2610 / Math.pow(2, 14), Z = Math.pow(2, 14) / 2610, V = 3424 / Math.pow(2, 12), W = 2413 / Math.pow(2, 7), $ = 2392 / Math.pow(2, 7), G = (1.7 * 2523) / Math.pow(2, 5), Y = Math.pow(2, 5) / (1.7 * 2523), K = -0.56, X = 16295499532821565e-27, Q = [ [0.41478972, 0.579999, 0.014648], [-0.20151, 1.120649, 0.0531008], [-0.0166008, 0.2648, 0.6684799], ], J = [ [1.9242264357876067, -1.0047923125953657, 0.037651404030618], [0.35031676209499907, 0.7264811939316552, -0.06538442294808501], [-0.09098281098284752, -0.3127282905230739, 1.5227665613052603], ], ee = [ [0.5, 0.5, 0], [3.524, -4.066708, 0.542708], [0.199076, 1.096799, -1.295875], ], te = [ [1, 0.1386050432715393, 0.05804731615611886], [0.9999999999999999, -0.1386050432715393, -0.05804731615611886], [0.9999999999999998, -0.09601924202631895, -0.8118918960560388], ], ne = new i.Z({ id: "jzazbz", name: "Jzazbz", coords: { jz: { refRange: [0, 1], name: "Jz" }, az: { refRange: [-0.5, 0.5] }, bz: { refRange: [-0.5, 0.5] }, }, base: F, fromBase: function (e) { var t = (0, o.Z)(e, 3), n = t[0], r = t[1], i = t[2], a = z * n - (z - 1) * i, s = H * r - (H - 1) * n, c = (0, T.Z)(Q, [a, s, i]), l = u(c).call(c, function (e) { var t = V + W * Math.pow(e / 1e4, q), n = 1 + $ * Math.pow(e / 1e4, q); return Math.pow(t / n, G); }), f = (0, T.Z)(ee, l), d = (0, o.Z)(f, 3), p = d[0], h = d[1], g = d[2]; return [((1 + K) * p) / (1 + K * p) - X, h, g]; }, toBase: function (e) { var t = (0, o.Z)(e, 3), n = t[0], r = t[1], i = t[2], a = (n + X) / (1 + K - K * (n + X)), s = (0, T.Z)(te, [a, r, i]), c = u(s).call(s, function (e) { var t = V - Math.pow(e, Y), n = $ * Math.pow(e, Y) - W; return 1e4 * Math.pow(t / n, Z); }), l = (0, T.Z)(J, c), f = (0, o.Z)(l, 3), d = f[0], p = f[1], h = f[2], g = (d + (z - 1) * h) / z; return [g, (p + (H - 1) * g) / H, h]; }, formats: { color: { coords: [ " | ", " | [-1,1]", " | [-1,1]", ], }, }, }), re = new i.Z({ id: "jzczhz", name: "JzCzHz", coords: { jz: { refRange: [0, 1], name: "Jz" }, cz: { refRange: [0, 1], name: "Chroma" }, hz: { refRange: [0, 360], type: "angle", name: "Hue" }, }, base: ne, fromBase: function (e) { var t, n = (0, o.Z)(e, 3), r = n[0], i = n[1], a = n[2], s = 2e-4; return ( (t = Math.abs(i) < s && Math.abs(a) < s ? NaN : (180 * Math.atan2(a, i)) / Math.PI), [r, Math.sqrt(Math.pow(i, 2) + Math.pow(a, 2)), p(t)] ); }, toBase: function (e) { return [ e[0], e[1] * Math.cos((e[2] * Math.PI) / 180), e[1] * Math.sin((e[2] * Math.PI) / 180), ]; }, }); var ie = 0.8359375, oe = 2413 / 128, ae = 18.6875, se = 2610 / 16384, ue = 2523 / 32, ce = 16384 / 2610, le = 32 / 2523, fe = [ [0.3592832590121217, 0.6976051147779502, -0.035891593232029], [-0.1920808463704993, 1.100476797037432, 0.0753748658519118], [0.0070797844607479, 0.0748396662186362, 0.8433265453898765], ], de = [ [0.5, 0.5, 0], [6610 / 4096, -13613 / 4096, 7003 / 4096], [17933 / 4096, -17390 / 4096, -543 / 4096], ], pe = [ [0.9999999999999998, 0.0086090370379328, 0.111029625003026], [0.9999999999999998, -0.0086090370379328, -0.1110296250030259], [0.9999999999999998, 0.5600313357106791, -0.3206271749873188], ], he = [ [2.0701522183894223, -1.3263473389671563, 0.2066510476294053], [0.3647385209748072, 0.6805660249472273, -0.0453045459220347], [-0.0497472075358123, -0.0492609666966131, 1.1880659249923042], ], ge = new i.Z({ id: "ictcp", name: "ICTCP", coords: { i: { refRange: [0, 1], name: "I" }, ct: { refRange: [-0.5, 0.5], name: "CT" }, cp: { refRange: [-0.5, 0.5], name: "CP" }, }, base: F, fromBase: function (e) { return (function (e) { var t = u(e).call(e, function (e) { var t = ie + oe * Math.pow(e / 1e4, se), n = 1 + ae * Math.pow(e / 1e4, se); return Math.pow(t / n, ue); }); return (0, T.Z)(de, t); })((0, T.Z)(fe, e)); }, toBase: function (e) { var t = (function (e) { var t = (0, T.Z)(pe, e); return u(t).call(t, function (e) { var t = Math.max(Math.pow(e, le) - ie, 0), n = oe - ae * Math.pow(e, le); return 1e4 * Math.pow(t / n, ce); }); })(e); return (0, T.Z)(he, t); }, }); var me = n(66773), ye = me.mh.D65, ve = 1 / 0.42, be = 2 * Math.PI, _e = [ [0.401288, 0.650173, -0.051461], [-0.250268, 1.204414, 0.045854], [-0.002079, 0.048952, 0.953127], ], we = [ [1.8620678550872327, -1.0112546305316843, 0.14918677544445175], [0.38752654323613717, 0.6214474419314753, -0.008973985167612518], [-0.015841498849333856, -0.03412293802851557, 1.0499644368778496], ], Te = [ [460, 451, 288], [460, -891, -261], [460, -220, -6300], ], xe = { dark: [0.8, 0.525, 0.8], dim: [0.9, 0.59, 0.9], average: [1, 0.69, 1], }, Se = { h: [20.14, 90, 164.25, 237.53, 380.14], e: [0.8, 0.7, 1, 1.2, 0.8], H: [0, 100, 200, 300, 400], }, ke = 180 / Math.PI, Ee = Math.PI / 180; function Oe(e, t) { return u(e).call(e, function (e) { var n = (0, l.$7)(t * Math.abs(e) * 0.01, 0.42); return (400 * (0, l.g6)(n, e)) / (n + 27.13); }); } function Ce(e, t, n, r, i) { var o, a = {}; (a.discounting = i), (a.refWhite = e), (a.surround = r); var s = u(e).call(e, function (e) { return 100 * e; }); (a.la = t), (a.yb = n); var c = s[1], f = (0, T.Z)(_e, s), d = (r = xe[a.surround])[0]; (a.c = r[1]), (a.nc = r[2]); var p = 1 / (5 * a.la + 1), h = Math.pow(p, 4); (a.fl = h * a.la + 0.1 * (1 - h) * (1 - h) * w(5 * a.la)), (a.flRoot = Math.pow(a.fl, 0.25)), (a.n = a.yb / c), (a.z = 1.48 + Math.sqrt(a.n)), (a.nbb = 0.725 * Math.pow(a.n, -0.2)), (a.ncb = a.nbb); var g = i ? 1 : Math.max( Math.min(d * (1 - (1 / 3.6) * Math.exp((-a.la - 42) / 92)), 1), 0 ); (a.dRgb = u(f).call(f, function (e) { return (0, l.sX)(1, c / e, g); })), (a.dRgbInv = u((o = a.dRgb)).call(o, function (e) { return 1 / e; })); var m = Oe( u(f).call(f, function (e, t) { return e * a.dRgb[t]; }), a.fl ); return (a.aW = a.nbb * (2 * m[0] + m[1] + 0.05 * m[2])), a; } var Le = Ce(ye, (64 / Math.PI) * 0.2, 20, "average", !1); function Ae(e, t) { var n, r; if (!((void 0 !== e.J) ^ (void 0 !== e.Q))) throw new Error("Conversion requires one and only one: 'J' or 'Q'"); if (!((void 0 !== e.C) ^ (void 0 !== e.M) ^ (void 0 !== e.s))) throw new Error( "Conversion requires one and only one: 'C', 'M' or 's'" ); if (!((void 0 !== e.h) ^ (void 0 !== e.H))) throw new Error("Conversion requires one and only one: 'h' or 'H'"); if (0 === e.J || 0 === e.Q) return [0, 0, 0]; var i = 0; i = void 0 !== e.h ? p(e.h) * Ee : (function (e) { var t, n, r = ((e % 400) + 400) % 400, i = Math.floor(0.01 * r); r %= 100; var a = j((t = Se.h)).call(t, i, i + 2), s = (0, o.Z)(a, 2), u = s[0], c = s[1], l = j((n = Se.e)).call(n, i, i + 2), f = (0, o.Z)(l, 2), d = f[0], h = f[1]; return p( (r * (h * u - d * c) - 100 * u * h) / (r * (h - d) - 100 * h) ); })(e.H) * Ee; var a = Math.cos(i), s = Math.sin(i), c = 0; void 0 !== e.J ? (c = 0.1 * (0, l.$7)(e.J, 0.5)) : void 0 !== e.Q && (c = (0.25 * t.c * e.Q) / ((t.aW + 4) * t.flRoot)); var f = 0; void 0 !== e.C ? (f = e.C / c) : void 0 !== e.M ? (f = e.M / t.flRoot / c) : void 0 !== e.s && (f = (4e-4 * Math.pow(e.s, 2) * (t.aW + 4)) / t.c); var d, h, g, m = (0, l.$7)( f * Math.pow(1.64 - Math.pow(0.29, t.n), -0.73), 10 / 9 ), y = 0.25 * (Math.cos(i + 2) + 3.8), v = t.aW * (0, l.$7)(c, 2 / t.c / t.z), b = (5e4 / 13) * t.nc * t.ncb * y, _ = v / t.nbb, w = 23 * (_ + 0.305) * (0, l.rY)(m, 23 * b + m * (11 * a + 108 * s)), x = w * a, S = w * s, k = ((d = u((n = (0, T.Z)(Te, [_, x, S]))).call(n, function (e) { return (1 * e) / 1403; })), (h = t.fl), (g = (100 / h) * Math.pow(27.13, ve)), u(d).call(d, function (e) { var t = Math.abs(e); return (0, l.g6)(g * (0, l.$7)(t / (400 - t), ve), e); })); return u( (r = (0, T.Z)( we, u(k).call(k, function (e, n) { return e * t.dRgbInv[n]; }) )) ).call(r, function (e) { return e / 100; }); } function Ie(e, t) { var n, r = u(e).call(e, function (e) { return 100 * e; }), i = Oe( u((n = (0, T.Z)(_e, r))).call(n, function (e, n) { return e * t.dRgb[n]; }), t.fl ), a = i[0] + (-12 * i[1] + i[2]) / 11, s = (i[0] + i[1] - 2 * i[2]) / 9, c = ((Math.atan2(s, a) % be) + be) % be, f = 0.25 * (Math.cos(c + 2) + 3.8), d = (5e4 / 13) * t.nc * t.ncb * (0, l.rY)( f * Math.sqrt(Math.pow(a, 2) + Math.pow(s, 2)), i[0] + i[1] + 1.05 * i[2] + 0.305 ), h = (0, l.$7)(d, 0.9) * Math.pow(1.64 - Math.pow(0.29, t.n), 0.73), g = t.nbb * (2 * i[0] + i[1] + 0.05 * i[2]), m = (0, l.$7)(g / t.aW, 0.5 * t.c * t.z), y = 100 * (0, l.$7)(m, 2), v = (4 / t.c) * m * (t.aW + 4) * t.flRoot, b = h * m, _ = b * t.flRoot, w = p(c * ke), x = (function (e) { var t, n, r = p(e); r <= Se.h[0] && (r += 360); var i = (0, l.Nw)(Se.h, r) - 1, a = j((t = Se.h)).call(t, i, i + 2), s = (0, o.Z)(a, 2), u = s[0], c = s[1], f = j((n = Se.e)).call(n, i, i + 2), d = (0, o.Z)(f, 2), h = d[0], g = d[1], m = (r - u) / h; return Se.H[i] + (100 * m) / (m + (c - r) / g); })(w); return { J: y, C: b, h: w, s: 50 * (0, l.$7)((t.c * h) / (t.aW + 4), 0.5), Q: v, M: _, H: x, }; } new i.Z({ id: "cam16-jmh", cssId: "--cam16-jmh", name: "CAM16-JMh", coords: { j: { refRange: [0, 100], name: "J" }, m: { refRange: [0, 105], name: "Colorfulness" }, h: { refRange: [0, 360], type: "angle", name: "Hue" }, }, base: x.Z, fromBase: function (e) { var t = Ie(e, Le); return [t.J, t.M, t.h]; }, toBase: function (e) { return Ae({ J: e[0], M: e[1], h: e[2] }, Le); }, }); var Me = me.mh.D65, Pe = 24389 / 27; function Re(e) { return e > 8 ? Math.pow((e + 16) / 116, 3) : e / Pe; } function De(e, t) { var n, r = 116 * ((n = e[1]) > 0.008856451679035631 ? w(n) : (Pe * n + 16) / 116) - 16; if (0 === r) return [0, 0, 0]; var i = Ie(e, je); return [p(i.h), i.C, r]; } var je = Ce(Me, (200 / Math.PI) * Re(50), 100 * Re(50), "average", !1), Ne = new i.Z({ id: "hct", name: "HCT", coords: { h: { refRange: [0, 360], type: "angle", name: "Hue" }, c: { refRange: [0, 145], name: "Colorfulness" }, t: { refRange: [0, 100], name: "Tone" }, }, base: x.Z, fromBase: function (e) { return De(e); }, toBase: function (e) { return (function (e, t) { var n = (0, o.Z)(e, 3), r = n[0], i = n[1], a = n[2], s = [], u = 0; if (0 === a) return [0, 0, 0]; var c = Re(a), l = 0, f = 1 / 0; for ( u = a > 0 ? 0.00379058511492914 * Math.pow(a, 2) + 0.608983189401032 * a + 0.9155088574762233 : 9514440756550361e-21 * Math.pow(a, 2) + 0.08693057439788597 * a - 21.928975842194614; l <= 15; ) { s = Ae({ J: u, C: i, h: r }, t); var d = Math.abs(s[1] - c); if (d < f) { if (d <= 2e-12) return s; f = d; } (u -= ((s[1] - c) * u) / (2 * s[1])), (l += 1); } return Ae({ J: u, C: i, h: r }, t); })(e, je); }, formats: { color: { id: "--hct", coords: [ " | ", " | ", " | ", ], }, }, }), Be = (Math.PI, Math.PI / 180), Ue = [1, 0.007, 0.0228]; function Fe(e) { e[1] < 0 && (e = Ne.fromBase(Ne.toBase(e))); var t = Math.log(Math.max(1 + Ue[2] * e[1] * je.flRoot, 1)) / Ue[2], n = e[0] * Be, r = t * Math.cos(n), i = t * Math.sin(n); return [e[2], r, i]; } var ze = { deltaE76: function (e, t) { return (function (e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "lab", r = (n = i.Z.get(n)).from(e), o = n.from(t); return Math.sqrt( r.reduce(function (e, t, n) { var r = o[n]; return isNaN(t) || isNaN(r) ? e : e + Math.pow(r - t, 2); }, 0) ); })(e, t, "lab"); }, deltaECMC: function (e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, i = n.l, a = void 0 === i ? 2 : i, s = n.c, u = void 0 === s ? 1 : s, c = (0, r.Z)([e, t]), l = (0, o.Z)(c, 2); (e = l[0]), (t = l[1]); var f = d.Z.from(e), p = (0, o.Z)(f, 3), g = p[0], m = p[1], y = p[2], v = h.from(d.Z, [g, m, y]), b = (0, o.Z)(v, 3), _ = b[1], w = b[2], T = d.Z.from(t), x = (0, o.Z)(T, 3), S = x[0], k = x[1], E = x[2], O = h.from(d.Z, [S, k, E])[1]; _ < 0 && (_ = 0), O < 0 && (O = 0); var C = g - S, L = _ - O, A = m - k, I = y - E, M = Math.pow(A, 2) + Math.pow(I, 2) - Math.pow(L, 2), P = 0.511; g >= 16 && (P = (0.040975 * g) / (1 + 0.01765 * g)); var R, D = (0.0638 * _) / (1 + 0.0131 * _) + 0.638; B(w) && (w = 0), (R = w >= 164 && w <= 345 ? 0.56 + Math.abs(0.2 * Math.cos((w + 168) * U)) : 0.36 + Math.abs(0.4 * Math.cos((w + 35) * U))); var j = Math.pow(_, 4), N = Math.sqrt(j / (j + 1900)), F = D * (N * R + 1 - N), z = Math.pow(C / (a * P), 2); return ( (z += Math.pow(L / (u * D), 2)), (z += M / Math.pow(F, 2)), Math.sqrt(z) ); }, deltaE2000: _, deltaEJz: function (e, t) { var n = (0, r.Z)([e, t]), i = (0, o.Z)(n, 2); (e = i[0]), (t = i[1]); var a = re.from(e), s = (0, o.Z)(a, 3), u = s[0], c = s[1], l = s[2], f = re.from(t), d = (0, o.Z)(f, 3), p = d[0], h = d[1], g = d[2], m = u - p, y = c - h; B(l) && B(g) ? ((l = 0), (g = 0)) : B(l) ? (l = g) : B(g) && (g = l); var v = l - g, b = 2 * Math.sqrt(c * h) * Math.sin((v / 2) * (Math.PI / 180)); return Math.sqrt(Math.pow(m, 2) + Math.pow(y, 2) + Math.pow(b, 2)); }, deltaEITP: function (e, t) { var n = (0, r.Z)([e, t]), i = (0, o.Z)(n, 2); (e = i[0]), (t = i[1]); var a = ge.from(e), s = (0, o.Z)(a, 3), u = s[0], c = s[1], l = s[2], f = ge.from(t), d = (0, o.Z)(f, 3), p = d[0], h = d[1], g = d[2]; return ( 720 * Math.sqrt( Math.pow(u - p, 2) + 0.25 * Math.pow(c - h, 2) + Math.pow(l - g, 2) ) ); }, deltaEOK: L, deltaEHCT: function (e, t) { var n = (0, r.Z)([e, t]), i = (0, o.Z)(n, 2); (e = i[0]), (t = i[1]); var a = Fe(Ne.from(e)), s = (0, o.Z)(a, 3), u = s[0], c = s[1], l = s[2], f = Fe(Ne.from(t)), d = (0, o.Z)(f, 3), p = d[0], h = d[1], g = d[2]; return Math.sqrt( Math.pow(u - p, 2) + Math.pow(c - h, 2) + Math.pow(l - g, 2) ); }, }; function He(e) { var t = e ? Math.floor(a(Math.abs(e))) : 0; return Math.max(parseFloat("1e".concat(t - 2)), 1e-6); } var qe = { hct: { method: "hct.c", jnd: 2, deltaEMethod: "hct", blackWhiteClamp: {}, }, "hct-tonal": { method: "hct.c", jnd: 0, deltaEMethod: "hct", blackWhiteClamp: { channel: "hct.t", min: 0, max: 100 }, }, }; function Ze(e) { var t, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, a = n.method, d = void 0 === a ? f.Z.gamut_mapping : a, p = n.space, h = void 0 === p ? void 0 : p, g = n.deltaEMethod, m = void 0 === g ? "" : g, y = n.jnd, v = void 0 === y ? 2 : y, b = n.blackWhiteClamp, w = void 0 === b ? {} : b; if ( ((e = (0, r.Z)(e)), l.HD(arguments[1]) ? (h = arguments[1]) : h || (h = e.space), I(e, (h = i.Z.get(h)), { epsilon: 0 })) ) return e; if ("css" === d) t = We(e, { space: h }); else { if ("clip" === d || I(e, h)) t = $e(e, h); else { if (Object.prototype.hasOwnProperty.call(qe, d)) { var T = qe[d]; (d = T.method), (v = T.jnd), (m = T.deltaEMethod), (w = T.blackWhiteClamp); } var x = _; if ("" !== m) for (var S in ze) if ("deltae" + m.toLowerCase() === S.toLowerCase()) { x = ze[S]; break; } var k = Ze($e(e, h), { method: "clip", space: h }); if (x(e, k) > v) { if (3 === s(w).length) { var E = i.Z.resolveCoord(w.channel), O = (0, M.Z)($e(e, E.space), E.id); if ((l.Wi(O) && (O = 0), O >= w.max)) return $e({ space: "xyz-d65", coords: me.mh.D65 }, e.space); if (O <= w.min) return $e({ space: "xyz-d65", coords: [0, 0, 0] }, e.space); } var C = i.Z.resolveCoord(d), L = C.space, A = C.id, P = $e(e, L); P.coords.forEach(function (e, t) { l.Wi(e) && (P.coords[t] = 0); }); for ( var R = C.range || C.refRange, j = R[0], B = He(v), U = j, F = (0, M.Z)(P, A); F - U > B; ) { var z = N(P); z = Ze(z, { space: h, method: "clip" }); var H = x(P, z); H - v < B ? (U = (0, M.Z)(P, A)) : (F = (0, M.Z)(P, A)), D(P, A, (U + F) / 2); } t = $e(P, h); } else t = k; } if ("clip" === d || !I(t, h, { epsilon: 0 })) { var q, Z, V = u((q = c(h.coords))).call(q, function (e) { return e.range || []; }); t.coords = u((Z = t.coords)).call(Z, function (e, t) { var n = (0, o.Z)(V[t], 2), r = n[0], i = n[1]; return ( void 0 !== r && (e = Math.max(r, e)), void 0 !== i && (e = Math.min(e, i)), e ); }); } } return h !== e.space && (t = $e(t, e.space)), (e.coords = t.coords), e; } Ze.returns = "color"; var Ve = { WHITE: { space: C, coords: [1, 0, 0] }, BLACK: { space: C, coords: [0, 0, 0] }, }; function We(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.space, a = 0.02, s = 1e-4; (e = (0, r.Z)(e)), n || (n = e.space), (n = i.Z.get(n)); var f = i.Z.get("oklch"); if (n.isUnbounded) return $e(e, n); var d = $e(e, f), p = d.coords[0]; if (p >= 1) { var h = $e(Ve.WHITE, n); return (h.alpha = e.alpha), $e(h, n); } if (p <= 0) { var g = $e(Ve.BLACK, n); return (g.alpha = e.alpha), $e(g, n); } if (I(d, n, { epsilon: 0 })) return $e(d, n); function m(e) { var t, r = $e(e, n), i = c(n.coords); return ( (r.coords = u((t = r.coords)).call(t, function (e, t) { if ("range" in i[t]) { var n = (0, o.Z)(i[t].range, 2), r = n[0], a = n[1]; return l.uZ(r, e, a); } return e; })), r ); } var y = 0, v = d.coords[1], b = !0, _ = N(d), w = m(_), T = L(w, _); if (T < a) return w; for (; v - y > s; ) { var x = (y + v) / 2; if (((_.coords[1] = x), b && I(_, n, { epsilon: 0 }))) y = x; else if ((T = L((w = m(_)), _)) < a) { if (a - T < s) break; (b = !1), (y = x); } else v = x; } return w; } function $e(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, o = n.inGamut; e = (0, r.Z)(e); var a = (t = i.Z.get(t)).from(e), s = { space: t, coords: a, alpha: e.alpha }; return o && (s = Ze(s, !0 === o ? void 0 : o)), s; } $e.returns = "color"; }, 75064: function (e, t, n) { "use strict"; n.d(t, { $7: function () { return x; }, HD: function () { return f; }, KK: function () { return b; }, Nw: function () { return k; }, T7: function () { return _; }, Wi: function () { return h; }, Z$: function () { return y; }, dL: function () { return m; }, dt: function () { return d; }, g6: function () { return T; }, rY: function () { return S; }, sX: function () { return v; }, uZ: function () { return w; }, zL: function () { return p; }, }); var r = n(19623), i = n(35293), o = n(31634), a = n(84705), s = n(35704), u = n(45181), c = n(88946), l = n(14051); function f(e) { return "string" === d(e); } function d(e) { return ( Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1] || "" ).toLowerCase(); } function p(e, t) { var n = t.precision, r = t.unit; return h(e) ? "none" : (function (e, t) { if (0 === e) return 0; var n = ~~e, r = 0; n && t && (r = 1 + ~~o(Math.abs(n))); var i = Math.pow(10, t - r); return Math.floor(e * i + 0.5) / i; })(e, n) + (null != r ? r : ""); } function h(e) { return i(e) || (e instanceof Number && (null == e ? void 0 : e.none)); } var g = { deg: 1, grad: 0.9, rad: 180 / Math.PI, turn: 360 }; function m(e) { if (e) { e = a(e).call(e); var t = /^-?[\d.]+$/, n = /%|deg|g?rad|turn$/, i = e.match(/^([a-z]+)\((.+?)\)$/i); if (i) { var o = []; return ( i[2].replace( /\/?\s*(none|[-\w.]+(?:%|deg|g?rad|turn)?)/g, function (e, i) { var a = i.match(n), c = i; if (a) { var l = a[0], f = s(c).call(c, 0, -l.length); "%" === l ? ((c = new Number(f / 100)).type = "") : (((c = new Number(f * g[l])).type = ""), (c.unit = l)); } else t.test(c) ? ((c = new Number(c)).type = "") : "none" === c && ((c = new Number(NaN)).none = !0); u(e).call(e, "/") && ((c = c instanceof Number ? c : new Number(c)).alpha = !0), "object" === (0, r.Z)(c) && c instanceof Number && (c.raw = i), o.push(c); } ), { name: i[1].toLowerCase(), rawName: i[1], rawArgs: i[2], args: o, } ); } } } function y(e) { return e[e.length - 1]; } function v(e, t, n) { return isNaN(e) ? t : isNaN(t) ? e : e + (t - e) * n; } function b(e, t, n) { return v( t[0], t[1], (function (e, t, n) { return (n - e) / (t - e); })(e[0], e[1], n) ); } function _(e) { return c(e).call(e, function (e) { var t; return c((t = e.split("|"))).call(t, function (e) { var t = (e = a(e).call(e)).match( /^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/ ); if (t) { var n = new String(t[1]); return (n.range = [+t[2], +t[3]]), n; } return e; }); }); } function w(e, t, n) { return Math.max(Math.min(n, t), e); } function T(e, t) { return l(e) === l(t) ? e : -e; } function x(e, t) { return T(Math.pow(Math.abs(e), t), e); } function S(e, t) { return 0 === t ? 0 : e / t; } function k(e, t) { for ( var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0, r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : e.length; n < r; ) { var i = (n + r) >> 1; e[i] < t ? (n = i + 1) : (r = i); } return n; } }, 23148: function (e, t, n) { "use strict"; n.d(t, { De: function () { return It; }, Dx: function () { return Pt; }, ST: function () { return M; }, ZL: function () { return Ot; }, f$: function () { return en; }, jn: function () { return vt; }, kL: function () { return rt; }, od: function () { return _t; }, qi: function () { return ct; }, tt: function () { return P; }, u: function () { return Gt; }, uw: function () { return Xt; }, vn: function () { return A; }, }); var r = n(50713); class i { constructor() { (this._request = null), (this._charts = new Map()), (this._running = !1), (this._lastDate = void 0); } _notify(e, t, n, r) { const i = t.listeners[r], o = t.duration; i.forEach((r) => r({ chart: e, initial: t.initial, numSteps: o, currentStep: Math.min(n - t.start, o), }) ); } _refresh() { this._request || ((this._running = !0), (this._request = r.r.call(window, () => { this._update(), (this._request = null), this._running && this._refresh(); }))); } _update(e = Date.now()) { let t = 0; this._charts.forEach((n, r) => { if (!n.running || !n.items.length) return; const i = n.items; let o, a = i.length - 1, s = !1; for (; a >= 0; --a) (o = i[a]), o._active ? (o._total > n.duration && (n.duration = o._total), o.tick(e), (s = !0)) : ((i[a] = i[i.length - 1]), i.pop()); s && (r.draw(), this._notify(r, n, e, "progress")), i.length || ((n.running = !1), this._notify(r, n, e, "complete"), (n.initial = !1)), (t += i.length); }), (this._lastDate = e), 0 === t && (this._running = !1); } _getAnims(e) { const t = this._charts; let n = t.get(e); return ( n || ((n = { running: !1, initial: !0, items: [], listeners: { complete: [], progress: [] }, }), t.set(e, n)), n ); } listen(e, t, n) { this._getAnims(e).listeners[t].push(n); } add(e, t) { t && t.length && this._getAnims(e).items.push(...t); } has(e) { return this._getAnims(e).items.length > 0; } start(e) { const t = this._charts.get(e); t && ((t.running = !0), (t.start = Date.now()), (t.duration = t.items.reduce( (e, t) => Math.max(e, t._duration), 0 )), this._refresh()); } running(e) { if (!this._running) return !1; const t = this._charts.get(e); return !!(t && t.running && t.items.length); } stop(e) { const t = this._charts.get(e); if (!t || !t.items.length) return; const n = t.items; let r = n.length - 1; for (; r >= 0; --r) n[r].cancel(); (t.items = []), this._notify(e, t, Date.now(), "complete"); } remove(e) { return this._charts.delete(e); } } var o = new i(); const a = "transparent", s = { boolean: (e, t, n) => (n > 0.5 ? t : e), color(e, t, n) { const i = (0, r.c)(e || a), o = i.valid && (0, r.c)(t || a); return o && o.valid ? o.mix(i, n).hexString() : t; }, number: (e, t, n) => e + (t - e) * n, }; class u { constructor(e, t, n, i) { const o = t[n]; i = (0, r.a)([e.to, i, o, e.from]); const a = (0, r.a)([e.from, o, i]); (this._active = !0), (this._fn = e.fn || s[e.type || typeof a]), (this._easing = r.e[e.easing] || r.e.linear), (this._start = Math.floor(Date.now() + (e.delay || 0))), (this._duration = this._total = Math.floor(e.duration)), (this._loop = !!e.loop), (this._target = t), (this._prop = n), (this._from = a), (this._to = i), (this._promises = void 0); } active() { return this._active; } update(e, t, n) { if (this._active) { this._notify(!1); const i = this._target[this._prop], o = n - this._start, a = this._duration - o; (this._start = n), (this._duration = Math.floor(Math.max(a, e.duration))), (this._total += o), (this._loop = !!e.loop), (this._to = (0, r.a)([e.to, t, i, e.from])), (this._from = (0, r.a)([e.from, i, t])); } } cancel() { this._active && (this.tick(Date.now()), (this._active = !1), this._notify(!1)); } tick(e) { const t = e - this._start, n = this._duration, r = this._prop, i = this._from, o = this._loop, a = this._to; let s; if (((this._active = i !== a && (o || t < n)), !this._active)) return (this._target[r] = a), void this._notify(!0); t < 0 ? (this._target[r] = i) : ((s = (t / n) % 2), (s = o && s > 1 ? 2 - s : s), (s = this._easing(Math.min(1, Math.max(0, s)))), (this._target[r] = this._fn(i, a, s))); } wait() { const e = this._promises || (this._promises = []); return new Promise((t, n) => { e.push({ res: t, rej: n }); }); } _notify(e) { const t = e ? "res" : "rej", n = this._promises || []; for (let e = 0; e < n.length; e++) n[e][t](); } } class c { constructor(e, t) { (this._chart = e), (this._properties = new Map()), this.configure(t); } configure(e) { if (!(0, r.i)(e)) return; const t = Object.keys(r.d.animation), n = this._properties; Object.getOwnPropertyNames(e).forEach((i) => { const o = e[i]; if (!(0, r.i)(o)) return; const a = {}; for (const e of t) a[e] = o[e]; (((0, r.b)(o.properties) && o.properties) || [i]).forEach((e) => { (e !== i && n.has(e)) || n.set(e, a); }); }); } _animateOptions(e, t) { const n = t.options, r = (function (e, t) { if (!t) return; let n = e.options; if (!n) return void (e.options = t); n.$shared && (e.options = n = Object.assign({}, n, { $shared: !1, $animations: {} })); return n; })(e, n); if (!r) return []; const i = this._createAnimations(r, n); return ( n.$shared && (function (e, t) { const n = [], r = Object.keys(t); for (let t = 0; t < r.length; t++) { const i = e[r[t]]; i && i.active() && n.push(i.wait()); } return Promise.all(n); })(e.options.$animations, n).then( () => { e.options = n; }, () => {} ), i ); } _createAnimations(e, t) { const n = this._properties, r = [], i = e.$animations || (e.$animations = {}), o = Object.keys(t), a = Date.now(); let s; for (s = o.length - 1; s >= 0; --s) { const c = o[s]; if ("$" === c.charAt(0)) continue; if ("options" === c) { r.push(...this._animateOptions(e, t)); continue; } const l = t[c]; let f = i[c]; const d = n.get(c); if (f) { if (d && f.active()) { f.update(d, l, a); continue; } f.cancel(); } d && d.duration ? ((i[c] = f = new u(d, e, c, l)), r.push(f)) : (e[c] = l); } return r; } update(e, t) { if (0 === this._properties.size) return void Object.assign(e, t); const n = this._createAnimations(e, t); return n.length ? (o.add(this._chart, n), !0) : void 0; } } function l(e, t) { const n = (e && e.options) || {}, r = n.reverse, i = void 0 === n.min ? t : 0, o = void 0 === n.max ? t : 0; return { start: r ? o : i, end: r ? i : o }; } function f(e, t) { const n = [], r = e._getSortedDatasetMetas(t); let i, o; for (i = 0, o = r.length; i < o; ++i) n.push(r[i].index); return n; } function d(e, t, n, i = {}) { const o = e.keys, a = "single" === i.mode; let s, u, c, l; if (null !== t) { for (s = 0, u = o.length; s < u; ++s) { if (((c = +o[s]), c === n)) { if (i.all) continue; break; } (l = e.values[c]), (0, r.g)(l) && (a || 0 === t || (0, r.s)(t) === (0, r.s)(l)) && (t += l); } return t; } } function p(e, t) { const n = e && e.options.stacked; return n || (void 0 === n && void 0 !== t.stack); } function h(e, t, n) { const r = e[t] || (e[t] = {}); return r[n] || (r[n] = {}); } function g(e, t, n, r) { for (const i of t.getMatchingVisibleMetas(r).reverse()) { const t = e[i.index]; if ((n && t > 0) || (!n && t < 0)) return i.index; } return null; } function m(e, t) { const { chart: n, _cachedMeta: r } = e, i = n._stacks || (n._stacks = {}), { iScale: o, vScale: a, index: s } = r, u = o.axis, c = a.axis, l = (function (e, t, n) { return `${e.id}.${t.id}.${n.stack || n.type}`; })(o, a, r), f = t.length; let d; for (let e = 0; e < f; ++e) { const n = t[e], { [u]: o, [c]: f } = n; (d = (n._stacks || (n._stacks = {}))[c] = h(i, l, o)), (d[s] = f), (d._top = g(d, a, !0, r.type)), (d._bottom = g(d, a, !1, r.type)); (d._visualValues || (d._visualValues = {}))[s] = f; } } function y(e, t) { const n = e.scales; return Object.keys(n) .filter((e) => n[e].axis === t) .shift(); } function v(e, t) { const n = e.controller.index, r = e.vScale && e.vScale.axis; if (r) { t = t || e._parsed; for (const e of t) { const t = e._stacks; if (!t || void 0 === t[r] || void 0 === t[r][n]) return; delete t[r][n], void 0 !== t[r]._visualValues && void 0 !== t[r]._visualValues[n] && delete t[r]._visualValues[n]; } } } const b = (e) => "reset" === e || "none" === e, _ = (e, t) => (t ? e : Object.assign({}, e)); class w { static defaults = {}; static datasetElementType = null; static dataElementType = null; constructor(e, t) { (this.chart = e), (this._ctx = e.ctx), (this.index = t), (this._cachedDataOpts = {}), (this._cachedMeta = this.getMeta()), (this._type = this._cachedMeta.type), (this.options = void 0), (this._parsing = !1), (this._data = void 0), (this._objectData = void 0), (this._sharedOptions = void 0), (this._drawStart = void 0), (this._drawCount = void 0), (this.enableOptionSharing = !1), (this.supportsDecimation = !1), (this.$context = void 0), (this._syncList = []), (this.datasetElementType = new.target.datasetElementType), (this.dataElementType = new.target.dataElementType), this.initialize(); } initialize() { const e = this._cachedMeta; this.configure(), this.linkScales(), (e._stacked = p(e.vScale, e)), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn( "Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options" ); } updateIndex(e) { this.index !== e && v(this._cachedMeta), (this.index = e); } linkScales() { const e = this.chart, t = this._cachedMeta, n = this.getDataset(), i = (e, t, n, r) => ("x" === e ? t : "r" === e ? r : n), o = (t.xAxisID = (0, r.v)(n.xAxisID, y(e, "x"))), a = (t.yAxisID = (0, r.v)(n.yAxisID, y(e, "y"))), s = (t.rAxisID = (0, r.v)(n.rAxisID, y(e, "r"))), u = t.indexAxis, c = (t.iAxisID = i(u, o, a, s)), l = (t.vAxisID = i(u, a, o, s)); (t.xScale = this.getScaleForId(o)), (t.yScale = this.getScaleForId(a)), (t.rScale = this.getScaleForId(s)), (t.iScale = this.getScaleForId(c)), (t.vScale = this.getScaleForId(l)); } getDataset() { return this.chart.data.datasets[this.index]; } getMeta() { return this.chart.getDatasetMeta(this.index); } getScaleForId(e) { return this.chart.scales[e]; } _getOtherScale(e) { const t = this._cachedMeta; return e === t.iScale ? t.vScale : t.iScale; } reset() { this._update("reset"); } _destroy() { const e = this._cachedMeta; this._data && (0, r.u)(this._data, this), e._stacked && v(e); } _dataCheck() { const e = this.getDataset(), t = e.data || (e.data = []), n = this._data; if ((0, r.i)(t)) this._data = (function (e) { const t = Object.keys(e), n = new Array(t.length); let r, i, o; for (r = 0, i = t.length; r < i; ++r) (o = t[r]), (n[r] = { x: o, y: e[o] }); return n; })(t); else if (n !== t) { if (n) { (0, r.u)(n, this); const e = this._cachedMeta; v(e), (e._parsed = []); } t && Object.isExtensible(t) && (0, r.l)(t, this), (this._syncList = []), (this._data = t); } } addElements() { const e = this._cachedMeta; this._dataCheck(), this.datasetElementType && (e.dataset = new this.datasetElementType()); } buildOrUpdateElements(e) { const t = this._cachedMeta, n = this.getDataset(); let r = !1; this._dataCheck(); const i = t._stacked; (t._stacked = p(t.vScale, t)), t.stack !== n.stack && ((r = !0), v(t), (t.stack = n.stack)), this._resyncElements(e), (r || i !== t._stacked) && m(this, t._parsed); } configure() { const e = this.chart.config, t = e.datasetScopeKeys(this._type), n = e.getOptionScopes(this.getDataset(), t, !0); (this.options = e.createResolver(n, this.getContext())), (this._parsing = this.options.parsing), (this._cachedDataOpts = {}); } parse(e, t) { const { _cachedMeta: n, _data: i } = this, { iScale: o, _stacked: a } = n, s = o.axis; let u, c, l, f = (0 === e && t === i.length) || n._sorted, d = e > 0 && n._parsed[e - 1]; if (!1 === this._parsing) (n._parsed = i), (n._sorted = !0), (l = i); else { l = (0, r.b)(i[e]) ? this.parseArrayData(n, i, e, t) : (0, r.i)(i[e]) ? this.parseObjectData(n, i, e, t) : this.parsePrimitiveData(n, i, e, t); const o = () => null === c[s] || (d && c[s] < d[s]); for (u = 0; u < t; ++u) (n._parsed[u + e] = c = l[u]), f && (o() && (f = !1), (d = c)); n._sorted = f; } a && m(this, l); } parsePrimitiveData(e, t, n, r) { const { iScale: i, vScale: o } = e, a = i.axis, s = o.axis, u = i.getLabels(), c = i === o, l = new Array(r); let f, d, p; for (f = 0, d = r; f < d; ++f) (p = f + n), (l[f] = { [a]: c || i.parse(u[p], p), [s]: o.parse(t[p], p) }); return l; } parseArrayData(e, t, n, r) { const { xScale: i, yScale: o } = e, a = new Array(r); let s, u, c, l; for (s = 0, u = r; s < u; ++s) (c = s + n), (l = t[c]), (a[s] = { x: i.parse(l[0], c), y: o.parse(l[1], c) }); return a; } parseObjectData(e, t, n, i) { const { xScale: o, yScale: a } = e, { xAxisKey: s = "x", yAxisKey: u = "y" } = this._parsing, c = new Array(i); let l, f, d, p; for (l = 0, f = i; l < f; ++l) (d = l + n), (p = t[d]), (c[l] = { x: o.parse((0, r.f)(p, s), d), y: a.parse((0, r.f)(p, u), d), }); return c; } getParsed(e) { return this._cachedMeta._parsed[e]; } getDataElement(e) { return this._cachedMeta.data[e]; } applyStack(e, t, n) { const r = this.chart, i = this._cachedMeta, o = t[e.axis]; return d( { keys: f(r, !0), values: t._stacks[e.axis]._visualValues }, o, i.index, { mode: n } ); } updateRangeFromParsed(e, t, n, r) { const i = n[t.axis]; let o = null === i ? NaN : i; const a = r && n._stacks[t.axis]; r && a && ((r.values = a), (o = d(r, i, this._cachedMeta.index))), (e.min = Math.min(e.min, o)), (e.max = Math.max(e.max, o)); } getMinMax(e, t) { const n = this._cachedMeta, i = n._parsed, o = n._sorted && e === n.iScale, a = i.length, s = this._getOtherScale(e), u = ((e, t, n) => e && !t.hidden && t._stacked && { keys: f(n, !0), values: null })( t, n, this.chart ), c = { min: Number.POSITIVE_INFINITY, max: Number.NEGATIVE_INFINITY, }, { min: l, max: d } = (function (e) { const { min: t, max: n, minDefined: r, maxDefined: i, } = e.getUserBounds(); return { min: r ? t : Number.NEGATIVE_INFINITY, max: i ? n : Number.POSITIVE_INFINITY, }; })(s); let p, h; function g() { h = i[p]; const t = h[s.axis]; return !(0, r.g)(h[e.axis]) || l > t || d < t; } for ( p = 0; p < a && (g() || (this.updateRangeFromParsed(c, e, h, u), !o)); ++p ); if (o) for (p = a - 1; p >= 0; --p) if (!g()) { this.updateRangeFromParsed(c, e, h, u); break; } return c; } getAllParsedValues(e) { const t = this._cachedMeta._parsed, n = []; let i, o, a; for (i = 0, o = t.length; i < o; ++i) (a = t[i][e.axis]), (0, r.g)(a) && n.push(a); return n; } getMaxOverflow() { return !1; } getLabelAndValue(e) { const t = this._cachedMeta, n = t.iScale, r = t.vScale, i = this.getParsed(e); return { label: n ? "" + n.getLabelForValue(i[n.axis]) : "", value: r ? "" + r.getLabelForValue(i[r.axis]) : "", }; } _update(e) { const t = this._cachedMeta; this.update(e || "default"), (t._clip = (function (e) { let t, n, i, o; return ( (0, r.i)(e) ? ((t = e.top), (n = e.right), (i = e.bottom), (o = e.left)) : (t = n = i = o = e), { top: t, right: n, bottom: i, left: o, disabled: !1 === e } ); })( (0, r.v)( this.options.clip, (function (e, t, n) { if (!1 === n) return !1; const r = l(e, n), i = l(t, n); return { top: i.end, right: r.end, bottom: i.start, left: r.start, }; })(t.xScale, t.yScale, this.getMaxOverflow()) ) )); } update(e) {} draw() { const e = this._ctx, t = this.chart, n = this._cachedMeta, r = n.data || [], i = t.chartArea, o = [], a = this._drawStart || 0, s = this._drawCount || r.length - a, u = this.options.drawActiveElementsOnTop; let c; for (n.dataset && n.dataset.draw(e, i, a, s), c = a; c < a + s; ++c) { const t = r[c]; t.hidden || (t.active && u ? o.push(t) : t.draw(e, i)); } for (c = 0; c < o.length; ++c) o[c].draw(e, i); } getStyle(e, t) { const n = t ? "active" : "default"; return void 0 === e && this._cachedMeta.dataset ? this.resolveDatasetElementOptions(n) : this.resolveDataElementOptions(e || 0, n); } getContext(e, t, n) { const i = this.getDataset(); let o; if (e >= 0 && e < this._cachedMeta.data.length) { const t = this._cachedMeta.data[e]; (o = t.$context || (t.$context = (function (e, t, n) { return (0, r.j)(e, { active: !1, dataIndex: t, parsed: void 0, raw: void 0, element: n, index: t, mode: "default", type: "data", }); })(this.getContext(), e, t))), (o.parsed = this.getParsed(e)), (o.raw = i.data[e]), (o.index = o.dataIndex = e); } else (o = this.$context || (this.$context = (function (e, t) { return (0, r.j)(e, { active: !1, dataset: void 0, datasetIndex: t, index: t, mode: "default", type: "dataset", }); })(this.chart.getContext(), this.index))), (o.dataset = i), (o.index = o.datasetIndex = this.index); return (o.active = !!t), (o.mode = n), o; } resolveDatasetElementOptions(e) { return this._resolveElementOptions(this.datasetElementType.id, e); } resolveDataElementOptions(e, t) { return this._resolveElementOptions(this.dataElementType.id, t, e); } _resolveElementOptions(e, t = "default", n) { const i = "active" === t, o = this._cachedDataOpts, a = e + "-" + t, s = o[a], u = this.enableOptionSharing && (0, r.h)(n); if (s) return _(s, u); const c = this.chart.config, l = c.datasetElementScopeKeys(this._type, e), f = i ? [`${e}Hover`, "hover", e, ""] : [e, ""], d = c.getOptionScopes(this.getDataset(), l), p = Object.keys(r.d.elements[e]), h = c.resolveNamedOptions(d, p, () => this.getContext(n, i, t), f); return ( h.$shared && ((h.$shared = u), (o[a] = Object.freeze(_(h, u)))), h ); } _resolveAnimations(e, t, n) { const r = this.chart, i = this._cachedDataOpts, o = `animation-${t}`, a = i[o]; if (a) return a; let s; if (!1 !== r.options.animation) { const r = this.chart.config, i = r.datasetAnimationScopeKeys(this._type, t), o = r.getOptionScopes(this.getDataset(), i); s = r.createResolver(o, this.getContext(e, n, t)); } const u = new c(r, s && s.animations); return s && s._cacheable && (i[o] = Object.freeze(u)), u; } getSharedOptions(e) { if (e.$shared) return ( this._sharedOptions || (this._sharedOptions = Object.assign({}, e)) ); } includeOptions(e, t) { return !t || b(e) || this.chart._animationsDisabled; } _getSharedOptions(e, t) { const n = this.resolveDataElementOptions(e, t), r = this._sharedOptions, i = this.getSharedOptions(n), o = this.includeOptions(t, i) || i !== r; return ( this.updateSharedOptions(i, t, n), { sharedOptions: i, includeOptions: o } ); } updateElement(e, t, n, r) { b(r) ? Object.assign(e, n) : this._resolveAnimations(t, r).update(e, n); } updateSharedOptions(e, t, n) { e && !b(t) && this._resolveAnimations(void 0, t).update(e, n); } _setStyle(e, t, n, r) { e.active = r; const i = this.getStyle(t, r); this._resolveAnimations(t, n, r).update(e, { options: (!r && this.getSharedOptions(i)) || i, }); } removeHoverStyle(e, t, n) { this._setStyle(e, n, "active", !1); } setHoverStyle(e, t, n) { this._setStyle(e, n, "active", !0); } _removeDatasetHoverStyle() { const e = this._cachedMeta.dataset; e && this._setStyle(e, void 0, "active", !1); } _setDatasetHoverStyle() { const e = this._cachedMeta.dataset; e && this._setStyle(e, void 0, "active", !0); } _resyncElements(e) { const t = this._data, n = this._cachedMeta.data; for (const [e, t, n] of this._syncList) this[e](t, n); this._syncList = []; const r = n.length, i = t.length, o = Math.min(i, r); o && this.parse(0, o), i > r ? this._insertElements(r, i - r, e) : i < r && this._removeElements(i, r - i); } _insertElements(e, t, n = !0) { const r = this._cachedMeta, i = r.data, o = e + t; let a; const s = (e) => { for (e.length += t, a = e.length - 1; a >= o; a--) e[a] = e[a - t]; }; for (s(i), a = e; a < o; ++a) i[a] = new this.dataElementType(); this._parsing && s(r._parsed), this.parse(e, t), n && this.updateElements(i, e, t, "reset"); } updateElements(e, t, n, r) {} _removeElements(e, t) { const n = this._cachedMeta; if (this._parsing) { const r = n._parsed.splice(e, t); n._stacked && v(n, r); } n.data.splice(e, t); } _sync(e) { if (this._parsing) this._syncList.push(e); else { const [t, n, r] = e; this[t](n, r); } this.chart._dataChanges.push([this.index, ...e]); } _onDataPush() { const e = arguments.length; this._sync(["_insertElements", this.getDataset().data.length - e, e]); } _onDataPop() { this._sync(["_removeElements", this._cachedMeta.data.length - 1, 1]); } _onDataShift() { this._sync(["_removeElements", 0, 1]); } _onDataSplice(e, t) { t && this._sync(["_removeElements", e, t]); const n = arguments.length - 2; n && this._sync(["_insertElements", e, n]); } _onDataUnshift() { this._sync(["_insertElements", 0, arguments.length]); } } function T(e) { const t = e.iScale, n = (function (e, t) { if (!e._cache.$bar) { const n = e.getMatchingVisibleMetas(t); let i = []; for (let t = 0, r = n.length; t < r; t++) i = i.concat(n[t].controller.getAllParsedValues(e)); e._cache.$bar = (0, r._)(i.sort((e, t) => e - t)); } return e._cache.$bar; })(t, e.type); let i, o, a, s, u = t._length; const c = () => { 32767 !== a && -32768 !== a && ((0, r.h)(s) && (u = Math.min(u, Math.abs(a - s) || u)), (s = a)); }; for (i = 0, o = n.length; i < o; ++i) (a = t.getPixelForValue(n[i])), c(); for (s = void 0, i = 0, o = t.ticks.length; i < o; ++i) (a = t.getPixelForTick(i)), c(); return u; } function x(e, t, n, i) { return ( (0, r.b)(e) ? (function (e, t, n, r) { const i = n.parse(e[0], r), o = n.parse(e[1], r), a = Math.min(i, o), s = Math.max(i, o); let u = a, c = s; Math.abs(a) > Math.abs(s) && ((u = s), (c = a)), (t[n.axis] = c), (t._custom = { barStart: u, barEnd: c, start: i, end: o, min: a, max: s, }); })(e, t, n, i) : (t[n.axis] = n.parse(e, i)), t ); } function S(e, t, n, r) { const i = e.iScale, o = e.vScale, a = i.getLabels(), s = i === o, u = []; let c, l, f, d; for (c = n, l = n + r; c < l; ++c) (d = t[c]), (f = {}), (f[i.axis] = s || i.parse(a[c], c)), u.push(x(d, f, o, c)); return u; } function k(e) { return e && void 0 !== e.barStart && void 0 !== e.barEnd; } function E(e, t, n, r) { let i = t.borderSkipped; const o = {}; if (!i) return void (e.borderSkipped = o); if (!0 === i) return void (e.borderSkipped = { top: !0, right: !0, bottom: !0, left: !0, }); const { start: a, end: s, reverse: u, top: c, bottom: l, } = (function (e) { let t, n, r, i, o; return ( e.horizontal ? ((t = e.base > e.x), (n = "left"), (r = "right")) : ((t = e.base < e.y), (n = "bottom"), (r = "top")), t ? ((i = "end"), (o = "start")) : ((i = "start"), (o = "end")), { start: n, end: r, reverse: t, top: i, bottom: o } ); })(e); "middle" === i && n && ((e.enableBorderRadius = !0), (n._top || 0) === r ? (i = c) : (n._bottom || 0) === r ? (i = l) : ((o[O(l, a, s, u)] = !0), (i = c))), (o[O(i, a, s, u)] = !0), (e.borderSkipped = o); } function O(e, t, n, r) { var i, o, a; return ( r ? ((a = n), (e = C((e = (i = e) === (o = t) ? a : i === a ? o : i), n, t))) : (e = C(e, t, n)), e ); } function C(e, t, n) { return "start" === e ? t : "end" === e ? n : e; } function L(e, { inflateAmount: t }, n) { e.inflateAmount = "auto" === t ? (1 === n ? 0.33 : 0) : t; } class A extends w { static id = "bar"; static defaults = { datasetElementType: !1, dataElementType: "bar", categoryPercentage: 0.8, barPercentage: 0.9, grouped: !0, animations: { numbers: { type: "number", properties: ["x", "y", "base", "width", "height"], }, }, }; static overrides = { scales: { _index_: { type: "category", offset: !0, grid: { offset: !0 } }, _value_: { type: "linear", beginAtZero: !0 }, }, }; parsePrimitiveData(e, t, n, r) { return S(e, t, n, r); } parseArrayData(e, t, n, r) { return S(e, t, n, r); } parseObjectData(e, t, n, i) { const { iScale: o, vScale: a } = e, { xAxisKey: s = "x", yAxisKey: u = "y" } = this._parsing, c = "x" === o.axis ? s : u, l = "x" === a.axis ? s : u, f = []; let d, p, h, g; for (d = n, p = n + i; d < p; ++d) (g = t[d]), (h = {}), (h[o.axis] = o.parse((0, r.f)(g, c), d)), f.push(x((0, r.f)(g, l), h, a, d)); return f; } updateRangeFromParsed(e, t, n, r) { super.updateRangeFromParsed(e, t, n, r); const i = n._custom; i && t === this._cachedMeta.vScale && ((e.min = Math.min(e.min, i.min)), (e.max = Math.max(e.max, i.max))); } getMaxOverflow() { return 0; } getLabelAndValue(e) { const t = this._cachedMeta, { iScale: n, vScale: r } = t, i = this.getParsed(e), o = i._custom, a = k(o) ? "[" + o.start + ", " + o.end + "]" : "" + r.getLabelForValue(i[r.axis]); return { label: "" + n.getLabelForValue(i[n.axis]), value: a }; } initialize() { (this.enableOptionSharing = !0), super.initialize(); this._cachedMeta.stack = this.getDataset().stack; } update(e) { const t = this._cachedMeta; this.updateElements(t.data, 0, t.data.length, e); } updateElements(e, t, n, i) { const o = "reset" === i, { index: a, _cachedMeta: { vScale: s }, } = this, u = s.getBasePixel(), c = s.isHorizontal(), l = this._getRuler(), { sharedOptions: f, includeOptions: d } = this._getSharedOptions( t, i ); for (let p = t; p < t + n; p++) { const t = this.getParsed(p), n = o || (0, r.k)(t[s.axis]) ? { base: u, head: u } : this._calculateBarValuePixels(p), h = this._calculateBarIndexPixels(p, l), g = (t._stacks || {})[s.axis], m = { horizontal: c, base: n.base, enableBorderRadius: !g || k(t._custom) || a === g._top || a === g._bottom, x: c ? n.head : h.center, y: c ? h.center : n.head, height: c ? h.size : Math.abs(n.size), width: c ? Math.abs(n.size) : h.size, }; d && (m.options = f || this.resolveDataElementOptions(p, e[p].active ? "active" : i)); const y = m.options || e[p].options; E(m, y, g, a), L(m, y, l.ratio), this.updateElement(e[p], p, m, i); } } _getStacks(e, t) { const { iScale: n } = this._cachedMeta, i = n .getMatchingVisibleMetas(this._type) .filter((e) => e.controller.options.grouped), o = n.options.stacked, a = [], s = (e) => { const n = e.controller.getParsed(t), i = n && n[e.vScale.axis]; if ((0, r.k)(i) || isNaN(i)) return !0; }; for (const n of i) if ( (void 0 === t || !s(n)) && ((!1 === o || -1 === a.indexOf(n.stack) || (void 0 === o && void 0 === n.stack)) && a.push(n.stack), n.index === e) ) break; return a.length || a.push(void 0), a; } _getStackCount(e) { return this._getStacks(void 0, e).length; } _getStackIndex(e, t, n) { const r = this._getStacks(e, n), i = void 0 !== t ? r.indexOf(t) : -1; return -1 === i ? r.length - 1 : i; } _getRuler() { const e = this.options, t = this._cachedMeta, n = t.iScale, r = []; let i, o; for (i = 0, o = t.data.length; i < o; ++i) r.push(n.getPixelForValue(this.getParsed(i)[n.axis], i)); const a = e.barThickness; return { min: a || T(t), pixels: r, start: n._startPixel, end: n._endPixel, stackCount: this._getStackCount(), scale: n, grouped: e.grouped, ratio: a ? 1 : e.categoryPercentage * e.barPercentage, }; } _calculateBarValuePixels(e) { const { _cachedMeta: { vScale: t, _stacked: n, index: i }, options: { base: o, minBarLength: a }, } = this, s = o || 0, u = this.getParsed(e), c = u._custom, l = k(c); let f, d, p = u[t.axis], h = 0, g = n ? this.applyStack(t, u, n) : p; g !== p && ((h = g - p), (g = p)), l && ((p = c.barStart), (g = c.barEnd - c.barStart), 0 !== p && (0, r.s)(p) !== (0, r.s)(c.barEnd) && (h = 0), (h += p)); const m = (0, r.k)(o) || l ? h : o; let y = t.getPixelForValue(m); if ( ((f = this.chart.getDataVisibility(e) ? t.getPixelForValue(h + g) : y), (d = f - y), Math.abs(d) < a) ) { (d = (function (e, t, n) { return 0 !== e ? (0, r.s)(e) : (t.isHorizontal() ? 1 : -1) * (t.min >= n ? 1 : -1); })(d, t, s) * a), p === s && (y -= d / 2); const e = t.getPixelForDecimal(0), o = t.getPixelForDecimal(1), c = Math.min(e, o), h = Math.max(e, o); (y = Math.max(Math.min(y, h), c)), (f = y + d), n && !l && (u._stacks[t.axis]._visualValues[i] = t.getValueForPixel(f) - t.getValueForPixel(y)); } if (y === t.getPixelForValue(s)) { const e = ((0, r.s)(d) * t.getLineWidthForValue(s)) / 2; (y += e), (d -= e); } return { size: d, base: y, head: f, center: f + d / 2 }; } _calculateBarIndexPixels(e, t) { const n = t.scale, i = this.options, o = i.skipNull, a = (0, r.v)(i.maxBarThickness, 1 / 0); let s, u; if (t.grouped) { const n = o ? this._getStackCount(e) : t.stackCount, c = "flex" === i.barThickness ? (function (e, t, n, r) { const i = t.pixels, o = i[e]; let a = e > 0 ? i[e - 1] : null, s = e < i.length - 1 ? i[e + 1] : null; const u = n.categoryPercentage; null === a && (a = o - (null === s ? t.end - t.start : s - o)), null === s && (s = o + o - a); const c = o - ((o - Math.min(a, s)) / 2) * u; return { chunk: ((Math.abs(s - a) / 2) * u) / r, ratio: n.barPercentage, start: c, }; })(e, t, i, n) : (function (e, t, n, i) { const o = n.barThickness; let a, s; return ( (0, r.k)(o) ? ((a = t.min * n.categoryPercentage), (s = n.barPercentage)) : ((a = o * i), (s = 1)), { chunk: a / i, ratio: s, start: t.pixels[e] - a / 2 } ); })(e, t, i, n), l = this._getStackIndex( this.index, this._cachedMeta.stack, o ? e : void 0 ); (s = c.start + c.chunk * l + c.chunk / 2), (u = Math.min(a, c.chunk * c.ratio)); } else (s = n.getPixelForValue(this.getParsed(e)[n.axis], e)), (u = Math.min(a, t.min * t.ratio)); return { base: s - u / 2, head: s + u / 2, center: s, size: u }; } draw() { const e = this._cachedMeta, t = e.vScale, n = e.data, r = n.length; let i = 0; for (; i < r; ++i) null !== this.getParsed(i)[t.axis] && n[i].draw(this._ctx); } } class I extends w { static id = "doughnut"; static defaults = { datasetElementType: !1, dataElementType: "arc", animation: { animateRotate: !0, animateScale: !1 }, animations: { numbers: { type: "number", properties: [ "circumference", "endAngle", "innerRadius", "outerRadius", "startAngle", "x", "y", "offset", "borderWidth", "spacing", ], }, }, cutout: "50%", rotation: 0, circumference: 360, radius: "100%", spacing: 0, indexAxis: "r", }; static descriptors = { _scriptable: (e) => "spacing" !== e, _indexable: (e) => "spacing" !== e && !e.startsWith("borderDash") && !e.startsWith("hoverBorderDash"), }; static overrides = { aspectRatio: 1, plugins: { legend: { labels: { generateLabels(e) { const t = e.data; if (t.labels.length && t.datasets.length) { const { labels: { pointStyle: n, color: r }, } = e.legend.options; return t.labels.map((t, i) => { const o = e.getDatasetMeta(0).controller.getStyle(i); return { text: t, fillStyle: o.backgroundColor, strokeStyle: o.borderColor, fontColor: r, lineWidth: o.borderWidth, pointStyle: n, hidden: !e.getDataVisibility(i), index: i, }; }); } return []; }, }, onClick(e, t, n) { n.chart.toggleDataVisibility(t.index), n.chart.update(); }, }, }, }; constructor(e, t) { super(e, t), (this.enableOptionSharing = !0), (this.innerRadius = void 0), (this.outerRadius = void 0), (this.offsetX = void 0), (this.offsetY = void 0); } linkScales() {} parse(e, t) { const n = this.getDataset().data, i = this._cachedMeta; if (!1 === this._parsing) i._parsed = n; else { let o, a, s = (e) => +n[e]; if ((0, r.i)(n[e])) { const { key: e = "value" } = this._parsing; s = (t) => +(0, r.f)(n[t], e); } for (o = e, a = e + t; o < a; ++o) i._parsed[o] = s(o); } } _getRotation() { return (0, r.t)(this.options.rotation - 90); } _getCircumference() { return (0, r.t)(this.options.circumference); } _getRotationExtents() { let e = r.T, t = -r.T; for (let n = 0; n < this.chart.data.datasets.length; ++n) if ( this.chart.isDatasetVisible(n) && this.chart.getDatasetMeta(n).type === this._type ) { const r = this.chart.getDatasetMeta(n).controller, i = r._getRotation(), o = r._getCircumference(); (e = Math.min(e, i)), (t = Math.max(t, i + o)); } return { rotation: e, circumference: t - e }; } update(e) { const t = this.chart, { chartArea: n } = t, i = this._cachedMeta, o = i.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, s = Math.max((Math.min(n.width, n.height) - a) / 2, 0), u = Math.min((0, r.m)(this.options.cutout, s), 1), c = this._getRingWeight(this.index), { circumference: l, rotation: f } = this._getRotationExtents(), { ratioX: d, ratioY: p, offsetX: h, offsetY: g, } = (function (e, t, n) { let i = 1, o = 1, a = 0, s = 0; if (t < r.T) { const u = e, c = u + t, l = Math.cos(u), f = Math.sin(u), d = Math.cos(c), p = Math.sin(c), h = (e, t, i) => (0, r.p)(e, u, c, !0) ? 1 : Math.max(t, t * n, i, i * n), g = (e, t, i) => (0, r.p)(e, u, c, !0) ? -1 : Math.min(t, t * n, i, i * n), m = h(0, l, d), y = h(r.H, f, p), v = g(r.P, l, d), b = g(r.P + r.H, f, p); (i = (m - v) / 2), (o = (y - b) / 2), (a = -(m + v) / 2), (s = -(y + b) / 2); } return { ratioX: i, ratioY: o, offsetX: a, offsetY: s }; })(f, l, u), m = (n.width - a) / d, y = (n.height - a) / p, v = Math.max(Math.min(m, y) / 2, 0), b = (0, r.n)(this.options.radius, v), _ = (b - Math.max(b * u, 0)) / this._getVisibleDatasetWeightTotal(); (this.offsetX = h * b), (this.offsetY = g * b), (i.total = this.calculateTotal()), (this.outerRadius = b - _ * this._getRingWeightOffset(this.index)), (this.innerRadius = Math.max(this.outerRadius - _ * c, 0)), this.updateElements(o, 0, o.length, e); } _circumference(e, t) { const n = this.options, i = this._cachedMeta, o = this._getCircumference(); return (t && n.animation.animateRotate) || !this.chart.getDataVisibility(e) || null === i._parsed[e] || i.data[e].hidden ? 0 : this.calculateCircumference((i._parsed[e] * o) / r.T); } updateElements(e, t, n, r) { const i = "reset" === r, o = this.chart, a = o.chartArea, s = o.options.animation, u = (a.left + a.right) / 2, c = (a.top + a.bottom) / 2, l = i && s.animateScale, f = l ? 0 : this.innerRadius, d = l ? 0 : this.outerRadius, { sharedOptions: p, includeOptions: h } = this._getSharedOptions( t, r ); let g, m = this._getRotation(); for (g = 0; g < t; ++g) m += this._circumference(g, i); for (g = t; g < t + n; ++g) { const t = this._circumference(g, i), n = e[g], o = { x: u + this.offsetX, y: c + this.offsetY, startAngle: m, endAngle: m + t, circumference: t, outerRadius: d, innerRadius: f, }; h && (o.options = p || this.resolveDataElementOptions(g, n.active ? "active" : r)), (m += t), this.updateElement(n, g, o, r); } } calculateTotal() { const e = this._cachedMeta, t = e.data; let n, r = 0; for (n = 0; n < t.length; n++) { const i = e._parsed[n]; null === i || isNaN(i) || !this.chart.getDataVisibility(n) || t[n].hidden || (r += Math.abs(i)); } return r; } calculateCircumference(e) { const t = this._cachedMeta.total; return t > 0 && !isNaN(e) ? r.T * (Math.abs(e) / t) : 0; } getLabelAndValue(e) { const t = this._cachedMeta, n = this.chart, i = n.data.labels || [], o = (0, r.o)(t._parsed[e], n.options.locale); return { label: i[e] || "", value: o }; } getMaxBorderWidth(e) { let t = 0; const n = this.chart; let r, i, o, a, s; if (!e) for (r = 0, i = n.data.datasets.length; r < i; ++r) if (n.isDatasetVisible(r)) { (o = n.getDatasetMeta(r)), (e = o.data), (a = o.controller); break; } if (!e) return 0; for (r = 0, i = e.length; r < i; ++r) (s = a.resolveDataElementOptions(r)), "inner" !== s.borderAlign && (t = Math.max(t, s.borderWidth || 0, s.hoverBorderWidth || 0)); return t; } getMaxOffset(e) { let t = 0; for (let n = 0, r = e.length; n < r; ++n) { const e = this.resolveDataElementOptions(n); t = Math.max(t, e.offset || 0, e.hoverOffset || 0); } return t; } _getRingWeightOffset(e) { let t = 0; for (let n = 0; n < e; ++n) this.chart.isDatasetVisible(n) && (t += this._getRingWeight(n)); return t; } _getRingWeight(e) { return Math.max((0, r.v)(this.chart.data.datasets[e].weight, 1), 0); } _getVisibleDatasetWeightTotal() { return ( this._getRingWeightOffset(this.chart.data.datasets.length) || 1 ); } } class M extends w { static id = "line"; static defaults = { datasetElementType: "line", dataElementType: "point", showLine: !0, spanGaps: !1, }; static overrides = { scales: { _index_: { type: "category" }, _value_: { type: "linear" }, }, }; initialize() { (this.enableOptionSharing = !0), (this.supportsDecimation = !0), super.initialize(); } update(e) { const t = this._cachedMeta, { dataset: n, data: i = [], _dataset: o } = t, a = this.chart._animationsDisabled; let { start: s, count: u } = (0, r.q)(t, i, a); (this._drawStart = s), (this._drawCount = u), (0, r.w)(t) && ((s = 0), (u = i.length)), (n._chart = this.chart), (n._datasetIndex = this.index), (n._decimated = !!o._decimated), (n.points = i); const c = this.resolveDatasetElementOptions(e); this.options.showLine || (c.borderWidth = 0), (c.segment = this.options.segment), this.updateElement(n, void 0, { animated: !a, options: c }, e), this.updateElements(i, s, u, e); } updateElements(e, t, n, i) { const o = "reset" === i, { iScale: a, vScale: s, _stacked: u, _dataset: c, } = this._cachedMeta, { sharedOptions: l, includeOptions: f } = this._getSharedOptions( t, i ), d = a.axis, p = s.axis, { spanGaps: h, segment: g } = this.options, m = (0, r.x)(h) ? h : Number.POSITIVE_INFINITY, y = this.chart._animationsDisabled || o || "none" === i, v = t + n, b = e.length; let _ = t > 0 && this.getParsed(t - 1); for (let n = 0; n < b; ++n) { const h = e[n], b = y ? h : {}; if (n < t || n >= v) { b.skip = !0; continue; } const w = this.getParsed(n), T = (0, r.k)(w[p]), x = (b[d] = a.getPixelForValue(w[d], n)), S = (b[p] = o || T ? s.getBasePixel() : s.getPixelForValue(u ? this.applyStack(s, w, u) : w[p], n)); (b.skip = isNaN(x) || isNaN(S) || T), (b.stop = n > 0 && Math.abs(w[d] - _[d]) > m), g && ((b.parsed = w), (b.raw = c.data[n])), f && (b.options = l || this.resolveDataElementOptions(n, h.active ? "active" : i)), y || this.updateElement(h, n, b, i), (_ = w); } } getMaxOverflow() { const e = this._cachedMeta, t = e.dataset, n = (t.options && t.options.borderWidth) || 0, r = e.data || []; if (!r.length) return n; const i = r[0].size(this.resolveDataElementOptions(0)), o = r[r.length - 1].size( this.resolveDataElementOptions(r.length - 1) ); return Math.max(n, i, o) / 2; } draw() { const e = this._cachedMeta; e.dataset.updateControlPoints(this.chart.chartArea, e.iScale.axis), super.draw(); } } class P extends I { static id = "pie"; static defaults = { cutout: 0, rotation: 0, circumference: 360, radius: "100%", }; } function R(e, t, n, i) { const { controller: o, data: a, _sorted: s } = e, u = o._cachedMeta.iScale; if (u && t === u.axis && "r" !== t && s && a.length) { const e = u._reversePixels ? r.A : r.B; if (!i) return e(a, t, n); if (o._sharedOptions) { const r = a[0], i = "function" == typeof r.getRange && r.getRange(t); if (i) { const r = e(a, t, n - i), o = e(a, t, n + i); return { lo: r.lo, hi: o.hi }; } } } return { lo: 0, hi: a.length - 1 }; } function D(e, t, n, r, i) { const o = e.getSortedVisibleDatasetMetas(), a = n[t]; for (let e = 0, n = o.length; e < n; ++e) { const { index: n, data: s } = o[e], { lo: u, hi: c } = R(o[e], t, a, i); for (let e = u; e <= c; ++e) { const t = s[e]; t.skip || r(t, n, e); } } } function j(e, t, n, i, o) { const a = []; if (!o && !e.isPointInArea(t)) return a; return ( D( e, n, t, function (n, s, u) { (o || (0, r.C)(n, e.chartArea, 0)) && n.inRange(t.x, t.y, i) && a.push({ element: n, datasetIndex: s, index: u }); }, !0 ), a ); } function N(e, t, n, r, i, o) { let a = []; const s = (function (e) { const t = -1 !== e.indexOf("x"), n = -1 !== e.indexOf("y"); return function (e, r) { const i = t ? Math.abs(e.x - r.x) : 0, o = n ? Math.abs(e.y - r.y) : 0; return Math.sqrt(Math.pow(i, 2) + Math.pow(o, 2)); }; })(n); let u = Number.POSITIVE_INFINITY; return ( D(e, n, t, function (n, c, l) { const f = n.inRange(t.x, t.y, i); if (r && !f) return; const d = n.getCenterPoint(i); if (!(!!o || e.isPointInArea(d)) && !f) return; const p = s(t, d); p < u ? ((a = [{ element: n, datasetIndex: c, index: l }]), (u = p)) : p === u && a.push({ element: n, datasetIndex: c, index: l }); }), a ); } function B(e, t, n, i, o, a) { return a || e.isPointInArea(t) ? "r" !== n || i ? N(e, t, n, i, o, a) : (function (e, t, n, i) { let o = []; return ( D(e, n, t, function (e, n, a) { const { startAngle: s, endAngle: u } = e.getProps( ["startAngle", "endAngle"], i ), { angle: c } = (0, r.D)(e, { x: t.x, y: t.y }); (0, r.p)(c, s, u) && o.push({ element: e, datasetIndex: n, index: a }); }), o ); })(e, t, n, o) : []; } function U(e, t, n, r, i) { const o = [], a = "x" === n ? "inXRange" : "inYRange"; let s = !1; return ( D(e, n, t, (e, r, u) => { e[a](t[n], i) && (o.push({ element: e, datasetIndex: r, index: u }), (s = s || e.inRange(t.x, t.y, i))); }), r && !s ? [] : o ); } var F = { evaluateInteractionItems: D, modes: { index(e, t, n, i) { const o = (0, r.z)(t, e), a = n.axis || "x", s = n.includeInvisible || !1, u = n.intersect ? j(e, o, a, i, s) : B(e, o, a, !1, i, s), c = []; return u.length ? (e.getSortedVisibleDatasetMetas().forEach((e) => { const t = u[0].index, n = e.data[t]; n && !n.skip && c.push({ element: n, datasetIndex: e.index, index: t }); }), c) : []; }, dataset(e, t, n, i) { const o = (0, r.z)(t, e), a = n.axis || "xy", s = n.includeInvisible || !1; let u = n.intersect ? j(e, o, a, i, s) : B(e, o, a, !1, i, s); if (u.length > 0) { const t = u[0].datasetIndex, n = e.getDatasetMeta(t).data; u = []; for (let e = 0; e < n.length; ++e) u.push({ element: n[e], datasetIndex: t, index: e }); } return u; }, point: (e, t, n, i) => j(e, (0, r.z)(t, e), n.axis || "xy", i, n.includeInvisible || !1), nearest(e, t, n, i) { const o = (0, r.z)(t, e), a = n.axis || "xy", s = n.includeInvisible || !1; return B(e, o, a, n.intersect, i, s); }, x: (e, t, n, i) => U(e, (0, r.z)(t, e), "x", n.intersect, i), y: (e, t, n, i) => U(e, (0, r.z)(t, e), "y", n.intersect, i), }, }; const z = ["left", "top", "right", "bottom"]; function H(e, t) { return e.filter((e) => e.pos === t); } function q(e, t) { return e.filter((e) => -1 === z.indexOf(e.pos) && e.box.axis === t); } function Z(e, t) { return e.sort((e, n) => { const r = t ? n : e, i = t ? e : n; return r.weight === i.weight ? r.index - i.index : r.weight - i.weight; }); } function V(e, t) { const n = (function (e) { const t = {}; for (const n of e) { const { stack: e, pos: r, stackWeight: i } = n; if (!e || !z.includes(r)) continue; const o = t[e] || (t[e] = { count: 0, placed: 0, weight: 0, size: 0 }); o.count++, (o.weight += i); } return t; })(e), { vBoxMaxWidth: r, hBoxMaxHeight: i } = t; let o, a, s; for (o = 0, a = e.length; o < a; ++o) { s = e[o]; const { fullSize: a } = s.box, u = n[s.stack], c = u && s.stackWeight / u.weight; s.horizontal ? ((s.width = c ? c * r : a && t.availableWidth), (s.height = i)) : ((s.width = r), (s.height = c ? c * i : a && t.availableHeight)); } return n; } function W(e, t, n, r) { return Math.max(e[n], t[n]) + Math.max(e[r], t[r]); } function $(e, t) { (e.top = Math.max(e.top, t.top)), (e.left = Math.max(e.left, t.left)), (e.bottom = Math.max(e.bottom, t.bottom)), (e.right = Math.max(e.right, t.right)); } function G(e, t, n, i) { const { pos: o, box: a } = n, s = e.maxPadding; if (!(0, r.i)(o)) { n.size && (e[o] -= n.size); const t = i[n.stack] || { size: 0, count: 1 }; (t.size = Math.max(t.size, n.horizontal ? a.height : a.width)), (n.size = t.size / t.count), (e[o] += n.size); } a.getPadding && $(s, a.getPadding()); const u = Math.max(0, t.outerWidth - W(s, e, "left", "right")), c = Math.max(0, t.outerHeight - W(s, e, "top", "bottom")), l = u !== e.w, f = c !== e.h; return ( (e.w = u), (e.h = c), n.horizontal ? { same: l, other: f } : { same: f, other: l } ); } function Y(e, t) { const n = t.maxPadding; function r(e) { const r = { left: 0, top: 0, right: 0, bottom: 0 }; return ( e.forEach((e) => { r[e] = Math.max(t[e], n[e]); }), r ); } return r(e ? ["left", "right"] : ["top", "bottom"]); } function K(e, t, n, r) { const i = []; let o, a, s, u, c, l; for (o = 0, a = e.length, c = 0; o < a; ++o) { (s = e[o]), (u = s.box), u.update(s.width || t.w, s.height || t.h, Y(s.horizontal, t)); const { same: a, other: f } = G(t, n, s, r); (c |= a && i.length), (l = l || f), u.fullSize || i.push(s); } return (c && K(i, t, n, r)) || l; } function X(e, t, n, r, i) { (e.top = n), (e.left = t), (e.right = t + r), (e.bottom = n + i), (e.width = r), (e.height = i); } function Q(e, t, n, i) { const o = n.padding; let { x: a, y: s } = t; for (const u of e) { const e = u.box, c = i[u.stack] || { count: 1, placed: 0, weight: 1 }, l = u.stackWeight / c.weight || 1; if (u.horizontal) { const i = t.w * l, a = c.size || e.height; (0, r.h)(c.start) && (s = c.start), e.fullSize ? X(e, o.left, s, n.outerWidth - o.right - o.left, a) : X(e, t.left + c.placed, s, i, a), (c.start = s), (c.placed += i), (s = e.bottom); } else { const i = t.h * l, s = c.size || e.width; (0, r.h)(c.start) && (a = c.start), e.fullSize ? X(e, a, o.top, s, n.outerHeight - o.bottom - o.top) : X(e, a, t.top + c.placed, s, i), (c.start = a), (c.placed += i), (a = e.right); } } (t.x = a), (t.y = s); } var J = { addBox(e, t) { e.boxes || (e.boxes = []), (t.fullSize = t.fullSize || !1), (t.position = t.position || "top"), (t.weight = t.weight || 0), (t._layers = t._layers || function () { return [ { z: 0, draw(e) { t.draw(e); }, }, ]; }), e.boxes.push(t); }, removeBox(e, t) { const n = e.boxes ? e.boxes.indexOf(t) : -1; -1 !== n && e.boxes.splice(n, 1); }, configure(e, t, n) { (t.fullSize = n.fullSize), (t.position = n.position), (t.weight = n.weight); }, update(e, t, n, i) { if (!e) return; const o = (0, r.E)(e.options.layout.padding), a = Math.max(t - o.width, 0), s = Math.max(n - o.height, 0), u = (function (e) { const t = (function (e) { const t = []; let n, r, i, o, a, s; for (n = 0, r = (e || []).length; n < r; ++n) (i = e[n]), ({ position: o, options: { stack: a, stackWeight: s = 1 }, } = i), t.push({ index: n, box: i, pos: o, horizontal: i.isHorizontal(), weight: i.weight, stack: a && o + a, stackWeight: s, }); return t; })(e), n = Z( t.filter((e) => e.box.fullSize), !0 ), r = Z(H(t, "left"), !0), i = Z(H(t, "right")), o = Z(H(t, "top"), !0), a = Z(H(t, "bottom")), s = q(t, "x"), u = q(t, "y"); return { fullSize: n, leftAndTop: r.concat(o), rightAndBottom: i.concat(u).concat(a).concat(s), chartArea: H(t, "chartArea"), vertical: r.concat(i).concat(u), horizontal: o.concat(a).concat(s), }; })(e.boxes), c = u.vertical, l = u.horizontal; (0, r.F)(e.boxes, (e) => { "function" == typeof e.beforeLayout && e.beforeLayout(); }); const f = c.reduce( (e, t) => t.box.options && !1 === t.box.options.display ? e : e + 1, 0 ) || 1, d = Object.freeze({ outerWidth: t, outerHeight: n, padding: o, availableWidth: a, availableHeight: s, vBoxMaxWidth: a / 2 / f, hBoxMaxHeight: s / 2, }), p = Object.assign({}, o); $(p, (0, r.E)(i)); const h = Object.assign( { maxPadding: p, w: a, h: s, x: o.left, y: o.top }, o ), g = V(c.concat(l), d); K(u.fullSize, h, d, g), K(c, h, d, g), K(l, h, d, g) && K(c, h, d, g), (function (e) { const t = e.maxPadding; function n(n) { const r = Math.max(t[n] - e[n], 0); return (e[n] += r), r; } (e.y += n("top")), (e.x += n("left")), n("right"), n("bottom"); })(h), Q(u.leftAndTop, h, d, g), (h.x += h.w), (h.y += h.h), Q(u.rightAndBottom, h, d, g), (e.chartArea = { left: h.left, top: h.top, right: h.left + h.w, bottom: h.top + h.h, height: h.h, width: h.w, }), (0, r.F)(u.chartArea, (t) => { const n = t.box; Object.assign(n, e.chartArea), n.update(h.w, h.h, { left: 0, top: 0, right: 0, bottom: 0 }); }); }, }; class ee { acquireContext(e, t) {} releaseContext(e) { return !1; } addEventListener(e, t, n) {} removeEventListener(e, t, n) {} getDevicePixelRatio() { return 1; } getMaximumSize(e, t, n, r) { return ( (t = Math.max(0, t || e.width)), (n = n || e.height), { width: t, height: Math.max(0, r ? Math.floor(t / r) : n) } ); } isAttached(e) { return !0; } updateConfig(e) {} } class te extends ee { acquireContext(e) { return (e && e.getContext && e.getContext("2d")) || null; } updateConfig(e) { e.options.animation = !1; } } const ne = { touchstart: "mousedown", touchmove: "mousemove", touchend: "mouseup", pointerenter: "mouseenter", pointerdown: "mousedown", pointermove: "mousemove", pointerup: "mouseup", pointerleave: "mouseout", pointerout: "mouseout", }, re = (e) => null === e || "" === e; const ie = !!r.K && { passive: !0 }; function oe(e, t, n) { e && e.canvas && e.canvas.removeEventListener(t, n, ie); } function ae(e, t) { for (const n of e) if (n === t || n.contains(t)) return !0; } function se(e, t, n) { const r = e.canvas, i = new MutationObserver((e) => { let t = !1; for (const n of e) (t = t || ae(n.addedNodes, r)), (t = t && !ae(n.removedNodes, r)); t && n(); }); return i.observe(document, { childList: !0, subtree: !0 }), i; } function ue(e, t, n) { const r = e.canvas, i = new MutationObserver((e) => { let t = !1; for (const n of e) (t = t || ae(n.removedNodes, r)), (t = t && !ae(n.addedNodes, r)); t && n(); }); return i.observe(document, { childList: !0, subtree: !0 }), i; } const ce = new Map(); let le = 0; function fe() { const e = window.devicePixelRatio; e !== le && ((le = e), ce.forEach((t, n) => { n.currentDevicePixelRatio !== e && t(); })); } function de(e, t, n) { const i = e.canvas, o = i && (0, r.I)(i); if (!o) return; const a = (0, r.L)((e, t) => { const r = o.clientWidth; n(e, t), r < o.clientWidth && n(); }, window), s = new ResizeObserver((e) => { const t = e[0], n = t.contentRect.width, r = t.contentRect.height; (0 === n && 0 === r) || a(n, r); }); return ( s.observe(o), (function (e, t) { ce.size || window.addEventListener("resize", fe), ce.set(e, t); })(e, a), s ); } function pe(e, t, n) { n && n.disconnect(), "resize" === t && (function (e) { ce.delete(e), ce.size || window.removeEventListener("resize", fe); })(e); } function he(e, t, n) { const i = e.canvas, o = (0, r.L)((t) => { null !== e.ctx && n( (function (e, t) { const n = ne[e.type] || e.type, { x: i, y: o } = (0, r.z)(e, t); return { type: n, chart: t, native: e, x: void 0 !== i ? i : null, y: void 0 !== o ? o : null, }; })(t, e) ); }, e); return ( (function (e, t, n) { e && e.addEventListener(t, n, ie); })(i, t, o), o ); } class ge extends ee { acquireContext(e, t) { const n = e && e.getContext && e.getContext("2d"); return n && n.canvas === e ? ((function (e, t) { const n = e.style, i = e.getAttribute("height"), o = e.getAttribute("width"); if ( ((e.$chartjs = { initial: { height: i, width: o, style: { display: n.display, height: n.height, width: n.width, }, }, }), (n.display = n.display || "block"), (n.boxSizing = n.boxSizing || "border-box"), re(o)) ) { const t = (0, r.J)(e, "width"); void 0 !== t && (e.width = t); } if (re(i)) if ("" === e.style.height) e.height = e.width / (t || 2); else { const t = (0, r.J)(e, "height"); void 0 !== t && (e.height = t); } })(e, t), n) : null; } releaseContext(e) { const t = e.canvas; if (!t.$chartjs) return !1; const n = t.$chartjs.initial; ["height", "width"].forEach((e) => { const i = n[e]; (0, r.k)(i) ? t.removeAttribute(e) : t.setAttribute(e, i); }); const i = n.style || {}; return ( Object.keys(i).forEach((e) => { t.style[e] = i[e]; }), (t.width = t.width), delete t.$chartjs, !0 ); } addEventListener(e, t, n) { this.removeEventListener(e, t); const r = e.$proxies || (e.$proxies = {}), i = { attach: se, detach: ue, resize: de }[t] || he; r[t] = i(e, t, n); } removeEventListener(e, t) { const n = e.$proxies || (e.$proxies = {}), r = n[t]; if (!r) return; (({ attach: pe, detach: pe, resize: pe })[t] || oe)(e, t, r), (n[t] = void 0); } getDevicePixelRatio() { return window.devicePixelRatio; } getMaximumSize(e, t, n, i) { return (0, r.G)(e, t, n, i); } isAttached(e) { const t = (0, r.I)(e); return !(!t || !t.isConnected); } } class me { static defaults = {}; static defaultRoutes = void 0; x; y; active = !1; options; $animations; tooltipPosition(e) { const { x: t, y: n } = this.getProps(["x", "y"], e); return { x: t, y: n }; } hasValue() { return (0, r.x)(this.x) && (0, r.x)(this.y); } getProps(e, t) { const n = this.$animations; if (!t || !n) return this; const r = {}; return ( e.forEach((e) => { r[e] = n[e] && n[e].active() ? n[e]._to : this[e]; }), r ); } } function ye(e, t) { const n = e.options.ticks, i = (function (e) { const t = e.options.offset, n = e._tickSize(), r = e._length / n + (t ? 0 : 1), i = e._maxLength / n; return Math.floor(Math.min(r, i)); })(e), o = Math.min(n.maxTicksLimit || i, i), a = n.major.enabled ? (function (e) { const t = []; let n, r; for (n = 0, r = e.length; n < r; n++) e[n].major && t.push(n); return t; })(t) : [], s = a.length, u = a[0], c = a[s - 1], l = []; if (s > o) return ( (function (e, t, n, r) { let i, o = 0, a = n[0]; for (r = Math.ceil(r), i = 0; i < e.length; i++) i === a && (t.push(e[i]), o++, (a = n[o * r])); })(t, l, a, s / o), l ); const f = (function (e, t, n) { const i = (function (e) { const t = e.length; let n, r; if (t < 2) return !1; for (r = e[0], n = 1; n < t; ++n) if (e[n] - e[n - 1] !== r) return !1; return r; })(e), o = t.length / n; if (!i) return Math.max(o, 1); const a = (0, r.N)(i); for (let e = 0, t = a.length - 1; e < t; e++) { const t = a[e]; if (t > o) return t; } return Math.max(o, 1); })(a, t, o); if (s > 0) { let e, n; const i = s > 1 ? Math.round((c - u) / (s - 1)) : null; for ( ve(t, l, f, (0, r.k)(i) ? 0 : u - i, u), e = 0, n = s - 1; e < n; e++ ) ve(t, l, f, a[e], a[e + 1]); return ve(t, l, f, c, (0, r.k)(i) ? t.length : c + i), l; } return ve(t, l, f), l; } function ve(e, t, n, i, o) { const a = (0, r.v)(i, 0), s = Math.min((0, r.v)(o, e.length), e.length); let u, c, l, f = 0; for ( n = Math.ceil(n), o && ((u = o - i), (n = u / Math.floor(u / n))), l = a; l < 0; ) f++, (l = Math.round(a + f * n)); for (c = Math.max(a, 0); c < s; c++) c === l && (t.push(e[c]), f++, (l = Math.round(a + f * n))); } const be = (e, t, n) => "top" === t || "left" === t ? e[t] + n : e[t] - n, _e = (e, t) => Math.min(t || e, e); function we(e, t) { const n = [], r = e.length / t, i = e.length; let o = 0; for (; o < i; o += r) n.push(e[Math.floor(o)]); return n; } function Te(e, t, n) { const r = e.ticks.length, i = Math.min(t, r - 1), o = e._startPixel, a = e._endPixel, s = 1e-6; let u, c = e.getPixelForTick(i); if ( !( n && ((u = 1 === r ? Math.max(c - o, a - c) : 0 === t ? (e.getPixelForTick(1) - c) / 2 : (c - e.getPixelForTick(i - 1)) / 2), (c += i < t ? u : -u), c < o - s || c > a + s) ) ) return c; } function xe(e) { return e.drawTicks ? e.tickLength : 0; } function Se(e, t) { if (!e.display) return 0; const n = (0, r.a0)(e.font, t), i = (0, r.E)(e.padding); return ((0, r.b)(e.text) ? e.text.length : 1) * n.lineHeight + i.height; } function ke(e, t, n) { let i = (0, r.a1)(e); return ( ((n && "right" !== t) || (!n && "right" === t)) && (i = ((e) => ("left" === e ? "right" : "right" === e ? "left" : e))( i )), i ); } class Ee extends me { constructor(e) { super(), (this.id = e.id), (this.type = e.type), (this.options = void 0), (this.ctx = e.ctx), (this.chart = e.chart), (this.top = void 0), (this.bottom = void 0), (this.left = void 0), (this.right = void 0), (this.width = void 0), (this.height = void 0), (this._margins = { left: 0, right: 0, top: 0, bottom: 0 }), (this.maxWidth = void 0), (this.maxHeight = void 0), (this.paddingTop = void 0), (this.paddingBottom = void 0), (this.paddingLeft = void 0), (this.paddingRight = void 0), (this.axis = void 0), (this.labelRotation = void 0), (this.min = void 0), (this.max = void 0), (this._range = void 0), (this.ticks = []), (this._gridLineItems = null), (this._labelItems = null), (this._labelSizes = null), (this._length = 0), (this._maxLength = 0), (this._longestTextCache = {}), (this._startPixel = void 0), (this._endPixel = void 0), (this._reversePixels = !1), (this._userMax = void 0), (this._userMin = void 0), (this._suggestedMax = void 0), (this._suggestedMin = void 0), (this._ticksLength = 0), (this._borderValue = 0), (this._cache = {}), (this._dataLimitsCached = !1), (this.$context = void 0); } init(e) { (this.options = e.setContext(this.getContext())), (this.axis = e.axis), (this._userMin = this.parse(e.min)), (this._userMax = this.parse(e.max)), (this._suggestedMin = this.parse(e.suggestedMin)), (this._suggestedMax = this.parse(e.suggestedMax)); } parse(e, t) { return e; } getUserBounds() { let { _userMin: e, _userMax: t, _suggestedMin: n, _suggestedMax: i, } = this; return ( (e = (0, r.O)(e, Number.POSITIVE_INFINITY)), (t = (0, r.O)(t, Number.NEGATIVE_INFINITY)), (n = (0, r.O)(n, Number.POSITIVE_INFINITY)), (i = (0, r.O)(i, Number.NEGATIVE_INFINITY)), { min: (0, r.O)(e, n), max: (0, r.O)(t, i), minDefined: (0, r.g)(e), maxDefined: (0, r.g)(t), } ); } getMinMax(e) { let t, { min: n, max: i, minDefined: o, maxDefined: a, } = this.getUserBounds(); if (o && a) return { min: n, max: i }; const s = this.getMatchingVisibleMetas(); for (let r = 0, u = s.length; r < u; ++r) (t = s[r].controller.getMinMax(this, e)), o || (n = Math.min(n, t.min)), a || (i = Math.max(i, t.max)); return ( (n = a && n > i ? i : n), (i = o && n > i ? n : i), { min: (0, r.O)(n, (0, r.O)(i, n)), max: (0, r.O)(i, (0, r.O)(n, i)), } ); } getPadding() { return { left: this.paddingLeft || 0, top: this.paddingTop || 0, right: this.paddingRight || 0, bottom: this.paddingBottom || 0, }; } getTicks() { return this.ticks; } getLabels() { const e = this.chart.data; return ( this.options.labels || (this.isHorizontal() ? e.xLabels : e.yLabels) || e.labels || [] ); } getLabelItems(e = this.chart.chartArea) { return ( this._labelItems || (this._labelItems = this._computeLabelItems(e)) ); } beforeLayout() { (this._cache = {}), (this._dataLimitsCached = !1); } beforeUpdate() { (0, r.Q)(this.options.beforeUpdate, [this]); } update(e, t, n) { const { beginAtZero: i, grace: o, ticks: a } = this.options, s = a.sampleSize; this.beforeUpdate(), (this.maxWidth = e), (this.maxHeight = t), (this._margins = n = Object.assign({ left: 0, right: 0, top: 0, bottom: 0 }, n)), (this.ticks = null), (this._labelSizes = null), (this._gridLineItems = null), (this._labelItems = null), this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), (this._maxLength = this.isHorizontal() ? this.width + n.left + n.right : this.height + n.top + n.bottom), this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), (this._range = (0, r.R)(this, o, i)), (this._dataLimitsCached = !0)), this.beforeBuildTicks(), (this.ticks = this.buildTicks() || []), this.afterBuildTicks(); const u = s < this.ticks.length; this._convertTicksToLabels(u ? we(this.ticks, s) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || "auto" === a.source) && ((this.ticks = ye(this, this.ticks)), (this._labelSizes = null), this.afterAutoSkip()), u && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate(); } configure() { let e, t, n = this.options.reverse; this.isHorizontal() ? ((e = this.left), (t = this.right)) : ((e = this.top), (t = this.bottom), (n = !n)), (this._startPixel = e), (this._endPixel = t), (this._reversePixels = n), (this._length = t - e), (this._alignToPixels = this.options.alignToPixels); } afterUpdate() { (0, r.Q)(this.options.afterUpdate, [this]); } beforeSetDimensions() { (0, r.Q)(this.options.beforeSetDimensions, [this]); } setDimensions() { this.isHorizontal() ? ((this.width = this.maxWidth), (this.left = 0), (this.right = this.width)) : ((this.height = this.maxHeight), (this.top = 0), (this.bottom = this.height)), (this.paddingLeft = 0), (this.paddingTop = 0), (this.paddingRight = 0), (this.paddingBottom = 0); } afterSetDimensions() { (0, r.Q)(this.options.afterSetDimensions, [this]); } _callHooks(e) { this.chart.notifyPlugins(e, this.getContext()), (0, r.Q)(this.options[e], [this]); } beforeDataLimits() { this._callHooks("beforeDataLimits"); } determineDataLimits() {} afterDataLimits() { this._callHooks("afterDataLimits"); } beforeBuildTicks() { this._callHooks("beforeBuildTicks"); } buildTicks() { return []; } afterBuildTicks() { this._callHooks("afterBuildTicks"); } beforeTickToLabelConversion() { (0, r.Q)(this.options.beforeTickToLabelConversion, [this]); } generateTickLabels(e) { const t = this.options.ticks; let n, i, o; for (n = 0, i = e.length; n < i; n++) (o = e[n]), (o.label = (0, r.Q)(t.callback, [o.value, n, e], this)); } afterTickToLabelConversion() { (0, r.Q)(this.options.afterTickToLabelConversion, [this]); } beforeCalculateLabelRotation() { (0, r.Q)(this.options.beforeCalculateLabelRotation, [this]); } calculateLabelRotation() { const e = this.options, t = e.ticks, n = _e(this.ticks.length, e.ticks.maxTicksLimit), i = t.minRotation || 0, o = t.maxRotation; let a, s, u, c = i; if ( !this._isVisible() || !t.display || i >= o || n <= 1 || !this.isHorizontal() ) return void (this.labelRotation = i); const l = this._getLabelSizes(), f = l.widest.width, d = l.highest.height, p = (0, r.S)(this.chart.width - f, 0, this.maxWidth); (a = e.offset ? this.maxWidth / n : p / (n - 1)), f + 6 > a && ((a = p / (n - (e.offset ? 0.5 : 1))), (s = this.maxHeight - xe(e.grid) - t.padding - Se(e.title, this.chart.options.font)), (u = Math.sqrt(f * f + d * d)), (c = (0, r.U)( Math.min( Math.asin((0, r.S)((l.highest.height + 6) / a, -1, 1)), Math.asin((0, r.S)(s / u, -1, 1)) - Math.asin((0, r.S)(d / u, -1, 1)) ) )), (c = Math.max(i, Math.min(o, c)))), (this.labelRotation = c); } afterCalculateLabelRotation() { (0, r.Q)(this.options.afterCalculateLabelRotation, [this]); } afterAutoSkip() {} beforeFit() { (0, r.Q)(this.options.beforeFit, [this]); } fit() { const e = { width: 0, height: 0 }, { chart: t, options: { ticks: n, title: i, grid: o }, } = this, a = this._isVisible(), s = this.isHorizontal(); if (a) { const a = Se(i, t.options.font); if ( (s ? ((e.width = this.maxWidth), (e.height = xe(o) + a)) : ((e.height = this.maxHeight), (e.width = xe(o) + a)), n.display && this.ticks.length) ) { const { first: t, last: i, widest: o, highest: a, } = this._getLabelSizes(), u = 2 * n.padding, c = (0, r.t)(this.labelRotation), l = Math.cos(c), f = Math.sin(c); if (s) { const t = n.mirror ? 0 : f * o.width + l * a.height; e.height = Math.min(this.maxHeight, e.height + t + u); } else { const t = n.mirror ? 0 : l * o.width + f * a.height; e.width = Math.min(this.maxWidth, e.width + t + u); } this._calculatePadding(t, i, f, l); } } this._handleMargins(), s ? ((this.width = this._length = t.width - this._margins.left - this._margins.right), (this.height = e.height)) : ((this.width = e.width), (this.height = this._length = t.height - this._margins.top - this._margins.bottom)); } _calculatePadding(e, t, n, r) { const { ticks: { align: i, padding: o }, position: a, } = this.options, s = 0 !== this.labelRotation, u = "top" !== a && "x" === this.axis; if (this.isHorizontal()) { const a = this.getPixelForTick(0) - this.left, c = this.right - this.getPixelForTick(this.ticks.length - 1); let l = 0, f = 0; s ? u ? ((l = r * e.width), (f = n * t.height)) : ((l = n * e.height), (f = r * t.width)) : "start" === i ? (f = t.width) : "end" === i ? (l = e.width) : "inner" !== i && ((l = e.width / 2), (f = t.width / 2)), (this.paddingLeft = Math.max( ((l - a + o) * this.width) / (this.width - a), 0 )), (this.paddingRight = Math.max( ((f - c + o) * this.width) / (this.width - c), 0 )); } else { let n = t.height / 2, r = e.height / 2; "start" === i ? ((n = 0), (r = e.height)) : "end" === i && ((n = t.height), (r = 0)), (this.paddingTop = n + o), (this.paddingBottom = r + o); } } _handleMargins() { this._margins && ((this._margins.left = Math.max( this.paddingLeft, this._margins.left )), (this._margins.top = Math.max(this.paddingTop, this._margins.top)), (this._margins.right = Math.max( this.paddingRight, this._margins.right )), (this._margins.bottom = Math.max( this.paddingBottom, this._margins.bottom ))); } afterFit() { (0, r.Q)(this.options.afterFit, [this]); } isHorizontal() { const { axis: e, position: t } = this.options; return "top" === t || "bottom" === t || "x" === e; } isFullSize() { return this.options.fullSize; } _convertTicksToLabels(e) { let t, n; for ( this.beforeTickToLabelConversion(), this.generateTickLabels(e), t = 0, n = e.length; t < n; t++ ) (0, r.k)(e[t].label) && (e.splice(t, 1), n--, t--); this.afterTickToLabelConversion(); } _getLabelSizes() { let e = this._labelSizes; if (!e) { const t = this.options.ticks.sampleSize; let n = this.ticks; t < n.length && (n = we(n, t)), (this._labelSizes = e = this._computeLabelSizes( n, n.length, this.options.ticks.maxTicksLimit )); } return e; } _computeLabelSizes(e, t, n) { const { ctx: i, _longestTextCache: o } = this, a = [], s = [], u = Math.floor(t / _e(t, n)); let c, l, f, d, p, h, g, m, y, v, b, _ = 0, w = 0; for (c = 0; c < t; c += u) { if ( ((d = e[c].label), (p = this._resolveTickFontOptions(c)), (i.font = h = p.string), (g = o[h] = o[h] || { data: {}, gc: [] }), (m = p.lineHeight), (y = v = 0), (0, r.k)(d) || (0, r.b)(d)) ) { if ((0, r.b)(d)) for (l = 0, f = d.length; l < f; ++l) (b = d[l]), (0, r.k)(b) || (0, r.b)(b) || ((y = (0, r.V)(i, g.data, g.gc, y, b)), (v += m)); } else (y = (0, r.V)(i, g.data, g.gc, y, d)), (v = m); a.push(y), s.push(v), (_ = Math.max(y, _)), (w = Math.max(v, w)); } !(function (e, t) { (0, r.F)(e, (e) => { const n = e.gc, r = n.length / 2; let i; if (r > t) { for (i = 0; i < r; ++i) delete e.data[n[i]]; n.splice(0, r); } }); })(o, t); const T = a.indexOf(_), x = s.indexOf(w), S = (e) => ({ width: a[e] || 0, height: s[e] || 0 }); return { first: S(0), last: S(t - 1), widest: S(T), highest: S(x), widths: a, heights: s, }; } getLabelForValue(e) { return e; } getPixelForValue(e, t) { return NaN; } getValueForPixel(e) {} getPixelForTick(e) { const t = this.ticks; return e < 0 || e > t.length - 1 ? null : this.getPixelForValue(t[e].value); } getPixelForDecimal(e) { this._reversePixels && (e = 1 - e); const t = this._startPixel + e * this._length; return (0, r.W)(this._alignToPixels ? (0, r.X)(this.chart, t, 0) : t); } getDecimalForPixel(e) { const t = (e - this._startPixel) / this._length; return this._reversePixels ? 1 - t : t; } getBasePixel() { return this.getPixelForValue(this.getBaseValue()); } getBaseValue() { const { min: e, max: t } = this; return e < 0 && t < 0 ? t : e > 0 && t > 0 ? e : 0; } getContext(e) { const t = this.ticks || []; if (e >= 0 && e < t.length) { const n = t[e]; return ( n.$context || (n.$context = (function (e, t, n) { return (0, r.j)(e, { tick: n, index: t, type: "tick" }); })(this.getContext(), e, n)) ); } return ( this.$context || (this.$context = ((n = this.chart.getContext()), (i = this), (0, r.j)(n, { scale: i, type: "scale" }))) ); var n, i; } _tickSize() { const e = this.options.ticks, t = (0, r.t)(this.labelRotation), n = Math.abs(Math.cos(t)), i = Math.abs(Math.sin(t)), o = this._getLabelSizes(), a = e.autoSkipPadding || 0, s = o ? o.widest.width + a : 0, u = o ? o.highest.height + a : 0; return this.isHorizontal() ? u * n > s * i ? s / n : u / i : u * i < s * n ? u / n : s / i; } _isVisible() { const e = this.options.display; return "auto" !== e ? !!e : this.getMatchingVisibleMetas().length > 0; } _computeGridLineItems(e) { const t = this.axis, n = this.chart, i = this.options, { grid: o, position: a, border: s } = i, u = o.offset, c = this.isHorizontal(), l = this.ticks.length + (u ? 1 : 0), f = xe(o), d = [], p = s.setContext(this.getContext()), h = p.display ? p.width : 0, g = h / 2, m = function (e) { return (0, r.X)(n, e, h); }; let y, v, b, _, w, T, x, S, k, E, O, C; if ("top" === a) (y = m(this.bottom)), (T = this.bottom - f), (S = y - g), (E = m(e.top) + g), (C = e.bottom); else if ("bottom" === a) (y = m(this.top)), (E = e.top), (C = m(e.bottom) - g), (T = y + g), (S = this.top + f); else if ("left" === a) (y = m(this.right)), (w = this.right - f), (x = y - g), (k = m(e.left) + g), (O = e.right); else if ("right" === a) (y = m(this.left)), (k = e.left), (O = m(e.right) - g), (w = y + g), (x = this.left + f); else if ("x" === t) { if ("center" === a) y = m((e.top + e.bottom) / 2 + 0.5); else if ((0, r.i)(a)) { const e = Object.keys(a)[0], t = a[e]; y = m(this.chart.scales[e].getPixelForValue(t)); } (E = e.top), (C = e.bottom), (T = y + g), (S = T + f); } else if ("y" === t) { if ("center" === a) y = m((e.left + e.right) / 2); else if ((0, r.i)(a)) { const e = Object.keys(a)[0], t = a[e]; y = m(this.chart.scales[e].getPixelForValue(t)); } (w = y - g), (x = w - f), (k = e.left), (O = e.right); } const L = (0, r.v)(i.ticks.maxTicksLimit, l), A = Math.max(1, Math.ceil(l / L)); for (v = 0; v < l; v += A) { const e = this.getContext(v), t = o.setContext(e), i = s.setContext(e), a = t.lineWidth, l = t.color, f = i.dash || [], p = i.dashOffset, h = t.tickWidth, g = t.tickColor, m = t.tickBorderDash || [], y = t.tickBorderDashOffset; (b = Te(this, v, u)), void 0 !== b && ((_ = (0, r.X)(n, b, a)), c ? (w = x = k = O = _) : (T = S = E = C = _), d.push({ tx1: w, ty1: T, tx2: x, ty2: S, x1: k, y1: E, x2: O, y2: C, width: a, color: l, borderDash: f, borderDashOffset: p, tickWidth: h, tickColor: g, tickBorderDash: m, tickBorderDashOffset: y, })); } return (this._ticksLength = l), (this._borderValue = y), d; } _computeLabelItems(e) { const t = this.axis, n = this.options, { position: i, ticks: o } = n, a = this.isHorizontal(), s = this.ticks, { align: u, crossAlign: c, padding: l, mirror: f } = o, d = xe(n.grid), p = d + l, h = f ? -l : p, g = -(0, r.t)(this.labelRotation), m = []; let y, v, b, _, w, T, x, S, k, E, O, C, L = "middle"; if ("top" === i) (T = this.bottom - h), (x = this._getXAxisLabelAlignment()); else if ("bottom" === i) (T = this.top + h), (x = this._getXAxisLabelAlignment()); else if ("left" === i) { const e = this._getYAxisLabelAlignment(d); (x = e.textAlign), (w = e.x); } else if ("right" === i) { const e = this._getYAxisLabelAlignment(d); (x = e.textAlign), (w = e.x); } else if ("x" === t) { if ("center" === i) T = (e.top + e.bottom) / 2 + p; else if ((0, r.i)(i)) { const e = Object.keys(i)[0], t = i[e]; T = this.chart.scales[e].getPixelForValue(t) + p; } x = this._getXAxisLabelAlignment(); } else if ("y" === t) { if ("center" === i) w = (e.left + e.right) / 2 - p; else if ((0, r.i)(i)) { const e = Object.keys(i)[0], t = i[e]; w = this.chart.scales[e].getPixelForValue(t); } x = this._getYAxisLabelAlignment(d).textAlign; } "y" === t && ("start" === u ? (L = "top") : "end" === u && (L = "bottom")); const A = this._getLabelSizes(); for (y = 0, v = s.length; y < v; ++y) { (b = s[y]), (_ = b.label); const e = o.setContext(this.getContext(y)); (S = this.getPixelForTick(y) + o.labelOffset), (k = this._resolveTickFontOptions(y)), (E = k.lineHeight), (O = (0, r.b)(_) ? _.length : 1); const t = O / 2, n = e.color, u = e.textStrokeColor, l = e.textStrokeWidth; let d, p = x; if ( (a ? ((w = S), "inner" === x && (p = y === v - 1 ? this.options.reverse ? "left" : "right" : 0 === y ? this.options.reverse ? "right" : "left" : "center"), (C = "top" === i ? "near" === c || 0 !== g ? -O * E + E / 2 : "center" === c ? -A.highest.height / 2 - t * E + E : -A.highest.height + E / 2 : "near" === c || 0 !== g ? E / 2 : "center" === c ? A.highest.height / 2 - t * E : A.highest.height - O * E), f && (C *= -1), 0 === g || e.showLabelBackdrop || (w += (E / 2) * Math.sin(g))) : ((T = S), (C = ((1 - O) * E) / 2)), e.showLabelBackdrop) ) { const t = (0, r.E)(e.backdropPadding), n = A.heights[y], i = A.widths[y]; let o = C - t.top, a = 0 - t.left; switch (L) { case "middle": o -= n / 2; break; case "bottom": o -= n; } switch (x) { case "center": a -= i / 2; break; case "right": a -= i; break; case "inner": y === v - 1 ? (a -= i) : y > 0 && (a -= i / 2); } d = { left: a, top: o, width: i + t.width, height: n + t.height, color: e.backdropColor, }; } m.push({ label: _, font: k, textOffset: C, options: { rotation: g, color: n, strokeColor: u, strokeWidth: l, textAlign: p, textBaseline: L, translation: [w, T], backdrop: d, }, }); } return m; } _getXAxisLabelAlignment() { const { position: e, ticks: t } = this.options; if (-(0, r.t)(this.labelRotation)) return "top" === e ? "left" : "right"; let n = "center"; return ( "start" === t.align ? (n = "left") : "end" === t.align ? (n = "right") : "inner" === t.align && (n = "inner"), n ); } _getYAxisLabelAlignment(e) { const { position: t, ticks: { crossAlign: n, mirror: r, padding: i }, } = this.options, o = e + i, a = this._getLabelSizes().widest.width; let s, u; return ( "left" === t ? r ? ((u = this.right + i), "near" === n ? (s = "left") : "center" === n ? ((s = "center"), (u += a / 2)) : ((s = "right"), (u += a))) : ((u = this.right - o), "near" === n ? (s = "right") : "center" === n ? ((s = "center"), (u -= a / 2)) : ((s = "left"), (u = this.left))) : "right" === t ? r ? ((u = this.left + i), "near" === n ? (s = "right") : "center" === n ? ((s = "center"), (u -= a / 2)) : ((s = "left"), (u -= a))) : ((u = this.left + o), "near" === n ? (s = "left") : "center" === n ? ((s = "center"), (u += a / 2)) : ((s = "right"), (u = this.right))) : (s = "right"), { textAlign: s, x: u } ); } _computeLabelArea() { if (this.options.ticks.mirror) return; const e = this.chart, t = this.options.position; return "left" === t || "right" === t ? { top: 0, left: this.left, bottom: e.height, right: this.right } : "top" === t || "bottom" === t ? { top: this.top, left: 0, bottom: this.bottom, right: e.width } : void 0; } drawBackground() { const { ctx: e, options: { backgroundColor: t }, left: n, top: r, width: i, height: o, } = this; t && (e.save(), (e.fillStyle = t), e.fillRect(n, r, i, o), e.restore()); } getLineWidthForValue(e) { const t = this.options.grid; if (!this._isVisible() || !t.display) return 0; const n = this.ticks.findIndex((t) => t.value === e); if (n >= 0) { return t.setContext(this.getContext(n)).lineWidth; } return 0; } drawGrid(e) { const t = this.options.grid, n = this.ctx, r = this._gridLineItems || (this._gridLineItems = this._computeGridLineItems(e)); let i, o; const a = (e, t, r) => { r.width && r.color && (n.save(), (n.lineWidth = r.width), (n.strokeStyle = r.color), n.setLineDash(r.borderDash || []), (n.lineDashOffset = r.borderDashOffset), n.beginPath(), n.moveTo(e.x, e.y), n.lineTo(t.x, t.y), n.stroke(), n.restore()); }; if (t.display) for (i = 0, o = r.length; i < o; ++i) { const e = r[i]; t.drawOnChartArea && a({ x: e.x1, y: e.y1 }, { x: e.x2, y: e.y2 }, e), t.drawTicks && a( { x: e.tx1, y: e.ty1 }, { x: e.tx2, y: e.ty2 }, { color: e.tickColor, width: e.tickWidth, borderDash: e.tickBorderDash, borderDashOffset: e.tickBorderDashOffset, } ); } } drawBorder() { const { chart: e, ctx: t, options: { border: n, grid: i }, } = this, o = n.setContext(this.getContext()), a = n.display ? o.width : 0; if (!a) return; const s = i.setContext(this.getContext(0)).lineWidth, u = this._borderValue; let c, l, f, d; this.isHorizontal() ? ((c = (0, r.X)(e, this.left, a) - a / 2), (l = (0, r.X)(e, this.right, s) + s / 2), (f = d = u)) : ((f = (0, r.X)(e, this.top, a) - a / 2), (d = (0, r.X)(e, this.bottom, s) + s / 2), (c = l = u)), t.save(), (t.lineWidth = o.width), (t.strokeStyle = o.color), t.beginPath(), t.moveTo(c, f), t.lineTo(l, d), t.stroke(), t.restore(); } drawLabels(e) { if (!this.options.ticks.display) return; const t = this.ctx, n = this._computeLabelArea(); n && (0, r.Y)(t, n); const i = this.getLabelItems(e); for (const e of i) { const n = e.options, i = e.font, o = e.label, a = e.textOffset; (0, r.Z)(t, o, 0, a, i, n); } n && (0, r.$)(t); } drawTitle() { const { ctx: e, options: { position: t, title: n, reverse: i }, } = this; if (!n.display) return; const o = (0, r.a0)(n.font), a = (0, r.E)(n.padding), s = n.align; let u = o.lineHeight / 2; "bottom" === t || "center" === t || (0, r.i)(t) ? ((u += a.bottom), (0, r.b)(n.text) && (u += o.lineHeight * (n.text.length - 1))) : (u += a.top); const { titleX: c, titleY: l, maxWidth: f, rotation: d, } = (function (e, t, n, i) { const { top: o, left: a, bottom: s, right: u, chart: c } = e, { chartArea: l, scales: f } = c; let d, p, h, g = 0; const m = s - o, y = u - a; if (e.isHorizontal()) { if (((p = (0, r.a2)(i, a, u)), (0, r.i)(n))) { const e = Object.keys(n)[0], r = n[e]; h = f[e].getPixelForValue(r) + m - t; } else h = "center" === n ? (l.bottom + l.top) / 2 + m - t : be(e, n, t); d = u - a; } else { if ((0, r.i)(n)) { const e = Object.keys(n)[0], r = n[e]; p = f[e].getPixelForValue(r) - y + t; } else p = "center" === n ? (l.left + l.right) / 2 - y + t : be(e, n, t); (h = (0, r.a2)(i, s, o)), (g = "left" === n ? -r.H : r.H); } return { titleX: p, titleY: h, maxWidth: d, rotation: g }; })(this, u, t, s); (0, r.Z)(e, n.text, 0, 0, o, { color: n.color, maxWidth: f, rotation: d, textAlign: ke(s, t, i), textBaseline: "middle", translation: [c, l], }); } draw(e) { this._isVisible() && (this.drawBackground(), this.drawGrid(e), this.drawBorder(), this.drawTitle(), this.drawLabels(e)); } _layers() { const e = this.options, t = (e.ticks && e.ticks.z) || 0, n = (0, r.v)(e.grid && e.grid.z, -1), i = (0, r.v)(e.border && e.border.z, 0); return this._isVisible() && this.draw === Ee.prototype.draw ? [ { z: n, draw: (e) => { this.drawBackground(), this.drawGrid(e), this.drawTitle(); }, }, { z: i, draw: () => { this.drawBorder(); }, }, { z: t, draw: (e) => { this.drawLabels(e); }, }, ] : [ { z: t, draw: (e) => { this.draw(e); }, }, ]; } getMatchingVisibleMetas(e) { const t = this.chart.getSortedVisibleDatasetMetas(), n = this.axis + "AxisID", r = []; let i, o; for (i = 0, o = t.length; i < o; ++i) { const o = t[i]; o[n] !== this.id || (e && o.type !== e) || r.push(o); } return r; } _resolveTickFontOptions(e) { const t = this.options.ticks.setContext(this.getContext(e)); return (0, r.a0)(t.font); } _maxDigits() { const e = this._resolveTickFontOptions(0).lineHeight; return (this.isHorizontal() ? this.width : this.height) / e; } } class Oe { constructor(e, t, n) { (this.type = e), (this.scope = t), (this.override = n), (this.items = Object.create(null)); } isForType(e) { return Object.prototype.isPrototypeOf.call( this.type.prototype, e.prototype ); } register(e) { const t = Object.getPrototypeOf(e); let n; (function (e) { return "id" in e && "defaults" in e; })(t) && (n = this.register(t)); const i = this.items, o = e.id, a = this.scope + "." + o; if (!o) throw new Error("class does not have id: " + e); return ( o in i || ((i[o] = e), (function (e, t, n) { const i = (0, r.a4)(Object.create(null), [ n ? r.d.get(n) : {}, r.d.get(t), e.defaults, ]); r.d.set(t, i), e.defaultRoutes && (function (e, t) { Object.keys(t).forEach((n) => { const i = n.split("."), o = i.pop(), a = [e].concat(i).join("."), s = t[n].split("."), u = s.pop(), c = s.join("."); r.d.route(a, o, c, u); }); })(t, e.defaultRoutes); e.descriptors && r.d.describe(t, e.descriptors); })(e, a, n), this.override && r.d.override(e.id, e.overrides)), a ); } get(e) { return this.items[e]; } unregister(e) { const t = this.items, n = e.id, i = this.scope; n in t && delete t[n], i && n in r.d[i] && (delete r.d[i][n], this.override && delete r.a3[n]); } } class Ce { constructor() { (this.controllers = new Oe(w, "datasets", !0)), (this.elements = new Oe(me, "elements")), (this.plugins = new Oe(Object, "plugins")), (this.scales = new Oe(Ee, "scales")), (this._typedRegistries = [ this.controllers, this.scales, this.elements, ]); } add(...e) { this._each("register", e); } remove(...e) { this._each("unregister", e); } addControllers(...e) { this._each("register", e, this.controllers); } addElements(...e) { this._each("register", e, this.elements); } addPlugins(...e) { this._each("register", e, this.plugins); } addScales(...e) { this._each("register", e, this.scales); } getController(e) { return this._get(e, this.controllers, "controller"); } getElement(e) { return this._get(e, this.elements, "element"); } getPlugin(e) { return this._get(e, this.plugins, "plugin"); } getScale(e) { return this._get(e, this.scales, "scale"); } removeControllers(...e) { this._each("unregister", e, this.controllers); } removeElements(...e) { this._each("unregister", e, this.elements); } removePlugins(...e) { this._each("unregister", e, this.plugins); } removeScales(...e) { this._each("unregister", e, this.scales); } _each(e, t, n) { [...t].forEach((t) => { const i = n || this._getRegistryForType(t); n || i.isForType(t) || (i === this.plugins && t.id) ? this._exec(e, i, t) : (0, r.F)(t, (t) => { const r = n || this._getRegistryForType(t); this._exec(e, r, t); }); }); } _exec(e, t, n) { const i = (0, r.a5)(e); (0, r.Q)(n["before" + i], [], n), t[e](n), (0, r.Q)(n["after" + i], [], n); } _getRegistryForType(e) { for (let t = 0; t < this._typedRegistries.length; t++) { const n = this._typedRegistries[t]; if (n.isForType(e)) return n; } return this.plugins; } _get(e, t, n) { const r = t.get(e); if (void 0 === r) throw new Error('"' + e + '" is not a registered ' + n + "."); return r; } } var Le = new Ce(); class Ae { constructor() { this._init = []; } notify(e, t, n, r) { "beforeInit" === t && ((this._init = this._createDescriptors(e, !0)), this._notify(this._init, e, "install")); const i = r ? this._descriptors(e).filter(r) : this._descriptors(e), o = this._notify(i, e, t, n); return ( "afterDestroy" === t && (this._notify(i, e, "stop"), this._notify(this._init, e, "uninstall")), o ); } _notify(e, t, n, i) { i = i || {}; for (const o of e) { const e = o.plugin, a = e[n], s = [t, i, o.options]; if (!1 === (0, r.Q)(a, s, e) && i.cancelable) return !1; } return !0; } invalidate() { (0, r.k)(this._cache) || ((this._oldCache = this._cache), (this._cache = void 0)); } _descriptors(e) { if (this._cache) return this._cache; const t = (this._cache = this._createDescriptors(e)); return this._notifyStateChanges(e), t; } _createDescriptors(e, t) { const n = e && e.config, i = (0, r.v)(n.options && n.options.plugins, {}), o = (function (e) { const t = {}, n = [], r = Object.keys(Le.plugins.items); for (let e = 0; e < r.length; e++) n.push(Le.getPlugin(r[e])); const i = e.plugins || []; for (let e = 0; e < i.length; e++) { const r = i[e]; -1 === n.indexOf(r) && (n.push(r), (t[r.id] = !0)); } return { plugins: n, localIds: t }; })(n); return !1 !== i || t ? (function (e, { plugins: t, localIds: n }, r, i) { const o = [], a = e.getContext(); for (const s of t) { const t = s.id, u = Ie(r[t], i); null !== u && o.push({ plugin: s, options: Me(e.config, { plugin: s, local: n[t] }, u, a), }); } return o; })(e, o, i, t) : []; } _notifyStateChanges(e) { const t = this._oldCache || [], n = this._cache, r = (e, t) => e.filter((e) => !t.some((t) => e.plugin.id === t.plugin.id)); this._notify(r(t, n), e, "stop"), this._notify(r(n, t), e, "start"); } } function Ie(e, t) { return t || !1 !== e ? (!0 === e ? {} : e) : null; } function Me(e, { plugin: t, local: n }, r, i) { const o = e.pluginScopeKeys(t), a = e.getOptionScopes(r, o); return ( n && t.defaults && a.push(t.defaults), e.createResolver(a, i, [""], { scriptable: !1, indexable: !1, allKeys: !0, }) ); } function Pe(e, t) { const n = r.d.datasets[e] || {}; return ( ((t.datasets || {})[e] || {}).indexAxis || t.indexAxis || n.indexAxis || "x" ); } function Re(e) { if ("x" === e || "y" === e || "r" === e) return e; } function De(e, ...t) { if (Re(e)) return e; for (const r of t) { const t = r.axis || ("top" === (n = r.position) || "bottom" === n ? "x" : "left" === n || "right" === n ? "y" : void 0) || (e.length > 1 && Re(e[0].toLowerCase())); if (t) return t; } var n; throw new Error( `Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.` ); } function je(e, t, n) { if (n[t + "AxisID"] === e) return { axis: t }; } function Ne(e, t) { const n = r.a3[e.type] || { scales: {} }, i = t.scales || {}, o = Pe(e.type, t), a = Object.create(null); return ( Object.keys(i).forEach((t) => { const s = i[t]; if (!(0, r.i)(s)) return console.error( `Invalid scale configuration for scale: ${t}` ); if (s._proxy) return console.warn( `Ignoring resolver passed as options for scale: ${t}` ); const u = De( t, s, (function (e, t) { if (t.data && t.data.datasets) { const n = t.data.datasets.filter( (t) => t.xAxisID === e || t.yAxisID === e ); if (n.length) return je(e, "x", n[0]) || je(e, "y", n[0]); } return {}; })(t, e), r.d.scales[s.type] ), c = (function (e, t) { return e === t ? "_index_" : "_value_"; })(u, o), l = n.scales || {}; a[t] = (0, r.ab)(Object.create(null), [{ axis: u }, s, l[u], l[c]]); }), e.data.datasets.forEach((n) => { const o = n.type || e.type, s = n.indexAxis || Pe(o, t), u = (r.a3[o] || {}).scales || {}; Object.keys(u).forEach((e) => { const t = (function (e, t) { let n = e; return ( "_index_" === e ? (n = t) : "_value_" === e && (n = "x" === t ? "y" : "x"), n ); })(e, s), o = n[t + "AxisID"] || t; (a[o] = a[o] || Object.create(null)), (0, r.ab)(a[o], [{ axis: t }, i[o], u[e]]); }); }), Object.keys(a).forEach((e) => { const t = a[e]; (0, r.ab)(t, [r.d.scales[t.type], r.d.scale]); }), a ); } function Be(e) { const t = e.options || (e.options = {}); (t.plugins = (0, r.v)(t.plugins, {})), (t.scales = Ne(e, t)); } function Ue(e) { return ( ((e = e || {}).datasets = e.datasets || []), (e.labels = e.labels || []), e ); } const Fe = new Map(), ze = new Set(); function He(e, t) { let n = Fe.get(e); return n || ((n = t()), Fe.set(e, n), ze.add(n)), n; } const qe = (e, t, n) => { const i = (0, r.f)(t, n); void 0 !== i && e.add(i); }; class Ze { constructor(e) { (this._config = (function (e) { return ((e = e || {}).data = Ue(e.data)), Be(e), e; })(e)), (this._scopeCache = new Map()), (this._resolverCache = new Map()); } get platform() { return this._config.platform; } get type() { return this._config.type; } set type(e) { this._config.type = e; } get data() { return this._config.data; } set data(e) { this._config.data = Ue(e); } get options() { return this._config.options; } set options(e) { this._config.options = e; } get plugins() { return this._config.plugins; } update() { const e = this._config; this.clearCache(), Be(e); } clearCache() { this._scopeCache.clear(), this._resolverCache.clear(); } datasetScopeKeys(e) { return He(e, () => [[`datasets.${e}`, ""]]); } datasetAnimationScopeKeys(e, t) { return He(`${e}.transition.${t}`, () => [ [`datasets.${e}.transitions.${t}`, `transitions.${t}`], [`datasets.${e}`, ""], ]); } datasetElementScopeKeys(e, t) { return He(`${e}-${t}`, () => [ [ `datasets.${e}.elements.${t}`, `datasets.${e}`, `elements.${t}`, "", ], ]); } pluginScopeKeys(e) { const t = e.id; return He(`${this.type}-plugin-${t}`, () => [ [`plugins.${t}`, ...(e.additionalOptionScopes || [])], ]); } _cachedScopes(e, t) { const n = this._scopeCache; let r = n.get(e); return (r && !t) || ((r = new Map()), n.set(e, r)), r; } getOptionScopes(e, t, n) { const { options: i, type: o } = this, a = this._cachedScopes(e, n), s = a.get(t); if (s) return s; const u = new Set(); t.forEach((t) => { e && (u.add(e), t.forEach((t) => qe(u, e, t))), t.forEach((e) => qe(u, i, e)), t.forEach((e) => qe(u, r.a3[o] || {}, e)), t.forEach((e) => qe(u, r.d, e)), t.forEach((e) => qe(u, r.a6, e)); }); const c = Array.from(u); return ( 0 === c.length && c.push(Object.create(null)), ze.has(t) && a.set(t, c), c ); } chartOptionScopes() { const { options: e, type: t } = this; return [ e, r.a3[t] || {}, r.d.datasets[t] || {}, { type: t }, r.d, r.a6, ]; } resolveNamedOptions(e, t, n, i = [""]) { const o = { $shared: !0 }, { resolver: a, subPrefixes: s } = Ve(this._resolverCache, e, i); let u = a; if ( (function (e, t) { const { isScriptable: n, isIndexable: i } = (0, r.aa)(e); for (const o of t) { const t = n(o), a = i(o), s = (a || t) && e[o]; if ((t && ((0, r.a7)(s) || We(s))) || (a && (0, r.b)(s))) return !0; } return !1; })(a, t) ) { (o.$shared = !1), (n = (0, r.a7)(n) ? n() : n); const t = this.createResolver(e, n, s); u = (0, r.a8)(a, n, t); } for (const e of t) o[e] = u[e]; return o; } createResolver(e, t, n = [""], i) { const { resolver: o } = Ve(this._resolverCache, e, n); return (0, r.i)(t) ? (0, r.a8)(o, t, void 0, i) : o; } } function Ve(e, t, n) { let i = e.get(t); i || ((i = new Map()), e.set(t, i)); const o = n.join(); let a = i.get(o); if (!a) { (a = { resolver: (0, r.a9)(t, n), subPrefixes: n.filter((e) => !e.toLowerCase().includes("hover")), }), i.set(o, a); } return a; } const We = (e) => (0, r.i)(e) && Object.getOwnPropertyNames(e).some((t) => (0, r.a7)(e[t])); const $e = ["top", "bottom", "left", "right", "chartArea"]; function Ge(e, t) { return ( "top" === e || "bottom" === e || (-1 === $e.indexOf(e) && "x" === t) ); } function Ye(e, t) { return function (n, r) { return n[e] === r[e] ? n[t] - r[t] : n[e] - r[e]; }; } function Ke(e) { const t = e.chart, n = t.options.animation; t.notifyPlugins("afterRender"), (0, r.Q)(n && n.onComplete, [e], t); } function Xe(e) { const t = e.chart, n = t.options.animation; (0, r.Q)(n && n.onProgress, [e], t); } function Qe(e) { return ( (0, r.M)() && "string" == typeof e ? (e = document.getElementById(e)) : e && e.length && (e = e[0]), e && e.canvas && (e = e.canvas), e ); } const Je = {}, et = (e) => { const t = Qe(e); return Object.values(Je) .filter((e) => e.canvas === t) .pop(); }; function tt(e, t, n) { const r = Object.keys(e); for (const i of r) { const r = +i; if (r >= t) { const o = e[i]; delete e[i], (n > 0 || r > t) && (e[r + n] = o); } } } function nt(e, t, n) { return e.options.clip ? e[n] : t[n]; } class rt { static defaults = r.d; static instances = Je; static overrides = r.a3; static registry = Le; static version = "4.4.2"; static getChart = et; static register(...e) { Le.add(...e), it(); } static unregister(...e) { Le.remove(...e), it(); } constructor(e, t) { const n = (this.config = new Ze(t)), i = Qe(e), a = et(i); if (a) throw new Error( "Canvas is already in use. Chart with ID '" + a.id + "' must be destroyed before the canvas with ID '" + a.canvas.id + "' can be reused." ); const s = n.createResolver(n.chartOptionScopes(), this.getContext()); (this.platform = new (n.platform || (function (e) { return !(0, r.M)() || ("undefined" != typeof OffscreenCanvas && e instanceof OffscreenCanvas) ? te : ge; })(i))()), this.platform.updateConfig(n); const u = this.platform.acquireContext(i, s.aspectRatio), c = u && u.canvas, l = c && c.height, f = c && c.width; (this.id = (0, r.ac)()), (this.ctx = u), (this.canvas = c), (this.width = f), (this.height = l), (this._options = s), (this._aspectRatio = this.aspectRatio), (this._layers = []), (this._metasets = []), (this._stacks = void 0), (this.boxes = []), (this.currentDevicePixelRatio = void 0), (this.chartArea = void 0), (this._active = []), (this._lastEvent = void 0), (this._listeners = {}), (this._responsiveListeners = void 0), (this._sortedMetasets = []), (this.scales = {}), (this._plugins = new Ae()), (this.$proxies = {}), (this._hiddenIndices = {}), (this.attached = !1), (this._animationsDisabled = void 0), (this.$context = void 0), (this._doResize = (0, r.ad)( (e) => this.update(e), s.resizeDelay || 0 )), (this._dataChanges = []), (Je[this.id] = this), u && c ? (o.listen(this, "complete", Ke), o.listen(this, "progress", Xe), this._initialize(), this.attached && this.update()) : console.error( "Failed to create chart: can't acquire context from the given item" ); } get aspectRatio() { const { options: { aspectRatio: e, maintainAspectRatio: t }, width: n, height: i, _aspectRatio: o, } = this; return (0, r.k)(e) ? (t && o ? o : i ? n / i : null) : e; } get data() { return this.config.data; } set data(e) { this.config.data = e; } get options() { return this._options; } set options(e) { this.config.options = e; } get registry() { return Le; } _initialize() { return ( this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : (0, r.ae)(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this ); } clear() { return (0, r.af)(this.canvas, this.ctx), this; } stop() { return o.stop(this), this; } resize(e, t) { o.running(this) ? (this._resizeBeforeDraw = { width: e, height: t }) : this._resize(e, t); } _resize(e, t) { const n = this.options, i = this.canvas, o = n.maintainAspectRatio && this.aspectRatio, a = this.platform.getMaximumSize(i, e, t, o), s = n.devicePixelRatio || this.platform.getDevicePixelRatio(), u = this.width ? "resize" : "attach"; (this.width = a.width), (this.height = a.height), (this._aspectRatio = this.aspectRatio), (0, r.ae)(this, s, !0) && (this.notifyPlugins("resize", { size: a }), (0, r.Q)(n.onResize, [this, a], this), this.attached && this._doResize(u) && this.render()); } ensureScalesHaveIDs() { const e = this.options.scales || {}; (0, r.F)(e, (e, t) => { e.id = t; }); } buildOrUpdateScales() { const e = this.options, t = e.scales, n = this.scales, i = Object.keys(n).reduce((e, t) => ((e[t] = !1), e), {}); let o = []; t && (o = o.concat( Object.keys(t).map((e) => { const n = t[e], r = De(e, n), i = "r" === r, o = "x" === r; return { options: n, dposition: i ? "chartArea" : o ? "bottom" : "left", dtype: i ? "radialLinear" : o ? "category" : "linear", }; }) )), (0, r.F)(o, (t) => { const o = t.options, a = o.id, s = De(a, o), u = (0, r.v)(o.type, t.dtype); (void 0 !== o.position && Ge(o.position, s) === Ge(t.dposition)) || (o.position = t.dposition), (i[a] = !0); let c = null; if (a in n && n[a].type === u) c = n[a]; else { (c = new (Le.getScale(u))({ id: a, type: u, ctx: this.ctx, chart: this, })), (n[c.id] = c); } c.init(o, e); }), (0, r.F)(i, (e, t) => { e || delete n[t]; }), (0, r.F)(n, (e) => { J.configure(this, e, e.options), J.addBox(this, e); }); } _updateMetasets() { const e = this._metasets, t = this.data.datasets.length, n = e.length; if ((e.sort((e, t) => e.index - t.index), n > t)) { for (let e = t; e < n; ++e) this._destroyDatasetMeta(e); e.splice(t, n - t); } this._sortedMetasets = e.slice(0).sort(Ye("order", "index")); } _removeUnreferencedMetasets() { const { _metasets: e, data: { datasets: t }, } = this; e.length > t.length && delete this._stacks, e.forEach((e, n) => { 0 === t.filter((t) => t === e._dataset).length && this._destroyDatasetMeta(n); }); } buildOrUpdateControllers() { const e = [], t = this.data.datasets; let n, i; for ( this._removeUnreferencedMetasets(), n = 0, i = t.length; n < i; n++ ) { const i = t[n]; let o = this.getDatasetMeta(n); const a = i.type || this.config.type; if ( (o.type && o.type !== a && (this._destroyDatasetMeta(n), (o = this.getDatasetMeta(n))), (o.type = a), (o.indexAxis = i.indexAxis || Pe(a, this.options)), (o.order = i.order || 0), (o.index = n), (o.label = "" + i.label), (o.visible = this.isDatasetVisible(n)), o.controller) ) o.controller.updateIndex(n), o.controller.linkScales(); else { const t = Le.getController(a), { datasetElementType: i, dataElementType: s } = r.d.datasets[a]; Object.assign(t, { dataElementType: Le.getElement(s), datasetElementType: i && Le.getElement(i), }), (o.controller = new t(this, n)), e.push(o.controller); } } return this._updateMetasets(), e; } _resetElements() { (0, r.F)( this.data.datasets, (e, t) => { this.getDatasetMeta(t).controller.reset(); }, this ); } reset() { this._resetElements(), this.notifyPlugins("reset"); } update(e) { const t = this.config; t.update(); const n = (this._options = t.createResolver( t.chartOptionScopes(), this.getContext() )), i = (this._animationsDisabled = !n.animation); if ( (this._updateScales(), this._checkEventBindings(), this._updateHiddenIndices(), this._plugins.invalidate(), !1 === this.notifyPlugins("beforeUpdate", { mode: e, cancelable: !0 })) ) return; const o = this.buildOrUpdateControllers(); this.notifyPlugins("beforeElementsUpdate"); let a = 0; for (let e = 0, t = this.data.datasets.length; e < t; e++) { const { controller: t } = this.getDatasetMeta(e), n = !i && -1 === o.indexOf(t); t.buildOrUpdateElements(n), (a = Math.max(+t.getMaxOverflow(), a)); } (a = this._minPadding = n.layout.autoPadding ? a : 0), this._updateLayout(a), i || (0, r.F)(o, (e) => { e.reset(); }), this._updateDatasets(e), this.notifyPlugins("afterUpdate", { mode: e }), this._layers.sort(Ye("z", "_idx")); const { _active: s, _lastEvent: u } = this; u ? this._eventHandler(u, !0) : s.length && this._updateHoverStyles(s, s, !0), this.render(); } _updateScales() { (0, r.F)(this.scales, (e) => { J.removeBox(this, e); }), this.ensureScalesHaveIDs(), this.buildOrUpdateScales(); } _checkEventBindings() { const e = this.options, t = new Set(Object.keys(this._listeners)), n = new Set(e.events); ((0, r.ag)(t, n) && !!this._responsiveListeners === e.responsive) || (this.unbindEvents(), this.bindEvents()); } _updateHiddenIndices() { const { _hiddenIndices: e } = this, t = this._getUniformDataChanges() || []; for (const { method: n, start: r, count: i } of t) { tt(e, r, "_removeElements" === n ? -i : i); } } _getUniformDataChanges() { const e = this._dataChanges; if (!e || !e.length) return; this._dataChanges = []; const t = this.data.datasets.length, n = (t) => new Set( e .filter((e) => e[0] === t) .map((e, t) => t + "," + e.splice(1).join(",")) ), i = n(0); for (let e = 1; e < t; e++) if (!(0, r.ag)(i, n(e))) return; return Array.from(i) .map((e) => e.split(",")) .map((e) => ({ method: e[1], start: +e[2], count: +e[3] })); } _updateLayout(e) { if (!1 === this.notifyPlugins("beforeLayout", { cancelable: !0 })) return; J.update(this, this.width, this.height, e); const t = this.chartArea, n = t.width <= 0 || t.height <= 0; (this._layers = []), (0, r.F)( this.boxes, (e) => { (n && "chartArea" === e.position) || (e.configure && e.configure(), this._layers.push(...e._layers())); }, this ), this._layers.forEach((e, t) => { e._idx = t; }), this.notifyPlugins("afterLayout"); } _updateDatasets(e) { if ( !1 !== this.notifyPlugins("beforeDatasetsUpdate", { mode: e, cancelable: !0, }) ) { for (let e = 0, t = this.data.datasets.length; e < t; ++e) this.getDatasetMeta(e).controller.configure(); for (let t = 0, n = this.data.datasets.length; t < n; ++t) this._updateDataset(t, (0, r.a7)(e) ? e({ datasetIndex: t }) : e); this.notifyPlugins("afterDatasetsUpdate", { mode: e }); } } _updateDataset(e, t) { const n = this.getDatasetMeta(e), r = { meta: n, index: e, mode: t, cancelable: !0 }; !1 !== this.notifyPlugins("beforeDatasetUpdate", r) && (n.controller._update(t), (r.cancelable = !1), this.notifyPlugins("afterDatasetUpdate", r)); } render() { !1 !== this.notifyPlugins("beforeRender", { cancelable: !0 }) && (o.has(this) ? this.attached && !o.running(this) && o.start(this) : (this.draw(), Ke({ chart: this }))); } draw() { let e; if (this._resizeBeforeDraw) { const { width: e, height: t } = this._resizeBeforeDraw; this._resize(e, t), (this._resizeBeforeDraw = null); } if ((this.clear(), this.width <= 0 || this.height <= 0)) return; if (!1 === this.notifyPlugins("beforeDraw", { cancelable: !0 })) return; const t = this._layers; for (e = 0; e < t.length && t[e].z <= 0; ++e) t[e].draw(this.chartArea); for (this._drawDatasets(); e < t.length; ++e) t[e].draw(this.chartArea); this.notifyPlugins("afterDraw"); } _getSortedDatasetMetas(e) { const t = this._sortedMetasets, n = []; let r, i; for (r = 0, i = t.length; r < i; ++r) { const i = t[r]; (e && !i.visible) || n.push(i); } return n; } getSortedVisibleDatasetMetas() { return this._getSortedDatasetMetas(!0); } _drawDatasets() { if ( !1 === this.notifyPlugins("beforeDatasetsDraw", { cancelable: !0 }) ) return; const e = this.getSortedVisibleDatasetMetas(); for (let t = e.length - 1; t >= 0; --t) this._drawDataset(e[t]); this.notifyPlugins("afterDatasetsDraw"); } _drawDataset(e) { const t = this.ctx, n = e._clip, i = !n.disabled, o = (function (e, t) { const { xScale: n, yScale: r } = e; return n && r ? { left: nt(n, t, "left"), right: nt(n, t, "right"), top: nt(r, t, "top"), bottom: nt(r, t, "bottom"), } : t; })(e, this.chartArea), a = { meta: e, index: e.index, cancelable: !0 }; !1 !== this.notifyPlugins("beforeDatasetDraw", a) && (i && (0, r.Y)(t, { left: !1 === n.left ? 0 : o.left - n.left, right: !1 === n.right ? this.width : o.right + n.right, top: !1 === n.top ? 0 : o.top - n.top, bottom: !1 === n.bottom ? this.height : o.bottom + n.bottom, }), e.controller.draw(), i && (0, r.$)(t), (a.cancelable = !1), this.notifyPlugins("afterDatasetDraw", a)); } isPointInArea(e) { return (0, r.C)(e, this.chartArea, this._minPadding); } getElementsAtEventForMode(e, t, n, r) { const i = F.modes[t]; return "function" == typeof i ? i(this, e, n, r) : []; } getDatasetMeta(e) { const t = this.data.datasets[e], n = this._metasets; let r = n.filter((e) => e && e._dataset === t).pop(); return ( r || ((r = { type: null, data: [], dataset: null, controller: null, hidden: null, xAxisID: null, yAxisID: null, order: (t && t.order) || 0, index: e, _dataset: t, _parsed: [], _sorted: !1, }), n.push(r)), r ); } getContext() { return ( this.$context || (this.$context = (0, r.j)(null, { chart: this, type: "chart" })) ); } getVisibleDatasetCount() { return this.getSortedVisibleDatasetMetas().length; } isDatasetVisible(e) { const t = this.data.datasets[e]; if (!t) return !1; const n = this.getDatasetMeta(e); return "boolean" == typeof n.hidden ? !n.hidden : !t.hidden; } setDatasetVisibility(e, t) { this.getDatasetMeta(e).hidden = !t; } toggleDataVisibility(e) { this._hiddenIndices[e] = !this._hiddenIndices[e]; } getDataVisibility(e) { return !this._hiddenIndices[e]; } _updateVisibility(e, t, n) { const i = n ? "show" : "hide", o = this.getDatasetMeta(e), a = o.controller._resolveAnimations(void 0, i); (0, r.h)(t) ? ((o.data[t].hidden = !n), this.update()) : (this.setDatasetVisibility(e, n), a.update(o, { visible: n }), this.update((t) => (t.datasetIndex === e ? i : void 0))); } hide(e, t) { this._updateVisibility(e, t, !1); } show(e, t) { this._updateVisibility(e, t, !0); } _destroyDatasetMeta(e) { const t = this._metasets[e]; t && t.controller && t.controller._destroy(), delete this._metasets[e]; } _stop() { let e, t; for ( this.stop(), o.remove(this), e = 0, t = this.data.datasets.length; e < t; ++e ) this._destroyDatasetMeta(e); } destroy() { this.notifyPlugins("beforeDestroy"); const { canvas: e, ctx: t } = this; this._stop(), this.config.clearCache(), e && (this.unbindEvents(), (0, r.af)(e, t), this.platform.releaseContext(t), (this.canvas = null), (this.ctx = null)), delete Je[this.id], this.notifyPlugins("afterDestroy"); } toBase64Image(...e) { return this.canvas.toDataURL(...e); } bindEvents() { this.bindUserEvents(), this.options.responsive ? this.bindResponsiveEvents() : (this.attached = !0); } bindUserEvents() { const e = this._listeners, t = this.platform, n = (n, r) => { t.addEventListener(this, n, r), (e[n] = r); }, i = (e, t, n) => { (e.offsetX = t), (e.offsetY = n), this._eventHandler(e); }; (0, r.F)(this.options.events, (e) => n(e, i)); } bindResponsiveEvents() { this._responsiveListeners || (this._responsiveListeners = {}); const e = this._responsiveListeners, t = this.platform, n = (n, r) => { t.addEventListener(this, n, r), (e[n] = r); }, r = (n, r) => { e[n] && (t.removeEventListener(this, n, r), delete e[n]); }, i = (e, t) => { this.canvas && this.resize(e, t); }; let o; const a = () => { r("attach", a), (this.attached = !0), this.resize(), n("resize", i), n("detach", o); }; (o = () => { (this.attached = !1), r("resize", i), this._stop(), this._resize(0, 0), n("attach", a); }), t.isAttached(this.canvas) ? a() : o(); } unbindEvents() { (0, r.F)(this._listeners, (e, t) => { this.platform.removeEventListener(this, t, e); }), (this._listeners = {}), (0, r.F)(this._responsiveListeners, (e, t) => { this.platform.removeEventListener(this, t, e); }), (this._responsiveListeners = void 0); } updateHoverStyle(e, t, n) { const r = n ? "set" : "remove"; let i, o, a, s; for ( "dataset" === t && ((i = this.getDatasetMeta(e[0].datasetIndex)), i.controller["_" + r + "DatasetHoverStyle"]()), a = 0, s = e.length; a < s; ++a ) { o = e[a]; const t = o && this.getDatasetMeta(o.datasetIndex).controller; t && t[r + "HoverStyle"](o.element, o.datasetIndex, o.index); } } getActiveElements() { return this._active || []; } setActiveElements(e) { const t = this._active || [], n = e.map(({ datasetIndex: e, index: t }) => { const n = this.getDatasetMeta(e); if (!n) throw new Error("No dataset found at index " + e); return { datasetIndex: e, element: n.data[t], index: t }; }); !(0, r.ah)(n, t) && ((this._active = n), (this._lastEvent = null), this._updateHoverStyles(n, t)); } notifyPlugins(e, t, n) { return this._plugins.notify(this, e, t, n); } isPluginEnabled(e) { return ( 1 === this._plugins._cache.filter((t) => t.plugin.id === e).length ); } _updateHoverStyles(e, t, n) { const r = this.options.hover, i = (e, t) => e.filter( (e) => !t.some( (t) => e.datasetIndex === t.datasetIndex && e.index === t.index ) ), o = i(t, e), a = n ? e : i(e, t); o.length && this.updateHoverStyle(o, r.mode, !1), a.length && r.mode && this.updateHoverStyle(a, r.mode, !0); } _eventHandler(e, t) { const n = { event: e, replay: t, cancelable: !0, inChartArea: this.isPointInArea(e), }, r = (t) => (t.options.events || this.options.events).includes(e.native.type); if (!1 === this.notifyPlugins("beforeEvent", n, r)) return; const i = this._handleEvent(e, t, n.inChartArea); return ( (n.cancelable = !1), this.notifyPlugins("afterEvent", n, r), (i || n.changed) && this.render(), this ); } _handleEvent(e, t, n) { const { _active: i = [], options: o } = this, a = t, s = this._getActiveElements(e, i, n, a), u = (0, r.ai)(e), c = (function (e, t, n, r) { return n && "mouseout" !== e.type ? (r ? t : e) : null; })(e, this._lastEvent, n, u); n && ((this._lastEvent = null), (0, r.Q)(o.onHover, [e, s, this], this), u && (0, r.Q)(o.onClick, [e, s, this], this)); const l = !(0, r.ah)(s, i); return ( (l || t) && ((this._active = s), this._updateHoverStyles(s, i, t)), (this._lastEvent = c), l ); } _getActiveElements(e, t, n, r) { if ("mouseout" === e.type) return []; if (!n) return t; const i = this.options.hover; return this.getElementsAtEventForMode(e, i.mode, i, r); } } function it() { return (0, r.F)(rt.instances, (e) => e._plugins.invalidate()); } function ot(e, t, n, i) { const o = ((a = e.options.borderRadius), (0, r.ak)(a, ["outerStart", "outerEnd", "innerStart", "innerEnd"])); var a; const s = (n - t) / 2, u = Math.min(s, (i * t) / 2), c = (e) => { const t = ((n - Math.min(s, e)) * i) / 2; return (0, r.S)(e, 0, Math.min(s, t)); }; return { outerStart: c(o.outerStart), outerEnd: c(o.outerEnd), innerStart: (0, r.S)(o.innerStart, 0, u), innerEnd: (0, r.S)(o.innerEnd, 0, u), }; } function at(e, t, n, r) { return { x: n + e * Math.cos(t), y: r + e * Math.sin(t) }; } function st(e, t, n, i, o, a) { const { x: s, y: u, startAngle: c, pixelMargin: l, innerRadius: f } = t, d = Math.max(t.outerRadius + i + n - l, 0), p = f > 0 ? f + i + n + l : 0; let h = 0; const g = o - c; if (i) { const e = ((f > 0 ? f - i : 0) + (d > 0 ? d - i : 0)) / 2; h = (g - (0 !== e ? (g * e) / (e + i) : g)) / 2; } const m = (g - Math.max(0.001, g * d - n / r.P) / d) / 2, y = c + m + h, v = o - m - h, { outerStart: b, outerEnd: _, innerStart: w, innerEnd: T, } = ot(t, p, d, v - y), x = d - b, S = d - _, k = y + b / x, E = v - _ / S, O = p + w, C = p + T, L = y + w / O, A = v - T / C; if ((e.beginPath(), a)) { const t = (k + E) / 2; if ((e.arc(s, u, d, k, t), e.arc(s, u, d, t, E), _ > 0)) { const t = at(S, E, s, u); e.arc(t.x, t.y, _, E, v + r.H); } const n = at(C, v, s, u); if ((e.lineTo(n.x, n.y), T > 0)) { const t = at(C, A, s, u); e.arc(t.x, t.y, T, v + r.H, A + Math.PI); } const i = (v - T / p + (y + w / p)) / 2; if ( (e.arc(s, u, p, v - T / p, i, !0), e.arc(s, u, p, i, y + w / p, !0), w > 0) ) { const t = at(O, L, s, u); e.arc(t.x, t.y, w, L + Math.PI, y - r.H); } const o = at(x, y, s, u); if ((e.lineTo(o.x, o.y), b > 0)) { const t = at(x, k, s, u); e.arc(t.x, t.y, b, y - r.H, k); } } else { e.moveTo(s, u); const t = Math.cos(k) * d + s, n = Math.sin(k) * d + u; e.lineTo(t, n); const r = Math.cos(E) * d + s, i = Math.sin(E) * d + u; e.lineTo(r, i); } e.closePath(); } function ut(e, t, n, i, o) { const { fullCircles: a, startAngle: s, circumference: u, options: c, } = t, { borderWidth: l, borderJoinStyle: f, borderDash: d, borderDashOffset: p, } = c, h = "inner" === c.borderAlign; if (!l) return; e.setLineDash(d || []), (e.lineDashOffset = p), h ? ((e.lineWidth = 2 * l), (e.lineJoin = f || "round")) : ((e.lineWidth = l), (e.lineJoin = f || "bevel")); let g = t.endAngle; if (a) { st(e, t, n, i, g, o); for (let t = 0; t < a; ++t) e.stroke(); isNaN(u) || (g = s + (u % r.T || r.T)); } h && (function (e, t, n) { const { startAngle: i, pixelMargin: o, x: a, y: s, outerRadius: u, innerRadius: c, } = t; let l = o / u; e.beginPath(), e.arc(a, s, u, i - l, n + l), c > o ? ((l = o / c), e.arc(a, s, c, n + l, i - l, !0)) : e.arc(a, s, o, n + r.H, i - r.H), e.closePath(), e.clip(); })(e, t, g), a || (st(e, t, n, i, g, o), e.stroke()); } class ct extends me { static id = "arc"; static defaults = { borderAlign: "center", borderColor: "#fff", borderDash: [], borderDashOffset: 0, borderJoinStyle: void 0, borderRadius: 0, borderWidth: 2, offset: 0, spacing: 0, angle: void 0, circular: !0, }; static defaultRoutes = { backgroundColor: "backgroundColor" }; static descriptors = { _scriptable: !0, _indexable: (e) => "borderDash" !== e, }; circumference; endAngle; fullCircles; innerRadius; outerRadius; pixelMargin; startAngle; constructor(e) { super(), (this.options = void 0), (this.circumference = void 0), (this.startAngle = void 0), (this.endAngle = void 0), (this.innerRadius = void 0), (this.outerRadius = void 0), (this.pixelMargin = 0), (this.fullCircles = 0), e && Object.assign(this, e); } inRange(e, t, n) { const i = this.getProps(["x", "y"], n), { angle: o, distance: a } = (0, r.D)(i, { x: e, y: t }), { startAngle: s, endAngle: u, innerRadius: c, outerRadius: l, circumference: f, } = this.getProps( [ "startAngle", "endAngle", "innerRadius", "outerRadius", "circumference", ], n ), d = (this.options.spacing + this.options.borderWidth) / 2, p = (0, r.v)(f, u - s) >= r.T || (0, r.p)(o, s, u), h = (0, r.aj)(a, c + d, l + d); return p && h; } getCenterPoint(e) { const { x: t, y: n, startAngle: r, endAngle: i, innerRadius: o, outerRadius: a, } = this.getProps( [ "x", "y", "startAngle", "endAngle", "innerRadius", "outerRadius", ], e ), { offset: s, spacing: u } = this.options, c = (r + i) / 2, l = (o + a + u + s) / 2; return { x: t + Math.cos(c) * l, y: n + Math.sin(c) * l }; } tooltipPosition(e) { return this.getCenterPoint(e); } draw(e) { const { options: t, circumference: n } = this, i = (t.offset || 0) / 4, o = (t.spacing || 0) / 2, a = t.circular; if ( ((this.pixelMargin = "inner" === t.borderAlign ? 0.33 : 0), (this.fullCircles = n > r.T ? Math.floor(n / r.T) : 0), 0 === n || this.innerRadius < 0 || this.outerRadius < 0) ) return; e.save(); const s = (this.startAngle + this.endAngle) / 2; e.translate(Math.cos(s) * i, Math.sin(s) * i); const u = i * (1 - Math.sin(Math.min(r.P, n || 0))); (e.fillStyle = t.backgroundColor), (e.strokeStyle = t.borderColor), (function (e, t, n, i, o) { const { fullCircles: a, startAngle: s, circumference: u } = t; let c = t.endAngle; if (a) { st(e, t, n, i, c, o); for (let t = 0; t < a; ++t) e.fill(); isNaN(u) || (c = s + (u % r.T || r.T)); } st(e, t, n, i, c, o), e.fill(); })(e, this, u, o, a), ut(e, this, u, o, a), e.restore(); } } function lt(e, t, n = t) { (e.lineCap = (0, r.v)(n.borderCapStyle, t.borderCapStyle)), e.setLineDash((0, r.v)(n.borderDash, t.borderDash)), (e.lineDashOffset = (0, r.v)(n.borderDashOffset, t.borderDashOffset)), (e.lineJoin = (0, r.v)(n.borderJoinStyle, t.borderJoinStyle)), (e.lineWidth = (0, r.v)(n.borderWidth, t.borderWidth)), (e.strokeStyle = (0, r.v)(n.borderColor, t.borderColor)); } function ft(e, t, n) { e.lineTo(n.x, n.y); } function dt(e, t, n = {}) { const r = e.length, { start: i = 0, end: o = r - 1 } = n, { start: a, end: s } = t, u = Math.max(i, a), c = Math.min(o, s), l = (i < a && o < a) || (i > s && o > s); return { count: r, start: u, loop: t.loop, ilen: c < u && !l ? r + c - u : c - u, }; } function pt(e, t, n, i) { const { points: o, options: a } = t, { count: s, start: u, loop: c, ilen: l } = dt(o, n, i), f = (function (e) { return e.stepped ? r.ar : e.tension || "monotone" === e.cubicInterpolationMode ? r.as : ft; })(a); let d, p, h, { move: g = !0, reverse: m } = i || {}; for (d = 0; d <= l; ++d) (p = o[(u + (m ? l - d : d)) % s]), p.skip || (g ? (e.moveTo(p.x, p.y), (g = !1)) : f(e, h, p, m, a.stepped), (h = p)); return ( c && ((p = o[(u + (m ? l : 0)) % s]), f(e, h, p, m, a.stepped)), !!c ); } function ht(e, t, n, r) { const i = t.points, { count: o, start: a, ilen: s } = dt(i, n, r), { move: u = !0, reverse: c } = r || {}; let l, f, d, p, h, g, m = 0, y = 0; const v = (e) => (a + (c ? s - e : e)) % o, b = () => { p !== h && (e.lineTo(m, h), e.lineTo(m, p), e.lineTo(m, g)); }; for (u && ((f = i[v(0)]), e.moveTo(f.x, f.y)), l = 0; l <= s; ++l) { if (((f = i[v(l)]), f.skip)) continue; const t = f.x, n = f.y, r = 0 | t; r === d ? (n < p ? (p = n) : n > h && (h = n), (m = (y * m + t) / ++y)) : (b(), e.lineTo(t, n), (d = r), (y = 0), (p = h = n)), (g = n); } b(); } function gt(e) { const t = e.options, n = t.borderDash && t.borderDash.length; return !( e._decimated || e._loop || t.tension || "monotone" === t.cubicInterpolationMode || t.stepped || n ) ? ht : pt; } const mt = "function" == typeof Path2D; function yt(e, t, n, r) { mt && !t.options.segment ? (function (e, t, n, r) { let i = t._path; i || ((i = t._path = new Path2D()), t.path(i, n, r) && i.closePath()), lt(e, t.options), e.stroke(i); })(e, t, n, r) : (function (e, t, n, r) { const { segments: i, options: o } = t, a = gt(t); for (const s of i) lt(e, o, s.style), e.beginPath(), a(e, t, s, { start: n, end: n + r - 1 }) && e.closePath(), e.stroke(); })(e, t, n, r); } class vt extends me { static id = "line"; static defaults = { borderCapStyle: "butt", borderDash: [], borderDashOffset: 0, borderJoinStyle: "miter", borderWidth: 3, capBezierPoints: !0, cubicInterpolationMode: "default", fill: !1, spanGaps: !1, stepped: !1, tension: 0, }; static defaultRoutes = { backgroundColor: "backgroundColor", borderColor: "borderColor", }; static descriptors = { _scriptable: !0, _indexable: (e) => "borderDash" !== e && "fill" !== e, }; constructor(e) { super(), (this.animated = !0), (this.options = void 0), (this._chart = void 0), (this._loop = void 0), (this._fullLoop = void 0), (this._path = void 0), (this._points = void 0), (this._segments = void 0), (this._decimated = !1), (this._pointsUpdated = !1), (this._datasetIndex = void 0), e && Object.assign(this, e); } updateControlPoints(e, t) { const n = this.options; if ( (n.tension || "monotone" === n.cubicInterpolationMode) && !n.stepped && !this._pointsUpdated ) { const i = n.spanGaps ? this._loop : this._fullLoop; (0, r.al)(this._points, n, e, i, t), (this._pointsUpdated = !0); } } set points(e) { (this._points = e), delete this._segments, delete this._path, (this._pointsUpdated = !1); } get points() { return this._points; } get segments() { return ( this._segments || (this._segments = (0, r.am)(this, this.options.segment)) ); } first() { const e = this.segments, t = this.points; return e.length && t[e[0].start]; } last() { const e = this.segments, t = this.points, n = e.length; return n && t[e[n - 1].end]; } interpolate(e, t) { const n = this.options, i = e[t], o = this.points, a = (0, r.an)(this, { property: t, start: i, end: i }); if (!a.length) return; const s = [], u = (function (e) { return e.stepped ? r.ao : e.tension || "monotone" === e.cubicInterpolationMode ? r.ap : r.aq; })(n); let c, l; for (c = 0, l = a.length; c < l; ++c) { const { start: r, end: l } = a[c], f = o[r], d = o[l]; if (f === d) { s.push(f); continue; } const p = u(f, d, Math.abs((i - f[t]) / (d[t] - f[t])), n.stepped); (p[t] = e[t]), s.push(p); } return 1 === s.length ? s[0] : s; } pathSegment(e, t, n) { return gt(this)(e, this, t, n); } path(e, t, n) { const r = this.segments, i = gt(this); let o = this._loop; (t = t || 0), (n = n || this.points.length - t); for (const a of r) o &= i(e, this, a, { start: t, end: t + n - 1 }); return !!o; } draw(e, t, n, r) { const i = this.options || {}; (this.points || []).length && i.borderWidth && (e.save(), yt(e, this, n, r), e.restore()), this.animated && ((this._pointsUpdated = !1), (this._path = void 0)); } } function bt(e, t, n, r) { const i = e.options, { [n]: o } = e.getProps([n], r); return Math.abs(t - o) < i.radius + i.hitRadius; } class _t extends me { static id = "point"; parsed; skip; stop; static defaults = { borderWidth: 1, hitRadius: 1, hoverBorderWidth: 1, hoverRadius: 4, pointStyle: "circle", radius: 3, rotation: 0, }; static defaultRoutes = { backgroundColor: "backgroundColor", borderColor: "borderColor", }; constructor(e) { super(), (this.options = void 0), (this.parsed = void 0), (this.skip = void 0), (this.stop = void 0), e && Object.assign(this, e); } inRange(e, t, n) { const r = this.options, { x: i, y: o } = this.getProps(["x", "y"], n); return ( Math.pow(e - i, 2) + Math.pow(t - o, 2) < Math.pow(r.hitRadius + r.radius, 2) ); } inXRange(e, t) { return bt(this, e, "x", t); } inYRange(e, t) { return bt(this, e, "y", t); } getCenterPoint(e) { const { x: t, y: n } = this.getProps(["x", "y"], e); return { x: t, y: n }; } size(e) { let t = (e = e || this.options || {}).radius || 0; t = Math.max(t, (t && e.hoverRadius) || 0); return 2 * (t + ((t && e.borderWidth) || 0)); } draw(e, t) { const n = this.options; this.skip || n.radius < 0.1 || !(0, r.C)(this, t, this.size(n) / 2) || ((e.strokeStyle = n.borderColor), (e.lineWidth = n.borderWidth), (e.fillStyle = n.backgroundColor), (0, r.at)(e, n, this.x, this.y)); } getRange() { const e = this.options || {}; return e.radius + e.hitRadius; } } function wt(e, t) { const { x: n, y: r, base: i, width: o, height: a, } = e.getProps(["x", "y", "base", "width", "height"], t); let s, u, c, l, f; return ( e.horizontal ? ((f = a / 2), (s = Math.min(n, i)), (u = Math.max(n, i)), (c = r - f), (l = r + f)) : ((f = o / 2), (s = n - f), (u = n + f), (c = Math.min(r, i)), (l = Math.max(r, i))), { left: s, top: c, right: u, bottom: l } ); } function Tt(e, t, n, i) { return e ? 0 : (0, r.S)(t, n, i); } function xt(e) { const t = wt(e), n = t.right - t.left, i = t.bottom - t.top, o = (function (e, t, n) { const i = e.options.borderWidth, o = e.borderSkipped, a = (0, r.av)(i); return { t: Tt(o.top, a.top, 0, n), r: Tt(o.right, a.right, 0, t), b: Tt(o.bottom, a.bottom, 0, n), l: Tt(o.left, a.left, 0, t), }; })(e, n / 2, i / 2), a = (function (e, t, n) { const { enableBorderRadius: i } = e.getProps([ "enableBorderRadius", ]), o = e.options.borderRadius, a = (0, r.aw)(o), s = Math.min(t, n), u = e.borderSkipped, c = i || (0, r.i)(o); return { topLeft: Tt(!c || u.top || u.left, a.topLeft, 0, s), topRight: Tt(!c || u.top || u.right, a.topRight, 0, s), bottomLeft: Tt(!c || u.bottom || u.left, a.bottomLeft, 0, s), bottomRight: Tt(!c || u.bottom || u.right, a.bottomRight, 0, s), }; })(e, n / 2, i / 2); return { outer: { x: t.left, y: t.top, w: n, h: i, radius: a }, inner: { x: t.left + o.l, y: t.top + o.t, w: n - o.l - o.r, h: i - o.t - o.b, radius: { topLeft: Math.max(0, a.topLeft - Math.max(o.t, o.l)), topRight: Math.max(0, a.topRight - Math.max(o.t, o.r)), bottomLeft: Math.max(0, a.bottomLeft - Math.max(o.b, o.l)), bottomRight: Math.max(0, a.bottomRight - Math.max(o.b, o.r)), }, }, }; } function St(e, t, n, i) { const o = null === t, a = null === n, s = e && !(o && a) && wt(e, i); return ( s && (o || (0, r.aj)(t, s.left, s.right)) && (a || (0, r.aj)(n, s.top, s.bottom)) ); } function kt(e, t) { e.rect(t.x, t.y, t.w, t.h); } function Et(e, t, n = {}) { const r = e.x !== n.x ? -t : 0, i = e.y !== n.y ? -t : 0, o = (e.x + e.w !== n.x + n.w ? t : 0) - r, a = (e.y + e.h !== n.y + n.h ? t : 0) - i; return { x: e.x + r, y: e.y + i, w: e.w + o, h: e.h + a, radius: e.radius, }; } class Ot extends me { static id = "bar"; static defaults = { borderSkipped: "start", borderWidth: 0, borderRadius: 0, inflateAmount: "auto", pointStyle: void 0, }; static defaultRoutes = { backgroundColor: "backgroundColor", borderColor: "borderColor", }; constructor(e) { super(), (this.options = void 0), (this.horizontal = void 0), (this.base = void 0), (this.width = void 0), (this.height = void 0), (this.inflateAmount = void 0), e && Object.assign(this, e); } draw(e) { const { inflateAmount: t, options: { borderColor: n, backgroundColor: i }, } = this, { inner: o, outer: a } = xt(this), s = (u = a.radius).topLeft || u.topRight || u.bottomLeft || u.bottomRight ? r.au : kt; var u; e.save(), (a.w === o.w && a.h === o.h) || (e.beginPath(), s(e, Et(a, t, o)), e.clip(), s(e, Et(o, -t, a)), (e.fillStyle = n), e.fill("evenodd")), e.beginPath(), s(e, Et(o, t)), (e.fillStyle = i), e.fill(), e.restore(); } inRange(e, t, n) { return St(this, e, t, n); } inXRange(e, t) { return St(this, e, null, t); } inYRange(e, t) { return St(this, null, e, t); } getCenterPoint(e) { const { x: t, y: n, base: r, horizontal: i, } = this.getProps(["x", "y", "base", "horizontal"], e); return { x: i ? (t + r) / 2 : t, y: i ? n : (n + r) / 2 }; } getRange(e) { return "x" === e ? this.width / 2 : this.height / 2; } } const Ct = (e, t) => { let { boxHeight: n = t, boxWidth: r = t } = e; return ( e.usePointStyle && ((n = Math.min(n, t)), (r = e.pointStyleWidth || Math.min(r, t))), { boxWidth: r, boxHeight: n, itemHeight: Math.max(t, n) } ); }; class Lt extends me { constructor(e) { super(), (this._added = !1), (this.legendHitBoxes = []), (this._hoveredItem = null), (this.doughnutMode = !1), (this.chart = e.chart), (this.options = e.options), (this.ctx = e.ctx), (this.legendItems = void 0), (this.columnSizes = void 0), (this.lineWidths = void 0), (this.maxHeight = void 0), (this.maxWidth = void 0), (this.top = void 0), (this.bottom = void 0), (this.left = void 0), (this.right = void 0), (this.height = void 0), (this.width = void 0), (this._margins = void 0), (this.position = void 0), (this.weight = void 0), (this.fullSize = void 0); } update(e, t, n) { (this.maxWidth = e), (this.maxHeight = t), (this._margins = n), this.setDimensions(), this.buildLabels(), this.fit(); } setDimensions() { this.isHorizontal() ? ((this.width = this.maxWidth), (this.left = this._margins.left), (this.right = this.width)) : ((this.height = this.maxHeight), (this.top = this._margins.top), (this.bottom = this.height)); } buildLabels() { const e = this.options.labels || {}; let t = (0, r.Q)(e.generateLabels, [this.chart], this) || []; e.filter && (t = t.filter((t) => e.filter(t, this.chart.data))), e.sort && (t = t.sort((t, n) => e.sort(t, n, this.chart.data))), this.options.reverse && t.reverse(), (this.legendItems = t); } fit() { const { options: e, ctx: t } = this; if (!e.display) return void (this.width = this.height = 0); const n = e.labels, i = (0, r.a0)(n.font), o = i.size, a = this._computeTitleHeight(), { boxWidth: s, itemHeight: u } = Ct(n, o); let c, l; (t.font = i.string), this.isHorizontal() ? ((c = this.maxWidth), (l = this._fitRows(a, o, s, u) + 10)) : ((l = this.maxHeight), (c = this._fitCols(a, i, s, u) + 10)), (this.width = Math.min(c, e.maxWidth || this.maxWidth)), (this.height = Math.min(l, e.maxHeight || this.maxHeight)); } _fitRows(e, t, n, r) { const { ctx: i, maxWidth: o, options: { labels: { padding: a }, }, } = this, s = (this.legendHitBoxes = []), u = (this.lineWidths = [0]), c = r + a; let l = e; (i.textAlign = "left"), (i.textBaseline = "middle"); let f = -1, d = -c; return ( this.legendItems.forEach((e, p) => { const h = n + t / 2 + i.measureText(e.text).width; (0 === p || u[u.length - 1] + h + 2 * a > o) && ((l += c), (u[u.length - (p > 0 ? 0 : 1)] = 0), (d += c), f++), (s[p] = { left: 0, top: d, row: f, width: h, height: r }), (u[u.length - 1] += h + a); }), l ); } _fitCols(e, t, n, r) { const { ctx: i, maxHeight: o, options: { labels: { padding: a }, }, } = this, s = (this.legendHitBoxes = []), u = (this.columnSizes = []), c = o - e; let l = a, f = 0, d = 0, p = 0, h = 0; return ( this.legendItems.forEach((e, o) => { const { itemWidth: g, itemHeight: m } = (function ( e, t, n, r, i ) { const o = (function (e, t, n, r) { let i = e.text; i && "string" != typeof i && (i = i.reduce((e, t) => (e.length > t.length ? e : t))); return t + n.size / 2 + r.measureText(i).width; })(r, e, t, n), a = (function (e, t, n) { let r = e; "string" != typeof t.text && (r = At(t, n)); return r; })(i, r, t.lineHeight); return { itemWidth: o, itemHeight: a }; })(n, t, i, e, r); o > 0 && d + m + 2 * a > c && ((l += f + a), u.push({ width: f, height: d }), (p += f + a), h++, (f = d = 0)), (s[o] = { left: p, top: d, col: h, width: g, height: m }), (f = Math.max(f, g)), (d += m + a); }), (l += f), u.push({ width: f, height: d }), l ); } adjustHitBoxes() { if (!this.options.display) return; const e = this._computeTitleHeight(), { legendHitBoxes: t, options: { align: n, labels: { padding: i }, rtl: o, }, } = this, a = (0, r.az)(o, this.left, this.width); if (this.isHorizontal()) { let o = 0, s = (0, r.a2)(n, this.left + i, this.right - this.lineWidths[o]); for (const u of t) o !== u.row && ((o = u.row), (s = (0, r.a2)( n, this.left + i, this.right - this.lineWidths[o] ))), (u.top += this.top + e + i), (u.left = a.leftForLtr(a.x(s), u.width)), (s += u.width + i); } else { let o = 0, s = (0, r.a2)( n, this.top + e + i, this.bottom - this.columnSizes[o].height ); for (const u of t) u.col !== o && ((o = u.col), (s = (0, r.a2)( n, this.top + e + i, this.bottom - this.columnSizes[o].height ))), (u.top = s), (u.left += this.left + i), (u.left = a.leftForLtr(a.x(u.left), u.width)), (s += u.height + i); } } isHorizontal() { return ( "top" === this.options.position || "bottom" === this.options.position ); } draw() { if (this.options.display) { const e = this.ctx; (0, r.Y)(e, this), this._draw(), (0, r.$)(e); } } _draw() { const { options: e, columnSizes: t, lineWidths: n, ctx: i } = this, { align: o, labels: a } = e, s = r.d.color, u = (0, r.az)(e.rtl, this.left, this.width), c = (0, r.a0)(a.font), { padding: l } = a, f = c.size, d = f / 2; let p; this.drawTitle(), (i.textAlign = u.textAlign("left")), (i.textBaseline = "middle"), (i.lineWidth = 0.5), (i.font = c.string); const { boxWidth: h, boxHeight: g, itemHeight: m } = Ct(a, f), y = this.isHorizontal(), v = this._computeTitleHeight(); (p = y ? { x: (0, r.a2)(o, this.left + l, this.right - n[0]), y: this.top + l + v, line: 0, } : { x: this.left + l, y: (0, r.a2)(o, this.top + v + l, this.bottom - t[0].height), line: 0, }), (0, r.aA)(this.ctx, e.textDirection); const b = m + l; this.legendItems.forEach((_, w) => { (i.strokeStyle = _.fontColor), (i.fillStyle = _.fontColor); const T = i.measureText(_.text).width, x = u.textAlign(_.textAlign || (_.textAlign = a.textAlign)), S = h + d + T; let k = p.x, E = p.y; u.setWidth(this.width), y ? w > 0 && k + S + l > this.right && ((E = p.y += b), p.line++, (k = p.x = (0, r.a2)(o, this.left + l, this.right - n[p.line]))) : w > 0 && E + b > this.bottom && ((k = p.x = k + t[p.line].width + l), p.line++, (E = p.y = (0, r.a2)( o, this.top + v + l, this.bottom - t[p.line].height ))); if ( ((function (e, t, n) { if (isNaN(h) || h <= 0 || isNaN(g) || g < 0) return; i.save(); const o = (0, r.v)(n.lineWidth, 1); if ( ((i.fillStyle = (0, r.v)(n.fillStyle, s)), (i.lineCap = (0, r.v)(n.lineCap, "butt")), (i.lineDashOffset = (0, r.v)(n.lineDashOffset, 0)), (i.lineJoin = (0, r.v)(n.lineJoin, "miter")), (i.lineWidth = o), (i.strokeStyle = (0, r.v)(n.strokeStyle, s)), i.setLineDash((0, r.v)(n.lineDash, [])), a.usePointStyle) ) { const s = { radius: (g * Math.SQRT2) / 2, pointStyle: n.pointStyle, rotation: n.rotation, borderWidth: o, }, c = u.xPlus(e, h / 2), l = t + d; (0, r.aD)(i, s, c, l, a.pointStyleWidth && h); } else { const a = t + Math.max((f - g) / 2, 0), s = u.leftForLtr(e, h), c = (0, r.aw)(n.borderRadius); i.beginPath(), Object.values(c).some((e) => 0 !== e) ? (0, r.au)(i, { x: s, y: a, w: h, h: g, radius: c }) : i.rect(s, a, h, g), i.fill(), 0 !== o && i.stroke(); } i.restore(); })(u.x(k), E, _), (k = (0, r.aB)(x, k + h + d, y ? k + S : this.right, e.rtl)), (function (e, t, n) { (0, r.Z)(i, n.text, e, t + m / 2, c, { strikethrough: n.hidden, textAlign: u.textAlign(n.textAlign), }); })(u.x(k), E, _), y) ) p.x += S + l; else if ("string" != typeof _.text) { const e = c.lineHeight; p.y += At(_, e) + l; } else p.y += b; }), (0, r.aC)(this.ctx, e.textDirection); } drawTitle() { const e = this.options, t = e.title, n = (0, r.a0)(t.font), i = (0, r.E)(t.padding); if (!t.display) return; const o = (0, r.az)(e.rtl, this.left, this.width), a = this.ctx, s = t.position, u = n.size / 2, c = i.top + u; let l, f = this.left, d = this.width; if (this.isHorizontal()) (d = Math.max(...this.lineWidths)), (l = this.top + c), (f = (0, r.a2)(e.align, f, this.right - d)); else { const t = this.columnSizes.reduce( (e, t) => Math.max(e, t.height), 0 ); l = c + (0, r.a2)( e.align, this.top, this.bottom - t - e.labels.padding - this._computeTitleHeight() ); } const p = (0, r.a2)(s, f, f + d); (a.textAlign = o.textAlign((0, r.a1)(s))), (a.textBaseline = "middle"), (a.strokeStyle = t.color), (a.fillStyle = t.color), (a.font = n.string), (0, r.Z)(a, t.text, p, l, n); } _computeTitleHeight() { const e = this.options.title, t = (0, r.a0)(e.font), n = (0, r.E)(e.padding); return e.display ? t.lineHeight + n.height : 0; } _getLegendItemAt(e, t) { let n, i, o; if ( (0, r.aj)(e, this.left, this.right) && (0, r.aj)(t, this.top, this.bottom) ) for (o = this.legendHitBoxes, n = 0; n < o.length; ++n) if ( ((i = o[n]), (0, r.aj)(e, i.left, i.left + i.width) && (0, r.aj)(t, i.top, i.top + i.height)) ) return this.legendItems[n]; return null; } handleEvent(e) { const t = this.options; if ( !(function (e, t) { if ( ("mousemove" === e || "mouseout" === e) && (t.onHover || t.onLeave) ) return !0; if (t.onClick && ("click" === e || "mouseup" === e)) return !0; return !1; })(e.type, t) ) return; const n = this._getLegendItemAt(e.x, e.y); if ("mousemove" === e.type || "mouseout" === e.type) { const a = this._hoveredItem, s = ((o = n), null !== (i = a) && null !== o && i.datasetIndex === o.datasetIndex && i.index === o.index); a && !s && (0, r.Q)(t.onLeave, [e, a, this], this), (this._hoveredItem = n), n && !s && (0, r.Q)(t.onHover, [e, n, this], this); } else n && (0, r.Q)(t.onClick, [e, n, this], this); var i, o; } } function At(e, t) { return t * (e.text ? e.text.length : 0); } var It = { id: "legend", _element: Lt, start(e, t, n) { const r = (e.legend = new Lt({ ctx: e.ctx, options: n, chart: e })); J.configure(e, r, n), J.addBox(e, r); }, stop(e) { J.removeBox(e, e.legend), delete e.legend; }, beforeUpdate(e, t, n) { const r = e.legend; J.configure(e, r, n), (r.options = n); }, afterUpdate(e) { const t = e.legend; t.buildLabels(), t.adjustHitBoxes(); }, afterEvent(e, t) { t.replay || e.legend.handleEvent(t.event); }, defaults: { display: !0, position: "top", align: "center", fullSize: !0, reverse: !1, weight: 1e3, onClick(e, t, n) { const r = t.datasetIndex, i = n.chart; i.isDatasetVisible(r) ? (i.hide(r), (t.hidden = !0)) : (i.show(r), (t.hidden = !1)); }, onHover: null, onLeave: null, labels: { color: (e) => e.chart.options.color, boxWidth: 40, padding: 10, generateLabels(e) { const t = e.data.datasets, { labels: { usePointStyle: n, pointStyle: i, textAlign: o, color: a, useBorderRadius: s, borderRadius: u, }, } = e.legend.options; return e._getSortedDatasetMetas().map((e) => { const c = e.controller.getStyle(n ? 0 : void 0), l = (0, r.E)(c.borderWidth); return { text: t[e.index].label, fillStyle: c.backgroundColor, fontColor: a, hidden: !e.visible, lineCap: c.borderCapStyle, lineDash: c.borderDash, lineDashOffset: c.borderDashOffset, lineJoin: c.borderJoinStyle, lineWidth: (l.width + l.height) / 4, strokeStyle: c.borderColor, pointStyle: i || c.pointStyle, rotation: c.rotation, textAlign: o || c.textAlign, borderRadius: s && (u || c.borderRadius), datasetIndex: e.index, }; }, this); }, }, title: { color: (e) => e.chart.options.color, display: !1, position: "center", text: "", }, }, descriptors: { _scriptable: (e) => !e.startsWith("on"), labels: { _scriptable: (e) => !["generateLabels", "filter", "sort"].includes(e), }, }, }; class Mt extends me { constructor(e) { super(), (this.chart = e.chart), (this.options = e.options), (this.ctx = e.ctx), (this._padding = void 0), (this.top = void 0), (this.bottom = void 0), (this.left = void 0), (this.right = void 0), (this.width = void 0), (this.height = void 0), (this.position = void 0), (this.weight = void 0), (this.fullSize = void 0); } update(e, t) { const n = this.options; if (((this.left = 0), (this.top = 0), !n.display)) return void (this.width = this.height = this.right = this.bottom = 0); (this.width = this.right = e), (this.height = this.bottom = t); const i = (0, r.b)(n.text) ? n.text.length : 1; this._padding = (0, r.E)(n.padding); const o = i * (0, r.a0)(n.font).lineHeight + this._padding.height; this.isHorizontal() ? (this.height = o) : (this.width = o); } isHorizontal() { const e = this.options.position; return "top" === e || "bottom" === e; } _drawArgs(e) { const { top: t, left: n, bottom: i, right: o, options: a } = this, s = a.align; let u, c, l, f = 0; return ( this.isHorizontal() ? ((c = (0, r.a2)(s, n, o)), (l = t + e), (u = o - n)) : ("left" === a.position ? ((c = n + e), (l = (0, r.a2)(s, i, t)), (f = -0.5 * r.P)) : ((c = o - e), (l = (0, r.a2)(s, t, i)), (f = 0.5 * r.P)), (u = i - t)), { titleX: c, titleY: l, maxWidth: u, rotation: f } ); } draw() { const e = this.ctx, t = this.options; if (!t.display) return; const n = (0, r.a0)(t.font), i = n.lineHeight / 2 + this._padding.top, { titleX: o, titleY: a, maxWidth: s, rotation: u, } = this._drawArgs(i); (0, r.Z)(e, t.text, 0, 0, n, { color: t.color, maxWidth: s, rotation: u, textAlign: (0, r.a1)(t.align), textBaseline: "middle", translation: [o, a], }); } } var Pt = { id: "title", _element: Mt, start(e, t, n) { !(function (e, t) { const n = new Mt({ ctx: e.ctx, options: t, chart: e }); J.configure(e, n, t), J.addBox(e, n), (e.titleBlock = n); })(e, n); }, stop(e) { const t = e.titleBlock; J.removeBox(e, t), delete e.titleBlock; }, beforeUpdate(e, t, n) { const r = e.titleBlock; J.configure(e, r, n), (r.options = n); }, defaults: { align: "center", display: !1, font: { weight: "bold" }, fullSize: !0, padding: 10, position: "top", text: "", weight: 2e3, }, defaultRoutes: { color: "color" }, descriptors: { _scriptable: !0, _indexable: !1 }, }; new WeakMap(); const Rt = { average(e) { if (!e.length) return !1; let t, n, r = new Set(), i = 0, o = 0; for (t = 0, n = e.length; t < n; ++t) { const n = e[t].element; if (n && n.hasValue()) { const e = n.tooltipPosition(); r.add(e.x), (i += e.y), ++o; } } return { x: [...r].reduce((e, t) => e + t) / r.size, y: i / o }; }, nearest(e, t) { if (!e.length) return !1; let n, i, o, a = t.x, s = t.y, u = Number.POSITIVE_INFINITY; for (n = 0, i = e.length; n < i; ++n) { const i = e[n].element; if (i && i.hasValue()) { const e = i.getCenterPoint(), n = (0, r.aE)(t, e); n < u && ((u = n), (o = i)); } } if (o) { const e = o.tooltipPosition(); (a = e.x), (s = e.y); } return { x: a, y: s }; }, }; function Dt(e, t) { return ( t && ((0, r.b)(t) ? Array.prototype.push.apply(e, t) : e.push(t)), e ); } function jt(e) { return ("string" == typeof e || e instanceof String) && e.indexOf("\n") > -1 ? e.split("\n") : e; } function Nt(e, t) { const { element: n, datasetIndex: r, index: i } = t, o = e.getDatasetMeta(r).controller, { label: a, value: s } = o.getLabelAndValue(i); return { chart: e, label: a, parsed: o.getParsed(i), raw: e.data.datasets[r].data[i], formattedValue: s, dataset: o.getDataset(), dataIndex: i, datasetIndex: r, element: n, }; } function Bt(e, t) { const n = e.chart.ctx, { body: i, footer: o, title: a } = e, { boxWidth: s, boxHeight: u } = t, c = (0, r.a0)(t.bodyFont), l = (0, r.a0)(t.titleFont), f = (0, r.a0)(t.footerFont), d = a.length, p = o.length, h = i.length, g = (0, r.E)(t.padding); let m = g.height, y = 0, v = i.reduce( (e, t) => e + t.before.length + t.lines.length + t.after.length, 0 ); if ( ((v += e.beforeBody.length + e.afterBody.length), d && (m += d * l.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), v) ) { m += h * (t.displayColors ? Math.max(u, c.lineHeight) : c.lineHeight) + (v - h) * c.lineHeight + (v - 1) * t.bodySpacing; } p && (m += t.footerMarginTop + p * f.lineHeight + (p - 1) * t.footerSpacing); let b = 0; const _ = function (e) { y = Math.max(y, n.measureText(e).width + b); }; return ( n.save(), (n.font = l.string), (0, r.F)(e.title, _), (n.font = c.string), (0, r.F)(e.beforeBody.concat(e.afterBody), _), (b = t.displayColors ? s + 2 + t.boxPadding : 0), (0, r.F)(i, (e) => { (0, r.F)(e.before, _), (0, r.F)(e.lines, _), (0, r.F)(e.after, _); }), (b = 0), (n.font = f.string), (0, r.F)(e.footer, _), n.restore(), (y += g.width), { width: y, height: m } ); } function Ut(e, t, n, r) { const { x: i, width: o } = n, { width: a, chartArea: { left: s, right: u }, } = e; let c = "center"; return ( "center" === r ? (c = i <= (s + u) / 2 ? "left" : "right") : i <= o / 2 ? (c = "left") : i >= a - o / 2 && (c = "right"), (function (e, t, n, r) { const { x: i, width: o } = r, a = n.caretSize + n.caretPadding; return ( ("left" === e && i + o + a > t.width) || ("right" === e && i - o - a < 0) || void 0 ); })(c, e, t, n) && (c = "center"), c ); } function Ft(e, t, n) { const r = n.yAlign || t.yAlign || (function (e, t) { const { y: n, height: r } = t; return n < r / 2 ? "top" : n > e.height - r / 2 ? "bottom" : "center"; })(e, n); return { xAlign: n.xAlign || t.xAlign || Ut(e, t, n, r), yAlign: r }; } function zt(e, t, n, i) { const { caretSize: o, caretPadding: a, cornerRadius: s } = e, { xAlign: u, yAlign: c } = n, l = o + a, { topLeft: f, topRight: d, bottomLeft: p, bottomRight: h, } = (0, r.aw)(s); let g = (function (e, t) { let { x: n, width: r } = e; return "right" === t ? (n -= r) : "center" === t && (n -= r / 2), n; })(t, u); const m = (function (e, t, n) { let { y: r, height: i } = e; return ( "top" === t ? (r += n) : (r -= "bottom" === t ? i + n : i / 2), r ); })(t, c, l); return ( "center" === c ? "left" === u ? (g += l) : "right" === u && (g -= l) : "left" === u ? (g -= Math.max(f, p) + o) : "right" === u && (g += Math.max(d, h) + o), { x: (0, r.S)(g, 0, i.width - t.width), y: (0, r.S)(m, 0, i.height - t.height), } ); } function Ht(e, t, n) { const i = (0, r.E)(n.padding); return "center" === t ? e.x + e.width / 2 : "right" === t ? e.x + e.width - i.right : e.x + i.left; } function qt(e) { return Dt([], jt(e)); } function Zt(e, t) { const n = t && t.dataset && t.dataset.tooltip && t.dataset.tooltip.callbacks; return n ? e.override(n) : e; } const Vt = { beforeTitle: r.aF, title(e) { if (e.length > 0) { const t = e[0], n = t.chart.data.labels, r = n ? n.length : 0; if (this && this.options && "dataset" === this.options.mode) return t.dataset.label || ""; if (t.label) return t.label; if (r > 0 && t.dataIndex < r) return n[t.dataIndex]; } return ""; }, afterTitle: r.aF, beforeBody: r.aF, beforeLabel: r.aF, label(e) { if (this && this.options && "dataset" === this.options.mode) return e.label + ": " + e.formattedValue || e.formattedValue; let t = e.dataset.label || ""; t && (t += ": "); const n = e.formattedValue; return (0, r.k)(n) || (t += n), t; }, labelColor(e) { const t = e.chart .getDatasetMeta(e.datasetIndex) .controller.getStyle(e.dataIndex); return { borderColor: t.borderColor, backgroundColor: t.backgroundColor, borderWidth: t.borderWidth, borderDash: t.borderDash, borderDashOffset: t.borderDashOffset, borderRadius: 0, }; }, labelTextColor() { return this.options.bodyColor; }, labelPointStyle(e) { const t = e.chart .getDatasetMeta(e.datasetIndex) .controller.getStyle(e.dataIndex); return { pointStyle: t.pointStyle, rotation: t.rotation }; }, afterLabel: r.aF, afterBody: r.aF, beforeFooter: r.aF, footer: r.aF, afterFooter: r.aF, }; function Wt(e, t, n, r) { const i = e[t].call(n, r); return void 0 === i ? Vt[t].call(n, r) : i; } class $t extends me { static positioners = Rt; constructor(e) { super(), (this.opacity = 0), (this._active = []), (this._eventPosition = void 0), (this._size = void 0), (this._cachedAnimations = void 0), (this._tooltipItems = []), (this.$animations = void 0), (this.$context = void 0), (this.chart = e.chart), (this.options = e.options), (this.dataPoints = void 0), (this.title = void 0), (this.beforeBody = void 0), (this.body = void 0), (this.afterBody = void 0), (this.footer = void 0), (this.xAlign = void 0), (this.yAlign = void 0), (this.x = void 0), (this.y = void 0), (this.height = void 0), (this.width = void 0), (this.caretX = void 0), (this.caretY = void 0), (this.labelColors = void 0), (this.labelPointStyles = void 0), (this.labelTextColors = void 0); } initialize(e) { (this.options = e), (this._cachedAnimations = void 0), (this.$context = void 0); } _resolveAnimations() { const e = this._cachedAnimations; if (e) return e; const t = this.chart, n = this.options.setContext(this.getContext()), r = n.enabled && t.options.animation && n.animations, i = new c(this.chart, r); return r._cacheable && (this._cachedAnimations = Object.freeze(i)), i; } getContext() { return ( this.$context || (this.$context = ((e = this.chart.getContext()), (t = this), (n = this._tooltipItems), (0, r.j)(e, { tooltip: t, tooltipItems: n, type: "tooltip" }))) ); var e, t, n; } getTitle(e, t) { const { callbacks: n } = t, r = Wt(n, "beforeTitle", this, e), i = Wt(n, "title", this, e), o = Wt(n, "afterTitle", this, e); let a = []; return (a = Dt(a, jt(r))), (a = Dt(a, jt(i))), (a = Dt(a, jt(o))), a; } getBeforeBody(e, t) { return qt(Wt(t.callbacks, "beforeBody", this, e)); } getBody(e, t) { const { callbacks: n } = t, i = []; return ( (0, r.F)(e, (e) => { const t = { before: [], lines: [], after: [] }, r = Zt(n, e); Dt(t.before, jt(Wt(r, "beforeLabel", this, e))), Dt(t.lines, Wt(r, "label", this, e)), Dt(t.after, jt(Wt(r, "afterLabel", this, e))), i.push(t); }), i ); } getAfterBody(e, t) { return qt(Wt(t.callbacks, "afterBody", this, e)); } getFooter(e, t) { const { callbacks: n } = t, r = Wt(n, "beforeFooter", this, e), i = Wt(n, "footer", this, e), o = Wt(n, "afterFooter", this, e); let a = []; return (a = Dt(a, jt(r))), (a = Dt(a, jt(i))), (a = Dt(a, jt(o))), a; } _createItems(e) { const t = this._active, n = this.chart.data, i = [], o = [], a = []; let s, u, c = []; for (s = 0, u = t.length; s < u; ++s) c.push(Nt(this.chart, t[s])); return ( e.filter && (c = c.filter((t, r, i) => e.filter(t, r, i, n))), e.itemSort && (c = c.sort((t, r) => e.itemSort(t, r, n))), (0, r.F)(c, (t) => { const n = Zt(e.callbacks, t); i.push(Wt(n, "labelColor", this, t)), o.push(Wt(n, "labelPointStyle", this, t)), a.push(Wt(n, "labelTextColor", this, t)); }), (this.labelColors = i), (this.labelPointStyles = o), (this.labelTextColors = a), (this.dataPoints = c), c ); } update(e, t) { const n = this.options.setContext(this.getContext()), r = this._active; let i, o = []; if (r.length) { const e = Rt[n.position].call(this, r, this._eventPosition); (o = this._createItems(n)), (this.title = this.getTitle(o, n)), (this.beforeBody = this.getBeforeBody(o, n)), (this.body = this.getBody(o, n)), (this.afterBody = this.getAfterBody(o, n)), (this.footer = this.getFooter(o, n)); const t = (this._size = Bt(this, n)), a = Object.assign({}, e, t), s = Ft(this.chart, n, a), u = zt(n, a, s, this.chart); (this.xAlign = s.xAlign), (this.yAlign = s.yAlign), (i = { opacity: 1, x: u.x, y: u.y, width: t.width, height: t.height, caretX: e.x, caretY: e.y, }); } else 0 !== this.opacity && (i = { opacity: 0 }); (this._tooltipItems = o), (this.$context = void 0), i && this._resolveAnimations().update(this, i), e && n.external && n.external.call(this, { chart: this.chart, tooltip: this, replay: t, }); } drawCaret(e, t, n, r) { const i = this.getCaretPosition(e, n, r); t.lineTo(i.x1, i.y1), t.lineTo(i.x2, i.y2), t.lineTo(i.x3, i.y3); } getCaretPosition(e, t, n) { const { xAlign: i, yAlign: o } = this, { caretSize: a, cornerRadius: s } = n, { topLeft: u, topRight: c, bottomLeft: l, bottomRight: f, } = (0, r.aw)(s), { x: d, y: p } = e, { width: h, height: g } = t; let m, y, v, b, _, w; return ( "center" === o ? ((_ = p + g / 2), "left" === i ? ((m = d), (y = m - a), (b = _ + a), (w = _ - a)) : ((m = d + h), (y = m + a), (b = _ - a), (w = _ + a)), (v = m)) : ((y = "left" === i ? d + Math.max(u, l) + a : "right" === i ? d + h - Math.max(c, f) - a : this.caretX), "top" === o ? ((b = p), (_ = b - a), (m = y - a), (v = y + a)) : ((b = p + g), (_ = b + a), (m = y + a), (v = y - a)), (w = b)), { x1: m, x2: y, x3: v, y1: b, y2: _, y3: w } ); } drawTitle(e, t, n) { const i = this.title, o = i.length; let a, s, u; if (o) { const c = (0, r.az)(n.rtl, this.x, this.width); for ( e.x = Ht(this, n.titleAlign, n), t.textAlign = c.textAlign(n.titleAlign), t.textBaseline = "middle", a = (0, r.a0)(n.titleFont), s = n.titleSpacing, t.fillStyle = n.titleColor, t.font = a.string, u = 0; u < o; ++u ) t.fillText(i[u], c.x(e.x), e.y + a.lineHeight / 2), (e.y += a.lineHeight + s), u + 1 === o && (e.y += n.titleMarginBottom - s); } } _drawColorBox(e, t, n, i, o) { const a = this.labelColors[n], s = this.labelPointStyles[n], { boxHeight: u, boxWidth: c } = o, l = (0, r.a0)(o.bodyFont), f = Ht(this, "left", o), d = i.x(f), p = u < l.lineHeight ? (l.lineHeight - u) / 2 : 0, h = t.y + p; if (o.usePointStyle) { const t = { radius: Math.min(c, u) / 2, pointStyle: s.pointStyle, rotation: s.rotation, borderWidth: 1, }, n = i.leftForLtr(d, c) + c / 2, l = h + u / 2; (e.strokeStyle = o.multiKeyBackground), (e.fillStyle = o.multiKeyBackground), (0, r.at)(e, t, n, l), (e.strokeStyle = a.borderColor), (e.fillStyle = a.backgroundColor), (0, r.at)(e, t, n, l); } else { (e.lineWidth = (0, r.i)(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1), (e.strokeStyle = a.borderColor), e.setLineDash(a.borderDash || []), (e.lineDashOffset = a.borderDashOffset || 0); const t = i.leftForLtr(d, c), n = i.leftForLtr(i.xPlus(d, 1), c - 2), s = (0, r.aw)(a.borderRadius); Object.values(s).some((e) => 0 !== e) ? (e.beginPath(), (e.fillStyle = o.multiKeyBackground), (0, r.au)(e, { x: t, y: h, w: c, h: u, radius: s }), e.fill(), e.stroke(), (e.fillStyle = a.backgroundColor), e.beginPath(), (0, r.au)(e, { x: n, y: h + 1, w: c - 2, h: u - 2, radius: s }), e.fill()) : ((e.fillStyle = o.multiKeyBackground), e.fillRect(t, h, c, u), e.strokeRect(t, h, c, u), (e.fillStyle = a.backgroundColor), e.fillRect(n, h + 1, c - 2, u - 2)); } e.fillStyle = this.labelTextColors[n]; } drawBody(e, t, n) { const { body: i } = this, { bodySpacing: o, bodyAlign: a, displayColors: s, boxHeight: u, boxWidth: c, boxPadding: l, } = n, f = (0, r.a0)(n.bodyFont); let d = f.lineHeight, p = 0; const h = (0, r.az)(n.rtl, this.x, this.width), g = function (n) { t.fillText(n, h.x(e.x + p), e.y + d / 2), (e.y += d + o); }, m = h.textAlign(a); let y, v, b, _, w, T, x; for ( t.textAlign = a, t.textBaseline = "middle", t.font = f.string, e.x = Ht(this, m, n), t.fillStyle = n.bodyColor, (0, r.F)(this.beforeBody, g), p = s && "right" !== m ? "center" === a ? c / 2 + l : c + 2 + l : 0, _ = 0, T = i.length; _ < T; ++_ ) { for ( y = i[_], v = this.labelTextColors[_], t.fillStyle = v, (0, r.F)(y.before, g), b = y.lines, s && b.length && (this._drawColorBox(t, e, _, h, n), (d = Math.max(f.lineHeight, u))), w = 0, x = b.length; w < x; ++w ) g(b[w]), (d = f.lineHeight); (0, r.F)(y.after, g); } (p = 0), (d = f.lineHeight), (0, r.F)(this.afterBody, g), (e.y -= o); } drawFooter(e, t, n) { const i = this.footer, o = i.length; let a, s; if (o) { const u = (0, r.az)(n.rtl, this.x, this.width); for ( e.x = Ht(this, n.footerAlign, n), e.y += n.footerMarginTop, t.textAlign = u.textAlign(n.footerAlign), t.textBaseline = "middle", a = (0, r.a0)(n.footerFont), t.fillStyle = n.footerColor, t.font = a.string, s = 0; s < o; ++s ) t.fillText(i[s], u.x(e.x), e.y + a.lineHeight / 2), (e.y += a.lineHeight + n.footerSpacing); } } drawBackground(e, t, n, i) { const { xAlign: o, yAlign: a } = this, { x: s, y: u } = e, { width: c, height: l } = n, { topLeft: f, topRight: d, bottomLeft: p, bottomRight: h, } = (0, r.aw)(i.cornerRadius); (t.fillStyle = i.backgroundColor), (t.strokeStyle = i.borderColor), (t.lineWidth = i.borderWidth), t.beginPath(), t.moveTo(s + f, u), "top" === a && this.drawCaret(e, t, n, i), t.lineTo(s + c - d, u), t.quadraticCurveTo(s + c, u, s + c, u + d), "center" === a && "right" === o && this.drawCaret(e, t, n, i), t.lineTo(s + c, u + l - h), t.quadraticCurveTo(s + c, u + l, s + c - h, u + l), "bottom" === a && this.drawCaret(e, t, n, i), t.lineTo(s + p, u + l), t.quadraticCurveTo(s, u + l, s, u + l - p), "center" === a && "left" === o && this.drawCaret(e, t, n, i), t.lineTo(s, u + f), t.quadraticCurveTo(s, u, s + f, u), t.closePath(), t.fill(), i.borderWidth > 0 && t.stroke(); } _updateAnimationTarget(e) { const t = this.chart, n = this.$animations, r = n && n.x, i = n && n.y; if (r || i) { const n = Rt[e.position].call( this, this._active, this._eventPosition ); if (!n) return; const o = (this._size = Bt(this, e)), a = Object.assign({}, n, this._size), s = Ft(t, e, a), u = zt(e, a, s, t); (r._to === u.x && i._to === u.y) || ((this.xAlign = s.xAlign), (this.yAlign = s.yAlign), (this.width = o.width), (this.height = o.height), (this.caretX = n.x), (this.caretY = n.y), this._resolveAnimations().update(this, u)); } } _willRender() { return !!this.opacity; } draw(e) { const t = this.options.setContext(this.getContext()); let n = this.opacity; if (!n) return; this._updateAnimationTarget(t); const i = { width: this.width, height: this.height }, o = { x: this.x, y: this.y }; n = Math.abs(n) < 0.001 ? 0 : n; const a = (0, r.E)(t.padding), s = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length; t.enabled && s && (e.save(), (e.globalAlpha = n), this.drawBackground(o, e, i, t), (0, r.aA)(e, t.textDirection), (o.y += a.top), this.drawTitle(o, e, t), this.drawBody(o, e, t), this.drawFooter(o, e, t), (0, r.aC)(e, t.textDirection), e.restore()); } getActiveElements() { return this._active || []; } setActiveElements(e, t) { const n = this._active, i = e.map(({ datasetIndex: e, index: t }) => { const n = this.chart.getDatasetMeta(e); if (!n) throw new Error("Cannot find a dataset at index " + e); return { datasetIndex: e, element: n.data[t], index: t }; }), o = !(0, r.ah)(n, i), a = this._positionChanged(i, t); (o || a) && ((this._active = i), (this._eventPosition = t), (this._ignoreReplayEvents = !0), this.update(!0)); } handleEvent(e, t, n = !0) { if (t && this._ignoreReplayEvents) return !1; this._ignoreReplayEvents = !1; const i = this.options, o = this._active || [], a = this._getActiveElements(e, o, t, n), s = this._positionChanged(a, e), u = t || !(0, r.ah)(a, o) || s; return ( u && ((this._active = a), (i.enabled || i.external) && ((this._eventPosition = { x: e.x, y: e.y }), this.update(!0, t))), u ); } _getActiveElements(e, t, n, r) { const i = this.options; if ("mouseout" === e.type) return []; if (!r) return t.filter( (e) => this.chart.data.datasets[e.datasetIndex] && void 0 !== this.chart .getDatasetMeta(e.datasetIndex) .controller.getParsed(e.index) ); const o = this.chart.getElementsAtEventForMode(e, i.mode, i, n); return i.reverse && o.reverse(), o; } _positionChanged(e, t) { const { caretX: n, caretY: r, options: i } = this, o = Rt[i.position].call(this, e, t); return !1 !== o && (n !== o.x || r !== o.y); } } var Gt = { id: "tooltip", _element: $t, positioners: Rt, afterInit(e, t, n) { n && (e.tooltip = new $t({ chart: e, options: n })); }, beforeUpdate(e, t, n) { e.tooltip && e.tooltip.initialize(n); }, reset(e, t, n) { e.tooltip && e.tooltip.initialize(n); }, afterDraw(e) { const t = e.tooltip; if (t && t._willRender()) { const n = { tooltip: t }; if ( !1 === e.notifyPlugins("beforeTooltipDraw", { ...n, cancelable: !0 }) ) return; t.draw(e.ctx), e.notifyPlugins("afterTooltipDraw", n); } }, afterEvent(e, t) { if (e.tooltip) { const n = t.replay; e.tooltip.handleEvent(t.event, n, t.inChartArea) && (t.changed = !0); } }, defaults: { enabled: !0, external: null, position: "average", backgroundColor: "rgba(0,0,0,0.8)", titleColor: "#fff", titleFont: { weight: "bold" }, titleSpacing: 2, titleMarginBottom: 6, titleAlign: "left", bodyColor: "#fff", bodySpacing: 2, bodyFont: {}, bodyAlign: "left", footerColor: "#fff", footerSpacing: 2, footerMarginTop: 6, footerFont: { weight: "bold" }, footerAlign: "left", padding: 6, caretPadding: 2, caretSize: 5, cornerRadius: 6, boxHeight: (e, t) => t.bodyFont.size, boxWidth: (e, t) => t.bodyFont.size, multiKeyBackground: "#fff", displayColors: !0, boxPadding: 0, borderColor: "rgba(0,0,0,0)", borderWidth: 0, animation: { duration: 400, easing: "easeOutQuart" }, animations: { numbers: { type: "number", properties: ["x", "y", "width", "height", "caretX", "caretY"], }, opacity: { easing: "linear", duration: 200 }, }, callbacks: Vt, }, defaultRoutes: { bodyFont: "font", footerFont: "font", titleFont: "font", }, descriptors: { _scriptable: (e) => "filter" !== e && "itemSort" !== e && "external" !== e, _indexable: !1, callbacks: { _scriptable: !1, _indexable: !1 }, animation: { _fallback: !1 }, animations: { _fallback: "animation" }, }, additionalOptionScopes: ["interaction"], }; function Yt(e, t, n, r) { const i = e.indexOf(t); if (-1 === i) return ((e, t, n, r) => ( "string" == typeof t ? ((n = e.push(t) - 1), r.unshift({ index: n, label: t })) : isNaN(t) && (n = null), n ))(e, t, n, r); return i !== e.lastIndexOf(t) ? n : i; } function Kt(e) { const t = this.getLabels(); return e >= 0 && e < t.length ? t[e] : e; } class Xt extends Ee { static id = "category"; static defaults = { ticks: { callback: Kt } }; constructor(e) { super(e), (this._startValue = void 0), (this._valueRange = 0), (this._addedLabels = []); } init(e) { const t = this._addedLabels; if (t.length) { const e = this.getLabels(); for (const { index: n, label: r } of t) e[n] === r && e.splice(n, 1); this._addedLabels = []; } super.init(e); } parse(e, t) { if ((0, r.k)(e)) return null; const n = this.getLabels(); return ((e, t) => null === e ? null : (0, r.S)(Math.round(e), 0, t))( (t = isFinite(t) && n[t] === e ? t : Yt(n, e, (0, r.v)(t, e), this._addedLabels)), n.length - 1 ); } determineDataLimits() { const { minDefined: e, maxDefined: t } = this.getUserBounds(); let { min: n, max: r } = this.getMinMax(!0); "ticks" === this.options.bounds && (e || (n = 0), t || (r = this.getLabels().length - 1)), (this.min = n), (this.max = r); } buildTicks() { const e = this.min, t = this.max, n = this.options.offset, r = []; let i = this.getLabels(); (i = 0 === e && t === i.length - 1 ? i : i.slice(e, t + 1)), (this._valueRange = Math.max(i.length - (n ? 0 : 1), 1)), (this._startValue = this.min - (n ? 0.5 : 0)); for (let n = e; n <= t; n++) r.push({ value: n }); return r; } getLabelForValue(e) { return Kt.call(this, e); } configure() { super.configure(), this.isHorizontal() || (this._reversePixels = !this._reversePixels); } getPixelForValue(e) { return ( "number" != typeof e && (e = this.parse(e)), null === e ? NaN : this.getPixelForDecimal( (e - this._startValue) / this._valueRange ) ); } getPixelForTick(e) { const t = this.ticks; return e < 0 || e > t.length - 1 ? null : this.getPixelForValue(t[e].value); } getValueForPixel(e) { return Math.round( this._startValue + this.getDecimalForPixel(e) * this._valueRange ); } getBasePixel() { return this.bottom; } } function Qt(e, t, { horizontal: n, minRotation: i }) { const o = (0, r.t)(i), a = (n ? Math.sin(o) : Math.cos(o)) || 0.001, s = 0.75 * t * ("" + e).length; return Math.min(t / a, s); } class Jt extends Ee { constructor(e) { super(e), (this.start = void 0), (this.end = void 0), (this._startValue = void 0), (this._endValue = void 0), (this._valueRange = 0); } parse(e, t) { return (0, r.k)(e) || (("number" == typeof e || e instanceof Number) && !isFinite(+e)) ? null : +e; } handleTickRangeOptions() { const { beginAtZero: e } = this.options, { minDefined: t, maxDefined: n } = this.getUserBounds(); let { min: i, max: o } = this; const a = (e) => (i = t ? i : e), s = (e) => (o = n ? o : e); if (e) { const e = (0, r.s)(i), t = (0, r.s)(o); e < 0 && t < 0 ? s(0) : e > 0 && t > 0 && a(0); } if (i === o) { let t = 0 === o ? 1 : Math.abs(0.05 * o); s(o + t), e || a(i - t); } (this.min = i), (this.max = o); } getTickLimit() { const e = this.options.ticks; let t, { maxTicksLimit: n, stepSize: r } = e; return ( r ? ((t = Math.ceil(this.max / r) - Math.floor(this.min / r) + 1), t > 1e3 && (console.warn( `scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.` ), (t = 1e3))) : ((t = this.computeTickLimit()), (n = n || 11)), n && (t = Math.min(n, t)), t ); } computeTickLimit() { return Number.POSITIVE_INFINITY; } buildTicks() { const e = this.options, t = e.ticks; let n = this.getTickLimit(); n = Math.max(2, n); const i = (function (e, t) { const n = [], { bounds: i, step: o, min: a, max: s, precision: u, count: c, maxTicks: l, maxDigits: f, includeBounds: d, } = e, p = o || 1, h = l - 1, { min: g, max: m } = t, y = !(0, r.k)(a), v = !(0, r.k)(s), b = !(0, r.k)(c), _ = (m - g) / (f + 1); let w, T, x, S, k = (0, r.aH)((m - g) / h / p) * p; if (k < 1e-14 && !y && !v) return [{ value: g }, { value: m }]; (S = Math.ceil(m / k) - Math.floor(g / k)), S > h && (k = (0, r.aH)((S * k) / h / p) * p), (0, r.k)(u) || ((w = Math.pow(10, u)), (k = Math.ceil(k * w) / w)), "ticks" === i ? ((T = Math.floor(g / k) * k), (x = Math.ceil(m / k) * k)) : ((T = g), (x = m)), y && v && o && (0, r.aI)((s - a) / o, k / 1e3) ? ((S = Math.round(Math.min((s - a) / k, l))), (k = (s - a) / S), (T = a), (x = s)) : b ? ((T = y ? a : T), (x = v ? s : x), (S = c - 1), (k = (x - T) / S)) : ((S = (x - T) / k), (S = (0, r.aJ)(S, Math.round(S), k / 1e3) ? Math.round(S) : Math.ceil(S))); const E = Math.max((0, r.aK)(k), (0, r.aK)(T)); (w = Math.pow(10, (0, r.k)(u) ? E : u)), (T = Math.round(T * w) / w), (x = Math.round(x * w) / w); let O = 0; for ( y && (d && T !== a ? (n.push({ value: a }), T < a && O++, (0, r.aJ)(Math.round((T + O * k) * w) / w, a, Qt(a, _, e)) && O++) : T < a && O++); O < S; ++O ) { const e = Math.round((T + O * k) * w) / w; if (v && e > s) break; n.push({ value: e }); } return ( v && d && x !== s ? n.length && (0, r.aJ)(n[n.length - 1].value, s, Qt(s, _, e)) ? (n[n.length - 1].value = s) : n.push({ value: s }) : (v && x !== s) || n.push({ value: x }), n ); })( { maxTicks: n, bounds: e.bounds, min: e.min, max: e.max, precision: t.precision, step: t.stepSize, count: t.count, maxDigits: this._maxDigits(), horizontal: this.isHorizontal(), minRotation: t.minRotation || 0, includeBounds: !1 !== t.includeBounds, }, this._range || this ); return ( "ticks" === e.bounds && (0, r.aG)(i, this, "value"), e.reverse ? (i.reverse(), (this.start = this.max), (this.end = this.min)) : ((this.start = this.min), (this.end = this.max)), i ); } configure() { const e = this.ticks; let t = this.min, n = this.max; if ((super.configure(), this.options.offset && e.length)) { const r = (n - t) / Math.max(e.length - 1, 1) / 2; (t -= r), (n += r); } (this._startValue = t), (this._endValue = n), (this._valueRange = n - t); } getLabelForValue(e) { return (0, r.o)( e, this.chart.options.locale, this.options.ticks.format ); } } class en extends Jt { static id = "linear"; static defaults = { ticks: { callback: r.aL.formatters.numeric } }; determineDataLimits() { const { min: e, max: t } = this.getMinMax(!0); (this.min = (0, r.g)(e) ? e : 0), (this.max = (0, r.g)(t) ? t : 1), this.handleTickRangeOptions(); } computeTickLimit() { const e = this.isHorizontal(), t = e ? this.width : this.height, n = (0, r.t)(this.options.ticks.minRotation), i = (e ? Math.sin(n) : Math.cos(n)) || 0.001, o = this._resolveTickFontOptions(0); return Math.ceil(t / Math.min(40, o.lineHeight / i)); } getPixelForValue(e) { return null === e ? NaN : this.getPixelForDecimal( (e - this._startValue) / this._valueRange ); } getValueForPixel(e) { return ( this._startValue + this.getDecimalForPixel(e) * this._valueRange ); } } r.aL.formatters.logarithmic; r.aL.formatters.numeric; }, 50713: function (e, t, n) { "use strict"; function r(e) { return (e + 0.5) | 0; } n.d(t, { $: function () { return St; }, A: function () { return Ne; }, B: function () { return je; }, C: function () { return Tt; }, D: function () { return Oe; }, E: function () { return Nt; }, F: function () { return $; }, G: function () { return vn; }, H: function () { return pe; }, I: function () { return fn; }, J: function () { return wn; }, K: function () { return _n; }, L: function () { return Ze; }, M: function () { return ln; }, N: function () { return _e; }, O: function () { return H; }, P: function () { return ue; }, Q: function () { return W; }, R: function () { return Ft; }, S: function () { return Me; }, T: function () { return ce; }, U: function () { return ke; }, V: function () { return mt; }, W: function () { return Pe; }, X: function () { return vt; }, Y: function () { return xt; }, Z: function () { return Lt; }, _: function () { return He; }, a: function () { return Ut; }, a0: function () { return Bt; }, a1: function () { return We; }, a2: function () { return $e; }, a3: function () { return lt; }, a4: function () { return Q; }, a5: function () { return re; }, a6: function () { return ft; }, a7: function () { return oe; }, a8: function () { return qt; }, a9: function () { return Ht; }, aA: function () { return En; }, aB: function () { return Ge; }, aC: function () { return On; }, aD: function () { return wt; }, aE: function () { return Ce; }, aF: function () { return j; }, aG: function () { return xe; }, aH: function () { return be; }, aI: function () { return Te; }, aJ: function () { return ve; }, aK: function () { return Ee; }, aL: function () { return ct; }, aM: function () { return me; }, aN: function () { return yt; }, aO: function () { return Be; }, aP: function () { return De; }, aa: function () { return Zt; }, ab: function () { return J; }, ac: function () { return N; }, ad: function () { return Ve; }, ae: function () { return bn; }, af: function () { return bt; }, ag: function () { return ae; }, ah: function () { return G; }, ai: function () { return se; }, aj: function () { return Re; }, ak: function () { return Rt; }, al: function () { return cn; }, am: function () { return Mn; }, an: function () { return In; }, ao: function () { return xn; }, ap: function () { return Sn; }, aq: function () { return Tn; }, ar: function () { return kt; }, as: function () { return Et; }, at: function () { return _t; }, au: function () { return At; }, av: function () { return Dt; }, aw: function () { return jt; }, ax: function () { return An; }, ay: function () { return Ae; }, az: function () { return kn; }, b: function () { return U; }, c: function () { return nt; }, d: function () { return gt; }, e: function () { return et; }, f: function () { return ne; }, g: function () { return z; }, h: function () { return ie; }, i: function () { return F; }, j: function () { return zt; }, k: function () { return B; }, l: function () { return Fe; }, m: function () { return Z; }, n: function () { return V; }, o: function () { return st; }, p: function () { return Ie; }, q: function () { return Ye; }, r: function () { return qe; }, s: function () { return ye; }, t: function () { return Se; }, u: function () { return ze; }, v: function () { return q; }, w: function () { return Ke; }, x: function () { return we; }, y: function () { return tn; }, z: function () { return mn; }, }); const i = (e, t, n) => Math.max(Math.min(e, n), t); function o(e) { return i(r(2.55 * e), 0, 255); } function a(e) { return i(r(255 * e), 0, 255); } function s(e) { return i(r(e / 2.55) / 100, 0, 1); } function u(e) { return i(r(100 * e), 0, 100); } const c = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15, }, l = [..."0123456789ABCDEF"], f = (e) => l[15 & e], d = (e) => l[(240 & e) >> 4] + l[15 & e], p = (e) => (240 & e) >> 4 == (15 & e); function h(e) { var t = ((e) => p(e.r) && p(e.g) && p(e.b) && p(e.a))(e) ? f : d; return e ? "#" + t(e.r) + t(e.g) + t(e.b) + ((e, t) => (e < 255 ? t(e) : ""))(e.a, t) : void 0; } const g = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/; function m(e, t, n) { const r = t * Math.min(n, 1 - n), i = (t, i = (t + e / 30) % 12) => n - r * Math.max(Math.min(i - 3, 9 - i, 1), -1); return [i(0), i(8), i(4)]; } function y(e, t, n) { const r = (r, i = (r + e / 60) % 6) => n - n * t * Math.max(Math.min(i, 4 - i, 1), 0); return [r(5), r(3), r(1)]; } function v(e, t, n) { const r = m(e, 1, 0.5); let i; for ( t + n > 1 && ((i = 1 / (t + n)), (t *= i), (n *= i)), i = 0; i < 3; i++ ) (r[i] *= 1 - t - n), (r[i] += t); return r; } function b(e) { const t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.max(t, n, r), o = Math.min(t, n, r), a = (i + o) / 2; let s, u, c; return ( i !== o && ((c = i - o), (u = a > 0.5 ? c / (2 - i - o) : c / (i + o)), (s = (function (e, t, n, r, i) { return e === i ? (t - n) / r + (t < n ? 6 : 0) : t === i ? (n - e) / r + 2 : (e - t) / r + 4; })(t, n, r, c, i)), (s = 60 * s + 0.5)), [0 | s, u || 0, a] ); } function _(e, t, n, r) { return (Array.isArray(t) ? e(t[0], t[1], t[2]) : e(t, n, r)).map(a); } function w(e, t, n) { return _(m, e, t, n); } function T(e) { return ((e % 360) + 360) % 360; } function x(e) { const t = g.exec(e); let n, r = 255; if (!t) return; t[5] !== n && (r = t[6] ? o(+t[5]) : a(+t[5])); const i = T(+t[2]), s = +t[3] / 100, u = +t[4] / 100; return ( (n = "hwb" === t[1] ? (function (e, t, n) { return _(v, e, t, n); })(i, s, u) : "hsv" === t[1] ? (function (e, t, n) { return _(y, e, t, n); })(i, s, u) : w(i, s, u)), { r: n[0], g: n[1], b: n[2], a: r } ); } const S = { x: "dark", Z: "light", Y: "re", X: "blu", W: "gr", V: "medium", U: "slate", A: "ee", T: "ol", S: "or", B: "ra", C: "lateg", D: "ights", R: "in", Q: "turquois", E: "hi", P: "ro", O: "al", N: "le", M: "de", L: "yello", F: "en", K: "ch", G: "arks", H: "ea", I: "ightg", J: "wh", }, k = { OiceXe: "f0f8ff", antiquewEte: "faebd7", aqua: "ffff", aquamarRe: "7fffd4", azuY: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "0", blanKedOmond: "ffebcd", Xe: "ff", XeviTet: "8a2be2", bPwn: "a52a2a", burlywood: "deb887", caMtXe: "5f9ea0", KartYuse: "7fff00", KocTate: "d2691e", cSO: "ff7f50", cSnflowerXe: "6495ed", cSnsilk: "fff8dc", crimson: "dc143c", cyan: "ffff", xXe: "8b", xcyan: "8b8b", xgTMnPd: "b8860b", xWay: "a9a9a9", xgYF: "6400", xgYy: "a9a9a9", xkhaki: "bdb76b", xmagFta: "8b008b", xTivegYF: "556b2f", xSange: "ff8c00", xScEd: "9932cc", xYd: "8b0000", xsOmon: "e9967a", xsHgYF: "8fbc8f", xUXe: "483d8b", xUWay: "2f4f4f", xUgYy: "2f4f4f", xQe: "ced1", xviTet: "9400d3", dAppRk: "ff1493", dApskyXe: "bfff", dimWay: "696969", dimgYy: "696969", dodgerXe: "1e90ff", fiYbrick: "b22222", flSOwEte: "fffaf0", foYstWAn: "228b22", fuKsia: "ff00ff", gaRsbSo: "dcdcdc", ghostwEte: "f8f8ff", gTd: "ffd700", gTMnPd: "daa520", Way: "808080", gYF: "8000", gYFLw: "adff2f", gYy: "808080", honeyMw: "f0fff0", hotpRk: "ff69b4", RdianYd: "cd5c5c", Rdigo: "4b0082", ivSy: "fffff0", khaki: "f0e68c", lavFMr: "e6e6fa", lavFMrXsh: "fff0f5", lawngYF: "7cfc00", NmoncEffon: "fffacd", ZXe: "add8e6", ZcSO: "f08080", Zcyan: "e0ffff", ZgTMnPdLw: "fafad2", ZWay: "d3d3d3", ZgYF: "90ee90", ZgYy: "d3d3d3", ZpRk: "ffb6c1", ZsOmon: "ffa07a", ZsHgYF: "20b2aa", ZskyXe: "87cefa", ZUWay: "778899", ZUgYy: "778899", ZstAlXe: "b0c4de", ZLw: "ffffe0", lime: "ff00", limegYF: "32cd32", lRF: "faf0e6", magFta: "ff00ff", maPon: "800000", VaquamarRe: "66cdaa", VXe: "cd", VScEd: "ba55d3", VpurpN: "9370db", VsHgYF: "3cb371", VUXe: "7b68ee", VsprRggYF: "fa9a", VQe: "48d1cc", VviTetYd: "c71585", midnightXe: "191970", mRtcYam: "f5fffa", mistyPse: "ffe4e1", moccasR: "ffe4b5", navajowEte: "ffdead", navy: "80", Tdlace: "fdf5e6", Tive: "808000", TivedBb: "6b8e23", Sange: "ffa500", SangeYd: "ff4500", ScEd: "da70d6", pOegTMnPd: "eee8aa", pOegYF: "98fb98", pOeQe: "afeeee", pOeviTetYd: "db7093", papayawEp: "ffefd5", pHKpuff: "ffdab9", peru: "cd853f", pRk: "ffc0cb", plum: "dda0dd", powMrXe: "b0e0e6", purpN: "800080", YbeccapurpN: "663399", Yd: "ff0000", Psybrown: "bc8f8f", PyOXe: "4169e1", saddNbPwn: "8b4513", sOmon: "fa8072", sandybPwn: "f4a460", sHgYF: "2e8b57", sHshell: "fff5ee", siFna: "a0522d", silver: "c0c0c0", skyXe: "87ceeb", UXe: "6a5acd", UWay: "708090", UgYy: "708090", snow: "fffafa", sprRggYF: "ff7f", stAlXe: "4682b4", tan: "d2b48c", teO: "8080", tEstN: "d8bfd8", tomato: "ff6347", Qe: "40e0d0", viTet: "ee82ee", JHt: "f5deb3", wEte: "ffffff", wEtesmoke: "f5f5f5", Lw: "ffff00", LwgYF: "9acd32", }; let E; function O(e) { E || ((E = (function () { const e = {}, t = Object.keys(k), n = Object.keys(S); let r, i, o, a, s; for (r = 0; r < t.length; r++) { for (a = s = t[r], i = 0; i < n.length; i++) (o = n[i]), (s = s.replace(o, S[o])); (o = parseInt(k[a], 16)), (e[s] = [(o >> 16) & 255, (o >> 8) & 255, 255 & o]); } return e; })()), (E.transparent = [0, 0, 0, 0])); const t = E[e.toLowerCase()]; return ( t && { r: t[0], g: t[1], b: t[2], a: 4 === t.length ? t[3] : 255 } ); } const C = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/; const L = (e) => e <= 0.0031308 ? 12.92 * e : 1.055 * Math.pow(e, 1 / 2.4) - 0.055, A = (e) => e <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4); function I(e, t, n) { if (e) { let r = b(e); (r[t] = Math.max(0, Math.min(r[t] + r[t] * n, 0 === t ? 360 : 1))), (r = w(r)), (e.r = r[0]), (e.g = r[1]), (e.b = r[2]); } } function M(e, t) { return e ? Object.assign(t || {}, e) : e; } function P(e) { var t = { r: 0, g: 0, b: 0, a: 255 }; return ( Array.isArray(e) ? e.length >= 3 && ((t = { r: e[0], g: e[1], b: e[2], a: 255 }), e.length > 3 && (t.a = a(e[3]))) : ((t = M(e, { r: 0, g: 0, b: 0, a: 1 })).a = a(t.a)), t ); } function R(e) { return "r" === e.charAt(0) ? (function (e) { const t = C.exec(e); let n, r, a, s = 255; if (t) { if (t[7] !== n) { const e = +t[7]; s = t[8] ? o(e) : i(255 * e, 0, 255); } return ( (n = +t[1]), (r = +t[3]), (a = +t[5]), (n = 255 & (t[2] ? o(n) : i(n, 0, 255))), (r = 255 & (t[4] ? o(r) : i(r, 0, 255))), (a = 255 & (t[6] ? o(a) : i(a, 0, 255))), { r: n, g: r, b: a, a: s } ); } })(e) : x(e); } class D { constructor(e) { if (e instanceof D) return e; const t = typeof e; let n; var r, i, o; "object" === t ? (n = P(e)) : "string" === t && ((o = (r = e).length), "#" === r[0] && (4 === o || 5 === o ? (i = { r: 255 & (17 * c[r[1]]), g: 255 & (17 * c[r[2]]), b: 255 & (17 * c[r[3]]), a: 5 === o ? 17 * c[r[4]] : 255, }) : (7 !== o && 9 !== o) || (i = { r: (c[r[1]] << 4) | c[r[2]], g: (c[r[3]] << 4) | c[r[4]], b: (c[r[5]] << 4) | c[r[6]], a: 9 === o ? (c[r[7]] << 4) | c[r[8]] : 255, })), (n = i || O(e) || R(e))), (this._rgb = n), (this._valid = !!n); } get valid() { return this._valid; } get rgb() { var e = M(this._rgb); return e && (e.a = s(e.a)), e; } set rgb(e) { this._rgb = P(e); } rgbString() { return this._valid ? (e = this._rgb) && (e.a < 255 ? `rgba(${e.r}, ${e.g}, ${e.b}, ${s(e.a)})` : `rgb(${e.r}, ${e.g}, ${e.b})`) : void 0; var e; } hexString() { return this._valid ? h(this._rgb) : void 0; } hslString() { return this._valid ? (function (e) { if (!e) return; const t = b(e), n = t[0], r = u(t[1]), i = u(t[2]); return e.a < 255 ? `hsla(${n}, ${r}%, ${i}%, ${s(e.a)})` : `hsl(${n}, ${r}%, ${i}%)`; })(this._rgb) : void 0; } mix(e, t) { if (e) { const n = this.rgb, r = e.rgb; let i; const o = t === i ? 0.5 : t, a = 2 * o - 1, s = n.a - r.a, u = ((a * s == -1 ? a : (a + s) / (1 + a * s)) + 1) / 2; (i = 1 - u), (n.r = 255 & (u * n.r + i * r.r + 0.5)), (n.g = 255 & (u * n.g + i * r.g + 0.5)), (n.b = 255 & (u * n.b + i * r.b + 0.5)), (n.a = o * n.a + (1 - o) * r.a), (this.rgb = n); } return this; } interpolate(e, t) { return ( e && (this._rgb = (function (e, t, n) { const r = A(s(e.r)), i = A(s(e.g)), o = A(s(e.b)); return { r: a(L(r + n * (A(s(t.r)) - r))), g: a(L(i + n * (A(s(t.g)) - i))), b: a(L(o + n * (A(s(t.b)) - o))), a: e.a + n * (t.a - e.a), }; })(this._rgb, e._rgb, t)), this ); } clone() { return new D(this.rgb); } alpha(e) { return (this._rgb.a = a(e)), this; } clearer(e) { return (this._rgb.a *= 1 - e), this; } greyscale() { const e = this._rgb, t = r(0.3 * e.r + 0.59 * e.g + 0.11 * e.b); return (e.r = e.g = e.b = t), this; } opaquer(e) { return (this._rgb.a *= 1 + e), this; } negate() { const e = this._rgb; return (e.r = 255 - e.r), (e.g = 255 - e.g), (e.b = 255 - e.b), this; } lighten(e) { return I(this._rgb, 2, e), this; } darken(e) { return I(this._rgb, 2, -e), this; } saturate(e) { return I(this._rgb, 1, e), this; } desaturate(e) { return I(this._rgb, 1, -e), this; } rotate(e) { return ( (function (e, t) { var n = b(e); (n[0] = T(n[0] + t)), (n = w(n)), (e.r = n[0]), (e.g = n[1]), (e.b = n[2]); })(this._rgb, e), this ); } } function j() {} const N = (() => { let e = 0; return () => e++; })(); function B(e) { return null == e; } function U(e) { if (Array.isArray && Array.isArray(e)) return !0; const t = Object.prototype.toString.call(e); return "[object" === t.slice(0, 7) && "Array]" === t.slice(-6); } function F(e) { return ( null !== e && "[object Object]" === Object.prototype.toString.call(e) ); } function z(e) { return ("number" == typeof e || e instanceof Number) && isFinite(+e); } function H(e, t) { return z(e) ? e : t; } function q(e, t) { return void 0 === e ? t : e; } const Z = (e, t) => "string" == typeof e && e.endsWith("%") ? parseFloat(e) / 100 : +e / t, V = (e, t) => "string" == typeof e && e.endsWith("%") ? (parseFloat(e) / 100) * t : +e; function W(e, t, n) { if (e && "function" == typeof e.call) return e.apply(n, t); } function $(e, t, n, r) { let i, o, a; if (U(e)) if (((o = e.length), r)) for (i = o - 1; i >= 0; i--) t.call(n, e[i], i); else for (i = 0; i < o; i++) t.call(n, e[i], i); else if (F(e)) for (a = Object.keys(e), o = a.length, i = 0; i < o; i++) t.call(n, e[a[i]], a[i]); } function G(e, t) { let n, r, i, o; if (!e || !t || e.length !== t.length) return !1; for (n = 0, r = e.length; n < r; ++n) if ( ((i = e[n]), (o = t[n]), i.datasetIndex !== o.datasetIndex || i.index !== o.index) ) return !1; return !0; } function Y(e) { if (U(e)) return e.map(Y); if (F(e)) { const t = Object.create(null), n = Object.keys(e), r = n.length; let i = 0; for (; i < r; ++i) t[n[i]] = Y(e[n[i]]); return t; } return e; } function K(e) { return -1 === ["__proto__", "prototype", "constructor"].indexOf(e); } function X(e, t, n, r) { if (!K(e)) return; const i = t[e], o = n[e]; F(i) && F(o) ? Q(i, o, r) : (t[e] = Y(o)); } function Q(e, t, n) { const r = U(t) ? t : [t], i = r.length; if (!F(e)) return e; const o = (n = n || {}).merger || X; let a; for (let t = 0; t < i; ++t) { if (((a = r[t]), !F(a))) continue; const i = Object.keys(a); for (let t = 0, r = i.length; t < r; ++t) o(i[t], e, a, n); } return e; } function J(e, t) { return Q(e, t, { merger: ee }); } function ee(e, t, n) { if (!K(e)) return; const r = t[e], i = n[e]; F(r) && F(i) ? J(r, i) : Object.prototype.hasOwnProperty.call(t, e) || (t[e] = Y(i)); } const te = { "": (e) => e, x: (e) => e.x, y: (e) => e.y }; function ne(e, t) { const n = te[t] || (te[t] = (function (e) { const t = (function (e) { const t = e.split("."), n = []; let r = ""; for (const e of t) (r += e), r.endsWith("\\") ? (r = r.slice(0, -1) + ".") : (n.push(r), (r = "")); return n; })(e); return (e) => { for (const n of t) { if ("" === n) break; e = e && e[n]; } return e; }; })(t)); return n(e); } function re(e) { return e.charAt(0).toUpperCase() + e.slice(1); } const ie = (e) => void 0 !== e, oe = (e) => "function" == typeof e, ae = (e, t) => { if (e.size !== t.size) return !1; for (const n of e) if (!t.has(n)) return !1; return !0; }; function se(e) { return ( "mouseup" === e.type || "click" === e.type || "contextmenu" === e.type ); } const ue = Math.PI, ce = 2 * ue, le = ce + ue, fe = Number.POSITIVE_INFINITY, de = ue / 180, pe = ue / 2, he = ue / 4, ge = (2 * ue) / 3, me = Math.log10, ye = Math.sign; function ve(e, t, n) { return Math.abs(e - t) < n; } function be(e) { const t = Math.round(e); e = ve(e, t, e / 1e3) ? t : e; const n = Math.pow(10, Math.floor(me(e))), r = e / n; return (r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10) * n; } function _e(e) { const t = [], n = Math.sqrt(e); let r; for (r = 1; r < n; r++) e % r == 0 && (t.push(r), t.push(e / r)); return n === (0 | n) && t.push(n), t.sort((e, t) => e - t).pop(), t; } function we(e) { return !isNaN(parseFloat(e)) && isFinite(e); } function Te(e, t) { const n = Math.round(e); return n - t <= e && n + t >= e; } function xe(e, t, n) { let r, i, o; for (r = 0, i = e.length; r < i; r++) (o = e[r][n]), isNaN(o) || ((t.min = Math.min(t.min, o)), (t.max = Math.max(t.max, o))); } function Se(e) { return e * (ue / 180); } function ke(e) { return e * (180 / ue); } function Ee(e) { if (!z(e)) return; let t = 1, n = 0; for (; Math.round(e * t) / t !== e; ) (t *= 10), n++; return n; } function Oe(e, t) { const n = t.x - e.x, r = t.y - e.y, i = Math.sqrt(n * n + r * r); let o = Math.atan2(r, n); return o < -0.5 * ue && (o += ce), { angle: o, distance: i }; } function Ce(e, t) { return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)); } function Le(e, t) { return ((e - t + le) % ce) - ue; } function Ae(e) { return ((e % ce) + ce) % ce; } function Ie(e, t, n, r) { const i = Ae(e), o = Ae(t), a = Ae(n), s = Ae(o - i), u = Ae(a - i), c = Ae(i - o), l = Ae(i - a); return i === o || i === a || (r && o === a) || (s > u && c < l); } function Me(e, t, n) { return Math.max(t, Math.min(n, e)); } function Pe(e) { return Me(e, -32768, 32767); } function Re(e, t, n, r = 1e-6) { return e >= Math.min(t, n) - r && e <= Math.max(t, n) + r; } function De(e, t, n) { n = n || ((n) => e[n] < t); let r, i = e.length - 1, o = 0; for (; i - o > 1; ) (r = (o + i) >> 1), n(r) ? (o = r) : (i = r); return { lo: o, hi: i }; } const je = (e, t, n, r) => De( e, n, r ? (r) => { const i = e[r][t]; return i < n || (i === n && e[r + 1][t] === n); } : (r) => e[r][t] < n ), Ne = (e, t, n) => De(e, n, (r) => e[r][t] >= n); function Be(e, t, n) { let r = 0, i = e.length; for (; r < i && e[r] < t; ) r++; for (; i > r && e[i - 1] > n; ) i--; return r > 0 || i < e.length ? e.slice(r, i) : e; } const Ue = ["push", "pop", "shift", "splice", "unshift"]; function Fe(e, t) { e._chartjs ? e._chartjs.listeners.push(t) : (Object.defineProperty(e, "_chartjs", { configurable: !0, enumerable: !1, value: { listeners: [t] }, }), Ue.forEach((t) => { const n = "_onData" + re(t), r = e[t]; Object.defineProperty(e, t, { configurable: !0, enumerable: !1, value(...t) { const i = r.apply(this, t); return ( e._chartjs.listeners.forEach((e) => { "function" == typeof e[n] && e[n](...t); }), i ); }, }); })); } function ze(e, t) { const n = e._chartjs; if (!n) return; const r = n.listeners, i = r.indexOf(t); -1 !== i && r.splice(i, 1), r.length > 0 || (Ue.forEach((t) => { delete e[t]; }), delete e._chartjs); } function He(e) { const t = new Set(e); return t.size === e.length ? e : Array.from(t); } const qe = "undefined" == typeof window ? function (e) { return e(); } : window.requestAnimationFrame; function Ze(e, t) { let n = [], r = !1; return function (...i) { (n = i), r || ((r = !0), qe.call(window, () => { (r = !1), e.apply(t, n); })); }; } function Ve(e, t) { let n; return function (...r) { return ( t ? (clearTimeout(n), (n = setTimeout(e, t, r))) : e.apply(this, r), t ); }; } const We = (e) => "start" === e ? "left" : "end" === e ? "right" : "center", $e = (e, t, n) => ("start" === e ? t : "end" === e ? n : (t + n) / 2), Ge = (e, t, n, r) => e === (r ? "left" : "right") ? n : "center" === e ? (t + n) / 2 : t; function Ye(e, t, n) { const r = t.length; let i = 0, o = r; if (e._sorted) { const { iScale: a, _parsed: s } = e, u = a.axis, { min: c, max: l, minDefined: f, maxDefined: d, } = a.getUserBounds(); f && (i = Me( Math.min( je(s, u, c).lo, n ? r : je(t, u, a.getPixelForValue(c)).lo ), 0, r - 1 )), (o = d ? Me( Math.max( je(s, a.axis, l, !0).hi + 1, n ? 0 : je(t, u, a.getPixelForValue(l), !0).hi + 1 ), i, r ) - i : r - i); } return { start: i, count: o }; } function Ke(e) { const { xScale: t, yScale: n, _scaleRanges: r } = e, i = { xmin: t.min, xmax: t.max, ymin: n.min, ymax: n.max }; if (!r) return (e._scaleRanges = i), !0; const o = r.xmin !== t.min || r.xmax !== t.max || r.ymin !== n.min || r.ymax !== n.max; return Object.assign(r, i), o; } const Xe = (e) => 0 === e || 1 === e, Qe = (e, t, n) => -Math.pow(2, 10 * (e -= 1)) * Math.sin(((e - t) * ce) / n), Je = (e, t, n) => Math.pow(2, -10 * e) * Math.sin(((e - t) * ce) / n) + 1, et = { linear: (e) => e, easeInQuad: (e) => e * e, easeOutQuad: (e) => -e * (e - 2), easeInOutQuad: (e) => (e /= 0.5) < 1 ? 0.5 * e * e : -0.5 * (--e * (e - 2) - 1), easeInCubic: (e) => e * e * e, easeOutCubic: (e) => (e -= 1) * e * e + 1, easeInOutCubic: (e) => (e /= 0.5) < 1 ? 0.5 * e * e * e : 0.5 * ((e -= 2) * e * e + 2), easeInQuart: (e) => e * e * e * e, easeOutQuart: (e) => -((e -= 1) * e * e * e - 1), easeInOutQuart: (e) => (e /= 0.5) < 1 ? 0.5 * e * e * e * e : -0.5 * ((e -= 2) * e * e * e - 2), easeInQuint: (e) => e * e * e * e * e, easeOutQuint: (e) => (e -= 1) * e * e * e * e + 1, easeInOutQuint: (e) => (e /= 0.5) < 1 ? 0.5 * e * e * e * e * e : 0.5 * ((e -= 2) * e * e * e * e + 2), easeInSine: (e) => 1 - Math.cos(e * pe), easeOutSine: (e) => Math.sin(e * pe), easeInOutSine: (e) => -0.5 * (Math.cos(ue * e) - 1), easeInExpo: (e) => (0 === e ? 0 : Math.pow(2, 10 * (e - 1))), easeOutExpo: (e) => (1 === e ? 1 : 1 - Math.pow(2, -10 * e)), easeInOutExpo: (e) => Xe(e) ? e : e < 0.5 ? 0.5 * Math.pow(2, 10 * (2 * e - 1)) : 0.5 * (2 - Math.pow(2, -10 * (2 * e - 1))), easeInCirc: (e) => (e >= 1 ? e : -(Math.sqrt(1 - e * e) - 1)), easeOutCirc: (e) => Math.sqrt(1 - (e -= 1) * e), easeInOutCirc: (e) => (e /= 0.5) < 1 ? -0.5 * (Math.sqrt(1 - e * e) - 1) : 0.5 * (Math.sqrt(1 - (e -= 2) * e) + 1), easeInElastic: (e) => (Xe(e) ? e : Qe(e, 0.075, 0.3)), easeOutElastic: (e) => (Xe(e) ? e : Je(e, 0.075, 0.3)), easeInOutElastic(e) { const t = 0.1125; return Xe(e) ? e : e < 0.5 ? 0.5 * Qe(2 * e, t, 0.45) : 0.5 + 0.5 * Je(2 * e - 1, t, 0.45); }, easeInBack(e) { const t = 1.70158; return e * e * ((t + 1) * e - t); }, easeOutBack(e) { const t = 1.70158; return (e -= 1) * e * ((t + 1) * e + t) + 1; }, easeInOutBack(e) { let t = 1.70158; return (e /= 0.5) < 1 ? e * e * ((1 + (t *= 1.525)) * e - t) * 0.5 : 0.5 * ((e -= 2) * e * ((1 + (t *= 1.525)) * e + t) + 2); }, easeInBounce: (e) => 1 - et.easeOutBounce(1 - e), easeOutBounce(e) { const t = 7.5625, n = 2.75; return e < 1 / n ? t * e * e : e < 2 / n ? t * (e -= 1.5 / n) * e + 0.75 : e < 2.5 / n ? t * (e -= 2.25 / n) * e + 0.9375 : t * (e -= 2.625 / n) * e + 0.984375; }, easeInOutBounce: (e) => e < 0.5 ? 0.5 * et.easeInBounce(2 * e) : 0.5 * et.easeOutBounce(2 * e - 1) + 0.5, }; function tt(e) { if (e && "object" == typeof e) { const t = e.toString(); return ( "[object CanvasPattern]" === t || "[object CanvasGradient]" === t ); } return !1; } function nt(e) { return tt(e) ? e : new D(e); } function rt(e) { return tt(e) ? e : new D(e).saturate(0.5).darken(0.1).hexString(); } const it = ["x", "y", "borderWidth", "radius", "tension"], ot = ["color", "borderColor", "backgroundColor"]; const at = new Map(); function st(e, t, n) { return (function (e, t) { t = t || {}; const n = e + JSON.stringify(t); let r = at.get(n); return r || ((r = new Intl.NumberFormat(e, t)), at.set(n, r)), r; })(t, n).format(e); } const ut = { values: (e) => (U(e) ? e : "" + e), numeric(e, t, n) { if (0 === e) return "0"; const r = this.chart.options.locale; let i, o = e; if (n.length > 1) { const t = Math.max( Math.abs(n[0].value), Math.abs(n[n.length - 1].value) ); (t < 1e-4 || t > 1e15) && (i = "scientific"), (o = (function (e, t) { let n = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value; Math.abs(n) >= 1 && e !== Math.floor(e) && (n = e - Math.floor(e)); return n; })(e, n)); } const a = me(Math.abs(o)), s = isNaN(a) ? 1 : Math.max(Math.min(-1 * Math.floor(a), 20), 0), u = { notation: i, minimumFractionDigits: s, maximumFractionDigits: s, }; return Object.assign(u, this.options.ticks.format), st(e, r, u); }, logarithmic(e, t, n) { if (0 === e) return "0"; const r = n[t].significand || e / Math.pow(10, Math.floor(me(e))); return [1, 2, 3, 5, 10, 15].includes(r) || t > 0.8 * n.length ? ut.numeric.call(this, e, t, n) : ""; }, }; var ct = { formatters: ut }; const lt = Object.create(null), ft = Object.create(null); function dt(e, t) { if (!t) return e; const n = t.split("."); for (let t = 0, r = n.length; t < r; ++t) { const r = n[t]; e = e[r] || (e[r] = Object.create(null)); } return e; } function pt(e, t, n) { return "string" == typeof t ? Q(dt(e, t), n) : Q(dt(e, ""), t); } class ht { constructor(e, t) { (this.animation = void 0), (this.backgroundColor = "rgba(0,0,0,0.1)"), (this.borderColor = "rgba(0,0,0,0.1)"), (this.color = "#666"), (this.datasets = {}), (this.devicePixelRatio = (e) => e.chart.platform.getDevicePixelRatio()), (this.elements = {}), (this.events = [ "mousemove", "mouseout", "click", "touchstart", "touchmove", ]), (this.font = { family: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", size: 12, style: "normal", lineHeight: 1.2, weight: null, }), (this.hover = {}), (this.hoverBackgroundColor = (e, t) => rt(t.backgroundColor)), (this.hoverBorderColor = (e, t) => rt(t.borderColor)), (this.hoverColor = (e, t) => rt(t.color)), (this.indexAxis = "x"), (this.interaction = { mode: "nearest", intersect: !0, includeInvisible: !1, }), (this.maintainAspectRatio = !0), (this.onHover = null), (this.onClick = null), (this.parsing = !0), (this.plugins = {}), (this.responsive = !0), (this.scale = void 0), (this.scales = {}), (this.showLine = !0), (this.drawActiveElementsOnTop = !0), this.describe(e), this.apply(t); } set(e, t) { return pt(this, e, t); } get(e) { return dt(this, e); } describe(e, t) { return pt(ft, e, t); } override(e, t) { return pt(lt, e, t); } route(e, t, n, r) { const i = dt(this, e), o = dt(this, n), a = "_" + t; Object.defineProperties(i, { [a]: { value: i[t], writable: !0 }, [t]: { enumerable: !0, get() { const e = this[a], t = o[r]; return F(e) ? Object.assign({}, t, e) : q(e, t); }, set(e) { this[a] = e; }, }, }); } apply(e) { e.forEach((e) => e(this)); } } var gt = new ht( { _scriptable: (e) => !e.startsWith("on"), _indexable: (e) => "events" !== e, hover: { _fallback: "interaction" }, interaction: { _scriptable: !1, _indexable: !1 }, }, [ function (e) { e.set("animation", { delay: void 0, duration: 1e3, easing: "easeOutQuart", fn: void 0, from: void 0, loop: void 0, to: void 0, type: void 0, }), e.describe("animation", { _fallback: !1, _indexable: !1, _scriptable: (e) => "onProgress" !== e && "onComplete" !== e && "fn" !== e, }), e.set("animations", { colors: { type: "color", properties: ot }, numbers: { type: "number", properties: it }, }), e.describe("animations", { _fallback: "animation" }), e.set("transitions", { active: { animation: { duration: 400 } }, resize: { animation: { duration: 0 } }, show: { animations: { colors: { from: "transparent" }, visible: { type: "boolean", duration: 0 }, }, }, hide: { animations: { colors: { to: "transparent" }, visible: { type: "boolean", easing: "linear", fn: (e) => 0 | e, }, }, }, }); }, function (e) { e.set("layout", { autoPadding: !0, padding: { top: 0, right: 0, bottom: 0, left: 0 }, }); }, function (e) { e.set("scale", { display: !0, offset: !1, reverse: !1, beginAtZero: !1, bounds: "ticks", clip: !0, grace: 0, grid: { display: !0, lineWidth: 1, drawOnChartArea: !0, drawTicks: !0, tickLength: 8, tickWidth: (e, t) => t.lineWidth, tickColor: (e, t) => t.color, offset: !1, }, border: { display: !0, dash: [], dashOffset: 0, width: 1 }, title: { display: !1, text: "", padding: { top: 4, bottom: 4 } }, ticks: { minRotation: 0, maxRotation: 50, mirror: !1, textStrokeWidth: 0, textStrokeColor: "", padding: 3, display: !0, autoSkip: !0, autoSkipPadding: 3, labelOffset: 0, callback: ct.formatters.values, minor: {}, major: {}, align: "center", crossAlign: "near", showLabelBackdrop: !1, backdropColor: "rgba(255, 255, 255, 0.75)", backdropPadding: 2, }, }), e.route("scale.ticks", "color", "", "color"), e.route("scale.grid", "color", "", "borderColor"), e.route("scale.border", "color", "", "borderColor"), e.route("scale.title", "color", "", "color"), e.describe("scale", { _fallback: !1, _scriptable: (e) => !e.startsWith("before") && !e.startsWith("after") && "callback" !== e && "parser" !== e, _indexable: (e) => "borderDash" !== e && "tickBorderDash" !== e && "dash" !== e, }), e.describe("scales", { _fallback: "scale" }), e.describe("scale.ticks", { _scriptable: (e) => "backdropPadding" !== e && "callback" !== e, _indexable: (e) => "backdropPadding" !== e, }); }, ] ); function mt(e, t, n, r, i) { let o = t[i]; return ( o || ((o = t[i] = e.measureText(i).width), n.push(i)), o > r && (r = o), r ); } function yt(e, t, n, r) { let i = ((r = r || {}).data = r.data || {}), o = (r.garbageCollect = r.garbageCollect || []); r.font !== t && ((i = r.data = {}), (o = r.garbageCollect = []), (r.font = t)), e.save(), (e.font = t); let a = 0; const s = n.length; let u, c, l, f, d; for (u = 0; u < s; u++) if (((f = n[u]), null == f || U(f))) { if (U(f)) for (c = 0, l = f.length; c < l; c++) (d = f[c]), null == d || U(d) || (a = mt(e, i, o, a, d)); } else a = mt(e, i, o, a, f); e.restore(); const p = o.length / 2; if (p > n.length) { for (u = 0; u < p; u++) delete i[o[u]]; o.splice(0, p); } return a; } function vt(e, t, n) { const r = e.currentDevicePixelRatio, i = 0 !== n ? Math.max(n / 2, 0.5) : 0; return Math.round((t - i) * r) / r + i; } function bt(e, t) { (t = t || e.getContext("2d")).save(), t.resetTransform(), t.clearRect(0, 0, e.width, e.height), t.restore(); } function _t(e, t, n, r) { wt(e, t, n, r, null); } function wt(e, t, n, r, i) { let o, a, s, u, c, l, f, d; const p = t.pointStyle, h = t.rotation, g = t.radius; let m = (h || 0) * de; if ( p && "object" == typeof p && ((o = p.toString()), "[object HTMLImageElement]" === o || "[object HTMLCanvasElement]" === o) ) return ( e.save(), e.translate(n, r), e.rotate(m), e.drawImage(p, -p.width / 2, -p.height / 2, p.width, p.height), void e.restore() ); if (!(isNaN(g) || g <= 0)) { switch ((e.beginPath(), p)) { default: i ? e.ellipse(n, r, i / 2, g, 0, 0, ce) : e.arc(n, r, g, 0, ce), e.closePath(); break; case "triangle": (l = i ? i / 2 : g), e.moveTo(n + Math.sin(m) * l, r - Math.cos(m) * g), (m += ge), e.lineTo(n + Math.sin(m) * l, r - Math.cos(m) * g), (m += ge), e.lineTo(n + Math.sin(m) * l, r - Math.cos(m) * g), e.closePath(); break; case "rectRounded": (c = 0.516 * g), (u = g - c), (a = Math.cos(m + he) * u), (f = Math.cos(m + he) * (i ? i / 2 - c : u)), (s = Math.sin(m + he) * u), (d = Math.sin(m + he) * (i ? i / 2 - c : u)), e.arc(n - f, r - s, c, m - ue, m - pe), e.arc(n + d, r - a, c, m - pe, m), e.arc(n + f, r + s, c, m, m + pe), e.arc(n - d, r + a, c, m + pe, m + ue), e.closePath(); break; case "rect": if (!h) { (u = Math.SQRT1_2 * g), (l = i ? i / 2 : u), e.rect(n - l, r - u, 2 * l, 2 * u); break; } m += he; case "rectRot": (f = Math.cos(m) * (i ? i / 2 : g)), (a = Math.cos(m) * g), (s = Math.sin(m) * g), (d = Math.sin(m) * (i ? i / 2 : g)), e.moveTo(n - f, r - s), e.lineTo(n + d, r - a), e.lineTo(n + f, r + s), e.lineTo(n - d, r + a), e.closePath(); break; case "crossRot": m += he; case "cross": (f = Math.cos(m) * (i ? i / 2 : g)), (a = Math.cos(m) * g), (s = Math.sin(m) * g), (d = Math.sin(m) * (i ? i / 2 : g)), e.moveTo(n - f, r - s), e.lineTo(n + f, r + s), e.moveTo(n + d, r - a), e.lineTo(n - d, r + a); break; case "star": (f = Math.cos(m) * (i ? i / 2 : g)), (a = Math.cos(m) * g), (s = Math.sin(m) * g), (d = Math.sin(m) * (i ? i / 2 : g)), e.moveTo(n - f, r - s), e.lineTo(n + f, r + s), e.moveTo(n + d, r - a), e.lineTo(n - d, r + a), (m += he), (f = Math.cos(m) * (i ? i / 2 : g)), (a = Math.cos(m) * g), (s = Math.sin(m) * g), (d = Math.sin(m) * (i ? i / 2 : g)), e.moveTo(n - f, r - s), e.lineTo(n + f, r + s), e.moveTo(n + d, r - a), e.lineTo(n - d, r + a); break; case "line": (a = i ? i / 2 : Math.cos(m) * g), (s = Math.sin(m) * g), e.moveTo(n - a, r - s), e.lineTo(n + a, r + s); break; case "dash": e.moveTo(n, r), e.lineTo( n + Math.cos(m) * (i ? i / 2 : g), r + Math.sin(m) * g ); break; case !1: e.closePath(); } e.fill(), t.borderWidth > 0 && e.stroke(); } } function Tt(e, t, n) { return ( (n = n || 0.5), !t || (e && e.x > t.left - n && e.x < t.right + n && e.y > t.top - n && e.y < t.bottom + n) ); } function xt(e, t) { e.save(), e.beginPath(), e.rect(t.left, t.top, t.right - t.left, t.bottom - t.top), e.clip(); } function St(e) { e.restore(); } function kt(e, t, n, r, i) { if (!t) return e.lineTo(n.x, n.y); if ("middle" === i) { const r = (t.x + n.x) / 2; e.lineTo(r, t.y), e.lineTo(r, n.y); } else ("after" === i) != !!r ? e.lineTo(t.x, n.y) : e.lineTo(n.x, t.y); e.lineTo(n.x, n.y); } function Et(e, t, n, r) { if (!t) return e.lineTo(n.x, n.y); e.bezierCurveTo( r ? t.cp1x : t.cp2x, r ? t.cp1y : t.cp2y, r ? n.cp2x : n.cp1x, r ? n.cp2y : n.cp1y, n.x, n.y ); } function Ot(e, t, n, r, i) { if (i.strikethrough || i.underline) { const o = e.measureText(r), a = t - o.actualBoundingBoxLeft, s = t + o.actualBoundingBoxRight, u = n - o.actualBoundingBoxAscent, c = n + o.actualBoundingBoxDescent, l = i.strikethrough ? (u + c) / 2 : c; (e.strokeStyle = e.fillStyle), e.beginPath(), (e.lineWidth = i.decorationWidth || 2), e.moveTo(a, l), e.lineTo(s, l), e.stroke(); } } function Ct(e, t) { const n = e.fillStyle; (e.fillStyle = t.color), e.fillRect(t.left, t.top, t.width, t.height), (e.fillStyle = n); } function Lt(e, t, n, r, i, o = {}) { const a = U(t) ? t : [t], s = o.strokeWidth > 0 && "" !== o.strokeColor; let u, c; for ( e.save(), e.font = i.string, (function (e, t) { t.translation && e.translate(t.translation[0], t.translation[1]), B(t.rotation) || e.rotate(t.rotation), t.color && (e.fillStyle = t.color), t.textAlign && (e.textAlign = t.textAlign), t.textBaseline && (e.textBaseline = t.textBaseline); })(e, o), u = 0; u < a.length; ++u ) (c = a[u]), o.backdrop && Ct(e, o.backdrop), s && (o.strokeColor && (e.strokeStyle = o.strokeColor), B(o.strokeWidth) || (e.lineWidth = o.strokeWidth), e.strokeText(c, n, r, o.maxWidth)), e.fillText(c, n, r, o.maxWidth), Ot(e, n, r, c, o), (r += Number(i.lineHeight)); e.restore(); } function At(e, t) { const { x: n, y: r, w: i, h: o, radius: a } = t; e.arc(n + a.topLeft, r + a.topLeft, a.topLeft, 1.5 * ue, ue, !0), e.lineTo(n, r + o - a.bottomLeft), e.arc( n + a.bottomLeft, r + o - a.bottomLeft, a.bottomLeft, ue, pe, !0 ), e.lineTo(n + i - a.bottomRight, r + o), e.arc( n + i - a.bottomRight, r + o - a.bottomRight, a.bottomRight, pe, 0, !0 ), e.lineTo(n + i, r + a.topRight), e.arc(n + i - a.topRight, r + a.topRight, a.topRight, 0, -pe, !0), e.lineTo(n + a.topLeft, r); } const It = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, Mt = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/; function Pt(e, t) { const n = ("" + e).match(It); if (!n || "normal" === n[1]) return 1.2 * t; switch (((e = +n[2]), n[3])) { case "px": return e; case "%": e /= 100; } return t * e; } function Rt(e, t) { const n = {}, r = F(t), i = r ? Object.keys(t) : t, o = F(e) ? (r ? (n) => q(e[n], e[t[n]]) : (t) => e[t]) : () => e; for (const e of i) n[e] = +o(e) || 0; return n; } function Dt(e) { return Rt(e, { top: "y", right: "x", bottom: "y", left: "x" }); } function jt(e) { return Rt(e, ["topLeft", "topRight", "bottomLeft", "bottomRight"]); } function Nt(e) { const t = Dt(e); return (t.width = t.left + t.right), (t.height = t.top + t.bottom), t; } function Bt(e, t) { (e = e || {}), (t = t || gt.font); let n = q(e.size, t.size); "string" == typeof n && (n = parseInt(n, 10)); let r = q(e.style, t.style); r && !("" + r).match(Mt) && (console.warn('Invalid font style specified: "' + r + '"'), (r = void 0)); const i = { family: q(e.family, t.family), lineHeight: Pt(q(e.lineHeight, t.lineHeight), n), size: n, style: r, weight: q(e.weight, t.weight), string: "", }; return ( (i.string = (function (e) { return !e || B(e.size) || B(e.family) ? null : (e.style ? e.style + " " : "") + (e.weight ? e.weight + " " : "") + e.size + "px " + e.family; })(i)), i ); } function Ut(e, t, n, r) { let i, o, a, s = !0; for (i = 0, o = e.length; i < o; ++i) if ( ((a = e[i]), void 0 !== a && (void 0 !== t && "function" == typeof a && ((a = a(t)), (s = !1)), void 0 !== n && U(a) && ((a = a[n % a.length]), (s = !1)), void 0 !== a)) ) return r && !s && (r.cacheable = !1), a; } function Ft(e, t, n) { const { min: r, max: i } = e, o = V(t, (i - r) / 2), a = (e, t) => (n && 0 === e ? 0 : e + t); return { min: a(r, -Math.abs(o)), max: a(i, o) }; } function zt(e, t) { return Object.assign(Object.create(e), t); } function Ht(e, t = [""], n, r, i = () => e[0]) { const o = n || e; void 0 === r && (r = Jt("_fallback", e)); const a = { [Symbol.toStringTag]: "Object", _cacheable: !0, _scopes: e, _rootScopes: o, _fallback: r, _getTarget: i, override: (n) => Ht([n, ...e], t, o, r), }; return new Proxy(a, { deleteProperty: (t, n) => ( delete t[n], delete t._keys, delete e[0][n], !0 ), get: (n, r) => $t(n, r, () => (function (e, t, n, r) { let i; for (const o of t) if (((i = Jt(Vt(o, e), n)), void 0 !== i)) return Wt(e, i) ? Xt(n, r, e, i) : i; })(r, t, e, n) ), getOwnPropertyDescriptor: (e, t) => Reflect.getOwnPropertyDescriptor(e._scopes[0], t), getPrototypeOf: () => Reflect.getPrototypeOf(e[0]), has: (e, t) => en(e).includes(t), ownKeys: (e) => en(e), set(e, t, n) { const r = e._storage || (e._storage = i()); return (e[t] = r[t] = n), delete e._keys, !0; }, }); } function qt(e, t, n, r) { const i = { _cacheable: !1, _proxy: e, _context: t, _subProxy: n, _stack: new Set(), _descriptors: Zt(e, r), setContext: (t) => qt(e, t, n, r), override: (i) => qt(e.override(i), t, n, r), }; return new Proxy(i, { deleteProperty: (t, n) => (delete t[n], delete e[n], !0), get: (e, t, n) => $t(e, t, () => (function (e, t, n) { const { _proxy: r, _context: i, _subProxy: o, _descriptors: a, } = e; let s = r[t]; oe(s) && a.isScriptable(t) && (s = (function (e, t, n, r) { const { _proxy: i, _context: o, _subProxy: a, _stack: s, } = n; if (s.has(e)) throw new Error( "Recursion detected: " + Array.from(s).join("->") + "->" + e ); s.add(e); let u = t(o, a || r); s.delete(e), Wt(e, u) && (u = Xt(i._scopes, i, e, u)); return u; })(t, s, e, n)); U(s) && s.length && (s = (function (e, t, n, r) { const { _proxy: i, _context: o, _subProxy: a, _descriptors: s, } = n; if (void 0 !== o.index && r(e)) return t[o.index % t.length]; if (F(t[0])) { const n = t, r = i._scopes.filter((e) => e !== n); t = []; for (const u of n) { const n = Xt(r, i, e, u); t.push(qt(n, o, a && a[e], s)); } } return t; })(t, s, e, a.isIndexable)); Wt(t, s) && (s = qt(s, i, o && o[t], a)); return s; })(e, t, n) ), getOwnPropertyDescriptor: (t, n) => t._descriptors.allKeys ? Reflect.has(e, n) ? { enumerable: !0, configurable: !0 } : void 0 : Reflect.getOwnPropertyDescriptor(e, n), getPrototypeOf: () => Reflect.getPrototypeOf(e), has: (t, n) => Reflect.has(e, n), ownKeys: () => Reflect.ownKeys(e), set: (t, n, r) => ((e[n] = r), delete t[n], !0), }); } function Zt(e, t = { scriptable: !0, indexable: !0 }) { const { _scriptable: n = t.scriptable, _indexable: r = t.indexable, _allKeys: i = t.allKeys, } = e; return { allKeys: i, scriptable: n, indexable: r, isScriptable: oe(n) ? n : () => n, isIndexable: oe(r) ? r : () => r, }; } const Vt = (e, t) => (e ? e + re(t) : t), Wt = (e, t) => F(t) && "adapters" !== e && (null === Object.getPrototypeOf(t) || t.constructor === Object); function $t(e, t, n) { if (Object.prototype.hasOwnProperty.call(e, t)) return e[t]; const r = n(); return (e[t] = r), r; } function Gt(e, t, n) { return oe(e) ? e(t, n) : e; } const Yt = (e, t) => !0 === e ? t : "string" == typeof e ? ne(t, e) : void 0; function Kt(e, t, n, r, i) { for (const o of t) { const t = Yt(n, o); if (t) { e.add(t); const o = Gt(t._fallback, n, i); if (void 0 !== o && o !== n && o !== r) return o; } else if (!1 === t && void 0 !== r && n !== r) return null; } return !1; } function Xt(e, t, n, r) { const i = t._rootScopes, o = Gt(t._fallback, n, r), a = [...e, ...i], s = new Set(); s.add(r); let u = Qt(s, a, n, o || n, r); return ( null !== u && (void 0 === o || o === n || ((u = Qt(s, a, o, u, r)), null !== u)) && Ht(Array.from(s), [""], i, o, () => (function (e, t, n) { const r = e._getTarget(); t in r || (r[t] = {}); const i = r[t]; if (U(i) && F(n)) return n; return i || {}; })(t, n, r) ) ); } function Qt(e, t, n, r, i) { for (; n; ) n = Kt(e, t, n, r, i); return n; } function Jt(e, t) { for (const n of t) { if (!n) continue; const t = n[e]; if (void 0 !== t) return t; } } function en(e) { let t = e._keys; return ( t || (t = e._keys = (function (e) { const t = new Set(); for (const n of e) for (const e of Object.keys(n).filter( (e) => !e.startsWith("_") )) t.add(e); return Array.from(t); })(e._scopes)), t ); } function tn(e, t, n, r) { const { iScale: i } = e, { key: o = "r" } = this._parsing, a = new Array(r); let s, u, c, l; for (s = 0, u = r; s < u; ++s) (c = s + n), (l = t[c]), (a[s] = { r: i.parse(ne(l, o), c) }); return a; } const nn = Number.EPSILON || 1e-14, rn = (e, t) => t < e.length && !e[t].skip && e[t], on = (e) => ("x" === e ? "y" : "x"); function an(e, t, n, r) { const i = e.skip ? t : e, o = t, a = n.skip ? t : n, s = Ce(o, i), u = Ce(a, o); let c = s / (s + u), l = u / (s + u); (c = isNaN(c) ? 0 : c), (l = isNaN(l) ? 0 : l); const f = r * c, d = r * l; return { previous: { x: o.x - f * (a.x - i.x), y: o.y - f * (a.y - i.y) }, next: { x: o.x + d * (a.x - i.x), y: o.y + d * (a.y - i.y) }, }; } function sn(e, t = "x") { const n = on(t), r = e.length, i = Array(r).fill(0), o = Array(r); let a, s, u, c = rn(e, 0); for (a = 0; a < r; ++a) if (((s = u), (u = c), (c = rn(e, a + 1)), u)) { if (c) { const e = c[t] - u[t]; i[a] = 0 !== e ? (c[n] - u[n]) / e : 0; } o[a] = s ? c ? ye(i[a - 1]) !== ye(i[a]) ? 0 : (i[a - 1] + i[a]) / 2 : i[a - 1] : i[a]; } !(function (e, t, n) { const r = e.length; let i, o, a, s, u, c = rn(e, 0); for (let l = 0; l < r - 1; ++l) (u = c), (c = rn(e, l + 1)), u && c && (ve(t[l], 0, nn) ? (n[l] = n[l + 1] = 0) : ((i = n[l] / t[l]), (o = n[l + 1] / t[l]), (s = Math.pow(i, 2) + Math.pow(o, 2)), s <= 9 || ((a = 3 / Math.sqrt(s)), (n[l] = i * a * t[l]), (n[l + 1] = o * a * t[l])))); })(e, i, o), (function (e, t, n = "x") { const r = on(n), i = e.length; let o, a, s, u = rn(e, 0); for (let c = 0; c < i; ++c) { if (((a = s), (s = u), (u = rn(e, c + 1)), !s)) continue; const i = s[n], l = s[r]; a && ((o = (i - a[n]) / 3), (s[`cp1${n}`] = i - o), (s[`cp1${r}`] = l - o * t[c])), u && ((o = (u[n] - i) / 3), (s[`cp2${n}`] = i + o), (s[`cp2${r}`] = l + o * t[c])); } })(e, o, t); } function un(e, t, n) { return Math.max(Math.min(e, n), t); } function cn(e, t, n, r, i) { let o, a, s, u; if ( (t.spanGaps && (e = e.filter((e) => !e.skip)), "monotone" === t.cubicInterpolationMode) ) sn(e, i); else { let n = r ? e[e.length - 1] : e[0]; for (o = 0, a = e.length; o < a; ++o) (s = e[o]), (u = an( n, s, e[Math.min(o + 1, a - (r ? 0 : 1)) % a], t.tension )), (s.cp1x = u.previous.x), (s.cp1y = u.previous.y), (s.cp2x = u.next.x), (s.cp2y = u.next.y), (n = s); } t.capBezierPoints && (function (e, t) { let n, r, i, o, a, s = Tt(e[0], t); for (n = 0, r = e.length; n < r; ++n) (a = o), (o = s), (s = n < r - 1 && Tt(e[n + 1], t)), o && ((i = e[n]), a && ((i.cp1x = un(i.cp1x, t.left, t.right)), (i.cp1y = un(i.cp1y, t.top, t.bottom))), s && ((i.cp2x = un(i.cp2x, t.left, t.right)), (i.cp2y = un(i.cp2y, t.top, t.bottom)))); })(e, n); } function ln() { return "undefined" != typeof window && "undefined" != typeof document; } function fn(e) { let t = e.parentNode; return t && "[object ShadowRoot]" === t.toString() && (t = t.host), t; } function dn(e, t, n) { let r; return ( "string" == typeof e ? ((r = parseInt(e, 10)), -1 !== e.indexOf("%") && (r = (r / 100) * t.parentNode[n])) : (r = e), r ); } const pn = (e) => e.ownerDocument.defaultView.getComputedStyle(e, null); const hn = ["top", "right", "bottom", "left"]; function gn(e, t, n) { const r = {}; n = n ? "-" + n : ""; for (let i = 0; i < 4; i++) { const o = hn[i]; r[o] = parseFloat(e[t + "-" + o + n]) || 0; } return (r.width = r.left + r.right), (r.height = r.top + r.bottom), r; } function mn(e, t) { if ("native" in e) return e; const { canvas: n, currentDevicePixelRatio: r } = t, i = pn(n), o = "border-box" === i.boxSizing, a = gn(i, "padding"), s = gn(i, "border", "width"), { x: u, y: c, box: l, } = (function (e, t) { const n = e.touches, r = n && n.length ? n[0] : e, { offsetX: i, offsetY: o } = r; let a, s, u = !1; if ( ((e, t, n) => (e > 0 || t > 0) && (!n || !n.shadowRoot))( i, o, e.target ) ) (a = i), (s = o); else { const e = t.getBoundingClientRect(); (a = r.clientX - e.left), (s = r.clientY - e.top), (u = !0); } return { x: a, y: s, box: u }; })(e, n), f = a.left + (l && s.left), d = a.top + (l && s.top); let { width: p, height: h } = t; return ( o && ((p -= a.width + s.width), (h -= a.height + s.height)), { x: Math.round((((u - f) / p) * n.width) / r), y: Math.round((((c - d) / h) * n.height) / r), } ); } const yn = (e) => Math.round(10 * e) / 10; function vn(e, t, n, r) { const i = pn(e), o = gn(i, "margin"), a = dn(i.maxWidth, e, "clientWidth") || fe, s = dn(i.maxHeight, e, "clientHeight") || fe, u = (function (e, t, n) { let r, i; if (void 0 === t || void 0 === n) { const o = fn(e); if (o) { const e = o.getBoundingClientRect(), a = pn(o), s = gn(a, "border", "width"), u = gn(a, "padding"); (t = e.width - u.width - s.width), (n = e.height - u.height - s.height), (r = dn(a.maxWidth, o, "clientWidth")), (i = dn(a.maxHeight, o, "clientHeight")); } else (t = e.clientWidth), (n = e.clientHeight); } return { width: t, height: n, maxWidth: r || fe, maxHeight: i || fe, }; })(e, t, n); let { width: c, height: l } = u; if ("content-box" === i.boxSizing) { const e = gn(i, "border", "width"), t = gn(i, "padding"); (c -= t.width + e.width), (l -= t.height + e.height); } (c = Math.max(0, c - o.width)), (l = Math.max(0, r ? c / r : l - o.height)), (c = yn(Math.min(c, a, u.maxWidth))), (l = yn(Math.min(l, s, u.maxHeight))), c && !l && (l = yn(c / 2)); return ( (void 0 !== t || void 0 !== n) && r && u.height && l > u.height && ((l = u.height), (c = yn(Math.floor(l * r)))), { width: c, height: l } ); } function bn(e, t, n) { const r = t || 1, i = Math.floor(e.height * r), o = Math.floor(e.width * r); (e.height = Math.floor(e.height)), (e.width = Math.floor(e.width)); const a = e.canvas; return ( a.style && (n || (!a.style.height && !a.style.width)) && ((a.style.height = `${e.height}px`), (a.style.width = `${e.width}px`)), (e.currentDevicePixelRatio !== r || a.height !== i || a.width !== o) && ((e.currentDevicePixelRatio = r), (a.height = i), (a.width = o), e.ctx.setTransform(r, 0, 0, r, 0, 0), !0) ); } const _n = (function () { let e = !1; try { const t = { get passive() { return (e = !0), !1; }, }; ln() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t)); } catch (e) {} return e; })(); function wn(e, t) { const n = (function (e, t) { return pn(e).getPropertyValue(t); })(e, t), r = n && n.match(/^(\d+)(\.\d+)?px$/); return r ? +r[1] : void 0; } function Tn(e, t, n, r) { return { x: e.x + n * (t.x - e.x), y: e.y + n * (t.y - e.y) }; } function xn(e, t, n, r) { return { x: e.x + n * (t.x - e.x), y: "middle" === r ? n < 0.5 ? e.y : t.y : "after" === r ? n < 1 ? e.y : t.y : n > 0 ? t.y : e.y, }; } function Sn(e, t, n, r) { const i = { x: e.cp2x, y: e.cp2y }, o = { x: t.cp1x, y: t.cp1y }, a = Tn(e, i, n), s = Tn(i, o, n), u = Tn(o, t, n), c = Tn(a, s, n), l = Tn(s, u, n); return Tn(c, l, n); } function kn(e, t, n) { return e ? (function (e, t) { return { x: (n) => e + e + t - n, setWidth(e) { t = e; }, textAlign: (e) => "center" === e ? e : "right" === e ? "left" : "right", xPlus: (e, t) => e - t, leftForLtr: (e, t) => e - t, }; })(t, n) : { x: (e) => e, setWidth(e) {}, textAlign: (e) => e, xPlus: (e, t) => e + t, leftForLtr: (e, t) => e, }; } function En(e, t) { let n, r; ("ltr" !== t && "rtl" !== t) || ((n = e.canvas.style), (r = [ n.getPropertyValue("direction"), n.getPropertyPriority("direction"), ]), n.setProperty("direction", t, "important"), (e.prevTextDirection = r)); } function On(e, t) { void 0 !== t && (delete e.prevTextDirection, e.canvas.style.setProperty("direction", t[0], t[1])); } function Cn(e) { return "angle" === e ? { between: Ie, compare: Le, normalize: Ae } : { between: Re, compare: (e, t) => e - t, normalize: (e) => e }; } function Ln({ start: e, end: t, count: n, loop: r, style: i }) { return { start: e % n, end: t % n, loop: r && (t - e + 1) % n == 0, style: i, }; } function An(e, t, n) { if (!n) return [e]; const { property: r, start: i, end: o } = n, a = t.length, { compare: s, between: u, normalize: c } = Cn(r), { start: l, end: f, loop: d, style: p, } = (function (e, t, n) { const { property: r, start: i, end: o } = n, { between: a, normalize: s } = Cn(r), u = t.length; let c, l, { start: f, end: d, loop: p } = e; if (p) { for ( f += u, d += u, c = 0, l = u; c < l && a(s(t[f % u][r]), i, o); ++c ) f--, d--; (f %= u), (d %= u); } return ( d < f && (d += u), { start: f, end: d, loop: p, style: e.style } ); })(e, t, n), h = []; let g, m, y, v = !1, b = null; const _ = () => v || (u(i, y, g) && 0 !== s(i, y)), w = () => !v || 0 === s(o, g) || u(o, y, g); for (let e = l, n = l; e <= f; ++e) (m = t[e % a]), m.skip || ((g = c(m[r])), g !== y && ((v = u(g, i, o)), null === b && _() && (b = 0 === s(g, i) ? e : n), null !== b && w() && (h.push( Ln({ start: b, end: e, loop: d, count: a, style: p }) ), (b = null)), (n = e), (y = g))); return ( null !== b && h.push(Ln({ start: b, end: f, loop: d, count: a, style: p })), h ); } function In(e, t) { const n = [], r = e.segments; for (let i = 0; i < r.length; i++) { const o = An(r[i], e.points, t); o.length && n.push(...o); } return n; } function Mn(e, t) { const n = e.points, r = e.options.spanGaps, i = n.length; if (!i) return []; const o = !!e._loop, { start: a, end: s } = (function (e, t, n, r) { let i = 0, o = t - 1; if (n && !r) for (; i < t && !e[i].skip; ) i++; for (; i < t && e[i].skip; ) i++; for (i %= t, n && (o += i); o > i && e[o % t].skip; ) o--; return (o %= t), { start: i, end: o }; })(n, i, o, r); if (!0 === r) return Pn(e, [{ start: a, end: s, loop: o }], n, t); return Pn( e, (function (e, t, n, r) { const i = e.length, o = []; let a, s = t, u = e[t]; for (a = t + 1; a <= n; ++a) { const n = e[a % i]; n.skip || n.stop ? u.skip || ((r = !1), o.push({ start: t % i, end: (a - 1) % i, loop: r }), (t = s = n.stop ? a : null)) : ((s = a), u.skip && (t = a)), (u = n); } return ( null !== s && o.push({ start: t % i, end: s % i, loop: r }), o ); })(n, a, s < a ? s + i : s, !!e._fullLoop && 0 === a && s === i - 1), n, t ); } function Pn(e, t, n, r) { return r && r.setContext && n ? (function (e, t, n, r) { const i = e._chart.getContext(), o = Rn(e.options), { _datasetIndex: a, options: { spanGaps: s }, } = e, u = n.length, c = []; let l = o, f = t[0].start, d = f; function p(e, t, r, i) { const o = s ? -1 : 1; if (e !== t) { for (e += u; n[e % u].skip; ) e -= o; for (; n[t % u].skip; ) t += o; e % u != t % u && (c.push({ start: e % u, end: t % u, loop: r, style: i }), (l = i), (f = t % u)); } } for (const e of t) { f = s ? f : e.start; let t, o = n[f % u]; for (d = f + 1; d <= e.end; d++) { const s = n[d % u]; (t = Rn( r.setContext( zt(i, { type: "segment", p0: o, p1: s, p0DataIndex: (d - 1) % u, p1DataIndex: d % u, datasetIndex: a, }) ) )), Dn(t, l) && p(f, d - 1, e.loop, l), (o = s), (l = t); } f < d - 1 && p(f, d - 1, e.loop, l); } return c; })(e, t, n, r) : t; } function Rn(e) { return { backgroundColor: e.backgroundColor, borderCapStyle: e.borderCapStyle, borderDash: e.borderDash, borderDashOffset: e.borderDashOffset, borderJoinStyle: e.borderJoinStyle, borderWidth: e.borderWidth, borderColor: e.borderColor, }; } function Dn(e, t) { if (!t) return !1; const n = [], r = function (e, t) { return tt(t) ? (n.includes(t) || n.push(t), n.indexOf(t)) : t; }; return JSON.stringify(e, r) !== JSON.stringify(t, r); } }, 1352: function (e, t, n) { "use strict"; function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } n.d(t, { Z: function () { return E; }, }); var i = n(72881); function o(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, (0, i.Z)(r.key), r); } } var a = [], s = a.forEach, u = a.slice; function c(e) { return ( s.call(u.call(arguments, 1), function (t) { if (t) for (var n in t) void 0 === e[n] && (e[n] = t[n]); }), e ); } var l = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, f = function (e, t, n) { var r = n || {}; r.path = r.path || "/"; var i = encodeURIComponent(t), o = "".concat(e, "=").concat(i); if (r.maxAge > 0) { var a = r.maxAge - 0; if (Number.isNaN(a)) throw new Error("maxAge should be a Number"); o += "; Max-Age=".concat(Math.floor(a)); } if (r.domain) { if (!l.test(r.domain)) throw new TypeError("option domain is invalid"); o += "; Domain=".concat(r.domain); } if (r.path) { if (!l.test(r.path)) throw new TypeError("option path is invalid"); o += "; Path=".concat(r.path); } if (r.expires) { if ("function" != typeof r.expires.toUTCString) throw new TypeError("option expires is invalid"); o += "; Expires=".concat(r.expires.toUTCString()); } if ( (r.httpOnly && (o += "; HttpOnly"), r.secure && (o += "; Secure"), r.sameSite) ) switch ( "string" == typeof r.sameSite ? r.sameSite.toLowerCase() : r.sameSite ) { case !0: o += "; SameSite=Strict"; break; case "lax": o += "; SameSite=Lax"; break; case "strict": o += "; SameSite=Strict"; break; case "none": o += "; SameSite=None"; break; default: throw new TypeError("option sameSite is invalid"); } return o; }, d = function (e, t, n, r) { var i = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : { path: "/", sameSite: "strict" }; n && ((i.expires = new Date()), i.expires.setTime(i.expires.getTime() + 60 * n * 1e3)), r && (i.domain = r), (document.cookie = f(e, encodeURIComponent(t), i)); }, p = function (e) { for ( var t = "".concat(e, "="), n = document.cookie.split(";"), r = 0; r < n.length; r++ ) { for (var i = n[r]; " " === i.charAt(0); ) i = i.substring(1, i.length); if (0 === i.indexOf(t)) return i.substring(t.length, i.length); } return null; }, h = { name: "cookie", lookup: function (e) { var t; if (e.lookupCookie && "undefined" != typeof document) { var n = p(e.lookupCookie); n && (t = n); } return t; }, cacheUserLanguage: function (e, t) { t.lookupCookie && "undefined" != typeof document && d( t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions ); }, }, g = { name: "querystring", lookup: function (e) { var t; if ("undefined" != typeof window) { var n = window.location.search; !window.location.search && window.location.hash && window.location.hash.indexOf("?") > -1 && (n = window.location.hash.substring( window.location.hash.indexOf("?") )); for ( var r = n.substring(1).split("&"), i = 0; i < r.length; i++ ) { var o = r[i].indexOf("="); if (o > 0) r[i].substring(0, o) === e.lookupQuerystring && (t = r[i].substring(o + 1)); } } return t; }, }, m = null, y = function () { if (null !== m) return m; try { m = "undefined" !== window && null !== window.localStorage; var e = "i18next.translate.boo"; window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e); } catch (e) { m = !1; } return m; }, v = { name: "localStorage", lookup: function (e) { var t; if (e.lookupLocalStorage && y()) { var n = window.localStorage.getItem(e.lookupLocalStorage); n && (t = n); } return t; }, cacheUserLanguage: function (e, t) { t.lookupLocalStorage && y() && window.localStorage.setItem(t.lookupLocalStorage, e); }, }, b = null, _ = function () { if (null !== b) return b; try { b = "undefined" !== window && null !== window.sessionStorage; var e = "i18next.translate.boo"; window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e); } catch (e) { b = !1; } return b; }, w = { name: "sessionStorage", lookup: function (e) { var t; if (e.lookupSessionStorage && _()) { var n = window.sessionStorage.getItem(e.lookupSessionStorage); n && (t = n); } return t; }, cacheUserLanguage: function (e, t) { t.lookupSessionStorage && _() && window.sessionStorage.setItem(t.lookupSessionStorage, e); }, }, T = { name: "navigator", lookup: function (e) { var t = []; if ("undefined" != typeof navigator) { if (navigator.languages) for (var n = 0; n < navigator.languages.length; n++) t.push(navigator.languages[n]); navigator.userLanguage && t.push(navigator.userLanguage), navigator.language && t.push(navigator.language); } return t.length > 0 ? t : void 0; }, }, x = { name: "htmlTag", lookup: function (e) { var t, n = e.htmlTag || ("undefined" != typeof document ? document.documentElement : null); return ( n && "function" == typeof n.getAttribute && (t = n.getAttribute("lang")), t ); }, }, S = { name: "path", lookup: function (e) { var t; if ("undefined" != typeof window) { var n = window.location.pathname.match(/\/([a-zA-Z-]*)/g); if (n instanceof Array) if ("number" == typeof e.lookupFromPathIndex) { if ("string" != typeof n[e.lookupFromPathIndex]) return; t = n[e.lookupFromPathIndex].replace("/", ""); } else t = n[0].replace("/", ""); } return t; }, }, k = { name: "subdomain", lookup: function (e) { var t = "number" == typeof e.lookupFromSubdomainIndex ? e.lookupFromSubdomainIndex + 1 : 1, n = "undefined" != typeof window && window.location && window.location.hostname && window.location.hostname.match( /^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i ); if (n) return n[t]; }, }; var E = (function () { function e(t) { var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; r(this, e), (this.type = "languageDetector"), (this.detectors = {}), this.init(t, n); } var t, n, i; return ( (t = e), (n = [ { key: "init", value: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; (this.services = e || { languageUtils: {} }), (this.options = c(t, this.options || {}, { order: [ "querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag", ], lookupQuerystring: "lng", lookupCookie: "i18next", lookupLocalStorage: "i18nextLng", lookupSessionStorage: "i18nextLng", caches: ["localStorage"], excludeCacheFor: ["cimode"], convertDetectedLanguage: function (e) { return e; }, })), "string" == typeof this.options.convertDetectedLanguage && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function (e) { return e.replace("-", "_"); }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), (this.i18nOptions = n), this.addDetector(h), this.addDetector(g), this.addDetector(v), this.addDetector(w), this.addDetector(T), this.addDetector(x), this.addDetector(S), this.addDetector(k); }, }, { key: "addDetector", value: function (e) { return (this.detectors[e.name] = e), this; }, }, { key: "detect", value: function (e) { var t = this; e || (e = this.options.order); var n = []; return ( e.forEach(function (e) { if (t.detectors[e]) { var r = t.detectors[e].lookup(t.options); r && "string" == typeof r && (r = [r]), r && (n = n.concat(r)); } }), (n = n.map(function (e) { return t.options.convertDetectedLanguage(e); })), this.services.languageUtils.getBestMatchFromCodes ? n : n.length > 0 ? n[0] : null ); }, }, { key: "cacheUserLanguage", value: function (e, t) { var n = this; t || (t = this.options.caches), t && ((this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(e) > -1) || t.forEach(function (t) { n.detectors[t] && n.detectors[t].cacheUserLanguage(e, n.options); })); }, }, ]), n && o(t.prototype, n), i && o(t, i), Object.defineProperty(t, "prototype", { writable: !1 }), e ); })(); E.type = "languageDetector"; }, 36609: function (e, t, n) { "use strict"; n.d(t, { ZP: function () { return q; }, }); const r = { type: "logger", log(e) { this.output("log", e); }, warn(e) { this.output("warn", e); }, error(e) { this.output("error", e); }, output(e, t) { console && console[e] && console[e].apply(console, t); }, }; class i { constructor(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; this.init(e, t); } init(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; (this.prefix = t.prefix || "i18next:"), (this.logger = e || r), (this.options = t), (this.debug = t.debug); } log() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return this.forward(t, "log", "", !0); } warn() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return this.forward(t, "warn", "", !0); } error() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return this.forward(t, "error", ""); } deprecate() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return this.forward(t, "warn", "WARNING DEPRECATED: ", !0); } forward(e, t, n, r) { return r && !this.debug ? null : ("string" == typeof e[0] && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e)); } create(e) { return new i(this.logger, { prefix: `${this.prefix}:${e}:`, ...this.options, }); } clone(e) { return ( ((e = e || this.options).prefix = e.prefix || this.prefix), new i(this.logger, e) ); } } var o = new i(); class a { constructor() { this.observers = {}; } on(e, t) { return ( e.split(" ").forEach((e) => { this.observers[e] || (this.observers[e] = new Map()); const n = this.observers[e].get(t) || 0; this.observers[e].set(t, n + 1); }), this ); } off(e, t) { this.observers[e] && (t ? this.observers[e].delete(t) : delete this.observers[e]); } emit(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r]; if (this.observers[e]) { Array.from(this.observers[e].entries()).forEach((e) => { let [t, r] = e; for (let e = 0; e < r; e++) t(...n); }); } if (this.observers["*"]) { Array.from(this.observers["*"].entries()).forEach((t) => { let [r, i] = t; for (let t = 0; t < i; t++) r.apply(r, [e, ...n]); }); } } } function s() { let e, t; const n = new Promise((n, r) => { (e = n), (t = r); }); return (n.resolve = e), (n.reject = t), n; } function u(e) { return null == e ? "" : "" + e; } const c = /###/g; function l(e, t, n) { function r(e) { return e && e.indexOf("###") > -1 ? e.replace(c, ".") : e; } function i() { return !e || "string" == typeof e; } const o = "string" != typeof t ? t : t.split("."); let a = 0; for (; a < o.length - 1; ) { if (i()) return {}; const t = r(o[a]); !e[t] && n && (e[t] = new n()), (e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}), ++a; } return i() ? {} : { obj: e, k: r(o[a]) }; } function f(e, t, n) { const { obj: r, k: i } = l(e, t, Object); if (void 0 !== r || 1 === t.length) return void (r[i] = n); let o = t[t.length - 1], a = t.slice(0, t.length - 1), s = l(e, a, Object); for (; void 0 === s.obj && a.length; ) (o = `${a[a.length - 1]}.${o}`), (a = a.slice(0, a.length - 1)), (s = l(e, a, Object)), s && s.obj && void 0 !== s.obj[`${s.k}.${o}`] && (s.obj = void 0); s.obj[`${s.k}.${o}`] = n; } function d(e, t) { const { obj: n, k: r } = l(e, t); if (n) return n[r]; } function p(e, t, n) { const r = d(e, n); return void 0 !== r ? r : d(t, n); } function h(e, t, n) { for (const r in t) "__proto__" !== r && "constructor" !== r && (r in e ? "string" == typeof e[r] || e[r] instanceof String || "string" == typeof t[r] || t[r] instanceof String ? n && (e[r] = t[r]) : h(e[r], t[r], n) : (e[r] = t[r])); return e; } function g(e) { return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); } var m = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "/": "/", }; function y(e) { return "string" == typeof e ? e.replace(/[&<>"'\/]/g, (e) => m[e]) : e; } const v = [" ", ",", "?", "!", ";"], b = new (class { constructor(e) { (this.capacity = e), (this.regExpMap = new Map()), (this.regExpQueue = []); } getRegExp(e) { const t = this.regExpMap.get(e); if (void 0 !== t) return t; const n = new RegExp(e); return ( this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n ); } })(20); function _(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "."; if (!e) return; if (e[t]) return e[t]; const r = t.split(n); let i = e; for (let e = 0; e < r.length; ) { if (!i || "object" != typeof i) return; let t, o = ""; for (let a = e; a < r.length; ++a) if ((a !== e && (o += n), (o += r[a]), (t = i[o]), void 0 !== t)) { if ( ["string", "number", "boolean"].indexOf(typeof t) > -1 && a < r.length - 1 ) continue; e += a - e + 1; break; } i = t; } return i; } function w(e) { return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e; } class T extends a { constructor(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { ns: ["translation"], defaultNS: "translation" }; super(), (this.data = e || {}), (this.options = t), void 0 === this.options.keySeparator && (this.options.keySeparator = "."), void 0 === this.options.ignoreJSONStructure && (this.options.ignoreJSONStructure = !0); } addNamespaces(e) { this.options.ns.indexOf(e) < 0 && this.options.ns.push(e); } removeNamespaces(e) { const t = this.options.ns.indexOf(e); t > -1 && this.options.ns.splice(t, 1); } getResource(e, t, n) { let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; const i = void 0 !== r.keySeparator ? r.keySeparator : this.options.keySeparator, o = void 0 !== r.ignoreJSONStructure ? r.ignoreJSONStructure : this.options.ignoreJSONStructure; let a; e.indexOf(".") > -1 ? (a = e.split(".")) : ((a = [e, t]), n && (Array.isArray(n) ? a.push(...n) : "string" == typeof n && i ? a.push(...n.split(i)) : a.push(n))); const s = d(this.data, a); return ( !s && !t && !n && e.indexOf(".") > -1 && ((e = a[0]), (t = a[1]), (n = a.slice(2).join("."))), s || !o || "string" != typeof n ? s : _(this.data && this.data[e] && this.data[e][t], n, i) ); } addResource(e, t, n, r) { let i = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : { silent: !1 }; const o = void 0 !== i.keySeparator ? i.keySeparator : this.options.keySeparator; let a = [e, t]; n && (a = a.concat(o ? n.split(o) : n)), e.indexOf(".") > -1 && ((a = e.split(".")), (r = t), (t = a[1])), this.addNamespaces(t), f(this.data, a, r), i.silent || this.emit("added", e, t, n, r); } addResources(e, t, n) { let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : { silent: !1 }; for (const r in n) ("string" != typeof n[r] && "[object Array]" !== Object.prototype.toString.apply(n[r])) || this.addResource(e, t, r, n[r], { silent: !0 }); r.silent || this.emit("added", e, t, n); } addResourceBundle(e, t, n, r, i) { let o = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : { silent: !1, skipCopy: !1 }, a = [e, t]; e.indexOf(".") > -1 && ((a = e.split(".")), (r = n), (n = t), (t = a[1])), this.addNamespaces(t); let s = d(this.data, a) || {}; o.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? h(s, n, i) : (s = { ...s, ...n }), f(this.data, a, s), o.silent || this.emit("added", e, t, n); } removeResourceBundle(e, t) { this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t); } hasResourceBundle(e, t) { return void 0 !== this.getResource(e, t); } getResourceBundle(e, t) { return ( t || (t = this.options.defaultNS), "v1" === this.options.compatibilityAPI ? { ...this.getResource(e, t) } : this.getResource(e, t) ); } getDataByLanguage(e) { return this.data[e]; } hasLanguageSomeTranslations(e) { const t = this.getDataByLanguage(e); return !!((t && Object.keys(t)) || []).find( (e) => t[e] && Object.keys(t[e]).length > 0 ); } toJSON() { return this.data; } } var x = { processors: {}, addPostProcessor(e) { this.processors[e.name] = e; }, handle(e, t, n, r, i) { return ( e.forEach((e) => { this.processors[e] && (t = this.processors[e].process(t, n, r, i)); }), t ); }, }; const S = {}; class k extends a { constructor(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; super(), (function (e, t, n) { e.forEach((e) => { t[e] && (n[e] = t[e]); }); })( [ "resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils", ], e, this ), (this.options = t), void 0 === this.options.keySeparator && (this.options.keySeparator = "."), (this.logger = o.create("translator")); } changeLanguage(e) { e && (this.language = e); } exists(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { interpolation: {} }; if (null == e) return !1; const n = this.resolve(e, t); return n && void 0 !== n.res; } extractFromKey(e, t) { let n = void 0 !== t.nsSeparator ? t.nsSeparator : this.options.nsSeparator; void 0 === n && (n = ":"); const r = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator; let i = t.ns || this.options.defaultNS || []; const o = n && e.indexOf(n) > -1, a = !( this.options.userDefinedKeySeparator || t.keySeparator || this.options.userDefinedNsSeparator || t.nsSeparator || (function (e, t, n) { (t = t || ""), (n = n || ""); const r = v.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0); if (0 === r.length) return !0; const i = b.getRegExp( `(${r.map((e) => ("?" === e ? "\\?" : e)).join("|")})` ); let o = !i.test(e); if (!o) { const t = e.indexOf(n); t > 0 && !i.test(e.substring(0, t)) && (o = !0); } return o; })(e, n, r) ); if (o && !a) { const t = e.match(this.interpolator.nestingRegexp); if (t && t.length > 0) return { key: e, namespaces: i }; const o = e.split(n); (n !== r || (n === r && this.options.ns.indexOf(o[0]) > -1)) && (i = o.shift()), (e = o.join(r)); } return "string" == typeof i && (i = [i]), { key: e, namespaces: i }; } translate(e, t, n) { if ( ("object" != typeof t && this.options.overloadTranslationOptionHandler && (t = this.options.overloadTranslationOptionHandler(arguments)), "object" == typeof t && (t = { ...t }), t || (t = {}), null == e) ) return ""; Array.isArray(e) || (e = [String(e)]); const r = void 0 !== t.returnDetails ? t.returnDetails : this.options.returnDetails, i = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator, { key: o, namespaces: a } = this.extractFromKey(e[e.length - 1], t), s = a[a.length - 1], u = t.lng || this.language, c = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode; if (u && "cimode" === u.toLowerCase()) { if (c) { const e = t.nsSeparator || this.options.nsSeparator; return r ? { res: `${s}${e}${o}`, usedKey: o, exactUsedKey: o, usedLng: u, usedNS: s, usedParams: this.getUsedParamsDetails(t), } : `${s}${e}${o}`; } return r ? { res: o, usedKey: o, exactUsedKey: o, usedLng: u, usedNS: s, usedParams: this.getUsedParamsDetails(t), } : o; } const l = this.resolve(e, t); let f = l && l.res; const d = (l && l.usedKey) || o, p = (l && l.exactUsedKey) || o, h = Object.prototype.toString.apply(f), g = void 0 !== t.joinArrays ? t.joinArrays : this.options.joinArrays, m = !this.i18nFormat || this.i18nFormat.handleAsObject; if ( m && f && "string" != typeof f && "boolean" != typeof f && "number" != typeof f && ["[object Number]", "[object Function]", "[object RegExp]"].indexOf( h ) < 0 && ("string" != typeof g || "[object Array]" !== h) ) { if (!t.returnObjects && !this.options.returnObjects) { this.options.returnedObjectHandler || this.logger.warn( "accessing an object - but returnObjects options is not enabled!" ); const e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(d, f, { ...t, ns: a }) : `key '${o} (${this.language})' returned an object instead of string.`; return r ? ((l.res = e), (l.usedParams = this.getUsedParamsDetails(t)), l) : e; } if (i) { const e = "[object Array]" === h, n = e ? [] : {}, r = e ? p : d; for (const e in f) if (Object.prototype.hasOwnProperty.call(f, e)) { const o = `${r}${i}${e}`; (n[e] = this.translate(o, { ...t, joinArrays: !1, ns: a })), n[e] === o && (n[e] = f[e]); } f = n; } } else if (m && "string" == typeof g && "[object Array]" === h) (f = f.join(g)), f && (f = this.extendTranslation(f, e, t, n)); else { let r = !1, a = !1; const c = void 0 !== t.count && "string" != typeof t.count, d = k.hasDefaultValue(t), p = c ? this.pluralResolver.getSuffix(u, t.count, t) : "", h = t.ordinal && c ? this.pluralResolver.getSuffix(u, t.count, { ordinal: !1 }) : "", g = c && !t.ordinal && 0 === t.count && this.pluralResolver.shouldUseIntlApi(), m = (g && t[`defaultValue${this.options.pluralSeparator}zero`]) || t[`defaultValue${p}`] || t[`defaultValue${h}`] || t.defaultValue; !this.isValidLookup(f) && d && ((r = !0), (f = m)), this.isValidLookup(f) || ((a = !0), (f = o)); const y = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && a ? void 0 : f, v = d && m !== f && this.options.updateMissing; if (a || r || v) { if ( (this.logger.log( v ? "updateKey" : "missingKey", u, s, o, v ? m : f ), i) ) { const e = this.resolve(o, { ...t, keySeparator: !1 }); e && e.res && this.logger.warn( "Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format." ); } let e = []; const n = this.languageUtils.getFallbackCodes( this.options.fallbackLng, t.lng || this.language ); if ("fallback" === this.options.saveMissingTo && n && n[0]) for (let t = 0; t < n.length; t++) e.push(n[t]); else "all" === this.options.saveMissingTo ? (e = this.languageUtils.toResolveHierarchy( t.lng || this.language )) : e.push(t.lng || this.language); const r = (e, n, r) => { const i = d && r !== f ? r : y; this.options.missingKeyHandler ? this.options.missingKeyHandler(e, s, n, i, v, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(e, s, n, i, v, t), this.emit("missingKey", e, s, n, f); }; this.options.saveMissing && (this.options.saveMissingPlurals && c ? e.forEach((e) => { const n = this.pluralResolver.getSuffixes(e, t); g && t[`defaultValue${this.options.pluralSeparator}zero`] && n.indexOf(`${this.options.pluralSeparator}zero`) < 0 && n.push(`${this.options.pluralSeparator}zero`), n.forEach((n) => { r([e], o + n, t[`defaultValue${n}`] || m); }); }) : r(e, o, m)); } (f = this.extendTranslation(f, e, t, l, n)), a && f === o && this.options.appendNamespaceToMissingKey && (f = `${s}:${o}`), (a || r) && this.options.parseMissingKeyHandler && (f = "v1" !== this.options.compatibilityAPI ? this.options.parseMissingKeyHandler( this.options.appendNamespaceToMissingKey ? `${s}:${o}` : o, r ? f : void 0 ) : this.options.parseMissingKeyHandler(f)); } return r ? ((l.res = f), (l.usedParams = this.getUsedParamsDetails(t)), l) : f; } extendTranslation(e, t, n, r, i) { var o = this; if (this.i18nFormat && this.i18nFormat.parse) e = this.i18nFormat.parse( e, { ...this.options.interpolation.defaultVariables, ...n }, n.lng || this.language || r.usedLng, r.usedNS, r.usedKey, { resolved: r } ); else if (!n.skipInterpolation) { n.interpolation && this.interpolator.init({ ...n, interpolation: { ...this.options.interpolation, ...n.interpolation, }, }); const a = "string" == typeof e && (n && n.interpolation && void 0 !== n.interpolation.skipOnVariables ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables); let s; if (a) { const t = e.match(this.interpolator.nestingRegexp); s = t && t.length; } let u = n.replace && "string" != typeof n.replace ? n.replace : n; if ( (this.options.interpolation.defaultVariables && (u = { ...this.options.interpolation.defaultVariables, ...u }), (e = this.interpolator.interpolate( e, u, n.lng || this.language, n )), a) ) { const t = e.match(this.interpolator.nestingRegexp); s < (t && t.length) && (n.nest = !1); } !n.lng && "v1" !== this.options.compatibilityAPI && r && r.res && (n.lng = r.usedLng), !1 !== n.nest && (e = this.interpolator.nest( e, function () { for ( var e = arguments.length, r = new Array(e), a = 0; a < e; a++ ) r[a] = arguments[a]; return i && i[0] === r[0] && !n.context ? (o.logger.warn( `It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}` ), null) : o.translate(...r, t); }, n )), n.interpolation && this.interpolator.reset(); } const a = n.postProcess || this.options.postProcess, s = "string" == typeof a ? [a] : a; return ( null != e && s && s.length && !1 !== n.applyPostProcessor && (e = x.handle( s, e, t, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r, usedParams: this.getUsedParamsDetails(n), }, ...n, } : n, this )), e ); } resolve(e) { let t, n, r, i, o, a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return ( "string" == typeof e && (e = [e]), e.forEach((e) => { if (this.isValidLookup(t)) return; const s = this.extractFromKey(e, a), u = s.key; n = u; let c = s.namespaces; this.options.fallbackNS && (c = c.concat(this.options.fallbackNS)); const l = void 0 !== a.count && "string" != typeof a.count, f = l && !a.ordinal && 0 === a.count && this.pluralResolver.shouldUseIntlApi(), d = void 0 !== a.context && ("string" == typeof a.context || "number" == typeof a.context) && "" !== a.context, p = a.lngs ? a.lngs : this.languageUtils.toResolveHierarchy( a.lng || this.language, a.fallbackLng ); c.forEach((e) => { this.isValidLookup(t) || ((o = e), !S[`${p[0]}-${e}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && ((S[`${p[0]}-${e}`] = !0), this.logger.warn( `key "${n}" for languages "${p.join( ", " )}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!" )), p.forEach((n) => { if (this.isValidLookup(t)) return; i = n; const o = [u]; if (this.i18nFormat && this.i18nFormat.addLookupKeys) this.i18nFormat.addLookupKeys(o, u, n, e, a); else { let e; l && (e = this.pluralResolver.getSuffix(n, a.count, a)); const t = `${this.options.pluralSeparator}zero`, r = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`; if ( (l && (o.push(u + e), a.ordinal && 0 === e.indexOf(r) && o.push( u + e.replace(r, this.options.pluralSeparator) ), f && o.push(u + t)), d) ) { const n = `${u}${this.options.contextSeparator}${a.context}`; o.push(n), l && (o.push(n + e), a.ordinal && 0 === e.indexOf(r) && o.push( n + e.replace(r, this.options.pluralSeparator) ), f && o.push(n + t)); } } let s; for (; (s = o.pop()); ) this.isValidLookup(t) || ((r = s), (t = this.getResource(n, e, s, a))); })); }); }), { res: t, usedKey: n, exactUsedKey: r, usedLng: i, usedNS: o } ); } isValidLookup(e) { return !( void 0 === e || (!this.options.returnNull && null === e) || (!this.options.returnEmptyString && "" === e) ); } getResource(e, t, n) { let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r); } getUsedParamsDetails() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; const t = [ "defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation", ], n = e.replace && "string" != typeof e.replace; let r = n ? e.replace : e; if ( (n && void 0 !== e.count && (r.count = e.count), this.options.interpolation.defaultVariables && (r = { ...this.options.interpolation.defaultVariables, ...r }), !n) ) { r = { ...r }; for (const e of t) delete r[e]; } return r; } static hasDefaultValue(e) { const t = "defaultValue"; for (const n in e) if ( Object.prototype.hasOwnProperty.call(e, n) && t === n.substring(0, t.length) && void 0 !== e[n] ) return !0; return !1; } } function E(e) { return e.charAt(0).toUpperCase() + e.slice(1); } class O { constructor(e) { (this.options = e), (this.supportedLngs = this.options.supportedLngs || !1), (this.logger = o.create("languageUtils")); } getScriptPartFromCode(e) { if (!(e = w(e)) || e.indexOf("-") < 0) return null; const t = e.split("-"); return 2 === t.length ? null : (t.pop(), "x" === t[t.length - 1].toLowerCase() ? null : this.formatLanguageCode(t.join("-"))); } getLanguagePartFromCode(e) { if (!(e = w(e)) || e.indexOf("-") < 0) return e; const t = e.split("-"); return this.formatLanguageCode(t[0]); } formatLanguageCode(e) { if ("string" == typeof e && e.indexOf("-") > -1) { const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"]; let n = e.split("-"); return ( this.options.lowerCaseLng ? (n = n.map((e) => e.toLowerCase())) : 2 === n.length ? ((n[0] = n[0].toLowerCase()), (n[1] = n[1].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = E(n[1].toLowerCase()))) : 3 === n.length && ((n[0] = n[0].toLowerCase()), 2 === n[1].length && (n[1] = n[1].toUpperCase()), "sgn" !== n[0] && 2 === n[2].length && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = E(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = E(n[2].toLowerCase()))), n.join("-") ); } return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e; } isSupportedCode(e) { return ( ("languageOnly" === this.options.load || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1 ); } getBestMatchFromCodes(e) { if (!e) return null; let t; return ( e.forEach((e) => { if (t) return; const n = this.formatLanguageCode(e); (this.options.supportedLngs && !this.isSupportedCode(n)) || (t = n); }), !t && this.options.supportedLngs && e.forEach((e) => { if (t) return; const n = this.getLanguagePartFromCode(e); if (this.isSupportedCode(n)) return (t = n); t = this.options.supportedLngs.find((e) => e === n ? e : e.indexOf("-") < 0 && n.indexOf("-") < 0 ? void 0 : (e.indexOf("-") > 0 && n.indexOf("-") < 0 && e.substring(0, e.indexOf("-")) === n) || (0 === e.indexOf(n) && n.length > 1) ? e : void 0 ); }), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t ); } getFallbackCodes(e, t) { if (!e) return []; if ( ("function" == typeof e && (e = e(t)), "string" == typeof e && (e = [e]), "[object Array]" === Object.prototype.toString.apply(e)) ) return e; if (!t) return e.default || []; let n = e[t]; return ( n || (n = e[this.getScriptPartFromCode(t)]), n || (n = e[this.formatLanguageCode(t)]), n || (n = e[this.getLanguagePartFromCode(t)]), n || (n = e.default), n || [] ); } toResolveHierarchy(e, t) { const n = this.getFallbackCodes( t || this.options.fallbackLng || [], e ), r = [], i = (e) => { e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn( `rejecting language code not found in supportedLngs: ${e}` )); }; return ( "string" == typeof e && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? ("languageOnly" !== this.options.load && i(this.formatLanguageCode(e)), "languageOnly" !== this.options.load && "currentOnly" !== this.options.load && i(this.getScriptPartFromCode(e)), "currentOnly" !== this.options.load && i(this.getLanguagePartFromCode(e))) : "string" == typeof e && i(this.formatLanguageCode(e)), n.forEach((e) => { r.indexOf(e) < 0 && i(this.formatLanguageCode(e)); }), r ); } } let C = [ { lngs: [ "ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa", ], nr: [1, 2], fc: 1, }, { lngs: [ "af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kk", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo", ], nr: [1, 2], fc: 2, }, { lngs: [ "ay", "bo", "cgg", "fa", "ht", "id", "ja", "jbo", "ka", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh", ], nr: [1], fc: 3, }, { lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"], nr: [1, 2, 5], fc: 4, }, { lngs: ["ar"], nr: [0, 1, 2, 3, 11, 100], fc: 5 }, { lngs: ["cs", "sk"], nr: [1, 2, 5], fc: 6 }, { lngs: ["csb", "pl"], nr: [1, 2, 5], fc: 7 }, { lngs: ["cy"], nr: [1, 2, 3, 8], fc: 8 }, { lngs: ["fr"], nr: [1, 2], fc: 9 }, { lngs: ["ga"], nr: [1, 2, 3, 7, 11], fc: 10 }, { lngs: ["gd"], nr: [1, 2, 3, 20], fc: 11 }, { lngs: ["is"], nr: [1, 2], fc: 12 }, { lngs: ["jv"], nr: [0, 1], fc: 13 }, { lngs: ["kw"], nr: [1, 2, 3, 4], fc: 14 }, { lngs: ["lt"], nr: [1, 2, 10], fc: 15 }, { lngs: ["lv"], nr: [1, 2, 0], fc: 16 }, { lngs: ["mk"], nr: [1, 2], fc: 17 }, { lngs: ["mnk"], nr: [0, 1, 2], fc: 18 }, { lngs: ["mt"], nr: [1, 2, 11, 20], fc: 19 }, { lngs: ["or"], nr: [2, 1], fc: 2 }, { lngs: ["ro"], nr: [1, 2, 20], fc: 20 }, { lngs: ["sl"], nr: [5, 1, 2, 3], fc: 21 }, { lngs: ["he", "iw"], nr: [1, 2, 20, 21], fc: 22 }, ], L = { 1: function (e) { return Number(e > 1); }, 2: function (e) { return Number(1 != e); }, 3: function (e) { return 0; }, 4: function (e) { return Number( e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2 ); }, 5: function (e) { return Number( 0 == e ? 0 : 1 == e ? 1 : 2 == e ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5 ); }, 6: function (e) { return Number(1 == e ? 0 : e >= 2 && e <= 4 ? 1 : 2); }, 7: function (e) { return Number( 1 == e ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2 ); }, 8: function (e) { return Number(1 == e ? 0 : 2 == e ? 1 : 8 != e && 11 != e ? 2 : 3); }, 9: function (e) { return Number(e >= 2); }, 10: function (e) { return Number(1 == e ? 0 : 2 == e ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4); }, 11: function (e) { return Number( 1 == e || 11 == e ? 0 : 2 == e || 12 == e ? 1 : e > 2 && e < 20 ? 2 : 3 ); }, 12: function (e) { return Number(e % 10 != 1 || e % 100 == 11); }, 13: function (e) { return Number(0 !== e); }, 14: function (e) { return Number(1 == e ? 0 : 2 == e ? 1 : 3 == e ? 2 : 3); }, 15: function (e) { return Number( e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2 ); }, 16: function (e) { return Number(e % 10 == 1 && e % 100 != 11 ? 0 : 0 !== e ? 1 : 2); }, 17: function (e) { return Number(1 == e || (e % 10 == 1 && e % 100 != 11) ? 0 : 1); }, 18: function (e) { return Number(0 == e ? 0 : 1 == e ? 1 : 2); }, 19: function (e) { return Number( 1 == e ? 0 : 0 == e || (e % 100 > 1 && e % 100 < 11) ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3 ); }, 20: function (e) { return Number( 1 == e ? 0 : 0 == e || (e % 100 > 0 && e % 100 < 20) ? 1 : 2 ); }, 21: function (e) { return Number( e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0 ); }, 22: function (e) { return Number( 1 == e ? 0 : 2 == e ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3 ); }, }; const A = ["v1", "v2", "v3"], I = ["v4"], M = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }; class P { constructor(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; (this.languageUtils = e), (this.options = t), (this.logger = o.create("pluralResolver")), (this.options.compatibilityJSON && !I.includes(this.options.compatibilityJSON)) || ("undefined" != typeof Intl && Intl.PluralRules) || ((this.options.compatibilityJSON = "v3"), this.logger.error( "Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling." )), (this.rules = (function () { const e = {}; return ( C.forEach((t) => { t.lngs.forEach((n) => { e[n] = { numbers: t.nr, plurals: L[t.fc] }; }); }), e ); })()); } addRule(e, t) { this.rules[e] = t; } getRule(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (this.shouldUseIntlApi()) try { return new Intl.PluralRules(w("dev" === e ? "en" : e), { type: t.ordinal ? "ordinal" : "cardinal", }); } catch (e) { return; } return ( this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)] ); } needsPlural(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; const n = this.getRule(e, t); return this.shouldUseIntlApi() ? n && n.resolvedOptions().pluralCategories.length > 1 : n && n.numbers.length > 1; } getPluralFormsOfKey(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; return this.getSuffixes(e, n).map((e) => `${t}${e}`); } getSuffixes(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; const n = this.getRule(e, t); return n ? this.shouldUseIntlApi() ? n .resolvedOptions() .pluralCategories.sort((e, t) => M[e] - M[t]) .map( (e) => `${this.options.prepend}${ t.ordinal ? `ordinal${this.options.prepend}` : "" }${e}` ) : n.numbers.map((n) => this.getSuffix(e, n, t)) : []; } getSuffix(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; const r = this.getRule(e, n); return r ? this.shouldUseIntlApi() ? `${this.options.prepend}${ n.ordinal ? `ordinal${this.options.prepend}` : "" }${r.select(t)}` : this.getSuffixRetroCompatible(r, t) : (this.logger.warn(`no plural rule found for: ${e}`), ""); } getSuffixRetroCompatible(e, t) { const n = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t)); let r = e.numbers[n]; this.options.simplifyPluralSuffix && 2 === e.numbers.length && 1 === e.numbers[0] && (2 === r ? (r = "plural") : 1 === r && (r = "")); const i = () => this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString(); return "v1" === this.options.compatibilityJSON ? 1 === r ? "" : "number" == typeof r ? `_plural_${r.toString()}` : i() : "v2" === this.options.compatibilityJSON || (this.options.simplifyPluralSuffix && 2 === e.numbers.length && 1 === e.numbers[0]) ? i() : this.options.prepend && n.toString() ? this.options.prepend + n.toString() : n.toString(); } shouldUseIntlApi() { return !A.includes(this.options.compatibilityJSON); } } function R(e, t, n) { let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : ".", i = !(arguments.length > 4 && void 0 !== arguments[4]) || arguments[4], o = p(e, t, n); return ( !o && i && "string" == typeof n && ((o = _(e, n, r)), void 0 === o && (o = _(t, n, r))), o ); } class D { constructor() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; (this.logger = o.create("interpolator")), (this.options = e), (this.format = (e.interpolation && e.interpolation.format) || ((e) => e)), this.init(e); } init() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; e.interpolation || (e.interpolation = { escapeValue: !0 }); const t = e.interpolation; (this.escape = void 0 !== t.escape ? t.escape : y), (this.escapeValue = void 0 === t.escapeValue || t.escapeValue), (this.useRawValueToEscape = void 0 !== t.useRawValueToEscape && t.useRawValueToEscape), (this.prefix = t.prefix ? g(t.prefix) : t.prefixEscaped || "{{"), (this.suffix = t.suffix ? g(t.suffix) : t.suffixEscaped || "}}"), (this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ","), (this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-"), (this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || ""), (this.nestingPrefix = t.nestingPrefix ? g(t.nestingPrefix) : t.nestingPrefixEscaped || g("$t(")), (this.nestingSuffix = t.nestingSuffix ? g(t.nestingSuffix) : t.nestingSuffixEscaped || g(")")), (this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ","), (this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3), (this.alwaysFormat = void 0 !== t.alwaysFormat && t.alwaysFormat), this.resetRegExp(); } reset() { this.options && this.init(this.options); } resetRegExp() { const e = (e, t) => e && e.source === t ? ((e.lastIndex = 0), e) : new RegExp(t, "g"); (this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`)), (this.regexpUnescape = e( this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}` )), (this.nestingRegexp = e( this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}` )); } interpolate(e, t, n, r) { let i, o, a; const s = (this.options && this.options.interpolation && this.options.interpolation.defaultVariables) || {}; function c(e) { return e.replace(/\$/g, "$$$$"); } const l = (e) => { if (e.indexOf(this.formatSeparator) < 0) { const i = R( t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure ); return this.alwaysFormat ? this.format(i, void 0, n, { ...r, ...t, interpolationkey: e }) : i; } const i = e.split(this.formatSeparator), o = i.shift().trim(), a = i.join(this.formatSeparator).trim(); return this.format( R( t, s, o, this.options.keySeparator, this.options.ignoreJSONStructure ), a, n, { ...r, ...t, interpolationkey: o } ); }; this.resetRegExp(); const f = (r && r.missingInterpolationHandler) || this.options.missingInterpolationHandler, d = r && r.interpolation && void 0 !== r.interpolation.skipOnVariables ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables; return ( [ { regex: this.regexpUnescape, safeValue: (e) => c(e) }, { regex: this.regexp, safeValue: (e) => (this.escapeValue ? c(this.escape(e)) : c(e)), }, ].forEach((t) => { for (a = 0; (i = t.regex.exec(e)); ) { const n = i[1].trim(); if (((o = l(n)), void 0 === o)) if ("function" == typeof f) { const t = f(e, i, r); o = "string" == typeof t ? t : ""; } else if (r && Object.prototype.hasOwnProperty.call(r, n)) o = ""; else { if (d) { o = i[0]; continue; } this.logger.warn( `missed to pass in variable ${n} for interpolating ${e}` ), (o = ""); } else "string" == typeof o || this.useRawValueToEscape || (o = u(o)); const s = t.safeValue(o); if ( ((e = e.replace(i[0], s)), d ? ((t.regex.lastIndex += o.length), (t.regex.lastIndex -= i[0].length)) : (t.regex.lastIndex = 0), a++, a >= this.maxReplaces) ) break; } }), e ); } nest(e, t) { let n, r, i, o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; function a(e, t) { const n = this.nestingOptionsSeparator; if (e.indexOf(n) < 0) return e; const r = e.split(new RegExp(`${n}[ ]*{`)); let o = `{${r[1]}`; (e = r[0]), (o = this.interpolate(o, i)); const a = o.match(/'/g), s = o.match(/"/g); ((a && a.length % 2 == 0 && !s) || s.length % 2 != 0) && (o = o.replace(/'/g, '"')); try { (i = JSON.parse(o)), t && (i = { ...t, ...i }); } catch (t) { return ( this.logger.warn( `failed parsing options string in nesting for key ${e}`, t ), `${e}${n}${o}` ); } return ( i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, e ); } for (; (n = this.nestingRegexp.exec(e)); ) { let s = []; (i = { ...o }), (i = i.replace && "string" != typeof i.replace ? i.replace : i), (i.applyPostProcessor = !1), delete i.defaultValue; let c = !1; if ( -1 !== n[0].indexOf(this.formatSeparator) && !/{.*}/.test(n[1]) ) { const e = n[1].split(this.formatSeparator).map((e) => e.trim()); (n[1] = e.shift()), (s = e), (c = !0); } if ( ((r = t(a.call(this, n[1].trim(), i), i)), r && n[0] === e && "string" != typeof r) ) return r; "string" != typeof r && (r = u(r)), r || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), (r = "")), c && (r = s.reduce( (e, t) => this.format(e, t, o.lng, { ...o, interpolationkey: n[1].trim(), }), r.trim() )), (e = e.replace(n[0], r)), (this.regexp.lastIndex = 0); } return e; } } function j(e) { const t = {}; return function (n, r, i) { const o = r + JSON.stringify(i); let a = t[o]; return a || ((a = e(w(r), i)), (t[o] = a)), a(n); }; } class N { constructor() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; (this.logger = o.create("formatter")), (this.options = e), (this.formats = { number: j((e, t) => { const n = new Intl.NumberFormat(e, { ...t }); return (e) => n.format(e); }), currency: j((e, t) => { const n = new Intl.NumberFormat(e, { ...t, style: "currency" }); return (e) => n.format(e); }), datetime: j((e, t) => { const n = new Intl.DateTimeFormat(e, { ...t }); return (e) => n.format(e); }), relativetime: j((e, t) => { const n = new Intl.RelativeTimeFormat(e, { ...t }); return (e) => n.format(e, t.range || "day"); }), list: j((e, t) => { const n = new Intl.ListFormat(e, { ...t }); return (e) => n.format(e); }), }), this.init(e); } init(e) { const t = ( arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { interpolation: {} } ).interpolation; this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ","; } add(e, t) { this.formats[e.toLowerCase().trim()] = t; } addCached(e, t) { this.formats[e.toLowerCase().trim()] = j(t); } format(e, t, n) { let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; return t.split(this.formatSeparator).reduce((e, t) => { const { formatName: i, formatOptions: o } = (function (e) { let t = e.toLowerCase().trim(); const n = {}; if (e.indexOf("(") > -1) { const r = e.split("("); t = r[0].toLowerCase().trim(); const i = r[1].substring(0, r[1].length - 1); "currency" === t && i.indexOf(":") < 0 ? n.currency || (n.currency = i.trim()) : "relativetime" === t && i.indexOf(":") < 0 ? n.range || (n.range = i.trim()) : i.split(";").forEach((e) => { if (!e) return; const [t, ...r] = e.split(":"), i = r .join(":") .trim() .replace(/^'+|'+$/g, ""); n[t.trim()] || (n[t.trim()] = i), "false" === i && (n[t.trim()] = !1), "true" === i && (n[t.trim()] = !0), isNaN(i) || (n[t.trim()] = parseInt(i, 10)); }); } return { formatName: t, formatOptions: n }; })(t); if (this.formats[i]) { let t = e; try { const a = (r && r.formatParams && r.formatParams[r.interpolationkey]) || {}, s = a.locale || a.lng || r.locale || r.lng || n; t = this.formats[i](e, s, { ...o, ...r, ...a }); } catch (e) { this.logger.warn(e); } return t; } return this.logger.warn(`there was no format function for ${i}`), e; }, e); } } class B extends a { constructor(e, t, n) { let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; super(), (this.backend = e), (this.store = t), (this.services = n), (this.languageUtils = n.languageUtils), (this.options = r), (this.logger = o.create("backendConnector")), (this.waitingReads = []), (this.maxParallelReads = r.maxParallelReads || 10), (this.readingCalls = 0), (this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5), (this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350), (this.state = {}), (this.queue = []), this.backend && this.backend.init && this.backend.init(n, r.backend, r); } queueLoad(e, t, n, r) { const i = {}, o = {}, a = {}, s = {}; return ( e.forEach((e) => { let r = !0; t.forEach((t) => { const a = `${e}|${t}`; !n.reload && this.store.hasResourceBundle(e, t) ? (this.state[a] = 2) : this.state[a] < 0 || (1 === this.state[a] ? void 0 === o[a] && (o[a] = !0) : ((this.state[a] = 1), (r = !1), void 0 === o[a] && (o[a] = !0), void 0 === i[a] && (i[a] = !0), void 0 === s[t] && (s[t] = !0))); }), r || (a[e] = !0); }), (Object.keys(i).length || Object.keys(o).length) && this.queue.push({ pending: o, pendingCount: Object.keys(o).length, loaded: {}, errors: [], callback: r, }), { toLoad: Object.keys(i), pending: Object.keys(o), toLoadLanguages: Object.keys(a), toLoadNamespaces: Object.keys(s), } ); } loaded(e, t, n) { const r = e.split("|"), i = r[0], o = r[1]; t && this.emit("failedLoading", i, o, t), n && this.store.addResourceBundle(i, o, n, void 0, void 0, { skipCopy: !0, }), (this.state[e] = t ? -1 : 2); const a = {}; this.queue.forEach((n) => { !(function (e, t, n, r) { const { obj: i, k: o } = l(e, t, Object); (i[o] = i[o] || []), r && (i[o] = i[o].concat(n)), r || i[o].push(n); })(n.loaded, [i], o), (function (e, t) { void 0 !== e.pending[t] && (delete e.pending[t], e.pendingCount--); })(n, e), t && n.errors.push(t), 0 !== n.pendingCount || n.done || (Object.keys(n.loaded).forEach((e) => { a[e] || (a[e] = {}); const t = n.loaded[e]; t.length && t.forEach((t) => { void 0 === a[e][t] && (a[e][t] = !0); }); }), (n.done = !0), n.errors.length ? n.callback(n.errors) : n.callback()); }), this.emit("loaded", a), (this.queue = this.queue.filter((e) => !e.done)); } read(e, t, n) { let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0, i = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : this.retryTimeout, o = arguments.length > 5 ? arguments[5] : void 0; if (!e.length) return o(null, {}); if (this.readingCalls >= this.maxParallelReads) return void this.waitingReads.push({ lng: e, ns: t, fcName: n, tried: r, wait: i, callback: o, }); this.readingCalls++; const a = (a, s) => { if ((this.readingCalls--, this.waitingReads.length > 0)) { const e = this.waitingReads.shift(); this.read(e.lng, e.ns, e.fcName, e.tried, e.wait, e.callback); } a && s && r < this.maxRetries ? setTimeout(() => { this.read.call(this, e, t, n, r + 1, 2 * i, o); }, i) : o(a, s); }, s = this.backend[n].bind(this.backend); if (2 !== s.length) return s(e, t, a); try { const n = s(e, t); n && "function" == typeof n.then ? n.then((e) => a(null, e)).catch(a) : a(null, n); } catch (e) { a(e); } } prepareLoading(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, r = arguments.length > 3 ? arguments[3] : void 0; if (!this.backend) return ( this.logger.warn( "No backend was added via i18next.use. Will not load resources." ), r && r() ); "string" == typeof e && (e = this.languageUtils.toResolveHierarchy(e)), "string" == typeof t && (t = [t]); const i = this.queueLoad(e, t, n, r); if (!i.toLoad.length) return i.pending.length || r(), null; i.toLoad.forEach((e) => { this.loadOne(e); }); } load(e, t, n) { this.prepareLoading(e, t, {}, n); } reload(e, t, n) { this.prepareLoading(e, t, { reload: !0 }, n); } loadOne(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : ""; const n = e.split("|"), r = n[0], i = n[1]; this.read(r, i, "read", void 0, void 0, (n, o) => { n && this.logger.warn( `${t}loading namespace ${i} for language ${r} failed`, n ), !n && o && this.logger.log( `${t}loaded namespace ${i} for language ${r}`, o ), this.loaded(e, n, o); }); } saveMissing(e, t, n, r, i) { let o = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {}, a = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : () => {}; if ( this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t) ) this.logger.warn( `did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!" ); else if (null != n && "" !== n) { if (this.backend && this.backend.create) { const s = { ...o, isUpdate: i }, u = this.backend.create.bind(this.backend); if (u.length < 6) try { let i; (i = 5 === u.length ? u(e, t, n, r, s) : u(e, t, n, r)), i && "function" == typeof i.then ? i.then((e) => a(null, e)).catch(a) : a(null, i); } catch (e) { a(e); } else u(e, t, n, r, a, s); } e && e[0] && this.store.addResource(e[0], t, n, r); } } } function U() { return { debug: !1, initImmediate: !0, ns: ["translation"], defaultNS: ["translation"], fallbackLng: ["dev"], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: "all", preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: "fallback", saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: function (e) { let t = {}; if ( ("object" == typeof e[1] && (t = e[1]), "string" == typeof e[1] && (t.defaultValue = e[1]), "string" == typeof e[2] && (t.tDescription = e[2]), "object" == typeof e[2] || "object" == typeof e[3]) ) { const n = e[3] || e[2]; Object.keys(n).forEach((e) => { t[e] = n[e]; }); } return t; }, interpolation: { escapeValue: !0, format: (e) => e, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: "$t(", nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: !0, }, }; } function F(e) { return ( "string" == typeof e.ns && (e.ns = [e.ns]), "string" == typeof e.fallbackLng && (e.fallbackLng = [e.fallbackLng]), "string" == typeof e.fallbackNS && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e ); } function z() {} class H extends a { constructor() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0; var n; if ( (super(), (this.options = F(e)), (this.services = {}), (this.logger = o), (this.modules = { external: [] }), (n = this), Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach( (e) => { "function" == typeof n[e] && (n[e] = n[e].bind(n)); } ), t && !this.isInitialized && !e.isClone) ) { if (!this.options.initImmediate) return this.init(e, t), this; setTimeout(() => { this.init(e, t); }, 0); } } init() { var e = this; let t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0; (this.isInitializing = !0), "function" == typeof t && ((n = t), (t = {})), !t.defaultNS && !1 !== t.defaultNS && t.ns && ("string" == typeof t.ns ? (t.defaultNS = t.ns) : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0])); const r = U(); function i(e) { return e ? ("function" == typeof e ? new e() : e) : null; } if ( ((this.options = { ...r, ...this.options, ...F(t) }), "v1" !== this.options.compatibilityAPI && (this.options.interpolation = { ...r.interpolation, ...this.options.interpolation, }), void 0 !== t.keySeparator && (this.options.userDefinedKeySeparator = t.keySeparator), void 0 !== t.nsSeparator && (this.options.userDefinedNsSeparator = t.nsSeparator), !this.options.isClone) ) { let t; this.modules.logger ? o.init(i(this.modules.logger), this.options) : o.init(null, this.options), this.modules.formatter ? (t = this.modules.formatter) : "undefined" != typeof Intl && (t = N); const n = new O(this.options); this.store = new T(this.options.resources, this.options); const a = this.services; (a.logger = o), (a.resourceStore = this.store), (a.languageUtils = n), (a.pluralResolver = new P(n, { prepend: this.options.pluralSeparator, compatibilityJSON: this.options.compatibilityJSON, simplifyPluralSuffix: this.options.simplifyPluralSuffix, })), !t || (this.options.interpolation.format && this.options.interpolation.format !== r.interpolation.format) || ((a.formatter = i(t)), a.formatter.init(a, this.options), (this.options.interpolation.format = a.formatter.format.bind( a.formatter ))), (a.interpolator = new D(this.options)), (a.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this), }), (a.backendConnector = new B( i(this.modules.backend), a.resourceStore, a, this.options )), a.backendConnector.on("*", function (t) { for ( var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++ ) r[i - 1] = arguments[i]; e.emit(t, ...r); }), this.modules.languageDetector && ((a.languageDetector = i(this.modules.languageDetector)), a.languageDetector.init && a.languageDetector.init( a, this.options.detection, this.options )), this.modules.i18nFormat && ((a.i18nFormat = i(this.modules.i18nFormat)), a.i18nFormat.init && a.i18nFormat.init(this)), (this.translator = new k(this.services, this.options)), this.translator.on("*", function (t) { for ( var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++ ) r[i - 1] = arguments[i]; e.emit(t, ...r); }), this.modules.external.forEach((e) => { e.init && e.init(this); }); } if ( ((this.format = this.options.interpolation.format), n || (n = z), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) ) { const e = this.services.languageUtils.getFallbackCodes( this.options.fallbackLng ); e.length > 0 && "dev" !== e[0] && (this.options.lng = e[0]); } this.services.languageDetector || this.options.lng || this.logger.warn( "init: no languageDetector is used and no lng is defined" ); [ "getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage", ].forEach((t) => { this[t] = function () { return e.store[t](...arguments); }; }); [ "addResource", "addResources", "addResourceBundle", "removeResourceBundle", ].forEach((t) => { this[t] = function () { return e.store[t](...arguments), e; }; }); const a = s(), u = () => { const e = (e, t) => { (this.isInitializing = !1), this.isInitialized && !this.initializedStoreOnce && this.logger.warn( "init: i18next is already initialized. You should call init just once!" ), (this.isInitialized = !0), this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), a.resolve(t), n(e, t); }; if ( this.languages && "v1" !== this.options.compatibilityAPI && !this.isInitialized ) return e(null, this.t.bind(this)); this.changeLanguage(this.options.lng, e); }; return ( this.options.resources || !this.options.initImmediate ? u() : setTimeout(u, 0), a ); } loadResources(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : z; const n = "string" == typeof e ? e : this.language; if ( ("function" == typeof e && (t = e), !this.options.resources || this.options.partialBundledLanguages) ) { if ( n && "cimode" === n.toLowerCase() && (!this.options.preload || 0 === this.options.preload.length) ) return t(); const e = [], r = (t) => { if (!t) return; if ("cimode" === t) return; this.services.languageUtils .toResolveHierarchy(t) .forEach((t) => { "cimode" !== t && e.indexOf(t) < 0 && e.push(t); }); }; if (n) r(n); else { this.services.languageUtils .getFallbackCodes(this.options.fallbackLng) .forEach((e) => r(e)); } this.options.preload && this.options.preload.forEach((e) => r(e)), this.services.backendConnector.load(e, this.options.ns, (e) => { e || this.resolvedLanguage || !this.language || this.setResolvedLanguage(this.language), t(e); }); } else t(null); } reloadResources(e, t, n) { const r = s(); return ( e || (e = this.languages), t || (t = this.options.ns), n || (n = z), this.services.backendConnector.reload(e, t, (e) => { r.resolve(), n(e); }), r ); } use(e) { if (!e) throw new Error( "You are passing an undefined module! Please check the object you are passing to i18next.use()" ); if (!e.type) throw new Error( "You are passing a wrong module! Please check the object you are passing to i18next.use()" ); return ( "backend" === e.type && (this.modules.backend = e), ("logger" === e.type || (e.log && e.warn && e.error)) && (this.modules.logger = e), "languageDetector" === e.type && (this.modules.languageDetector = e), "i18nFormat" === e.type && (this.modules.i18nFormat = e), "postProcessor" === e.type && x.addPostProcessor(e), "formatter" === e.type && (this.modules.formatter = e), "3rdParty" === e.type && this.modules.external.push(e), this ); } setResolvedLanguage(e) { if (e && this.languages && !(["cimode", "dev"].indexOf(e) > -1)) for (let e = 0; e < this.languages.length; e++) { const t = this.languages[e]; if ( !(["cimode", "dev"].indexOf(t) > -1) && this.store.hasLanguageSomeTranslations(t) ) { this.resolvedLanguage = t; break; } } } changeLanguage(e, t) { var n = this; this.isLanguageChangingTo = e; const r = s(); this.emit("languageChanging", e); const i = (e) => { (this.language = e), (this.languages = this.services.languageUtils.toResolveHierarchy(e)), (this.resolvedLanguage = void 0), this.setResolvedLanguage(e); }, o = (e, o) => { o ? (i(o), this.translator.changeLanguage(o), (this.isLanguageChangingTo = void 0), this.emit("languageChanged", o), this.logger.log("languageChanged", o)) : (this.isLanguageChangingTo = void 0), r.resolve(function () { return n.t(...arguments); }), t && t(e, function () { return n.t(...arguments); }); }, a = (t) => { e || t || !this.services.languageDetector || (t = []); const n = "string" == typeof t ? t : this.services.languageUtils.getBestMatchFromCodes(t); n && (this.language || i(n), this.translator.language || this.translator.changeLanguage(n), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(n)), this.loadResources(n, (e) => { o(e, n); }); }; return ( e || !this.services.languageDetector || this.services.languageDetector.async ? !e && this.services.languageDetector && this.services.languageDetector.async ? 0 === this.services.languageDetector.detect.length ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e) : a(this.services.languageDetector.detect()), r ); } getFixedT(e, t, n) { var r = this; const i = function (e, t) { let o; if ("object" != typeof t) { for ( var a = arguments.length, s = new Array(a > 2 ? a - 2 : 0), u = 2; u < a; u++ ) s[u - 2] = arguments[u]; o = r.options.overloadTranslationOptionHandler([e, t].concat(s)); } else o = { ...t }; (o.lng = o.lng || i.lng), (o.lngs = o.lngs || i.lngs), (o.ns = o.ns || i.ns), (o.keyPrefix = o.keyPrefix || n || i.keyPrefix); const c = r.options.keySeparator || "."; let l; return ( (l = o.keyPrefix && Array.isArray(e) ? e.map((e) => `${o.keyPrefix}${c}${e}`) : o.keyPrefix ? `${o.keyPrefix}${c}${e}` : e), r.t(l, o) ); }; return ( "string" == typeof e ? (i.lng = e) : (i.lngs = e), (i.ns = t), (i.keyPrefix = n), i ); } t() { return this.translator && this.translator.translate(...arguments); } exists() { return this.translator && this.translator.exists(...arguments); } setDefaultNamespace(e) { this.options.defaultNS = e; } hasLoadedNamespace(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (!this.isInitialized) return ( this.logger.warn( "hasLoadedNamespace: i18next was not initialized", this.languages ), !1 ); if (!this.languages || !this.languages.length) return ( this.logger.warn( "hasLoadedNamespace: i18n.languages were undefined or empty", this.languages ), !1 ); const n = t.lng || this.resolvedLanguage || this.languages[0], r = !!this.options && this.options.fallbackLng, i = this.languages[this.languages.length - 1]; if ("cimode" === n.toLowerCase()) return !0; const o = (e, t) => { const n = this.services.backendConnector.state[`${e}|${t}`]; return -1 === n || 2 === n; }; if (t.precheck) { const e = t.precheck(this, o); if (void 0 !== e) return e; } return ( !!this.hasResourceBundle(n, e) || !( this.services.backendConnector.backend && (!this.options.resources || this.options.partialBundledLanguages) ) || !(!o(n, e) || (r && !o(i, e))) ); } loadNamespaces(e, t) { const n = s(); return this.options.ns ? ("string" == typeof e && (e = [e]), e.forEach((e) => { this.options.ns.indexOf(e) < 0 && this.options.ns.push(e); }), this.loadResources((e) => { n.resolve(), t && t(e); }), n) : (t && t(), Promise.resolve()); } loadLanguages(e, t) { const n = s(); "string" == typeof e && (e = [e]); const r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0); return i.length ? ((this.options.preload = r.concat(i)), this.loadResources((e) => { n.resolve(), t && t(e); }), n) : (t && t(), Promise.resolve()); } dir(e) { if ( (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) ) return "rtl"; const t = (this.services && this.services.languageUtils) || new O(U()); return [ "ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb", ].indexOf(t.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr"; } static createInstance() { return new H( arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, arguments.length > 1 ? arguments[1] : void 0 ); } cloneInstance() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : z; const n = e.forkResourceStore; n && delete e.forkResourceStore; const r = { ...this.options, ...e, isClone: !0 }, i = new H(r); (void 0 === e.debug && void 0 === e.prefix) || (i.logger = i.logger.clone(e)); return ( ["store", "services", "language"].forEach((e) => { i[e] = this[e]; }), (i.services = { ...this.services }), (i.services.utils = { hasLoadedNamespace: i.hasLoadedNamespace.bind(i), }), n && ((i.store = new T(this.store.data, r)), (i.services.resourceStore = i.store)), (i.translator = new k(i.services, r)), i.translator.on("*", function (e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r]; i.emit(e, ...n); }), i.init(r, t), (i.translator.options = r), (i.translator.backendConnector.services.utils = { hasLoadedNamespace: i.hasLoadedNamespace.bind(i), }), i ); } toJSON() { return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage, }; } } const q = H.createInstance(); q.createInstance = H.createInstance; q.createInstance, q.dir, q.init, q.loadResources, q.reloadResources, q.use, q.changeLanguage, q.getFixedT, q.t, q.exists, q.setDefaultNamespace, q.hasLoadedNamespace, q.loadNamespaces, q.loadLanguages; }, 26495: function (e, t, n) { "use strict"; n.d(t, { kL: function () { return f; }, }); var r = n(28416), i = n(23148); const o = "label"; function a(e, t) { "function" == typeof e ? e(t) : e && (e.current = t); } function s(e, t) { e.labels = t; } function u(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : o; const r = []; e.datasets = t.map((t) => { const i = e.datasets.find((e) => e[n] === t[n]); return i && t.data && !r.includes(i) ? (r.push(i), Object.assign(i, t), i) : { ...t }; }); } function c(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : o; const n = { labels: [], datasets: [] }; return s(n, e.labels), u(n, e.datasets, t), n; } function l(e, t) { const { height: n = 150, width: o = 300, redraw: l = !1, datasetIdKey: f, type: d, data: p, options: h, plugins: g = [], fallbackContent: m, updateMode: y, ...v } = e, b = (0, r.useRef)(null), _ = (0, r.useRef)(), w = () => { b.current && ((_.current = new i.kL(b.current, { type: d, data: c(p, f), options: h && { ...h }, plugins: g, })), a(t, _.current)); }, T = () => { a(t, null), _.current && (_.current.destroy(), (_.current = null)); }; return ( (0, r.useEffect)(() => { !l && _.current && h && (function (e, t) { const n = e.options; n && t && Object.assign(n, t); })(_.current, h); }, [l, h]), (0, r.useEffect)(() => { !l && _.current && s(_.current.config.data, p.labels); }, [l, p.labels]), (0, r.useEffect)(() => { !l && _.current && p.datasets && u(_.current.config.data, p.datasets, f); }, [l, p.datasets]), (0, r.useEffect)(() => { _.current && (l ? (T(), setTimeout(w)) : _.current.update(y)); }, [l, h, p.labels, p.datasets, y]), (0, r.useEffect)(() => { _.current && (T(), setTimeout(w)); }, [d]), (0, r.useEffect)(() => (w(), () => T()), []), r.createElement( "canvas", Object.assign({ ref: b, role: "img", height: n, width: o }, v), m ) ); } const f = (0, r.forwardRef)(l); }, 38776: function (e, t, n) { "use strict"; n.d(t, { Z: function () { return i; }, }); var r = "Invariant failed"; function i(e, t) { if (!e) throw new Error(r); } }, 2228: function (e) { "use strict"; e.exports = JSON.parse( '{"supplemental":{"version":{"_unicodeVersion":"13.0.0","_cldrVersion":"38"},"likelySubtags":{"aa":"aa-Latn-ET","aai":"aai-Latn-ZZ","aak":"aak-Latn-ZZ","aau":"aau-Latn-ZZ","ab":"ab-Cyrl-GE","abi":"abi-Latn-ZZ","abq":"abq-Cyrl-ZZ","abr":"abr-Latn-GH","abt":"abt-Latn-ZZ","aby":"aby-Latn-ZZ","acd":"acd-Latn-ZZ","ace":"ace-Latn-ID","ach":"ach-Latn-UG","ada":"ada-Latn-GH","ade":"ade-Latn-ZZ","adj":"adj-Latn-ZZ","adp":"adp-Tibt-BT","ady":"ady-Cyrl-RU","adz":"adz-Latn-ZZ","ae":"ae-Avst-IR","aeb":"aeb-Arab-TN","aey":"aey-Latn-ZZ","af":"af-Latn-ZA","agc":"agc-Latn-ZZ","agd":"agd-Latn-ZZ","agg":"agg-Latn-ZZ","agm":"agm-Latn-ZZ","ago":"ago-Latn-ZZ","agq":"agq-Latn-CM","aha":"aha-Latn-ZZ","ahl":"ahl-Latn-ZZ","aho":"aho-Ahom-IN","ajg":"ajg-Latn-ZZ","ak":"ak-Latn-GH","akk":"akk-Xsux-IQ","ala":"ala-Latn-ZZ","ali":"ali-Latn-ZZ","aln":"aln-Latn-XK","alt":"alt-Cyrl-RU","am":"am-Ethi-ET","amm":"amm-Latn-ZZ","amn":"amn-Latn-ZZ","amo":"amo-Latn-NG","amp":"amp-Latn-ZZ","an":"an-Latn-ES","anc":"anc-Latn-ZZ","ank":"ank-Latn-ZZ","ann":"ann-Latn-ZZ","any":"any-Latn-ZZ","aoj":"aoj-Latn-ZZ","aom":"aom-Latn-ZZ","aoz":"aoz-Latn-ID","apc":"apc-Arab-ZZ","apd":"apd-Arab-TG","ape":"ape-Latn-ZZ","apr":"apr-Latn-ZZ","aps":"aps-Latn-ZZ","apz":"apz-Latn-ZZ","ar":"ar-Arab-EG","arc":"arc-Armi-IR","arc-Nbat":"arc-Nbat-JO","arc-Palm":"arc-Palm-SY","arh":"arh-Latn-ZZ","arn":"arn-Latn-CL","aro":"aro-Latn-BO","arq":"arq-Arab-DZ","ars":"ars-Arab-SA","ary":"ary-Arab-MA","arz":"arz-Arab-EG","as":"as-Beng-IN","asa":"asa-Latn-TZ","ase":"ase-Sgnw-US","asg":"asg-Latn-ZZ","aso":"aso-Latn-ZZ","ast":"ast-Latn-ES","ata":"ata-Latn-ZZ","atg":"atg-Latn-ZZ","atj":"atj-Latn-CA","auy":"auy-Latn-ZZ","av":"av-Cyrl-RU","avl":"avl-Arab-ZZ","avn":"avn-Latn-ZZ","avt":"avt-Latn-ZZ","avu":"avu-Latn-ZZ","awa":"awa-Deva-IN","awb":"awb-Latn-ZZ","awo":"awo-Latn-ZZ","awx":"awx-Latn-ZZ","ay":"ay-Latn-BO","ayb":"ayb-Latn-ZZ","az":"az-Latn-AZ","az-Arab":"az-Arab-IR","az-IQ":"az-Arab-IQ","az-IR":"az-Arab-IR","az-RU":"az-Cyrl-RU","ba":"ba-Cyrl-RU","bal":"bal-Arab-PK","ban":"ban-Latn-ID","bap":"bap-Deva-NP","bar":"bar-Latn-AT","bas":"bas-Latn-CM","bav":"bav-Latn-ZZ","bax":"bax-Bamu-CM","bba":"bba-Latn-ZZ","bbb":"bbb-Latn-ZZ","bbc":"bbc-Latn-ID","bbd":"bbd-Latn-ZZ","bbj":"bbj-Latn-CM","bbp":"bbp-Latn-ZZ","bbr":"bbr-Latn-ZZ","bcf":"bcf-Latn-ZZ","bch":"bch-Latn-ZZ","bci":"bci-Latn-CI","bcm":"bcm-Latn-ZZ","bcn":"bcn-Latn-ZZ","bco":"bco-Latn-ZZ","bcq":"bcq-Ethi-ZZ","bcu":"bcu-Latn-ZZ","bdd":"bdd-Latn-ZZ","be":"be-Cyrl-BY","bef":"bef-Latn-ZZ","beh":"beh-Latn-ZZ","bej":"bej-Arab-SD","bem":"bem-Latn-ZM","bet":"bet-Latn-ZZ","bew":"bew-Latn-ID","bex":"bex-Latn-ZZ","bez":"bez-Latn-TZ","bfd":"bfd-Latn-CM","bfq":"bfq-Taml-IN","bft":"bft-Arab-PK","bfy":"bfy-Deva-IN","bg":"bg-Cyrl-BG","bgc":"bgc-Deva-IN","bgn":"bgn-Arab-PK","bgx":"bgx-Grek-TR","bhb":"bhb-Deva-IN","bhg":"bhg-Latn-ZZ","bhi":"bhi-Deva-IN","bhl":"bhl-Latn-ZZ","bho":"bho-Deva-IN","bhy":"bhy-Latn-ZZ","bi":"bi-Latn-VU","bib":"bib-Latn-ZZ","big":"big-Latn-ZZ","bik":"bik-Latn-PH","bim":"bim-Latn-ZZ","bin":"bin-Latn-NG","bio":"bio-Latn-ZZ","biq":"biq-Latn-ZZ","bjh":"bjh-Latn-ZZ","bji":"bji-Ethi-ZZ","bjj":"bjj-Deva-IN","bjn":"bjn-Latn-ID","bjo":"bjo-Latn-ZZ","bjr":"bjr-Latn-ZZ","bjt":"bjt-Latn-SN","bjz":"bjz-Latn-ZZ","bkc":"bkc-Latn-ZZ","bkm":"bkm-Latn-CM","bkq":"bkq-Latn-ZZ","bku":"bku-Latn-PH","bkv":"bkv-Latn-ZZ","blt":"blt-Tavt-VN","bm":"bm-Latn-ML","bmh":"bmh-Latn-ZZ","bmk":"bmk-Latn-ZZ","bmq":"bmq-Latn-ML","bmu":"bmu-Latn-ZZ","bn":"bn-Beng-BD","bng":"bng-Latn-ZZ","bnm":"bnm-Latn-ZZ","bnp":"bnp-Latn-ZZ","bo":"bo-Tibt-CN","boj":"boj-Latn-ZZ","bom":"bom-Latn-ZZ","bon":"bon-Latn-ZZ","bpy":"bpy-Beng-IN","bqc":"bqc-Latn-ZZ","bqi":"bqi-Arab-IR","bqp":"bqp-Latn-ZZ","bqv":"bqv-Latn-CI","br":"br-Latn-FR","bra":"bra-Deva-IN","brh":"brh-Arab-PK","brx":"brx-Deva-IN","brz":"brz-Latn-ZZ","bs":"bs-Latn-BA","bsj":"bsj-Latn-ZZ","bsq":"bsq-Bass-LR","bss":"bss-Latn-CM","bst":"bst-Ethi-ZZ","bto":"bto-Latn-PH","btt":"btt-Latn-ZZ","btv":"btv-Deva-PK","bua":"bua-Cyrl-RU","buc":"buc-Latn-YT","bud":"bud-Latn-ZZ","bug":"bug-Latn-ID","buk":"buk-Latn-ZZ","bum":"bum-Latn-CM","buo":"buo-Latn-ZZ","bus":"bus-Latn-ZZ","buu":"buu-Latn-ZZ","bvb":"bvb-Latn-GQ","bwd":"bwd-Latn-ZZ","bwr":"bwr-Latn-ZZ","bxh":"bxh-Latn-ZZ","bye":"bye-Latn-ZZ","byn":"byn-Ethi-ER","byr":"byr-Latn-ZZ","bys":"bys-Latn-ZZ","byv":"byv-Latn-CM","byx":"byx-Latn-ZZ","bza":"bza-Latn-ZZ","bze":"bze-Latn-ML","bzf":"bzf-Latn-ZZ","bzh":"bzh-Latn-ZZ","bzw":"bzw-Latn-ZZ","ca":"ca-Latn-ES","cad":"cad-Latn-US","can":"can-Latn-ZZ","cbj":"cbj-Latn-ZZ","cch":"cch-Latn-NG","ccp":"ccp-Cakm-BD","ce":"ce-Cyrl-RU","ceb":"ceb-Latn-PH","cfa":"cfa-Latn-ZZ","cgg":"cgg-Latn-UG","ch":"ch-Latn-GU","chk":"chk-Latn-FM","chm":"chm-Cyrl-RU","cho":"cho-Latn-US","chp":"chp-Latn-CA","chr":"chr-Cher-US","cic":"cic-Latn-US","cja":"cja-Arab-KH","cjm":"cjm-Cham-VN","cjv":"cjv-Latn-ZZ","ckb":"ckb-Arab-IQ","ckl":"ckl-Latn-ZZ","cko":"cko-Latn-ZZ","cky":"cky-Latn-ZZ","cla":"cla-Latn-ZZ","cme":"cme-Latn-ZZ","cmg":"cmg-Soyo-MN","co":"co-Latn-FR","cop":"cop-Copt-EG","cps":"cps-Latn-PH","cr":"cr-Cans-CA","crh":"crh-Cyrl-UA","crj":"crj-Cans-CA","crk":"crk-Cans-CA","crl":"crl-Cans-CA","crm":"crm-Cans-CA","crs":"crs-Latn-SC","cs":"cs-Latn-CZ","csb":"csb-Latn-PL","csw":"csw-Cans-CA","ctd":"ctd-Pauc-MM","cu":"cu-Cyrl-RU","cu-Glag":"cu-Glag-BG","cv":"cv-Cyrl-RU","cy":"cy-Latn-GB","da":"da-Latn-DK","dad":"dad-Latn-ZZ","daf":"daf-Latn-CI","dag":"dag-Latn-ZZ","dah":"dah-Latn-ZZ","dak":"dak-Latn-US","dar":"dar-Cyrl-RU","dav":"dav-Latn-KE","dbd":"dbd-Latn-ZZ","dbq":"dbq-Latn-ZZ","dcc":"dcc-Arab-IN","ddn":"ddn-Latn-ZZ","de":"de-Latn-DE","ded":"ded-Latn-ZZ","den":"den-Latn-CA","dga":"dga-Latn-ZZ","dgh":"dgh-Latn-ZZ","dgi":"dgi-Latn-ZZ","dgl":"dgl-Arab-ZZ","dgr":"dgr-Latn-CA","dgz":"dgz-Latn-ZZ","dia":"dia-Latn-ZZ","dje":"dje-Latn-NE","dnj":"dnj-Latn-CI","dob":"dob-Latn-ZZ","doi":"doi-Deva-IN","dop":"dop-Latn-ZZ","dow":"dow-Latn-ZZ","drh":"drh-Mong-CN","dri":"dri-Latn-ZZ","drs":"drs-Ethi-ZZ","dsb":"dsb-Latn-DE","dtm":"dtm-Latn-ML","dtp":"dtp-Latn-MY","dts":"dts-Latn-ZZ","dty":"dty-Deva-NP","dua":"dua-Latn-CM","duc":"duc-Latn-ZZ","dud":"dud-Latn-ZZ","dug":"dug-Latn-ZZ","dv":"dv-Thaa-MV","dva":"dva-Latn-ZZ","dww":"dww-Latn-ZZ","dyo":"dyo-Latn-SN","dyu":"dyu-Latn-BF","dz":"dz-Tibt-BT","dzg":"dzg-Latn-ZZ","ebu":"ebu-Latn-KE","ee":"ee-Latn-GH","efi":"efi-Latn-NG","egl":"egl-Latn-IT","egy":"egy-Egyp-EG","eka":"eka-Latn-ZZ","eky":"eky-Kali-MM","el":"el-Grek-GR","ema":"ema-Latn-ZZ","emi":"emi-Latn-ZZ","en":"en-Latn-US","en-Shaw":"en-Shaw-GB","enn":"enn-Latn-ZZ","enq":"enq-Latn-ZZ","eo":"eo-Latn-001","eri":"eri-Latn-ZZ","es":"es-Latn-ES","esg":"esg-Gonm-IN","esu":"esu-Latn-US","et":"et-Latn-EE","etr":"etr-Latn-ZZ","ett":"ett-Ital-IT","etu":"etu-Latn-ZZ","etx":"etx-Latn-ZZ","eu":"eu-Latn-ES","ewo":"ewo-Latn-CM","ext":"ext-Latn-ES","eza":"eza-Latn-ZZ","fa":"fa-Arab-IR","faa":"faa-Latn-ZZ","fab":"fab-Latn-ZZ","fag":"fag-Latn-ZZ","fai":"fai-Latn-ZZ","fan":"fan-Latn-GQ","ff":"ff-Latn-SN","ff-Adlm":"ff-Adlm-GN","ffi":"ffi-Latn-ZZ","ffm":"ffm-Latn-ML","fi":"fi-Latn-FI","fia":"fia-Arab-SD","fil":"fil-Latn-PH","fit":"fit-Latn-SE","fj":"fj-Latn-FJ","flr":"flr-Latn-ZZ","fmp":"fmp-Latn-ZZ","fo":"fo-Latn-FO","fod":"fod-Latn-ZZ","fon":"fon-Latn-BJ","for":"for-Latn-ZZ","fpe":"fpe-Latn-ZZ","fqs":"fqs-Latn-ZZ","fr":"fr-Latn-FR","frc":"frc-Latn-US","frp":"frp-Latn-FR","frr":"frr-Latn-DE","frs":"frs-Latn-DE","fub":"fub-Arab-CM","fud":"fud-Latn-WF","fue":"fue-Latn-ZZ","fuf":"fuf-Latn-GN","fuh":"fuh-Latn-ZZ","fuq":"fuq-Latn-NE","fur":"fur-Latn-IT","fuv":"fuv-Latn-NG","fuy":"fuy-Latn-ZZ","fvr":"fvr-Latn-SD","fy":"fy-Latn-NL","ga":"ga-Latn-IE","gaa":"gaa-Latn-GH","gaf":"gaf-Latn-ZZ","gag":"gag-Latn-MD","gah":"gah-Latn-ZZ","gaj":"gaj-Latn-ZZ","gam":"gam-Latn-ZZ","gan":"gan-Hans-CN","gaw":"gaw-Latn-ZZ","gay":"gay-Latn-ID","gba":"gba-Latn-ZZ","gbf":"gbf-Latn-ZZ","gbm":"gbm-Deva-IN","gby":"gby-Latn-ZZ","gbz":"gbz-Arab-IR","gcr":"gcr-Latn-GF","gd":"gd-Latn-GB","gde":"gde-Latn-ZZ","gdn":"gdn-Latn-ZZ","gdr":"gdr-Latn-ZZ","geb":"geb-Latn-ZZ","gej":"gej-Latn-ZZ","gel":"gel-Latn-ZZ","gez":"gez-Ethi-ET","gfk":"gfk-Latn-ZZ","ggn":"ggn-Deva-NP","ghs":"ghs-Latn-ZZ","gil":"gil-Latn-KI","gim":"gim-Latn-ZZ","gjk":"gjk-Arab-PK","gjn":"gjn-Latn-ZZ","gju":"gju-Arab-PK","gkn":"gkn-Latn-ZZ","gkp":"gkp-Latn-ZZ","gl":"gl-Latn-ES","glk":"glk-Arab-IR","gmm":"gmm-Latn-ZZ","gmv":"gmv-Ethi-ZZ","gn":"gn-Latn-PY","gnd":"gnd-Latn-ZZ","gng":"gng-Latn-ZZ","god":"god-Latn-ZZ","gof":"gof-Ethi-ZZ","goi":"goi-Latn-ZZ","gom":"gom-Deva-IN","gon":"gon-Telu-IN","gor":"gor-Latn-ID","gos":"gos-Latn-NL","got":"got-Goth-UA","grb":"grb-Latn-ZZ","grc":"grc-Cprt-CY","grc-Linb":"grc-Linb-GR","grt":"grt-Beng-IN","grw":"grw-Latn-ZZ","gsw":"gsw-Latn-CH","gu":"gu-Gujr-IN","gub":"gub-Latn-BR","guc":"guc-Latn-CO","gud":"gud-Latn-ZZ","gur":"gur-Latn-GH","guw":"guw-Latn-ZZ","gux":"gux-Latn-ZZ","guz":"guz-Latn-KE","gv":"gv-Latn-IM","gvf":"gvf-Latn-ZZ","gvr":"gvr-Deva-NP","gvs":"gvs-Latn-ZZ","gwc":"gwc-Arab-ZZ","gwi":"gwi-Latn-CA","gwt":"gwt-Arab-ZZ","gyi":"gyi-Latn-ZZ","ha":"ha-Latn-NG","ha-CM":"ha-Arab-CM","ha-SD":"ha-Arab-SD","hag":"hag-Latn-ZZ","hak":"hak-Hans-CN","ham":"ham-Latn-ZZ","haw":"haw-Latn-US","haz":"haz-Arab-AF","hbb":"hbb-Latn-ZZ","hdy":"hdy-Ethi-ZZ","he":"he-Hebr-IL","hhy":"hhy-Latn-ZZ","hi":"hi-Deva-IN","hia":"hia-Latn-ZZ","hif":"hif-Latn-FJ","hig":"hig-Latn-ZZ","hih":"hih-Latn-ZZ","hil":"hil-Latn-PH","hla":"hla-Latn-ZZ","hlu":"hlu-Hluw-TR","hmd":"hmd-Plrd-CN","hmt":"hmt-Latn-ZZ","hnd":"hnd-Arab-PK","hne":"hne-Deva-IN","hnj":"hnj-Hmng-LA","hnn":"hnn-Latn-PH","hno":"hno-Arab-PK","ho":"ho-Latn-PG","hoc":"hoc-Deva-IN","hoj":"hoj-Deva-IN","hot":"hot-Latn-ZZ","hr":"hr-Latn-HR","hsb":"hsb-Latn-DE","hsn":"hsn-Hans-CN","ht":"ht-Latn-HT","hu":"hu-Latn-HU","hui":"hui-Latn-ZZ","hy":"hy-Armn-AM","hz":"hz-Latn-NA","ia":"ia-Latn-001","ian":"ian-Latn-ZZ","iar":"iar-Latn-ZZ","iba":"iba-Latn-MY","ibb":"ibb-Latn-NG","iby":"iby-Latn-ZZ","ica":"ica-Latn-ZZ","ich":"ich-Latn-ZZ","id":"id-Latn-ID","idd":"idd-Latn-ZZ","idi":"idi-Latn-ZZ","idu":"idu-Latn-ZZ","ife":"ife-Latn-TG","ig":"ig-Latn-NG","igb":"igb-Latn-ZZ","ige":"ige-Latn-ZZ","ii":"ii-Yiii-CN","ijj":"ijj-Latn-ZZ","ik":"ik-Latn-US","ikk":"ikk-Latn-ZZ","ikt":"ikt-Latn-CA","ikw":"ikw-Latn-ZZ","ikx":"ikx-Latn-ZZ","ilo":"ilo-Latn-PH","imo":"imo-Latn-ZZ","in":"in-Latn-ID","inh":"inh-Cyrl-RU","io":"io-Latn-001","iou":"iou-Latn-ZZ","iri":"iri-Latn-ZZ","is":"is-Latn-IS","it":"it-Latn-IT","iu":"iu-Cans-CA","iw":"iw-Hebr-IL","iwm":"iwm-Latn-ZZ","iws":"iws-Latn-ZZ","izh":"izh-Latn-RU","izi":"izi-Latn-ZZ","ja":"ja-Jpan-JP","jab":"jab-Latn-ZZ","jam":"jam-Latn-JM","jar":"jar-Latn-ZZ","jbo":"jbo-Latn-001","jbu":"jbu-Latn-ZZ","jen":"jen-Latn-ZZ","jgk":"jgk-Latn-ZZ","jgo":"jgo-Latn-CM","ji":"ji-Hebr-UA","jib":"jib-Latn-ZZ","jmc":"jmc-Latn-TZ","jml":"jml-Deva-NP","jra":"jra-Latn-ZZ","jut":"jut-Latn-DK","jv":"jv-Latn-ID","jw":"jw-Latn-ID","ka":"ka-Geor-GE","kaa":"kaa-Cyrl-UZ","kab":"kab-Latn-DZ","kac":"kac-Latn-MM","kad":"kad-Latn-ZZ","kai":"kai-Latn-ZZ","kaj":"kaj-Latn-NG","kam":"kam-Latn-KE","kao":"kao-Latn-ML","kbd":"kbd-Cyrl-RU","kbm":"kbm-Latn-ZZ","kbp":"kbp-Latn-ZZ","kbq":"kbq-Latn-ZZ","kbx":"kbx-Latn-ZZ","kby":"kby-Arab-NE","kcg":"kcg-Latn-NG","kck":"kck-Latn-ZW","kcl":"kcl-Latn-ZZ","kct":"kct-Latn-ZZ","kde":"kde-Latn-TZ","kdh":"kdh-Arab-TG","kdl":"kdl-Latn-ZZ","kdt":"kdt-Thai-TH","kea":"kea-Latn-CV","ken":"ken-Latn-CM","kez":"kez-Latn-ZZ","kfo":"kfo-Latn-CI","kfr":"kfr-Deva-IN","kfy":"kfy-Deva-IN","kg":"kg-Latn-CD","kge":"kge-Latn-ID","kgf":"kgf-Latn-ZZ","kgp":"kgp-Latn-BR","kha":"kha-Latn-IN","khb":"khb-Talu-CN","khn":"khn-Deva-IN","khq":"khq-Latn-ML","khs":"khs-Latn-ZZ","kht":"kht-Mymr-IN","khw":"khw-Arab-PK","khz":"khz-Latn-ZZ","ki":"ki-Latn-KE","kij":"kij-Latn-ZZ","kiu":"kiu-Latn-TR","kiw":"kiw-Latn-ZZ","kj":"kj-Latn-NA","kjd":"kjd-Latn-ZZ","kjg":"kjg-Laoo-LA","kjs":"kjs-Latn-ZZ","kjy":"kjy-Latn-ZZ","kk":"kk-Cyrl-KZ","kk-AF":"kk-Arab-AF","kk-Arab":"kk-Arab-CN","kk-CN":"kk-Arab-CN","kk-IR":"kk-Arab-IR","kk-MN":"kk-Arab-MN","kkc":"kkc-Latn-ZZ","kkj":"kkj-Latn-CM","kl":"kl-Latn-GL","kln":"kln-Latn-KE","klq":"klq-Latn-ZZ","klt":"klt-Latn-ZZ","klx":"klx-Latn-ZZ","km":"km-Khmr-KH","kmb":"kmb-Latn-AO","kmh":"kmh-Latn-ZZ","kmo":"kmo-Latn-ZZ","kms":"kms-Latn-ZZ","kmu":"kmu-Latn-ZZ","kmw":"kmw-Latn-ZZ","kn":"kn-Knda-IN","knf":"knf-Latn-GW","knp":"knp-Latn-ZZ","ko":"ko-Kore-KR","koi":"koi-Cyrl-RU","kok":"kok-Deva-IN","kol":"kol-Latn-ZZ","kos":"kos-Latn-FM","koz":"koz-Latn-ZZ","kpe":"kpe-Latn-LR","kpf":"kpf-Latn-ZZ","kpo":"kpo-Latn-ZZ","kpr":"kpr-Latn-ZZ","kpx":"kpx-Latn-ZZ","kqb":"kqb-Latn-ZZ","kqf":"kqf-Latn-ZZ","kqs":"kqs-Latn-ZZ","kqy":"kqy-Ethi-ZZ","kr":"kr-Latn-ZZ","krc":"krc-Cyrl-RU","kri":"kri-Latn-SL","krj":"krj-Latn-PH","krl":"krl-Latn-RU","krs":"krs-Latn-ZZ","kru":"kru-Deva-IN","ks":"ks-Arab-IN","ksb":"ksb-Latn-TZ","ksd":"ksd-Latn-ZZ","ksf":"ksf-Latn-CM","ksh":"ksh-Latn-DE","ksj":"ksj-Latn-ZZ","ksr":"ksr-Latn-ZZ","ktb":"ktb-Ethi-ZZ","ktm":"ktm-Latn-ZZ","kto":"kto-Latn-ZZ","ktr":"ktr-Latn-MY","ku":"ku-Latn-TR","ku-Arab":"ku-Arab-IQ","ku-LB":"ku-Arab-LB","ku-Yezi":"ku-Yezi-GE","kub":"kub-Latn-ZZ","kud":"kud-Latn-ZZ","kue":"kue-Latn-ZZ","kuj":"kuj-Latn-ZZ","kum":"kum-Cyrl-RU","kun":"kun-Latn-ZZ","kup":"kup-Latn-ZZ","kus":"kus-Latn-ZZ","kv":"kv-Cyrl-RU","kvg":"kvg-Latn-ZZ","kvr":"kvr-Latn-ID","kvx":"kvx-Arab-PK","kw":"kw-Latn-GB","kwj":"kwj-Latn-ZZ","kwo":"kwo-Latn-ZZ","kwq":"kwq-Latn-ZZ","kxa":"kxa-Latn-ZZ","kxc":"kxc-Ethi-ZZ","kxe":"kxe-Latn-ZZ","kxl":"kxl-Deva-IN","kxm":"kxm-Thai-TH","kxp":"kxp-Arab-PK","kxw":"kxw-Latn-ZZ","kxz":"kxz-Latn-ZZ","ky":"ky-Cyrl-KG","ky-Arab":"ky-Arab-CN","ky-CN":"ky-Arab-CN","ky-Latn":"ky-Latn-TR","ky-TR":"ky-Latn-TR","kye":"kye-Latn-ZZ","kyx":"kyx-Latn-ZZ","kzh":"kzh-Arab-ZZ","kzj":"kzj-Latn-MY","kzr":"kzr-Latn-ZZ","kzt":"kzt-Latn-MY","la":"la-Latn-VA","lab":"lab-Lina-GR","lad":"lad-Hebr-IL","lag":"lag-Latn-TZ","lah":"lah-Arab-PK","laj":"laj-Latn-UG","las":"las-Latn-ZZ","lb":"lb-Latn-LU","lbe":"lbe-Cyrl-RU","lbu":"lbu-Latn-ZZ","lbw":"lbw-Latn-ID","lcm":"lcm-Latn-ZZ","lcp":"lcp-Thai-CN","ldb":"ldb-Latn-ZZ","led":"led-Latn-ZZ","lee":"lee-Latn-ZZ","lem":"lem-Latn-ZZ","lep":"lep-Lepc-IN","leq":"leq-Latn-ZZ","leu":"leu-Latn-ZZ","lez":"lez-Cyrl-RU","lg":"lg-Latn-UG","lgg":"lgg-Latn-ZZ","li":"li-Latn-NL","lia":"lia-Latn-ZZ","lid":"lid-Latn-ZZ","lif":"lif-Deva-NP","lif-Limb":"lif-Limb-IN","lig":"lig-Latn-ZZ","lih":"lih-Latn-ZZ","lij":"lij-Latn-IT","lis":"lis-Lisu-CN","ljp":"ljp-Latn-ID","lki":"lki-Arab-IR","lkt":"lkt-Latn-US","lle":"lle-Latn-ZZ","lln":"lln-Latn-ZZ","lmn":"lmn-Telu-IN","lmo":"lmo-Latn-IT","lmp":"lmp-Latn-ZZ","ln":"ln-Latn-CD","lns":"lns-Latn-ZZ","lnu":"lnu-Latn-ZZ","lo":"lo-Laoo-LA","loj":"loj-Latn-ZZ","lok":"lok-Latn-ZZ","lol":"lol-Latn-CD","lor":"lor-Latn-ZZ","los":"los-Latn-ZZ","loz":"loz-Latn-ZM","lrc":"lrc-Arab-IR","lt":"lt-Latn-LT","ltg":"ltg-Latn-LV","lu":"lu-Latn-CD","lua":"lua-Latn-CD","luo":"luo-Latn-KE","luy":"luy-Latn-KE","luz":"luz-Arab-IR","lv":"lv-Latn-LV","lwl":"lwl-Thai-TH","lzh":"lzh-Hans-CN","lzz":"lzz-Latn-TR","mad":"mad-Latn-ID","maf":"maf-Latn-CM","mag":"mag-Deva-IN","mai":"mai-Deva-IN","mak":"mak-Latn-ID","man":"man-Latn-GM","man-GN":"man-Nkoo-GN","man-Nkoo":"man-Nkoo-GN","mas":"mas-Latn-KE","maw":"maw-Latn-ZZ","maz":"maz-Latn-MX","mbh":"mbh-Latn-ZZ","mbo":"mbo-Latn-ZZ","mbq":"mbq-Latn-ZZ","mbu":"mbu-Latn-ZZ","mbw":"mbw-Latn-ZZ","mci":"mci-Latn-ZZ","mcp":"mcp-Latn-ZZ","mcq":"mcq-Latn-ZZ","mcr":"mcr-Latn-ZZ","mcu":"mcu-Latn-ZZ","mda":"mda-Latn-ZZ","mde":"mde-Arab-ZZ","mdf":"mdf-Cyrl-RU","mdh":"mdh-Latn-PH","mdj":"mdj-Latn-ZZ","mdr":"mdr-Latn-ID","mdx":"mdx-Ethi-ZZ","med":"med-Latn-ZZ","mee":"mee-Latn-ZZ","mek":"mek-Latn-ZZ","men":"men-Latn-SL","mer":"mer-Latn-KE","met":"met-Latn-ZZ","meu":"meu-Latn-ZZ","mfa":"mfa-Arab-TH","mfe":"mfe-Latn-MU","mfn":"mfn-Latn-ZZ","mfo":"mfo-Latn-ZZ","mfq":"mfq-Latn-ZZ","mg":"mg-Latn-MG","mgh":"mgh-Latn-MZ","mgl":"mgl-Latn-ZZ","mgo":"mgo-Latn-CM","mgp":"mgp-Deva-NP","mgy":"mgy-Latn-TZ","mh":"mh-Latn-MH","mhi":"mhi-Latn-ZZ","mhl":"mhl-Latn-ZZ","mi":"mi-Latn-NZ","mif":"mif-Latn-ZZ","min":"min-Latn-ID","mis":"mis-Hatr-IQ","mis-Medf":"mis-Medf-NG","miw":"miw-Latn-ZZ","mk":"mk-Cyrl-MK","mki":"mki-Arab-ZZ","mkl":"mkl-Latn-ZZ","mkp":"mkp-Latn-ZZ","mkw":"mkw-Latn-ZZ","ml":"ml-Mlym-IN","mle":"mle-Latn-ZZ","mlp":"mlp-Latn-ZZ","mls":"mls-Latn-SD","mmo":"mmo-Latn-ZZ","mmu":"mmu-Latn-ZZ","mmx":"mmx-Latn-ZZ","mn":"mn-Cyrl-MN","mn-CN":"mn-Mong-CN","mn-Mong":"mn-Mong-CN","mna":"mna-Latn-ZZ","mnf":"mnf-Latn-ZZ","mni":"mni-Beng-IN","mnw":"mnw-Mymr-MM","mo":"mo-Latn-RO","moa":"moa-Latn-ZZ","moe":"moe-Latn-CA","moh":"moh-Latn-CA","mos":"mos-Latn-BF","mox":"mox-Latn-ZZ","mpp":"mpp-Latn-ZZ","mps":"mps-Latn-ZZ","mpt":"mpt-Latn-ZZ","mpx":"mpx-Latn-ZZ","mql":"mql-Latn-ZZ","mr":"mr-Deva-IN","mrd":"mrd-Deva-NP","mrj":"mrj-Cyrl-RU","mro":"mro-Mroo-BD","ms":"ms-Latn-MY","ms-CC":"ms-Arab-CC","mt":"mt-Latn-MT","mtc":"mtc-Latn-ZZ","mtf":"mtf-Latn-ZZ","mti":"mti-Latn-ZZ","mtr":"mtr-Deva-IN","mua":"mua-Latn-CM","mur":"mur-Latn-ZZ","mus":"mus-Latn-US","mva":"mva-Latn-ZZ","mvn":"mvn-Latn-ZZ","mvy":"mvy-Arab-PK","mwk":"mwk-Latn-ML","mwr":"mwr-Deva-IN","mwv":"mwv-Latn-ID","mww":"mww-Hmnp-US","mxc":"mxc-Latn-ZW","mxm":"mxm-Latn-ZZ","my":"my-Mymr-MM","myk":"myk-Latn-ZZ","mym":"mym-Ethi-ZZ","myv":"myv-Cyrl-RU","myw":"myw-Latn-ZZ","myx":"myx-Latn-UG","myz":"myz-Mand-IR","mzk":"mzk-Latn-ZZ","mzm":"mzm-Latn-ZZ","mzn":"mzn-Arab-IR","mzp":"mzp-Latn-ZZ","mzw":"mzw-Latn-ZZ","mzz":"mzz-Latn-ZZ","na":"na-Latn-NR","nac":"nac-Latn-ZZ","naf":"naf-Latn-ZZ","nak":"nak-Latn-ZZ","nan":"nan-Hans-CN","nap":"nap-Latn-IT","naq":"naq-Latn-NA","nas":"nas-Latn-ZZ","nb":"nb-Latn-NO","nca":"nca-Latn-ZZ","nce":"nce-Latn-ZZ","ncf":"ncf-Latn-ZZ","nch":"nch-Latn-MX","nco":"nco-Latn-ZZ","ncu":"ncu-Latn-ZZ","nd":"nd-Latn-ZW","ndc":"ndc-Latn-MZ","nds":"nds-Latn-DE","ne":"ne-Deva-NP","neb":"neb-Latn-ZZ","new":"new-Deva-NP","nex":"nex-Latn-ZZ","nfr":"nfr-Latn-ZZ","ng":"ng-Latn-NA","nga":"nga-Latn-ZZ","ngb":"ngb-Latn-ZZ","ngl":"ngl-Latn-MZ","nhb":"nhb-Latn-ZZ","nhe":"nhe-Latn-MX","nhw":"nhw-Latn-MX","nif":"nif-Latn-ZZ","nii":"nii-Latn-ZZ","nij":"nij-Latn-ID","nin":"nin-Latn-ZZ","niu":"niu-Latn-NU","niy":"niy-Latn-ZZ","niz":"niz-Latn-ZZ","njo":"njo-Latn-IN","nkg":"nkg-Latn-ZZ","nko":"nko-Latn-ZZ","nl":"nl-Latn-NL","nmg":"nmg-Latn-CM","nmz":"nmz-Latn-ZZ","nn":"nn-Latn-NO","nnf":"nnf-Latn-ZZ","nnh":"nnh-Latn-CM","nnk":"nnk-Latn-ZZ","nnm":"nnm-Latn-ZZ","nnp":"nnp-Wcho-IN","no":"no-Latn-NO","nod":"nod-Lana-TH","noe":"noe-Deva-IN","non":"non-Runr-SE","nop":"nop-Latn-ZZ","nou":"nou-Latn-ZZ","nqo":"nqo-Nkoo-GN","nr":"nr-Latn-ZA","nrb":"nrb-Latn-ZZ","nsk":"nsk-Cans-CA","nsn":"nsn-Latn-ZZ","nso":"nso-Latn-ZA","nss":"nss-Latn-ZZ","ntm":"ntm-Latn-ZZ","ntr":"ntr-Latn-ZZ","nui":"nui-Latn-ZZ","nup":"nup-Latn-ZZ","nus":"nus-Latn-SS","nuv":"nuv-Latn-ZZ","nux":"nux-Latn-ZZ","nv":"nv-Latn-US","nwb":"nwb-Latn-ZZ","nxq":"nxq-Latn-CN","nxr":"nxr-Latn-ZZ","ny":"ny-Latn-MW","nym":"nym-Latn-TZ","nyn":"nyn-Latn-UG","nzi":"nzi-Latn-GH","oc":"oc-Latn-FR","ogc":"ogc-Latn-ZZ","okr":"okr-Latn-ZZ","okv":"okv-Latn-ZZ","om":"om-Latn-ET","ong":"ong-Latn-ZZ","onn":"onn-Latn-ZZ","ons":"ons-Latn-ZZ","opm":"opm-Latn-ZZ","or":"or-Orya-IN","oro":"oro-Latn-ZZ","oru":"oru-Arab-ZZ","os":"os-Cyrl-GE","osa":"osa-Osge-US","ota":"ota-Arab-ZZ","otk":"otk-Orkh-MN","ozm":"ozm-Latn-ZZ","pa":"pa-Guru-IN","pa-Arab":"pa-Arab-PK","pa-PK":"pa-Arab-PK","pag":"pag-Latn-PH","pal":"pal-Phli-IR","pal-Phlp":"pal-Phlp-CN","pam":"pam-Latn-PH","pap":"pap-Latn-AW","pau":"pau-Latn-PW","pbi":"pbi-Latn-ZZ","pcd":"pcd-Latn-FR","pcm":"pcm-Latn-NG","pdc":"pdc-Latn-US","pdt":"pdt-Latn-CA","ped":"ped-Latn-ZZ","peo":"peo-Xpeo-IR","pex":"pex-Latn-ZZ","pfl":"pfl-Latn-DE","phl":"phl-Arab-ZZ","phn":"phn-Phnx-LB","pil":"pil-Latn-ZZ","pip":"pip-Latn-ZZ","pka":"pka-Brah-IN","pko":"pko-Latn-KE","pl":"pl-Latn-PL","pla":"pla-Latn-ZZ","pms":"pms-Latn-IT","png":"png-Latn-ZZ","pnn":"pnn-Latn-ZZ","pnt":"pnt-Grek-GR","pon":"pon-Latn-FM","ppa":"ppa-Deva-IN","ppo":"ppo-Latn-ZZ","pra":"pra-Khar-PK","prd":"prd-Arab-IR","prg":"prg-Latn-001","ps":"ps-Arab-AF","pss":"pss-Latn-ZZ","pt":"pt-Latn-BR","ptp":"ptp-Latn-ZZ","puu":"puu-Latn-GA","pwa":"pwa-Latn-ZZ","qu":"qu-Latn-PE","quc":"quc-Latn-GT","qug":"qug-Latn-EC","rai":"rai-Latn-ZZ","raj":"raj-Deva-IN","rao":"rao-Latn-ZZ","rcf":"rcf-Latn-RE","rej":"rej-Latn-ID","rel":"rel-Latn-ZZ","res":"res-Latn-ZZ","rgn":"rgn-Latn-IT","rhg":"rhg-Arab-MM","ria":"ria-Latn-IN","rif":"rif-Tfng-MA","rif-NL":"rif-Latn-NL","rjs":"rjs-Deva-NP","rkt":"rkt-Beng-BD","rm":"rm-Latn-CH","rmf":"rmf-Latn-FI","rmo":"rmo-Latn-CH","rmt":"rmt-Arab-IR","rmu":"rmu-Latn-SE","rn":"rn-Latn-BI","rna":"rna-Latn-ZZ","rng":"rng-Latn-MZ","ro":"ro-Latn-RO","rob":"rob-Latn-ID","rof":"rof-Latn-TZ","roo":"roo-Latn-ZZ","rro":"rro-Latn-ZZ","rtm":"rtm-Latn-FJ","ru":"ru-Cyrl-RU","rue":"rue-Cyrl-UA","rug":"rug-Latn-SB","rw":"rw-Latn-RW","rwk":"rwk-Latn-TZ","rwo":"rwo-Latn-ZZ","ryu":"ryu-Kana-JP","sa":"sa-Deva-IN","saf":"saf-Latn-GH","sah":"sah-Cyrl-RU","saq":"saq-Latn-KE","sas":"sas-Latn-ID","sat":"sat-Olck-IN","sav":"sav-Latn-SN","saz":"saz-Saur-IN","sba":"sba-Latn-ZZ","sbe":"sbe-Latn-ZZ","sbp":"sbp-Latn-TZ","sc":"sc-Latn-IT","sck":"sck-Deva-IN","scl":"scl-Arab-ZZ","scn":"scn-Latn-IT","sco":"sco-Latn-GB","scs":"scs-Latn-CA","sd":"sd-Arab-PK","sd-Deva":"sd-Deva-IN","sd-Khoj":"sd-Khoj-IN","sd-Sind":"sd-Sind-IN","sdc":"sdc-Latn-IT","sdh":"sdh-Arab-IR","se":"se-Latn-NO","sef":"sef-Latn-CI","seh":"seh-Latn-MZ","sei":"sei-Latn-MX","ses":"ses-Latn-ML","sg":"sg-Latn-CF","sga":"sga-Ogam-IE","sgs":"sgs-Latn-LT","sgw":"sgw-Ethi-ZZ","sgz":"sgz-Latn-ZZ","shi":"shi-Tfng-MA","shk":"shk-Latn-ZZ","shn":"shn-Mymr-MM","shu":"shu-Arab-ZZ","si":"si-Sinh-LK","sid":"sid-Latn-ET","sig":"sig-Latn-ZZ","sil":"sil-Latn-ZZ","sim":"sim-Latn-ZZ","sjr":"sjr-Latn-ZZ","sk":"sk-Latn-SK","skc":"skc-Latn-ZZ","skr":"skr-Arab-PK","sks":"sks-Latn-ZZ","sl":"sl-Latn-SI","sld":"sld-Latn-ZZ","sli":"sli-Latn-PL","sll":"sll-Latn-ZZ","sly":"sly-Latn-ID","sm":"sm-Latn-WS","sma":"sma-Latn-SE","smj":"smj-Latn-SE","smn":"smn-Latn-FI","smp":"smp-Samr-IL","smq":"smq-Latn-ZZ","sms":"sms-Latn-FI","sn":"sn-Latn-ZW","snc":"snc-Latn-ZZ","snk":"snk-Latn-ML","snp":"snp-Latn-ZZ","snx":"snx-Latn-ZZ","sny":"sny-Latn-ZZ","so":"so-Latn-SO","sog":"sog-Sogd-UZ","sok":"sok-Latn-ZZ","soq":"soq-Latn-ZZ","sou":"sou-Thai-TH","soy":"soy-Latn-ZZ","spd":"spd-Latn-ZZ","spl":"spl-Latn-ZZ","sps":"sps-Latn-ZZ","sq":"sq-Latn-AL","sr":"sr-Cyrl-RS","sr-ME":"sr-Latn-ME","sr-RO":"sr-Latn-RO","sr-RU":"sr-Latn-RU","sr-TR":"sr-Latn-TR","srb":"srb-Sora-IN","srn":"srn-Latn-SR","srr":"srr-Latn-SN","srx":"srx-Deva-IN","ss":"ss-Latn-ZA","ssd":"ssd-Latn-ZZ","ssg":"ssg-Latn-ZZ","ssy":"ssy-Latn-ER","st":"st-Latn-ZA","stk":"stk-Latn-ZZ","stq":"stq-Latn-DE","su":"su-Latn-ID","sua":"sua-Latn-ZZ","sue":"sue-Latn-ZZ","suk":"suk-Latn-TZ","sur":"sur-Latn-ZZ","sus":"sus-Latn-GN","sv":"sv-Latn-SE","sw":"sw-Latn-TZ","swb":"swb-Arab-YT","swc":"swc-Latn-CD","swg":"swg-Latn-DE","swp":"swp-Latn-ZZ","swv":"swv-Deva-IN","sxn":"sxn-Latn-ID","sxw":"sxw-Latn-ZZ","syl":"syl-Beng-BD","syr":"syr-Syrc-IQ","szl":"szl-Latn-PL","ta":"ta-Taml-IN","taj":"taj-Deva-NP","tal":"tal-Latn-ZZ","tan":"tan-Latn-ZZ","taq":"taq-Latn-ZZ","tbc":"tbc-Latn-ZZ","tbd":"tbd-Latn-ZZ","tbf":"tbf-Latn-ZZ","tbg":"tbg-Latn-ZZ","tbo":"tbo-Latn-ZZ","tbw":"tbw-Latn-PH","tbz":"tbz-Latn-ZZ","tci":"tci-Latn-ZZ","tcy":"tcy-Knda-IN","tdd":"tdd-Tale-CN","tdg":"tdg-Deva-NP","tdh":"tdh-Deva-NP","tdu":"tdu-Latn-MY","te":"te-Telu-IN","ted":"ted-Latn-ZZ","tem":"tem-Latn-SL","teo":"teo-Latn-UG","tet":"tet-Latn-TL","tfi":"tfi-Latn-ZZ","tg":"tg-Cyrl-TJ","tg-Arab":"tg-Arab-PK","tg-PK":"tg-Arab-PK","tgc":"tgc-Latn-ZZ","tgo":"tgo-Latn-ZZ","tgu":"tgu-Latn-ZZ","th":"th-Thai-TH","thl":"thl-Deva-NP","thq":"thq-Deva-NP","thr":"thr-Deva-NP","ti":"ti-Ethi-ET","tif":"tif-Latn-ZZ","tig":"tig-Ethi-ER","tik":"tik-Latn-ZZ","tim":"tim-Latn-ZZ","tio":"tio-Latn-ZZ","tiv":"tiv-Latn-NG","tk":"tk-Latn-TM","tkl":"tkl-Latn-TK","tkr":"tkr-Latn-AZ","tkt":"tkt-Deva-NP","tl":"tl-Latn-PH","tlf":"tlf-Latn-ZZ","tlx":"tlx-Latn-ZZ","tly":"tly-Latn-AZ","tmh":"tmh-Latn-NE","tmy":"tmy-Latn-ZZ","tn":"tn-Latn-ZA","tnh":"tnh-Latn-ZZ","to":"to-Latn-TO","tof":"tof-Latn-ZZ","tog":"tog-Latn-MW","toq":"toq-Latn-ZZ","tpi":"tpi-Latn-PG","tpm":"tpm-Latn-ZZ","tpz":"tpz-Latn-ZZ","tqo":"tqo-Latn-ZZ","tr":"tr-Latn-TR","tru":"tru-Latn-TR","trv":"trv-Latn-TW","trw":"trw-Arab-PK","ts":"ts-Latn-ZA","tsd":"tsd-Grek-GR","tsf":"tsf-Deva-NP","tsg":"tsg-Latn-PH","tsj":"tsj-Tibt-BT","tsw":"tsw-Latn-ZZ","tt":"tt-Cyrl-RU","ttd":"ttd-Latn-ZZ","tte":"tte-Latn-ZZ","ttj":"ttj-Latn-UG","ttr":"ttr-Latn-ZZ","tts":"tts-Thai-TH","ttt":"ttt-Latn-AZ","tuh":"tuh-Latn-ZZ","tul":"tul-Latn-ZZ","tum":"tum-Latn-MW","tuq":"tuq-Latn-ZZ","tvd":"tvd-Latn-ZZ","tvl":"tvl-Latn-TV","tvu":"tvu-Latn-ZZ","twh":"twh-Latn-ZZ","twq":"twq-Latn-NE","txg":"txg-Tang-CN","ty":"ty-Latn-PF","tya":"tya-Latn-ZZ","tyv":"tyv-Cyrl-RU","tzm":"tzm-Latn-MA","ubu":"ubu-Latn-ZZ","udm":"udm-Cyrl-RU","ug":"ug-Arab-CN","ug-Cyrl":"ug-Cyrl-KZ","ug-KZ":"ug-Cyrl-KZ","ug-MN":"ug-Cyrl-MN","uga":"uga-Ugar-SY","uk":"uk-Cyrl-UA","uli":"uli-Latn-FM","umb":"umb-Latn-AO","und":"en-Latn-US","und-002":"en-Latn-NG","und-003":"en-Latn-US","und-005":"pt-Latn-BR","und-009":"en-Latn-AU","und-011":"en-Latn-NG","und-013":"es-Latn-MX","und-014":"sw-Latn-TZ","und-015":"ar-Arab-EG","und-017":"sw-Latn-CD","und-018":"en-Latn-ZA","und-019":"en-Latn-US","und-021":"en-Latn-US","und-029":"es-Latn-CU","und-030":"zh-Hans-CN","und-034":"hi-Deva-IN","und-035":"id-Latn-ID","und-039":"it-Latn-IT","und-053":"en-Latn-AU","und-054":"en-Latn-PG","und-057":"en-Latn-GU","und-061":"sm-Latn-WS","und-142":"zh-Hans-CN","und-143":"uz-Latn-UZ","und-145":"ar-Arab-SA","und-150":"ru-Cyrl-RU","und-151":"ru-Cyrl-RU","und-154":"en-Latn-GB","und-155":"de-Latn-DE","und-202":"en-Latn-NG","und-419":"es-Latn-419","und-AD":"ca-Latn-AD","und-Adlm":"ff-Adlm-GN","und-AE":"ar-Arab-AE","und-AF":"fa-Arab-AF","und-Aghb":"lez-Aghb-RU","und-Ahom":"aho-Ahom-IN","und-AL":"sq-Latn-AL","und-AM":"hy-Armn-AM","und-AO":"pt-Latn-AO","und-AQ":"und-Latn-AQ","und-AR":"es-Latn-AR","und-Arab":"ar-Arab-EG","und-Arab-CC":"ms-Arab-CC","und-Arab-CN":"ug-Arab-CN","und-Arab-GB":"ks-Arab-GB","und-Arab-ID":"ms-Arab-ID","und-Arab-IN":"ur-Arab-IN","und-Arab-KH":"cja-Arab-KH","und-Arab-MM":"rhg-Arab-MM","und-Arab-MN":"kk-Arab-MN","und-Arab-MU":"ur-Arab-MU","und-Arab-NG":"ha-Arab-NG","und-Arab-PK":"ur-Arab-PK","und-Arab-TG":"apd-Arab-TG","und-Arab-TH":"mfa-Arab-TH","und-Arab-TJ":"fa-Arab-TJ","und-Arab-TR":"az-Arab-TR","und-Arab-YT":"swb-Arab-YT","und-Armi":"arc-Armi-IR","und-Armn":"hy-Armn-AM","und-AS":"sm-Latn-AS","und-AT":"de-Latn-AT","und-Avst":"ae-Avst-IR","und-AW":"nl-Latn-AW","und-AX":"sv-Latn-AX","und-AZ":"az-Latn-AZ","und-BA":"bs-Latn-BA","und-Bali":"ban-Bali-ID","und-Bamu":"bax-Bamu-CM","und-Bass":"bsq-Bass-LR","und-Batk":"bbc-Batk-ID","und-BD":"bn-Beng-BD","und-BE":"nl-Latn-BE","und-Beng":"bn-Beng-BD","und-BF":"fr-Latn-BF","und-BG":"bg-Cyrl-BG","und-BH":"ar-Arab-BH","und-Bhks":"sa-Bhks-IN","und-BI":"rn-Latn-BI","und-BJ":"fr-Latn-BJ","und-BL":"fr-Latn-BL","und-BN":"ms-Latn-BN","und-BO":"es-Latn-BO","und-Bopo":"zh-Bopo-TW","und-BQ":"pap-Latn-BQ","und-BR":"pt-Latn-BR","und-Brah":"pka-Brah-IN","und-Brai":"fr-Brai-FR","und-BT":"dz-Tibt-BT","und-Bugi":"bug-Bugi-ID","und-Buhd":"bku-Buhd-PH","und-BV":"und-Latn-BV","und-BY":"be-Cyrl-BY","und-Cakm":"ccp-Cakm-BD","und-Cans":"cr-Cans-CA","und-Cari":"xcr-Cari-TR","und-CD":"sw-Latn-CD","und-CF":"fr-Latn-CF","und-CG":"fr-Latn-CG","und-CH":"de-Latn-CH","und-Cham":"cjm-Cham-VN","und-Cher":"chr-Cher-US","und-Chrs":"xco-Chrs-UZ","und-CI":"fr-Latn-CI","und-CL":"es-Latn-CL","und-CM":"fr-Latn-CM","und-CN":"zh-Hans-CN","und-CO":"es-Latn-CO","und-Copt":"cop-Copt-EG","und-CP":"und-Latn-CP","und-Cprt":"grc-Cprt-CY","und-CR":"es-Latn-CR","und-CU":"es-Latn-CU","und-CV":"pt-Latn-CV","und-CW":"pap-Latn-CW","und-CY":"el-Grek-CY","und-Cyrl":"ru-Cyrl-RU","und-Cyrl-AL":"mk-Cyrl-AL","und-Cyrl-BA":"sr-Cyrl-BA","und-Cyrl-GE":"os-Cyrl-GE","und-Cyrl-GR":"mk-Cyrl-GR","und-Cyrl-MD":"uk-Cyrl-MD","und-Cyrl-RO":"bg-Cyrl-RO","und-Cyrl-SK":"uk-Cyrl-SK","und-Cyrl-TR":"kbd-Cyrl-TR","und-Cyrl-XK":"sr-Cyrl-XK","und-CZ":"cs-Latn-CZ","und-DE":"de-Latn-DE","und-Deva":"hi-Deva-IN","und-Deva-BT":"ne-Deva-BT","und-Deva-FJ":"hif-Deva-FJ","und-Deva-MU":"bho-Deva-MU","und-Deva-PK":"btv-Deva-PK","und-Diak":"dv-Diak-MV","und-DJ":"aa-Latn-DJ","und-DK":"da-Latn-DK","und-DO":"es-Latn-DO","und-Dogr":"doi-Dogr-IN","und-Dupl":"fr-Dupl-FR","und-DZ":"ar-Arab-DZ","und-EA":"es-Latn-EA","und-EC":"es-Latn-EC","und-EE":"et-Latn-EE","und-EG":"ar-Arab-EG","und-Egyp":"egy-Egyp-EG","und-EH":"ar-Arab-EH","und-Elba":"sq-Elba-AL","und-Elym":"arc-Elym-IR","und-ER":"ti-Ethi-ER","und-ES":"es-Latn-ES","und-ET":"am-Ethi-ET","und-Ethi":"am-Ethi-ET","und-EU":"en-Latn-IE","und-EZ":"de-Latn-EZ","und-FI":"fi-Latn-FI","und-FO":"fo-Latn-FO","und-FR":"fr-Latn-FR","und-GA":"fr-Latn-GA","und-GE":"ka-Geor-GE","und-Geor":"ka-Geor-GE","und-GF":"fr-Latn-GF","und-GH":"ak-Latn-GH","und-GL":"kl-Latn-GL","und-Glag":"cu-Glag-BG","und-GN":"fr-Latn-GN","und-Gong":"wsg-Gong-IN","und-Gonm":"esg-Gonm-IN","und-Goth":"got-Goth-UA","und-GP":"fr-Latn-GP","und-GQ":"es-Latn-GQ","und-GR":"el-Grek-GR","und-Gran":"sa-Gran-IN","und-Grek":"el-Grek-GR","und-Grek-TR":"bgx-Grek-TR","und-GS":"und-Latn-GS","und-GT":"es-Latn-GT","und-Gujr":"gu-Gujr-IN","und-Guru":"pa-Guru-IN","und-GW":"pt-Latn-GW","und-Hanb":"zh-Hanb-TW","und-Hang":"ko-Hang-KR","und-Hani":"zh-Hani-CN","und-Hano":"hnn-Hano-PH","und-Hans":"zh-Hans-CN","und-Hant":"zh-Hant-TW","und-Hatr":"mis-Hatr-IQ","und-Hebr":"he-Hebr-IL","und-Hebr-CA":"yi-Hebr-CA","und-Hebr-GB":"yi-Hebr-GB","und-Hebr-SE":"yi-Hebr-SE","und-Hebr-UA":"yi-Hebr-UA","und-Hebr-US":"yi-Hebr-US","und-Hira":"ja-Hira-JP","und-HK":"zh-Hant-HK","und-Hluw":"hlu-Hluw-TR","und-HM":"und-Latn-HM","und-Hmng":"hnj-Hmng-LA","und-Hmnp":"mww-Hmnp-US","und-HN":"es-Latn-HN","und-HR":"hr-Latn-HR","und-HT":"ht-Latn-HT","und-HU":"hu-Latn-HU","und-Hung":"hu-Hung-HU","und-IC":"es-Latn-IC","und-ID":"id-Latn-ID","und-IL":"he-Hebr-IL","und-IN":"hi-Deva-IN","und-IQ":"ar-Arab-IQ","und-IR":"fa-Arab-IR","und-IS":"is-Latn-IS","und-IT":"it-Latn-IT","und-Ital":"ett-Ital-IT","und-Jamo":"ko-Jamo-KR","und-Java":"jv-Java-ID","und-JO":"ar-Arab-JO","und-JP":"ja-Jpan-JP","und-Jpan":"ja-Jpan-JP","und-Kali":"eky-Kali-MM","und-Kana":"ja-Kana-JP","und-KE":"sw-Latn-KE","und-KG":"ky-Cyrl-KG","und-KH":"km-Khmr-KH","und-Khar":"pra-Khar-PK","und-Khmr":"km-Khmr-KH","und-Khoj":"sd-Khoj-IN","und-Kits":"zkt-Kits-CN","und-KM":"ar-Arab-KM","und-Knda":"kn-Knda-IN","und-Kore":"ko-Kore-KR","und-KP":"ko-Kore-KP","und-KR":"ko-Kore-KR","und-Kthi":"bho-Kthi-IN","und-KW":"ar-Arab-KW","und-KZ":"ru-Cyrl-KZ","und-LA":"lo-Laoo-LA","und-Lana":"nod-Lana-TH","und-Laoo":"lo-Laoo-LA","und-Latn-AF":"tk-Latn-AF","und-Latn-AM":"ku-Latn-AM","und-Latn-CN":"za-Latn-CN","und-Latn-CY":"tr-Latn-CY","und-Latn-DZ":"fr-Latn-DZ","und-Latn-ET":"en-Latn-ET","und-Latn-GE":"ku-Latn-GE","und-Latn-IR":"tk-Latn-IR","und-Latn-KM":"fr-Latn-KM","und-Latn-MA":"fr-Latn-MA","und-Latn-MK":"sq-Latn-MK","und-Latn-MM":"kac-Latn-MM","und-Latn-MO":"pt-Latn-MO","und-Latn-MR":"fr-Latn-MR","und-Latn-RU":"krl-Latn-RU","und-Latn-SY":"fr-Latn-SY","und-Latn-TN":"fr-Latn-TN","und-Latn-TW":"trv-Latn-TW","und-Latn-UA":"pl-Latn-UA","und-LB":"ar-Arab-LB","und-Lepc":"lep-Lepc-IN","und-LI":"de-Latn-LI","und-Limb":"lif-Limb-IN","und-Lina":"lab-Lina-GR","und-Linb":"grc-Linb-GR","und-Lisu":"lis-Lisu-CN","und-LK":"si-Sinh-LK","und-LS":"st-Latn-LS","und-LT":"lt-Latn-LT","und-LU":"fr-Latn-LU","und-LV":"lv-Latn-LV","und-LY":"ar-Arab-LY","und-Lyci":"xlc-Lyci-TR","und-Lydi":"xld-Lydi-TR","und-MA":"ar-Arab-MA","und-Mahj":"hi-Mahj-IN","und-Maka":"mak-Maka-ID","und-Mand":"myz-Mand-IR","und-Mani":"xmn-Mani-CN","und-Marc":"bo-Marc-CN","und-MC":"fr-Latn-MC","und-MD":"ro-Latn-MD","und-ME":"sr-Latn-ME","und-Medf":"mis-Medf-NG","und-Mend":"men-Mend-SL","und-Merc":"xmr-Merc-SD","und-Mero":"xmr-Mero-SD","und-MF":"fr-Latn-MF","und-MG":"mg-Latn-MG","und-MK":"mk-Cyrl-MK","und-ML":"bm-Latn-ML","und-Mlym":"ml-Mlym-IN","und-MM":"my-Mymr-MM","und-MN":"mn-Cyrl-MN","und-MO":"zh-Hant-MO","und-Modi":"mr-Modi-IN","und-Mong":"mn-Mong-CN","und-MQ":"fr-Latn-MQ","und-MR":"ar-Arab-MR","und-Mroo":"mro-Mroo-BD","und-MT":"mt-Latn-MT","und-Mtei":"mni-Mtei-IN","und-MU":"mfe-Latn-MU","und-Mult":"skr-Mult-PK","und-MV":"dv-Thaa-MV","und-MX":"es-Latn-MX","und-MY":"ms-Latn-MY","und-Mymr":"my-Mymr-MM","und-Mymr-IN":"kht-Mymr-IN","und-Mymr-TH":"mnw-Mymr-TH","und-MZ":"pt-Latn-MZ","und-NA":"af-Latn-NA","und-Nand":"sa-Nand-IN","und-Narb":"xna-Narb-SA","und-Nbat":"arc-Nbat-JO","und-NC":"fr-Latn-NC","und-NE":"ha-Latn-NE","und-Newa":"new-Newa-NP","und-NI":"es-Latn-NI","und-Nkoo":"man-Nkoo-GN","und-NL":"nl-Latn-NL","und-NO":"nb-Latn-NO","und-NP":"ne-Deva-NP","und-Nshu":"zhx-Nshu-CN","und-Ogam":"sga-Ogam-IE","und-Olck":"sat-Olck-IN","und-OM":"ar-Arab-OM","und-Orkh":"otk-Orkh-MN","und-Orya":"or-Orya-IN","und-Osge":"osa-Osge-US","und-Osma":"so-Osma-SO","und-PA":"es-Latn-PA","und-Palm":"arc-Palm-SY","und-Pauc":"ctd-Pauc-MM","und-PE":"es-Latn-PE","und-Perm":"kv-Perm-RU","und-PF":"fr-Latn-PF","und-PG":"tpi-Latn-PG","und-PH":"fil-Latn-PH","und-Phag":"lzh-Phag-CN","und-Phli":"pal-Phli-IR","und-Phlp":"pal-Phlp-CN","und-Phnx":"phn-Phnx-LB","und-PK":"ur-Arab-PK","und-PL":"pl-Latn-PL","und-Plrd":"hmd-Plrd-CN","und-PM":"fr-Latn-PM","und-PR":"es-Latn-PR","und-Prti":"xpr-Prti-IR","und-PS":"ar-Arab-PS","und-PT":"pt-Latn-PT","und-PW":"pau-Latn-PW","und-PY":"gn-Latn-PY","und-QA":"ar-Arab-QA","und-QO":"en-Latn-DG","und-RE":"fr-Latn-RE","und-Rjng":"rej-Rjng-ID","und-RO":"ro-Latn-RO","und-Rohg":"rhg-Rohg-MM","und-RS":"sr-Cyrl-RS","und-RU":"ru-Cyrl-RU","und-Runr":"non-Runr-SE","und-RW":"rw-Latn-RW","und-SA":"ar-Arab-SA","und-Samr":"smp-Samr-IL","und-Sarb":"xsa-Sarb-YE","und-Saur":"saz-Saur-IN","und-SC":"fr-Latn-SC","und-SD":"ar-Arab-SD","und-SE":"sv-Latn-SE","und-Sgnw":"ase-Sgnw-US","und-Shaw":"en-Shaw-GB","und-Shrd":"sa-Shrd-IN","und-SI":"sl-Latn-SI","und-Sidd":"sa-Sidd-IN","und-Sind":"sd-Sind-IN","und-Sinh":"si-Sinh-LK","und-SJ":"nb-Latn-SJ","und-SK":"sk-Latn-SK","und-SM":"it-Latn-SM","und-SN":"fr-Latn-SN","und-SO":"so-Latn-SO","und-Sogd":"sog-Sogd-UZ","und-Sogo":"sog-Sogo-UZ","und-Sora":"srb-Sora-IN","und-Soyo":"cmg-Soyo-MN","und-SR":"nl-Latn-SR","und-ST":"pt-Latn-ST","und-Sund":"su-Sund-ID","und-SV":"es-Latn-SV","und-SY":"ar-Arab-SY","und-Sylo":"syl-Sylo-BD","und-Syrc":"syr-Syrc-IQ","und-Tagb":"tbw-Tagb-PH","und-Takr":"doi-Takr-IN","und-Tale":"tdd-Tale-CN","und-Talu":"khb-Talu-CN","und-Taml":"ta-Taml-IN","und-Tang":"txg-Tang-CN","und-Tavt":"blt-Tavt-VN","und-TD":"fr-Latn-TD","und-Telu":"te-Telu-IN","und-TF":"fr-Latn-TF","und-Tfng":"zgh-Tfng-MA","und-TG":"fr-Latn-TG","und-Tglg":"fil-Tglg-PH","und-TH":"th-Thai-TH","und-Thaa":"dv-Thaa-MV","und-Thai":"th-Thai-TH","und-Thai-CN":"lcp-Thai-CN","und-Thai-KH":"kdt-Thai-KH","und-Thai-LA":"kdt-Thai-LA","und-Tibt":"bo-Tibt-CN","und-Tirh":"mai-Tirh-IN","und-TJ":"tg-Cyrl-TJ","und-TK":"tkl-Latn-TK","und-TL":"pt-Latn-TL","und-TM":"tk-Latn-TM","und-TN":"ar-Arab-TN","und-TO":"to-Latn-TO","und-TR":"tr-Latn-TR","und-TV":"tvl-Latn-TV","und-TW":"zh-Hant-TW","und-TZ":"sw-Latn-TZ","und-UA":"uk-Cyrl-UA","und-UG":"sw-Latn-UG","und-Ugar":"uga-Ugar-SY","und-UY":"es-Latn-UY","und-UZ":"uz-Latn-UZ","und-VA":"it-Latn-VA","und-Vaii":"vai-Vaii-LR","und-VE":"es-Latn-VE","und-VN":"vi-Latn-VN","und-VU":"bi-Latn-VU","und-Wara":"hoc-Wara-IN","und-Wcho":"nnp-Wcho-IN","und-WF":"fr-Latn-WF","und-WS":"sm-Latn-WS","und-XK":"sq-Latn-XK","und-Xpeo":"peo-Xpeo-IR","und-Xsux":"akk-Xsux-IQ","und-YE":"ar-Arab-YE","und-Yezi":"ku-Yezi-GE","und-Yiii":"ii-Yiii-CN","und-YT":"fr-Latn-YT","und-Zanb":"cmg-Zanb-MN","und-ZW":"sn-Latn-ZW","unr":"unr-Beng-IN","unr-Deva":"unr-Deva-NP","unr-NP":"unr-Deva-NP","unx":"unx-Beng-IN","uok":"uok-Latn-ZZ","ur":"ur-Arab-PK","uri":"uri-Latn-ZZ","urt":"urt-Latn-ZZ","urw":"urw-Latn-ZZ","usa":"usa-Latn-ZZ","uth":"uth-Latn-ZZ","utr":"utr-Latn-ZZ","uvh":"uvh-Latn-ZZ","uvl":"uvl-Latn-ZZ","uz":"uz-Latn-UZ","uz-AF":"uz-Arab-AF","uz-Arab":"uz-Arab-AF","uz-CN":"uz-Cyrl-CN","vag":"vag-Latn-ZZ","vai":"vai-Vaii-LR","van":"van-Latn-ZZ","ve":"ve-Latn-ZA","vec":"vec-Latn-IT","vep":"vep-Latn-RU","vi":"vi-Latn-VN","vic":"vic-Latn-SX","viv":"viv-Latn-ZZ","vls":"vls-Latn-BE","vmf":"vmf-Latn-DE","vmw":"vmw-Latn-MZ","vo":"vo-Latn-001","vot":"vot-Latn-RU","vro":"vro-Latn-EE","vun":"vun-Latn-TZ","vut":"vut-Latn-ZZ","wa":"wa-Latn-BE","wae":"wae-Latn-CH","waj":"waj-Latn-ZZ","wal":"wal-Ethi-ET","wan":"wan-Latn-ZZ","war":"war-Latn-PH","wbp":"wbp-Latn-AU","wbq":"wbq-Telu-IN","wbr":"wbr-Deva-IN","wci":"wci-Latn-ZZ","wer":"wer-Latn-ZZ","wgi":"wgi-Latn-ZZ","whg":"whg-Latn-ZZ","wib":"wib-Latn-ZZ","wiu":"wiu-Latn-ZZ","wiv":"wiv-Latn-ZZ","wja":"wja-Latn-ZZ","wji":"wji-Latn-ZZ","wls":"wls-Latn-WF","wmo":"wmo-Latn-ZZ","wnc":"wnc-Latn-ZZ","wni":"wni-Arab-KM","wnu":"wnu-Latn-ZZ","wo":"wo-Latn-SN","wob":"wob-Latn-ZZ","wos":"wos-Latn-ZZ","wrs":"wrs-Latn-ZZ","wsg":"wsg-Gong-IN","wsk":"wsk-Latn-ZZ","wtm":"wtm-Deva-IN","wuu":"wuu-Hans-CN","wuv":"wuv-Latn-ZZ","wwa":"wwa-Latn-ZZ","xav":"xav-Latn-BR","xbi":"xbi-Latn-ZZ","xco":"xco-Chrs-UZ","xcr":"xcr-Cari-TR","xes":"xes-Latn-ZZ","xh":"xh-Latn-ZA","xla":"xla-Latn-ZZ","xlc":"xlc-Lyci-TR","xld":"xld-Lydi-TR","xmf":"xmf-Geor-GE","xmn":"xmn-Mani-CN","xmr":"xmr-Merc-SD","xna":"xna-Narb-SA","xnr":"xnr-Deva-IN","xog":"xog-Latn-UG","xon":"xon-Latn-ZZ","xpr":"xpr-Prti-IR","xrb":"xrb-Latn-ZZ","xsa":"xsa-Sarb-YE","xsi":"xsi-Latn-ZZ","xsm":"xsm-Latn-ZZ","xsr":"xsr-Deva-NP","xwe":"xwe-Latn-ZZ","yam":"yam-Latn-ZZ","yao":"yao-Latn-MZ","yap":"yap-Latn-FM","yas":"yas-Latn-ZZ","yat":"yat-Latn-ZZ","yav":"yav-Latn-CM","yay":"yay-Latn-ZZ","yaz":"yaz-Latn-ZZ","yba":"yba-Latn-ZZ","ybb":"ybb-Latn-CM","yby":"yby-Latn-ZZ","yer":"yer-Latn-ZZ","ygr":"ygr-Latn-ZZ","ygw":"ygw-Latn-ZZ","yi":"yi-Hebr-001","yko":"yko-Latn-ZZ","yle":"yle-Latn-ZZ","ylg":"ylg-Latn-ZZ","yll":"yll-Latn-ZZ","yml":"yml-Latn-ZZ","yo":"yo-Latn-NG","yon":"yon-Latn-ZZ","yrb":"yrb-Latn-ZZ","yre":"yre-Latn-ZZ","yrl":"yrl-Latn-BR","yss":"yss-Latn-ZZ","yua":"yua-Latn-MX","yue":"yue-Hant-HK","yue-CN":"yue-Hans-CN","yue-Hans":"yue-Hans-CN","yuj":"yuj-Latn-ZZ","yut":"yut-Latn-ZZ","yuw":"yuw-Latn-ZZ","za":"za-Latn-CN","zag":"zag-Latn-SD","zdj":"zdj-Arab-KM","zea":"zea-Latn-NL","zgh":"zgh-Tfng-MA","zh":"zh-Hans-CN","zh-AU":"zh-Hant-AU","zh-BN":"zh-Hant-BN","zh-Bopo":"zh-Bopo-TW","zh-GB":"zh-Hant-GB","zh-GF":"zh-Hant-GF","zh-Hanb":"zh-Hanb-TW","zh-Hant":"zh-Hant-TW","zh-HK":"zh-Hant-HK","zh-ID":"zh-Hant-ID","zh-MO":"zh-Hant-MO","zh-PA":"zh-Hant-PA","zh-PF":"zh-Hant-PF","zh-PH":"zh-Hant-PH","zh-SR":"zh-Hant-SR","zh-TH":"zh-Hant-TH","zh-TW":"zh-Hant-TW","zh-US":"zh-Hant-US","zh-VN":"zh-Hant-VN","zhx":"zhx-Nshu-CN","zia":"zia-Latn-ZZ","zkt":"zkt-Kits-CN","zlm":"zlm-Latn-TG","zmi":"zmi-Latn-MY","zne":"zne-Latn-ZZ","zu":"zu-Latn-ZA","zza":"zza-Latn-TR"}}}' ); }, 69933: function (e) { "use strict"; e.exports = JSON.parse( '{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}' ); }, 33600: function (e) { "use strict"; e.exports = JSON.parse( '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' ); }, 59323: function (e) { "use strict"; e.exports = JSON.parse( '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' ); }, 29591: function (e) { "use strict"; e.exports = JSON.parse( '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' ); }, 2586: function (e) { "use strict"; e.exports = JSON.parse( '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' ); }, 42968: function (e) { "use strict"; e.exports = JSON.parse( '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' ); }, 23042: function (e) { "use strict"; e.exports = JSON.parse( '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' ); }, 60317: function (e) { "use strict"; e.exports = JSON.parse( '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' ); }, 51373: function (e) { "use strict"; e.exports = JSON.parse( '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' ); }, 5778: function (e) { "use strict"; e.exports = JSON.parse( '{"Play":"تشغيل","Pause":"إيقاف","Current Time":"الوقت الحالي","Duration":"مدة","Remaining Time":"الوقت المتبقي","Stream Type":"نوع التيار","LIVE":"مباشر","Loaded":"تم التحميل","Progress":"التقدم","Fullscreen":"ملء الشاشة","Exit Fullscreen":"تعطيل ملء الشاشة","Mute":"صامت","Unmute":"غير الصامت","Playback Rate":"معدل التشغيل","Subtitles":"الترجمة","subtitles off":"إيقاف الترجمة","Captions":"التعليقات","captions off":"إيقاف التعليقات","Chapters":"فصول","You aborted the media playback":"لقد ألغيت تشغيل الفيديو","A network error caused the media download to fail part-way.":"تسبب خطأ في الشبكة بفشل تحميل الفيديو بالكامل.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"لا يمكن تحميل الفيديو بسبب فشل في الخادوم أو الشبكة ، أو فشل بسبب عدم إمكانية قراءة تنسيق الفيديو.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"تم إيقاف تشغيل الفيديو بسبب مشكلة فساد أو لأن الفيديو المستخدم يستخدم ميزات غير مدعومة من متصفحك.","No compatible source was found for this media.":"فشل العثور على أي مصدر متوافق مع هذا الفيديو.","Play Video":"تشغيل الفيديو","Close":"أغلق","Modal Window":"نافذة مشروطة","This is a modal window":"هذه نافذة مشروطة","This modal can be closed by pressing the Escape key or activating the close button.":"يمكن غلق هذه النافذة المشروطة عن طريق الضغط على زر الخروج أو تفعيل زر الإغلاق",", opens captions settings dialog":", تفتح نافذة خيارات التعليقات",", opens subtitles settings dialog":", تفتح نافذة خيارات الترجمة",", selected":", مختار","Audio Player":"مشغل الصوت","Video Player":"مشغل الفيديو","Replay":"إعادة التشغيل","Seek to live, currently behind live":"ذهاب إلى نقطة البث المباشر، متأخر عن البث المباشر حاليًا","Seek to live, currently playing live":"ذهاب إلى نقطة البث المباشر، البث المباشر قيد التشغيل حاليًا","Progress Bar":"شريط التقدم","progress bar timing: currentTime={1} duration={2}":"{1} من {2}","Descriptions":"الأوصاف","descriptions off":"إخفاء الأوصاف","Audio Track":"المسار الصوتي","Volume Level":"مستوى الصوت","The media is encrypted and we do not have the keys to decrypt it.":"الوسائط مشفرة وليس لدينا الرموز اللازمة لفك شفرتها.","Close Modal Dialog":"إغلاق مربع الحوار المشروط",", opens descriptions settings dialog":"، يفتح مربع حوار إعدادات الأوصاف","captions settings":"إعدادات التعليقات التوضيحية","subtitles settings":"إعدادات الترجمات","descriptions settings":"إعدادات الأوصاف","Text":"النص","White":"أبيض","Black":"أسود","Red":"أحمر","Green":"أخضر","Blue":"أزرق","Yellow":"أصفر","Magenta":"أرجواني","Cyan":"أزرق سماوي","Background":"الخلفية","Window":"نافذة","Transparent":"شفاف","Semi-Transparent":"نصف شفاف","Opaque":"معتم","Font Size":"حجم الخط","Text Edge Style":"نمط حواف النص","None":"لا شيء","Raised":"بارز","Depressed":"منخفض","Uniform":"منتظم","Dropshadow":"ظل خلفي","Font Family":"عائلة الخطوط","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"إعادة الضبط","restore all settings to the default values":"استعادة كل الإعدادات إلى القيم الافتراضية","Done":"تم","Caption Settings Dialog":"مربع حوار إعدادات التعليقات التوضيحية","Beginning of dialog window. Escape will cancel and close the window.":"بداية نافذة مربع حوار. الضغط على زر \\"Escape\\" سيؤدي إلى الإلغاء وإغلاق النافذة.","End of dialog window.":"نهاية نافذة مربع حوار.","{1} is loading.":"{1} قيد التحميل.","Exit Picture-in-Picture":"خرج من وضع صورة داخل صورة","Picture-in-Picture":"صورة داخل صورة","No content":"لا يوجد محتوى","Color":"اللون","Opacity":"معدل الشفافية","Text Background":"خلفية النص","Caption Area Background":"خلفية منطقة التسمية التوضيحية"}' ); }, 83854: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"Audio Přehravač","Video Player":"Video Přehravač","Play":"Přehrát","Pause":"Pozastavit","Replay":"Přehrát znovu","Current Time":"Aktuální čas","Duration":"Doba trvání","Remaining Time":"Zbývající čas","Stream Type":"Typ streamu","LIVE":"ŽIVĚ","Loaded":"Načteno","Progress":"Stav","Progress Bar":"Ukazatel průběhu","progress bar timing: currentTime={1} duration={2}":"{1} z {2}","Fullscreen":"Celá obrazovka","Exit Fullscreen":"Běžné zobrazení","Mute":"Ztlumit","Unmute":"Zrušit ztlumení","Playback Rate":"Rychlost přehrávání","Subtitles":"Titulky","subtitles off":"Bez titulků","Captions":"Popisky","captions off":"Popisky vypnuté","Chapters":"Kapitoly","Descriptions":"Popisy","descriptions off":"Bez popisů","Audio Track":"Zvuková stopa","Volume Level":"Hlasitost","You aborted the media playback":"Přehrávání videa bylo přerušeno.","A network error caused the media download to fail part-way.":"Video nemohlo být načteno kvůli chybě v síti.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video nemohlo být načteno, buď kvůli chybě serveru, sítě nebo proto, že daný formát není podporován.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Váš prohlížeč nepodporuje tento formát videa.","No compatible source was found for this media.":"Nevalidní zadaný zdroj videa.","The media is encrypted and we do not have the keys to decrypt it.":"Chyba při dešifrování videa.","Play Video":"Přehrát video","Close":"Zavřit","Close Modal Dialog":"Zavřít okno","Modal Window":"Modální okno","This is a modal window":"Toto je modální okno","This modal can be closed by pressing the Escape key or activating the close button.":"Toto okno se dá zavřít křížkem nebo klávesou Esc.",", opens captions settings dialog":", otevřít okno pro nastavení popisků",", opens subtitles settings dialog":", otevřít okno pro nastavení titulků",", opens descriptions settings dialog":", otevře okno pro nastavení popisků pro nevidomé",", selected":", vybráno","captions settings":"nastavení popisků","subtitles settings":"nastavení titulků","descriptions settings":"nastavení popisků pro nevidomé","Text":"Titulky","White":"Bílé","Black":"Černé","Red":"Červené","Green":"Zelené","Blue":"Modré","Yellow":"Žluté","Magenta":"Fialové","Cyan":"Azurové","Background":"Pozadí titulků","Window":"Okno","Transparent":"Průhledné","Semi-Transparent":"Poloprůhledné","Opaque":"Neprůhledné","Font Size":"Velikost písma","Text Edge Style":"Okraje písma","None":"Bez okraje","Raised":"Zvýšený","Depressed":"Propadlý","Uniform":"Rovnoměrný","Dropshadow":"Stínovaný","Font Family":"Rodina písma","Proportional Sans-Serif":"Proporcionální bezpatkové","Monospace Sans-Serif":"Monospace bezpatkové","Proportional Serif":"Proporcionální patkové","Monospace Serif":"Monospace patkové","Casual":"Hravé","Script":"Ručně psané","Small Caps":"Malé kapitálky","Reset":"Obnovit","restore all settings to the default values":"Vrátit nastavení do výchozího stavu","Done":"Hotovo","Caption Settings Dialog":"Okno s nastavením titulků","Beginning of dialog window. Escape will cancel and close the window.":"Začátek dialogového okna. Klávesa Esc okno zavře.","End of dialog window.":"Konec dialogového okna.","{1} is loading.":"{1} se načítá."}' ); }, 85429: function (e) { "use strict"; e.exports = JSON.parse( '{"Play":"Wiedergabe","Pause":"Pause","Replay":"Erneut abspielen","Current Time":"Aktueller Zeitpunkt","Duration":"Dauer","Remaining Time":"Verbleibende Zeit","Stream Type":"Streamtyp","LIVE":"LIVE","Loaded":"Geladen","Progress":"Status","Fullscreen":"Vollbild","Exit Fullscreen":"Vollbildmodus beenden","Mute":"Stumm schalten","Unmute":"Ton einschalten","Playback Rate":"Wiedergabegeschwindigkeit","Subtitles":"Untertitel","subtitles off":"Untertitel aus","Captions":"Untertitel","captions off":"Untertitel aus","Chapters":"Kapitel","You aborted the media playback":"Sie haben die Videowiedergabe abgebrochen.","A network error caused the media download to fail part-way.":"Der Videodownload ist aufgrund eines Netzwerkfehlers fehlgeschlagen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Das Video konnte nicht geladen werden, da entweder ein Server- oder Netzwerkfehler auftrat oder das Format nicht unterstützt wird.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Die Videowiedergabe wurde entweder wegen eines Problems mit einem beschädigten Video oder wegen verwendeten Funktionen, die vom Browser nicht unterstützt werden, abgebrochen.","No compatible source was found for this media.":"Für dieses Video wurde keine kompatible Quelle gefunden.","Play Video":"Video abspielen","Close":"Schließen","Modal Window":"Modales Fenster","This is a modal window":"Dies ist ein modales Fenster","This modal can be closed by pressing the Escape key or activating the close button.":"Durch Drücken der Esc-Taste bzw. Betätigung der Schaltfläche \\"Schließen\\" wird dieses modale Fenster geschlossen.",", opens captions settings dialog":", öffnet Einstellungen für Untertitel",", opens subtitles settings dialog":", öffnet Einstellungen für Untertitel",", selected":", ausgewählt","captions settings":"Untertiteleinstellungen","subtitles settings":"Untertiteleinstellungen","descriptions settings":"Einstellungen für Beschreibungen","Close Modal Dialog":"Modales Fenster schließen","Descriptions":"Beschreibungen","descriptions off":"Beschreibungen aus","The media is encrypted and we do not have the keys to decrypt it.":"Die Entschlüsselungsschlüssel für den verschlüsselten Medieninhalt sind nicht verfügbar.",", opens descriptions settings dialog":", öffnet Einstellungen für Beschreibungen","Audio Track":"Tonspur","Text":"Schrift","White":"Weiß","Black":"Schwarz","Red":"Rot","Green":"Grün","Blue":"Blau","Yellow":"Gelb","Magenta":"Magenta","Cyan":"Türkis","Background":"Hintergrund","Window":"Fenster","Transparent":"Durchsichtig","Semi-Transparent":"Halbdurchsichtig","Opaque":"Undurchsichtig","Font Size":"Schriftgröße","Text Edge Style":"Textkantenstil","None":"Kein","Raised":"Erhoben","Depressed":"Gedrückt","Uniform":"Uniform","Dropshadow":"Schlagschatten","Font Family":"Schriftfamilie","Proportional Sans-Serif":"Proportionale Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportionale Serif","Monospace Serif":"Monospace Serif","Casual":"Zwanglos","Script":"Schreibschrift","Small Caps":"Small-Caps","Reset":"Zurücksetzen","restore all settings to the default values":"Alle Einstellungen auf die Standardwerte zurücksetzen","Done":"Fertig","Caption Settings Dialog":"Einstellungsdialog für Untertitel","Beginning of dialog window. Escape will cancel and close the window.":"Anfang des Dialogfensters. Esc bricht ab und schließt das Fenster.","End of dialog window.":"Ende des Dialogfensters.","Audio Player":"Audio-Player","Video Player":"Video-Player","Progress Bar":"Fortschrittsbalken","progress bar timing: currentTime={1} duration={2}":"{1} von {2}","Volume Level":"Lautstärke","{1} is loading.":"{1} wird geladen.","Seek to live, currently behind live":"Zur Live-Übertragung wechseln. Aktuell wird es nicht live abgespielt.","Seek to live, currently playing live":"Zur Live-Übertragung wechseln. Es wird aktuell live abgespielt.","Exit Picture-in-Picture":"Bild-im-Bild-Modus beenden","Picture-in-Picture":"Bild-im-Bild-Modus","No content":"Kein Inhalt","Color":"Farbe","Opacity":"Deckkraft","Text Background":"Texthintergrund","Caption Area Background":"Hintergrund des Untertitelbereichs","Playing in Picture-in-Picture":"Wird im Bild-im-Bild-Modus wiedergegeben","Skip forward {1} seconds":"{1} Sekunden vorwärts","Skip backward {1} seconds":"{1} Sekunden zurück"}' ); }, 6518: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"Audio Player","Video Player":"Video Player","Play":"Play","Pause":"Pause","Replay":"Replay","Current Time":"Current Time","Duration":"Duration","Remaining Time":"Remaining Time","Stream Type":"Stream Type","LIVE":"LIVE","Seek to live, currently behind live":"Seek to live, currently behind live","Seek to live, currently playing live":"Seek to live, currently playing live","Loaded":"Loaded","Progress":"Progress","Progress Bar":"Progress Bar","progress bar timing: currentTime={1} duration={2}":"{1} of {2}","Fullscreen":"Fullscreen","Exit Fullscreen":"Exit Fullscreen","Mute":"Mute","Unmute":"Unmute","Playback Rate":"Playback Rate","Subtitles":"Subtitles","subtitles off":"subtitles off","Captions":"Captions","captions off":"captions off","Chapters":"Chapters","Descriptions":"Descriptions","descriptions off":"descriptions off","Audio Track":"Audio Track","Volume Level":"Volume Level","You aborted the media playback":"You aborted the media playback","A network error caused the media download to fail part-way.":"A network error caused the media download to fail part-way.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"The media could not be loaded, either because the server or network failed or because the format is not supported.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.","No compatible source was found for this media.":"No compatible source was found for this media.","The media is encrypted and we do not have the keys to decrypt it.":"The media is encrypted and we do not have the keys to decrypt it.","Play Video":"Play Video","Close":"Close","Close Modal Dialog":"Close Modal Dialog","Modal Window":"Modal Window","This is a modal window":"This is a modal window","This modal can be closed by pressing the Escape key or activating the close button.":"This modal can be closed by pressing the Escape key or activating the close button.",", opens captions settings dialog":", opens captions settings dialog",", opens subtitles settings dialog":", opens subtitles settings dialog",", opens descriptions settings dialog":", opens descriptions settings dialog",", selected":", selected","captions settings":"captions settings","subtitles settings":"subtitles settings","descriptions settings":"descriptions settings","Text":"Text","White":"White","Black":"Black","Red":"Red","Green":"Green","Blue":"Blue","Yellow":"Yellow","Magenta":"Magenta","Cyan":"Cyan","Background":"Background","Window":"Window","Transparent":"Transparent","Semi-Transparent":"Semi-Transparent","Opaque":"Opaque","Font Size":"Font Size","Text Edge Style":"Text Edge Style","None":"None","Raised":"Raised","Depressed":"Depressed","Uniform":"Uniform","Dropshadow":"Dropshadow","Font Family":"Font Family","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"Reset","restore all settings to the default values":"restore all settings to the default values","Done":"Done","Caption Settings Dialog":"Caption Settings Dialog","Beginning of dialog window. Escape will cancel and close the window.":"Beginning of dialog window. Escape will cancel and close the window.","End of dialog window.":"End of dialog window.","{1} is loading.":"{1} is loading.","Exit Picture-in-Picture":"Exit Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture","No content":"No content","Color":"Color","Opacity":"Opacity","Text Background":"Text Background","Caption Area Background":"Caption Area Background","Playing in Picture-in-Picture":"Playing in Picture-in-Picture","Skip backward {1} seconds":"Skip backward {1} seconds","Skip forward {1} seconds":"Skip forward {1} seconds"}' ); }, 88808: function (e) { "use strict"; e.exports = JSON.parse( '{"Play":"Reproducir","Play Video":"Reproducir Vídeo","Pause":"Pausa","Current Time":"Tiempo reproducido","Duration":"Duración total","Remaining Time":"Tiempo restante","Stream Type":"Tipo de secuencia","LIVE":"DIRECTO","Loaded":"Cargado","Progress":"Progreso","Fullscreen":"Pantalla completa","Exit Fullscreen":"Pantalla no completa","Mute":"Desactivar el sonido","Unmute":"Activar el sonido","Playback Rate":"Velocidad de reproducción","Subtitles":"Subtítulos","subtitles off":"Subtítulos desactivados","Captions":"Subtítulos especiales","captions off":"Subtítulos especiales desactivados","Chapters":"Capítulos","You aborted the media playback":"Ha interrumpido la reproducción del vídeo.","A network error caused the media download to fail part-way.":"Un error de red ha interrumpido la descarga del vídeo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.","No compatible source was found for this media.":"No se ha encontrado ninguna fuente compatible con este vídeo.","Audio Player":"Reproductor de audio","Video Player":"Reproductor de video","Replay":"Volver a reproducir","Seek to live, currently behind live":"Buscar en vivo, actualmente demorado con respecto a la transmisión en vivo","Seek to live, currently playing live":"Buscar en vivo, actualmente reproduciendo en vivo","Progress Bar":"Barra de progreso","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Descriptions":"Descripciones","descriptions off":"descripciones desactivadas","Audio Track":"Pista de audio","Volume Level":"Nivel de volumen","The media is encrypted and we do not have the keys to decrypt it.":"El material audiovisual está cifrado y no tenemos las claves para descifrarlo.","Close":"Cerrar","Modal Window":"Ventana modal","This is a modal window":"Esta es una ventana modal","This modal can be closed by pressing the Escape key or activating the close button.":"Esta ventana modal puede cerrarse presionando la tecla Escape o activando el botón de cierre.",", opens captions settings dialog":", abre el diálogo de configuración de leyendas",", opens subtitles settings dialog":", abre el diálogo de configuración de subtítulos",", selected":", seleccionado","Close Modal Dialog":"Cierra cuadro de diálogo modal",", opens descriptions settings dialog":", abre el diálogo de configuración de las descripciones","captions settings":"configuración de leyendas","subtitles settings":"configuración de subtítulos","descriptions settings":"configuración de descripciones","Text":"Texto","White":"Blanco","Black":"Negro","Red":"Rojo","Green":"Verde","Blue":"Azul","Yellow":"Amarillo","Magenta":"Magenta","Cyan":"Cian","Background":"Fondo","Window":"Ventana","Transparent":"Transparente","Semi-Transparent":"Semitransparente","Opaque":"Opaca","Font Size":"Tamaño de fuente","Text Edge Style":"Estilo de borde del texto","None":"Ninguno","Raised":"En relieve","Depressed":"Hundido","Uniform":"Uniforme","Dropshadow":"Sombra paralela","Font Family":"Familia de fuente","Proportional Sans-Serif":"Sans-Serif proporcional","Monospace Sans-Serif":"Sans-Serif monoespacio","Proportional Serif":"Serif proporcional","Monospace Serif":"Serif monoespacio","Casual":"Informal","Script":"Cursiva","Small Caps":"Minúsculas","Reset":"Restablecer","restore all settings to the default values":"restablece todas las configuraciones a los valores predeterminados","Done":"Listo","Caption Settings Dialog":"Diálogo de configuración de leyendas","Beginning of dialog window. Escape will cancel and close the window.":"Comienzo de la ventana de diálogo. La tecla Escape cancelará la operación y cerrará la ventana.","End of dialog window.":"Final de la ventana de diálogo.","{1} is loading.":"{1} se está cargando.","Exit Picture-in-Picture":"Salir de imagen sobre imagen","Picture-in-Picture":"Imagen sobre imagen","No content":"Sin contenido","Color":"Color","Opacity":"Opacidad","Text Background":"Fondo del texto","Caption Area Background":"Fondo del área de subtítulos"}' ); }, 17161: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"Lecteur audio","Video Player":"Lecteur vidéo","Play":"Lecture","Pause":"Pause","Replay":"Revoir","Current Time":"Temps actuel","Duration":"Durée","Remaining Time":"Temps restant","Stream Type":"Type de flux","LIVE":"EN DIRECT","Seek to live, currently behind live":"Rechercher le direct, actuellement après le direct","Seek to live, currently playing live":"Rechercher le direct, le direct actuellement en cours de lecture","Loaded":"Chargé","Progress":"Progression","Progress Bar":"Barre de progression","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Fullscreen":"Plein écran","Exit Fullscreen":"Fenêtré","Mute":"Mettre en sourdine","Unmute":"Activer le son","Playback Rate":"Vitesse de lecture","Subtitles":"Sous-titres","subtitles off":"Sous-titres désactivés","Captions":"Sous-titres transcrits","captions off":"Sous-titres transcrits désactivés","Chapters":"Chapitres","Descriptions":"Descriptions","descriptions off":"descriptions désactivées","Audio Track":"Piste audio","Volume Level":"Niveau de volume","You aborted the media playback":"Vous avez interrompu la lecture de la vidéo.","A network error caused the media download to fail part-way.":"Une erreur de réseau a interrompu le téléchargement de la vidéo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Cette vidéo n\'a pas pu être chargée, soit parce que le serveur ou le réseau a échoué ou parce que le format n\'est pas reconnu.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La lecture de la vidéo a été interrompue à cause d\'un problème de corruption ou parce que la vidéo utilise des fonctionnalités non prises en charge par votre navigateur.","No compatible source was found for this media.":"Aucune source compatible n\'a été trouvée pour cette vidéo.","The media is encrypted and we do not have the keys to decrypt it.":"Le média est chiffré et nous n\'avons pas les clés pour le déchiffrer.","Play Video":"Lire la vidéo","Close":"Fermer","Close Modal Dialog":"Fermer la boîte de dialogue modale","Modal Window":"Fenêtre modale","This is a modal window":"Ceci est une fenêtre modale","This modal can be closed by pressing the Escape key or activating the close button.":"Ce modal peut être fermé en appuyant sur la touche Échap ou activer le bouton de fermeture.",", opens captions settings dialog":", ouvrir les paramètres des sous-titres transcrits",", opens subtitles settings dialog":", ouvrir les paramètres des sous-titres",", opens descriptions settings dialog":", ouvrir les paramètres des descriptions",", selected":", sélectionné","captions settings":"Paramètres des sous-titres transcrits","subtitles settings":"Paramètres des sous-titres","descriptions settings":"Paramètres des descriptions","Text":"Texte","White":"Blanc","Black":"Noir","Red":"Rouge","Green":"Vert","Blue":"Bleu","Yellow":"Jaune","Magenta":"Magenta","Cyan":"Cyan","Background":"Arrière-plan","Window":"Fenêtre","Transparent":"Transparent","Semi-Transparent":"Semi-transparent","Opaque":"Opaque","Font Size":"Taille des caractères","Text Edge Style":"Style des contours du texte","None":"Aucun","Raised":"Élevé","Depressed":"Enfoncé","Uniform":"Uniforme","Dropshadow":"Ombre portée","Font Family":"Famille de polices","Proportional Sans-Serif":"Polices à chasse variable sans empattement (Proportional Sans-Serif)","Monospace Sans-Serif":"Polices à chasse fixe sans empattement (Monospace Sans-Serif)","Proportional Serif":"Polices à chasse variable avec empattement (Proportional Serif)","Monospace Serif":"Polices à chasse fixe avec empattement (Monospace Serif)","Casual":"Manuscrite","Script":"Scripte","Small Caps":"Petites capitales","Reset":"Réinitialiser","restore all settings to the default values":"Restaurer tous les paramètres aux valeurs par défaut","Done":"Terminé","Caption Settings Dialog":"Boîte de dialogue des paramètres des sous-titres transcrits","Beginning of dialog window. Escape will cancel and close the window.":"Début de la fenêtre de dialogue. La touche d\'échappement annulera et fermera la fenêtre.","End of dialog window.":"Fin de la fenêtre de dialogue.","Exit Picture-in-Picture":"Quitter le mode image dans l\'image","Picture-in-Picture":"Image dans l\'image","{1} is loading.":"{1} en cours de chargement.","No content":"Aucun contenu","Color":"Couleur","Opacity":"Opacité","Text Background":"Arrière-plan du texte","Caption Area Background":"Arrière-plan de la zone de sous-titre"}' ); }, 21910: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"Lettore audio","Video Player":"Lettore video","Play":"Play","Pause":"Pausa","Replay":"Replay","Current Time":"Orario attuale","Duration":"Durata","Remaining Time":"Tempo rimanente","Stream Type":"Tipo del Streaming","LIVE":"LIVE","Loaded":"Caricato","Progress":"Stato","Progress Bar":"Barra di avanzamento","progress bar timing: currentTime={1} duration={2}":"{1} di {2}","Fullscreen":"Schermo intero","Exit Fullscreen":"Chiudi Schermo intero","Mute":"Disattivare l’audio","Unmute":"Attivare l’audio","Playback Rate":"Tasso di riproduzione","Subtitles":"Sottotitoli","subtitles off":"Senza sottotitoli","Captions":"Sottotitoli non udenti","captions off":"Senza sottotitoli non udenti","Chapters":"Capitolo","Descriptions":"Descrizioni","descriptions off":"Descrizioni disattivate","Audio Track":"Traccia audio","Volume Level":"Livello del volume","You aborted the media playback":"La riproduzione del filmato è stata interrotta.","A network error caused the media download to fail part-way.":"Il download del filmato è stato interrotto a causa di un problema rete.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.","No compatible source was found for this media.":"Non ci sono fonti compatibili per questo filmato.","The media is encrypted and we do not have the keys to decrypt it.":"Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.","Play Video":"Riproduci il video","Close":"Chiudi","Close Modal Dialog":"Chiudi la finestra di dialogo","Modal Window":"Finestra di dialogo","This is a modal window":"Questa è una finestra di dialogo","This modal can be closed by pressing the Escape key or activating the close button.":"Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",", opens captions settings dialog":", aprire i parametri della trascrizione dei sottotitoli",", opens subtitles settings dialog":", aprire i parametri dei sottotitoli",", opens descriptions settings dialog":", aprire i parametri delle descrizioni",", selected":", selezionato","captions settings":"Parametri della trascrizione dei sottotitoli","subtitles settings":"Parametri dei sottotitoli","descriptions settings":"Parametri delle descrizioni","Text":"Testo","White":"Bianco","Black":"Nero","Red":"Rosso","Green":"Verde","Blue":"Blu","Yellow":"Giallo","Magenta":"Magenta","Cyan":"Ciano","Background":"Sfondo","Window":"Finestra","Transparent":"Trasparente","Semi-Transparent":"Semi-Trasparente","Opaque":"Opaco","Font Size":"Dimensione dei caratteri","Text Edge Style":"Stile dei bordi del testo","None":"Nessuno","Uniform":"Uniforme","Dropshadow":"Ombreggiatura","Font Family":"Famiglia di caratteri","Proportional Sans-Serif":"Sans-Serif proporzionale","Monospace Sans-Serif":"Sans-Serif monospazio","Proportional Serif":"Serif proporzionale","Monospace Serif":"Serif monospazio","Small Caps":"Maiuscoletto","Reset":"Reinizializza","restore all settings to the default values":"Ripristina i valori predefiniti per tutti i parametri","Done":"Operazione completata","Caption Settings Dialog":"Finestra di dialogo dei parametri della trascrizione dei sottotitoli","Beginning of dialog window. Escape will cancel and close the window.":"Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.","End of dialog window.":"Fine della finestra di dialogo.","{1} is loading.":"{1} in fase di caricamento.","Exit Picture-in-Picture":"Esci dalla modalità Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture","Color":"Colore","Opacity":"Opacità","Text Background":"Sfondo del testo","Caption Area Background":"Sfondo dell\'area dei sottotitoli","Skip forward {1} seconds":"Avanti di {1} secondi","Skip backward {1} seconds":"Indietro di {1} secondi"}' ); }, 3992: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"オーディオプレイヤー","Video Player":"ビデオプレイヤー","Play":"再生","Pause":"一時停止","Replay":"もう一度見る","Current Time":"現在の時間","Duration":"長さ","Remaining Time":"残りの時間","Stream Type":"ストリームの種類","LIVE":"ライブ","Seek to live, currently behind live":"ライブまで再生位置を指定、現在ライブが遅れています。","Seek to live, currently playing live":"ライブまで再生位置を指定、現在ライブ中。","Loaded":"ロード済み","Progress":"進行状況","Progress Bar":"シークバー","progress bar timing: currentTime={1} duration={2}":"{2}の{1}","Fullscreen":"フルスクリーン","Exit Fullscreen":"フルスクリーン以外","Mute":"ミュート","Unmute":"サウンドをオン","Playback Rate":"再生レート","Subtitles":"サブタイトル","subtitles off":"サブタイトル オフ","Captions":"キャプション","captions off":"キャプション オフ","Chapters":"チャプター","Descriptions":"ディスクリプション","descriptions off":"ディスクリプションオフ","Audio Track":"音声トラック","Volume Level":"ボリュームレベル","You aborted the media playback":"動画再生を中止しました","A network error caused the media download to fail part-way.":"ネットワーク エラーにより動画のダウンロードが途中で失敗しました","The media could not be loaded, either because the server or network failed or because the format is not supported.":"サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました","No compatible source was found for this media.":"この動画に対して互換性のあるソースが見つかりませんでした","The media is encrypted and we do not have the keys to decrypt it.":"メディアは暗号化されており、解読するためのキーがありません。","Play Video":"ビデオを再生する","Close":"閉じる","Close Modal Dialog":"ダイアログボックスを閉じる","Modal Window":"ダイアログボックス","This is a modal window":"これはダイアログボックスです","This modal can be closed by pressing the Escape key or activating the close button.":"このダイアログボックスは、Escキーを押すか、閉じるボタンを押して閉じることができま",", opens captions settings dialog":", 書き起こし字幕の設定を開く",", opens subtitles settings dialog":", 字幕の設定を開く",", opens descriptions settings dialog":", ディスクリプションの設定を開く",", selected":", 選択済み","captions settings":"書き起こし字幕の設定","subtitles settings":"字幕の設定","descriptions settings":"ディスクリプションの設定","Text":"テキスト","White":"白","Black":"黒","Red":"赤","Green":"緑","Blue":"青","Yellow":"黄","Magenta":"赤紫","Cyan":"シアン","Background":"背景","Window":"ウィンドウ","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"文字サイズ","Text Edge Style":"テキストのアウトラインのスタイル","None":"なし","Raised":"浮き出し","Depressed":"浮き彫り","Uniform":"均一","Dropshadow":"影付き","Font Family":"フォントの種類","Proportional Sans-Serif":"セリフなし可変幅フォント","Monospace Sans-Serif":"セリフなし等幅フォント","Proportional Serif":"セリフあり可変幅フォント","Monospace Serif":"セリフあり等幅フォント","Casual":"カジュアル","Script":"スクリプト","Small Caps":"スモールキャピタル","Reset":"リセット","restore all settings to the default values":"すべての設定をデフォルト値に戻す","Done":"終了","Caption Settings Dialog":"書き起こし字幕設定ダイアログ","Beginning of dialog window. Escape will cancel and close the window.":"ダイアログボックスの開始。Escキーでキャンセルしてウィンドウを閉じます。","End of dialog window.":"ダイアログボックスの終了","{1} is loading.":"{1}は読み込み中です。","Exit Picture-in-Picture":"ピクチャーインピクチャー機能の終了","Picture-in-Picture":"ピクチャーインピクチャー","No content":"コンテンツなし","Color":"色","Opacity":"不透明度","Text Background":"テキスト背景","Caption Area Background":"キャプション領域背景","Skip forward {1} seconds":"{1}秒進む","Skip backward {1} seconds":"{1}秒戻る"}' ); }, 43420: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"Audiospeler","Video Player":"Videospeler","Play":"Afspelen","Pause":"Pauzeren","Replay":"Opnieuw afspelen","Current Time":"Huidige tijd","Duration":"Tijdsduur","Remaining Time":"Resterende tijd","Stream Type":"Streamtype","LIVE":"LIVE","Seek to live, currently behind live":"Zoek naar live, momenteel achter op live","Seek to live, currently playing live":"Zoek naar live, momenteel live","Loaded":"Geladen","Progress":"Voortgang","Progress Bar":"Voortgangsbalk","progress bar timing: currentTime={1} duration={2}":"{1} van {2}","Fullscreen":"Volledig scherm","Exit Fullscreen":"Volledig scherm uit","Mute":"Dempen","Unmute":"Dempen uit","Playback Rate":"Afspeelsnelheid","Subtitles":"Ondertiteling","subtitles off":"ondertiteling uit","Captions":"Ondertiteling (CC)","captions off":"ondertiteling (CC) uit","Chapters":"Hoofdstukken","Descriptions":"Beschrijvingen","descriptions off":"beschrijvingen uit","Audio Track":"Audiospoor","Volume Level":"Volume","You aborted the media playback":"U heeft het afspelen van de media afgebroken","A network error caused the media download to fail part-way.":"Een netwerkfout heeft ervoor gezorgd dat het downloaden van de media is mislukt.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"De media kon niet worden geladen, doordat de server of het netwerk faalde of doordat het formaat niet wordt ondersteund.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Het afspelen van de media werd afgebroken vanwege een corruptieprobleem of omdat de uw browser de gebruikte mediafuncties niet ondersteund.","No compatible source was found for this media.":"Er is geen geschikte bron gevonden voor dit medium.","The media is encrypted and we do not have the keys to decrypt it.":"De media is gecodeerd en we hebben niet de sleutels om het te decoderen.","Play Video":"Video afspelen","Close":"Sluiten","Close Modal Dialog":"Extra venster sluiten","Modal Window":"Extra venster","This is a modal window":"Dit is een extra venster","This modal can be closed by pressing the Escape key or activating the close button.":"Dit venster kan worden gesloten door op de Escape-toets te drukken of door de sluit-knop te activeren.",", opens captions settings dialog":", opent instellingen venster voor ondertitelingen",", opens subtitles settings dialog":", opent instellingen venster voor ondertitelingen",", opens descriptions settings dialog":", opent instellingen venster voor beschrijvingen",", selected":", geselecteerd","captions settings":"ondertiteling instellingen","subtitles settings":"ondertiteling instellingen","descriptions settings":"beschrijvingen instellingen","Text":"Tekst","White":"Wit","Black":"Zwart","Red":"Rood","Green":"Groen","Blue":"Blauw","Yellow":"Geel","Magenta":"Magenta","Cyan":"Cyaan","Background":"Achtergrond","Window":"Venster","Transparent":"Transparant","Semi-Transparent":"Semi-transparant","Opaque":"Ondoorzichtig","Font Size":"Lettergrootte","Text Edge Style":"Stijl tekstrand","None":"Geen","Raised":"Verhoogd","Depressed":"Ingedrukt","Uniform":"Uniform","Dropshadow":"Schaduw","Font Family":"Lettertype","Proportional Sans-Serif":"Proportioneel sans-serif","Monospace Sans-Serif":"Monospace sans-serif","Proportional Serif":"Proportioneel serif","Monospace Serif":"Monospace serif","Casual":"Informeel","Script":"Script","Small Caps":"Kleine Hoofdletters","Reset":"Herstellen","restore all settings to the default values":"alle instellingen herstellen naar de standaardwaarden","Done":"Gereed","Caption Settings Dialog":"Venster voor bijschriften-instellingen","Beginning of dialog window. Escape will cancel and close the window.":"Begin van dialoogvenster. Escape zal annuleren en het venster sluiten.","End of dialog window.":"Einde van dialoogvenster.","{1} is loading.":"{1} wordt geladen.","Exit Picture-in-Picture":"Picture-in-Picture uit","Picture-in-Picture":"Picture-in-Picture","No content":"Geen inhoud","Color":"Kleur","Opacity":"Transparantie","Text Background":"Tekst Achtergrond","Caption Area Background":"Achtergrond voor Ondertiteling","Skip forward {1} seconds":"{1} seconden vooruit","Skip backward {1} seconds":"{1} seconden terug"}' ); }, 18059: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"Odtwarzacz audio","Video Player":"Odtwarzacz wideo","Play":"Odtwórz","Pause":"Wstrzymaj","Replay":"Odtwórz ponownie","Current Time":"Aktualny czas","Duration":"Czas trwania","Remaining Time":"Pozostały czas","Stream Type":"Typ strumienia","LIVE":"NA ŻYWO","Seek to live, currently behind live":"Przejdź do transmisji na żywo, obecnie trwa odtwarzanie z archiwum","Seek to live, currently playing live":"Przejdż do transmisji na żywo, obecnie trwa odtwarzanie na żywo","Loaded":"Załadowany","Progress":"Status","Progress Bar":"Pasek postępu","progress bar timing: currentTime={1} duration={2}":"{1} z {2}","Fullscreen":"Pełny ekran","Exit Fullscreen":"Pełny ekran niedostępny","Mute":"Wycisz","Unmute":"Wyłącz wyciszenie","Playback Rate":"Prędkość odtwarzania","Subtitles":"Napisy","subtitles off":"Napisy wyłączone","Captions":"Transkrypcja","captions off":"Transkrypcja wyłączona","Chapters":"Rozdziały","Descriptions":"Opisy","descriptions off":"Opisy wyłączone","Audio Track":"Ścieżka audio","Volume Level":"Poziom głośności","You aborted the media playback":"Odtwarzanie zostało przerwane","A network error caused the media download to fail part-way.":"Błąd sieci spowodował częściowe niepowodzenie pobierania materiału wideo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Materiał wideo nie może zostać załadowany, ponieważ wystąpił problem z serwerem lub siecią albo format materiału wideo nie jest obsługiwany","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Odtwarzanie materiału wideo zostało przerwane z powodu uszkodzonego pliku wideo lub z powodu użycia funkcji multimediów nieobsługiwanych przez Twoją przeglądarkę.","No compatible source was found for this media.":"Nie znaleziono kompatybilnego źródła dla tego typu materiału wideo.","The media is encrypted and we do not have the keys to decrypt it.":"Materiał jest zaszyfrowany, a nie mamy kluczy do jego odszyfrowania.","Play Video":"Odtwórz wideo","Close":"Zamknij","Close Modal Dialog":"Zamknij okno modalne","Modal Window":"Okno modalne","This is a modal window":"To jest okno modalne","This modal can be closed by pressing the Escape key or activating the close button.":"To okno modalne możesz zamknąć, naciskając klawisz Escape albo wybierając przycisk Zamknij.",", opens captions settings dialog":", otwiera okno dialogowe ustawień transkrypcji",", opens subtitles settings dialog":", otwiera okno dialogowe napisów",", opens descriptions settings dialog":", otwiera okno dialogowe opisów",", selected":", zaznaczone","captions settings":"ustawienia transkrypcji","subtitles settings":"ustawienia napisów","descriptions settings":"ustawienia opisów","Text":"Tekst","White":"Biały","Black":"Czarny","Red":"Czerwony","Green":"Zielony","Blue":"Niebieski","Yellow":"Żółty","Magenta":"Karmazynowy","Cyan":"Cyjanowy","Background":"Tło","Window":"Okno","Transparent":"Przezroczysty","Semi-Transparent":"Półprzezroczysty","Opaque":"Nieprzezroczysty","Font Size":"Rozmiar czcionki","Text Edge Style":"Styl krawędzi tekstu","None":"Brak","Raised":"Podniesiony","Depressed":"Obniżony","Uniform":"Równomierny","Dropshadow":"Cień","Font Family":"Krój czcionki","Proportional Sans-Serif":"Bezszeryfowa, proporcjonalna","Monospace Sans-Serif":"Bezszeryfowa, stała odległość znaków","Proportional Serif":"Szeryfowa, proporcjonalna","Monospace Serif":"Szeryfowa, stała odległość znaków","Casual":"Casual","Script":"Script","Small Caps":"Kapitaliki","Reset":"Ustawienia domyślne","restore all settings to the default values":"zresetuj wszystkie ustawienia do domyślnych wartości","Done":"Gotowe","Caption Settings Dialog":"Okno dialogowe ustawień transkrypcji","Beginning of dialog window. Escape will cancel and close the window.":"Początek okna dialogowego. Klawisz Escape anuluje i zamyka okno.","End of dialog window.":"Koniec okna dialogowego.","{1} is loading.":"Wczytywanie pliku {1}.","Exit Picture-in-Picture":"Wyjdź z trybu obraz w obrazie","Picture-in-Picture":"Obraz w obrazie","No content":"Brak zawartości"}' ); }, 13708: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"Reprodutor de áudio","Video Player":"Reprodutor de vídeo","Play":"Tocar","Pause":"Pausar","Replay":"Tocar novamente","Current Time":"Tempo","Duration":"Duração","Remaining Time":"Tempo Restante","Stream Type":"Tipo de Stream","LIVE":"AO VIVO","Loaded":"Carregado","Progress":"Progresso","Progress Bar":"Barra de progresso","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Fullscreen":"Tela Cheia","Exit Fullscreen":"Tela Normal","Mute":"Mudo","Unmute":"Ativar o som","Playback Rate":"Velocidade","Subtitles":"Legendas","subtitles off":"Sem Legendas","Captions":"Anotações","captions off":"Sem Anotações","Chapters":"Capítulos","Descriptions":"Descrições","descriptions off":"sem descrições","Audio Track":"Faixa de áudio","Volume Level":"Nível de volume","You aborted the media playback":"Você parou a execução do vídeo.","A network error caused the media download to fail part-way.":"Um erro na rede causou falha durante o download da mídia.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"A mídia não pode ser carregada, por uma falha de rede ou servidor ou o formato não é suportado.","No compatible source was found for this media.":"Nenhuma fonte foi encontrada para esta mídia.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"A reprodução foi interrompida devido à um problema de mídia corrompida ou porque a mídia utiliza funções que seu navegador não suporta.","The media is encrypted and we do not have the keys to decrypt it.":"A mídia está criptografada e não temos as chaves para descriptografar.","Play Video":"Tocar Vídeo","Close":"Fechar","Close Modal Dialog":"Fechar Diálogo Modal","Modal Window":"Janela Modal","This is a modal window":"Isso é uma janela-modal","This modal can be closed by pressing the Escape key or activating the close button.":"Esta janela pode ser fechada pressionando a tecla de Escape.",", opens captions settings dialog":", abre as configurações de legendas de comentários",", opens subtitles settings dialog":", abre as configurações de legendas",", opens descriptions settings dialog":", abre as configurações",", selected":", selecionada","captions settings":"configurações de legendas de comentários","subtitles settings":"configurações de legendas","descriptions settings":"configurações das descrições","Text":"Texto","White":"Branco","Black":"Preto","Red":"Vermelho","Green":"Verde","Blue":"Azul","Yellow":"Amarelo","Magenta":"Magenta","Cyan":"Ciano","Background":"Plano-de-Fundo","Window":"Janela","Transparent":"Transparente","Semi-Transparent":"Semi-Transparente","Opaque":"Opaco","Font Size":"Tamanho da Fonte","Text Edge Style":"Estilo da Borda","None":"Nenhum","Raised":"Elevado","Depressed":"Acachapado","Uniform":"Uniforme","Dropshadow":"Sombra de projeção","Font Family":"Família da Fonte","Proportional Sans-Serif":"Sans-Serif(Sem serifa) Proporcional","Monospace Sans-Serif":"Sans-Serif(Sem serifa) Monoespaçada","Proportional Serif":"Serifa Proporcional","Monospace Serif":"Serifa Monoespaçada","Casual":"Casual","Script":"Script","Small Caps":"Maiúsculas Pequenas","Reset":"Redefinir","restore all settings to the default values":"restaurar todas as configurações aos valores padrão","Done":"Salvar","Caption Settings Dialog":"Caíxa-de-Diálogo das configurações de Legendas","Beginning of dialog window. Escape will cancel and close the window.":"Iniciando a Janela-de-Diálogo. Pressionar Escape irá cancelar e fechar a janela.","End of dialog window.":"Fim da Janela-de-Diálogo","{1} is loading.":"{1} está carregando.","Exit Picture-in-Picture":"Sair de Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture"}' ); }, 9231: function (e) { "use strict"; e.exports = JSON.parse( '{"Play":"Reproduzir","Pause":"Parar","Replay":"Reiniciar","Current Time":"Tempo Atual","Duration":"Duração","Remaining Time":"Tempo Restante","Stream Type":"Tipo de Stream","LIVE":"EM DIRETO","Loaded":"Carregado","Progress":"Progresso","Fullscreen":"Ecrã inteiro","Exit Fullscreen":"Ecrã normal","Mute":"Desativar som","Unmute":"Ativar som","Playback Rate":"Velocidade de reprodução","Subtitles":"Legendas","subtitles off":"desativar legendas","Captions":"Anotações","captions off":"desativar anotações","Chapters":"Capítulos","Close Modal Dialog":"Fechar Janela Modal","Descriptions":"Descrições","descriptions off":"desativar descrições","Audio Track":"Faixa Áudio","You aborted the media playback":"Parou a reprodução do vídeo.","A network error caused the media download to fail part-way.":"Um erro na rede fez o vídeo falhar parcialmente.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"O vídeo não pode ser carregado, ou porque houve um problema na rede ou no servidor, ou porque formato do vídeo não é compatível.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"A reprodução foi interrompida por um problema com o vídeo ou porque o formato não é compatível com o seu navegador.","No compatible source was found for this media.":"Não foi encontrada uma fonte de vídeo compatível.","The media is encrypted and we do not have the keys to decrypt it.":"O vídeo está encriptado e não há uma chave para o desencriptar.","Play Video":"Reproduzir Vídeo","Close":"Fechar","Modal Window":"Janela Modal","This is a modal window":"Isto é uma janela modal","This modal can be closed by pressing the Escape key or activating the close button.":"Esta modal pode ser fechada pressionando a tecla ESC ou ativando o botão de fechar.",", opens captions settings dialog":", abre janela com definições de legendas",", opens subtitles settings dialog":", abre janela com definições de legendas",", opens descriptions settings dialog":", abre janela com definições de descrições",", selected":", seleccionado"}' ); }, 75058: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"Zvukový prehrávač","Video Player":"Video prehrávač","Play":"Prehrať","Pause":"Pozastaviť","Replay":"Prehrať znova","Current Time":"Aktuálny čas","Duration":"Čas trvania","Remaining Time":"Zostávajúci čas","Stream Type":"Typ stopy","LIVE":"NAŽIVO","Loaded":"Načítané","Progress":"Priebeh","Progress Bar":"Ukazovateľ priebehu","progress bar timing: currentTime={1} duration={2}":"časovanie ukazovateľa priebehu: currentTime={1} duration={2}","Fullscreen":"Režim celej obrazovky","Exit Fullscreen":"Režim normálnej obrazovky","Mute":"Stlmiť","Unmute":"Zrušiť stlmenie","Playback Rate":"Rýchlosť prehrávania","Subtitles":"Titulky","subtitles off":"titulky vypnuté","Captions":"Popisky","captions off":"popisky vypnuté","Chapters":"Kapitoly","Descriptions":"Opisy","descriptions off":"opisy vypnuté","Audio Track":"Zvuková stopa","Volume Level":"Úroveň hlasitosti","You aborted the media playback":"Prerušili ste prehrávanie","A network error caused the media download to fail part-way.":"Sťahovanie súboru bolo zrušené pre chybu na sieti.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Súbor sa nepodarilo načítať pre chybu servera, sieťového pripojenia, alebo je formát súboru nepodporovaný.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Prehrávanie súboru bolo prerušené pre poškodené dáta, alebo súbor používa vlastnosti, ktoré váš prehliadač nepodporuje.","No compatible source was found for this media.":"Nebol nájdený žiaden kompatibilný zdroj pre tento súbor.","The media is encrypted and we do not have the keys to decrypt it.":"Súbor je zašifrovaný a nie je k dispozícii kľúč na rozšifrovanie.","Play Video":"Prehrať video","Close":"Zatvoriť","Close Modal Dialog":"Zatvoriť modálne okno","Modal Window":"Modálne okno","This is a modal window":"Toto je modálne okno","This modal can be closed by pressing the Escape key or activating the close button.":"Toto modálne okno je možné zatvoriť stlačením klávesy Escape, alebo aktivovaním tlačidla na zatvorenie.",", opens captions settings dialog":", otvorí okno nastavení popiskov",", opens subtitles settings dialog":", otvorí okno nastavení titulkov",", opens descriptions settings dialog":", otvorí okno nastavení opisov",", selected":", označené","captions settings":"nastavenia popiskov","subtitles settings":"nastavenia titulkov","descriptions settings":"nastavenia opisov","Text":"Text","White":"Biela","Black":"Čierna","Red":"Červená","Green":"Zelená","Blue":"Modrá","Yellow":"Žltá","Magenta":"Ružová","Cyan":"Tyrkysová","Background":"Pozadie","Window":"Okno","Transparent":"Priesvitné","Semi-Transparent":"Polopriesvitné","Opaque":"Plné","Font Size":"Veľkosť písma","Text Edge Style":"Typ okrajov písma","None":"Žiadne","Raised":"Zvýšené","Depressed":"Znížené","Uniform":"Pravidelné","Dropshadow":"S tieňom","Font Family":"Typ písma","Proportional Sans-Serif":"Proporčné bezpätkové","Monospace Sans-Serif":"Pravidelné, bezpätkové","Proportional Serif":"Proporčné pätkové","Monospace Serif":"Pravidelné pätkové","Casual":"Bežné","Script":"Písané","Small Caps":"Malé kapitálky","Reset":"Resetovať","restore all settings to the default values":"všetky nastavenia na základné hodnoty","Done":"Hotovo","Caption Settings Dialog":"Okno nastavení popiskov","Beginning of dialog window. Escape will cancel and close the window.":"Začiatok okna. Klávesa Escape zruší a zavrie okno.","End of dialog window.":"Koniec okna.","{1} is loading.":"{1} sa načíta."}' ); }, 62718: function (e) { "use strict"; e.exports = JSON.parse( '{"Audio Player":"Ses Oynatıcısı","Video Player":"Video Oynatıcısı","Play":"Oynat","Pause":"Duraklat","Replay":"Yeniden Oynat","Current Time":"Süre","Duration":"Toplam Süre","Remaining Time":"Kalan Süre","Stream Type":"Yayın Tipi","LIVE":"CANLI","Seek to live, currently behind live":"Canlıya git, şu anda canlının gerisinde","Seek to live, currently playing live":"Canlıya git, şu anda canlı oynuyor","Loaded":"Yüklendi","Progress":"Yükleniyor","Progress Bar":"İlerleme Çubuğu","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","Fullscreen":"Tam Ekran","Exit Fullscreen":"Tam Ekrandan Çık","Mute":"Sessiz","Unmute":"Sesi Aç","Playback Rate":"Oynatma Hızı","Subtitles":"Altyazılar","subtitles off":"Altyazı Kapalı","Captions":"Altyazılar","captions off":"Altyazı Kapalı","Chapters":"Bölümler","Close Modal Dialog":"Etkileşim Penceresini Kapat","Descriptions":"Açıklamalar","descriptions off":"açıklamalar kapalı","Audio Track":"Ses Parçası","Volume Level":"Ses Düzeyi","You aborted the media playback":"Medyayı oynatmayı iptal ettiniz","A network error caused the media download to fail part-way.":"Medya indirme işleminin kısmen başarısız olmasına neden olan bir ağ sorunu oluştu.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Sunucu veya ağ hatasından ya da biçim desteklenmediğinden medya yüklenemedi.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Medya oynatma, bir bozulma sorunu nedeniyle veya medya, tarayıcınızın desteklemediği özellikleri kullandığı için durduruldu.","No compatible source was found for this media.":"Bu medya için uyumlu bir kaynak bulunamadı.","The media is encrypted and we do not have the keys to decrypt it.":"Medya, şifrelenmiş bir kaynaktan geliyor ve oynatmak için gerekli anahtar bulunamadı.","Play Video":"Videoyu Oynat","Close":"Kapat","Modal Window":"Etkileşim Penceresi","This is a modal window":"Bu bir etkileşim penceresidir","This modal can be closed by pressing the Escape key or activating the close button.":"Bu etkileşim penceresi ESC tuşuna basarak ya da kapat butonuna tıklanarak kapatılabilir.",", opens captions settings dialog":", altyazı ayarları menüsünü açar",", opens subtitles settings dialog":", altyazı ayarları menüsünü açar",", opens descriptions settings dialog":", açıklama ayarları menüsünü açar",", selected":", seçildi","captions settings":"altyazı ayarları","subtitles settings":"altyazı ayarları","descriptions settings":"açıklama ayarları","Text":"Metin","White":"Beyaz","Black":"Siyah","Red":"Kırmızı","Green":"Yeşil","Blue":"Mavi","Yellow":"Sarı","Magenta":"Macenta","Cyan":"Açık Mavi (Camgöbeği)","Background":"Arka plan","Window":"Pencere","Transparent":"Saydam","Semi-Transparent":"Yarı-Saydam","Opaque":"Mat","Font Size":"Metin Boyutu","Text Edge Style":"Metin Kenar Stili","None":"Hiçbiri","Raised":"Kabarık","Depressed":"Yassı","Uniform":"Düz","Dropshadow":"Gölgeli","Font Family":"Yazı Tipi","Proportional Sans-Serif":"Orantılı Sans-Serif","Monospace Sans-Serif":"Eşaralıklı Sans-Serif","Proportional Serif":"Orantılı Serif","Monospace Serif":"Eşaralıklı Serif","Casual":"Gündelik","Script":"El Yazısı","Small Caps":"Küçük Boyutlu Büyük Harfli","Reset":"Sıfırla","restore all settings to the default values":"tüm ayarları varsayılan değerlere geri yükler","Done":"Tamam","Caption Settings Dialog":"Altyazı Ayarları Menüsü","Beginning of dialog window. Escape will cancel and close the window.":"Etkileşim penceresinin başlangıcı. ESC tuşu işlemi iptal edip pencereyi kapatacaktır.","End of dialog window.":"Etkileşim penceresinin sonu.","{1} is loading.":"{1} yükleniyor.","Exit Picture-in-Picture":"Mini oynatıcıdan çık","Picture-in-Picture":"Mini oynatıcı","No content":"İçerik yok"}' ); }, 51131: function (e) { "use strict"; e.exports = JSON.parse( '{"Play":"播放","Pause":"暂停","Current Time":"当前时间","Duration":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","LIVE":"直播","Loaded":"加载完成","Progress":"进度","Fullscreen":"全屏","Exit Fullscreen":"退出全屏","Picture-in-Picture":"画中画","Exit Picture-in-Picture":"退出画中画","Mute":"静音","Unmute":"开启音效","Playback Rate":"播放速度","Subtitles":"字幕","subtitles off":"关闭字幕","Captions":"内嵌字幕","captions off":"关闭内嵌字幕","Chapters":"节目段落","Close Modal Dialog":"关闭弹窗","Descriptions":"描述","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密,无法解密。","Play Video":"播放视频","Close":"关闭","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Replay":"重新播放","Progress Bar":"进度条","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Text":"文字","White":"白","Black":"黑","Red":"红","Green":"绿","Blue":"蓝","Yellow":"黄","Magenta":"紫红","Cyan":"青","Background":"背景","Window":"窗口","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","None":"无","Raised":"浮雕","Depressed":"压低","Uniform":"均匀","Dropshadow":"下阴影","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Casual":"舒适","Script":"手写体","Small Caps":"小型大写字体","Reset":"重置","restore all settings to the default values":"恢复全部设定至预设值","Done":"完成","Caption Settings Dialog":"字幕设定窗口","Beginning of dialog window. Escape will cancel and close the window.":"打开对话窗口。Escape键将取消并关闭对话窗口","End of dialog window.":"结束对话窗口","Seek to live, currently behind live":"尝试直播,当前为延时播放","Seek to live, currently playing live":"尝试直播,当前为实时播放","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"正在加载 {1}。","No content":"无内容","Color":"颜色","Opacity":"不透明度","Text Background":"文本背景","Caption Area Background":"字幕区域背景","Skip forward {1} seconds":"快进 {1} 秒","Skip backward {1} seconds":"快退 {1} 秒"}' ); }, 87922: function (e) { "use strict"; e.exports = JSON.parse( '{"Play":"播放","Pause":"暫停","Current Time":"目前時間","Duration":"總共時間","Remaining Time":"剩餘時間","Stream Type":"串流類型","LIVE":"直播","Loaded":"載入完畢","Progress":"進度","Fullscreen":"全螢幕","Exit Fullscreen":"退出全螢幕","Picture-in-Picture":"子母畫面","Exit Picture-in-Picture":"退出子母畫面","Mute":"靜音","Unmute":"開啟音效","Playback Rate":" 播放速率","Subtitles":"字幕","subtitles off":"關閉字幕","Captions":"內嵌字幕","captions off":"關閉內嵌字幕","Chapters":"章節","Close Modal Dialog":"關閉對話框","Descriptions":"描述","descriptions off":"關閉描述","Audio Track":"音軌","You aborted the media playback":"影片播放已終止","A network error caused the media download to fail part-way.":"網路錯誤導致影片下載失敗。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"因格式不支援、伺服器或網路的問題無法載入媒體。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,已終止播放媒體。","No compatible source was found for this media.":"無法找到相容此媒體的來源。","The media is encrypted and we do not have the keys to decrypt it.":"媒體已加密,無法解密。","Play Video":"播放影片","Close":"關閉","Modal Window":"強制回應視窗","This is a modal window":"此為強制回應視窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按鍵或關閉按鈕來關閉此視窗。",", opens captions settings dialog":", 開啟標題設定對話框",", opens subtitles settings dialog":", 開啟字幕設定對話框",", opens descriptions settings dialog":", 開啟描述設定對話框",", selected":", 選擇","captions settings":"字幕設定","Audio Player":"音訊播放器","Video Player":"視訊播放器","Replay":"重播","Progress Bar":"進度列","Volume Level":"音量","subtitles settings":"字幕設定","descriptions settings":"描述設定","Text":"文字","White":"白","Black":"黑","Red":"紅","Green":"綠","Blue":"藍","Yellow":"黃","Magenta":"紫紅","Cyan":"青","Background":"背景","Window":"視窗","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字型尺寸","Text Edge Style":"字型邊緣樣式","None":"無","Raised":"浮雕","Depressed":"壓低","Uniform":"均勻","Dropshadow":"下陰影","Font Family":"字型系列","Proportional Sans-Serif":"調和間距無襯線字型","Monospace Sans-Serif":"等寬無襯線字型","Proportional Serif":"調和間距襯線字型","Monospace Serif":"等寬襯線字型","Casual":"輕便的","Script":"手寫體","Small Caps":"小型大寫字體","Reset":"重置","restore all settings to the default values":"恢復全部設定至預設值","Done":"完成","Caption Settings Dialog":"字幕設定對話框","Beginning of dialog window. Escape will cancel and close the window.":"開始對話視窗。離開會取消並關閉視窗","End of dialog window.":"結束對話視窗","Seek to live, currently behind live":"快轉至直播,目前為稍早畫面","Seek to live, currently playing live":"快轉至直播,目前為現場畫面","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"{1} 正在載入。","No content":"無內容","Color":"顏色","Opacity":"不透明度","Text Background":"文字背景","Caption Area Background":"字幕區域背景","Skip forward {1} seconds":"快轉 {1} 秒","Skip backward {1} seconds":"倒轉 {1} 秒"}' ); }, }, ]);