react-tv-player
Version:
A React media player component for TV devices. With custom UI and arrow-key navigation, it can play a variety of URLs like file paths, HLS/DASH streams and even YouTube & Vimeo links directly. Packaged as an npm library for easy integration.
7,928 lines • 266 kB
JavaScript
import { jsxs as Ke, jsx as me, Fragment as Mi } from "react/jsx-runtime";
import Ae, { forwardRef as $l, useState as Gi, useEffect as Se, useRef as Fi, useCallback as or } from "react";
var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Gt(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function Vl(e) {
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
var t = e.default;
if (typeof t == "function") {
var r = function n() {
return this instanceof n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
r.prototype = t.prototype;
} else r = {};
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
var a = Object.getOwnPropertyDescriptor(e, n);
Object.defineProperty(r, n, a.get ? a : {
enumerable: !0,
get: function() {
return e[n];
}
});
}), r;
}
var sr = { exports: {} };
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
var Ao;
function Wl() {
return Ao || (Ao = 1, function(e) {
(function() {
var t = {}.hasOwnProperty;
function r() {
for (var i = "", o = 0; o < arguments.length; o++) {
var s = arguments[o];
s && (i = a(i, n(s)));
}
return i;
}
function n(i) {
if (typeof i == "string" || typeof i == "number")
return i;
if (typeof i != "object")
return "";
if (Array.isArray(i))
return r.apply(null, i);
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
return i.toString();
var o = "";
for (var s in i)
t.call(i, s) && i[s] && (o = a(o, s));
return o;
}
function a(i, o) {
return o ? i ? i + " " + o : i + o : i;
}
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
})();
}(sr)), sr.exports;
}
var Yl = Wl();
const pt = /* @__PURE__ */ Gt(Yl);
var ur, To;
function Gl() {
if (To) return ur;
To = 1, ur = function(a, i, o) {
var s = document.head || document.getElementsByTagName("head")[0], u = document.createElement("script");
typeof i == "function" && (o = i, i = {}), i = i || {}, o = o || function() {
}, u.type = i.type || "text/javascript", u.charset = i.charset || "utf8", u.async = "async" in i ? !!i.async : !0, u.src = a, i.attrs && e(u, i.attrs), i.text && (u.text = "" + i.text);
var f = "onload" in u ? t : r;
f(u, o), u.onload || t(u, o), s.appendChild(u);
};
function e(n, a) {
for (var i in a)
n.setAttribute(i, a[i]);
}
function t(n, a) {
n.onload = function() {
this.onerror = this.onload = null, a(null, n);
}, n.onerror = function() {
this.onerror = this.onload = null, a(new Error("Failed to load " + this.src), n);
};
}
function r(n, a) {
n.onreadystatechange = function() {
this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, a(null, n));
};
}
return ur;
}
var cr, Ro;
function qf() {
if (Ro) return cr;
Ro = 1;
var e = function(g) {
return t(g) && !r(g);
};
function t(v) {
return !!v && typeof v == "object";
}
function r(v) {
var g = Object.prototype.toString.call(v);
return g === "[object RegExp]" || g === "[object Date]" || i(v);
}
var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103;
function i(v) {
return v.$$typeof === a;
}
function o(v) {
return Array.isArray(v) ? [] : {};
}
function s(v, g) {
return g.clone !== !1 && g.isMergeableObject(v) ? w(o(v), v, g) : v;
}
function u(v, g, h) {
return v.concat(g).map(function(p) {
return s(p, h);
});
}
function f(v, g) {
if (!g.customMerge)
return w;
var h = g.customMerge(v);
return typeof h == "function" ? h : w;
}
function d(v) {
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(v).filter(function(g) {
return Object.propertyIsEnumerable.call(v, g);
}) : [];
}
function c(v) {
return Object.keys(v).concat(d(v));
}
function m(v, g) {
try {
return g in v;
} catch {
return !1;
}
}
function b(v, g) {
return m(v, g) && !(Object.hasOwnProperty.call(v, g) && Object.propertyIsEnumerable.call(v, g));
}
function T(v, g, h) {
var p = {};
return h.isMergeableObject(v) && c(v).forEach(function(y) {
p[y] = s(v[y], h);
}), c(g).forEach(function(y) {
b(v, y) || (m(v, y) && h.isMergeableObject(g[y]) ? p[y] = f(y, h)(v[y], g[y], h) : p[y] = s(g[y], h));
}), p;
}
function w(v, g, h) {
h = h || {}, h.arrayMerge = h.arrayMerge || u, h.isMergeableObject = h.isMergeableObject || e, h.cloneUnlessOtherwiseSpecified = s;
var p = Array.isArray(g), y = Array.isArray(v), O = p === y;
return O ? p ? h.arrayMerge(v, g, h) : T(v, g, h) : s(g, h);
}
w.all = function(g, h) {
if (!Array.isArray(g))
throw new Error("first argument should be an array");
return g.reduce(function(p, y) {
return w(p, y, h);
}, {});
};
var _ = w;
return cr = _, cr;
}
var fr, ko;
function Xt() {
if (ko) return fr;
ko = 1;
var e = Object.create, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, a = Object.getPrototypeOf, i = Object.prototype.hasOwnProperty, o = (K, S) => {
for (var q in S)
t(K, q, { get: S[q], enumerable: !0 });
}, s = (K, S, q, U) => {
if (S && typeof S == "object" || typeof S == "function")
for (let B of n(S))
!i.call(K, B) && B !== q && t(K, B, { get: () => S[B], enumerable: !(U = r(S, B)) || U.enumerable });
return K;
}, u = (K, S, q) => (q = K != null ? e(a(K)) : {}, s(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
!K || !K.__esModule ? t(q, "default", { value: K, enumerable: !0 }) : q,
K
)), f = (K) => s(t({}, "__esModule", { value: !0 }), K), d = {};
o(d, {
callPlayer: () => E,
getConfig: () => D,
getSDK: () => I,
isBlobUrl: () => X,
isMediaStream: () => F,
lazy: () => T,
omit: () => M,
parseEndTime: () => O,
parseStartTime: () => y,
queryString: () => L,
randomString: () => x,
supportsWebKitPresentationMode: () => ae
}), fr = f(d);
var c = u(Ae), m = u(Gl()), b = u(qf());
const T = (K) => c.default.lazy(async () => {
const S = await K();
return typeof S.default == "function" ? S : S.default;
}), w = /[?&#](?:start|t)=([0-9hms]+)/, _ = /[?&#]end=([0-9hms]+)/, v = /(\d+)(h|m|s)/g, g = /^\d+$/;
function h(K, S) {
if (K instanceof Array)
return;
const q = K.match(S);
if (q) {
const U = q[1];
if (U.match(v))
return p(U);
if (g.test(U))
return parseInt(U);
}
}
function p(K) {
let S = 0, q = v.exec(K);
for (; q !== null; ) {
const [, U, B] = q;
B === "h" && (S += parseInt(U, 10) * 60 * 60), B === "m" && (S += parseInt(U, 10) * 60), B === "s" && (S += parseInt(U, 10)), q = v.exec(K);
}
return S;
}
function y(K) {
return h(K, w);
}
function O(K) {
return h(K, _);
}
function x() {
return Math.random().toString(36).substr(2, 5);
}
function L(K) {
return Object.keys(K).map((S) => `${S}=${K[S]}`).join("&");
}
function A(K) {
return window[K] ? window[K] : window.exports && window.exports[K] ? window.exports[K] : window.module && window.module.exports && window.module.exports[K] ? window.module.exports[K] : null;
}
const N = {}, I = function(S, q, U = null, B = () => !0, W = m.default) {
const G = A(q);
return G && B(G) ? Promise.resolve(G) : new Promise((J, Z) => {
if (N[S]) {
N[S].push({ resolve: J, reject: Z });
return;
}
N[S] = [{ resolve: J, reject: Z }];
const Q = (ee) => {
N[S].forEach((j) => j.resolve(ee));
};
if (U) {
const ee = window[U];
window[U] = function() {
ee && ee(), Q(A(q));
};
}
W(S, (ee) => {
ee ? (N[S].forEach((j) => j.reject(ee)), N[S] = null) : U || Q(A(q));
});
});
};
function D(K, S) {
return (0, b.default)(S.config, K.config);
}
function M(K, ...S) {
const q = [].concat(...S), U = {}, B = Object.keys(K);
for (const W of B)
q.indexOf(W) === -1 && (U[W] = K[W]);
return U;
}
function E(K, ...S) {
if (!this.player || !this.player[K]) {
let q = `ReactPlayer: ${this.constructor.displayName} player could not call %c${K}%c – `;
return this.player ? this.player[K] || (q += "The method was not available") : q += "The player was not available", console.warn(q, "font-weight: bold", ""), null;
}
return this.player[K](...S);
}
function F(K) {
return typeof window < "u" && typeof window.MediaStream < "u" && K instanceof window.MediaStream;
}
function X(K) {
return /^blob:/.test(K);
}
function ae(K = document.createElement("video")) {
const S = /iPhone|iPod/.test(navigator.userAgent) === !1;
return K.webkitSupportsPresentationMode && typeof K.webkitSetPresentationMode == "function" && S;
}
function pe(K) {
return K;
}
return fr;
}
var lr, Io;
function Xl() {
if (Io) return lr;
Io = 1;
var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, n = Object.prototype.hasOwnProperty, a = (E, F) => {
for (var X in F)
e(E, X, { get: F[X], enumerable: !0 });
}, i = (E, F, X, ae) => {
if (F && typeof F == "object" || typeof F == "function")
for (let pe of r(F))
!n.call(E, pe) && pe !== X && e(E, pe, { get: () => F[pe], enumerable: !(ae = t(F, pe)) || ae.enumerable });
return E;
}, o = (E) => i(e({}, "__esModule", { value: !0 }), E), s = {};
a(s, {
AUDIO_EXTENSIONS: () => x,
DASH_EXTENSIONS: () => N,
FLV_EXTENSIONS: () => I,
HLS_EXTENSIONS: () => A,
MATCH_URL_DAILYMOTION: () => h,
MATCH_URL_FACEBOOK: () => b,
MATCH_URL_FACEBOOK_WATCH: () => T,
MATCH_URL_KALTURA: () => O,
MATCH_URL_MIXCLOUD: () => p,
MATCH_URL_MUX: () => m,
MATCH_URL_SOUNDCLOUD: () => d,
MATCH_URL_STREAMABLE: () => w,
MATCH_URL_TWITCH_CHANNEL: () => g,
MATCH_URL_TWITCH_VIDEO: () => v,
MATCH_URL_VIDYARD: () => y,
MATCH_URL_VIMEO: () => c,
MATCH_URL_WISTIA: () => _,
MATCH_URL_YOUTUBE: () => f,
VIDEO_EXTENSIONS: () => L,
canPlay: () => M
}), lr = o(s);
var u = /* @__PURE__ */ Xt();
const f = /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//, d = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/, c = /vimeo\.com\/(?!progressive_redirect).+/, m = /stream\.mux\.com\/(\w+)/, b = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/, T = /^https?:\/\/fb\.watch\/.+$/, w = /streamable\.com\/([a-z0-9]+)$/, _ = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/, v = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/, g = /(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/, h = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/, p = /mixcloud\.com\/([^/]+\/[^/]+)/, y = /vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/, O = /^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/, x = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i, L = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i, A = /\.(m3u8)($|\?)/i, N = /\.(mpd)($|\?)/i, I = /\.(flv)($|\?)/i, D = (E) => {
if (E instanceof Array) {
for (const F of E)
if (typeof F == "string" && D(F) || D(F.src))
return !0;
return !1;
}
return (0, u.isMediaStream)(E) || (0, u.isBlobUrl)(E) ? !0 : x.test(E) || L.test(E) || A.test(E) || N.test(E) || I.test(E);
}, M = {
youtube: (E) => E instanceof Array ? E.every((F) => f.test(F)) : f.test(E),
soundcloud: (E) => d.test(E) && !x.test(E),
vimeo: (E) => c.test(E) && !L.test(E) && !A.test(E),
mux: (E) => m.test(E),
facebook: (E) => b.test(E) || T.test(E),
streamable: (E) => w.test(E),
wistia: (E) => _.test(E),
twitch: (E) => v.test(E) || g.test(E),
dailymotion: (E) => h.test(E),
mixcloud: (E) => p.test(E),
vidyard: (E) => y.test(E),
kaltura: (E) => O.test(E),
file: D
};
return lr;
}
var dr, Mo;
function Jl() {
if (Mo) return dr;
Mo = 1;
var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, n = Object.prototype.hasOwnProperty, a = (c, m) => {
for (var b in m)
e(c, b, { get: m[b], enumerable: !0 });
}, i = (c, m, b, T) => {
if (m && typeof m == "object" || typeof m == "function")
for (let w of r(m))
!n.call(c, w) && w !== b && e(c, w, { get: () => m[w], enumerable: !(T = t(m, w)) || T.enumerable });
return c;
}, o = (c) => i(e({}, "__esModule", { value: !0 }), c), s = {};
a(s, {
default: () => d
}), dr = o(s);
var u = /* @__PURE__ */ Xt(), f = /* @__PURE__ */ Xl(), d = [
{
key: "youtube",
name: "YouTube",
canPlay: f.canPlay.youtube,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerYouTube' */
"./YouTube-DiqIX_pi.js"
).then((c) => c.Y))
},
{
key: "soundcloud",
name: "SoundCloud",
canPlay: f.canPlay.soundcloud,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerSoundCloud' */
"./SoundCloud--678uCdQ.js"
).then((c) => c.S))
},
{
key: "vimeo",
name: "Vimeo",
canPlay: f.canPlay.vimeo,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerVimeo' */
"./Vimeo-Dwyd1QTJ.js"
).then((c) => c.V))
},
{
key: "mux",
name: "Mux",
canPlay: f.canPlay.mux,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerMux' */
"./Mux-BDucjIaO.js"
).then((c) => c.M))
},
{
key: "facebook",
name: "Facebook",
canPlay: f.canPlay.facebook,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerFacebook' */
"./Facebook-BY4VJbab.js"
).then((c) => c.F))
},
{
key: "streamable",
name: "Streamable",
canPlay: f.canPlay.streamable,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerStreamable' */
"./Streamable-BVF_Z7WI.js"
).then((c) => c.S))
},
{
key: "wistia",
name: "Wistia",
canPlay: f.canPlay.wistia,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerWistia' */
"./Wistia-CRYFeWoP.js"
).then((c) => c.W))
},
{
key: "twitch",
name: "Twitch",
canPlay: f.canPlay.twitch,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerTwitch' */
"./Twitch-d55t1eqk.js"
).then((c) => c.T))
},
{
key: "dailymotion",
name: "DailyMotion",
canPlay: f.canPlay.dailymotion,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerDailyMotion' */
"./DailyMotion-BxIESnj_.js"
).then((c) => c.D))
},
{
key: "mixcloud",
name: "Mixcloud",
canPlay: f.canPlay.mixcloud,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerMixcloud' */
"./Mixcloud-Bqoho2jX.js"
).then((c) => c.M))
},
{
key: "vidyard",
name: "Vidyard",
canPlay: f.canPlay.vidyard,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerVidyard' */
"./Vidyard-Dkn0MzvY.js"
).then((c) => c.V))
},
{
key: "kaltura",
name: "Kaltura",
canPlay: f.canPlay.kaltura,
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerKaltura' */
"./Kaltura-irPHNR5Q.js"
).then((c) => c.K))
},
{
key: "file",
name: "FilePlayer",
canPlay: f.canPlay.file,
canEnablePIP: (c) => f.canPlay.file(c) && (document.pictureInPictureEnabled || (0, u.supportsWebKitPresentationMode)()) && !f.AUDIO_EXTENSIONS.test(c),
lazyPlayer: (0, u.lazy)(() => import(
/* webpackChunkName: 'reactPlayerFilePlayer' */
"./FilePlayer-CCJCE4nb.js"
).then((c) => c.F))
}
];
return dr;
}
var Fo = Number.isNaN || function(t) {
return typeof t == "number" && t !== t;
};
function Zl(e, t) {
return !!(e === t || Fo(e) && Fo(t));
}
function Ql(e, t) {
if (e.length !== t.length)
return !1;
for (var r = 0; r < e.length; r++)
if (!Zl(e[r], t[r]))
return !1;
return !0;
}
function ed(e, t) {
t === void 0 && (t = Ql);
var r, n = [], a, i = !1;
function o() {
for (var s = [], u = 0; u < arguments.length; u++)
s[u] = arguments[u];
return i && r === this && t(s, n) || (a = e.apply(this, s), i = !0, r = this, n = s), a;
}
return o;
}
const td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: ed
}, Symbol.toStringTag, { value: "Module" })), rd = /* @__PURE__ */ Vl(td);
var vr, Lo;
function Nf() {
if (Lo) return vr;
Lo = 1;
var e = typeof Element < "u", t = typeof Map == "function", r = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
function a(i, o) {
if (i === o) return !0;
if (i && o && typeof i == "object" && typeof o == "object") {
if (i.constructor !== o.constructor) return !1;
var s, u, f;
if (Array.isArray(i)) {
if (s = i.length, s != o.length) return !1;
for (u = s; u-- !== 0; )
if (!a(i[u], o[u])) return !1;
return !0;
}
var d;
if (t && i instanceof Map && o instanceof Map) {
if (i.size !== o.size) return !1;
for (d = i.entries(); !(u = d.next()).done; )
if (!o.has(u.value[0])) return !1;
for (d = i.entries(); !(u = d.next()).done; )
if (!a(u.value[1], o.get(u.value[0]))) return !1;
return !0;
}
if (r && i instanceof Set && o instanceof Set) {
if (i.size !== o.size) return !1;
for (d = i.entries(); !(u = d.next()).done; )
if (!o.has(u.value[0])) return !1;
return !0;
}
if (n && ArrayBuffer.isView(i) && ArrayBuffer.isView(o)) {
if (s = i.length, s != o.length) return !1;
for (u = s; u-- !== 0; )
if (i[u] !== o[u]) return !1;
return !0;
}
if (i.constructor === RegExp) return i.source === o.source && i.flags === o.flags;
if (i.valueOf !== Object.prototype.valueOf && typeof i.valueOf == "function" && typeof o.valueOf == "function") return i.valueOf() === o.valueOf();
if (i.toString !== Object.prototype.toString && typeof i.toString == "function" && typeof o.toString == "function") return i.toString() === o.toString();
if (f = Object.keys(i), s = f.length, s !== Object.keys(o).length) return !1;
for (u = s; u-- !== 0; )
if (!Object.prototype.hasOwnProperty.call(o, f[u])) return !1;
if (e && i instanceof Element) return !1;
for (u = s; u-- !== 0; )
if (!((f[u] === "_owner" || f[u] === "__v" || f[u] === "__o") && i.$$typeof) && !a(i[f[u]], o[f[u]]))
return !1;
return !0;
}
return i !== i && o !== o;
}
return vr = function(o, s) {
try {
return a(o, s);
} catch (u) {
if ((u.message || "").match(/stack|recursion/i))
return console.warn("react-fast-compare cannot handle circular refs"), !1;
throw u;
}
}, vr;
}
var Tt = { exports: {} }, Rt = { exports: {} }, ue = {};
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var qo;
function nd() {
if (qo) return ue;
qo = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
function h(y) {
if (typeof y == "object" && y !== null) {
var O = y.$$typeof;
switch (O) {
case t:
switch (y = y.type, y) {
case u:
case f:
case n:
case i:
case a:
case c:
return y;
default:
switch (y = y && y.$$typeof, y) {
case s:
case d:
case T:
case b:
case o:
return y;
default:
return O;
}
}
case r:
return O;
}
}
}
function p(y) {
return h(y) === f;
}
return ue.AsyncMode = u, ue.ConcurrentMode = f, ue.ContextConsumer = s, ue.ContextProvider = o, ue.Element = t, ue.ForwardRef = d, ue.Fragment = n, ue.Lazy = T, ue.Memo = b, ue.Portal = r, ue.Profiler = i, ue.StrictMode = a, ue.Suspense = c, ue.isAsyncMode = function(y) {
return p(y) || h(y) === u;
}, ue.isConcurrentMode = p, ue.isContextConsumer = function(y) {
return h(y) === s;
}, ue.isContextProvider = function(y) {
return h(y) === o;
}, ue.isElement = function(y) {
return typeof y == "object" && y !== null && y.$$typeof === t;
}, ue.isForwardRef = function(y) {
return h(y) === d;
}, ue.isFragment = function(y) {
return h(y) === n;
}, ue.isLazy = function(y) {
return h(y) === T;
}, ue.isMemo = function(y) {
return h(y) === b;
}, ue.isPortal = function(y) {
return h(y) === r;
}, ue.isProfiler = function(y) {
return h(y) === i;
}, ue.isStrictMode = function(y) {
return h(y) === a;
}, ue.isSuspense = function(y) {
return h(y) === c;
}, ue.isValidElementType = function(y) {
return typeof y == "string" || typeof y == "function" || y === n || y === f || y === i || y === a || y === c || y === m || typeof y == "object" && y !== null && (y.$$typeof === T || y.$$typeof === b || y.$$typeof === o || y.$$typeof === s || y.$$typeof === d || y.$$typeof === _ || y.$$typeof === v || y.$$typeof === g || y.$$typeof === w);
}, ue.typeOf = h, ue;
}
var ce = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var No;
function ad() {
return No || (No = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
function h(l) {
return typeof l == "string" || typeof l == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
l === n || l === f || l === i || l === a || l === c || l === m || typeof l == "object" && l !== null && (l.$$typeof === T || l.$$typeof === b || l.$$typeof === o || l.$$typeof === s || l.$$typeof === d || l.$$typeof === _ || l.$$typeof === v || l.$$typeof === g || l.$$typeof === w);
}
function p(l) {
if (typeof l == "object" && l !== null) {
var P = l.$$typeof;
switch (P) {
case t:
var C = l.type;
switch (C) {
case u:
case f:
case n:
case i:
case a:
case c:
return C;
default:
var k = C && C.$$typeof;
switch (k) {
case s:
case d:
case T:
case b:
case o:
return k;
default:
return P;
}
}
case r:
return P;
}
}
}
var y = u, O = f, x = s, L = o, A = t, N = d, I = n, D = T, M = b, E = r, F = i, X = a, ae = c, pe = !1;
function K(l) {
return pe || (pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(l) || p(l) === u;
}
function S(l) {
return p(l) === f;
}
function q(l) {
return p(l) === s;
}
function U(l) {
return p(l) === o;
}
function B(l) {
return typeof l == "object" && l !== null && l.$$typeof === t;
}
function W(l) {
return p(l) === d;
}
function G(l) {
return p(l) === n;
}
function J(l) {
return p(l) === T;
}
function Z(l) {
return p(l) === b;
}
function Q(l) {
return p(l) === r;
}
function ee(l) {
return p(l) === i;
}
function j(l) {
return p(l) === a;
}
function R(l) {
return p(l) === c;
}
ce.AsyncMode = y, ce.ConcurrentMode = O, ce.ContextConsumer = x, ce.ContextProvider = L, ce.Element = A, ce.ForwardRef = N, ce.Fragment = I, ce.Lazy = D, ce.Memo = M, ce.Portal = E, ce.Profiler = F, ce.StrictMode = X, ce.Suspense = ae, ce.isAsyncMode = K, ce.isConcurrentMode = S, ce.isContextConsumer = q, ce.isContextProvider = U, ce.isElement = B, ce.isForwardRef = W, ce.isFragment = G, ce.isLazy = J, ce.isMemo = Z, ce.isPortal = Q, ce.isProfiler = ee, ce.isStrictMode = j, ce.isSuspense = R, ce.isValidElementType = h, ce.typeOf = p;
}()), ce;
}
var Do;
function Df() {
return Do || (Do = 1, process.env.NODE_ENV === "production" ? Rt.exports = nd() : Rt.exports = ad()), Rt.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var pr, jo;
function id() {
if (jo) return pr;
jo = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
function n(i) {
if (i == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(i);
}
function a() {
try {
if (!Object.assign)
return !1;
var i = new String("abc");
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
return !1;
for (var o = {}, s = 0; s < 10; s++)
o["_" + String.fromCharCode(s)] = s;
var u = Object.getOwnPropertyNames(o).map(function(d) {
return o[d];
});
if (u.join("") !== "0123456789")
return !1;
var f = {};
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
f[d] = d;
}), Object.keys(Object.assign({}, f)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return pr = a() ? Object.assign : function(i, o) {
for (var s, u = n(i), f, d = 1; d < arguments.length; d++) {
s = Object(arguments[d]);
for (var c in s)
t.call(s, c) && (u[c] = s[c]);
if (e) {
f = e(s);
for (var m = 0; m < f.length; m++)
r.call(s, f[m]) && (u[f[m]] = s[f[m]]);
}
}
return u;
}, pr;
}
var hr, Ko;
function Xi() {
if (Ko) return hr;
Ko = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return hr = e, hr;
}
var yr, Uo;
function jf() {
return Uo || (Uo = 1, yr = Function.call.bind(Object.prototype.hasOwnProperty)), yr;
}
var mr, zo;
function od() {
if (zo) return mr;
zo = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = /* @__PURE__ */ Xi(), r = {}, n = /* @__PURE__ */ jf();
e = function(i) {
var o = "Warning: " + i;
typeof console < "u" && console.error(o);
try {
throw new Error(o);
} catch {
}
};
}
function a(i, o, s, u, f) {
if (process.env.NODE_ENV !== "production") {
for (var d in i)
if (n(i, d)) {
var c;
try {
if (typeof i[d] != "function") {
var m = Error(
(u || "React class") + ": " + s + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw m.name = "Invariant Violation", m;
}
c = i[d](o, d, u, s, null, t);
} catch (T) {
c = T;
}
if (c && !(c instanceof Error) && e(
(u || "React class") + ": type specification of " + s + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), c instanceof Error && !(c.message in r)) {
r[c.message] = !0;
var b = f ? f() : "";
e(
"Failed " + s + " type: " + c.message + (b ?? "")
);
}
}
}
}
return a.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (r = {});
}, mr = a, mr;
}
var gr, Ho;
function sd() {
if (Ho) return gr;
Ho = 1;
var e = Df(), t = id(), r = /* @__PURE__ */ Xi(), n = /* @__PURE__ */ jf(), a = /* @__PURE__ */ od(), i = function() {
};
process.env.NODE_ENV !== "production" && (i = function(s) {
var u = "Warning: " + s;
typeof console < "u" && console.error(u);
try {
throw new Error(u);
} catch {
}
});
function o() {
return null;
}
return gr = function(s, u) {
var f = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
function c(S) {
var q = S && (f && S[f] || S[d]);
if (typeof q == "function")
return q;
}
var m = "<<anonymous>>", b = {
array: v("array"),
bigint: v("bigint"),
bool: v("boolean"),
func: v("function"),
number: v("number"),
object: v("object"),
string: v("string"),
symbol: v("symbol"),
any: g(),
arrayOf: h,
element: p(),
elementType: y(),
instanceOf: O,
node: N(),
objectOf: L,
oneOf: x,
oneOfType: A,
shape: D,
exact: M
};
function T(S, q) {
return S === q ? S !== 0 || 1 / S === 1 / q : S !== S && q !== q;
}
function w(S, q) {
this.message = S, this.data = q && typeof q == "object" ? q : {}, this.stack = "";
}
w.prototype = Error.prototype;
function _(S) {
if (process.env.NODE_ENV !== "production")
var q = {}, U = 0;
function B(G, J, Z, Q, ee, j, R) {
if (Q = Q || m, j = j || Z, R !== r) {
if (u) {
var l = 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 l.name = "Invariant Violation", l;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var P = Q + ":" + Z;
!q[P] && // Avoid spamming the console because they are often not actionable except for lib authors
U < 3 && (i(
"You are manually calling a React.PropTypes validation function for the `" + j + "` prop on `" + Q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
), q[P] = !0, U++);
}
}
return J[Z] == null ? G ? J[Z] === null ? new w("The " + ee + " `" + j + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new w("The " + ee + " `" + j + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : S(J, Z, Q, ee, j);
}
var W = B.bind(null, !1);
return W.isRequired = B.bind(null, !0), W;
}
function v(S) {
function q(U, B, W, G, J, Z) {
var Q = U[B], ee = X(Q);
if (ee !== S) {
var j = ae(Q);
return new w(
"Invalid " + G + " `" + J + "` of type " + ("`" + j + "` supplied to `" + W + "`, expected ") + ("`" + S + "`."),
{ expectedType: S }
);
}
return null;
}
return _(q);
}
function g() {
return _(o);
}
function h(S) {
function q(U, B, W, G, J) {
if (typeof S != "function")
return new w("Property `" + J + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
var Z = U[B];
if (!Array.isArray(Z)) {
var Q = X(Z);
return new w("Invalid " + G + " `" + J + "` of type " + ("`" + Q + "` supplied to `" + W + "`, expected an array."));
}
for (var ee = 0; ee < Z.length; ee++) {
var j = S(Z, ee, W, G, J + "[" + ee + "]", r);
if (j instanceof Error)
return j;
}
return null;
}
return _(q);
}
function p() {
function S(q, U, B, W, G) {
var J = q[U];
if (!s(J)) {
var Z = X(J);
return new w("Invalid " + W + " `" + G + "` of type " + ("`" + Z + "` supplied to `" + B + "`, expected a single ReactElement."));
}
return null;
}
return _(S);
}
function y() {
function S(q, U, B, W, G) {
var J = q[U];
if (!e.isValidElementType(J)) {
var Z = X(J);
return new w("Invalid " + W + " `" + G + "` of type " + ("`" + Z + "` supplied to `" + B + "`, expected a single ReactElement type."));
}
return null;
}
return _(S);
}
function O(S) {
function q(U, B, W, G, J) {
if (!(U[B] instanceof S)) {
var Z = S.name || m, Q = K(U[B]);
return new w("Invalid " + G + " `" + J + "` of type " + ("`" + Q + "` supplied to `" + W + "`, expected ") + ("instance of `" + Z + "`."));
}
return null;
}
return _(q);
}
function x(S) {
if (!Array.isArray(S))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
) : i("Invalid argument supplied to oneOf, expected an array.")), o;
function q(U, B, W, G, J) {
for (var Z = U[B], Q = 0; Q < S.length; Q++)
if (T(Z, S[Q]))
return null;
var ee = JSON.stringify(S, function(R, l) {
var P = ae(l);
return P === "symbol" ? String(l) : l;
});
return new w("Invalid " + G + " `" + J + "` of value `" + String(Z) + "` " + ("supplied to `" + W + "`, expected one of " + ee + "."));
}
return _(q);
}
function L(S) {
function q(U, B, W, G, J) {
if (typeof S != "function")
return new w("Property `" + J + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
var Z = U[B], Q = X(Z);
if (Q !== "object")
return new w("Invalid " + G + " `" + J + "` of type " + ("`" + Q + "` supplied to `" + W + "`, expected an object."));
for (var ee in Z)
if (n(Z, ee)) {
var j = S(Z, ee, W, G, J + "." + ee, r);
if (j instanceof Error)
return j;
}
return null;
}
return _(q);
}
function A(S) {
if (!Array.isArray(S))
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), o;
for (var q = 0; q < S.length; q++) {
var U = S[q];
if (typeof U != "function")
return i(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(U) + " at index " + q + "."
), o;
}
function B(W, G, J, Z, Q) {
for (var ee = [], j = 0; j < S.length; j++) {
var R = S[j], l = R(W, G, J, Z, Q, r);
if (l == null)
return null;
l.data && n(l.data, "expectedType") && ee.push(l.data.expectedType);
}
var P = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
return new w("Invalid " + Z + " `" + Q + "` supplied to " + ("`" + J + "`" + P + "."));
}
return _(B);
}
function N() {
function S(q, U, B, W, G) {
return E(q[U]) ? null : new w("Invalid " + W + " `" + G + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
}
return _(S);
}
function I(S, q, U, B, W) {
return new w(
(S || "React class") + ": " + q + " type `" + U + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
);
}
function D(S) {
function q(U, B, W, G, J) {
var Z = U[B], Q = X(Z);
if (Q !== "object")
return new w("Invalid " + G + " `" + J + "` of type `" + Q + "` " + ("supplied to `" + W + "`, expected `object`."));
for (var ee in S) {
var j = S[ee];
if (typeof j != "function")
return I(W, G, J, ee, ae(j));
var R = j(Z, ee, W, G, J + "." + ee, r);
if (R)
return R;
}
return null;
}
return _(q);
}
function M(S) {
function q(U, B, W, G, J) {
var Z = U[B], Q = X(Z);
if (Q !== "object")
return new w("Invalid " + G + " `" + J + "` of type `" + Q + "` " + ("supplied to `" + W + "`, expected `object`."));
var ee = t({}, U[B], S);
for (var j in ee) {
var R = S[j];
if (n(S, j) && typeof R != "function")
return I(W, G, J, j, ae(R));
if (!R)
return new w(
"Invalid " + G + " `" + J + "` key `" + j + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(U[B], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
);
var l = R(Z, j, W, G, J + "." + j, r);
if (l)
return l;
}
return null;
}
return _(q);
}
function E(S) {
switch (typeof S) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !S;
case "object":
if (Array.isArray(S))
return S.every(E);
if (S === null || s(S))
return !0;
var q = c(S);
if (q) {
var U = q.call(S), B;
if (q !== S.entries) {
for (; !(B = U.next()).done; )
if (!E(B.value))
return !1;
} else
for (; !(B = U.next()).done; ) {
var W = B.value;
if (W && !E(W[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function F(S, q) {
return S === "symbol" ? !0 : q ? q["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && q instanceof Symbol : !1;
}
function X(S) {
var q = typeof S;
return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" : F(q, S) ? "symbol" : q;
}
function ae(S) {
if (typeof S > "u" || S === null)
return "" + S;
var q = X(S);
if (q === "object") {
if (S instanceof Date)
return "date";
if (S instanceof RegExp)
return "regexp";
}
return q;
}
function pe(S) {
var q = ae(S);
switch (q) {
case "array":
case "object":
return "an " + q;
case "boolean":
case "date":
case "regexp":
return "a " + q;
default:
return q;
}
}
function K(S) {
return !S.constructor || !S.constructor.name ? m : S.constructor.name;
}
return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
}, gr;
}
var br, Bo;
function ud() {
if (Bo) return br;
Bo = 1;
var e = /* @__PURE__ */ Xi();
function t() {
}
function r() {
}
return r.resetWarningCache = t, br = function() {
function n(o, s, u, f, d, c) {
if (c !== e) {
var m = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
);
throw m.name = "Invariant Violation", m;
}
}
n.isRequired = n;
function a() {
return n;
}
var i = {
array: n,
bigint: n,
bool: n,
func: n,
number: n,
object: n,
string: n,
symbol: n,
any: n,
arrayOf: a,
element: n,
elementType: n,
instanceOf: a,
node: n,
objectOf: a,
oneOf: a,
oneOfType: a,
shape: a,
exact: a,
checkPropTypes: r,
resetWarningCache: t
};
return i.PropTypes = i, i;
}, br;
}
var $o;
function Kf() {
if ($o) return Tt.exports;
if ($o = 1, process.env.NODE_ENV !== "production") {
var e = Df(), t = !0;
Tt.exports = /* @__PURE__ */ sd()(e.isElement, t);
} else
Tt.exports = /* @__PURE__ */ ud()();
return Tt.exports;
}
var _r, Vo;
function Uf() {
if (Vo) return _r;
Vo = 1;
var e = Object.create, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, a = Object.getPrototypeOf, i = Object.prototype.hasOwnProperty, o = (L, A) => {
for (var N in A)
t(L, N, { get: A[N], enumerable: !0 });
}, s = (L, A, N, I) => {
if (A && typeof A == "object" || typeof A == "function")
for (let D of n(A))
!i.call(L, D) && D !== N && t(L, D, { get: () => A[D], enumerable: !(I = r(A, D)) || I.enumerable });
return L;
}, u = (L, A, N) => (N = L != null ? e(a(L)) : {}, s(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
!L || !L.__esModule ? t(N, "default", { value: L, enumerable: !0 }) : N,
L
)), f = (L) => s(t({}, "__esModule", { value: !0 }), L), d = {};
o(d, {
defaultProps: () => x,
propTypes: () => y
}), _r = f(d);
var c = u(/* @__PURE__ */ Kf());
const { string: m, bool: b, number: T, array: w, oneOfType: _, shape: v, object: g, func: h, node: p } = c.default, y = {
url: _([m, w, g]),
playing: b,
loop: b,
controls: b,
volume: T,
muted: b,
playbackRate: T,
width: _([m, T]),
height: _([m, T]),
style: g,
progressInterval: T,
playsinline: b,
pip: b,
stopOnUnmount: b,
light: _([b, m, g]),
playIcon: p,
previewTabIndex: T,
previewAriaLabel: m,
fallback: p,
oEmbedUrl: m,
wrapper: _([
m,
h,
v({ render: h.isRequired })
]),
config: v({
soundcloud: v({
options: g
}),
youtube: v({
playerVars: g,
embedOptions: g,
onUnstarted: h
}),
facebook: v({
appId: m,
version: m,
playerId: m,
attributes: g
}),
dailymotion: v({
params: g
}),
vimeo: v({
playerOptions: g,
title: m
}),
mux: v({
attributes: g,
version: m
}),
file: v({
attributes: g,
tracks: w,
forceVideo: b,
forceAudio: b,
forceHLS: b,
forceSafariHLS: b,
forceDisableHls: b,
forceDASH: b,
forceFLV: b,
hlsOptions: g,
hlsVersion: m,
dashVersion: m,
flvVersion: m
}),
wistia: v({
options: g,
playerId: m,
customControls: w
}),
mixcloud: v({
options: g
}),
twitch: v({
options: g,
playerId: m
}),
vidyard: v({
options: g
})
}),
onReady: h,
onStart: h,
onPlay: h,
onPause: h,
onBuffer: h,
onBufferEnd: h,
onEnded: h,
onError: h,
onDuration: h,
onSeek: h,
onPlaybackRateChange: h,
onPlaybackQualityChange: h,
onProgress: h,
onClickPreview: h,
onEnablePIP: h,
onDisablePIP: h
}, O = () => {
}, x = {
playing: !1,
loop: !1,
controls: !1,
volume: null,
muted: !1,
playbackRate: 1,
width: "640px",
height: "360px",
style: {},
progressInterval: 1e3,
playsinline: !1,
pip: !1,
stopOnUnmount: !0,
light: !1,
fallback: null,
wrapper: "div",
previewTabIndex: 0,
previewAriaLabel: "",
oEmbedUrl: "https://noembed.com/embed?url={url}",
config: {
soundcloud: {
options: {
visual: !0,
// Undocumented, but makes player fill container and look better
buying: !1,
liking: !1,
download: !1,
sharing: !1,
show_comments: !1,
show_playcount: !1
}
},
youtube: {
playerVars: {
playsinline: 1,
showinfo: 0,
rel: 0,
iv_load_policy: 3,
modestbranding: 1
},
embedOptions: {},
onUnstarted: O
},
facebook: {
appId: "1309697205772819",
version: "v3.3",
playerId: null,
attributes: {}
},
dailymotion: {
params: {
api: 1,
"endscreen-enable": !1
}
},
vimeo: {
playerOptions: {
autopause: !1,
byline: !1,
portrait: !1,
title: !1
},
title: null
},
mux: {
attributes: {},
version: "2"
},
file: {
attributes: {},
tracks: [],
forceVideo: !1,
forceAudio: !1,
forceHLS: !1,
forceDASH: !1,
forceFLV: !1,
hlsOptions: {},
hlsVersion: "1.1.4",
dashVersion: "3.1.3",
flvVersion: "1.5.0",
forceDisableHls: !1
},
wistia: {
options: {},
playerId: null,
customControls: null
},
mixcloud: {
options: {
hide_cover: 1
}
},
twitch: {
options: {},
playerId: null
},
vidyard: {
options: {}
}
},
onReady: O,
onStart: O,
onPlay: O,
onPause: O,
onBuffer: O,
onBufferEnd: O,
onEnded: O,
onError: O,
onDuration: O,
onSeek: O,
onPlaybackRateChange: O,
onPlaybackQualityChange: O,
onProgress: O,
onClickPreview: O,
onEnablePIP: O,
onDisablePIP: O
};
return _r;
}
var wr, Wo;
function cd() {
if (Wo) return wr;
Wo = 1;
var e = Object.create, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, a = Object.getPrototypeOf, i = Object.prototype.hasOwnProperty, o = (h, p, y) => p in h ? t(h, p, { enumerable: !0, configurable: !0, writable: !0, value: y }) : h[p] = y, s = (h, p) => {
for (var y in p)
t(h, y, { get: p[y], enumerable: !0 });
}, u = (h, p, y, O) => {
if (p && typeof p == "object" || typeof p == "function")
for (let x of n(p))
!i.call(h, x) && x !== y && t(h, x, { get: () => p[x], enumerable: !(O = r(p, x)) || O.enumerable });
return h;
}, f = (h, p, y) => (y = h != null ? e(a(h)) : {}, u(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
!h || !h.__esModule ? t(y, "default", { value: h, enumerable: !0 }) : y,
h
)), d = (h) => u(t({}, "__esModule", { value: !0 }), h), c = (h, p, y) => (o(h, typeof p != "symbol" ? p + "" : p, y), y), m = {};
s(m, {
default: () => g
}), wr = d(m);
var b = f(Ae), T = f(Nf()), w = /* @__PURE__ */ Uf(), _ = /* @__PURE__ */ Xt();
const v = 5e3;
class g extends b.Component {
constructor() {
super(...arguments), c(this, "mounted", !1), c(this, "isReady", !1), c(this, "isPlaying", !1), c(this, "isLoading", !0), c(this, "loadOnReady", null), c(this, "startOnPlay", !0), c(this, "seekOnPlay", null), c(this, "onDurationCalled", !1), c(this, "handlePlayerMount", (p) => {
if (this.player) {
this.progress();
return;
}
this.player = p, this.player.load(this.props.url), this.progress();
}), c(this, "getInternalPlayer", (p) => this.player ? this.player[p] : null), c(this, "progress", () => {
if (this.props.url && this.player && this.isReady) {
const p = this.getCurrentTime() || 0, y = this.getSecondsLoaded(), O = this.getDuration();
if (O) {
const x = {
playedSeconds: p,
played: p / O
};
y !== null && (x.loadedSeconds = y, x.loaded = y / O), (x.playedSeconds !== this.prevPlayed || x.loadedSeconds !== this.prevLoaded) && this.props.onProgress(x), this.prevPlayed = x.playedSeconds, this.prevLoaded = x.loadedSeconds;
}
}
this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency || this.props.progressInterval);
}), c(this, "handleReady", () => {
if (!this.mounted)
return;
this.isReady = !0, this.isLoading = !1;
const { onReady: p, playing: y, volume: O, muted: x } = this.props;
p(), !x && O !== null && this.player.setVolume(O), this.loadOnReady ? (this.player.load(this.loadOnReady, !0), this.loadOnReady = null) : y && this.player.play(), this.handleDurationCheck();
}), c(this, "handlePlay", () => {
this.isPlaying = !0, this.isLoading = !1;
const { onStart: p, onPlay: y, playbackRate: O } = this.props;
this.startOnPlay && (this.player.setPlaybackRate && O !== 1 && this.player.setPlaybackRate(O), p(), this.startOnPlay = !1), y(), this.seekOnPlay && (this.seekTo(this.seekOnPlay), this.seekOnPlay = null), this.handleDurationCheck();
}), c(this, "handlePause", (p) => {
this.isPlaying = !1, this.isLoading || this.props.onPause(p);
}), c(this, "handleEnded", () => {
const { activePlayer: p, loop: y, onEnded: O } = this.props;
p.loopOnEnded && y && this.seekTo(0), y || (this.isPlaying = !1, O());
}), c(this, "handleError", (...p) => {
this.isLoading = !1, this.props.onError(...p);
}), c(this, "handleDurationCheck", () => {
clearTimeout(this.durationCheckTimeout);
const p = this.getDuration();
p ? this.onDurationCalled || (this.props.onDuration(p), this.onDurationCalled = !0) : this.durationCheckTimeout = setTimeout(this.handleDurationCheck, 100);
}), c(this, "handleLoaded", () => {
this.isLoading = !1;
});
}
componentDidMount() {
this.mounted = !0;
}
componentWillUnmount() {
clearTimeout(this.progressTimeout), clearTimeout(this.durationCheckTimeout), this.isReady && this.props.stopOnUnmount && (this.player.stop(), this.player.disablePIP && this.player.disablePIP()), this.mounted = !1;
}
componentDidUpdate(p) {
if (!this.player)
return;
const { url: y, playing: O, volume: x, muted: L, playbackRate: A, pip: N, loop: I, activePlayer: D, disableDeferredLoading: M } = this.props;
if (!(0, T.default)(p.url, y)) {
if (this.isLoading && !D.forceLoad && !M && !(0, _.isMediaStream)(y)) {
console.warn(`ReactPlayer: the attempt to load ${y} is being deferred until the player has loaded`), this.loadOnReady = y;
return;
}
this.isLoading = !0, this.startOnPlay = !0, this.onDurationCalled = !1, this.player.load(y, this.isReady);
}
!p.playing && O && !this.isPlaying && this.player.play(), p.playing && !O && this.isPlaying && this.player.pause(), !p.pip && N && this.player.enablePIP && this.player.enablePIP(), p.pip && !N && this.player.disablePIP && this.player.disablePIP(), p.volume !== x && x !== null && this.player.setVolume(x), p.muted !== L && (L ? this.player.mute() : (this.player.unmute(), x !== null && setTimeout(() => this.player.setVolume(x)))), p.playbackRate !== A && this.player.setPlaybackRate && this.player.setPlaybackRate(A), p.loop !== I && this.player.setLoop && this.player.setLoop(I);
}
getDuration() {
return this.isReady ? this.player.getDuration() : null;
}
getCurrentTime() {
return this.isReady ? this.player.getCurrentTime() : null;
}
getSecondsLoaded() {
return this.isReady ? this.player.getSecondsLoaded() : null;
}
seekTo(p, y, O) {
if (!this.isReady) {
p !== 0 && (this.seekOnPlay = p, setTimeout(() => {
this.seekOnPlay = null;
}, v));
return;
}
if (y ? y === "fraction" : p > 0 && p < 1) {
const L = this.player.getDuration();
if (!L) {
console.warn("ReactPlayer: could not seek using fraction – duration not yet available");
return;
}
this.player.seekTo(L * p, O);
return;
}
this.player.seekTo(p, O);
}
render() {
const p = this.props.activePlayer;
return p ? /* @__PURE__ */ b.default.createElement(
p,
{
...this.props,
onMount: this.handlePlayerMount,
onReady: this.handleReady,
onPlay: this.handlePlay,
onPause: this.handlePause,
onEnded: this.handleEnded,
onLoaded: this.handleLoaded,
onError: this.handleError
}
) : null;
}
}
return c(g, "displayName", "Player"), c(g, "propTypes", w.propTypes), c(g, "defaultProps", w.defaultProps), wr;
}
var Or, Yo;
function fd() {
if (Yo) return Or;
Yo = 1;
var e = Object.create, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, a = Object.getPrototypeOf, i = Object.prototype.hasOwnProperty, o = (I, D, M) => D in I ? t(I, D, { enumerable: !0, configurable: !0, writable: !0, value: M }) : I[D] = M, s = (I, D) => {
for (var M in D)
t(I, M, { get: D[M], enumerable: !0 });
}, u = (I, D, M, E) => {
if (D && typeof D == "object" || typeof D == "function")
for (let F of n(D))
!i.call(I, F) && F !== M && t(I, F, { get: () => D[F], enumerable: !(E = r(D, F)) || E.enumerable });
return I;
}, f = (I, D, M) => (M = I != null ? e(a(I)) : {}, u(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
!I || !I.__esModule ? t(M, "default", { value: I, enumerable: !0 }) : M,
I
)), d = (I) => u(t({}, "__esModule", { value: !0 }), I), c = (I, D, M) => (o(I, typeof D != "symbol" ? D + "" : D, M), M), m = {};
s(m, {
createReactPlayer: () => N
}), Or = d(m);
var b = f(Ae), T = f(qf()), w = f(rd), _ = f(Nf()), v = /* @__PURE__ */ Uf(), g = /* @__PURE__ */ Xt(), h = f(/* @__PURE__ */ cd());
const p = (0, g.lazy)(() => import(
/* webpackChunkName: 'reactPlayerPreview' */
"./Preview-DbqEJNSc.js"
).then((I) => I.P)), y = typeof window < "u" && window.document && typeof document < "u", O = typeof $e < "u" && $e.window && $e.window.document, x = Object.keys(v.propTypes), L = y || O ? b.Suspense : () => null, A = [], N = (I, D) => {
var M;
return M = class extends b.Component {
constructor() {
super(...arguments), c(this, "state", {
showPreview: !!this.props.light
}), c(this, "references", {
wrapper: (E) => {
this.wrapper = E;
},
player: (E) => {
this.player = E;
}
}), c(this, "handleClickPreview", (E) => {
this.setState({ showPreview: !1 }), this.props.onClickPreview(E);
}), c(this, "showPreview", () => {
this.setState({ showPreview: !0 });
}), c(this, "getDuration", () => this.player ? this.player.getDuration() : null), c(this, "getCurrentTime", () => this.player ? this.player.getCurrentTime() : null), c(this, "getSecondsLoaded", () => this.player ? this.player.getSecondsLoaded() : null), c(this, "getInternalPlayer", (E = "player") => this.player ? this.player.getInternalPlayer(E) : null), c(this, "seekTo", (E, F, X) => {
if (!this.player)
return null;
this.player.seekTo(E, F, X);
}), c(this, "handleReady", () => {
this.props.onReady(this);
}), c(this, "getActivePlayer", (0, w.default)((E) => {
for (const F of [...A, ...I])
if (F.canPlay(E))
return F;
return D || null;
})), c(this, "getConfig", (0, w.default)((E, F) => {
const { config: X } = this.props;
return T.default.all([
v.defaultProps.config,
v.defaultProps.config[F] || {},
X,
X[F] || {}
]);
})), c(this, "getAttributes", (0, w.default)((E) => (0, g.omit)(this.props, x))), c(this, "renderActivePlayer", (E) => {
if (!E)
return null;
const F = this.getActivePlayer(E);
if (!F)
return null;
const X = this.getConfig(E, F.key);
return /* @__PURE__ */ b.default.createElement(
h.default,
{
...this.props,
key: F.key,
ref: this.references.player,
config: X,
activePlayer: F.lazyPlayer || F,
onReady: this.handleReady
}
);
});
}
shouldComponentUpdate(E, F) {
return !(0, _.default)(this.props, E) || !(0, _.default)(this.state, F);
}
componentDidUpdate(E) {
const { light: F } = this.props;
!E.light && F && this.setState({ showPreview: !0 }), E.light && !F && this.setState({ showPreview: !1 });
}
renderPreview(E) {
if (!E)
return null;
const { light: F, playIcon: X, previewTabIndex: ae, oEmbedUrl: pe, previewAriaLabel: K } = this.props;
return /* @__PURE__ */ b.default.createElement(
p,
{
url: E,
light: F,
playIcon: X,
previewTabIndex: ae,
previewAriaLabel: K,
oEmbedUrl: pe,
onClick: this.handleClickPreview
}
);
}
render() {
const { url: E, style: F, width: X, height: ae, fallback: pe, wrapper: K } = this.props, { showPreview: S } = this.state, q = this.getAttributes(E), U = typeof K == "string" ? this.references.wrapper : void 0;
return /* @__PURE__ */ b.default.createElement(K, { ref: U, style: { ...F, width: X, height: ae }, ...q }, /* @__PURE__ */ b.default.createElement(L, { fallback: pe }, S ? this.renderPreview(E) : this.renderActivePlayer(E)));
}
}, c(M, "displayName", "ReactPlayer"), c(M, "propTypes", v.propTypes), c(M, "defaultProps", v.defaultProps), c(M, "addCustomPlayer", (E) => {
A.push(E);
}), c(M, "removeCustomPlayers", () => {
A.length = 0;
}), c(M, "canPlay", (E) => {
for (const F of [...A, ...I])
if (F.canPlay(E))
return !0;
return !1;
}), c(M, "canEnablePIP", (E) => {
for (const F of [...A, ...I])
if (F.canEnablePIP && F.canEnablePIP(E))
return !0;
return !1;
}), M;
};
return Or;
}
var Pr, Go;
function ld() {
if (Go) return Pr;
Go = 1;
var e = Object.create, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, a = Object.getPrototypeOf, i = Object.prototype.hasOwnProperty, o = (w, _) => {
for (var v in _)
t(w, v, { get: _[v], enumerable: !0 });
}, s = (w, _, v, g) => {
if (_ && typeof _ == "object" || typeof _ == "function")
for (let h of n(_))
!i.call(w, h) && h !== v && t(w, h, { get: () => _[h], enumerable: !(g = r(_, h)) || g.enumerable });
return w;
}, u = (w, _, v) => (v = w != null ? e(a(w)) : {}, s(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
!w || !w.__esModule ? t(v, "default", { value: w, enumerable: !0 }) : v,
w
)), f = (w) => s(t({}, "__esModule", { value: !0 }), w), d = {};
o(d, {
default: () => T
}), Pr = f(d);
var c = u(/* @__PURE__ */ Jl()), m = /* @__PURE__ */ fd();
const b = c.default[c.default.length - 1];
var T = (0, m.createReactPlayer)(c.default, b);
return Pr;
}
var dd = /* @__PURE__ */ ld();
const vd = /* @__PURE__ */ Gt(dd);
var zt = { exports: {} }, Sr, Xo;
function Je() {
if (Xo) return Sr;
Xo = 1;
function e(t) {
var r = typeof t;
return t != null && (r == "object" || r == "function");
}
return Sr = e, Sr;
}
var Cr, Jo;
function zf() {
if (Jo) return Cr;
Jo = 1;
var e = typeof $e == "object" && $e && $e.Object === Object && $e;
return Cr = e, Cr;
}
var xr, Zo;
function Me() {
if (Zo) return xr;
Zo = 1;
var e = zf(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
return xr = r, xr;
}
var Er, Qo;
function pd() {
if (Qo) return Er;
Qo = 1;
var e = Me(), t = function() {
return e.Date.now();
};
return Er = t, Er;
}
var Ar, es;
function hd() {
if (es) return Ar;
es = 1;
var e = /\s/;
function t(r) {
for (var n = r.length; n-- && e.test(r.charAt(n)); )
;
return n;
}
return Ar = t, Ar;
}
var Tr, ts;
function yd() {
if (ts) return Tr;
ts = 1;
var e = hd(), t = /^\s+/;
function r(n) {
return n && n.slice(0, e(n) + 1).replace(t, "");
}
return Tr = r, Tr;
}
var Rr, rs;
function _t() {
if (rs) return Rr;
rs = 1;
var e = Me(), t = e.Symbol;
return Rr = t, Rr;
}
var kr, ns;
function md() {
if (ns) return kr;
ns = 1;
var e = _t(), t = Object.prototype, r = t.hasOwnProperty, n = t.toString, a = e ? e.toStringTag : void 0;
function i(o) {
var s = r.call(o, a), u = o[a];
try {
o[a] = void 0;
var f = !0;
} catch {
}
var d = n.call(o);
return f && (s ? o[a] = u : delete o[a]), d;
}
return kr = i, kr;
}
var Ir, as;
function gd() {
if (as) return Ir;
as = 1;
var e = Object.prototype, t = e.toString;
function r(n) {
return t.call(n);
}
return Ir = r, Ir;
}
var Mr, is;
function wt() {
if (is) return Mr;
is = 1;
var e = _t(), t = md(), r = gd(), n = "[object Null]", a = "[object Undefined]", i = e ? e.toStringTag : void 0;
function o(s) {
return s == null ? s === void 0 ? a : n : i && i in Object(s) ? t(s) : r(s);
}
return Mr = o, Mr;
}
var Fr, os;
function it() {
if (os) return Fr;
os = 1;
function e(t) {
return t != null && typeof t == "object";
}
return Fr = e, Fr;
}
var Lr, ss;
function Ot() {
if (ss) return Lr;
ss = 1;
var e = wt(), t = it(), r = "[object Symbol]";
function n(a) {
return typeof a == "symbol" || t(a) && e(a) == r;
}
return Lr = n, Lr;
}
var qr, us;
function bd() {
if (us) return qr;
us = 1;
var e = yd(), t = Je(), r = Ot(), n = NaN, a = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt;
function u(f) {
if (typeof f == "number")
return f;
if (r(f))
return n;
if (t(f)) {
var d = typeof f.valueOf == "function" ? f.valueOf() : f;
f = t(d) ? d + "" : d;
}
if (typeof f != "string")
return f === 0 ? f : +f;
f = e(f);
var c = i.test(f);
return c || o.test(f) ? s(f.slice(2), c ? 2 : 8) : a.test(f) ? n : +f;
}
return qr = u, qr;
}
var Nr, cs;
function Hf() {
if (cs) return Nr;
cs = 1;
var e = Je(), t = pd(), r = bd(), n = "Expected a function", a = Math.max, i = Math.min;
function o(s, u, f) {
var d, c, m, b, T, w, _ = 0, v = !1, g = !1, h = !0;
if (typeof s != "function")
throw new TypeError(n);
u = r(u) || 0, e(f) && (v = !!f.leading, g = "maxWait" in f, m = g ? a(r(f.maxWait) || 0, u) : m, h = "trailing" in f ? !!f.trailing : h);
function p(M) {
var E = d, F = c;
return d = c = void 0, _ = M, b = s.apply(F, E), b;
}
function y(M) {
return _ = M, T = setTimeout(L, u), v ? p(M) : b;
}
function O(M) {
var E = M - w, F = M - _, X = u - E;
return g ? i(X, m - F) : X;
}
function x(M) {
var E = M - w, F = M - _;
return w === void 0 || E >= u || E < 0 || g && F >= m;
}
function L() {
var M = t();
if (x(M))
return A(M);
T = setTimeout(L, O(M));
}
function A(M) {
return T = void 0, h && d ? p(M) : (d = c = void 0, b);
}
function N() {
T !== void 0 && clearTimeout(T), _ = 0, d = w = c = T = void 0;
}
function I() {
return T === void 0 ? b : A(t());
}
function D() {
var M = t(), E = x(M);
if (d = arguments, c = this, w = M, E) {
if (T === void 0)
return y(w);
if (g)
return clearTimeout(T), T = setTimeout(L, u), p(w);
}
return T === void 0 && (T = setTimeout(L, u)), b;
}
return D.cancel = N, D.flush = I, D;
}
return Nr = o, Nr;
}
var Dr, fs;
function Bf() {
if (fs) return Dr;
fs = 1;
var e = wt(), t = Je(), r = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", i = "[object Proxy]";
function o(s) {
if (!t(s))
return !1;
var u = e(s);
return u == n || u == a || u == r || u == i;
}
return Dr = o, Dr;
}
var jr, ls;
function _d() {
if (ls) return jr;
ls = 1;
var e = Me(), t = e["__core-js_shared__"];
return jr = t, jr;
}
var Kr, ds;
function wd() {
if (ds) return Kr;
ds = 1;
var e = _d(), t = function() {
var n = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
return n ? "Symbol(src)_1." + n : "";
}();
function r(n) {
return !!t && t in n;
}
return Kr = r, Kr;
}
var Ur, vs;
function $f() {
if (vs) return Ur;
vs = 1;
var e = Function.prototype, t = e.toString;
function r(n) {
if (n != null) {
try {
return t.call(n);
} catch {
}
try {
return n + "";
} catch {
}
}
return "";
}
return Ur = r, Ur;
}
var zr, ps;
function Od() {
if (ps) return zr;
ps = 1;
var e = Bf(), t = wd(), r = Je(), n = $f(), a = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, o = Function.prototype, s = Object.prototype, u = o.toString, f = s.hasOwnProperty, d = RegExp(
"^" + u.call(f).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function c(m) {
if (!r(m) || t(m))
return !1;
var b = e(m) ? d : i;
return b.test(n(m));
}
return zr = c, zr;
}
var Hr, hs;
function Pd() {
if (hs) return Hr;
hs = 1;
function e(t, r) {
return t == null ? void 0 : t[r];
}
return Hr = e, Hr;
}
var Br, ys;
function Ze() {
if (ys) return Br;
ys = 1;
var e = Od(), t = Pd();
function r(n, a) {
var i = t(n, a);
return e(i) ? i : void 0;
}
return Br = r, Br;
}
var $r, ms;
function Jt() {
if (ms) return $r;
ms = 1;
var e = Ze(), t = e(Object, "create");
return $r = t, $r;
}
var Vr, gs;
function Sd() {
if (gs) return Vr;
gs = 1;
var e = Jt();
function t() {
this.__data__ = e ? e(null) : {}, this.size = 0;
}
return Vr = t, Vr;
}
var Wr, bs;
function Cd() {
if (bs) return Wr;
bs = 1;
function e(t) {
var r = this.has(t) && delete this.__data__[t];
return this.size -= r ? 1 : 0, r;
}
return Wr = e, Wr;
}
var Yr, _s;
function xd() {
if (_s) return Yr;
_s = 1;
var e = Jt(), t = "__lodash_hash_undefined__", r = Object.prototype, n = r.hasOwnProperty;
function a(i) {
var o = this.__data__;
if (e) {
var s = o[i];
return s === t ? void 0 : s;
}
return n.call(o, i) ? o[i] : void 0;
}
return Yr = a, Yr;
}
var Gr, ws;
function Ed() {
if (ws) return Gr;
ws = 1;
var e = Jt(), t = Object.prototype, r = t.hasOwnProperty;
function n(a) {
var i = this.__data__;
return e ? i[a] !== void 0 : r.call(i, a);
}
return Gr = n, Gr;
}
var Xr, Os;
function Ad() {
if (Os) return Xr;
Os = 1;
var e = Jt(), t = "__lodash_hash_undefined__";
function r(n, a) {
var i = this.__data__;
return this.size += this.has(n) ? 0 : 1, i[n] = e && a === void 0 ? t : a, this;
}
return Xr = r, Xr;
}
var Jr, Ps;
function Td() {
if (Ps) return Jr;
Ps = 1;
var e = Sd(), t = Cd(), r = xd(), n = Ed(), a = Ad();
function i(o) {
var s = -1, u = o == null ? 0 : o.length;
for (this.clear(); ++s < u; ) {
var f = o[s];
this.set(f[0], f[1]);
}
}
return i.prototype.clear = e, i.prototype.delete = t, i.prototype.get = r, i.prototype.has = n, i.prototype.set = a, Jr = i, Jr;
}
var Zr, Ss;
function Rd() {
if (Ss) return Zr;
Ss = 1;
function e() {
this.__data__ = [], this.size = 0;
}
return Zr = e, Zr;
}
var Qr, Cs;
function Ji() {
if (Cs) return Qr;
Cs = 1;
function e(t, r) {
return t === r || t !== t && r !== r;
}
return Qr = e, Qr;
}
var en, xs;
function Zt() {
if (xs) return en;
xs = 1;
var e = Ji();
function t(r, n) {
for (var a = r.length; a--; )
if (e(r[a][0], n))
return a;
return -1;
}
return en = t, en;
}
var tn, Es;
function kd() {
if (Es) return tn;
Es = 1;
var e = Zt(), t = Array.prototype, r = t.splice;
function n(a) {
var i = this.__data__, o = e(i, a);
if (o < 0)
return !1;
var s = i.length - 1;
return o == s ? i.pop() : r.call(i, o, 1), --this.size, !0;
}
return tn = n, tn;
}
var rn, As;
function Id() {
if (As) return rn;
As = 1;
var e = Zt();
function t(r) {
var n = this.__data__, a = e(n, r);
return a < 0 ? void 0 : n[a][1];
}
return rn = t, rn;
}
var nn, Ts;
function Md() {
if (Ts) return nn;
Ts = 1;
var e = Zt();
function t(r) {
return e(this.__data__, r) > -1;
}
return nn = t, nn;
}
var an, Rs;
function Fd() {
if (Rs) return an;
Rs = 1;
var e = Zt();
function t(r, n) {
var a = this.__data__, i = e(a, r);
return i < 0 ? (++this.size, a.push([r, n])) : a[i][1] = n, this;
}
return an = t, an;
}
var on, ks;
function Qt() {
if (ks) return on;
ks = 1;
var e = Rd(), t = kd(), r = Id(), n = Md(), a = Fd();
function i(o) {
var s = -1, u = o == null ? 0 : o.length;
for (this.clear(); ++s < u; ) {
var f = o[s];
this.set(f[0], f[1]);
}
}
return i.prototype.clear = e, i.prototype.delete = t, i.prototype.get = r, i.prototype.has = n, i.prototype.set = a, on = i, on;
}
var sn, Is;
function Zi() {
if (Is) return sn;
Is = 1;
var e = Ze(), t = Me(), r = e(t, "Map");
return sn = r, sn;
}
var un, Ms;
function Ld() {
if (Ms) return un;
Ms = 1;
var e = Td(), t = Qt(), r = Zi();
function n() {
this.size = 0, this.__data__ = {
hash: new e(),
map: new (r || t)(),
string: new e()
};
}
return un = n, un;
}
var cn, Fs;
function qd() {
if (Fs) return cn;
Fs = 1;
function e(t) {
var r = typeof t;
return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? t !== "__proto__" : t === null;
}
return cn = e, cn;
}
var fn, Ls;
function er() {
if (Ls) return fn;
Ls = 1;
var e = qd();
function t(r, n) {
var a = r.__data__;
return e(n) ? a[typeof n == "string" ? "string" : "hash"] : a.map;
}
return fn = t, fn;
}
var ln, qs;
function Nd() {
if (qs) return ln;
qs = 1;
var e = er();
function t(r) {
var n = e(this, r).delete(r);
return this.size -= n ? 1 : 0, n;
}
return ln = t, ln;
}
var dn, Ns;
function Dd() {
if (Ns) return dn;
Ns = 1;
var e = er();
function t(r) {
return e(this, r).get(r);
}
return dn = t, dn;
}
var vn, Ds;
function jd() {
if (Ds) return vn;
Ds = 1;
var e = er();
function t(r) {
return e(this, r).has(r);
}
return vn = t, vn;
}
var pn, js;
function Kd() {
if (js) return pn;
js = 1;
var e = er();
function t(r, n) {
var a = e(this, r), i = a.size;
return a.set(r, n), this.size += a.size == i ? 0 : 1, this;
}
return pn = t, pn;
}
var hn, Ks;
function Qi() {
if (Ks) return hn;
Ks = 1;
var e = Ld(), t = Nd(), r = Dd(), n = jd(), a = Kd();
function i(o) {
var s = -1, u = o == null ? 0 : o.length;
for (this.clear(); ++s < u; ) {
var f = o[s];
this.set(f[0], f[1]);
}
}
return i.prototype.clear = e, i.prototype.delete = t, i.prototype.get = r, i.prototype.has = n, i.prototype.set = a, hn = i, hn;
}
var yn, Us;
function Ud() {
if (Us) return yn;
Us = 1;
var e = "__lodash_hash_undefined__";
function t(r) {
return this.__data__.set(r, e), this;
}
return yn = t, yn;
}
var mn, zs;
function zd() {
if (zs) return mn;
zs = 1;
function e(t) {
return this.__data__.has(t);
}
return mn = e, mn;
}
var gn, Hs;
function Vf() {
if (Hs) return gn;
Hs = 1;
var e = Qi(), t = Ud(), r = zd();
function n(a) {
var i = -1, o = a == null ? 0 : a.length;
for (this.__data__ = new e(); ++i < o; )
this.add(a[i]);
}
return n.prototype.add = n.prototype.push = t, n.prototype.has = r, gn = n, gn;
}
var bn, Bs;
function Hd() {
if (Bs) return bn;
Bs = 1;
function e(t, r, n, a) {
for (var i = t.length, o = n + (a ? 1 : -1); a ? o-- : ++o < i; )
if (r(t[o], o, t))
return o;
return -1;
}
return bn = e, bn;
}
var _n, $s;
function Bd() {
if ($s) return _n;
$s = 1;
function e(t) {
return t !== t;
}
return _n = e, _n;
}
var wn, Vs;
function $d() {
if (Vs) return wn;
Vs = 1;
function e(t, r, n) {
for (var a = n - 1, i = t.length; ++a < i; )
if (t[a] === r)
return a;
return -1;
}
return wn = e, wn;
}
var On, Ws;
function Vd() {
if (Ws) return On;
Ws = 1;
var e = Hd(), t = Bd(), r = $d();
function n(a, i, o) {
return i === i ? r(a, i, o) : e(a, t, o);
}
return On = n, On;
}
var Pn, Ys;
function Wd() {
if (Ys) return Pn;
Ys = 1;
var e = Vd();
function t(r, n) {
var a = r == null ? 0 : r.length;
return !!a && e(r, n, 0) > -1;
}
return Pn = t, Pn;
}
var Sn, Gs;
function Yd() {
if (Gs) return Sn;
Gs = 1;
function e(t, r, n) {
for (var a = -1, i = t == null ? 0 : t.length; ++a < i; )
if (n(r, t[a]))
return !0;
return !1;
}
return Sn = e, Sn;
}
var Cn, Xs;
function eo() {
if (Xs) return Cn;
Xs = 1;
function e(t, r) {
for (var n = -1, a = t == null ? 0 : t.length, i = Array(a); ++n < a; )
i[n] = r(t[n], n, t);
return i;
}
return Cn = e, Cn;
}
var xn, Js;
function to() {
if (Js) return xn;
Js = 1;
function e(t) {
return function(r) {
return t(r);
};
}
return xn = e, xn;
}
var En, Zs;
function Wf() {
if (Zs) return En;
Zs = 1;
function e(t, r) {
return t.has(r);
}
return En = e, En;
}
var An, Qs;
function Gd() {
if (Qs) return An;
Qs = 1;
var e = Vf(), t = Wd(), r = Yd(), n = eo(), a = to(), i = Wf(), o = 200;
function s(u, f, d, c) {
var m = -1, b = t, T = !0, w = u.length, _ = [], v = f.length;
if (!w)
return _;
d && (f = n(f, a(d))), c ? (b = r, T = !1) : f.length >= o && (b = i, T = !1, f = new e(f));
e:
for (; ++m < w; ) {
var g = u[m], h = d == null ? g : d(g);
if (g = c || g !== 0 ? g : 0, T && h === h) {
for (var p = v; p--; )
if (f[p] === h)
continue e;
_.push(g);
} else b(f, h, c) || _.push(g);
}
return _;
}
return An = s, An;
}
var Tn, eu;
function Yf() {
if (eu) return Tn;
eu = 1;
function e(t, r) {
for (var n = -1, a = r.length, i = t.length; ++n < a; )
t[i + n] = r[n];
return t;
}
return Tn = e, Tn;
}
var Rn, tu;
function Xd() {
if (tu) return Rn;
tu = 1;
var e = wt(), t = it(), r = "[object Arguments]";
function n(a) {
return t(a) && e(a) == r;
}
return Rn = n, Rn;
}
var kn, ru;
function ro() {
if (ru) return kn;
ru = 1;
var e = Xd(), t = it(), r = Object.prototype, n = r.hasOwnProperty, a = r.propertyIsEnumerable, i = e(/* @__PURE__ */ function() {
return arguments;
}()) ? e : function(o) {
return t(o) && n.call(o, "callee") && !a.call(o, "callee");
};
return kn = i, kn;
}
var In, nu;
function Te() {
if (nu) return In;
nu = 1;
var e = Array.isArray;
return In = e, In;
}
var Mn, au;
function Jd() {
if (au) return Mn;
au = 1;
var e = _t(), t = ro(), r = Te(), n = e ? e.isConcatSpreadable : void 0;
function a(i) {
return r(i) || t(i) || !!(n && i && i[n]);
}
return Mn = a, Mn;
}
var Fn, iu;
function Gf() {
if (iu) return Fn;
iu = 1;
var e = Yf(), t = Jd();
function r(n, a, i, o, s) {
var u = -1, f = n.length;
for (i || (i = t), s || (s = []); ++u < f; ) {
var d = n[u];
a > 0 && i(d) ? a > 1 ? r(d, a - 1, i, o, s) : e(s, d) : o || (s[s.length] = d);
}
return s;
}
return Fn = r, Fn;
}
var Ln, ou;
function Pt() {
if (ou) return Ln;
ou = 1;
function e(t) {
return t;
}
return Ln = e, Ln;
}
var qn, su;
function Zd() {
if (su) return qn;
su = 1;
function e(t, r, n) {
switch (n.length) {
case 0:
return t.call(r);
case 1:
return t.call(r, n[0]);
case 2:
return t.call(r, n[0], n[1]);
case 3:
return t.call(r, n[0], n[1], n[2]);
}
return t.apply(r, n);
}
return qn = e, qn;
}
var Nn, uu;
function Qd() {
if (uu) return Nn;
uu = 1;
var e = Zd(), t = Math.max;
function r(n, a, i) {
return a = t(a === void 0 ? n.length - 1 : a, 0), function() {
for (var o = arguments, s = -1, u = t(o.length - a, 0), f = Array(u); ++s < u; )
f[s] = o[a + s];
s = -1;
for (var d = Array(a + 1); ++s < a; )
d[s] = o[s];
return d[a] = i(f), e(n, this, d);
};
}
return Nn = r, Nn;
}
var Dn, cu;
function ev() {
if (cu) return Dn;
cu = 1;
function e(t) {
return function() {
return t;
};
}
return Dn = e, Dn;
}
var jn, fu;
function tv() {
if (fu) return jn;
fu = 1;
var e = Ze(), t = function() {
try {
var r = e(Object, "defineProperty");
return r({}, "", {}), r;
} catch {
}
}();
return jn = t, jn;
}
var Kn, lu;
function rv() {
if (lu) return Kn;
lu = 1;
var e = ev(), t = tv(), r = Pt(), n = t ? function(a, i) {
return t(a, "toString", {
configurable: !0,
enumerable: !1,
value: e(i),
writable: !0
});
} : r;
return Kn = n, Kn;
}
var Un, du;
function nv() {
if (du) return Un;
du = 1;
var e = 800, t = 16, r = Date.now;
function n(a) {
var i = 0, o = 0;
return function() {
var s = r(), u = t - (s - o);
if (o = s, u > 0) {
if (++i >= e)
return arguments[0];
} else
i = 0;
return a.apply(void 0, arguments);
};
}
return Un = n, Un;
}
var zn, vu;
function av() {
if (vu) return zn;
vu = 1;
var e = rv(), t = nv(), r = t(e);
return zn = r, zn;
}
var Hn, pu;
function Xf() {
if (pu) return Hn;
pu = 1;
var e = Pt(), t = Qd(), r = av();
function n(a, i) {
return r(t(a, i, e), a + "");
}
return Hn = n, Hn;
}
var Bn, hu;
function no() {
if (hu) return Bn;
hu = 1;
var e = 9007199254740991;
function t(r) {
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= e;
}
return Bn = t, Bn;
}
var $n, yu;
function St() {
if (yu) return $n;
yu = 1;
var e = Bf(), t = no();
function r(n) {
return n != null && t(n.length) && !e(n);
}
return $n = r, $n;
}
var Vn, mu;
function iv() {
if (mu) return Vn;
mu = 1;
var e = St(), t = it();
function r(n) {
return t(n) && e(n);
}
return Vn = r, Vn;
}
var Wn, gu;
function ov() {
if (gu) return Wn;
gu = 1;
var e = Gd(), t = Gf(), r = Xf(), n = iv(), a = r(function(i, o) {
return n(i) ? e(i, t(o, 1, n, !0)) : [];
});
return Wn = a, Wn;
}
var Yn, bu;
function Jf() {
if (bu) return Yn;
bu = 1;
function e(t, r) {
for (var n = -1, a = t == null ? 0 : t.length, i = 0, o = []; ++n < a; ) {
var s = t[n];
r(s, n, t) && (o[i++] = s);
}
return o;
}
return Yn = e, Yn;
}
var Gn, _u;
function sv() {
if (_u) return Gn;
_u = 1;
function e(t) {
return function(r, n, a) {
for (var i = -1, o = Object(r), s = a(r), u = s.length; u--; ) {
var f = s[t ? u : ++i];
if (n(o[f], f, o) === !1)
break;
}
return r;
};
}
return Gn = e, Gn;
}
var Xn, wu;
function uv() {
if (wu) return Xn;
wu = 1;
var e = sv(), t = e();
return Xn = t, Xn;
}
var Jn, Ou;
function cv() {
if (Ou) return Jn;
Ou = 1;
function e(t, r) {
for (var n = -1, a = Array(t); ++n < t; )
a[n] = r(n);
return a;
}
return Jn = e, Jn;
}
var ut = { exports: {} }, Zn, Pu;
function fv() {
if (Pu) return Zn;
Pu = 1;
function e() {
return !1;
}
return Zn = e, Zn;
}
ut.exports;
var Su;
function Zf() {
return Su || (Su = 1, function(e, t) {
var r = Me(), n = fv(), a = t && !t.nodeType && t, i = a && !0 && e && !e.nodeType && e, o = i && i.exports === a, s = o ? r.Buffer : void 0, u = s ? s.isBuffer : void 0, f = u || n;
e.exports = f;
}(ut, ut.exports)), ut.exports;
}
var Qn, Cu;
function ao() {
if (Cu) return Qn;
Cu = 1;
var e = 9007199254740991, t = /^(?:0|[1-9]\d*)$/;
function r(n, a) {
var i = typeof n;
return a = a ?? e, !!a && (i == "number" || i != "symbol" && t.test(n)) && n > -1 && n % 1 == 0 && n < a;
}
return Qn = r, Qn;
}
var ea, xu;
function lv() {
if (xu) return ea;
xu = 1;
var e = wt(), t = no(), r = it(), n = "[object Arguments]", a = "[object Array]", i = "[object Boolean]", o = "[object Date]", s = "[object Error]", u = "[object Function]", f = "[object Map]", d = "[object Number]", c = "[object Object]", m = "[object RegExp]", b = "[object Set]", T = "[object String]", w = "[object WeakMap]", _ = "[object ArrayBuffer]", v = "[object DataView]", g = "[object Float32Array]", h = "[object Float64Array]", p = "[object Int8Array]", y = "[object Int16Array]", O = "[object Int32Array]", x = "[object Uint8Array]", L = "[object Uint8ClampedArray]", A = "[object Uint16Array]", N = "[object Uint32Array]", I = {};
I[g] = I[h] = I[p] = I[y] = I[O] = I[x] = I[L] = I[A] = I[N] = !0, I[n] = I[a] = I[_] = I[i] = I[v] = I[o] = I[s] = I[u] = I[f] = I[d] = I[c] = I[m] = I[b] = I[T] = I[w] = !1;
function D(M) {
return r(M) && t(M.length) && !!I[e(M)];
}
return ea = D, ea;
}
var ct = { exports: {} };
ct.exports;
var Eu;
function dv() {
return Eu || (Eu = 1, function(e, t) {
var r = zf(), n = t && !t.nodeType && t, a = n && !0 && e && !e.nodeType && e, i = a && a.exports === n, o = i && r.process, s = function() {
try {
var u = a && a.require && a.require("util").types;
return u || o && o.binding && o.binding("util");
} catch {
}
}();
e.exports = s;
}(ct, ct.exports)), ct.exports;
}
var ta, Au;
function Qf() {
if (Au) return ta;
Au = 1;
var e = lv(), t = to(), r = dv(), n = r && r.isTypedArray, a = n ? t(n) : e;
return ta = a, ta;
}
var ra, Tu;
function vv() {
if (Tu) return ra;
Tu = 1;
var e = cv(), t = ro(), r = Te(), n = Zf(), a = ao(), i = Qf(), o = Object.prototype, s = o.hasOwnProperty;
function u(f, d) {
var c = r(f), m = !c && t(f), b = !c && !m && n(f), T = !c && !m && !b && i(f), w = c || m || b || T, _ = w ? e(f.length, String) : [], v = _.length;
for (var g in f)
(d || s.call(f, g)) && !(w && // Safari 9 has enumerable `arguments.length` in strict mode.
(g == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
b && (g == "offset" || g == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
T && (g == "buffer" || g == "byteLength" || g == "byteOffset") || // Skip index properties.
a(g, v))) && _.push(g);
return _;
}
return ra = u, ra;
}
var na, Ru;
function pv() {
if (Ru) return na;
Ru = 1;
var e = Object.prototype;
function t(r) {
var n = r && r.constructor, a = typeof n == "function" && n.prototype || e;
return r === a;
}
return na = t, na;
}
var aa, ku;
function hv() {
if (ku) return aa;
ku = 1;
function e(t, r) {
return function(n) {
return t(r(n));
};
}
return aa = e, aa;
}
var ia, Iu;
function yv() {
if (Iu) return ia;
Iu = 1;
var e = hv(), t = e(Object.keys, Object);
return ia = t, ia;
}
var oa, Mu;
function mv() {
if (Mu) return oa;
Mu = 1;
var e = pv(), t = yv(), r = Object.prototype, n = r.hasOwnProperty;
function a(i) {
if (!e(i))
return t(i);
var o = [];
for (var s in Object(i))
n.call(i, s) && s != "constructor" && o.push(s);
return o;
}
return oa = a, oa;
}
var sa, Fu;
function io() {
if (Fu) return sa;
Fu = 1;
var e = vv(), t = mv(), r = St();
function n(a) {
return r(a) ? e(a) : t(a);
}
return sa = n, sa;
}
var ua, Lu;
function oo() {
if (Lu) return ua;
Lu = 1;
var e = uv(), t = io();
function r(n, a) {
return n && e(n, a, t);
}
return ua = r, ua;
}
var ca, qu;
function gv() {
if (qu) return ca;
qu = 1;
var e = St();
function t(r, n) {
return function(a, i) {
if (a == null)
return a;
if (!e(a))
return r(a, i);
for (var o = a.length, s = n ? o : -1, u = Object(a); (n ? s-- : ++s < o) && i(u[s], s, u) !== !1; )
;
return a;
};
}
return ca = t, ca;
}
var fa, Nu;
function so() {
if (Nu) return fa;
Nu = 1;
var e = oo(), t = gv(), r = t(e);
return fa = r, fa;
}
var la, Du;
function bv() {
if (Du) return la;
Du = 1;
var e = so();
function t(r, n) {
var a = [];
return e(r, function(i, o, s) {
n(i, o, s) && a.push(i);
}), a;
}
return la = t, la;
}
var da, ju;
function _v() {
if (ju) return da;
ju = 1;
var e = Qt();
function t() {
this.__data__ = new e(), this.size = 0;
}
return da = t, da;
}
var va, Ku;
function wv() {
if (Ku) return va;
Ku = 1;
function e(t) {
var r = this.__data__, n = r.delete(t);
return this.size = r.size, n;
}
return va = e, va;
}
var pa, Uu;
function Ov() {
if (Uu) return pa;
Uu = 1;
function e(t) {
return this.__data__.get(t);
}
return pa = e, pa;
}
var ha, zu;
function Pv() {
if (zu) return ha;
zu = 1;
function e(t) {
return this.__data__.has(t);
}
return ha = e, ha;
}
var ya, Hu;
function Sv() {
if (Hu) return ya;
Hu = 1;
var e = Qt(), t = Zi(), r = Qi(), n = 200;
function a(i, o) {
var s = this.__data__;
if (s instanceof e) {
var u = s.__data__;
if (!t || u.length < n - 1)
return u.push([i, o]), this.size = ++s.size, this;
s = this.__data__ = new r(u);
}
return s.set(i, o), this.size = s.size, this;
}
return ya = a, ya;
}
var ma, Bu;
function el() {
if (Bu) return ma;
Bu = 1;
var e = Qt(), t = _v(), r = wv(), n = Ov(), a = Pv(), i = Sv();
function o(s) {
var u = this.__data__ = new e(s);
this.size = u.size;
}
return o.prototype.clear = t, o.prototype.delete = r, o.prototype.get = n, o.prototype.has = a, o.prototype.set = i, ma = o, ma;
}
var ga, $u;
function Cv() {
if ($u) return ga;
$u = 1;
function e(t, r) {
for (var n = -1, a = t == null ? 0 : t.length; ++n < a; )
if (r(t[n], n, t))
return !0;
return !1;
}
return ga = e, ga;
}
var ba, Vu;
function tl() {
if (Vu) return ba;
Vu = 1;
var e = Vf(), t = Cv(), r = Wf(), n = 1, a = 2;
function i(o, s, u, f, d, c) {
var m = u & n, b = o.length, T = s.length;
if (b != T && !(m && T > b))
return !1;
var w = c.get(o), _ = c.get(s);
if (w && _)
return w == s && _ == o;
var v = -1, g = !0, h = u & a ? new e() : void 0;
for (c.set(o, s), c.set(s, o); ++v < b; ) {
var p = o[v], y = s[v];
if (f)
var O = m ? f(y, p, v, s, o, c) : f(p, y, v, o, s, c);
if (O !== void 0) {
if (O)
continue;
g = !1;
break;
}
if (h) {
if (!t(s, function(x, L) {
if (!r(h, L) && (p === x || d(p, x, u, f, c)))
return h.push(L);
})) {
g = !1;
break;
}
} else if (!(p === y || d(p, y, u, f, c))) {
g = !1;
break;
}
}
return c.delete(o), c.delete(s), g;
}
return ba = i, ba;
}
var _a, Wu;
function xv() {
if (Wu) return _a;
Wu = 1;
var e = Me(), t = e.Uint8Array;
return _a = t, _a;
}
var wa, Yu;
function Ev() {
if (Yu) return wa;
Yu = 1;
function e(t) {
var r = -1, n = Array(t.size);
return t.forEach(function(a, i) {
n[++r] = [i, a];
}), n;
}
return wa = e, wa;
}
var Oa, Gu;
function Av() {
if (Gu) return Oa;
Gu = 1;
function e(t) {
var r = -1, n = Array(t.size);
return t.forEach(function(a) {
n[++r] = a;
}), n;
}
return Oa = e, Oa;
}
var Pa, Xu;
function Tv() {
if (Xu) return Pa;
Xu = 1;
var e = _t(), t = xv(), r = Ji(), n = tl(), a = Ev(), i = Av(), o = 1, s = 2, u = "[object Boolean]", f = "[object Date]", d = "[object Error]", c = "[object Map]", m = "[object Number]", b = "[object RegExp]", T = "[object Set]", w = "[object String]", _ = "[object Symbol]", v = "[object ArrayBuffer]", g = "[object DataView]", h = e ? e.prototype : void 0, p = h ? h.valueOf : void 0;
function y(O, x, L, A, N, I, D) {
switch (L) {
case g:
if (O.byteLength != x.byteLength || O.byteOffset != x.byteOffset)
return !1;
O = O.buffer, x = x.buffer;
case v:
return !(O.byteLength != x.byteLength || !I(new t(O), new t(x)));
case u:
case f:
case m:
return r(+O, +x);
case d:
return O.name == x.name && O.message == x.message;
case b:
case w:
return O == x + "";
case c:
var M = a;
case T:
var E = A & o;
if (M || (M = i), O.size != x.size && !E)
return !1;
var F = D.get(O);
if (F)
return F == x;
A |= s, D.set(O, x);
var X = n(M(O), M(x), A, N, I, D);
return D.delete(O), X;
case _:
if (p)
return p.call(O) == p.call(x);
}
return !1;
}
return Pa = y, Pa;
}
var Sa, Ju;
function Rv() {
if (Ju) return Sa;
Ju = 1;
var e = Yf(), t = Te();
function r(n, a, i) {
var o = a(n);
return t(n) ? o : e(o, i(n));
}
return Sa = r, Sa;
}
var Ca, Zu;
function kv() {
if (Zu) return Ca;
Zu = 1;
function e() {
return [];
}
return Ca = e, Ca;
}
var xa, Qu;
function Iv() {
if (Qu) return xa;
Qu = 1;
var e = Jf(), t = kv(), r = Object.prototype, n = r.propertyIsEnumerable, a = Object.getOwnPropertySymbols, i = a ? function(o) {
return o == null ? [] : (o = Object(o), e(a(o), function(s) {
return n.call(o, s);
}));
} : t;
return xa = i, xa;
}
var Ea, ec;
function Mv() {
if (ec) return Ea;
ec = 1;
var e = Rv(), t = Iv(), r = io();
function n(a) {
return e(a, r, t);
}
return Ea = n, Ea;
}
var Aa, tc;
function Fv() {
if (tc) return Aa;
tc = 1;
var e = Mv(), t = 1, r = Object.prototype, n = r.hasOwnProperty;
function a(i, o, s, u, f, d) {
var c = s & t, m = e(i), b = m.length, T = e(o), w = T.length;
if (b != w && !c)
return !1;
for (var _ = b; _--; ) {
var v = m[_];
if (!(c ? v in o : n.call(o, v)))
return !1;
}
var g = d.get(i), h = d.get(o);
if (g && h)
return g == o && h == i;
var p = !0;
d.set(i, o), d.set(o, i);
for (var y = c; ++_ < b; ) {
v = m[_];
var O = i[v], x = o[v];
if (u)
var L = c ? u(x, O, v, o, i, d) : u(O, x, v, i, o, d);
if (!(L === void 0 ? O === x || f(O, x, s, u, d) : L)) {
p = !1;
break;
}
y || (y = v == "constructor");
}
if (p && !y) {
var A = i.constructor, N = o.constructor;
A != N && "constructor" in i && "constructor" in o && !(typeof A == "function" && A instanceof A && typeof N == "function" && N instanceof N) && (p = !1);
}
return d.delete(i), d.delete(o), p;
}
return Aa = a, Aa;
}
var Ta, rc;
function Lv() {
if (rc) return Ta;
rc = 1;
var e = Ze(), t = Me(), r = e(t, "DataView");
return Ta = r, Ta;
}
var Ra, nc;
function qv() {
if (nc) return Ra;
nc = 1;
var e = Ze(), t = Me(), r = e(t, "Promise");
return Ra = r, Ra;
}
var ka, ac;
function Nv() {
if (ac) return ka;
ac = 1;
var e = Ze(), t = Me(), r = e(t, "Set");
return ka = r, ka;
}
var Ia, ic;
function Dv() {
if (ic) return Ia;
ic = 1;
var e = Ze(), t = Me(), r = e(t, "WeakMap");
return Ia = r, Ia;
}
var Ma, oc;
function jv() {
if (oc) return Ma;
oc = 1;
var e = Lv(), t = Zi(), r = qv(), n = Nv(), a = Dv(), i = wt(), o = $f(), s = "[object Map]", u = "[object Object]", f = "[object Promise]", d = "[object Set]", c = "[object WeakMap]", m = "[object DataView]", b = o(e), T = o(t), w = o(r), _ = o(n), v = o(a), g = i;
return (e && g(new e(new ArrayBuffer(1))) != m || t && g(new t()) != s || r && g(r.resolve()) != f || n && g(new n()) != d || a && g(new a()) != c) && (g = function(h) {
var p = i(h), y = p == u ? h.constructor : void 0, O = y ? o(y) : "";
if (O)
switch (O) {
case b:
return m;
case T:
return s;
case w:
return f;
case _:
return d;
case v:
return c;
}
return p;
}), Ma = g, Ma;
}
var Fa, sc;
function Kv() {
if (sc) return Fa;
sc = 1;
var e = el(), t = tl(), r = Tv(), n = Fv(), a = jv(), i = Te(), o = Zf(), s = Qf(), u = 1, f = "[object Arguments]", d = "[object Array]", c = "[object Object]", m = Object.prototype, b = m.hasOwnProperty;
function T(w, _, v, g, h, p) {
var y = i(w), O = i(_), x = y ? d : a(w), L = O ? d : a(_);
x = x == f ? c : x, L = L == f ? c : L;
var A = x == c, N = L == c, I = x == L;
if (I && o(w)) {
if (!o(_))
return !1;
y = !0, A = !1;
}
if (I && !A)
return p || (p = new e()), y || s(w) ? t(w, _, v, g, h, p) : r(w, _, x, v, g, h, p);
if (!(v & u)) {
var D = A && b.call(w, "__wrapped__"), M = N && b.call(_, "__wrapped__");
if (D || M) {
var E = D ? w.value() : w, F = M ? _.value() : _;
return p || (p = new e()), h(E, F, v, g, p);
}
}
return I ? (p || (p = new e()), n(w, _, v, g, h, p)) : !1;
}
return Fa = T, Fa;
}
var La, uc;
function rl() {
if (uc) return La;
uc = 1;
var e = Kv(), t = it();
function r(n, a, i, o, s) {
return n === a ? !0 : n == null || a == null || !t(n) && !t(a) ? n !== n && a !== a : e(n, a, i, o, r, s);
}
return La = r, La;
}
var qa, cc;
function Uv() {
if (cc) return qa;
cc = 1;
var e = el(), t = rl(), r = 1, n = 2;
function a(i, o, s, u) {
var f = s.length, d = f, c = !u;
if (i == null)
return !d;
for (i = Object(i); f--; ) {
var m = s[f];
if (c && m[2] ? m[1] !== i[m[0]] : !(m[0] in i))
return !1;
}
for (; ++f < d; ) {
m = s[f];
var b = m[0], T = i[b], w = m[1];
if (c && m[2]) {
if (T === void 0 && !(b in i))
return !1;
} else {
var _ = new e();
if (u)
var v = u(T, w, b, i, o, _);
if (!(v === void 0 ? t(w, T, r | n, u, _) : v))
return !1;
}
}
return !0;
}
return qa = a, qa;
}
var Na, fc;
function nl() {
if (fc) return Na;
fc = 1;
var e = Je();
function t(r) {
return r === r && !e(r);
}
return Na = t, Na;
}
var Da, lc;
function zv() {
if (lc) return Da;
lc = 1;
var e = nl(), t = io();
function r(n) {
for (var a = t(n), i = a.length; i--; ) {
var o = a[i], s = n[o];
a[i] = [o, s, e(s)];
}
return a;
}
return Da = r, Da;
}
var ja, dc;
function al() {
if (dc) return ja;
dc = 1;
function e(t, r) {
return function(n) {
return n == null ? !1 : n[t] === r && (r !== void 0 || t in Object(n));
};
}
return ja = e, ja;
}
var Ka, vc;
function Hv() {
if (vc) return Ka;
vc = 1;
var e = Uv(), t = zv(), r = al();
function n(a) {
var i = t(a);
return i.length == 1 && i[0][2] ? r(i[0][0], i[0][1]) : function(o) {
return o === a || e(o, a, i);
};
}
return Ka = n, Ka;
}
var Ua, pc;
function uo() {
if (pc) return Ua;
pc = 1;
var e = Te(), t = Ot(), r = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
function a(i, o) {
if (e(i))
return !1;
var s = typeof i;
return s == "number" || s == "symbol" || s == "boolean" || i == null || t(i) ? !0 : n.test(i) || !r.test(i) || o != null && i in Object(o);
}
return Ua = a, Ua;
}
var za, hc;
function Bv() {
if (hc) return za;
hc = 1;
var e = Qi(), t = "Expected a function";
function r(n, a) {
if (typeof n != "function" || a != null && typeof a != "function")
throw new TypeError(t);
var i = function() {
var o = arguments, s = a ? a.apply(this, o) : o[0], u = i.cache;
if (u.has(s))
return u.get(s);
var f = n.apply(this, o);
return i.cache = u.set(s, f) || u, f;
};
return i.cache = new (r.Cache || e)(), i;
}
return r.Cache = e, za = r, za;
}
var Ha, yc;
function $v() {
if (yc) return Ha;
yc = 1;
var e = Bv(), t = 500;
function r(n) {
var a = e(n, function(o) {
return i.size === t && i.clear(), o;
}), i = a.cache;
return a;
}
return Ha = r, Ha;
}
var Ba, mc;
function Vv() {
if (mc) return Ba;
mc = 1;
var e = $v(), t = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, r = /\\(\\)?/g, n = e(function(a) {
var i = [];
return a.charCodeAt(0) === 46 && i.push(""), a.replace(t, function(o, s, u, f) {
i.push(u ? f.replace(r, "$1") : s || o);
}), i;
});
return Ba = n, Ba;
}
var $a, gc;
function Wv() {
if (gc) return $a;
gc = 1;
var e = _t(), t = eo(), r = Te(), n = Ot(), a = e ? e.prototype : void 0, i = a ? a.toString : void 0;
function o(s) {
if (typeof s == "string")
return s;
if (r(s))
return t(s, o) + "";
if (n(s))
return i ? i.call(s) : "";
var u = s + "";
return u == "0" && 1 / s == -1 / 0 ? "-0" : u;
}
return $a = o, $a;
}
var Va, bc;
function il() {
if (bc) return Va;
bc = 1;
var e = Wv();
function t(r) {
return r == null ? "" : e(r);
}
return Va = t, Va;
}
var Wa, _c;
function ol() {
if (_c) return Wa;
_c = 1;
var e = Te(), t = uo(), r = Vv(), n = il();
function a(i, o) {
return e(i) ? i : t(i, o) ? [i] : r(n(i));
}
return Wa = a, Wa;
}
var Ya, wc;
function tr() {
if (wc) return Ya;
wc = 1;
var e = Ot();
function t(r) {
if (typeof r == "string" || e(r))
return r;
var n = r + "";
return n == "0" && 1 / r == -1 / 0 ? "-0" : n;
}
return Ya = t, Ya;
}
var Ga, Oc;
function co() {
if (Oc) return Ga;
Oc = 1;
var e = ol(), t = tr();
function r(n, a) {
a = e(a, n);
for (var i = 0, o = a.length; n != null && i < o; )
n = n[t(a[i++])];
return i && i == o ? n : void 0;
}
return Ga = r, Ga;
}
var Xa, Pc;
function Yv() {
if (Pc) return Xa;
Pc = 1;
var e = co();
function t(r, n, a) {
var i = r == null ? void 0 : e(r, n);
return i === void 0 ? a : i;
}
return Xa = t, Xa;
}
var Ja, Sc;
function Gv() {
if (Sc) return Ja;
Sc = 1;
function e(t, r) {
return t != null && r in Object(t);
}
return Ja = e, Ja;
}
var Za, Cc;
function Xv() {
if (Cc) return Za;
Cc = 1;
var e = ol(), t = ro(), r = Te(), n = ao(), a = no(), i = tr();
function o(s, u, f) {
u = e(u, s);
for (var d = -1, c = u.length, m = !1; ++d < c; ) {
var b = i(u[d]);
if (!(m = s != null && f(s, b)))
break;
s = s[b];
}
return m || ++d != c ? m : (c = s == null ? 0 : s.length, !!c && a(c) && n(b, c) && (r(s) || t(s)));
}
return Za = o, Za;
}
var Qa, xc;
function Jv() {
if (xc) return Qa;
xc = 1;
var e = Gv(), t = Xv();
function r(n, a) {
return n != null && t(n, a, e);
}
return Qa = r, Qa;
}
var ei, Ec;
function Zv() {
if (Ec) return ei;
Ec = 1;
var e = rl(), t = Yv(), r = Jv(), n = uo(), a = nl(), i = al(), o = tr(), s = 1, u = 2;
function f(d, c) {
return n(d) && a(c) ? i(o(d), c) : function(m) {
var b = t(m, d);
return b === void 0 && b === c ? r(m, d) : e(c, b, s | u);
};
}
return ei = f, ei;
}
var ti, Ac;
function Qv() {
if (Ac) return ti;
Ac = 1;
function e(t) {
return function(r) {
return r == null ? void 0 : r[t];
};
}
return ti = e, ti;
}
var ri, Tc;
function ep() {
if (Tc) return ri;
Tc = 1;
var e = co();
function t(r) {
return function(n) {
return e(n, r);
};
}
return ri = t, ri;
}
var ni, Rc;
function tp() {
if (Rc) return ni;
Rc = 1;
var e = Qv(), t = ep(), r = uo(), n = tr();
function a(i) {
return r(i) ? e(n(i)) : t(i);
}
return ni = a, ni;
}
var ai, kc;
function fo() {
if (kc) return ai;
kc = 1;
var e = Hv(), t = Zv(), r = Pt(), n = Te(), a = tp();
function i(o) {
return typeof o == "function" ? o : o == null ? r : typeof o == "object" ? n(o) ? t(o[0], o[1]) : e(o) : a(o);
}
return ai = i, ai;
}
var ii, Ic;
function rp() {
if (Ic) return ii;
Ic = 1;
var e = Jf(), t = bv(), r = fo(), n = Te();
function a(i, o) {
var s = n(i) ? e : t;
return s(i, r(o, 3));
}
return ii = a, ii;
}
var oi, Mc;
function np() {
if (Mc) return oi;
Mc = 1;
function e(t, r, n) {
var a;
return n(t, function(i, o, s) {
if (r(i, o, s))
return a = o, !1;
}), a;
}
return oi = e, oi;
}
var si, Fc;
function ap() {
if (Fc) return si;
Fc = 1;
var e = np(), t = oo(), r = fo();
function n(a, i) {
return e(a, r(i, 3), t);
}
return si = n, si;
}
var ui, Lc;
function ip() {
if (Lc) return ui;
Lc = 1;
function e(t) {
return t && t.length ? t[0] : void 0;
}
return ui = e, ui;
}
var ci, qc;
function op() {
return qc || (qc = 1, ci = ip()), ci;
}
var fi, Nc;
function sp() {
if (Nc) return fi;
Nc = 1;
function e(t, r) {
for (var n = -1, a = t == null ? 0 : t.length; ++n < a && r(t[n], n, t) !== !1; )
;
return t;
}
return fi = e, fi;
}
var li, Dc;
function sl() {
if (Dc) return li;
Dc = 1;
var e = Pt();
function t(r) {
return typeof r == "function" ? r : e;
}
return li = t, li;
}
var di, jc;
function up() {
if (jc) return di;
jc = 1;
var e = sp(), t = so(), r = sl(), n = Te();
function a(i, o) {
var s = n(i) ? e : t;
return s(i, r(o));
}
return di = a, di;
}
var vi, Kc;
function cp() {
if (Kc) return vi;
Kc = 1;
var e = oo(), t = sl();
function r(n, a) {
return n && e(n, t(a));
}
return vi = r, vi;
}
var pi, Uc;
function fp() {
if (Uc) return pi;
Uc = 1;
function e() {
}
return pi = e, pi;
}
var hi, zc;
function lp() {
if (zc) return hi;
zc = 1;
var e = so(), t = St();
function r(n, a) {
var i = -1, o = t(n) ? Array(n.length) : [];
return e(n, function(s, u, f) {
o[++i] = a(s, u, f);
}), o;
}
return hi = r, hi;
}
var yi, Hc;
function dp() {
if (Hc) return yi;
Hc = 1;
function e(t, r) {
var n = t.length;
for (t.sort(r); n--; )
t[n] = t[n].value;
return t;
}
return yi = e, yi;
}
var mi, Bc;
function vp() {
if (Bc) return mi;
Bc = 1;
var e = Ot();
function t(r, n) {
if (r !== n) {
var a = r !== void 0, i = r === null, o = r === r, s = e(r), u = n !== void 0, f = n === null, d = n === n, c = e(n);
if (!f && !c && !s && r > n || s && u && d && !f && !c || i && u && d || !a && d || !o)
return 1;
if (!i && !s && !c && r < n || c && a && o && !i && !s || f && a && o || !u && o || !d)
return -1;
}
return 0;
}
return mi = t, mi;
}
var gi, $c;
function pp() {
if ($c) return gi;
$c = 1;
var e = vp();
function t(r, n, a) {
for (var i = -1, o = r.criteria, s = n.criteria, u = o.length, f = a.length; ++i < u; ) {
var d = e(o[i], s[i]);
if (d) {
if (i >= f)
return d;
var c = a[i];
return d * (c == "desc" ? -1 : 1);
}
}
return r.index - n.index;
}
return gi = t, gi;
}
var bi, Vc;
function hp() {
if (Vc) return bi;
Vc = 1;
var e = eo(), t = co(), r = fo(), n = lp(), a = dp(), i = to(), o = pp(), s = Pt(), u = Te();
function f(d, c, m) {
c.length ? c = e(c, function(w) {
return u(w) ? function(_) {
return t(_, w.length === 1 ? w[0] : w);
} : w;
}) : c = [s];
var b = -1;
c = e(c, i(r));
var T = n(d, function(w, _, v) {
var g = e(c, function(h) {
return h(w);
});
return { criteria: g, index: ++b, value: w };
});
return a(T, function(w, _) {
return o(w, _, m);
});
}
return bi = f, bi;
}
var _i, Wc;
function yp() {
if (Wc) return _i;
Wc = 1;
var e = Ji(), t = St(), r = ao(), n = Je();
function a(i, o, s) {
if (!n(s))
return !1;
var u = typeof o;
return (u == "number" ? t(s) && r(o, s.length) : u == "string" && o in s) ? e(s[o], i) : !1;
}
return _i = a, _i;
}
var wi, Yc;
function mp() {
if (Yc) return wi;
Yc = 1;
var e = Gf(), t = hp(), r = Xf(), n = yp(), a = r(function(i, o) {
if (i == null)
return [];
var s = o.length;
return s > 1 && n(i, o[0], o[1]) ? o = [] : s > 2 && n(o[0], o[1], o[2]) && (o = [o[0]]), t(i, e(o, 1), []);
});
return wi = a, wi;
}
var Oi, Gc;
function gp() {
if (Gc) return Oi;
Gc = 1;
var e = Hf(), t = Je(), r = "Expected a function";
function n(a, i, o) {
var s = !0, u = !0;
if (typeof a != "function")
throw new TypeError(r);
return t(o) && (s = "leading" in o ? !!o.leading : s, u = "trailing" in o ? !!o.trailing : u), e(a, i, {
leading: s,
maxWait: i,
trailing: u
});
}
return Oi = n, Oi;
}
var Pi, Xc;
function bp() {
if (Xc) return Pi;
Xc = 1;
var e = il(), t = 0;
function r(n) {
var a = ++t;
return e(n) + a;
}
return Pi = r, Pi;
}
var _p = zt.exports, Jc;
function wp() {
return Jc || (Jc = 1, function(e, t) {
(function(r, n) {
e.exports = n(Hf(), ov(), rp(), ap(), op(), up(), cp(), fp(), mp(), gp(), bp(), Ae);
})(_p, function(r, n, a, i, o, s, u, f, d, c, m, b) {
return function() {
var T = { 654: function(_, v, g) {
var h, p = this && this.__assign || function() {
return p = Object.assign || function(R) {
for (var l, P = 1, C = arguments.length; P < C; P++) for (var k in l = arguments[P]) Object.prototype.hasOwnProperty.call(l, k) && (R[k] = l[k]);
return R;
}, p.apply(this, arguments);
}, y = this && this.__createBinding || (Object.create ? function(R, l, P, C) {
C === void 0 && (C = P);
var k = Object.getOwnPropertyDescriptor(l, P);
k && !("get" in k ? !l.__esModule : k.writable || k.configurable) || (k = { enumerable: !0, get: function() {
return l[P];
} }), Object.defineProperty(R, C, k);
} : function(R, l, P, C) {
C === void 0 && (C = P), R[C] = l[P];
}), O = this && this.__setModuleDefault || (Object.create ? function(R, l) {
Object.defineProperty(R, "default", { enumerable: !0, value: l });
} : function(R, l) {
R.default = l;
}), x = this && this.__importStar || function(R) {
if (R && R.__esModule) return R;
var l = {};
if (R != null) for (var P in R) P !== "default" && Object.prototype.hasOwnProperty.call(R, P) && y(l, R, P);
return O(l, R), l;
}, L = this && this.__spreadArray || function(R, l, P) {
if (P || arguments.length === 2) for (var C, k = 0, H = l.length; k < H; k++) !C && k in l || (C || (C = Array.prototype.slice.call(l, 0, k)), C[k] = l[k]);
return R.concat(C || Array.prototype.slice.call(l));
}, A = this && this.__importDefault || function(R) {
return R && R.__esModule ? R : { default: R };
};
Object.defineProperty(v, "__esModule", { value: !0 }), v.updateRtl = v.doesFocusableExist = v.getCurrentFocusKey = v.updateAllLayouts = v.resume = v.pause = v.navigateByDirection = v.setFocus = v.setKeyMap = v.destroy = v.setThrottle = v.init = v.SpatialNavigation = v.ROOT_FOCUS_KEY = void 0;
var N = A(g(150)), I = A(g(117)), D = A(g(747)), M = A(g(23)), E = A(g(842)), F = A(g(682)), X = A(g(784)), ae = A(g(432)), pe = A(g(67)), K = A(g(35)), S = A(g(119)), q = x(g(964)), U = "left", B = "right", W = "up", G = "down", J = "enter", Z = ((h = {}).left = [37, "ArrowLeft"], h.up = [38, "ArrowUp"], h.right = [39, "ArrowRight"], h.down = [40, "ArrowDown"], h.enter = [13, "Enter"], h);
v.ROOT_FOCUS_KEY = "SN:ROOT";
var Q = ["#0FF", "#FF0", "#F0F"], ee = { leading: !0, trailing: !1 }, j = function() {
function R() {
this.focusableComponents = {}, this.focusKey = null, this.parentsHavingFocusedChild = [], this.domNodeFocusOptions = {}, this.enabled = !1, this.nativeMode = !1, this.throttle = 0, this.throttleKeypresses = !1, this.useGetBoundingClientRect = !1, this.shouldFocusDOMNode = !1, this.shouldUseNativeEvents = !1, this.writingDirection = S.default.LTR, this.pressedKeys = {}, this.paused = !1, this.keyDownEventListener = null, this.keyUpEventListener = null, this.keyMap = Z, this.pause = this.pause.bind(this), this.resume = this.resume.bind(this), this.setFocus = this.setFocus.bind(this), this.updateAllLayouts = this.updateAllLayouts.bind(this), this.navigateByDirection = this.navigateByDirection.bind(this), this.init = this.init.bind(this), this.setThrottle = this.setThrottle.bind(this), this.destroy = this.destroy.bind(this), this.setKeyMap = this.setKeyMap.bind(this), this.getCurrentFocusKey = this.getCurrentFocusKey.bind(this), this.doesFocusableExist = this.doesFocusableExist.bind(this), this.updateRtl = this.updateRtl.bind(this), this.setFocusDebounced = (0, N.default)(this.setFocus, 300, { leading: !1, trailing: !0 }), this.debug = !1, this.visualDebugger = null, this.logIndex = 0, this.distanceCalculationMethod = "corners";
}
return R.getCutoffCoordinate = function(l, P, C, k, H) {
var $ = l ? k.top : H === S.default.LTR ? k.left : k.right, Y = l ? k.bottom : H === S.default.LTR ? k.right : k.left;
return P ? C ? $ : Y : C ? Y : $;
}, R.getRefCorners = function(l, P, C) {
var k = { a: { x: 0, y: 0 }, b: { x: 0, y: 0 } };
switch (l) {
case W:
var H = P ? C.bottom : C.top;
k.a = { x: C.left, y: H }, k.b = { x: C.right, y: H };
break;
case G:
H = P ? C.top : C.bottom, k.a = { x: C.left, y: H }, k.b = { x: C.right, y: H };
break;
case U:
var $ = P ? C.right : C.left;
k.a = { x: $, y: C.top }, k.b = { x: $, y: C.bottom };
break;
case B:
$ = P ? C.left : C.right, k.a = { x: $, y: C.top }, k.b = { x: $, y: C.bottom };
}
return k;
}, R.isAdjacentSlice = function(l, P, C) {
var k = l.a, H = l.b, $ = P.a, Y = P.b, te = C ? "x" : "y", fe = k[te], se = H[te], oe = $[te], ne = Y[te], re = 0.2 * (se - fe);
return Math.max(0, Math.min(se, ne) - Math.max(fe, oe)) >= re;
}, R.getPrimaryAxisDistance = function(l, P, C) {
var k = l.a, H = P.a, $ = C ? "y" : "x";
return Math.abs(H[$] - k[$]);
}, R.getSecondaryAxisDistance = function(l, P, C, k, H) {
if (H) return H(l, P, C, k);
var $ = l.a, Y = l.b, te = P.a, fe = P.b, se = C ? "x" : "y", oe = $[se], ne = Y[se], re = te[se], _e = fe[se];
if (k === "center") {
var ge = (oe + ne) / 2, Oe = (re + _e) / 2;
return Math.abs(ge - Oe);
}
if (k === "edges") {
var Fe = Math.min(oe, ne), he = Math.min(re, _e), xe = Math.max(oe, ne), je = Math.max(re, _e), ke = Math.abs(Fe - he), Ee = Math.abs(xe - je);
return Math.min(ke, Ee);
}
var st = [Math.abs(re - oe), Math.abs(re - ne), Math.abs(_e - oe), Math.abs(_e - ne)];
return Math.min.apply(Math, st);
}, R.prototype.sortSiblingsByPriority = function(l, P, C, k) {
var H = this, $ = C === G || C === W, Y = R.getRefCorners(C, !1, P);
return (0, ae.default)(l, function(te) {
var fe = R.getRefCorners(C, !0, te.layout), se = R.isAdjacentSlice(Y, fe, $), oe = se ? R.getPrimaryAxisDistance : R.getSecondaryAxisDistance, ne = se ? R.getSecondaryAxisDistance : R.getPrimaryAxisDistance, re = oe(Y, fe, $, H.distanceCalculationMethod, H.customDistanceCalculationFunction), _e = ne(Y, fe, $, H.distanceCalculationMethod, H.customDistanceCalculationFunction), ge = 5 * re + _e, Oe = (ge + 1) / (se ? 5 : 1);
return H.log("smartNavigate", "distance (primary, secondary, total weighted) for ".concat(te.focusKey, " relative to ").concat(k, " is"), re, _e, ge), H.log("smartNavigate", "priority for ".concat(te.focusKey, " relative to ").concat(k, " is"), Oe), H.visualDebugger && (H.visualDebugger.drawPoint(fe.a.x, fe.a.y, "yellow", 6), H.visualDebugger.drawPoint(fe.b.x, fe.b.y, "yellow", 6)), Oe;
});
}, R.prototype.init = function(l) {
var P = this, C = l === void 0 ? {} : l, k = C.debug, H = k !== void 0 && k, $ = C.visualDebug, Y = $ !== void 0 && $, te = C.nativeMode, fe = te !== void 0 && te, se = C.throttle, oe = se === void 0 ? 0 : se, ne = C.throttleKeypresses, re = ne !== void 0 && ne, _e = C.useGetBoundingClientRect, ge = _e !== void 0 && _e, Oe = C.shouldFocusDOMNode, Fe = Oe !== void 0 && Oe, he = C.domNodeFocusOptions, xe = he === void 0 ? {} : he, je = C.shouldUseNativeEvents, ke = je !== void 0 && je, Ee = C.rtl, st = Ee !== void 0 && Ee, be = C.distanceCalculationMethod, Pe = be === void 0 ? "corners" : be, Co = C.customDistanceCalculationFunction, Hl = Co === void 0 ? void 0 : Co;
if (!this.enabled && (this.domNodeFocusOptions = xe, this.enabled = !0, this.nativeMode = fe, this.throttleKeypresses = re, this.useGetBoundingClientRect = ge, this.shouldFocusDOMNode = Fe && !fe, this.shouldUseNativeEvents = ke, this.writingDirection = st ? S.default.RTL : S.default.LTR, this.distanceCalculationMethod = Pe, this.customDistanceCalculationFunction = Hl, this.debug = H, !this.nativeMode && (Number.isInteger(oe) && oe > 0 && (this.throttle = oe), this.bindEventHandlers(), Y))) {
this.visualDebugger = new K.default(this.writingDirection);
var xo = function() {
requestAnimationFrame(function() {
P.visualDebugger.clearLayouts(), (0, X.default)(P.focusableComponents, function(Eo, Bl) {
P.visualDebugger.drawLayout(Eo.layout, Bl, Eo.parentFocusKey);
}), xo();
});
};
xo();
}
}, R.prototype.setThrottle = function(l) {
var P = l === void 0 ? {} : l, C = P.throttle, k = C === void 0 ? 0 : C, H = P.throttleKeypresses, $ = H !== void 0 && H;
this.throttleKeypresses = $, this.nativeMode || (this.unbindEventHandlers(), Number.isInteger(k) && (this.throttle = k), this.bindEventHandlers());
}, R.prototype.destroy = function() {
this.enabled && (this.enabled = !1, this.nativeMode = !1, this.throttle = 0, this.throttleKeypresses = !1, this.focusKey = null, this.parentsHavingFocusedChild = [], this.focusableComponents = {}, this.paused = !1, this.keyMap = Z, this.unbindEventHandlers());
}, R.prototype.getEventType = function(l) {
return (0, M.default)(this.getKeyMap(), function(P) {
return P.includes(l);
});
}, R.getKeyCode = function(l) {
return l.keyCode || l.code || l.key;
}, R.prototype.bindEventHandlers = function() {
var l = this;
typeof window < "u" && window.addEventListener && (this.keyDownEventListener = function(P) {
if (l.paused !== !0) {
l.debug && (l.logIndex += 1);
var C = R.getKeyCode(P), k = l.getEventType(C);
if (k) {
l.pressedKeys[k] = l.pressedKeys[k] ? l.pressedKeys[k] + 1 : 1, l.shouldUseNativeEvents || (P.preventDefault(), P.stopPropagation());
var H = { pressedKeys: l.pressedKeys };
if (k === J && l.focusKey) l.onEnterPress(H);
else {
var $ = l.onArrowPress(k, H) === !1;
if (l.visualDebugger && l.visualDebugger.clear(), $) l.log("keyDownEventListener", "default navigation prevented");
else {
var Y = (0, M.default)(l.getKeyMap(), function(te) {
return te.includes(C);
});
l.smartNavigate(Y, null, { event: P });
}
}
}
}
}, this.throttle && (this.keyDownEventListenerThrottled = (0, pe.default)(this.keyDownEventListener.bind(this), this.throttle, ee)), this.keyUpEventListener = function(P) {
var C = R.getKeyCode(P), k = l.getEventType(C);
delete l.pressedKeys[k], l.throttle && !l.throttleKeypresses && l.keyDownEventListenerThrottled.cancel(), k === J && l.focusKey && l.onEnterRelease(), !l.focusKey || k !== U && k !== B && k !== W && k !== G || l.onArrowRelease(k);
}, window.addEventListener("keyup", this.keyUpEventListener), window.addEventListener("keydown", this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener));
}, R.prototype.unbindEventHandlers = function() {
if (typeof window < "u" && window.removeEventListener) {
window.removeEventListener("keyup", this.keyUpEventListener), this.keyUpEventListener = null;
var l = this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener;
window.removeEventListener("keydown", l), this.keyDownEventListener = null;
}
}, R.prototype.onEnterPress = function(l) {
var P = this.focusableComponents[this.focusKey];
P ? P.focusable ? P.onEnterPress && P.onEnterPress(l) : this.log("onEnterPress", "componentNotFocusable") : this.log("onEnterPress", "noComponent");
}, R.prototype.onEnterRelease = function() {
var l = this.focusableComponents[this.focusKey];
l ? l.focusable ? l.onEnterRelease && l.onEnterRelease() : this.log("onEnterRelease", "componentNotFocusable") : this.log("onEnterRelease", "noComponent");
}, R.prototype.onArrowPress = function(l, P) {
var C = this.focusableComponents[this.focusKey];
if (C) return C && C.onArrowPress && C.onArrowPress(l, P);
this.log("onArrowPress", "noComponent");
}, R.prototype.onArrowRelease = function(l) {
var P = this.focusableComponents[this.focusKey];
P ? P.focusable ? P.onArrowRelease && P.onArrowRelease(l) : this.log("onArrowRelease", "componentNotFocusable") : this.log("onArrowRelease", "noComponent");
}, R.prototype.navigateByDirection = function(l, P) {
if (this.paused !== !0 && this.enabled && !this.nativeMode) {
var C = [G, W, U, B];
C.includes(l) ? (this.log("navigateByDirection", "direction", l), this.smartNavigate(l, null, P)) : this.log("navigateByDirection", "Invalid direction. You passed: `".concat(l, "`, but you can use only these: "), C);
}
}, R.prototype.smartNavigate = function(l, P, C) {
var k = this;
if (!this.nativeMode) {
var H = l === G || l === W, $ = l === G || (this.writingDirection === S.default.LTR ? l === B : l === U);
this.log("smartNavigate", "direction", l), this.log("smartNavigate", "fromParentFocusKey", P), this.log("smartNavigate", "this.focusKey", this.focusKey), P || (0, X.default)(this.focusableComponents, function(he) {
he.layoutUpdated = !1;
});
var Y = this.focusableComponents[P || this.focusKey];
if (P || Y) {
if (this.log("smartNavigate", "currentComponent", Y ? Y.focusKey : void 0, Y ? Y.node : void 0, Y), Y) {
this.updateLayout(Y.focusKey);
var te = Y.parentFocusKey, fe = Y.focusKey, se = Y.layout, oe = R.getCutoffCoordinate(H, $, !1, se, this.writingDirection), ne = (0, D.default)(this.focusableComponents, function(he) {
if (he.parentFocusKey === te && he.focusable) {
k.updateLayout(he.focusKey);
var xe = R.getCutoffCoordinate(H, $, !0, he.layout, k.writingDirection);
return H || k.writingDirection === S.default.LTR ? $ ? xe >= oe : xe <= oe : $ ? xe <= oe : xe >= oe;
}
return !1;
});
if (this.debug && (this.log("smartNavigate", "currentCutoffCoordinate", oe), this.log("smartNavigate", "siblings", "".concat(ne.length, " elements:"), ne.map(function(he) {
return he.focusKey;
}).join(", "), ne.map(function(he) {
return he.node;
}), ne.map(function(he) {
return he;
}))), this.visualDebugger) {
var re = R.getRefCorners(l, !1, se);
this.visualDebugger.drawPoint(re.a.x, re.a.y), this.visualDebugger.drawPoint(re.b.x, re.b.y);
}
var _e = this.sortSiblingsByPriority(ne, se, l, fe), ge = (0, E.default)(_e);
if (this.log("smartNavigate", "nextComponent", ge ? ge.focusKey : void 0, ge ? ge.node : void 0, ge), ge) this.setFocus(ge.focusKey, C);
else {
var Oe = this.focusableComponents[te], Fe = Oe != null && Oe.isFocusBoundary ? Oe.focusBoundaryDirections || [l] : [];
Oe && Fe.includes(l) || this.smartNavigate(l, te, C);
}
}
} else this.setFocus(this.getForcedFocusKey());
}
}, R.prototype.saveLastFocusedChildKey = function(l, P) {
l && (this.log("saveLastFocusedChildKey", "".concat(l.focusKey, " lastFocusedChildKey set"), P), l.lastFocusedChildKey = P);
}, R.prototype.log = function(l, P) {
for (var C = [], k = 2; k < arguments.length; k++) C[k - 2] = arguments[k];
this.debug && console.log.apply(console, L(["%c".concat(l, "%c").concat(P), "background: ".concat(Q[this.logIndex % Q.length], "; color: black; padding: 1px 5px;"), "background: #333; color: #BADA55; padding: 1px 5px;"], C, !1));
}, R.prototype.getCurrentFocusKey = function() {
return this.focusKey;
}, R.prototype.getForcedFocusKey = function() {
var l, P = (0, D.default)(this.focusableComponents, function(k) {
return k.focusable && k.forceFocus;
}), C = this.sortSiblingsByPriority(P, { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: null }, "down", v.ROOT_FOCUS_KEY);
return (l = (0, E.default)(C)) === null || l === void 0 ? void 0 : l.focusKey;
}, R.prototype.getNextFocusKey = function(l) {
var P = this, C = this.focusableComponents[l];
if (!C || this.nativeMode) return l;
var k = (0, D.default)(this.focusableComponents, function(te) {
return te.parentFocusKey === l && te.focusable;
});
if (k.length > 0) {
var H = C.lastFocusedChildKey, $ = C.preferredChildFocusKey;
if (this.log("getNextFocusKey", "lastFocusedChildKey is", H), this.log("getNextFocusKey", "preferredChildFocusKey is", $), H && C.saveLastFocusedChild && this.isParticipatingFocusableComponent(H)) return this.log("getNextFocusKey", "lastFocusedChildKey will be focused", H), this.getNextFocusKey(H);
if ($ && this.isParticipatingFocusableComponent($)) return this.log("getNextFocusKey", "preferredChildFocusKey will be focused", $), this.getNextFocusKey($);
k.forEach(function(te) {
return P.updateLayout(te.focusKey);
});
var Y = function(te, fe) {
var se = fe === S.default.LTR ? function(ne) {
var re = ne.layout;
return Math.abs(re.left) + Math.abs(re.top);
} : function(ne) {
var re = ne.layout;
return Math.abs(window.innerWidth - re.right) + Math.abs(re.top);
}, oe = (0, ae.default)(te, se);
return (0, E.default)(oe);
}(k, this.writingDirection).focusKey;
return this.log("getNextFocusKey", "childKey will be focused", Y), this.getNextFocusKey(Y);
}
return this.log("getNextFocusKey", "targetFocusKey", l), l;
}, R.prototype.addFocusable = function(l) {
var P = l.focusKey, C = l.node, k = l.parentFocusKey, H = l.onEnterPress, $ = l.onEnterRelease, Y = l.onArrowPress, te = l.onArrowRelease, fe = l.onFocus, se = l.onBlur, oe = l.saveLastFocusedChild, ne = l.trackChildren, re = l.onUpdateFocus, _e = l.onUpdateHasFocusedChild, ge = l.preferredChildFocusKey, Oe = l.autoRestoreFocus, Fe = l.forceFocus, he = l.focusable, xe = l.isFocusBoundary, je = l.focusBoundaryDirections;
if (this.focusableComponents[P] = { focusKey: P, node: C, parentFocusKey: k, onEnterPress: H, onEnterRelease: $, onArrowPress: Y, onArrowRelease: te, onFocus: fe, onBlur: se, onUpdateFocus: re, onUpdateHasFocusedChild: _e, saveLastFocusedChild: oe, trackChildren: ne, preferredChildFocusKey: ge, focusable: he, isFocusBoundary: xe, focusBoundaryDirections: je, autoRestoreFocus: Oe, forceFocus: Fe, lastFocusedChildKey: null, layout: { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: C }, layoutUpdated: !1 }, C || console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ', this.focusableComponents[P]), !this.nativeMode) {
this.updateLayout(P), this.log("addFocusable", "Component added: ", this.focusableComponents[P]), P === this.focusKey && this.setFocus(ge || P);
for (var ke = this.focusableComponents[this.focusKey]; ke; ) {
if (ke.parentFocusKey === P) {
this.updateParentsHasFocusedChild(this.focusKey, {}), this.updateParentsLastFocusedChild(this.focusKey);
break;
}
ke = this.focusableComponents[ke.parentFocusKey];
}
}
}, R.prototype.removeFocusable = function(l) {
var P = l.focusKey, C = this.focusableComponents[P];
if (C) {
var k = C.parentFocusKey;
(0, C.onUpdateFocus)(!1), this.log("removeFocusable", "Component removed: ", C), delete this.focusableComponents[P];
var H = this.parentsHavingFocusedChild.includes(P);
this.parentsHavingFocusedChild = this.parentsHavingFocusedChild.filter(function(te) {
return te !== P;
});
var $ = this.focusableComponents[k], Y = P === this.focusKey;
if ($ && $.lastFocusedChildKey === P && ($.lastFocusedChildKey = null), this.nativeMode) return;
(Y || H) && $ && $.autoRestoreFocus && (this.log("removeFocusable", "Component removed: ", Y ? "Leaf component" : "Container component", "Auto restoring focus to: ", k), this.setFocusDebounced(k));
}
}, R.prototype.getNodeLayoutByFocusKey = function(l) {
var P = this.focusableComponents[l];
return P ? (this.updateLayout(P.focusKey), P.layout) : null;
}, R.prototype.setCurrentFocusedKey = function(l, P) {
var C, k, H, $;
if (this.isFocusableComponent(this.focusKey) && l !== this.focusKey) {
var Y = this.focusableComponents[this.focusKey];
Y.onUpdateFocus(!1), Y.onBlur(this.getNodeLayoutByFocusKey(this.focusKey), P), (k = (C = Y.node) === null || C === void 0 ? void 0 : C.removeAttribute) === null || k === void 0 || k.call(C, "data-focused"), this.log("setCurrentFocusedKey", "onBlur", Y);
}
if (this.focusKey = l, this.isFocusableComponent(this.focusKey)) {
var te = this.focusableComponents[this.focusKey];
this.shouldFocusDOMNode && te.node && te.node.focus(this.domNodeFocusOptions), ($ = (H = te.node) === null || H === void 0 ? void 0 : H.setAttribute) === null || $ === void 0 || $.call(H, "data-focused", "true"), te.onUpdateFocus(!0), te.onFocus(this.getNodeLayoutByFocusKey(this.focusKey), P), this.log("setCurrentFocusedKey", "onFocus", te);
}
}, R.prototype.updateParentsHasFocusedChild = function(l, P) {
for (var C = this, k = [], H = this.focusableComponents[l]; H; ) {
var $ = H.parentFocusKey, Y = this.focusableComponents[$];
if (Y) {
var te = Y.focusKey;
k.push(te);
}
H = Y;
}
var fe = (0, I.default)(this.parentsHavingFocusedChild, k), se = (0, I.default)(k, this.parentsHavingFocusedChild);
(0, F.default)(fe, function(oe) {
var ne = C.focusableComponents[oe];
ne && ne.trackChildren && ne.onUpdateHasFocusedChild(!1), C.onIntermediateNodeBecameBlurred(oe, P);
}), (0, F.default)(se, function(oe) {
var ne = C.focusableComponents[oe];
ne && ne.trackChildren && ne.onUpdateHasFocusedChild(!0), C.onIntermediateNodeBecameFocused(oe, P);
}), this.parentsHavingFocusedChild = k;
}, R.prototype.updateParentsLastFocusedChild = function(l) {
for (var P = this.focusableComponents[l]; P; ) {
var C = P.parentFocusKey, k = this.focusableComponents[C];
k && this.saveLastFocusedChildKey(k, P.focusKey), P = k;
}
}, R.prototype.getKeyMap = function() {
return this.keyMap;
}, R.prototype.setKeyMap = function(l) {
this.keyMap = p(p({}, this.getKeyMap()), function(P) {
var C = {};
return Object.entries(P).forEach(function(k) {
var H = k[0], $ = k[1];
C[H] = Array.isArray($) ? $ : [$];
}), C;
}(l));
}, R.prototype.isFocusableComponent = function(l) {
return !!this.focusableComponents[l];
}, R.prototype.isParticipatingFocusableComponent = function(l) {
return this.isFocusableComponent(l) && this.focusableComponents[l].focusable;
}, R.prototype.onIntermediateNodeBecameFocused = function(l, P) {
this.isParticipatingFocusableComponent(l) && this.focusableComponents[l].onFocus(this.getNodeLayoutByFocusKey(l), P);
}, R.prototype.onIntermediateNodeBecameBlurred = function(l, P) {
this.isParticipatingFocusableComponent(l) && this.focusableComponents[l].onBlur(this.getNodeLayoutByFocusKey(l), P);
}, R.prototype.pause = function() {
this.paused = !0;
}, R.prototype.resume = function() {
this.paused = !1;
}, R.prototype.setFocus = function(l, P) {
if (P === void 0 && (P = {}), this.setFocusDebounced.cancel(), this.enabled) {
this.log("setFocus", "focusKey", l), l && l !== v.ROOT_FOCUS_KEY || (l = this.getForcedFocusKey());
var C = this.getNextFocusKey(l);
this.log("setFocus", "newFocusKey", C), this.setCurrentFocusedKey(C, P), this.updateParentsHasFocusedChild(C, P), this.updateParentsLastFocusedChild(C);
}
}, R.prototype.updateAllLayouts = function() {
var l = this;
this.enabled && !this.nativeMode && (0, X.default)(this.focusableComponents, function(P, C) {
l.updateLayout(C);
});
}, R.prototype.updateLayout = function(l) {
var P = this.focusableComponents[l];
if (P && !this.nativeMode && !P.layoutUpdated) {
var C = P.node, k = this.useGetBoundingClientRect ? (0, q.getBoundingClientRect)(C) : (0, q.default)(C);
P.layout = p(p({}, k), { node: C });
}
}, R.prototype.updateFocusable = function(l, P) {
var C = P.node, k = P.preferredChildFocusKey, H = P.focusable, $ = P.isFocusBoundary, Y = P.focusBoundaryDirections, te = P.onEnterPress, fe = P.onEnterRelease, se = P.onArrowPress, oe = P.onFocus, ne = P.onBlur;
if (!this.nativeMode) {
var re = this.focusableComponents[l];
re && (re.preferredChildFocusKey = k, re.focusable = H, re.isFocusBoundary = $, re.focusBoundaryDirections = Y, re.onEnterPress = te, re.onEnterRelease = fe, re.onArrowPress = se, re.onFocus = oe, re.onBlur = ne, C && (re.node = C));
}
}, R.prototype.isNativeMode = function() {
return this.nativeMode;
}, R.prototype.doesFocusableExist = function(l) {
return !!this.focusableComponents[l];
}, R.prototype.updateRtl = function(l) {
this.writingDirection = l ? S.default.RTL : S.default.LTR;
}, R;
}();
v.SpatialNavigation = new j(), v.init = v.SpatialNavigation.init, v.setThrottle = v.SpatialNavigation.setThrottle, v.destroy = v.SpatialNavigation.destroy, v.setKeyMap = v.SpatialNavigation.setKeyMap, v.setFocus = v.SpatialNavigation.setFocus, v.navigateByDirection = v.SpatialNavigation.navigateByDirection, v.pause = v.SpatialNavigation.pause, v.resume = v.SpatialNavigation.resume, v.updateAllLayouts = v.SpatialNavigation.updateAllLayouts, v.getCurrentFocusKey = v.SpatialNavigation.getCurrentFocusKey, v.doesFocusableExist = v.SpatialNavigation.doesFocusableExist, v.updateRtl = v.SpatialNavigation.updateRtl;
}, 35: function(_, v, g) {
var h = this && this.__importDefault || function(A) {
return A && A.__esModule ? A : { default: A };
};
Object.defineProperty(v, "__esModule", { value: !0 });
var p = h(g(119)), y = typeof window < "u" && window.document, O = y ? window.innerWidth : 0, x = y ? window.innerHeight : 0, L = function() {
function A(N) {
y && (this.debugCtx = A.createCanvas("sn-debug", "1010", N), this.layoutsCtx = A.createCanvas("sn-layouts", "1000", N), this.writingDirection = N);
}
return A.createCanvas = function(N, I, D) {
var M = document.querySelector("#".concat(N)) || document.createElement("canvas");
M.setAttribute("id", N), M.setAttribute("dir", D === p.default.LTR ? "ltr" : "rtl");
var E = M.getContext("2d");
return M.style.zIndex = I, M.style.position = "fixed", M.style.top = "0", M.style.left = "0", document.body.appendChild(M), M.width = O, M.height = x, E;
}, A.prototype.clear = function() {
y && this.debugCtx.clearRect(0, 0, O, x);
}, A.prototype.clearLayouts = function() {
y && this.layoutsCtx.clearRect(0, 0, O, x);
}, A.prototype.drawLayout = function(N, I, D) {
if (y) {
this.layoutsCtx.strokeStyle = "green", this.layoutsCtx.strokeRect(N.left, N.top, N.width, N.height), this.layoutsCtx.font = "8px monospace", this.layoutsCtx.fillStyle = "red";
var M = this.writingDirection === p.default.LTR ? "left" : "right", E = N[M];
this.layoutsCtx.fillText(I, E, N.top + 10), this.layoutsCtx.fillText(D, E, N.top + 25), this.layoutsCtx.fillText("".concat(M, ": ").concat(E), E, N.top + 40), this.layoutsCtx.fillText("top: ".concat(N.top), E, N.top + 55);
}
}, A.prototype.drawPoint = function(N, I, D, M) {
D === void 0 && (D = "blue"), M === void 0 && (M = 10), y && (this.debugCtx.strokeStyle = D, this.debugCtx.lineWidth = 3, this.debugCtx.strokeRect(N - M / 2, I - M / 2, M, M));
}, A;
}();
v.default = L;
}, 119: function(_, v) {
var g;
Object.defineProperty(v, "__esModule", { value: !0 }), function(h) {
h[h.LTR = 0] = "LTR", h[h.RTL = 1] = "RTL";
}(g || (g = {})), v.default = g;
}, 607: function(_, v, g) {
var h = this && this.__createBinding || (Object.create ? function(y, O, x, L) {
L === void 0 && (L = x);
var A = Object.getOwnPropertyDescriptor(O, x);
A && !("get" in A ? !O.__esModule : A.writable || A.configurable) || (A = { enumerable: !0, get: function() {
return O[x];
} }), Object.defineProperty(y, L, A);
} : function(y, O, x, L) {
L === void 0 && (L = x), y[L] = O[x];
}), p = this && this.__exportStar || function(y, O) {
for (var x in y) x === "default" || Object.prototype.hasOwnProperty.call(O, x) || h(O, y, x);
};
Object.defineProperty(v, "__esModule", { value: !0 }), p(g(79), v), p(g(445), v), p(g(654), v);
}, 964: function(_, v) {
Object.defineProperty(v, "__esModule", { value: !0 }), v.getBoundingClientRect = void 0;
var g = function(h) {
for (var p = h.offsetParent, y = h.offsetHeight, O = h.offsetWidth, x = h.offsetLeft, L = h.offsetTop; p && p.nodeType === 1; ) x += p.offsetLeft - p.scrollLeft, L += p.offsetTop - p.scrollTop, p = p.offsetParent;
return { height: y, left: x, top: L, width: O };
};
v.default = function(h) {
var p = h && h.parentElement;
if (h && p) {
var y = g(p), O = g(h), x = O.height, L = O.left, A = O.top, N = O.width;
return { x: L - y.left, y: A - y.top, width: N, height: x, left: L, top: A, get right() {
return this.left + this.width;
}, get bottom() {
return this.top + this.height;
} };
}
return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
}, v.getBoundingClientRect = function(h) {
if (h && h.getBoundingClientRect) {
var p = h.getBoundingClientRect();
return { x: p.x, y: p.y, width: p.width, height: p.height, left: p.left, top: p.top, get right() {
return this.left + this.width;
}, get bottom() {
return this.top + this.height;
} };
}
return { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0 };
};
}, 445: function(_, v, g) {
Object.defineProperty(v, "__esModule", { value: !0 }), v.useFocusContext = v.FocusContext = void 0;
var h = g(156), p = g(654);
v.FocusContext = (0, h.createContext)(p.ROOT_FOCUS_KEY), v.FocusContext.displayName = "FocusContext", v.useFocusContext = function() {
return (0, h.useContext)(v.FocusContext);
};
}, 79: function(_, v, g) {
var h = this && this.__importDefault || function(A) {
return A && A.__esModule ? A : { default: A };
};
Object.defineProperty(v, "__esModule", { value: !0 }), v.useFocusable = void 0;
var p = g(156), y = h(g(604)), O = h(g(461)), x = g(654), L = g(445);
v.useFocusable = function(A) {
var N = A === void 0 ? {} : A, I = N.focusable, D = I === void 0 || I, M = N.saveLastFocusedChild, E = M === void 0 || M, F = N.trackChildren, X = F !== void 0 && F, ae = N.autoRestoreFocus, pe = ae === void 0 || ae, K = N.forceFocus, S = K !== void 0 && K, q = N.isFocusBoundary, U = q !== void 0 && q, B = N.focusBoundaryDirections, W = N.focusKey, G = N.preferredChildFocusKey, J = N.onEnterPress, Z = J === void 0 ? y.default : J, Q = N.onEnterRelease, ee = Q === void 0 ? y.default : Q, j = N.onArrowPress, R = j === void 0 ? function() {
return !0;
} : j, l = N.onArrowRelease, P = l === void 0 ? y.default : l, C = N.onFocus, k = C === void 0 ? y.default : C, H = N.onBlur, $ = H === void 0 ? y.default : H, Y = N.extraProps, te = (0, p.useCallback)(function(be) {
Z(Y, be);
}, [Z, Y]), fe = (0, p.useCallback)(function() {
ee(Y);
}, [ee, Y]), se = (0, p.useCallback)(function(be, Pe) {
return R(be, Y, Pe);
}, [Y, R]), oe = (0, p.useCallback)(function(be) {
P(be, Y);
}, [P, Y]), ne = (0, p.useCallback)(function(be, Pe) {
k(be, Y, Pe);
}, [Y, k]), re = (0, p.useCallback)(function(be, Pe) {
$(be, Y, Pe);
}, [Y, $]), _e = (0, p.useRef)(null), ge = (0, p.useState)(!1), Oe = ge[0], Fe = ge[1], he = (0, p.useState)(!1), xe = he[0], je = he[1], ke = (0, L.useFocusContext)(), Ee = (0, p.useMemo)(function() {
return W || (0, O.default)("sn:focusable-item-");
}, [W]), st = (0, p.useCallback)(function(be) {
be === void 0 && (be = {}), x.SpatialNavigation.setFocus(Ee, be);
}, [Ee]);
return (0, p.useEffect)(function() {
var be = _e.current;
return x.SpatialNavigation.addFocusable({ focusKey: Ee, node: be, parentFocusKey: ke, preferredChildFocusKey: G, onEnterPress: te, onEnterRelease: fe, onArrowPress: se, onArrowRelease: oe, onFocus: ne, onBlur: re, onUpdateFocus: function(Pe) {
return Pe === void 0 && (Pe = !1), Fe(Pe);
}, onUpdateHasFocusedChild: function(Pe) {
return Pe === void 0 && (Pe = !1), je(Pe);
}, saveLastFocusedChild: E, trackChildren: X, isFocusBoundary: U, focusBoundaryDirections: B, autoRestoreFocus: pe, forceFocus: S, focusable: D }), function() {
x.SpatialNavigation.removeFocusable({ focusKey: Ee });
};
}, []), (0, p.useEffect)(function() {
var be = _e.current;
x.SpatialNavigation.updateFocusable(Ee, { node: be, preferredChildFocusKey: G, focusable: D, isFocusBoundary: U, focusBoundaryDirections: B, onEnterPress: te, onEnterRelease: fe, onArrowPress: se, onArrowRelease: oe, onFocus: ne, onBlur: re });
}, [Ee, G, D, U, B, te, fe, se, oe, ne, re]), { ref: _e, focusSelf: st, focused: Oe, hasFocusedChild: xe, focusKey: Ee };
};
}, 150: function(_) {
_.exports = r;
}, 117: function(_) {
_.exports = n;
}, 747: function(_) {
_.exports = a;
}, 23: function(_) {
_.exports = i;
}, 842: function(_) {
_.exports = o;
}, 682: function(_) {
_.exports = s;
}, 784: function(_) {
_.exports = u;
}, 604: function(_) {
_.exports = f;
}, 432: function(_) {
_.exports = d;
}, 67: function(_) {
_.exports = c;
}, 461: function(_) {
_.exports = m;
}, 156: function(_) {
_.exports = b;
} }, w = {};
return function _(v) {
var g = w[v];
if (g !== void 0) return g.exports;
var h = w[v] = { exports: {} };
return T[v].call(h.exports, h, h.exports, _), h.exports;
}(607);
}();
});
}(zt)), zt.exports;
}
var Ve = wp();
const Op = {}, Zc = (e) => {
let t;
const r = /* @__PURE__ */ new Set(), n = (d, c) => {
const m = typeof d == "function" ? d(t) : d;
if (!Object.is(m, t)) {
const b = t;
t = c ?? (typeof m != "object" || m === null) ? m : Object.assign({}, t, m), r.forEach((T) => T(t, b));
}
}, a = () => t, u = { setState: n, getState: a, getInitialState: () => f, subscribe: (d) => (r.add(d), () => r.delete(d)), destroy: () => {
(Op ? "production" : void 0) !== "production" && console.warn(
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
), r.clear();
} }, f = t = e(n, a, u);
return u;
}, Pp = (e) => e ? Zc(e) : Zc;
var kt = { exports: {} }, Si = {}, It = { exports: {} }, Ci = {};
/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Qc;
function Sp() {
if (Qc) return Ci;
Qc = 1;
var e = Ae;
function t(c, m) {
return c === m && (c !== 0 || 1 / c === 1 / m) || c !== c && m !== m;
}
var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, a = e.useEffect, i = e.useLayoutEffect, o = e.useDebugValue;
function s(c, m) {
var b = m(), T = n({ inst: { value: b, getSnapshot: m } }), w = T[0].inst, _ = T[1];
return i(function() {
w.value = b, w.getSnapshot = m, u(w) && _({ inst: w });
}, [c, b, m]), a(function() {
return u(w) && _({ inst: w }), c(function() {
u(w) && _({ inst: w });
});
}, [c]), o(b), b;
}
function u(c) {
var m = c.getSnapshot;
c = c.value;
try {
var b = m();
return !r(c, b);
} catch {
return !0;
}
}
function f(c, m) {
return m();
}
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : s;
return Ci.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, Ci;
}
var xi = {};
/**
* @license React
* use-sync-external-store-shim.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ef;
function Cp() {
return ef || (ef = 1, process.env.NODE_ENV !== "production" && function() {
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
var e = Ae, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function r(h) {
{
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), O = 1; O < p; O++)
y[O - 1] = arguments[O];
n("error", h, y);
}
}
function n(h, p, y) {
{
var O = t.ReactDebugCurrentFrame, x = O.getStackAddendum();
x !== "" && (p += "%s", y = y.concat([x]));
var L = y.map(function(A) {
return String(A);
});
L.unshift("Warning: " + p), Function.prototype.apply.call(console[h], console, L);
}
}
function a(h, p) {
return h === p && (h !== 0 || 1 / h === 1 / p) || h !== h && p !== p;
}
var i = typeof Object.is == "function" ? Object.is : a, o = e.useState, s = e.useEffect, u = e.useLayoutEffect, f = e.useDebugValue, d = !1, c = !1;
function m(h, p, y) {
d || e.startTransition !== void 0 && (d = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
var O = p();
if (!c) {
var x = p();
i(O, x) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), c = !0);
}
var L = o({
inst: {
value: O,
getSnapshot: p
}
}), A = L[0].inst, N = L[1];
return u(function() {
A.value = O, A.getSnapshot = p, b(A) && N({
inst: A
});
}, [h, O, p]), s(function() {
b(A) && N({
inst: A
});
var I = function() {
b(A) && N({
inst: A
});
};
return h(I);
}, [h]), f(O), O;
}
function b(h) {
var p = h.getSnapshot, y = h.value;
try {
var O = p();
return !i(y, O);
} catch {
return !0;
}
}
function T(h, p, y) {
return p();
}
var w = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", _ = !w, v = _ ? T : m, g = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v;
xi.useSyncExternalStore = g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}()), xi;
}
var tf;
function ul() {
return tf || (tf = 1, process.env.NODE_ENV === "production" ? It.exports = Sp() : It.exports = Cp()), It.exports;
}
/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var rf;
function xp() {
if (rf) return Si;
rf = 1;
var e = Ae, t = ul();
function r(f, d) {
return f === d && (f !== 0 || 1 / f === 1 / d) || f !== f && d !== d;
}
var n = typeof Object.is == "function" ? Object.is : r, a = t.useSyncExternalStore, i = e.useRef, o = e.useEffect, s = e.useMemo, u = e.useDebugValue;
return Si.useSyncExternalStoreWithSelector = function(f, d, c, m, b) {
var T = i(null);
if (T.current === null) {
var w = { hasValue: !1, value: null };
T.current = w;
} else w = T.current;
T = s(function() {
function v(O) {
if (!g) {
if (g = !0, h = O, O = m(O), b !== void 0 && w.hasValue) {
var x = w.value;
if (b(x, O)) return p = x;
}
return p = O;
}
if (x = p, n(h, O)) return x;
var L = m(O);
return b !== void 0 && b(x, L) ? x : (h = O, p = L);
}
var g = !1, h, p, y = c === void 0 ? null : c;
return [function() {
return v(d());
}, y === null ? void 0 : function() {
return v(y());
}];
}, [d, c, m, b]);
var _ = a(f, T[0], T[1]);
return o(function() {
w.hasValue = !0, w.value = _;
}, [_]), u(_), _;
}, Si;
}
var Ei = {};
/**
* @license React
* use-sync-external-store-shim/with-selector.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var nf;
function Ep() {
return nf || (nf = 1, process.env.NODE_ENV !== "production" && function() {
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
var e = Ae, t = ul();
function r(d, c) {
return d === c && (d !== 0 || 1 / d === 1 / c) || d !== d && c !== c;
}
var n = typeof Object.is == "function" ? Object.is : r, a = t.useSyncExternalStore, i = e.useRef, o = e.useEffect, s = e.useMemo, u = e.useDebugValue;
function f(d, c, m, b, T) {
var w = i(null), _;
w.current === null ? (_ = {
hasValue: !1,
value: null
}, w.current = _) : _ = w.current;
var v = s(function() {
var y = !1, O, x, L = function(D) {
if (!y) {
y = !0, O = D;
var M = b(D);
if (T !== void 0 && _.hasValue) {
var E = _.value;
if (T(E, M))
return x = E, E;
}
return x = M, M;
}
var F = O, X = x;
if (n(F, D))
return X;
var ae = b(D);
return T !== void 0 && T(X, ae) ? X : (O = D, x = ae, ae);
}, A = m === void 0 ? null : m, N = function() {
return L(c());
}, I = A === null ? void 0 : function() {
return L(A());
};
return [N, I];
}, [c, m, b, T]), g = v[0], h = v[1], p = a(d, g, h);
return o(function() {
_.hasValue = !0, _.value = p;
}, [p]), u(p), p;
}
Ei.useSyncExternalStoreWithSelector = f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}()), Ei;
}
var af;
function Ap() {
return af || (af = 1, process.env.NODE_ENV === "production" ? kt.exports = xp() : kt.exports = Ep()), kt.exports;
}
var Tp = Ap();
const Rp = /* @__PURE__ */ Gt(Tp), cl = {}, { useDebugValue: kp } = Ae, { useSyncExternalStoreWithSelector: Ip } = Rp;
let of = !1;
const Mp = (e) => e;
function Fp(e, t = Mp, r) {
(cl ? "production" : void 0) !== "production" && r && !of && (console.warn(
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
), of = !0);
const n = Ip(
e.subscribe,
e.getState,
e.getServerState || e.getInitialState,
t,
r
);
return kp(n), n;
}
const Lp = (e) => {
(cl ? "production" : void 0) !== "production" && typeof e != "function" && console.warn(
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
);
const t = typeof e == "function" ? Pp(e) : e, r = (n, a) => Fp(t, n, a);
return Object.assign(r, t), r;
}, qp = (e) => Lp, Np = {
activity: !0,
duration: 0,
mediaIndex: 0,
mediaCount: 0,
progress: {
playedSeconds: 0
}
}, le = qp()((e) => ({
...Np,
actions: {
setActivity: (t) => e({ activity: t }),
setCustomToggle: (t) => e({ customToggle: t }),
setDuration: (t) => e({ duration: t }),
setFullscreen: (t) => e({ fullscreen: t }),
setLight: (t) => e({ light: t }),
setLikeToggle: (t) => e({ likeToggle: t }),
setLoop: (t) => e({ loop: t }),
setMediaIndex: (t) => e({ mediaIndex: t }),
setMediaCount: (t) => e({ mediaCount: t }),
setMuted: (t) => e({ muted: t }),
setPlayer: (t) => e({ player: t }),
setPlaying: (t) => e({ playing: t }),
setProgress: (t) => e({ progress: { playedSeconds: t } }),
setSubTitle: (t) => e({ subTitle: t }),
setTitle: (t) => e({ title: t })
}
}));
var lt = function() {
return lt = Object.assign || function(e) {
for (var t, r = 1, n = arguments.length; r < n; r++) {
t = arguments[r];
for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
}
return e;
}, lt.apply(this, arguments);
}, Dp = function(e, t) {
var r = {};
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
if (e != null && typeof Object.getOwnPropertySymbols == "function")
for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
return r;
}, sf = !1, jp = $l(function(e, t) {
var r = e.style, n = Dp(e, ["style"]), a = fl();
!sf && (r != null && r.height) && (sf = !0, console.warn("<Div100vh /> overrides the height property of the style prop"));
var i = lt(lt({}, r), { height: a ? a + "px" : "100vh" });
return Ae.createElement("div", lt({ ref: t, style: i }, n));
});
jp.displayName = "Div100vh";
function fl() {
var e = Gi(uf), t = e[0], r = e[1], n = Kp();
return Se(function() {
if (!n)
return;
function a() {
var i = uf();
r(i);
}
return window.addEventListener("resize", a), function() {
return window.removeEventListener("resize", a);
};
}, [n]), n ? t : null;
}
function uf() {
return ll() ? window.innerHeight : null;
}
function Kp() {
var e = Gi(!1), t = e[0], r = e[1];
return Se(function() {
ll() && r(!0);
}, []), t;
}
function ll() {
return typeof window < "u" && typeof document < "u";
}
function cf(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
t && (n = n.filter(function(a) {
return Object.getOwnPropertyDescriptor(e, a).enumerable;
})), r.push.apply(r, n);
}
return r;
}
function z(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t] != null ? arguments[t] : {};
t % 2 ? cf(Object(r), !0).forEach(function(n) {
we(e, n, r[n]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : cf(Object(r)).forEach(function(n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
});
}
return e;
}
function $t(e) {
"@babel/helpers - typeof";
return $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, $t(e);
}
function Up(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function");
}
function zp(e, t) {
for (var r = 0; r < t.length; r++) {
var n = t[r];
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
}
}
function Hp(e, t, r) {
return t && zp(e.prototype, t), Object.defineProperty(e, "prototype", {
writable: !1
}), e;
}
function we(e, t, r) {
return t in e ? Object.defineProperty(e, t, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = r, e;
}
function lo(e, t) {
return $p(e) || Wp(e, t) || dl(e, t) || Gp();
}
function Ct(e) {
return Bp(e) || Vp(e) || dl(e) || Yp();
}
function Bp(e) {
if (Array.isArray(e)) return Li(e);
}
function $p(e) {
if (Array.isArray(e)) return e;
}
function Vp(e) {
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
}
function Wp(e, t) {
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (r != null) {
var n = [], a = !0, i = !1, o, s;
try {
for (r = r.call(e); !(a = (o = r.next()).done) && (n.push(o.value), !(t && n.length === t)); a = !0)
;
} catch (u) {
i = !0, s = u;
} finally {
try {
!a && r.return != null && r.return();
} finally {
if (i) throw s;
}
}
return n;
}
}
function dl(e, t) {
if (e) {
if (typeof e == "string") return Li(e, t);
var r = Object.prototype.toString.call(e).slice(8, -1);
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Li(e, t);
}
}
function Li(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
return n;
}
function Yp() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function Gp() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
var ff = function() {
}, vo = {}, vl = {}, pl = null, hl = {
mark: ff,
measure: ff
};
try {
typeof window < "u" && (vo = window), typeof document < "u" && (vl = document), typeof MutationObserver < "u" && (pl = MutationObserver), typeof performance < "u" && (hl = performance);
} catch {
}
var Xp = vo.navigator || {}, lf = Xp.userAgent, df = lf === void 0 ? "" : lf, ze = vo, ve = vl, vf = pl, Mt = hl;
ze.document;
var De = !!ve.documentElement && !!ve.head && typeof ve.addEventListener == "function" && typeof ve.createElement == "function", yl = ~df.indexOf("MSIE") || ~df.indexOf("Trident/"), Ft, Lt, qt, Nt, Dt, Le = "___FONT_AWESOME___", qi = 16, ml = "fa", gl = "svg-inline--fa", Ge = "data-fa-i2svg", Ni = "data-fa-pseudo-element", Jp = "data-fa-pseudo-element-pending", po = "data-prefix", ho = "data-icon", pf = "fontawesome-i2svg", Zp = "async", Qp = ["HTML", "HEAD", "STYLE", "SCRIPT"], bl = function() {
try {
return process.env.NODE_ENV === "production";
} catch {
return !1;
}
}(), de = "classic", ye = "sharp", yo = [de, ye];
function xt(e) {
return new Proxy(e, {
get: function(r, n) {
return n in r ? r[n] : r[de];
}
});
}
var ht = xt((Ft = {}, we(Ft, de, {
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",
fakd: "kit",
"fa-kit": "kit",
"fa-kit-duotone": "kit"
}), we(Ft, ye, {
fa: "solid",
fass: "solid",
"fa-solid": "solid",
fasr: "regular",
"fa-regular": "regular",
fasl: "light",
"fa-light": "light",
fast: "thin",
"fa-thin": "thin"
}), Ft)), yt = xt((Lt = {}, we(Lt, de, {
solid: "fas",
regular: "far",
light: "fal",
thin: "fat",
duotone: "fad",
brands: "fab",
kit: "fak"
}), we(Lt, ye, {
solid: "fass",
regular: "fasr",
light: "fasl",
thin: "fast"
}), Lt)), mt = xt((qt = {}, we(qt, de, {
fab: "fa-brands",
fad: "fa-duotone",
fak: "fa-kit",
fal: "fa-light",
far: "fa-regular",
fas: "fa-solid",
fat: "fa-thin"
}), we(qt, ye, {
fass: "fa-solid",
fasr: "fa-regular",
fasl: "fa-light",
fast: "fa-thin"
}), qt)), eh = xt((Nt = {}, we(Nt, de, {
"fa-brands": "fab",
"fa-duotone": "fad",
"fa-kit": "fak",
"fa-light": "fal",
"fa-regular": "far",
"fa-solid": "fas",
"fa-thin": "fat"
}), we(Nt, ye, {
"fa-solid": "fass",
"fa-regular": "fasr",
"fa-light": "fasl",
"fa-thin": "fast"
}), Nt)), th = /fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/, _l = "fa-layers-text", rh = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i, nh = xt((Dt = {}, we(Dt, de, {
900: "fas",
400: "far",
normal: "far",
300: "fal",
100: "fat"
}), we(Dt, ye, {
900: "fass",
400: "fasr",
300: "fasl",
100: "fast"
}), Dt)), wl = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], ah = wl.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), ih = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], We = {
GROUP: "duotone-group",
SWAP_OPACITY: "swap-opacity",
PRIMARY: "primary",
SECONDARY: "secondary"
}, gt = /* @__PURE__ */ new Set();
Object.keys(yt[de]).map(gt.add.bind(gt));
Object.keys(yt[ye]).map(gt.add.bind(gt));
var oh = [].concat(yo, Ct(gt), ["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", We.GROUP, We.SWAP_OPACITY, We.PRIMARY, We.SECONDARY]).concat(wl.map(function(e) {
return "".concat(e, "x");
})).concat(ah.map(function(e) {
return "w-".concat(e);
})), dt = ze.FontAwesomeConfig || {};
function sh(e) {
var t = ve.querySelector("script[" + e + "]");
if (t)
return t.getAttribute(e);
}
function uh(e) {
return e === "" ? !0 : e === "false" ? !1 : e === "true" ? !0 : e;
}
if (ve && typeof ve.querySelector == "function") {
var ch = [["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"]];
ch.forEach(function(e) {
var t = lo(e, 2), r = t[0], n = t[1], a = uh(sh(r));
a != null && (dt[n] = a);
});
}
var Ol = {
styleDefault: "solid",
familyDefault: "classic",
cssPrefix: ml,
replacementClass: gl,
autoReplaceSvg: !0,
autoAddCss: !0,
autoA11y: !0,
searchPseudoElements: !1,
observeMutations: !0,
mutateApproach: "async",
keepOriginalSource: !0,
measurePerformance: !1,
showMissingIcons: !0
};
dt.familyPrefix && (dt.cssPrefix = dt.familyPrefix);
var at = z(z({}, Ol), dt);
at.autoReplaceSvg || (at.observeMutations = !1);
var V = {};
Object.keys(Ol).forEach(function(e) {
Object.defineProperty(V, e, {
enumerable: !0,
set: function(r) {
at[e] = r, vt.forEach(function(n) {
return n(V);
});
},
get: function() {
return at[e];
}
});
});
Object.defineProperty(V, "familyPrefix", {
enumerable: !0,
set: function(t) {
at.cssPrefix = t, vt.forEach(function(r) {
return r(V);
});
},
get: function() {
return at.cssPrefix;
}
});
ze.FontAwesomeConfig = V;
var vt = [];
function fh(e) {
return vt.push(e), function() {
vt.splice(vt.indexOf(e), 1);
};
}
var Qe = qi, Ie = {
size: 16,
x: 0,
y: 0,
rotate: 0,
flipX: !1,
flipY: !1
};
function lh(e) {
if (!(!e || !De)) {
var t = ve.createElement("style");
t.setAttribute("type", "text/css"), t.innerHTML = e;
for (var r = ve.head.childNodes, n = null, a = r.length - 1; a > -1; a--) {
var i = r[a], o = (i.tagName || "").toUpperCase();
["STYLE", "LINK"].indexOf(o) > -1 && (n = i);
}
return ve.head.insertBefore(t, n), e;
}
}
var dh = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
function bt() {
for (var e = 12, t = ""; e-- > 0; )
t += dh[Math.random() * 62 | 0];
return t;
}
function ot(e) {
for (var t = [], r = (e || []).length >>> 0; r--; )
t[r] = e[r];
return t;
}
function mo(e) {
return e.classList ? ot(e.classList) : (e.getAttribute("class") || "").split(" ").filter(function(t) {
return t;
});
}
function Pl(e) {
return "".concat(e).replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
}
function vh(e) {
return Object.keys(e || {}).reduce(function(t, r) {
return t + "".concat(r, '="').concat(Pl(e[r]), '" ');
}, "").trim();
}
function rr(e) {
return Object.keys(e || {}).reduce(function(t, r) {
return t + "".concat(r, ": ").concat(e[r].trim(), ";");
}, "");
}
function go(e) {
return e.size !== Ie.size || e.x !== Ie.x || e.y !== Ie.y || e.rotate !== Ie.rotate || e.flipX || e.flipY;
}
function ph(e) {
var t = e.transform, r = e.containerWidth, n = e.iconWidth, a = {
transform: "translate(".concat(r / 2, " 256)")
}, i = "translate(".concat(t.x * 32, ", ").concat(t.y * 32, ") "), o = "scale(".concat(t.size / 16 * (t.flipX ? -1 : 1), ", ").concat(t.size / 16 * (t.flipY ? -1 : 1), ") "), s = "rotate(".concat(t.rotate, " 0 0)"), u = {
transform: "".concat(i, " ").concat(o, " ").concat(s)
}, f = {
transform: "translate(".concat(n / 2 * -1, " -256)")
};
return {
outer: a,
inner: u,
path: f
};
}
function hh(e) {
var t = e.transform, r = e.width, n = r === void 0 ? qi : r, a = e.height, i = a === void 0 ? qi : a, o = "";
return yl ? o += "translate(".concat(t.x / Qe - n / 2, "em, ").concat(t.y / Qe - i / 2, "em) ") : o += "translate(calc(-50% + ".concat(t.x / Qe, "em), calc(-50% + ").concat(t.y / Qe, "em)) "), o += "scale(".concat(t.size / Qe * (t.flipX ? -1 : 1), ", ").concat(t.size / Qe * (t.flipY ? -1 : 1), ") "), o += "rotate(".concat(t.rotate, "deg) "), o;
}
var yh = `:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
}
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
overflow: visible;
box-sizing: content-box;
}
.svg-inline--fa {
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-2xs {
vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
vertical-align: -0.0714285705em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left {
margin-right: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
top: 0.25em;
}
.svg-inline--fa.fa-fw {
width: var(--fa-fw-width, 1.25em);
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-counter {
background-color: var(--fa-counter-background-color, #ff253a);
border-radius: var(--fa-counter-border-radius, 1em);
box-sizing: border-box;
color: var(--fa-inverse, #fff);
line-height: var(--fa-counter-line-height, 1);
max-width: var(--fa-counter-max-width, 5em);
min-width: var(--fa-counter-min-width, 1.5em);
overflow: hidden;
padding: var(--fa-counter-padding, 0.25em 0.5em);
right: var(--fa-right, 0);
text-overflow: ellipsis;
top: var(--fa-top, 0);
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
transform: scale(var(--fa-counter-scale, 0.25));
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: bottom right;
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: bottom left;
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: top left;
transform-origin: top left;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-2xs {
font-size: 0.625em;
line-height: 0.1em;
vertical-align: 0.225em;
}
.fa-xs {
font-size: 0.75em;
line-height: 0.0833333337em;
vertical-align: 0.125em;
}
.fa-sm {
font-size: 0.875em;
line-height: 0.0714285718em;
vertical-align: 0.0535714295em;
}
.fa-lg {
font-size: 1.25em;
line-height: 0.05em;
vertical-align: -0.075em;
}
.fa-xl {
font-size: 1.5em;
line-height: 0.0416666682em;
vertical-align: -0.125em;
}
.fa-2xl {
font-size: 2em;
line-height: 0.03125em;
vertical-align: -0.1875em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: var(--fa-li-margin, 2.5em);
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: calc(var(--fa-li-width, 2em) * -1);
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
.fa-border {
border-color: var(--fa-border-color, #eee);
border-radius: var(--fa-border-radius, 0.1em);
border-style: var(--fa-border-style, solid);
border-width: var(--fa-border-width, 0.08em);
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}
.fa-pull-left {
float: left;
margin-right: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right {
float: right;
margin-left: var(--fa-pull-margin, 0.3em);
}
.fa-beat {
-webkit-animation-name: fa-beat;
animation-name: fa-beat;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
-webkit-animation-name: fa-bounce;
animation-name: fa-bounce;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
-webkit-animation-name: fa-fade;
animation-name: fa-fade;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-beat-fade {
-webkit-animation-name: fa-beat-fade;
animation-name: fa-beat-fade;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-flip {
-webkit-animation-name: fa-flip;
animation-name: fa-flip;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
-webkit-animation-name: fa-shake;
animation-name: fa-shake;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin {
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 2s);
animation-duration: var(--fa-animation-duration, 2s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
animation-timing-function: var(--fa-animation-timing, steps(8));
}
@media (prefers-reduced-motion: reduce) {
.fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
-webkit-animation-delay: -1ms;
animation-delay: -1ms;
-webkit-animation-duration: 1ms;
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s;
}
}
@-webkit-keyframes fa-beat {
0%, 90% {
-webkit-transform: scale(1);
transform: scale(1);
}
45% {
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@keyframes fa-beat {
0%, 90% {
-webkit-transform: scale(1);
transform: scale(1);
}
45% {
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@-webkit-keyframes fa-bounce {
0% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
10% {
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
-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));
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));
}
50% {
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
100% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-bounce {
0% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
10% {
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
-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));
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));
}
50% {
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
100% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
}
@-webkit-keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@-webkit-keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
opacity: 1;
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
opacity: 1;
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@-webkit-keyframes fa-flip {
50% {
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@keyframes fa-flip {
50% {
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@-webkit-keyframes fa-shake {
0% {
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);
}
4% {
-webkit-transform: rotate(15deg);
transform: rotate(15deg);
}
8%, 24% {
-webkit-transform: rotate(-18deg);
transform: rotate(-18deg);
}
12%, 28% {
-webkit-transform: rotate(18deg);
transform: rotate(18deg);
}
16% {
-webkit-transform: rotate(-22deg);
transform: rotate(-22deg);
}
20% {
-webkit-transform: rotate(22deg);
transform: rotate(22deg);
}
32% {
-webkit-transform: rotate(-12deg);
transform: rotate(-12deg);
}
36% {
-webkit-transform: rotate(12deg);
transform: rotate(12deg);
}
40%, 100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
@keyframes fa-shake {
0% {
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);
}
4% {
-webkit-transform: rotate(15deg);
transform: rotate(15deg);
}
8%, 24% {
-webkit-transform: rotate(-18deg);
transform: rotate(-18deg);
}
12%, 28% {
-webkit-transform: rotate(18deg);
transform: rotate(18deg);
}
16% {
-webkit-transform: rotate(-22deg);
transform: rotate(-22deg);
}
20% {
-webkit-transform: rotate(22deg);
transform: rotate(22deg);
}
32% {
-webkit-transform: rotate(-12deg);
transform: rotate(-12deg);
}
36% {
-webkit-transform: rotate(12deg);
transform: rotate(12deg);
}
40%, 100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.fa-rotate-90 {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
-webkit-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
-webkit-transform: scale(1, -1);
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
-webkit-transform: scale(-1, -1);
transform: scale(-1, -1);
}
.fa-rotate-by {
-webkit-transform: rotate(var(--fa-rotate-angle, 0));
transform: rotate(var(--fa-rotate-angle, 0));
}
.fa-stack {
display: inline-block;
vertical-align: middle;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
z-index: var(--fa-stack-z-index, auto);
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.sr-only,
.fa-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}
.fad.fa-inverse,
.fa-duotone.fa-inverse {
color: var(--fa-inverse, #fff);
}`;
function Sl() {
var e = ml, t = gl, r = V.cssPrefix, n = V.replacementClass, a = yh;
if (r !== e || n !== t) {
var i = new RegExp("\\.".concat(e, "\\-"), "g"), o = new RegExp("\\--".concat(e, "\\-"), "g"), s = new RegExp("\\.".concat(t), "g");
a = a.replace(i, ".".concat(r, "-")).replace(o, "--".concat(r, "-")).replace(s, ".".concat(n));
}
return a;
}
var hf = !1;
function Ai() {
V.autoAddCss && !hf && (lh(Sl()), hf = !0);
}
var mh = {
mixout: function() {
return {
dom: {
css: Sl,
insertCss: Ai
}
};
},
hooks: function() {
return {
beforeDOMElementCreation: function() {
Ai();
},
beforeI2svg: function() {
Ai();
}
};
}
}, qe = ze || {};
qe[Le] || (qe[Le] = {});
qe[Le].styles || (qe[Le].styles = {});
qe[Le].hooks || (qe[Le].hooks = {});
qe[Le].shims || (qe[Le].shims = []);
var Re = qe[Le], Cl = [], gh = function e() {
ve.removeEventListener("DOMContentLoaded", e), Vt = 1, Cl.map(function(t) {
return t();
});
}, Vt = !1;
De && (Vt = (ve.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(ve.readyState), Vt || ve.addEventListener("DOMContentLoaded", gh));
function bh(e) {
De && (Vt ? setTimeout(e, 0) : Cl.push(e));
}
function Et(e) {
var t = e.tag, r = e.attributes, n = r === void 0 ? {} : r, a = e.children, i = a === void 0 ? [] : a;
return typeof e == "string" ? Pl(e) : "<".concat(t, " ").concat(vh(n), ">").concat(i.map(Et).join(""), "</").concat(t, ">");
}
function yf(e, t, r) {
if (e && e[t] && e[t][r])
return {
prefix: t,
iconName: r,
icon: e[t][r]
};
}
var Ti = function(t, r, n, a) {
var i = Object.keys(t), o = i.length, s = r, u, f, d;
for (n === void 0 ? (u = 1, d = t[i[0]]) : (u = 0, d = n); u < o; u++)
f = i[u], d = s(d, t[f], f, t);
return d;
};
function _h(e) {
for (var t = [], r = 0, n = e.length; r < n; ) {
var a = e.charCodeAt(r++);
if (a >= 55296 && a <= 56319 && r < n) {
var i = e.charCodeAt(r++);
(i & 64512) == 56320 ? t.push(((a & 1023) << 10) + (i & 1023) + 65536) : (t.push(a), r--);
} else
t.push(a);
}
return t;
}
function Di(e) {
var t = _h(e);
return t.length === 1 ? t[0].toString(16) : null;
}
function wh(e, t) {
var r = e.length, n = e.charCodeAt(t), a;
return n >= 55296 && n <= 56319 && r > t + 1 && (a = e.charCodeAt(t + 1), a >= 56320 && a <= 57343) ? (n - 55296) * 1024 + a - 56320 + 65536 : n;
}
function mf(e) {
return Object.keys(e).reduce(function(t, r) {
var n = e[r], a = !!n.icon;
return a ? t[n.iconName] = n.icon : t[r] = n, t;
}, {});
}
function ji(e, t) {
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = r.skipHooks, a = n === void 0 ? !1 : n, i = mf(t);
typeof Re.hooks.addPack == "function" && !a ? Re.hooks.addPack(e, mf(t)) : Re.styles[e] = z(z({}, Re.styles[e] || {}), i), e === "fas" && ji("fa", t);
}
var jt, Kt, Ut, et = Re.styles, Oh = Re.shims, Ph = (jt = {}, we(jt, de, Object.values(mt[de])), we(jt, ye, Object.values(mt[ye])), jt), bo = null, xl = {}, El = {}, Al = {}, Tl = {}, Rl = {}, Sh = (Kt = {}, we(Kt, de, Object.keys(ht[de])), we(Kt, ye, Object.keys(ht[ye])), Kt);
function Ch(e) {
return ~oh.indexOf(e);
}
function xh(e, t) {
var r = t.split("-"), n = r[0], a = r.slice(1).join("-");
return n === e && a !== "" && !Ch(a) ? a : null;
}
var kl = function() {
var t = function(i) {
return Ti(et, function(o, s, u) {
return o[u] = Ti(s, i, {}), o;
}, {});
};
xl = t(function(a, i, o) {
if (i[3] && (a[i[3]] = o), i[2]) {
var s = i[2].filter(function(u) {
return typeof u == "number";
});
s.forEach(function(u) {
a[u.toString(16)] = o;
});
}
return a;
}), El = t(function(a, i, o) {
if (a[o] = o, i[2]) {
var s = i[2].filter(function(u) {
return typeof u == "string";
});
s.forEach(function(u) {
a[u] = o;
});
}
return a;
}), Rl = t(function(a, i, o) {
var s = i[2];
return a[o] = o, s.forEach(function(u) {
a[u] = o;
}), a;
});
var r = "far" in et || V.autoFetchSvg, n = Ti(Oh, function(a, i) {
var o = i[0], s = i[1], u = i[2];
return s === "far" && !r && (s = "fas"), typeof o == "string" && (a.names[o] = {
prefix: s,
iconName: u
}), typeof o == "number" && (a.unicodes[o.toString(16)] = {
prefix: s,
iconName: u
}), a;
}, {
names: {},
unicodes: {}
});
Al = n.names, Tl = n.unicodes, bo = nr(V.styleDefault, {
family: V.familyDefault
});
};
fh(function(e) {
bo = nr(e.styleDefault, {
family: V.familyDefault
});
});
kl();
function _o(e, t) {
return (xl[e] || {})[t];
}
function Eh(e, t) {
return (El[e] || {})[t];
}
function Ye(e, t) {
return (Rl[e] || {})[t];
}
function Il(e) {
return Al[e] || {
prefix: null,
iconName: null
};
}
function Ah(e) {
var t = Tl[e], r = _o("fas", e);
return t || (r ? {
prefix: "fas",
iconName: r
} : null) || {
prefix: null,
iconName: null
};
}
function He() {
return bo;
}
var wo = function() {
return {
prefix: null,
iconName: null,
rest: []
};
};
function nr(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.family, n = r === void 0 ? de : r, a = ht[n][e], i = yt[n][e] || yt[n][a], o = e in Re.styles ? e : null;
return i || o || null;
}
var gf = (Ut = {}, we(Ut, de, Object.keys(mt[de])), we(Ut, ye, Object.keys(mt[ye])), Ut);
function ar(e) {
var t, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.skipLookups, a = n === void 0 ? !1 : n, i = (t = {}, we(t, de, "".concat(V.cssPrefix, "-").concat(de)), we(t, ye, "".concat(V.cssPrefix, "-").concat(ye)), t), o = null, s = de;
(e.includes(i[de]) || e.some(function(f) {
return gf[de].includes(f);
})) && (s = de), (e.includes(i[ye]) || e.some(function(f) {
return gf[ye].includes(f);
})) && (s = ye);
var u = e.reduce(function(f, d) {
var c = xh(V.cssPrefix, d);
if (et[d] ? (d = Ph[s].includes(d) ? eh[s][d] : d, o = d, f.prefix = d) : Sh[s].indexOf(d) > -1 ? (o = d, f.prefix = nr(d, {
family: s
})) : c ? f.iconName = c : d !== V.replacementClass && d !== i[de] && d !== i[ye] && f.rest.push(d), !a && f.prefix && f.iconName) {
var m = o === "fa" ? Il(f.iconName) : {}, b = Ye(f.prefix, f.iconName);
m.prefix && (o = null), f.iconName = m.iconName || b || f.iconName, f.prefix = m.prefix || f.prefix, f.prefix === "far" && !et.far && et.fas && !V.autoFetchSvg && (f.prefix = "fas");
}
return f;
}, wo());
return (e.includes("fa-brands") || e.includes("fab")) && (u.prefix = "fab"), (e.includes("fa-duotone") || e.includes("fad")) && (u.prefix = "fad"), !u.prefix && s === ye && (et.fass || V.autoFetchSvg) && (u.prefix = "fass", u.iconName = Ye(u.prefix, u.iconName) || u.iconName), (u.prefix === "fa" || o === "fa") && (u.prefix = He() || "fas"), u;
}
var Th = /* @__PURE__ */ function() {
function e() {
Up(this, e), this.definitions = {};
}
return Hp(e, [{
key: "add",
value: function() {
for (var r = this, n = arguments.length, a = new Array(n), i = 0; i < n; i++)
a[i] = arguments[i];
var o = a.reduce(this._pullDefinitions, {});
Object.keys(o).forEach(function(s) {
r.definitions[s] = z(z({}, r.definitions[s] || {}), o[s]), ji(s, o[s]);
var u = mt[de][s];
u && ji(u, o[s]), kl();
});
}
}, {
key: "reset",
value: function() {
this.definitions = {};
}
}, {
key: "_pullDefinitions",
value: function(r, n) {
var a = n.prefix && n.iconName && n.icon ? {
0: n
} : n;
return Object.keys(a).map(function(i) {
var o = a[i], s = o.prefix, u = o.iconName, f = o.icon, d = f[2];
r[s] || (r[s] = {}), d.length > 0 && d.forEach(function(c) {
typeof c == "string" && (r[s][c] = f);
}), r[s][u] = f;
}), r;
}
}]), e;
}(), bf = [], tt = {}, nt = {}, Rh = Object.keys(nt);
function kh(e, t) {
var r = t.mixoutsTo;
return bf = e, tt = {}, Object.keys(nt).forEach(function(n) {
Rh.indexOf(n) === -1 && delete nt[n];
}), bf.forEach(function(n) {
var a = n.mixout ? n.mixout() : {};
if (Object.keys(a).forEach(function(o) {
typeof a[o] == "function" && (r[o] = a[o]), $t(a[o]) === "object" && Object.keys(a[o]).forEach(function(s) {
r[o] || (r[o] = {}), r[o][s] = a[o][s];
});
}), n.hooks) {
var i = n.hooks();
Object.keys(i).forEach(function(o) {
tt[o] || (tt[o] = []), tt[o].push(i[o]);
});
}
n.provides && n.provides(nt);
}), r;
}
function Ki(e, t) {
for (var r = arguments.length, n = new Array(r > 2 ? r - 2 : 0), a = 2; a < r; a++)
n[a - 2] = arguments[a];
var i = tt[e] || [];
return i.forEach(function(o) {
t = o.apply(null, [t].concat(n));
}), t;
}
function Xe(e) {
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
r[n - 1] = arguments[n];
var a = tt[e] || [];
a.forEach(function(i) {
i.apply(null, r);
});
}
function Ne() {
var e = arguments[0], t = Array.prototype.slice.call(arguments, 1);
return nt[e] ? nt[e].apply(null, t) : void 0;
}
function Ui(e) {
e.prefix === "fa" && (e.prefix = "fas");
var t = e.iconName, r = e.prefix || He();
if (t)
return t = Ye(r, t) || t, yf(Ml.definitions, r, t) || yf(Re.styles, r, t);
}
var Ml = new Th(), Ih = function() {
V.autoReplaceSvg = !1, V.observeMutations = !1, Xe("noAuto");
}, Mh = {
i2svg: function() {
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
return De ? (Xe("beforeI2svg", t), Ne("pseudoElements2svg", t), Ne("i2svg", t)) : Promise.reject("Operation requires a DOM of some kind.");
},
watch: function() {
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = t.autoReplaceSvgRoot;
V.autoReplaceSvg === !1 && (V.autoReplaceSvg = !0), V.observeMutations = !0, bh(function() {
Lh({
autoReplaceSvgRoot: r
}), Xe("watch", t);
});
}
}, Fh = {
icon: function(t) {
if (t === null)
return null;
if ($t(t) === "object" && t.prefix && t.iconName)
return {
prefix: t.prefix,
iconName: Ye(t.prefix, t.iconName) || t.iconName
};
if (Array.isArray(t) && t.length === 2) {
var r = t[1].indexOf("fa-") === 0 ? t[1].slice(3) : t[1], n = nr(t[0]);
return {
prefix: n,
iconName: Ye(n, r) || r
};
}
if (typeof t == "string" && (t.indexOf("".concat(V.cssPrefix, "-")) > -1 || t.match(th))) {
var a = ar(t.split(" "), {
skipLookups: !0
});
return {
prefix: a.prefix || He(),
iconName: Ye(a.prefix, a.iconName) || a.iconName
};
}
if (typeof t == "string") {
var i = He();
return {
prefix: i,
iconName: Ye(i, t) || t
};
}
}
}, Ce = {
noAuto: Ih,
config: V,
dom: Mh,
parse: Fh,
library: Ml,
findIconDefinition: Ui,
toHtml: Et
}, Lh = function() {
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = t.autoReplaceSvgRoot, n = r === void 0 ? ve : r;
(Object.keys(Re.styles).length > 0 || V.autoFetchSvg) && De && V.autoReplaceSvg && Ce.dom.i2svg({
node: n
});
};
function ir(e, t) {
return Object.defineProperty(e, "abstract", {
get: t
}), Object.defineProperty(e, "html", {
get: function() {
return e.abstract.map(function(n) {
return Et(n);
});
}
}), Object.defineProperty(e, "node", {
get: function() {
if (De) {
var n = ve.createElement("div");
return n.innerHTML = e.html, n.children;
}
}
}), e;
}
function qh(e) {
var t = e.children, r = e.main, n = e.mask, a = e.attributes, i = e.styles, o = e.transform;
if (go(o) && r.found && !n.found) {
var s = r.width, u = r.height, f = {
x: s / u / 2,
y: 0.5
};
a.style = rr(z(z({}, i), {}, {
"transform-origin": "".concat(f.x + o.x / 16, "em ").concat(f.y + o.y / 16, "em")
}));
}
return [{
tag: "svg",
attributes: a,
children: t
}];
}
function Nh(e) {
var t = e.prefix, r = e.iconName, n = e.children, a = e.attributes, i = e.symbol, o = i === !0 ? "".concat(t, "-").concat(V.cssPrefix, "-").concat(r) : i;
return [{
tag: "svg",
attributes: {
style: "display: none;"
},
children: [{
tag: "symbol",
attributes: z(z({}, a), {}, {
id: o
}),
children: n
}]
}];
}
function Oo(e) {
var t = e.icons, r = t.main, n = t.mask, a = e.prefix, i = e.iconName, o = e.transform, s = e.symbol, u = e.title, f = e.maskId, d = e.titleId, c = e.extra, m = e.watchable, b = m === void 0 ? !1 : m, T = n.found ? n : r, w = T.width, _ = T.height, v = a === "fak", g = [V.replacementClass, i ? "".concat(V.cssPrefix, "-").concat(i) : ""].filter(function(A) {
return c.classes.indexOf(A) === -1;
}).filter(function(A) {
return A !== "" || !!A;
}).concat(c.classes).join(" "), h = {
children: [],
attributes: z(z({}, c.attributes), {}, {
"data-prefix": a,
"data-icon": i,
class: g,
role: c.attributes.role || "img",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 ".concat(w, " ").concat(_)
})
}, p = v && !~c.classes.indexOf("fa-fw") ? {
width: "".concat(w / _ * 16 * 0.0625, "em")
} : {};
b && (h.attributes[Ge] = ""), u && (h.children.push({
tag: "title",
attributes: {
id: h.attributes["aria-labelledby"] || "title-".concat(d || bt())
},
children: [u]
}), delete h.attributes.title);
var y = z(z({}, h), {}, {
prefix: a,
iconName: i,
main: r,
mask: n,
maskId: f,
transform: o,
symbol: s,
styles: z(z({}, p), c.styles)
}), O = n.found && r.found ? Ne("generateAbstractMask", y) || {
children: [],
attributes: {}
} : Ne("generateAbstractIcon", y) || {
children: [],
attributes: {}
}, x = O.children, L = O.attributes;
return y.children = x, y.attributes = L, s ? Nh(y) : qh(y);
}
function _f(e) {
var t = e.content, r = e.width, n = e.height, a = e.transform, i = e.title, o = e.extra, s = e.watchable, u = s === void 0 ? !1 : s, f = z(z(z({}, o.attributes), i ? {
title: i
} : {}), {}, {
class: o.classes.join(" ")
});
u && (f[Ge] = "");
var d = z({}, o.styles);
go(a) && (d.transform = hh({
transform: a,
width: r,
height: n
}), d["-webkit-transform"] = d.transform);
var c = rr(d);
c.length > 0 && (f.style = c);
var m = [];
return m.push({
tag: "span",
attributes: f,
children: [t]
}), i && m.push({
tag: "span",
attributes: {
class: "sr-only"
},
children: [i]
}), m;
}
function Dh(e) {
var t = e.content, r = e.title, n = e.extra, a = z(z(z({}, n.attributes), r ? {
title: r
} : {}), {}, {
class: n.classes.join(" ")
}), i = rr(n.styles);
i.length > 0 && (a.style = i);
var o = [];
return o.push({
tag: "span",
attributes: a,
children: [t]
}), r && o.push({
tag: "span",
attributes: {
class: "sr-only"
},
children: [r]
}), o;
}
var Ri = Re.styles;
function zi(e) {
var t = e[0], r = e[1], n = e.slice(4), a = lo(n, 1), i = a[0], o = null;
return Array.isArray(i) ? o = {
tag: "g",
attributes: {
class: "".concat(V.cssPrefix, "-").concat(We.GROUP)
},
children: [{
tag: "path",
attributes: {
class: "".concat(V.cssPrefix, "-").concat(We.SECONDARY),
fill: "currentColor",
d: i[0]
}
}, {
tag: "path",
attributes: {
class: "".concat(V.cssPrefix, "-").concat(We.PRIMARY),
fill: "currentColor",
d: i[1]
}
}]
} : o = {
tag: "path",
attributes: {
fill: "currentColor",
d: i
}
}, {
found: !0,
width: t,
height: r,
icon: o
};
}
var jh = {
found: !1,
width: 512,
height: 512
};
function Kh(e, t) {
!bl && !V.showMissingIcons && e && console.error('Icon with name "'.concat(e, '" and prefix "').concat(t, '" is missing.'));
}
function Hi(e, t) {
var r = t;
return t === "fa" && V.styleDefault !== null && (t = He()), new Promise(function(n, a) {
if (Ne("missingIconAbstract"), r === "fa") {
var i = Il(e) || {};
e = i.iconName || e, t = i.prefix || t;
}
if (e && t && Ri[t] && Ri[t][e]) {
var o = Ri[t][e];
return n(zi(o));
}
Kh(e, t), n(z(z({}, jh), {}, {
icon: V.showMissingIcons && e ? Ne("missingIconAbstract") || {} : {}
}));
});
}
var wf = function() {
}, Bi = V.measurePerformance && Mt && Mt.mark && Mt.measure ? Mt : {
mark: wf,
measure: wf
}, ft = 'FA "6.5.2"', Uh = function(t) {
return Bi.mark("".concat(ft, " ").concat(t, " begins")), function() {
return Fl(t);
};
}, Fl = function(t) {
Bi.mark("".concat(ft, " ").concat(t, " ends")), Bi.measure("".concat(ft, " ").concat(t), "".concat(ft, " ").concat(t, " begins"), "".concat(ft, " ").concat(t, " ends"));
}, Po = {
begin: Uh,
end: Fl
}, Ht = function() {
};
function Of(e) {
var t = e.getAttribute ? e.getAttribute(Ge) : null;
return typeof t == "string";
}
function zh(e) {
var t = e.getAttribute ? e.getAttribute(po) : null, r = e.getAttribute ? e.getAttribute(ho) : null;
return t && r;
}
function Hh(e) {
return e && e.classList && e.classList.contains && e.classList.contains(V.replacementClass);
}
function Bh() {
if (V.autoReplaceSvg === !0)
return Bt.replace;
var e = Bt[V.autoReplaceSvg];
return e || Bt.replace;
}
function $h(e) {
return ve.createElementNS("http://www.w3.org/2000/svg", e);
}
function Vh(e) {
return ve.createElement(e);
}
function Ll(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.ceFn, n = r === void 0 ? e.tag === "svg" ? $h : Vh : r;
if (typeof e == "string")
return ve.createTextNode(e);
var a = n(e.tag);
Object.keys(e.attributes || []).forEach(function(o) {
a.setAttribute(o, e.attributes[o]);
});
var i = e.children || [];
return i.forEach(function(o) {
a.appendChild(Ll(o, {
ceFn: n
}));
}), a;
}
function Wh(e) {
var t = " ".concat(e.outerHTML, " ");
return t = "".concat(t, "Font Awesome fontawesome.com "), t;
}
var Bt = {
replace: function(t) {
var r = t[0];
if (r.parentNode)
if (t[1].forEach(function(a) {
r.parentNode.insertBefore(Ll(a), r);
}), r.getAttribute(Ge) === null && V.keepOriginalSource) {
var n = ve.createComment(Wh(r));
r.parentNode.replaceChild(n, r);
} else
r.remove();
},
nest: function(t) {
var r = t[0], n = t[1];
if (~mo(r).indexOf(V.replacementClass))
return Bt.replace(t);
var a = new RegExp("".concat(V.cssPrefix, "-.*"));
if (delete n[0].attributes.id, n[0].attributes.class) {
var i = n[0].attributes.class.split(" ").reduce(function(s, u) {
return u === V.replacementClass || u.match(a) ? s.toSvg.push(u) : s.toNode.push(u), s;
}, {
toNode: [],
toSvg: []
});
n[0].attributes.class = i.toSvg.join(" "), i.toNode.length === 0 ? r.removeAttribute("class") : r.setAttribute("class", i.toNode.join(" "));
}
var o = n.map(function(s) {
return Et(s);
}).join(`
`);
r.setAttribute(Ge, ""), r.innerHTML = o;
}
};
function Pf(e) {
e();
}
function ql(e, t) {
var r = typeof t == "function" ? t : Ht;
if (e.length === 0)
r();
else {
var n = Pf;
V.mutateApproach === Zp && (n = ze.requestAnimationFrame || Pf), n(function() {
var a = Bh(), i = Po.begin("mutate");
e.map(a), i(), r();
});
}
}
var So = !1;
function Nl() {
So = !0;
}
function $i() {
So = !1;
}
var Wt = null;
function Sf(e) {
if (vf && V.observeMutations) {
var t = e.treeCallback, r = t === void 0 ? Ht : t, n = e.nodeCallback, a = n === void 0 ? Ht : n, i = e.pseudoElementsCallback, o = i === void 0 ? Ht : i, s = e.observeMutationsRoot, u = s === void 0 ? ve : s;
Wt = new vf(function(f) {
if (!So) {
var d = He();
ot(f).forEach(function(c) {
if (c.type === "childList" && c.addedNodes.length > 0 && !Of(c.addedNodes[0]) && (V.searchPseudoElements && o(c.target), r(c.target)), c.type === "attributes" && c.target.parentNode && V.searchPseudoElements && o(c.target.parentNode), c.type === "attributes" && Of(c.target) && ~ih.indexOf(c.attributeName))
if (c.attributeName === "class" && zh(c.target)) {
var m = ar(mo(c.target)), b = m.prefix, T = m.iconName;
c.target.setAttribute(po, b || d), T && c.target.setAttribute(ho, T);
} else Hh(c.target) && a(c.target);
});
}
}), De && Wt.observe(u, {
childList: !0,
attributes: !0,
characterData: !0,
subtree: !0
});
}
}
function Yh() {
Wt && Wt.disconnect();
}
function Gh(e) {
var t = e.getAttribute("style"), r = [];
return t && (r = t.split(";").reduce(function(n, a) {
var i = a.split(":"), o = i[0], s = i.slice(1);
return o && s.length > 0 && (n[o] = s.join(":").trim()), n;
}, {})), r;
}
function Xh(e) {
var t = e.getAttribute("data-prefix"), r = e.getAttribute("data-icon"), n = e.innerText !== void 0 ? e.innerText.trim() : "", a = ar(mo(e));
return a.prefix || (a.prefix = He()), t && r && (a.prefix = t, a.iconName = r), a.iconName && a.prefix || (a.prefix && n.length > 0 && (a.iconName = Eh(a.prefix, e.innerText) || _o(a.prefix, Di(e.innerText))), !a.iconName && V.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (a.iconName = e.firstChild.data)), a;
}
function Jh(e) {
var t = ot(e.attributes).reduce(function(a, i) {
return a.name !== "class" && a.name !== "style" && (a[i.name] = i.value), a;
}, {}), r = e.getAttribute("title"), n = e.getAttribute("data-fa-title-id");
return V.autoA11y && (r ? t["aria-labelledby"] = "".concat(V.replacementClass, "-title-").concat(n || bt()) : (t["aria-hidden"] = "true", t.focusable = "false")), t;
}
function Zh() {
return {
iconName: null,
title: null,
titleId: null,
prefix: null,
transform: Ie,
symbol: !1,
mask: {
iconName: null,
prefix: null,
rest: []
},
maskId: null,
extra: {
classes: [],
styles: {},
attributes: {}
}
};
}
function Cf(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
styleParser: !0
}, r = Xh(e), n = r.iconName, a = r.prefix, i = r.rest, o = Jh(e), s = Ki("parseNodeAttributes", {}, e), u = t.styleParser ? Gh(e) : [];
return z({
iconName: n,
title: e.getAttribute("title"),
titleId: e.getAttribute("data-fa-title-id"),
prefix: a,
transform: Ie,
mask: {
iconName: null,
prefix: null,
rest: []
},
maskId: null,
symbol: !1,
extra: {
classes: i,
styles: u,
attributes: o
}
}, s);
}
var Qh = Re.styles;
function Dl(e) {
var t = V.autoReplaceSvg === "nest" ? Cf(e, {
styleParser: !1
}) : Cf(e);
return ~t.extra.classes.indexOf(_l) ? Ne("generateLayersText", e, t) : Ne("generateSvgReplacementMutation", e, t);
}
var Be = /* @__PURE__ */ new Set();
yo.map(function(e) {
Be.add("fa-".concat(e));
});
Object.keys(ht[de]).map(Be.add.bind(Be));
Object.keys(ht[ye]).map(Be.add.bind(Be));
Be = Ct(Be);
function xf(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
if (!De) return Promise.resolve();
var r = ve.documentElement.classList, n = function(c) {
return r.add("".concat(pf, "-").concat(c));
}, a = function(c) {
return r.remove("".concat(pf, "-").concat(c));
}, i = V.autoFetchSvg ? Be : yo.map(function(d) {
return "fa-".concat(d);
}).concat(Object.keys(Qh));
i.includes("fa") || i.push("fa");
var o = [".".concat(_l, ":not([").concat(Ge, "])")].concat(i.map(function(d) {
return ".".concat(d, ":not([").concat(Ge, "])");
})).join(", ");
if (o.length === 0)
return Promise.resolve();
var s = [];
try {
s = ot(e.querySelectorAll(o));
} catch {
}
if (s.length > 0)
n("pending"), a("complete");
else
return Promise.resolve();
var u = Po.begin("onTree"), f = s.reduce(function(d, c) {
try {
var m = Dl(c);
m && d.push(m);
} catch (b) {
bl || b.name === "MissingIcon" && console.error(b);
}
return d;
}, []);
return new Promise(function(d, c) {
Promise.all(f).then(function(m) {
ql(m, function() {
n("active"), n("complete"), a("pending"), typeof t == "function" && t(), u(), d();
});
}).catch(function(m) {
u(), c(m);
});
});
}
function ey(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
Dl(e).then(function(r) {
r && ql([r], t);
});
}
function ty(e) {
return function(t) {
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = (t || {}).icon ? t : Ui(t || {}), a = r.mask;
return a && (a = (a || {}).icon ? a : Ui(a || {})), e(n, z(z({}, r), {}, {
mask: a
}));
};
}
var ry = function(t) {
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.transform, a = n === void 0 ? Ie : n, i = r.symbol, o = i === void 0 ? !1 : i, s = r.mask, u = s === void 0 ? null : s, f = r.maskId, d = f === void 0 ? null : f, c = r.title, m = c === void 0 ? null : c, b = r.titleId, T = b === void 0 ? null : b, w = r.classes, _ = w === void 0 ? [] : w, v = r.attributes, g = v === void 0 ? {} : v, h = r.styles, p = h === void 0 ? {} : h;
if (t) {
var y = t.prefix, O = t.iconName, x = t.icon;
return ir(z({
type: "icon"
}, t), function() {
return Xe("beforeDOMElementCreation", {
iconDefinition: t,
params: r
}), V.autoA11y && (m ? g["aria-labelledby"] = "".concat(V.replacementClass, "-title-").concat(T || bt()) : (g["aria-hidden"] = "true", g.focusable = "false")), Oo({
icons: {
main: zi(x),
mask: u ? zi(u.icon) : {
found: !1,
width: null,
height: null,
icon: {}
}
},
prefix: y,
iconName: O,
transform: z(z({}, Ie), a),
symbol: o,
title: m,
maskId: d,
titleId: T,
extra: {
attributes: g,
styles: p,
classes: _
}
});
});
}
}, ny = {
mixout: function() {
return {
icon: ty(ry)
};
},
hooks: function() {
return {
mutationObserverCallbacks: function(r) {
return r.treeCallback = xf, r.nodeCallback = ey, r;
}
};
},
provides: function(t) {
t.i2svg = function(r) {
var n = r.node, a = n === void 0 ? ve : n, i = r.callback, o = i === void 0 ? function() {
} : i;
return xf(a, o);
}, t.generateSvgReplacementMutation = function(r, n) {
var a = n.iconName, i = n.title, o = n.titleId, s = n.prefix, u = n.transform, f = n.symbol, d = n.mask, c = n.maskId, m = n.extra;
return new Promise(function(b, T) {
Promise.all([Hi(a, s), d.iconName ? Hi(d.iconName, d.prefix) : Promise.resolve({
found: !1,
width: 512,
height: 512,
icon: {}
})]).then(function(w) {
var _ = lo(w, 2), v = _[0], g = _[1];
b([r, Oo({
icons: {
main: v,
mask: g
},
prefix: s,
iconName: a,
transform: u,
symbol: f,
maskId: c,
title: i,
titleId: o,
extra: m,
watchable: !0
})]);
}).catch(T);
});
}, t.generateAbstractIcon = function(r) {
var n = r.children, a = r.attributes, i = r.main, o = r.transform, s = r.styles, u = rr(s);
u.length > 0 && (a.style = u);
var f;
return go(o) && (f = Ne("generateAbstractTransformGrouping", {
main: i,
transform: o,
containerWidth: i.width,
iconWidth: i.width
})), n.push(f || i.icon), {
children: n,
attributes: a
};
};
}
}, ay = {
mixout: function() {
return {
layer: function(r) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = n.classes, i = a === void 0 ? [] : a;
return ir({
type: "layer"
}, function() {
Xe("beforeDOMElementCreation", {
assembler: r,
params: n
});
var o = [];
return r(function(s) {
Array.isArray(s) ? s.map(function(u) {
o = o.concat(u.abstract);
}) : o = o.concat(s.abstract);
}), [{
tag: "span",
attributes: {
class: ["".concat(V.cssPrefix, "-layers")].concat(Ct(i)).join(" ")
},
children: o
}];
});
}
};
}
}, iy = {
mixout: function() {
return {
counter: function(r) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = n.title, i = a === void 0 ? null : a, o = n.classes, s = o === void 0 ? [] : o, u = n.attributes, f = u === void 0 ? {} : u, d = n.styles, c = d === void 0 ? {} : d;
return ir({
type: "counter",
content: r
}, function() {
return Xe("beforeDOMElementCreation", {
content: r,
params: n
}), Dh({
content: r.toString(),
title: i,
extra: {
attributes: f,
styles: c,
classes: ["".concat(V.cssPrefix, "-layers-counter")].concat(Ct(s))
}
});
});
}
};
}
}, oy = {
mixout: function() {
return {
text: function(r) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = n.transform, i = a === void 0 ? Ie : a, o = n.title, s = o === void 0 ? null : o, u = n.classes, f = u === void 0 ? [] : u, d = n.attributes, c = d === void 0 ? {} : d, m = n.styles, b = m === void 0 ? {} : m;
return ir({
type: "text",
content: r
}, function() {
return Xe("beforeDOMElementCreation", {
content: r,
params: n
}), _f({
content: r,
transform: z(z({}, Ie), i),
title: s,
extra: {
attributes: c,
styles: b,
classes: ["".concat(V.cssPrefix, "-layers-text")].concat(Ct(f))
}
});
});
}
};
},
provides: function(t) {
t.generateLayersText = function(r, n) {
var a = n.title, i = n.transform, o = n.extra, s = null, u = null;
if (yl) {
var f = parseInt(getComputedStyle(r).fontSize, 10), d = r.getBoundingClientRect();
s = d.width / f, u = d.height / f;
}
return V.autoA11y && !a && (o.attributes["aria-hidden"] = "true"), Promise.resolve([r, _f({
content: r.innerHTML,
width: s,
height: u,
transform: i,
title: a,
extra: o,
watchable: !0
})]);
};
}
}, sy = new RegExp('"', "ug"), Ef = [1105920, 1112319];
function uy(e) {
var t = e.replace(sy, ""), r = wh(t, 0), n = r >= Ef[0] && r <= Ef[1], a = t.length === 2 ? t[0] === t[1] : !1;
return {
value: Di(a ? t[0] : t),
isSecondary: n || a
};
}
function Af(e, t) {
var r = "".concat(Jp).concat(t.replace(":", "-"));
return new Promise(function(n, a) {
if (e.getAttribute(r) !== null)
return n();
var i = ot(e.children), o = i.filter(function(x) {
return x.getAttribute(Ni) === t;
})[0], s = ze.getComputedStyle(e, t), u = s.getPropertyValue("font-family").match(rh), f = s.getPropertyValue("font-weight"), d = s.getPropertyValue("content");
if (o && !u)
return e.removeChild(o), n();
if (u && d !== "none" && d !== "") {
var c = s.getPropertyValue("content"), m = ~["Sharp"].indexOf(u[2]) ? ye : de, b = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(u[2]) ? yt[m][u[2].toLowerCase()] : nh[m][f], T = uy(c), w = T.value, _ = T.isSecondary, v = u[0].startsWith("FontAwesome"), g = _o(b, w), h = g;
if (v) {
var p = Ah(w);
p.iconName && p.prefix && (g = p.iconName, b = p.prefix);
}
if (g && !_ && (!o || o.getAttribute(po) !== b || o.getAttribute(ho) !== h)) {
e.setAttribute(r, h), o && e.removeChild(o);
var y = Zh(), O = y.extra;
O.attributes[Ni] = t, Hi(g, b).then(function(x) {
var L = Oo(z(z({}, y), {}, {
icons: {
main: x,
mask: wo()
},
prefix: b,
iconName: h,
extra: O,
watchable: !0
})), A = ve.createElementNS("http://www.w3.org/2000/svg", "svg");
t === "::before" ? e.insertBefore(A, e.firstChild) : e.appendChild(A), A.outerHTML = L.map(function(N) {
return Et(N);
}).join(`
`), e.removeAttribute(r), n();
}).catch(a);
} else
n();
} else
n();
});
}
function cy(e) {
return Promise.all([Af(e, "::before"), Af(e, "::after")]);
}
function fy(e) {
return e.parentNode !== document.head && !~Qp.indexOf(e.tagName.toUpperCase()) && !e.getAttribute(Ni) && (!e.parentNode || e.parentNode.tagName !== "svg");
}
function Tf(e) {
if (De)
return new Promise(function(t, r) {
var n = ot(e.querySelectorAll("*")).filter(fy).map(cy), a = Po.begin("searchPseudoElements");
Nl(), Promise.all(n).then(function() {
a(), $i(), t();
}).catch(function() {
a(), $i(), r();
});
});
}
var ly = {
hooks: function() {
return {
mutationObserverCallbacks: function(r) {
return r.pseudoElementsCallback = Tf, r;
}
};
},
provides: function(t) {
t.pseudoElements2svg = function(r) {
var n = r.node, a = n === void 0 ? ve : n;
V.searchPseudoElements && Tf(a);
};
}
}, Rf = !1, dy = {
mixout: function() {
return {
dom: {
unwatch: function() {
Nl(), Rf = !0;
}
}
};
},
hooks: function() {
return {
bootstrap: function() {
Sf(Ki("mutationObserverCallbacks", {}));
},
noAuto: function() {
Yh();
},
watch: function(r) {
var n = r.observeMutationsRoot;
Rf ? $i() : Sf(Ki("mutationObserverCallbacks", {
observeMutationsRoot: n
}));
}
};
}
}, kf = function(t) {
var r = {
size: 16,
x: 0,
y: 0,
flipX: !1,
flipY: !1,
rotate: 0
};
return t.toLowerCase().split(" ").reduce(function(n, a) {
var i = a.toLowerCase().split("-"), o = i[0], s = i.slice(1).join("-");
if (o && s === "h")
return n.flipX = !0, n;
if (o && s === "v")
return n.flipY = !0, n;
if (s = parseFloat(s), isNaN(s))
return n;
switch (o) {
case "grow":
n.size = n.size + s;
break;
case "shrink":
n.size = n.size - s;
break;
case "left":
n.x = n.x - s;
break;
case "right":
n.x = n.x + s;
break;
case "up":
n.y = n.y - s;
break;
case "down":
n.y = n.y + s;
break;
case "rotate":
n.rotate = n.rotate + s;
break;
}
return n;
}, r);
}, vy = {
mixout: function() {
return {
parse: {
transform: function(r) {
return kf(r);
}
}
};
},
hooks: function() {
return {
parseNodeAttributes: function(r, n) {
var a = n.getAttribute("data-fa-transform");
return a && (r.transform = kf(a)), r;
}
};
},
provides: function(t) {
t.generateAbstractTransformGrouping = function(r) {
var n = r.main, a = r.transform, i = r.containerWidth, o = r.iconWidth, s = {
transform: "translate(".concat(i / 2, " 256)")
}, u = "translate(".concat(a.x * 32, ", ").concat(a.y * 32, ") "), f = "scale(".concat(a.size / 16 * (a.flipX ? -1 : 1), ", ").concat(a.size / 16 * (a.flipY ? -1 : 1), ") "), d = "rotate(".concat(a.rotate, " 0 0)"), c = {
transform: "".concat(u, " ").concat(f, " ").concat(d)
}, m = {
transform: "translate(".concat(o / 2 * -1, " -256)")
}, b = {
outer: s,
inner: c,
path: m
};
return {
tag: "g",
attributes: z({}, b.outer),
children: [{
tag: "g",
attributes: z({}, b.inner),
children: [{
tag: n.icon.tag,
children: n.icon.children,
attributes: z(z({}, n.icon.attributes), b.path)
}]
}]
};
};
}
}, ki = {
x: 0,
y: 0,
width: "100%",
height: "100%"
};
function If(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
return e.attributes && (e.attributes.fill || t) && (e.attributes.fill = "black"), e;
}
function py(e) {
return e.tag === "g" ? e.children : [e];
}
var hy = {
hooks: function() {
return {
parseNodeAttributes: function(r, n) {
var a = n.getAttribute("data-fa-mask"), i = a ? ar(a.split(" ").map(function(o) {
return o.trim();
})) : wo();
return i.prefix || (i.prefix = He()), r.mask = i, r.maskId = n.getAttribute("data-fa-mask-id"), r;
}
};
},
provides: function(t) {
t.generateAbstractMask = function(r) {
var n = r.children, a = r.attributes, i = r.main, o = r.mask, s = r.maskId, u = r.transform, f = i.width, d = i.icon, c = o.width, m = o.icon, b = ph({
transform: u,
containerWidth: c,
iconWidth: f
}), T = {
tag: "rect",
attributes: z(z({}, ki), {}, {
fill: "white"
})
}, w = d.children ? {
children: d.children.map(If)
} : {}, _ = {
tag: "g",
attributes: z({}, b.inner),
children: [If(z({
tag: d.tag,
attributes: z(z({}, d.attributes), b.path)
}, w))]
}, v = {
tag: "g",
attributes: z({}, b.outer),
children: [_]
}, g = "mask-".concat(s || bt()), h = "clip-".concat(s || bt()), p = {
tag: "mask",
attributes: z(z({}, ki), {}, {
id: g,
maskUnits: "userSpaceOnUse",
maskContentUnits: "userSpaceOnUse"
}),
children: [T, v]
}, y = {
tag: "defs",
children: [{
tag: "clipPath",
attributes: {
id: h
},
children: py(m)
}, p]
};
return n.push(y, {
tag: "rect",
attributes: z({
fill: "currentColor",
"clip-path": "url(#".concat(h, ")"),
mask: "url(#".concat(g, ")")
}, ki)
}), {
children: n,
attributes: a
};
};
}
}, yy = {
provides: function(t) {
var r = !1;
ze.matchMedia && (r = ze.matchMedia("(prefers-reduced-motion: reduce)").matches), t.missingIconAbstract = function() {
var n = [], a = {
fill: "currentColor"
}, i = {
attributeType: "XML",
repeatCount: "indefinite",
dur: "2s"
};
n.push({
tag: "path",
attributes: z(z({}, a), {}, {
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 = z(z({}, i), {}, {
attributeName: "opacity"
}), s = {
tag: "circle",
attributes: z(z({}, a), {}, {
cx: "256",
cy: "364",
r: "28"
}),
children: []
};
return r || s.children.push({
tag: "animate",
attributes: z(z({}, i), {}, {
attributeName: "r",
values: "28;14;28;28;14;28;"
})
}, {
tag: "animate",
attributes: z(z({}, o), {}, {
values: "1;0;1;1;0;1;"
})
}), n.push(s), n.push({
tag: "path",
attributes: z(z({}, a), {}, {
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: r ? [] : [{
tag: "animate",
attributes: z(z({}, o), {}, {
values: "1;0;0;0;0;1;"
})
}]
}), r || n.push({
tag: "path",
attributes: z(z({}, a), {}, {
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: z(z({}, o), {}, {
values: "0;0;1;1;0;0;"
})
}]
}), {
tag: "g",
attributes: {
class: "missing"
},
children: n
};
};
}
}, my = {
hooks: function() {
return {
parseNodeAttributes: function(r, n) {
var a = n.getAttribute("data-fa-symbol"), i = a === null ? !1 : a === "" ? !0 : a;
return r.symbol = i, r;
}
};
}
}, gy = [mh, ny, ay, iy, oy, ly, dy, vy, hy, yy, my];
kh(gy, {
mixoutsTo: Ce
});
Ce.noAuto;
Ce.config;
Ce.library;
Ce.dom;
var Vi = Ce.parse;
Ce.findIconDefinition;
Ce.toHtml;
var by = Ce.icon;
Ce.layer;
Ce.text;
Ce.counter;
var _y = /* @__PURE__ */ Kf();
const ie = /* @__PURE__ */ Gt(_y);
function Mf(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
t && (n = n.filter(function(a) {
return Object.getOwnPropertyDescriptor(e, a).enumerable;
})), r.push.apply(r, n);
}
return r;
}
function Ue(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t] != null ? arguments[t] : {};
t % 2 ? Mf(Object(r), !0).forEach(function(n) {
rt(e, n, r[n]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Mf(Object(r)).forEach(function(n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
});
}
return e;
}
function Yt(e) {
"@babel/helpers - typeof";
return Yt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, Yt(e);
}
function rt(e, t, r) {
return t in e ? Object.defineProperty(e, t, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = r, e;
}
function wy(e, t) {
if (e == null) return {};
var r = {}, n = Object.keys(e), a, i;
for (i = 0; i < n.length; i++)
a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
return r;
}
function Oy(e, t) {
if (e == null) return {};
var r = wy(e, t), n, a;
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (a = 0; a < i.length; a++)
n = i[a], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
}
return r;
}
function Wi(e) {
return Py(e) || Sy(e) || Cy(e) || xy();
}
function Py(e) {
if (Array.isArray(e)) return Yi(e);
}
function Sy(e) {
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
}
function Cy(e, t) {
if (e) {
if (typeof e == "string") return Yi(e, t);
var r = Object.prototype.toString.call(e).slice(8, -1);
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Yi(e, t);
}
}
function Yi(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
return n;
}
function xy() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function Ey(e) {
var t, r = e.beat, n = e.fade, a = e.beatFade, i = e.bounce, o = e.shake, s = e.flash, u = e.spin, f = e.spinPulse, d = e.spinReverse, c = e.pulse, m = e.fixedWidth, b = e.inverse, T = e.border, w = e.listItem, _ = e.flip, v = e.size, g = e.rotation, h = e.pull, p = (t = {
"fa-beat": r,
"fa-fade": n,
"fa-beat-fade": a,
"fa-bounce": i,
"fa-shake": o,
"fa-flash": s,
"fa-spin": u,
"fa-spin-reverse": d,
"fa-spin-pulse": f,
"fa-pulse": c,
"fa-fw": m,
"fa-inverse": b,
"fa-border": T,
"fa-li": w,
"fa-flip": _ === !0,
"fa-flip-horizontal": _ === "horizontal" || _ === "both",
"fa-flip-vertical": _ === "vertical" || _ === "both"
}, rt(t, "fa-".concat(v), typeof v < "u" && v !== null), rt(t, "fa-rotate-".concat(g), typeof g < "u" && g !== null && g !== 0), rt(t, "fa-pull-".concat(h), typeof h < "u" && h !== null), rt(t, "fa-swap-opacity", e.swapOpacity), t);
return Object.keys(p).map(function(y) {
return p[y] ? y : null;
}).filter(function(y) {
return y;
});
}
function Ay(e) {
return e = e - 0, e === e;
}
function jl(e) {
return Ay(e) ? e : (e = e.replace(/[\-_\s]+(.)?/g, function(t, r) {
return r ? r.toUpperCase() : "";
}), e.substr(0, 1).toLowerCase() + e.substr(1));
}
var Ty = ["style"];
function Ry(e) {
return e.charAt(0).toUpperCase() + e.slice(1);
}
function ky(e) {
return e.split(";").map(function(t) {
return t.trim();
}).filter(function(t) {
return t;
}).reduce(function(t, r) {
var n = r.indexOf(":"), a = jl(r.slice(0, n)), i = r.slice(n + 1).trim();
return a.startsWith("webkit") ? t[Ry(a)] = i : t[a] = i, t;
}, {});
}
function Kl(e, t) {
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
if (typeof t == "string")
return t;
var n = (t.children || []).map(function(u) {
return Kl(e, u);
}), a = Object.keys(t.attributes || {}).reduce(function(u, f) {
var d = t.attributes[f];
switch (f) {
case "class":
u.attrs.className = d, delete t.attributes.class;
break;
case "style":
u.attrs.style = ky(d);
break;
default:
f.indexOf("aria-") === 0 || f.indexOf("data-") === 0 ? u.attrs[f.toLowerCase()] = d : u.attrs[jl(f)] = d;
}
return u;
}, {
attrs: {}
}), i = r.style, o = i === void 0 ? {} : i, s = Oy(r, Ty);
return a.attrs.style = Ue(Ue({}, a.attrs.style), o), e.apply(void 0, [t.tag, Ue(Ue({}, a.attrs), s)].concat(Wi(n)));
}
var Ul = !1;
try {
Ul = process.env.NODE_ENV === "production";
} catch {
}
function Iy() {
if (!Ul && console && typeof console.error == "function") {
var e;
(e = console).error.apply(e, arguments);
}
}
function Ff(e) {
if (e && Yt(e) === "object" && e.prefix && e.iconName && e.icon)
return e;
if (Vi.icon)
return Vi.icon(e);
if (e === null)
return null;
if (e && Yt(e) === "object" && e.prefix && e.iconName)
return e;
if (Array.isArray(e) && e.length === 2)
return {
prefix: e[0],
iconName: e[1]
};
if (typeof e == "string")
return {
prefix: "fas",
iconName: e
};
}
function Ii(e, t) {
return Array.isArray(t) && t.length > 0 || !Array.isArray(t) && t ? rt({}, e, t) : {};
}
var At = /* @__PURE__ */ Ae.forwardRef(function(e, t) {
var r = e.icon, n = e.mask, a = e.symbol, i = e.className, o = e.title, s = e.titleId, u = e.maskId, f = Ff(r), d = Ii("classes", [].concat(Wi(Ey(e)), Wi(i.split(" ")))), c = Ii("transform", typeof e.transform == "string" ? Vi.transform(e.transform) : e.transform), m = Ii("mask", Ff(n)), b = by(f, Ue(Ue(Ue(Ue({}, d), c), m), {}, {
symbol: a,
title: o,
titleId: s,
maskId: u
}));
if (!b)
return Iy("Could not find icon", f), null;
var T = b.abstract, w = {
ref: t
};
return Object.keys(e).forEach(function(_) {
At.defaultProps.hasOwnProperty(_) || (w[_] = e[_]);
}), My(T[0], w);
});
At.displayName = "FontAwesomeIcon";
At.propTypes = {
beat: ie.bool,
border: ie.bool,
beatFade: ie.bool,
bounce: ie.bool,
className: ie.string,
fade: ie.bool,
flash: ie.bool,
mask: ie.oneOfType([ie.object, ie.array, ie.string]),
maskId: ie.string,
fixedWidth: ie.bool,
inverse: ie.bool,
flip: ie.oneOf([!0, !1, "horizontal", "vertical", "both"]),
icon: ie.oneOfType([ie.object, ie.array, ie.string]),
listItem: ie.bool,
pull: ie.oneOf(["right", "left"]),
pulse: ie.bool,
rotation: ie.oneOf([0, 90, 180, 270]),
shake: ie.bool,
size: ie.oneOf(["2xs", "xs", "sm", "lg", "xl", "2xl", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"]),
spin: ie.bool,
spinPulse: ie.bool,
spinReverse: ie.bool,
symbol: ie.oneOfType([ie.bool, ie.string]),
title: ie.string,
titleId: ie.string,
transform: ie.oneOfType([ie.string, ie.object]),
swapOpacity: ie.bool
};
At.defaultProps = {
border: !1,
className: "",
mask: null,
maskId: null,
fixedWidth: !1,
inverse: !1,
flip: !1,
icon: null,
listItem: !1,
pull: null,
pulse: !1,
rotation: null,
size: null,
spin: !1,
spinPulse: !1,
spinReverse: !1,
beat: !1,
fade: !1,
beatFade: !1,
bounce: !1,
shake: !1,
symbol: !1,
title: "",
titleId: null,
transform: null,
swapOpacity: !1
};
var My = Kl.bind(null, Ae.createElement), Fy = {
prefix: "fas",
iconName: "forward-step",
icon: [320, 512, ["step-forward"], "f051", "M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4l192 160L256 241V96c0-17.7 14.3-32 32-32s32 14.3 32 32V416c0 17.7-14.3 32-32 32s-32-14.3-32-32V271l-11.5 9.6-192 160z"]
}, Ly = {
prefix: "fas",
iconName: "backward",
icon: [512, 512, [9194], "f04a", "M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3V256v41.7L459.5 440.6zM256 352V256 128 96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V352z"]
}, qy = {
prefix: "fas",
iconName: "compress",
icon: [448, 512, [], "f066", "M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V64zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32H96v64c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V64zM320 320c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32s32-14.3 32-32V384h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z"]
}, Ny = {
prefix: "fas",
iconName: "repeat",
icon: [512, 512, [128257], "f363", "M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z"]
}, Dy = {
prefix: "fas",
iconName: "pause",
icon: [320, 512, [9208], "f04c", "M48 64C21.5 64 0 85.5 0 112V400c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48V400c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H240z"]
}, jy = {
prefix: "fas",
iconName: "heart",
icon: [512, 512, [128153, 128154, 128155, 128156, 128420, 129293, 129294, 129505, 9829, 10084, 61578], "f004", "M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"]
}, Ky = {
prefix: "fas",
iconName: "volume-high",
icon: [640, 512, [128266, "volume-up"], "f028", "M533.6 32.5C598.5 85.2 640 165.8 640 256s-41.5 170.7-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]
}, Uy = {
prefix: "fas",
iconName: "backward-step",
icon: [320, 512, ["step-backward"], "f048", "M267.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160L64 241V96c0-17.7-14.3-32-32-32S0 78.3 0 96V416c0 17.7 14.3 32 32 32s32-14.3 32-32V271l11.5 9.6 192 160z"]
}, zy = {
prefix: "fas",
iconName: "forward",
icon: [512, 512, [9193], "f04e", "M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4L224 214.3V256v41.7L52.5 440.6zM256 352V256 128 96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4s-18.4-16.6-18.4-29V352z"]
}, Hy = {
prefix: "fas",
iconName: "ellipsis",
icon: [448, 512, ["ellipsis-h"], "f141", "M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]
}, By = {
prefix: "fas",
iconName: "play",
icon: [384, 512, [9654], "f04b", "M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]
}, $y = {
prefix: "fas",
iconName: "volume-xmark",
icon: [576, 512, ["volume-mute", "volume-times"], "f6a9", "M301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]
}, Vy = $y, Wy = {
prefix: "fas",
iconName: "expand",
icon: [448, 512, [], "f065", "M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64V352zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V352z"]
}, Yy = {
prefix: "far",
iconName: "heart",
icon: [512, 512, [128153, 128154, 128155, 128156, 128420, 129293, 129294, 129505, 9829, 10084, 61578], "f004", "M225.8 468.2l-2.5-2.3L48.1 303.2C17.4 274.7 0 234.7 0 192.8v-3.3c0-70.4 50-130.8 119.2-144C158.6 37.9 198.9 47 231 69.6c9 6.4 17.4 13.8 25 22.3c4.2-4.8 8.7-9.2 13.5-13.3c3.7-3.2 7.5-6.2 11.5-9c0 0 0 0 0 0C313.1 47 353.4 37.9 392.8 45.4C462 58.6 512 119.1 512 189.5v3.3c0 41.9-17.4 81.9-48.1 110.4L288.7 465.9l-2.5 2.3c-8.2 7.6-19 11.9-30.2 11.9s-22-4.2-30.2-11.9zM239.1 145c-.4-.3-.7-.7-1-1.1l-17.8-20c0 0-.1-.1-.1-.1c0 0 0 0 0 0c-23.1-25.9-58-37.7-92-31.2C81.6 101.5 48 142.1 48 189.5v3.3c0 28.5 11.9 55.8 32.8 75.2L256 430.7 431.2 268c20.9-19.4 32.8-46.7 32.8-75.2v-3.3c0-47.3-33.6-88-80.1-96.9c-34-6.5-69 5.4-92 31.2c0 0 0 0-.1 .1s0 0-.1 .1l-17.8 20c-.3 .4-.7 .7-1 1.1c-4.5 4.5-10.6 7-16.9 7s-12.4-2.5-16.9-7z"]
};
const Gy = 4e3, Xy = () => {
const e = Fi(null), t = le((s) => s.actions), r = le((s) => s.activity), n = le((s) => s.playing), a = or(
(s) => {
e.current && clearTimeout(e.current), !(!s || !n) && (e.current = window.setTimeout(() => {
t.setActivity(!1);
}, Gy));
},
[t, n]
), i = or(
(s) => {
t.setActivity(!0), a(r), !r && s.stopPropagation();
},
[r, t, a]
), o = or(() => {
n && r && t.setActivity(!1);
}, [n, r, t]);
Se(() => {
a(r);
}, [r, a]), Se(() => (document.addEventListener("click", i), document.addEventListener("mousemove", i), document.addEventListener("keydown", i), document.addEventListener("mouseleave", o), () => {
document.removeEventListener("click", i), document.removeEventListener("mousemove", i), document.removeEventListener("keydown", i), document.removeEventListener("mouseleave", o);
}), [i, o]);
}, Lf = (e) => {
if (isNaN(e))
return;
let t = e;
const r = Math.floor(t / 3600);
t %= 3600;
let n = String(Math.floor(t / 60)), a = String(Math.floor(t % 60));
return a = a.padStart(2, "0"), r > 0 ? (n = n.padStart(2, "0"), `${r}:${n}:${a}`) : `${n}:${a}`;
}, Jy = (e) => {
const {
onLoopPress: t,
onLikePress: r,
onPreviousPress: n,
onSkipBackPress: a,
onSkipForwardPress: i,
onSkipReleasePress: o,
onNextPress: s,
onMutePress: u,
onFullscreenPress: f,
withTopCover: d,
customButtons: c,
disableFullscreen: m,
hideControlsOnArrowUp: b
} = e, { focusKey: T, ref: w } = Ve.useFocusable();
Xy();
const _ = fl(), v = le((j) => j.actions), g = le((j) => j.activity), h = le((j) => j.duration), p = le((j) => j.fullscreen), y = le((j) => j.light), O = le((j) => j.likeToggle), x = le((j) => j.loop), L = le((j) => j.mediaIndex) || 0, A = le((j) => j.mediaCount), N = le((j) => j.muted), I = le((j) => j.player), D = le((j) => j.playing), M = le((j) => j.progress), E = le((j) => j.subTitle), F = le((j) => j.title), X = h / 30, ae = A && A > 1, pe = c !== null && c || [
{ action: "loop", align: "left" },
{ action: ae ? "previous" : "skipback" },
{ action: "playpause" },
{ action: ae ? "next" : "skipforward" },
{ action: m ? "fullscreen" : "mute", align: "right" }
], K = () => {
v.setLoop(!x), t == null || t();
}, S = () => {
v.setPlaying(!D), v.setLight(!1);
}, q = () => {
v.setMuted(!N), u == null || u();
}, U = () => {
v.setFullscreen(!p), f == null || f();
}, B = () => {
L && L > 0 && v.setMediaIndex(L - 1), n == null || n();
}, W = () => {
I && I.seekTo(I.getCurrentTime() - X), a == null || a();
}, G = () => {
I && I.seekTo(I.getCurrentTime() + X), i == null || i();
}, J = () => {
A && L < A - 1 && v.setMediaIndex(L + 1), s == null || s();
}, Z = () => {
!D && S(), o == null || o();
}, Q = {
loop: {
action: "loop",
label: x ? "Looping" : "Loop",
onPress: K,
faIcon: Ny,
isSelectedFill: x
},
like: {
action: "like",
label: O ? "Liked" : "Like",
onPress: r,
faIcon: O ? jy : Yy
},
previous: {
action: "previous",
label: "Previous",
onPress: B,
faIcon: Uy,
disabled: L === 0
},
skipback: {
action: "skipback",
label: "Skip Back",
onPress: W,
onRelease: Z,
faIcon: Ly
},
playpause: {
action: "playpause",
label: D ? "Pause" : "Play",
onPress: S,
faIcon: D ? Dy : By
},
skipforward: {
action: "skipforward",
label: "Skip Forward",
onPress: G,
onRelease: Z,
faIcon: zy
},
next: {
action: "next",
label: "Next",
onPress: J,
faIcon: Fy,
disabled: A ? L === A - 1 : !1
},
mute: {
action: "mute",
label: N ? "Muted" : "Mute",
onPress: q,
faIcon: N ? Vy : Ky
},
fullscreen: {
action: "fullscreen",
label: p ? "Minimise" : "Fullscreen",
onPress: U,
faIcon: p ? qy : Wy
},
custom: {
action: "custom",
label: "Custom"
}
}, ee = (j) => /* @__PURE__ */ me(Mi, { children: pe.map((R, l) => {
if (R.align === j || !R.align && j === "center")
return /* @__PURE__ */ Ke(
zl,
{
className: pt({
"selected-fill": R.isSelectedFill || Q[R.action].isSelectedFill
}),
focusKey: R.action,
handlePress: R.onPress || Q[R.action].onPress || void 0,
handleRelease: R.onRelease || Q[R.action].onRelease || void 0,
disabled: R.disabled || Q[R.action].disabled,
handleArrowPress: (P) => (b && P === "up" && v.setActivity(!1), !0),
children: [
/* @__PURE__ */ me(
At,
{
icon: R.faIcon || Q[R.action].faIcon || Hy
}
),
/* @__PURE__ */ me("small", { children: R.label || Q[R.action].label })
]
},
l
);
}) });
return /* @__PURE__ */ Ke(
"div",
{
className: "tv-player-ui",
"data-testid": "tv-player-ui",
style: {
width: p ? "100%" : e.width || "100%",
height: p ? _ || "100%" : e.height || "350px"
},
children: [
/* @__PURE__ */ me(
"div",
{
className: pt("tv-player-ui__cover", {
hide: !g,
"with-top-cover": d || !y,
"light-cover": y && !D
})
}
),
g && /* @__PURE__ */ Ke(Mi, { children: [
/* @__PURE__ */ Ke("div", { className: "metadata-wrapper", children: [
/* @__PURE__ */ me("div", { className: "metadata metadata--title", children: F }),
/* @__PURE__ */ me("div", { className: "metadata metadata--subTitle", children: E })
] }),
/* @__PURE__ */ me(Ve.FocusContext.Provider, { value: T, children: /* @__PURE__ */ Ke("div", { className: "buttons", ref: w, children: [
/* @__PURE__ */ me("div", { className: "buttons__left", children: ee("left") }),
/* @__PURE__ */ me("div", { className: "buttons__center", children: ee("center") }),
/* @__PURE__ */ me("div", { className: "buttons__right", children: ee("right") })
] }) }),
/* @__PURE__ */ me(
Zy,
{
currentTime: M.playedSeconds,
duration: h,
player: I,
handleSkipForward: G,
handleSkipBack: W
}
)
] })
]
}
);
};
function Zy(e) {
const { currentTime: t, duration: r, player: n, handleSkipForward: a, handleSkipBack: i } = e, o = t / r * 100, s = Math.min(100, o), u = (d) => {
const c = d.currentTarget, b = d.nativeEvent.offsetX / c.offsetWidth;
n && n.seekTo(b * r);
}, f = !n || !r || t >= 86400 || r >= 86400;
return /* @__PURE__ */ Ke(
"div",
{
className: pt("progress-bar", {
hide: f
}),
"data-testid": "progress-bar",
children: [
/* @__PURE__ */ me("span", { "data-testid": "current-time", className: "time", children: n && Lf(t) }),
/* @__PURE__ */ me(
"span",
{
className: "bar-wrapper",
onMouseDown: (d) => d.preventDefault(),
onMouseUp: u,
children: /* @__PURE__ */ Ke("div", { className: "bar", children: [
!f && /* @__PURE__ */ me(
zl,
{
style: { left: `${s}%` },
className: "progress-bar-button",
focusKey: "progress-bar-button",
handleArrowPress: (d) => d === "up" || d === "down" ? !0 : (d === "left" ? i() : a(), !1)
},
"progress-bar-button"
),
/* @__PURE__ */ me(
"span",
{
className: "fill",
style: { width: `${s}%` }
}
)
] })
}
),
/* @__PURE__ */ me("span", { "data-testid": "duration", className: "time time--duration", children: n && Lf(r) })
]
}
);
}
function zl(e) {
const {
children: t,
handlePress: r,
handleRelease: n,
handleArrowPress: a = () => !0,
focusKey: i,
className: o,
style: s,
disabled: u
} = e, { ref: f, focused: d, focusSelf: c } = Ve.useFocusable({
onEnterPress: u ? void 0 : r,
onEnterRelease: u ? void 0 : n,
onArrowPress: a
});
return Se(() => {
i === "playpause" && c();
}, [c, i]), /* @__PURE__ */ me(
"button",
{
style: s,
"data-testid": i,
className: pt(o, { focused: d, disabled: u }),
onMouseDown: r,
onMouseUp: n,
"focus-key": i,
ref: f,
onMouseEnter: c,
disabled: u,
children: t
}
);
}
function Qy(e) {
const t = /(?:youtube\.com\/(?:[^/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/, r = e.match(t);
return r ? r[1] : null;
}
const rm = (e) => {
!e.disableInitNav && Ve.init({
debug: !1,
visualDebug: !1,
throttle: 100
// options
});
const { onReady: t, onStart: r, onPause: n, onPlay: a, onError: i, onEnded: o, onBuffer: s } = e, u = Fi(null), f = Fi(null), [d, c] = Gi(!0), m = le((F) => F.actions), b = le((F) => F.light), T = le((F) => F.loop), w = le((F) => F.muted), _ = le((F) => F.playing), v = le((F) => F.activity), g = le((F) => F.fullscreen), h = typeof e.url == "string" && Qy(e.url), p = e.withTopCover || !!h, y = async (F) => {
const ae = await (await fetch(`https://noembed.com/embed?url=${F}`)).json();
!e.title && ae.title && m.setTitle(ae.title), !e.subTitle && ae.author_name && m.setSubTitle(ae.author_name), ae.error && h && m.setLight(!1), f.current && h && e.light && (f.current.src = typeof e.light == "string" ? e.light : `https://img.youtube.com/vi/${h}/maxresdefault.jpg`);
};
Se(() => (e.disableNav ? Ve.pause() : Ve.resume(), () => Ve.resume()), [e.disableNav]), Se(() => {
m.setLight(e.light), typeof e.url == "string" ? y(e.url) : m.setLight(!1), m.setProgress(0), m.setDuration(0);
}, [e.url, e.light]), Se(() => {
m.setPlaying(e.playing), e.playing && m.setLight(!1);
}, [e.playing]), Se(() => m.setTitle(e.title), [e.title]), Se(() => m.setSubTitle(e.subTitle), [e.subTitle]), Se(() => {
m.setFullscreen(!e.disableFullscreen);
}, [e.disableFullscreen]), Se(() => m.setLoop(e.loop), [e.loop]), Se(() => m.setMuted(e.muted), [e.muted]), Se(() => m.setMediaCount(e.mediaCount), [e.mediaCount]), Se(() => {
setTimeout(() => m.setMediaIndex(e.mediaIndex));
}, [e.mediaIndex]);
const O = () => {
m.setPlaying(!0), m.setLight(!1);
}, x = () => {
m.setPlaying(!1), n == null || n();
}, L = () => {
m.setPlaying(!0), m.setLight(!1), a == null || a();
}, A = (F) => {
m.setPlayer(F), t == null || t(F);
}, N = (F, X, ae, pe) => {
i == null || i(F, X, ae, pe);
}, I = () => {
m.setPlaying(!1), m.setActivity(!0), o == null || o();
}, D = (F) => {
m.setProgress(F.playedSeconds);
}, M = (F) => {
m.setDuration(F);
}, E = () => {
f.current && (typeof e.light == "boolean" && f.current.naturalWidth >= 1280 || typeof e.light == "string" ? c(!1) : c(!0));
};
return /* @__PURE__ */ Ke(
"div",
{
className: "tv-player",
"data-testid": "tv-player",
style: { height: g ? "100vh" : "unset", ...e.style },
children: [
/* @__PURE__ */ me(
vd,
{
"data-testid": "react-player",
ref: u,
url: e.url,
width: g ? "100%" : e.width || "100%",
height: g ? "100%" : e.height || "350px",
light: !_ && b,
controls: e.controls,
playIcon: e.playIcon || /* @__PURE__ */ me(Mi, {}),
loop: T,
muted: w,
playing: _,
playbackRate: e.playbackRate,
progressInterval: v ? 200 : e.progressInterval,
playsinline: e.playsinline,
volume: e.volume,
onPlay: L,
onReady: A,
onStart: () => r == null ? void 0 : r(),
onBuffer: () => s == null ? void 0 : s(),
onEnded: I,
onPause: x,
onDuration: M,
onProgress: D,
onClickPreview: O,
onError: N,
config: e.config || {
file: {
attributes: {
style: {
width: "100%",
height: "100%",
objectFit: "contain"
}
}
}
}
}
),
/* @__PURE__ */ me(
"img",
{
ref: f,
onError: () => c(!0),
onLoad: E,
alt: "",
style: {
width: g ? "100%" : e.width || "100%",
height: g ? "100%" : e.height || "350px"
},
className: pt("yt-preview", {
show: !d && b && h && !_
})
}
),
!e.controls && /* @__PURE__ */ me(Jy, { withTopCover: p, ...e })
]
}
);
};
export {
rm as T,
Xl as a,
Jy as b,
le as c,
Gt as g,
Xt as r,
Xy as u
};