9 lines
215 KiB
JavaScript
9 lines
215 KiB
JavaScript
|
"object" == typeof navigator && function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define("Plyr", t) : (e = e || self).Plyr = t() }(this, (function () {
|
||
|
"use strict"; !function () { if ("undefined" != typeof window) try { var e = new window.CustomEvent("test", { cancelable: !0 }); if (e.preventDefault(), !0 !== e.defaultPrevented) throw new Error("Could not prevent default") } catch (e) { var t = function (e, t) { var n, i; return (t = t || {}).bubbles = !!t.bubbles, t.cancelable = !!t.cancelable, (n = document.createEvent("CustomEvent")).initCustomEvent(e, t.bubbles, t.cancelable, t.detail), i = n.preventDefault, n.preventDefault = function () { i.call(this); try { Object.defineProperty(this, "defaultPrevented", { get: function () { return !0 } }) } catch (e) { this.defaultPrevented = !0 } }, n }; t.prototype = window.Event.prototype, window.CustomEvent = t } }(); var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}; function t(e, t) { return e(t = { exports: {} }, t.exports), t.exports } var n = function (e) { return e && e.Math == Math && e }, i = n("object" == typeof globalThis && globalThis) || n("object" == typeof window && window) || n("object" == typeof self && self) || n("object" == typeof e && e) || Function("return this")(), r = function (e) { try { return !!e() } catch (e) { return !0 } }, a = !r((function () { return 7 != Object.defineProperty({}, 1, { get: function () { return 7 } })[1] })), o = {}.propertyIsEnumerable, s = Object.getOwnPropertyDescriptor, l = { f: s && !o.call({ 1: 2 }, 1) ? function (e) { var t = s(this, e); return !!t && t.enumerable } : o }, c = function (e, t) { return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: t } }, u = {}.toString, h = function (e) { return u.call(e).slice(8, -1) }, f = "".split, d = r((function () { return !Object("z").propertyIsEnumerable(0) })) ? function (e) { return "String" == h(e) ? f.call(e, "") : Object(e) } : Object, p = function (e) { if (null == e) throw TypeError("Can't call method on " + e); return e }, m = function (e) { return d(p(e)) }, g = function (e) { return "object" == typeof e ? null !== e : "function" == typeof e }, v = function (e, t) { if (!g(e)) return e; var n, i; if (t && "function" == typeof (n = e.toString) && !g(i = n.call(e))) return i; if ("function" == typeof (n = e.valueOf) && !g(i = n.call(e))) return i; if (!t && "function" == typeof (n = e.toString) && !g(i = n.call(e))) return i; throw TypeError("Can't convert object to primitive value") }, y = {}.hasOwnProperty, b = function (e, t) { return y.call(e, t) }, w = i.document, k = g(w) && g(w.createElement), T = function (e) { return k ? w.createElement(e) : {} }, S = !a && !r((function () { return 7 != Object.defineProperty(T("div"), "a", { get: function () { return 7 } }).a })), E = Object.getOwnPropertyDescriptor, A = { f: a ? E : function (e, t) { if (e = m(e), t = v(t, !0), S) try { return E(e, t) } catch (e) { } if (b(e, t)) return c(!l.f.call(e, t), e[t]) } }, x = function (e) { if (!g(e)) throw TypeError(String(e) + " is not an object"); return e }, C = Object.defineProperty, P = { f: a ? C : function (e, t, n) { if (x(e), t = v(t, !0), x(n), S) try { return C(e, t, n) } catch (e) { } if ("get" in n || "set" in n) throw TypeError("Accessors not supported"); return "value" in n && (e[t] = n.value), e } }, I = a ? function (e, t, n) { return P.f(e, t, c(1, n)) } : function (e, t, n) { return e[t] = n, e }, O = function (e, t) { try { I(i, e, t) } catch (n) { i[e] = t } return t }, L = i["__core-js_shared__"] || O("__core-js_shared__", {}), j = Function.toString; "function" != typeof L.inspectSource && (L.inspectSource = function (e) { return j.call(e) }); var M, N, R, _ = L.inspectSource, U = i.WeakMap, F = "function" == typeof U && /native code/.test(_(U)), D = t((function (e) { (e.exports = function (e, t) { return L[e] || (L[e] = void 0 !== t ? t : {}) })("versions", []).push({ version: "3.6.4", mode: "global", copyright: "© 2020 Denis Pushkarev (zloirock.ru)" }) })), q = 0, H = Math.random(), B = function (e) { return "Symbol(" + String(void 0 === e ? "" : e) + ")_"
|
||
|
isIE:
|
||
|
/* @cc_on!@ */
|
||
|
!!document.documentMode, isEdge: window.navigator.userAgent.includes("Edge"), isWebkit: "WebkitAppearance" in document.documentElement.style && !/Edge/.test(navigator.userAgent), isIPhone: /(iPhone|iPod)/gi.test(navigator.platform), isIos: /(iPad|iPhone|iPod)/gi.test(navigator.platform)
|
||
|
}, ou = function (e) { return function (t, n, i, r) { it(n); var a = Ne(t), o = d(a), s = le(a.length), l = e ? s - 1 : 0, c = e ? -1 : 1; if (i < 2) for (; ;) { if (l in o) { r = o[l], l += c; break } if (l += c, e ? l < 0 : s <= l) throw TypeError("Reduce of empty array with no initial value") } for (; e ? l >= 0 : s > l; l += c)l in o && (r = n(r, o[l], l, a)); return r } }, su = { left: ou(!1), right: ou(!0) }.left, lu = $t("reduce"), cu = Qt("reduce", { 1: 0 }); function uu(e, t) { return t.split(".").reduce((function (e, t) { return e && e[t] }), e) } function hu() { for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)n[i - 1] = arguments[i]; if (!n.length) return e; var r = n.shift(); return zc(r) ? (Object.keys(r).forEach((function (t) { zc(r[t]) ? (Object.keys(e).includes(t) || Object.assign(e, ko({}, t, {})), hu(e[t], r[t])) : Object.assign(e, ko({}, t, r[t])) })), hu.apply(void 0, [e].concat(n))) : e } function fu(e, t) { var n = e.length ? e : [e]; Array.from(n).reverse().forEach((function (e, n) { var i = n > 0 ? t.cloneNode(!0) : t, r = e.parentNode, a = e.nextSibling; i.appendChild(e), a ? r.insertBefore(i, a) : r.appendChild(i) })) } function du(e, t) { Qc(e) && !nu(t) && Object.entries(t).filter((function (e) { var t = Eo(e, 2)[1]; return !Vc(t) })).forEach((function (t) { var n = Eo(t, 2), i = n[0], r = n[1]; return e.setAttribute(i, r) })) } function pu(e, t, n) { var i = document.createElement(e); return zc(t) && du(i, t), Kc(n) && (i.innerText = n), i } function mu(e, t, n, i) { Qc(t) && t.appendChild(pu(e, n, i)) } function gu(e) { Xc(e) || Gc(e) ? Array.from(e).forEach(gu) : Qc(e) && Qc(e.parentNode) && e.parentNode.removeChild(e) } function vu(e) { if (Qc(e)) for (var t = e.childNodes.length; t > 0;)e.removeChild(e.lastChild), t -= 1 } function yu(e, t) { return Qc(t) && Qc(t.parentNode) && Qc(e) ? (t.parentNode.replaceChild(e, t), e) : null } function bu(e, t) { if (!Kc(e) || nu(e)) return {}; var n = {}, i = hu({}, t); return e.split(",").forEach((function (e) { var t = e.trim(), r = t.replace(".", ""), a = t.replace(/[[\]]/g, "").split("="), o = Eo(a, 1)[0], s = a.length > 1 ? a[1].replace(/["']/g, "") : ""; switch (t.charAt(0)) { case ".": Kc(i.class) ? n.class = "".concat(i.class, " ").concat(r) : n.class = r; break; case "#": n.id = t.replace("#", ""); break; case "[": n[o] = s } })), hu(i, n) } function wu(e, t) { if (Qc(e)) { var n = t; $c(n) || (n = !e.hidden), e.hidden = n } } function ku(e, t, n) { if (Xc(e)) return Array.from(e).map((function (e) { return ku(e, t, n) })); if (Qc(e)) { var i = "toggle"; return void 0 !== n && (i = n ? "add" : "remove"), e.classList[i](t), e.classList.contains(t) } return !1 } function Tu(e, t) { return Qc(e) && e.classList.contains(t) } function Su(e, t) { return function () { return Array.from(document.querySelectorAll(t)).includes(this) }.call(e, t) } function Eu(e) { return this.elements.container.querySelectorAll(e) } function Au(e) { return this.elements.container.querySelector(e) } function xu() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null, t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; Qc(e) && (e.focus({ preventScroll: !0 }), t && ku(e, this.config.classNames.tabFocus)) } Oe({ target: "Array", proto: !0, forced: !lu || !cu }, { reduce: function (e) { return su(this, e, arguments.length, arguments.length > 1 ? arguments[1] : void 0) } }); var Cu, Pu = { "audio/ogg": "vorbis", "audio/wav": "1", "video/webm": "vp8, vorbis", "video/mp4": "avc1.42E01E, mp4a.40.2", "video/ogg": "theora" }, Iu = { audio: "canPlayType" in document.createElement("audio"), video: "canPlayType" in document.createElement("video"), check: function (e, t, n) { var i = au.isIPhone && n && Iu.playsinline, r = Iu[e] || "html5" !== t; return { api: r, ui: r && Iu.rangeInput && ("video" !== e || !au.isIPhone || i) } }, pip: !(au.isIPhone || !Yc(pu("video").webkitSetPresentationMode) && (!document.pictureInPictureEnabled
|
||
|
}));
|
||
|
//# sourceMappingURL=plyr.polyfilled.js.map
|