1/*! 2 * MediaElement.js 3 * http://www.mediaelementjs.com/ 4 * 5 * Wrapper that mimics native HTML5 MediaElement (audio and video) 6 * using a variety of technologies (pure JavaScript, Flash, iframe) 7 * 8 * Copyright 2010-2017, John Dyer (http://j.hn/) 9 * License: MIT 10 * Version: 5.0.5 11 */ 12(function () { function d(c, e, t) { function a(i, s) { if (!e[i]) { if (!c[i]) { var o = "function" == typeof require && require; if (!s && o) return o(i, !0); if (n) return n(i, !0); var r = new Error("Cannot find module '" + i + "'"); throw r.code = "MODULE_NOT_FOUND", r } var u = e[i] = { exports: {} }; c[i][0].call(u.exports, function (t) { var e = c[i][1][t]; return a(e ? e : t) }, u, u.exports, d, c, e, t) } return e[i].exports } for (var n = "function" == typeof require && require, i = 0; i < t.length; i++)a(t[i]); return a } return d })()({ 1: [function () { }, {}], 2: [function (e, t) { (function (n) { var i, a = "undefined" == typeof n ? "undefined" == typeof window ? {} : window : n, s = e(1); "undefined" == typeof document ? (i = a["__GLOBAL_DOCUMENT_CACHE@4"], !i && (i = a["__GLOBAL_DOCUMENT_CACHE@4"] = s)) : i = document, t.exports = i }).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) }, { 1: 1 }], 3: [function (e, t) { (function (e) { var n; n = "undefined" == typeof window ? "undefined" == typeof e ? "undefined" == typeof self ? {} : self : e : window, t.exports = n }).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) }, {}], 4: [function (e, t) { (function (e) { function n() { } function i(e, t) { return function () { e.apply(t, arguments) } } function a(e) { if ("object" != typeof this) throw new TypeError("Promises must be constructed via new"); if ("function" != typeof e) throw new TypeError("not a function"); this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], u(e, this) } function s(e, t) { for (; 3 === e._state;)e = e._value; return 0 === e._state ? void e._deferreds.push(t) : void (e._handled = !0, a._immediateFn(function () { var n = 1 === e._state ? t.onFulfilled : t.onRejected; if (null === n) return void (1 === e._state ? o : r)(t.promise, e._value); var i; try { i = n(e._value) } catch (n) { return void r(t.promise, n) } o(t.promise, i) })) } function o(t, n) { try { if (n === t) throw new TypeError("A promise cannot be resolved with itself."); if (n && ("object" == typeof n || "function" == typeof n)) { var s = n.then; if (n instanceof a) return t._state = 3, t._value = n, void l(t); if ("function" == typeof s) return void u(i(s, n), t) } t._state = 1, t._value = n, l(t) } catch (n) { r(t, n) } } function r(e, t) { e._state = 2, e._value = t, l(e) } function l(e) { 2 === e._state && 0 === e._deferreds.length && a._immediateFn(function () { e._handled || a._unhandledRejectionFn(e._value) }); for (var t = 0, n = e._deferreds.length; t < n; t++)s(e, e._deferreds[t]); e._deferreds = null } function d(e, t, n) { this.onFulfilled = "function" == typeof e ? e : null, this.onRejected = "function" == typeof t ? t : null, this.promise = n } function u(e, t) { var n = !1; try { e(function (e) { n || (n = !0, o(t, e)) }, function (e) { n || (n = !0, r(t, e)) }) } catch (e) { if (n) return; n = !0, r(t, e) } } var c = setTimeout; a.prototype["catch"] = function (e) { return this.then(null, e) }, a.prototype.then = function (e, t) { var i = new this.constructor(n); return s(this, new d(e, t, i)), i }, a.all = function (e) { var t = Array.prototype.slice.call(e); return new a(function (e, n) { function a(o, i) { try { if (i && ("object" == typeof i || "function" == typeof i)) { var r = i.then; if ("function" == typeof r) return void r.call(i, function (e) { a(o, e) }, n) } t[o] = i, 0 == --s && e(t) } catch (e) { n(e) } } if (0 === t.length) return e([]); for (var s = t.length, o = 0; o < t.length; o++)a(o, t[o]) }) }, a.resolve = function (e) { return e && "object" == typeof e && e.constructor === a ? e : new a(function (t) { t(e) }) }, a.reject = function (e) { return new a(function (t, n) { n(e) }) }, a.race = function (e) { return new a(function (t, n) { for (var a = 0, s = e.length; a < s; a++)e[a].then(t, n) }) }, a._immediateFn = "function" == typeof setImmediate && function (e) { setImmediate(e) } || function (e) { c(e, 0) }, a._unhandledRejectionFn = function (e) { "undefined" != typeof console && console && console.warn("Possible Unhandled Promise Rejection:", e) }, a._setImmediateFn = function (e) { a._immediateFn = e }, a._setUnhandledRejectionFn = function (e) { a._unhandledRejectionFn = e }, "undefined" != typeof t && t.exports ? t.exports = a : !e.Promise && (e.Promise = a) })(this) }, {}], 5: [function (e, t) { !function (e, n) { "function" == typeof define && define.amd ? define([], function () { return e.svg4everybody = n() }) : "object" == typeof t && t.exports ? t.exports = n() : e.svg4everybody = n() }(this, function () { function e(e, t, n) { if (n) { var i = document.createDocumentFragment(), a = !t.hasAttribute("viewBox") && n.getAttribute("viewBox"); a && t.setAttribute("viewBox", a); for (var s = n.cloneNode(!0); s.childNodes.length;)i.appendChild(s.firstChild); e.appendChild(i) } } function t(t) { t.onreadystatechange = function () { if (4 === t.readyState) { var n = t._cachedDocument; n || (n = t._cachedDocument = document.implementation.createHTMLDocument(""), n.body.innerHTML = t.responseText, t._cachedTarget = {}), t._embeds.splice(0).map(function (i) { var a = t._cachedTarget[i.id]; a || (a = t._cachedTarget[i.id] = n.getElementById(i.id)), e(i.parent, i.svg, a) }) } }, t.onreadystatechange() } function n(n) { function a() { for (var n = 0; n < u.length;) { var r = u[n], m = r.parentNode, p = i(m), f = r.getAttribute("xlink:href") || r.getAttribute("href"); if (!(!f && o.attributeName && (f = r.getAttribute(o.attributeName)), p && f)) ++n;
12 else if (s) if (!o.validate || o.validate(f, p, r)) { m.removeChild(r); var h = f.split("#"), g = h.shift(), y = h.join("#"); if (g.length) { var v = l[g]; v || (v = l[g] = new XMLHttpRequest, v.open("GET", g), v.send(), v._embeds = []), v._embeds.push({ parent: m, svg: p, id: y }), t(v) } else e(m, p, document.getElementById(y)) } else ++n, ++c } (!u.length || 0 < u.length - c) && d(a, 67) } var s, o = Object(n), r = window.top !== window.self; s = "polyfill" in o ? o.polyfill : /\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent) || 10547 > (navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/) || [])[1] || 537 > (navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/) || [])[1] || /\bEdge\/.(\d+)\b/.test(navigator.userAgent) && r; var l = {}, d = window.requestAnimationFrame || setTimeout, u = document.getElementsByTagName("use"), c = 0; s && a() } function i(e) { for (var t = e; "svg" !== t.nodeName.toLowerCase() && (t = t.parentNode);); return t } return n }) }, {}], 6: [function (e, t, n) { 'use strict'; Object.defineProperty(n, "__esModule", { value: !0 }); var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, a = e(8), s = function (e) { return e && e.__esModule ? e : { default: e } }(a), o = e(16), r = e(28), l = { lang: "en", en: o.EN }; l.language = function () { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)t[n] = arguments[n]; if (null !== t && t !== void 0 && t.length) { if ("string" != typeof t[0]) throw new TypeError("Language code must be a string value"); if (!/^[a-z]{2,3}((\-|_)[a-z]{2})?$/i.test(t[0])) throw new TypeError("Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters"); l.lang = t[0], l[t[0]] === void 0 ? (t[1] = null !== t[1] && t[1] !== void 0 && "object" === i(t[1]) ? t[1] : {}, l[t[0]] = (0, r.isObjectEmpty)(t[1]) ? o.EN : t[1]) : null !== t[1] && t[1] !== void 0 && "object" === i(t[1]) && (l[t[0]] = t[1]) } return l.lang }, l.t = function (e) { var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : null; if ("string" == typeof e && e.length) { var n = void 0, a = void 0, s = l.language(), o = function (e, t, n) { if ("object" !== ("undefined" == typeof e ? "undefined" : i(e)) || "number" != typeof t || "number" != typeof n) return e; var a = function () { return [function () { return 1 >= arguments.length ? void 0 : arguments[1] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 >= arguments.length ? void 0 : arguments[2] }, function () { return 0 === (0 >= arguments.length ? void 0 : arguments[0]) || 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 >= arguments.length ? void 0 : arguments[2] }, function () { return 1 == (0 >= arguments.length ? void 0 : arguments[0]) % 10 && 11 != (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 1 >= arguments.length ? void 0 : arguments[1] : 0 === (0 >= arguments.length ? void 0 : arguments[0]) ? 3 >= arguments.length ? void 0 : arguments[3] : 2 >= arguments.length ? void 0 : arguments[2] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) || 11 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 === (0 >= arguments.length ? void 0 : arguments[0]) || 12 === (0 >= arguments.length ? void 0 : arguments[0]) ? 2 >= arguments.length ? void 0 : arguments[2] : 2 < (0 >= arguments.length ? void 0 : arguments[0]) && 20 > (0 >= arguments.length ? void 0 : arguments[0]) ? 3 >= arguments.length ? void 0 : arguments[3] : 4 >= arguments.length ? void 0 : arguments[4] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 0 === (0 >= arguments.length ? void 0 : arguments[0]) || 0 < (0 >= arguments.length ? void 0 : arguments[0]) % 100 && 20 > (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 2 >= arguments.length ? void 0 : arguments[2] : 3 >= arguments.length ? void 0 : arguments[3] }, function () { return 1 == (0 >= arguments.length ? void 0 : arguments[0]) % 10 && 11 != (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 1 >= arguments.length ? void 0 : arguments[1] : 2 <= (0 >= arguments.length ? void 0 : arguments[0]) % 10 && (10 > (0 >= arguments.length ? void 0 : arguments[0]) % 100 || 20 <= (0 >= arguments.length ? void 0 : arguments[0]) % 100) ? 2 >= arguments.length ? void 0 : arguments[2] : [3] }, function () { return 1 == (0 >= arguments.length ? void 0 : arguments[0]) % 10 && 11 != (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 1 >= arguments.length ? void 0 : arguments[1] : 2 <= (0 >= arguments.length ? void 0 : arguments[0]) % 10 && 4 >= (0 >= arguments.length ? void 0 : arguments[0]) % 10 && (10 > (0 >= arguments.length ? void 0 : arguments[0]) % 100 || 20 <= (0 >= arguments.length ? void 0 : arguments[0]) % 100) ? 2 >= arguments.length ? void 0 : arguments[2] : 3 >= arguments.length ? void 0 : arguments[3] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 <= (0 >= arguments.length ? void 0 : arguments[0]) && 4 >= (0 >= arguments.length ? void 0 : arguments[0]) ? 2 >= arguments.length ? void 0 : arguments[2] : 3 >= arguments.length ? void 0 : arguments[3] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 <= (0 >= arguments.length ? void 0 : arguments[0]) % 10 && 4 >= (0 >= arguments.length ? void 0 : arguments[0]) % 10 && (10 > (0 >= arguments.length ? void 0 : arguments[0]) % 100 || 20 <= (0 >= arguments.length ? void 0 : arguments[0]) % 100) ? 2 >= arguments.length ? void 0 : arguments[2] : 3 >= arguments.length ? void 0 : arguments[3] }, function () { return 1 == (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 2 >= arguments.length ? void 0 : arguments[2] : 2 == (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 3 >= arguments.length ? void 0 : arguments[3] : 3 == (0 >= arguments.length ? void 0 : arguments[0]) % 100 || 4 == (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 4 >= arguments.length ? void 0 : arguments[4] : 1 >= arguments.length ? void 0 : arguments[1] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 === (0 >= arguments.length ? void 0 : arguments[0]) ? 2 >= arguments.length ? void 0 : arguments[2] : 2 < (0 >= arguments.length ? void 0 : arguments[0]) && 7 > (0 >= arguments.length ? void 0 : arguments[0]) ? 3 >= arguments.length ? void 0 : arguments[3] : 6 < (0 >= arguments.length ? void 0 : arguments[0]) && 11 > (0 >= arguments.length ? void 0 : arguments[0]) ? 4 >= arguments.length ? void 0 : arguments[4] : 5 >= arguments.length ? void 0 : arguments[5] }, function () { return 0 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 2 >= arguments.length ? void 0 : arguments[2] : 2 === (0 >= arguments.length ? void 0 : arguments[0]) ? 3 >= arguments.length ? void 0 : arguments[3] : 3 <= (0 >= arguments.length ? void 0 : arguments[0]) % 100 && 10 >= (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 4 >= arguments.length ? void 0 : arguments[4] : 11 <= (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 5 >= arguments.length ? void 0 : arguments[5] : 6 >= arguments.length ? void 0 : arguments[6] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 0 === (0 >= arguments.length ? void 0 : arguments[0]) || 1 < (0 >= arguments.length ? void 0 : arguments[0]) % 100 && 11 > (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 2 >= arguments.length ? void 0 : arguments[2] : 10 < (0 >= arguments.length ? void 0 : arguments[0]) % 100 && 20 > (0 >= arguments.length ? void 0 : arguments[0]) % 100 ? 3 >= arguments.length ? void 0 : arguments[3] : 4 >= arguments.length ? void 0 : arguments[4] }, function () { return 1 == (0 >= arguments.length ? void 0 : arguments[0]) % 10 ? 1 >= arguments.length ? void 0 : arguments[1] : 2 == (0 >= arguments.length ? void 0 : arguments[0]) % 10 ? 2 >= arguments.length ? void 0 : arguments[2] : 3 >= arguments.length ? void 0 : arguments[3] }, function () { return 11 !== (0 >= arguments.length ? void 0 : arguments[0]) && 1 == (0 >= arguments.length ? void 0 : arguments[0]) % 10 ? 1 >= arguments.length ? void 0 : arguments[1] : 2 >= arguments.length ? void 0 : arguments[2] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 <= (0 >= arguments.length ? void 0 : arguments[0]) % 10 && 4 >= (0 >= arguments.length ? void 0 : arguments[0]) % 10 && (10 > (0 >= arguments.length ? void 0 : arguments[0]) % 100 || 20 <= (0 >= arguments.length ? void 0 : arguments[0]) % 100) ? 2 >= arguments.length ? void 0 : arguments[2] : 3 >= arguments.length ? void 0 : arguments[3] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 === (0 >= arguments.length ? void 0 : arguments[0]) ? 2 >= arguments.length ? void 0 : arguments[2] : 8 !== (0 >= arguments.length ? void 0 : arguments[0]) && 11 !== (0 >= arguments.length ? void 0 : arguments[0]) ? 3 >= arguments.length ? void 0 : arguments[3] : 4 >= arguments.length ? void 0 : arguments[4] }, function () { return 0 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 >= arguments.length ? void 0 : arguments[2] }, function () { return 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 2 === (0 >= arguments.length ? void 0 : arguments[0]) ? 2 >= arguments.length ? void 0 : arguments[2] : 3 === (0 >= arguments.length ? void 0 : arguments[0]) ? 3 >= arguments.length ? void 0 : arguments[3] : 4 >= arguments.length ? void 0 : arguments[4] }, function () { return 0 === (0 >= arguments.length ? void 0 : arguments[0]) ? 1 >= arguments.length ? void 0 : arguments[1] : 1 === (0 >= arguments.length ? void 0 : arguments[0]) ? 2 >= arguments.length ? void 0 : arguments[2] : 3 >= arguments.length ? void 0 : arguments[3] }] }(); return a[n].apply(null, [t].concat(e)) }; return void 0 !== l[s] && (n = l[s][e], null !== t && "number" == typeof t && (a = l[s]["wpcp_mejs.plural-form"], n = o.apply(null, [n, t, a]))), !n && l.en && (n = l.en[e], null !== t && "number" == typeof t && (a = l.en["wpcp_mejs.plural-form"], n = o.apply(null, [n, t, a]))), n = n || e, null !== t && "number" == typeof t && (n = n.replace("%1", t)), (0, r.escapeHTML)(n) } return e }, s.default.i18n = l, "undefined" != typeof wpcp_mejsL10n && s.default.i18n.language(wpcp_mejsL10n.language, wpcp_mejsL10n.strings), n.default = l }, { 16: 16, 28: 28, 8: 8 }], 7: [function (e, t, n) { 'use strict';
12 function i(e) { return e && e.__esModule ? e : { default: e } } function a(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } Object.defineProperty(n, "__esModule", { value: !0 }); var s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, o = e(3), r = i(o), l = e(2), d = i(l), u = e(8), c = i(u), m = e(28), p = e(30), f = e(9), h = e(26), g = function e(o, l, u) { var g = this; a(this, e); var y = this; u = Array.isArray(u) ? u : null, y.defaults = { renderers: [], fakeNodeName: "div", pluginPath: "build/", iconSprite: "wpcp_mejs-controls.svg", shimScriptAccess: "sameDomain" }, l = Object.assign(y.defaults, l), y.mediaElement = d.default.createElement(l.fakeNodeName); var t = o, v = !1; if ("string" == typeof o ? y.mediaElement.originalNode = d.default.getElementById(o) : (y.mediaElement.originalNode = o, t = o.id), void 0 === y.mediaElement.originalNode || null === y.mediaElement.originalNode) return null; y.mediaElement.options = l, t = t || "wpcp_mejs_" + Math.random().toString().slice(2), y.mediaElement.originalNode.setAttribute("id", t + "_from_wpcp_mejs"); var E = y.mediaElement.originalNode.tagName.toLowerCase(); -1 < ["video", "audio"].indexOf(E) && !y.mediaElement.originalNode.getAttribute("preload") && y.mediaElement.originalNode.setAttribute("preload", "none"), y.mediaElement.originalNode.setAttribute("tabindex", -1), y.mediaElement.originalNode.parentNode.insertBefore(y.mediaElement, y.mediaElement.originalNode), y.mediaElement.appendChild(y.mediaElement.originalNode); var b = function (e, t) { if ("https:" === r.default.location.protocol && 0 === e.indexOf("http:") && h.IS_IOS && -1 < c.default.html5media.mediaTypes.indexOf(t)) { var n = new XMLHttpRequest; n.onreadystatechange = function () { if (4 === this.readyState && 200 === this.status) { var t = r.default.URL || r.default.webkitURL, n = t.createObjectURL(this.response); return y.mediaElement.originalNode.setAttribute("src", n), n } return e }, n.open("GET", e), n.responseType = "blob", n.send() } return e }, S = void 0; if (null !== u) S = u; else if (null !== y.mediaElement.originalNode) switch (S = [], y.mediaElement.originalNode.nodeName.toLowerCase()) { case "iframe": S.push({ type: "", src: y.mediaElement.originalNode.getAttribute("src") }); break; case "audio": case "video": var x = y.mediaElement.originalNode.children.length, P = y.mediaElement.originalNode.getAttribute("src"); if (P) { var _ = y.mediaElement.originalNode, C = (0, p.formatType)(P, _.getAttribute("type")); S.push({ type: C, src: b(P, C) }) } for (var T, k = 0; k < x; k++)if (T = y.mediaElement.originalNode.children[k], "source" === T.tagName.toLowerCase()) { var w = T.getAttribute("src"), N = (0, p.formatType)(w, T.getAttribute("type")); S.push({ type: N, src: b(w, N) }) } }y.mediaElement.id = t, y.mediaElement.renderers = {}, y.mediaElement.events = {}, y.mediaElement.promises = [], y.mediaElement.renderer = null, y.mediaElement.rendererN
12ame = null, y.mediaElement.changeRenderer = function (e, n) { var i = g, t = 2 < Object.keys(n[0]).length ? n[0] : n[0].src; if (void 0 !== i.mediaElement.renderer && null !== i.mediaElement.renderer && i.mediaElement.renderer.name === e) return i.mediaElement.renderer.pause(), i.mediaElement.renderer.stop && i.mediaElement.renderer.stop(), i.mediaElement.renderer.show(), i.mediaElement.renderer.setSrc(t), !0; void 0 !== i.mediaElement.renderer && null !== i.mediaElement.renderer && (i.mediaElement.renderer.pause(), i.mediaElement.renderer.stop && i.mediaElement.renderer.stop(), i.mediaElement.renderer.hide()); var a = i.mediaElement.renderers[e], s = null; if (void 0 !== a && null !== a) return a.show(), a.setSrc(t), i.mediaElement.renderer = a, i.mediaElement.rendererName = e, !0; for (var o, r = i.mediaElement.options.renderers.length ? i.mediaElement.options.renderers : f.renderer.order, l = 0, d = r.length; l < d; l++)if (o = r[l], o === e) { var u = f.renderer.renderers; s = u[o]; var c = Object.assign(s.options, i.mediaElement.options); return a = s.create(i.mediaElement, c, n), a.name = e, i.mediaElement.renderers[s.name] = a, i.mediaElement.renderer = a, i.mediaElement.rendererN
12ame = e, a.show(), !0 } return !1 }, y.mediaElement.setSize = function (e, t) { void 0 !== y.mediaElement.renderer && null !== y.mediaElement.renderer && y.mediaElement.renderer.setSize(e, t) }, y.mediaElement.generateError = function (e, t) { e = e || "", t = Array.isArray(t) ? t : []; var n = (0, m.createEvent)("error", y.mediaElement); n.message = e, n.urls = t, y.mediaElement.dispatchEvent(n), v = !0 }; var A = c.default.html5media.properties, L = c.default.html5media.methods, F = function (e, t, n, i) { var a = e[t], s = function () { return n.apply(e, [a]) }, o = function (t) { return a = i.apply(e, [t]), a }; Object.defineProperty(e, t, { get: s, set: o }) }, I = function (e) { if ("src" !== e) { var t = "" + e.substring(0, 1).toUpperCase() + e.substring(1), n = function () { return void 0 !== y.mediaElement.renderer && null !== y.mediaElement.renderer && "function" == typeof y.mediaElement.renderer["get" + t] ? y.mediaElement.renderer["get" + t]() : null }, i = function (e) { void 0 !== y.mediaElement.renderer && null !== y.mediaElement.renderer && "function" == typeof y.mediaElement.renderer["set" + t] && y.mediaElement.renderer["set" + t](e) }; F(y.mediaElement, e, n, i), y.mediaElement["get" + t] = n, y.mediaElement["set" + t] = i } }, j = function () { return void 0 !== y.mediaElement.renderer && null !== y.mediaElement.renderer ? y.mediaElement.renderer.getSrc() : null }, M = function (e) { var t = []; if ("string" == typeof e) t.push({ src: e, type: e ? (0, p.getTypeFromFile)(e) : "" }); else if ("object" === ("undefined" == typeof e ? "undefined" : s(e)) && void 0 !== e.src) { var n = (0, p.absolutizeUrl)(e.src), i = e.type, a = Object.assign(e, { src: n, type: ("" === i || null === i || void 0 === i) && n ? (0, p.getTypeFromFile)(n) : i }); t.push(a) } else if (Array.isArray(e)) for (var o = 0, r = e.length; o < r; o++) { var l = (0, p.absolutizeUrl)(e[o].src), d = e[o].type, u = Object.assign(e[o], { src: l, type: ("" === d || null === d || void 0 === d) && l ? (0, p.getTypeFromFile)(l) : d }); t.push(u) } var c, h = f.renderer.select(t, y.mediaElement.options.renderers.length ? y.mediaElement.options.renderers : []); if (y.mediaElement.paused || null == y.mediaElement.src || "" === y.mediaElement.src || (y.mediaElement.pause(), c = (0, m.createEvent)("pause", y.mediaElement), y.mediaElement.dispatchEvent(c)), y.mediaElement.originalNode.src = t[0].src || "", null === h && t[0].src) return void y.mediaElement.generateError("No renderer found", t); var g = null != t[0].src && "" !== t[0].src; return g ? y.mediaElement.changeRenderer(h.rendererName, t) : null }
vendor: 4,871 bytes, line 12
12, O = function (e, t) { try { if ("play" === e && ("native_dash" === y.mediaElement.rendererName || "native_hls" === y.mediaElement.rendererName || "vimeo_iframe" === y.mediaElement.rendererName)) { var n = y.mediaElement.renderer[e](t); return n && "function" == typeof n.then && n.catch(function () { y.mediaElement.paused && setTimeout(function () { var e = y.mediaElement.renderer.play(); void 0 !== e && e.catch(function () { y.mediaElement.renderer.paused || y.mediaElement.renderer.pause() }) }, 150) }), n } return y.mediaElement.renderer[e](t) } catch (t) { throw y.mediaElement.generateError(t, S), t } }, D = function (e) { y.mediaElement[e] = function () { for (var t = arguments.length, n = Array(t), i = 0; i < t; i++)n[i] = arguments[i]; return void 0 !== y.mediaElement.renderer && null !== y.mediaElement.renderer && "function" == typeof y.mediaElement.renderer[e] ? y.mediaElement.promises.length ? Promise.all(y.mediaElement.promises).then(function () { return O(e, n) }).catch(function (t) { return y.mediaElement.generateError(t, S), Promise.reject(t) }) : O(e, n) : null } }; F(y.mediaElement, "src", j, M), y.mediaElement.getSrc = j, y.mediaElement.setSrc = M; for (var V = 0, R = A.length; V < R; V++)I(A[V]); for (var H = 0, U = L.length; H < U; H++)D(L[H]); return y.mediaElement.addEventListener = function (e, t) { y.mediaElement.events[e] = y.mediaElement.events[e] || [], y.mediaElement.events[e].push(t) }, y.mediaElement.removeEventListener = function (e, t) { if (!e) return y.mediaElement.events = {}, !0; var n = y.mediaElement.events[e]; if (!n) return !0; if (!t) return y.mediaElement.events[e] = [], !0; for (var i = 0; i < n.length; i++)if (n[i] === t) return y.mediaElement.events[e].splice(i, 1), !0; return !1 }, y.mediaElement.dispatchEvent = function (e) { var t = y.mediaElement.events[e.type]; if (t) for (var n = 0; n < t.length; n++)t[n].apply(null, [e]) }, y.mediaElement.destroy = function () { var e = y.mediaElement.originalNode.cloneNode(!0), t = y.mediaElement.parentElement; e.removeAttribute("id"), e.remove(), y.mediaElement.remove(), t.appendChild(e) }, S.length && (y.mediaElement.src = S), y.mediaElement.promises.length ? Promise.all(y.mediaElement.promises).then(function () { y.mediaElement.options.success && y.mediaElement.options.success(y.mediaElement, y.mediaElement.originalNode) }).catch(function () { v && y.mediaElement.options.error && y.mediaElement.options.error(y.mediaElement, y.mediaElement.originalNode) }) : (y.mediaElement.options.success && y.mediaElement.options.success(y.mediaElement, y.mediaElement.originalNode), v && y.mediaElement.options.error && y.mediaElement.options.error(y.mediaElement, y.mediaElement.originalNode)), y.mediaElement }; r.default.MediaElement = g, c.default.MediaElement = g, n.default = g }, { 2: 2, 26: 26, 28: 28, 3: 3, 30: 30, 8: 8, 9: 9 }], 8: [function (e, t, n) { 'use strict'; Object.defineProperty(n, "__esModule", { value: !0 }); var i = e(3), a = function (e) { return e && e.__esModule ? e : { default: e } }(i), s = {}; s.version = "5.0.5", s.html5media = { properties: ["volume", "src", "currentTime", "muted", "duration", "paused", "ended", "buffered", "error", "networkState", "readyState", "seeking", "seekable", "currentSrc", "preload", "bufferedBytes", "bufferedTime", "initialTime", "startOffsetTime", "defaultPlaybackRate", "playbackRate", "played", "autoplay", "loop", "controls"], readOnlyProperties: ["duration", "paused", "ended", "buffered", "error", "networkState", "readyState", "seeking", "seekable"], methods: ["load", "play", "pause", "canPlayType"], events: ["loadstart", "durationchange", "loadedmetadata", "loadeddata", "progress", "canplay", "canplaythrough", "suspend", "abort", "error", "emptied", "stalled", "play", "playing", "pause", "waiting", "seeking", "seeked", "timeupdate", "ended", "ratechange", "volumechange"], mediaTypes: ["audio/mp3", "audio/ogg", "audio/oga", "audio/wav", "audio/x-wav", "audio/wave", "audio/x-pn-wav", "audio/mpeg", "audio/mp4", "video/mp4", "video/webm", "video/ogg", "video/ogv"] }, a.default.wpcp_mejs = s, n.default = s }, { 3: 3 }], 9: [function (e, t, n) { 'use strict'; function i(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } Object.defineProperty(n, "__esModule", { value: !0 }), n.renderer = void 0; var a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, s = function () { function e(e, t) { for (var n, a = 0; a < t.length; a++)n = t[a], n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n) } return function (t, n, i) { return n && e(t.prototype, n), i && e(t, i), t } }
12(), o = e(8), r = function (e) { return e && e.__esModule ? e : { default: e } }(o), l = function () { function e() { i(this, e), this.renderers = {}, this.order = [] } return s(e, [{ key: "add", value: function (e) { if (void 0 === e.name) throw new TypeError("renderer must contain at least `name` property"); this.renderers[e.name] = e, this.order.push(e.name) } }, { key: "select", value: function (e) { var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : [], n = t.length; if (t = t.length ? t : this.order, !n) { var a = [/^(html5|native)/i, /^flash/i, /iframe$/i], s = function (e) { for (var t = 0, n = a.length; t < n; t++)if (a[t].test(e)) return t; return a.length }; t.sort(function (e, t) { return s(e) - s(t) }) } for (var o = 0, r = t.length; o < r; o++) { var l = t[o], d = this.renderers[l]; if (null !== d && void 0 !== d) for (var u = 0, c = e.length; u < c; u++)if ("function" == typeof d.canPlayType && "string" == typeof e[u].type && d.canPlayType(e[u].type)) return { rendererName: d.name, src: e[u].src } } return null } }, { key: "order", set: function (e) { if (!Array.isArray(e)) throw new TypeError("order must be an array of strings."); this._order = e }, get: function () { return this._order } }, { key: "renderers", set: function (e) { if (null !== e && "object" !== ("undefined" == typeof e ? "undefined" : a(e))) throw new TypeError("renderers must be an array of objects."); this._renderers = e }, get: function () { return this._renderers } }]), e }(), d = n.renderer = new l; r.default.Renderers = d }, { 8: 8 }], 10: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(3), i = t(n), a = e(2), s = t(a), o = e(6), r = t(o), l = e(17), d = t(l), u = e(26), c = function (e) { if (e && e.__esModule) return e; var t = {}; if (null != e) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return t.default = e, t }(u), m = e(28), p = e(27), f = e(30), h = e(29); Object.assign(l.config, { usePluginFullScreen: !0, fullscreenText: null, useFakeFullscreen: !1 }), Object.assign(d.default.prototype, { isFullScreen: !1, isNativeFullScreen: !1, isInIframe: !1, isPluginClickThroughCreated: !1, fullscreenMode: "", containerSizeTimeout: null, buildfullscreen: function (n) { if (n.isVideo) { n.isInIframe = i.default.location !== i.default.parent.location, n.detectFullscreenMode(); var a = this, e = (0, m.isString)(a.options.fullscreenText) ? a.options.fullscreenText : r.default.t("wpcp_mejs.fullscreen"), t = s.default.createElement("div"); if (t.className = a.options.classPrefix + "button " + a.options.classPrefix + "fullscreen-button", t.innerHTML = (0, h.generateControlButton)(a.id, e, e, "" + a.media.options.iconSprite, ["icon-fullscreen", "icon-unfullscreen"], "" + a.options.classPrefix), a.addControlElement(t, "fullscreen"), t.addEventListener("click", function () { var e = c.HAS_TRUE_NATIVE_FULLSCREEN && c.IS_FULLSCREEN || n.isFullScreen; e ? n.exitFullScreen() : n.enterFullScreen() }), n.fullscreenBtn = t, a.options.keyActions.push({ keys: [70], action: function (e, t, n, i) { i.ctrlKey || "undefined" == typeof e.enterFullScreen || (e.isFullScreen ? e.exitFullScreen() : e.enterFullScreen()) } }), a.exitFullscreenCallback = function (t) { var e = t.which || t.keyCode || 0; a.options.enableKeyboard && 27 === e && (c.HAS_TRUE_NATIVE_FULLSCREEN && c.IS_FULLSCREEN || a.isFullScreen) && n.exitFullScreen() }, a.globalBind("keydown", a.exitFullscreenCallback), a.normalHeight = 0, a.normalWidth = 0, c.HAS_TRUE_NATIVE_FULLSCREEN) { var o = function () { n.isFullScreen && (c.isFullScreen() ? (n.isNativeFullScreen = !0, n.setControlsSize()) : (n.isNativeFullScreen = !1, n.exitFullScreen())) }; n.globalBind(c.FULLSCREEN_EVENT_NAME, o) } } }, cleanfullscreen: function (e) { e.exitFullScreen(), e.globalUnbind("keydown", e.exitFullscreenCallback) }, detectFullscreenMode: function () { var e = this, t = null !== e.media.rendererName && /(native|html5)/i.test(e.media.rendererName), n = ""; return c.HAS_TRUE_NATIVE_FULLSCREEN && t ? n = "native-native" : c.HAS_TRUE_NATIVE_FULLSCREEN && !t ? n = "plugin-native" : e.usePluginFullScreen && c.SUPPORT_POINTER_EVENTS && (n = "plugin-click"), e.fullscreenMode = n, n }, enterFullScreen: function () { var e = this, t = null !== e.media.rendererN
12ame && /(html5|native)/i.test(e.media.rendererName), n = getComputedStyle(e.getElement(e.container)); if (e.isVideo) { if (!1 === e.options.useFakeFullscreen && (c.IS_IOS || c.IS_SAFARI) && c.HAS_IOS_FULLSCREEN && "function" == typeof e.media.originalNode.webkitEnterFullscreen && e.media.originalNode.canPlayType((0, f.getTypeFromFile)(e.media.getSrc()))) return void e.media.originalNode.webkitEnterFullscreen(); if ((0, p.addClass)(s.default.documentElement, e.options.classPrefix + "fullscreen"), (0, p.addClass)(e.getElement(e.container), e.options.classPrefix + "container-fullscreen"), e.normalHeight = parseFloat(n.height), e.normalWidth = parseFloat(n.width), ("native-native" === e.fullscreenMode || "plugin-native" === e.fullscreenMode) && (c.requestFullScreen(e.getElement(e.container)), e.isInIframe && setTimeout(function t() { if (e.isNativeFullScreen) { var n = i.default.innerWidth || s.default.documentElement.clientWidth || s.default.body.clientWidth, a = screen.width, o = Math.abs(a - n); o > a * .002 ? e.exitFullScreen() : setTimeout(t, 500) } }, 1e3)), e.getElement(e.container).style.width = "100%", e.getElement(e.container).style.height = "100%", e.containerSizeTimeout = setTimeout(function () { e.getElement(e.container).style.width = "100%", e.getElement(e.container).style.height = "100%", e.setControlsSize() }, 500), t) e.node.style.width = "100%", e.node.style.height = "100%"; else for (var a = e.getElement(e.container).querySelectorAll("embed, object, video"), o = a.length, r = 0; r < o; r++)a[r].style.width = "100%", a[r].style.height = "100%"; e.options.setDimensions && "function" == typeof e.media.setSize && e.media.setSize(screen.width, screen.height); for (var l = e.getElement(e.layers).children, d = l.length, u = 0; u < d; u++)l[u].style.width = "100%", l[u].style.height = "100%"; e.fullscreenBtn && ((0, p.removeClass)(e.fullscreenBtn, e.options.classPrefix + "fullscreen"), (0, p.addClass)(e.fullscreenBtn, e.options.classPrefix + "unfullscreen")), e.setControlsSize(), e.isFullScreen = !0; var h = Math.min(screen.width / e.width, screen.height / e.height), g = e.getElement(e.container).querySelector("." + e.options.classPrefix + "captions-text"); g && (g.style.fontSize = 100 * h + "%", g.style.lineHeight = "normal", e.getElement(e.container).querySelector("." + e.options.classPrefix + "captions-position").style.bottom = (screen.height - e.normalHeight) / 2 - e.getElement(e.controls).offsetHeight / 2 + h + 15 + "px"); var y = (0, m.createEvent)("enteredfullscreen", e.getElement(e.container)); e.getElement(e.container).dispatchEvent(y) } }, exitFullScreen: function () { var e = this, t = null !== e.media.rendererName && /(native|html5)/i.test(e.media.rendererName); if (e.isVideo) { if (clearTimeout(e.containerSizeTimeout), c.HAS_TRUE_NATIVE_FULLSCREEN && (c.IS_FULLSCREEN || e.isFullScreen) && c.cancelFullScreen(), (0, p.removeClass)(s.default.documentElement, e.options.classPrefix + "fullscreen"), (0, p.removeClass)(e.getElement(e.container), e.options.classPrefix + "container-fullscreen"), e.options.setDimensions) { if (e.getElement(e.container).style.width = e.normalWidth + "px", e.getElement(e.container).style.height = e.normalHeight + "px", t) e.node.style.width = e.normalWidth + "px", e.node.style.height = e.normalHeight + "px"; else for (var n = e.getElement(e.container).querySelectorAll("embed, object, video"), a = n.length, o = 0; o < a; o++)n[o].style.width = e.normalWidth + "px", n[o].style.height = e.normalHeight + "px"; "function" == typeof e.media.setSize && e.media.setSize(e.normalWidth, e.normalHeight); for (var r = e.getElement(e.layers).children, l = r.length, d = 0; d < l; d++)r[d].style.width = e.normalWidth + "px", r[d].style.height = e.normalHeight + "px" } e.fullscreenBtn && ((0, p.removeClass)(e.fullscreenBtn, e.options.classPrefix + "unfullscreen"), (0, p.addClass)(e.fullscreenBtn, e.options.classPrefix + "fullscreen")), e.setControlsSize(), e.isFullScreen = !1; var u = e.getElement(e.container).querySelector("." + e.options.classPrefix + "captions-text"); u && (u.style.fontSize = "", u.style.lineHeight = "", e.getElement(e.container).querySelector("." + e.options.classPrefix + "captions-position").style.bottom = ""); var f = (0, m.createEvent)("exitedfullscreen", e.getElement(e.container)); e.getElement(e.container).dispatchEvent(f) } } }) }, { 17: 17, 2: 2, 26: 26, 27: 27, 28: 28, 29: 29, 3: 3, 30: 30, 6: 6 }], 11: [function (e) { 'use strict';
12 function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(2), i = t(n), a = e(17), s = t(a), o = e(6), r = t(o), l = e(28), d = e(27), u = e(29); Object.assign(a.config, { playText: null, pauseText: null }), Object.assign(s.default.prototype, { buildplaypause: function (e, n, a, s) { function o(e) { (0, d.removeClass)(f, c.options.classPrefix + "play"), (0, d.removeClass)(f, c.options.classPrefix + "replay"), (0, d.removeClass)(f, c.options.classPrefix + "pause"), "play" === e ? ((0, d.addClass)(f, c.options.classPrefix + "pause"), h.setAttribute("title", p), h.setAttribute("aria-label", p)) : "pse" === e ? ((0, d.addClass)(f, c.options.classPrefix + "play"), h.setAttribute("title", m), h.setAttribute("aria-label", m)) : ((0, d.addClass)(f, c.options.classPrefix + "replay"), h.setAttribute("title", m), h.setAttribute("aria-label", m)) } var c = this, t = c.options, m = (0, l.isString)(t.playText) ? t.playText : r.default.t("wpcp_mejs.play"), p = (0, l.isString)(t.pauseText) ? t.pauseText : r.default.t("wpcp_mejs.pause"), f = i.default.createElement("div"); f.className = c.options.classPrefix + "button " + c.options.classPrefix + "playpause-button " + c.options.classPrefix + "play", f.innerHTML = (0, u.generateControlButton)(c.id, p, m, "" + c.media.options.iconSprite, ["icon-play", "icon-pause", "icon-replay"], "" + c.options.classPrefix), f.addEventListener("click", function () { c.paused ? c.play() : c.pause() }); var h = f.querySelector("button"); c.addControlElement(f, "playpause"), o("pse"), s.addEventListener("loadedmetadata", function () { -1 === s.rendererName.indexOf("flash") && o("pse") }), s.addEventListener("play", function () { o("play") }), s.addEventListener("playing", function () { o("play") }), s.addEventListener("pause", function () { o("pse") }), s.addEventListener("ended", function () { e.options.loop || setTimeout(function () { o("replay") }, 0) }) } }) }, { 17: 17, 2: 2, 27: 27, 28: 28, 29: 29, 6: 6 }], 12: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(2), a = t(n), s = e(17), o = t(s), r = e(6), l = t(r), d = e(26), u = e(32), c = e(27); Object.assign(s.config, { enableProgressTooltip: !0, useSmoothHover: !0, forceLive: !1 }), Object.assign(o.default.prototype, { buildprogress: function (n, s, o, r) { var m = 0, p = !1, f = !1, h = this, e = n.options.autoRewind, t = n.options.enableProgressTooltip ? "<span class=\"" + h.options.classPrefix + "time-float\">" + ("<span class=\"" + h.options.classPrefix + "time-float-current\">00:00</span>") + ("<span class=\"" + h.options.classPrefix + "time-float-corner\"></span></span>") : "", g = a.default.createElement("div"); g.className = h.options.classPrefix + "time-rail", g.innerHTML = "<span class=\"" + h.options.classPrefix + "time-total " + h.options.classPrefix + "time-slider\">" + ("<span class=\"" + h.options.classPrefix + "time-buffering\"></span>") + ("<span class=\"" + h.options.classPrefix + "time-loaded\"></span>") + ("<span class=\"" + h.options.classPrefix + "time-current\"></span>") + ("<span class=\"" + h.options.classPrefix + "time-hovered no-hover\"></span>") + ("<span class=\"" + h.options.classPrefix + "time-handle\"><span class=\"" + h.options.classPrefix + "time-handle-content\"></span></span>") + ("" + t) + "</span>", h.addControlElement(g, "progress"), h.options.keyActions.push({ keys: [37, 227], action: function (e) { if (!isNaN(e.duration) && 0 < e.duration) { e.isVideo && (e.showControls(), e.startControlsTimer()); var t = e.getElement(e.container).querySelector("." + h.options.classPrefix + "time-total"); t && t.focus(); var n = Math.max(e.currentTime - e.options.defaultSeekBackwardInterval(e), 0); e.paused || e.pause(), setTimeout(function () { e.setCurrentTime(n) }, 0), setTimeout(function () { e.play() }, 0) } } }, { keys: [39, 228], action: function (e) { if (!isNaN(e.duration) && 0 < e.duration) { e.isVideo && (e.showControls(), e.startControlsTimer()); var t = e.getElement(e.container).querySelector("." + h.options.classPrefix + "time-total"); t && t.focus(); var n = Math.min(e.currentTime + e.options.defaultSeekForwardInterval(e), e.duration); e.paused || e.pause(), setTimeout(function () { e.setCurrentTime(n) }, 0), setTimeout(function () { e.play() }, 0) } } }), h.rail = s.querySelector("." + h.options.classPrefix + "time-rail"), h.total = s.querySelector("." + h.options.classPrefix + "time-total"), h.loaded = s.querySelector("." + h.options.classPrefix + "time-loaded"), h.current = s.querySelector("." + h.options.classPrefix + "time-current"), h.handle = s.querySelector("." + h.options.classPrefix + "time-handle"), h.timefloat = s.querySelector("." + h.options.classPrefix + "time-float"), h.timefloatcurrent = s.querySelector("." + h.options.classPrefix + "time-float-current"), h.slider = s.querySelector("." + h.options.classPrefix + "time-slider"), h.hovered = s.querySelector("." + h.options.classPrefix + "time-hovered"), h.buffer = s.querySelector("." + h.options.classPrefix + "time-buffering"), h.newTime = 0, h.forcedHandlePause = !1, h.setTransformStyle = function (e, t) { e.style.transform = t, e.style.webkitTransform = t, e.style.MozTransform = t, e.style.msTransform = t, e.style.OTransform = t }, h.buffer.style.display = "none"; var y = function (t) { var e = getComputedStyle(h.total), i = (0, c.offset)(h.total), a = h.total.offsetWidth, s = function () { return void 0 === e.webkitTransform ? void 0 === e.mozTransform ? void 0 === e.oTransform ? void 0 === e.msTransform ? "transform" : "msTransform" : "oTransform" : "mozTransform " : "
12webkitTransform" }(), o = function () { return "WebKitCSSMatrix" in window ? "WebKitCSSMatrix" : "MSCSSMatrix" in window ? "MSCSSMatrix" : "CSSMatrix" in window ? "CSSMatrix" : void 0 }(), r = 0, l = 0, m = 0, f = void 0; if (f = t.originalEvent && t.originalEvent.changedTouches ? t.originalEvent.changedTouches[0].pageX : t.changedTouches ? t.changedTouches[0].pageX : t.pageX, !h.getDuration()) d.IS_IOS || d.IS_ANDROID || !h.timefloat || (l = h.timefloat.offsetWidth + a >= h.getElement(h.container).offsetWidth ? h.timefloat.offsetWidth / 2 : 0, h.timefloat.style.left = l + "px", h.timefloat.style.left = l + "px", h.timefloat.style.display = "block"); else if (f < i.left ? f = i.left : f > a + i.left && (f = a + i.left), m = f - i.left, r = m / a, h.newTime = r * h.getDuration(), p && null !== h.getCurrentTime() && h.newTime.toFixed(4) !== h.getCurrentTime().toFixed(4) && (h.setCurrentRailHandle(h.newTime), h.updateCurrent(h.newTime)), !d.IS_IOS && !d.IS_ANDROID) { if (0 > m && (m = 0), h.options.useSmoothHover && null !== o && "undefined" != typeof window[o]) { var g = new window[o](getComputedStyle(h.handle)[s]), y = g.m41, v = m / parseFloat(getComputedStyle(h.total).width) - y / parseFloat(getComputedStyle(h.total).width); h.hovered.style.left = y + "px", h.setTransformStyle(h.hovered, "scaleX(" + v + ")"), h.hovered.setAttribute("pos", m), 0 <= v ? (0, c.removeClass)(h.hovered, "negative") : (0, c.addClass)(h.hovered, "negative") } if (h.timefloat) { var E = h.timefloat.offsetWidth / 2, b = wpcp_mejs.Utils.offset(h.getElement(h.container)), S = getComputedStyle(h.timefloat); l = f - b.left < h.timefloat.offsetWidth ? E : f - b.left >= h.getElement(h.container).offsetWidth - E ? h.total.offsetWidth - E : m, (0, c.hasClass)(h.getElement(h.container), h.options.classPrefix + "long-video") && (l += parseFloat(S.marginLeft) / 2 + h.timefloat.offsetWidth / 2), h.timefloat.style.left = l + "px", h.timefloatcurrent.innerHTML = (0, u.secondsToTimeCode)(h.newTime, n.options.alwaysShowHours, n.options.showTimecodeFrameCount, n.options.framesPerSecond, n.options.secondsDecimalLength, n.options.timeFormat), h.timefloat.style.display = "block" } } }, v = function () { var e = h.getCurrentTime(), t = l.default.t("wpcp_mejs.time-slider"), i = (0, u.secondsToTimeCode)(e, n.options.alwaysShowHours, n.options.showTimecodeFrameCount, n.options.framesPerSecond, n.options.secondsDecimalLength, n.options.timeFormat), a = h.getDuration(); h.slider.setAttribute("role", "slider"), h.slider.tabIndex = 0, r.paused ? (h.slider.setAttribute("aria-label", t), h.slider.setAttribute("aria-valuemin", 0), h.slider.setAttribute("aria-valuemax", isNaN(a) ? 0 : a), h.slider.setAttribute("aria-valuenow", e), h.slider.setAttribute("aria-valuetext", i)) : (h.slider.removeAttribute("aria-label"), h.slider.removeAttribute("aria-valuemin"), h.slider.removeAttribute("aria-valuemax"), h.slider.removeAttribute("aria-valuenow"), h.slider.removeAttribute("aria-valuetext")) }, E = function () { 1e3 <= new Date - m && h.play() }, b = function () { p && null !== h.getCurrentTime() && h.newTime.toFixed(4) !== h.getCurrentTime().toFixed(4) && (h.setCurrentTime(h.newTime), h.setCurrentRailHandle(h.newTime), h.updateCurrent(h.newTime)), h.forcedHandlePause && (h.slider.focus(), h.play()), h.forcedHandlePause = !1 }; h.slider.addEventListener("focus", function () { n.options.autoRewind = !1 }), h.slider.addEventListener("blur", function () { n.options.autoRewind = e }), h.slider.addEventListener("keydown", function (t) { if (1e3 <= new Date - m && (f = h.paused), h.options.enableKeyboard && h.options.keyActions.length) { var e = t.which || t.keyCode || 0, i = h.getDuration(), a = n.options.defaultSeekForwardInterval(r), s = n.options.defaultSeekBackwardInterval(r), o = h.getCurrentTime(), l = h.getElement(h.container).querySelector("." + h.options.classPrefix + "volume-slider"); if (38 === e || 40 === e) { l && (l.style.display = "block"), h.isVideo && (h.showControls(), h.startControlsTimer()); var u = 38 === e ? Math.min(h.volume + .1, 1) : Math.max(h.volume - .1, 0); return h.setVolume(u), void h.setMuted(0 >= u) } switch (l && (l.style.display = "none"), e) { case 37: h.getDuration() !== 1 / 0 && (o -= s); break; case 39: h.getDuration() !== 1 / 0 && (o += a); break; case 36: o = 0; break; case 35: o = i; break; case 13: case 32: return void (d.IS_FIREFOX && (h.paused ? h.play() : h.pause())); default: return; }o = 0 > o || isNaN(o) ? 0 : o >= i ? i : Math.floor(o), m = new Date, f || n.pause(), setTimeout(function () { h.setCurrentTime(o) }, 0), o < h.getDuration() && !f && setTimeout(E, 1100), n.showControls(), t.preventDefault(), t.stopPropagation() } }); var S = ["mousedown", "touchstart"]; h.slider.addEventListener("dragstart", function () { return !1 }); for (var x = 0, P = S.length; x < P; x++)h.slider.addEventListener(S[x], function (t) { if (h.forcedHandlePause = !1, h.getDuration() !== 1 / 0 && (1 === t.which || 0 === t.which)) { h.paused || (h.pause(), h.forcedHandlePause = !0), p = !0, y(t); for (var e = ["mouseup", "touchend"], n = 0, i = e.length; n < i; n++)h.getElement(h.container).addEventListener(e[n], function (e) { var t = e.target; (t === h.slider || t.closest("." + h.options.classPrefix + "time-slider")) && y(e) }); h.globalBind("mouseup.dur touchend.dur", function () { b(), p = !1, h.timefloat && (h.timefloat.style.display = "none") }) } }, !!(d.SUPPORT_PASSIVE_EVENT && "touchstart" === S[x]) && { passive: !0 }); h.slider.addEventListener("mouseenter", function (t) { t.target === h.slider && h.getDuration() !== 1 / 0 && (h.getElement(h.container).addEventListener("mousemove", function (e) { var t = e.target; (t === h.slider || t.closest("." + h.options.classPrefix + "time-slider")) && y(e) }), h.timefloat && !d.IS_IOS && !d.IS_ANDROID && (h.timefloat.style.display = "block"), h.hovered && !d.IS_IOS && !d.IS_ANDROID && h.options.useSmoothHover && (0, c.removeClass)(h.hovered, "no-hover")) }), h.slider.addEventListener("mouseleave", function () { h.getDuration() === 1 / 0 || p || (h.timefloat && (h.timefloat.style.display = "none"), h.hovered && h.options.useSmoothHover && (0, c.addClass)(h.hovered, "no-hover")) }), h.broadcastCallback = function (t) { var e = s.querySelector("." + h.options.classPrefix + "broadcast"); if (!h.options.forceLive && h.getDuration() !== 1 / 0) e && (h.slider.style.display = "", e.remove()), n.setProgressRail(t), h.forcedHandlePause || n.setCurrentRail(t), v(); else if (!e && h.options.forceLive) { var i = a.default.createElement("span"); i.className = h.options.classPrefix + "broadcast", i.innerText = l.default.t("wpcp_mejs.live-broadcast"), h.slider.style.display = "none", h.rail.appendChild(i) } }, r.addEventListener("progress", h.broadcastCallback), r.addEventListener("timeupdate", h.broadcastCallback), r.addEventListener("play", function () { h.buffer.style.display = "none" }), r.addEventListener("playing", function () { h.buffer.style.display = "none" }), r.addEventListener("seeking", function () { h.buffer.style.display = "" }), r.addEventListener("seeked", function () { h.buffer.style.display = "none" }), r.addEventListener("pause", function () { h.buffer.style.display = "none" }), r.addEventListener("waiting", function () { h.buffer.style.display = "" }), r.addEventListener("loadeddata", function () { h.buffer.style.display = "" }), r.addEventListener("canplay", function () { h.buffer.style.display = "none" }), r.addEventListener("error", function () { h.buffer.style.display = "none" }), h.getElement(h.container).addEventListener("controlsresize", function (t) { h.getDuration() !== 1 / 0 && (n.setProgressRail(t), !h.forcedHandlePause && n.setCurrentRail(t)) }) }, cleanprogress: function (e, t, n, i) { i.removeEventListener("progress", e.broadcastCallback), i.removeEventListener("timeupdate", e.broadcastCallback), e.rail && e.rail.remove() }, setProgressRail: function (n) { var e = this, t = n === void 0 ? e.media : n.detail.target || n.target, i = null; t && t.buffered && 0 < t.buffered.length && t.buffered.end && e.getDuration() ? i = t.buffered.end(t.buffered.length - 1) / e.getDuration() : t && t.bytesTotal !== void 0 && 0 < t.bytesTotal && t.bufferedBytes !== void 0 ? i = t.bufferedBytes / t.bytesTotal : n && n.lengthComputable && 0 !== n.total && (i = n.loaded / n.total), null !== i && (i = Math.min(1, Math.max(0, i)), e.loaded && e.setTransformStyle(e.loaded, "scaleX(" + i + ")")) }, setCurrentRailHandle: function (e) { var n = this; n.setCurrentRailMain(n, e) }, setCurrentRail: function () { var e = this; e.setCurrentRailMain(e) }, setCurrentRailMain: function (e, t) { if (e.getCurrentTime() !== void 0 && e.getDuration()) { var n = "undefined" == typeof t ? e.getCurrentTime() : t; if (e.total && e.handle) { var i = parseFloat(getComputedStyle(e.total).width), a = Math.round(i * n / e.getDuration()), s = a - Math.round(e.handle.offsetWidth / 2); if (s = 0 > s ? 0 : s, e.setTransformStyle(e.current, "scaleX(" + a / i + ")"), e.setTransformStyle(e.handle, "translateX("
vendor: 1,844 bytes, line 12
12+ s + "px)"), e.options.useSmoothHover && !(0, c.hasClass)(e.hovered, "no-hover")) { var o = parseInt(e.hovered.getAttribute("pos"), 10); o = isNaN(o) ? 0 : o; var r = o / i - s / i; e.hovered.style.left = s + "px", e.setTransformStyle(e.hovered, "scaleX(" + r + ")"), 0 <= r ? (0, c.removeClass)(e.hovered, "negative") : (0, c.addClass)(e.hovered, "negative") } } } } }) }, { 17: 17, 2: 2, 26: 26, 27: 27, 32: 32, 6: 6 }], 13: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(2), i = t(n), a = e(17), s = t(a), o = e(32), r = e(27); Object.assign(a.config, { duration: 0, timeAndDurationSeparator: "<span> | </span>" }), Object.assign(s.default.prototype, { buildcurrent: function (e, n, a, s) { var r = this, t = i.default.createElement("div"); t.className = r.options.classPrefix + "time", t.setAttribute("role", "timer"), t.setAttribute("aria-live", "off"), t.innerHTML = "<span class=\"" + r.options.classPrefix + "currenttime\">" + (0, o.secondsToTimeCode)(0, e.options.alwaysShowHours, e.options.showTimecodeFrameCount, e.options.framesPerSecond, e.options.secondsDecimalLength, e.options.timeFormat) + "</span>", r.addControlElement(t, "current"), e.updateCurrent(), r.updateTimeCallback = function () { r.controlsAreVisible && e.updateCurrent() }, s.addEventListener("timeupdate", r.updateTimeCallback) }, cleancurrent: function (e, t, n, i) { i.removeEventListener("timeupdate", e.updateTimeCallback) }, buildduration: function (e, n, a, s) { var l = this, t = n.lastChild.querySelector("." + l.options.classPrefix + "currenttime"); if (t) n.querySelector("." + l.options.classPrefix + "time").innerHTML += l.options.timeAndDurationSeparator + "<span class=\"" + l.options.classPrefix + "duration\">" + ((0, o.secondsToTimeCode)(l.options.duration, l.options.alwaysShowHours, l.o
12ptions.showTimecodeFrameCount, l.options.framesPerSecond, l.options.secondsDecimalLength, l.options.timeFormat) + "</span>"); else { n.querySelector("." + l.options.classPrefix + "currenttime") && (0, r.addClass)(n.querySelector("." + l.options.classPrefix + "currenttime").parentNode, l.options.classPrefix + "currenttime-container"); var d = i.default.createElement("div"); d.className = l.options.classPrefix + "time " + l.options.classPrefix + "duration-container", d.innerHTML = "<span class=\"" + l.options.classPrefix + "duration\">" + ((0, o.secondsToTimeCode)(l.options.duration, l.options.alwaysShowHours, l.options.showTimecodeFrameCount, l.options.framesPerSecond, l.options.secondsDecimalLength, l.options.timeFormat) + "</span>"), l.addControlElement(d, "duration") } l.updateDurationCallback = function () { l.controlsAreVisible && e.updateDuration() }, s.addEventListener("timeupdate", l.updateDurationCallback) }, cleanduration: function (e, t, n, i) { i.removeEventListener("timeupdate", e.updateDurationCallback) }, updateCurrent: function () { var e = this, t = e.getCurrentTime(); isNaN(t) && (t = 0); var n = (0, o.secondsToTimeCode)(t, e.options.alwaysShowHours, e.options.showTimecodeFrameCount, e.options.framesPerSecond, e.options.secondsDecimalLength, e.options.timeFormat); 5 < n.length ? (0, r.addClass)(e.getElement(e.container), e.options.classPrefix + "long-video") : (0, r.removeClass)(e.getElement(e.container), e.options.classPrefix + "long-video"), e.getElement(e.controls).querySelector("." + e.options.classPrefix + "currenttime") && (e.getElement(e.controls).querySelector("." + e.options.classPrefix + "currenttime").innerText = n) }, updateDuration: function () { var e = this, t = e.getDuration(); e.media !== void 0 && (isNaN(t) || t === 1 / 0 || 0 > t) && (e.media.duration = e.options.duration = t = 0), 0 < e.options.duration && (t = e.options.duration); var n = (0, o.secondsToTimeCode)(t, e.options.alwaysShowHours, e.options.showTimecodeFrameCount, e.options.framesPerSecond, e.options.secondsDecimalLength, e.options.timeFormat); 5 < n.length ? (0, r.addClass)(e.getElement(e.container), e.options.classPrefix + "long-video") : (0, r.removeClass)(e.getElement(e.container), e.options.classPrefix + "long-video"), e.getElement(e.controls).querySelector("." + e.options.classPrefix + "duration") && 0 < t && (e.getElement(e.controls).querySelector("." + e.options.classPrefix + "duration").innerHTML = n) } }) }, { 17: 17, 2: 2, 27: 27, 32: 32 }], 14: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(2), a = t(n), s = e(8), o = t(s), r = e(6), l = t(r), d = e(17), u = t(d), c = e(32), m = e(28), p = e(27), f = e(29); Object.assign(d.config, { startLanguage: "", tracksText: null, chaptersText: null, tracksAriaLive: !1, hideCaptionsButtonWhenEmpty: !0, toggleCaptionsButtonWhenOnlyOne: !1, slidesSelector: "" }), Object.assign(u.default.prototype, { hasChapters: !1, buildtracks: function (n, s, o, r) { if (this.findTracks(), n.tracks.length || n.trackFiles && 0 !== !n.trackFiles.length) { var d = this, e = d.options.tracksAriaLive ? " role=\"log\" aria-live=\"assertive\" aria-atomic=\"false\"" : "", t = (0, m.isString)(d.options.tracksText) ? d.options.tracksText : l.default.t("wpcp_mejs.captions-subtitles"), u = (0, m.isString)(d.options.chaptersText) ? d.options.chaptersText : l.default.t("wpcp_mejs.captions-chapters"), c = null === n.trackFiles ? n.tracks.length : n.trackFiles.length; if (d.domNode.textTracks) for (var h = d.domNode.textTracks.length - 1; 0 <= h; h--)d.domNode.textTracks[h].mode = "hidden"; d.cleartracks(n), n.captions = a.default.createElement("div"), n.captions.className = d.options.classPrefix + "captions-layer " + d.options.classPrefix + "layer", n.captions.innerHTML = "<div class=\"" + d.options.classPrefix + "captions-position " + d.options.classPrefix + "captions-position-hover\"" + e + ">" + ("<span class=\"" + d.options.classPrefix + "captions-text\"></span></div>"), n.captions.style.display = "none", o.insertBefore(n.captions, o.firstChild), n.captionsText = n.captions.querySelector("." + d.options.classPrefix + "captions-text"), n.captionsButton = a.default.createElement("div"), n.captionsButton.className = d.options.classPrefix + "button " + d.options.classPrefix + "captions-button", n.captionsButton.innerHTML = (0, f.generateControlButton)(d.id, t, t, "" + d.media.options.iconS
12prite, ["icon-captions"], "" + d.options.classPrefix) + ("<div class=\"" + d.options.classPrefix + "captions-selector " + d.options.classPrefix + "offscreen\">") + ("<ul class=\"" + d.options.classPrefix + "captions-selector-list\">") + ("<li class=\"" + d.options.classPrefix + "captions-selector-list-item\">") + ("<input type=\"radio\" class=\"" + d.options.classPrefix + "captions-selector-input\" ") + ("name=\"" + n.id + "_captions\" id=\"" + n.id + "_captions_none\" value=\"none\" checked disabled>") + ("<label class=\"" + d.options.classPrefix + "captions-selector-label ") + (d.options.classPrefix + "captions-selected\" ") + ("for=\"" + n.id + "_captions_none\">" + l.default.t("wpcp_mejs.none") + "</label></li></ul></div>"),n.getElement(d.controls).querySelector("."+d.options.classPrefix+"controls-right").insertBefore(n.captionsButton,null),n.captionsButton.querySelector("."+d.options.classPrefix+"captions-selector-input").disabled = !1, n.chaptersButton = a.default.createElement("div"), n.chaptersButton.className = d.options.classPrefix + "button " + d.options.classPrefix + "chapters-button", n.chaptersButton.innerHTML = (0, f.generateControlButton)(d.id, u, u, "" + d.media.options.iconSprite, ["icon-chapters"], "" + d.options.classPrefix) + ("<div class=\"" + d.options.classPrefix + "chapters-selector " + d.options.classPrefix + "offscreen\">") + ("<ul class=\"" + d.options.classPrefix + "chapters-selector-list\"></ul></div>"); for (var g = 0, y = 0; y < c; y++) { var v = n.tracks[y].kind, E = n.tracks[y].src; E.trim() && ("subtitles" === v || "captions" === v ? g++ : "chapters" === v && !s.querySelector("." + d.options.classPrefix + "chapter-selector") && n.captionsButton.parentNode.insertBefore(n.chaptersButton, n.captionsButton)) } n.trackToLoad = -1, n.selectedTrack = null, n.isLoadingTrack = !1; for (var b, S = 0; S < c; S++)b = n.tracks[S].kind, n.tracks[S].src.trim() && ("subtitles" === b || "captions" === b) && n.addTrackButton(n.tracks[S].trackId, n.tracks[S].srclang, n.tracks[S].label); n.loadNextTrack();
12 var x = ["mouseenter", "focusin"], P = ["mouseleave", "focusout"]; if (d.options.toggleCaptionsButtonWhenOnlyOne && 1 === g) n.captionsButton.addEventListener("click", function (t) { var e = "none"; null === n.selectedTrack && (e = n.tracks[0].trackId); var i = t.keyCode || t.which; n.setTrack(e, "undefined" != typeof i) }); else { for (var _ = n.captionsButton.querySelectorAll("." + d.options.classPrefix + "captions-selector-label"), C = n.captionsButton.querySelectorAll("input[type=radio]"), T = 0, k = x.length; T < k; T++)n.captionsButton.addEventListener(x[T], function () { (0, p.removeClass)(this.querySelector("." + d.options.classPrefix + "captions-selector"), d.options.classPrefix + "offscreen") }); for (var w = 0, N = P.length; w < N; w++)n.captionsButton.addEventListener(P[w], function () { (0, p.addClass)(this.querySelector("." + d.options.classPrefix + "captions-selector"), d.options.classPrefix + "offscreen") }); for (var A = 0, L = C.length; A < L; A++)C[A].addEventListener("click", function (t) { var e = t.keyCode || t.which; n.setTrack(this.value, "undefined" != typeof e) }); for (var F = 0, I = _.length; F < I; F++)_[F].addEventListener("click", function (t) { var e = (0, p.siblings)(this, function (e) { return "INPUT" === e.tagName })[0], n = (0, m.createEvent)("click", e); e.dispatchEvent(n), t.preventDefault() }); n.captionsButton.addEventListener("keydown", function (t) { t.stopPropagation() }) } for (var j = 0, M = x.length; j < M; j++)n.chaptersButton.addEventListener(x[j], function () { this.querySelector("." + d.options.classPrefix + "chapters-selector-list").children.length && (0, p.removeClass)(this.querySelector("." + d.options.classPrefix + "chapters-selector"), d.options.classPrefix + "offscreen") }); for (var O = 0, D = P.length; O < D; O++)n.chaptersButton.addEventListener(P[O], function () { (0, p.addClass)(this.querySelector("." + d.options.classPrefix + "chapters-selector"), d.options.classPrefix + "offscreen") }); n.chaptersButton.addEventListener("keydown", function (t) { t.stopPropagation() }), n.options.alwaysShowControls ? (0, p.addClass)(n.getElement(n.container).querySelector("." + d.options.classPrefix + "captions-position"), d.options.classPrefix + "captions-position-hover") : (n.getElement(n.container).addEventListener("controlsshown", function () { (0, p.addClass)(n.getElement(n.container).querySelector("." + d.options.classPrefix + "captions-position"), d.options.classPrefix + "captions-position-hover") }), n.getElement(n.container).addEventListener("controlshidden", function () { r.paused || (0, p.removeClass)(n.getElement(n.container).querySelector("." + d.options.classPrefix + "captions-position"), d.options.classPrefix + "captions-position-hover") })), r.addEventListener("timeupdate", function () { n.displayCaptions() }), "" !== n.options.slidesSelector && (n.slidesContainer = a.default.querySelectorAll(n.options.slidesSelector), r.addEventListener("timeupdate", function () { n.displaySlides() })) } }, cleartracks: function (e) { e && (e.captions && e.captions.remove(), e.chapters && e.chapters.remove(), e.captionsText && e.captionsText.remove(), e.captionsButton && e.captionsButton.remove(), e.chaptersButton && e.chaptersButton.remove()) }, rebuildtracks: function () { var e = this; e.findTracks(), e.buildtracks(e, e.getElement(e.controls), e.getElement(e.layers), e.media) }, findTracks: function () { var e = this, t = null === e.trackFiles ? e.node.querySelectorAll("track") : e.trackFiles, n = t.length; e.tracks = []; for (var a = 0; a < n; a++) { var s = t[a], o = s.getAttribute("srclang").toLowerCase() || "", r = e.id + "_track_" + a + "_" + s.getAttribute("kind") + "_" + o; e.tracks.push({ trackId: r, srclang: o, src: s.getAttribute("src"), kind: s.getAttribute("kind"), label: s.getAttribute("label") || "", entries: [], isLoaded: !1 }) } }, setTrack: function (e, n) { for (var a = this, t = a.captionsButton.querySelectorAll("input[type=\"radio\"]"), s = a.captionsButton.querySelectorAll("." + a.options.classPrefix + "captions-selected"), o = a.captionsButton.querySelector("input[value=\"" + e + "\"]"), r = 0, l = t.length; r < l; r++)t[r].checked = !1; for (var d = 0, u = s.length; d < u; d++)(0, p.removeClass)(s[d], a.options.classPrefix + "captions-selected"); o.checked = !0; for (var c = (0, p.siblings)(o, function (e) { return (0, p.hasClass)(e, a.options.classPrefix + "captions-selector-label") }), f = 0, h = c.length; f < h; f++)(0, p.addClass)(c[f], a.options.classPrefix + "captions-selected"); if ("none" === e) a.selectedTrack = null, (0, p.removeClass)(a.captionsButton, a.options.classPrefix + "captions-enabled"); else for (var g, y = 0, v = a.tracks.length; y < v; y++)if (g = a.tracks[y], g.trackId === e) { null === a.selectedTrack && (0, p.addClass)(a.captionsButton, a.options.classPrefix + "captions-enabled"), a.selectedTrack = g, a.captions.setAttribute("lang", a.selectedTrack.srclang), a.displayCaptions(); break } var E = (0, m.createEvent)("captionschange", a.media); E.detail.caption = a.selectedTrack, a.media.dispatchEvent(E), n || setTimeout(function () { a.getElement(a.container).focus() }, 500) }, loadNextTrack: function () { var e = this; e.trackToLoad++, e.trackToLoad < e.tracks.length ? (e.isLoadingTrack = !0, e.loadTrack(e.trackToLoad)) : (e.isLoadingTrack = !1, e.checkForTracks()) }, loadTrack: function (e) { var n = this, t = n.tracks[e]; t !== void 0 && (t.src !== void 0 || "" !== t.src) && (0, p.ajax)(t.src, "text", function (e) { t.entries = "string" == typeof e && /<tt\s+xml/ig.exec(e) ? o.default.TrackFormatParser.dfxp.parse(e) : o.default.TrackFormatParser.webvtt.parse(e), t.isLoaded = !0, n.enableTrackButton(t), n.loadNextTrack(), "slides" === t.kind ? n.setupSlides(t) : "chapters" === t.kind && !n.hasChapters && (n.drawChapters(t), n.hasChapters = !0) }, function () { n.removeTrackButton(t.trackId), n.loadNextTrack() }) }, enableTrackButton: function (e) { var n = this, t = e.srclang, s = a.default.getElementById("" + e.trackId); if (s) { var r = e.label; "" === r && (r = l.default.t(o.default.language.codes[t]) || t), s.disabled = !1; for (var d = (0, p.siblings)(s, function (e) { return (0, p.hasClass)(e, n.options.classPrefix + "captions-selector-label") }), u = 0, c = d.length; u < void 0; u++)d[u].innerHTML = r; if (n.options.startLanguage === t) { s.checked = !0; var f = (0, m.createEvent)("click", s); s.dispatchEvent(f) } } }, removeTrackButton: function (e) { var t = a.default.getElementById("" + e); if (t) { var n = t.closest("li"); n && n.remove() } }, addTrackButton: function (e, n, i) { var a = this; "" === i && (i = l.default.t(o.default.language.codes[n]) || n), a.captionsButton.querySelector("ul").innerHTML += "<li class=\"" + a.options.classPrefix + "captions-selector-list-item\">" + ("<input type=\"radio\" class=\"" + a.options.classPrefix + "captions-selector-input\" ") + ("name=\"" + a.id + "_captions\" id=\"" + e + "\" value=\"" + e + "\" disabled>") + ("<label class=\"" + a.options.classPrefix + "captions-selector-label\"") + ("for=\"" + e + "\">" + i + " </label></li>") }, checkForTracks: function () { var e = this, t = !1; if (e.options.hideCaptionsButtonWhenEmpty) { for (var n, a = 0, s = e.tracks.length; a < s; a++)if (n = e.tracks[a].kind, ("subtitles" === n || "captions" === n) && e.tracks[a].isLoaded) { t = !0; break } e.captionsButton.style.display = t ? "" : "none", e.setControlsSize() } }, displayCaptions: function () { if (void 0 !== this.tracks) { var e = this, t = e.selectedTrack, n = function (e) { var t = a.default.createElement("div"); t.innerHTML = e; for (var s = t.getElementsByTagName("script"), o = s.length; o--;)s[o].remove(); for (var r = t.getElementsByTagName("*"), l = 0, d = r.length; l < d; l++)for (var n = r[l].attributes, u = Array.prototype.slice.call(n), c = 0, m = u.length; c < m; c++)u[c].name.startsWith("on") || u[c].value.startsWith("javascript") ? r[l].remove() : "style" === u[c].name && r[l].removeAttribute(u[c].name); return t.innerHTML }; if (null !== t && t.isLoaded) { var s = e.searchTrackPosition(t.entries, e.media.currentTime); if (-1 < s) { var i = t.entries[s].text;
12 return "function" == typeof e.options.captionTextPreprocessor && (i = e.options.captionTextPreprocessor(i)), e.captionsText.innerHTML = n(i), e.captionsText.className = e.options.classPrefix + "captions-text " + (t.entries[s].identifier || ""), e.captions.style.display = "", void (e.captions.style.height = "0px") } e.captions.style.display = "none" } else e.captions.style.display = "none" } }, setupSlides: function (e) { var n = this; n.slides = e, n.slides.entries.imgs = [n.slides.entries.length], n.showSlide(0) }, showSlide: function (e) { var n = this, s = this; if (void 0 !== s.tracks && void 0 !== s.slidesContainer) { var t = s.slides.entries[e].text, o = s.slides.entries[e].imgs; if (void 0 === o || void 0 === o.fadeIn) { var r = a.default.createElement("img"); r.src = t, r.addEventListener("load", function () { var e = n, t = (0, p.siblings)(e, function (e) { return t(e) }); e.style.display = "none", s.slidesContainer.innerHTML += e.innerHTML, (0, p.fadeIn)(s.slidesContainer.querySelector(r)); for (var a = 0, o = t.length; a < o; a++)(0, p.fadeOut)(t[a], 400) }), s.slides.entries[e].imgs = o = r } else if (!(0, p.visible)(o)) { var l = (0, p.siblings)(self, function (e) { return l(e) }); (0, p.fadeIn)(s.slidesContainer.querySelector(o)); for (var d = 0, u = l.length; d < u; d++)(0, p.fadeOut)(l[d]) } } }, displaySlides: function () { var e = this; if (void 0 !== this.slides) { var t = e.slides, n = e.searchTrackPosition(t.entries, e.media.currentTime); -1 < n && e.showSlide(n) } }, drawChapters: function (e) { var n = this, t = e.entries.length; if (t) { n.chaptersButton.querySelector("ul").innerHTML = ""; for (var a = 0; a < t; a++)n.chaptersButton.querySelector("ul").innerHTML += "<li class=\"" + n.options.classPrefix + "chapters-selector-list-item\" role=\"menuitemcheckbox\" aria-live=\"polite\" aria-disabled=\"false\" aria-checked=\"false\">" + ("<input type=\"radio\" class=\"" + n.options.classPrefix + "captions-selector-input\" ") + ("name=\"" + n.id + "_chapters\" id=\"" + n.id + "_chapters_" + a + "\" value=\"" + e.entries[a].start + "\" disabled>") + ("<label class=\"" + n.options.classPrefix + "chapters-selector-label\"") + ("for=\"" + n.id + "_chapters_" + a + "\">" + e.entries[a].text + "</label></li>"); for (var s = n.chaptersButton.querySelectorAll("input[type=\"radio\"]"), o = n.chaptersButton.querySelectorAll("." + n.options.classPrefix + "chapters-selector-label"), r = 0, l = s.length; r < void 0; r++)s[r].disabled = !1, s[r].checked = !1, s[r].addEventListener("click", function (t) { var e = this, i = n.chaptersButton.querySelectorAll("li"), a = (0, p.siblings)(e, function (e) { return (0, p.hasClass)(e, n.options.classPrefix + "chapters-selector-label") })[0]; e.checked = !0, e.parentNode.setAttribute("aria-checked", !0), (0, p.addClass)(a, n.options.classPrefix + "chapters-selected"), (0, p.removeClass)(n.chaptersButton.querySelector("." + n.options.classPrefix + "chapters-selected"), n.options.classPrefix + "chapters-selected"); for (var s = 0, o = i.length; s < o; s++)i[s].setAttribute("aria-checked", !1); var r = t.keyCode || t.which; "undefined" == typeof r && setTimeout(function () { n.getElement(n.container).focus() }, 500), n.media.setCurrentTime(parseFloat(e.value)), n.media.paused && n.media.play() }); for (var d = 0, u = o.length; d < u; d++)o[d].addEventListener("click", function (t) { var e = (0, p.siblings)(this, function (e) { return "INPUT" === e.tagName })[0], n = (0, m.createEvent)("click", e); e.dispatchEvent(n), t.preventDefault() }) } }, searchTrackPosition: function (e, t) { for (var n, i, a, s = 0, o = e.length - 1; s <= o;) { if (n = s + o >> 1, i = e[n].start, a = e[n].stop, t >= i && t < a) return n; i < t ? s = n + 1 : i > t && (o = n - 1) } return -1 } }), o.default.language = { codes: { af: "wpcp_mejs.afrikaans", sq: "wpcp_mejs.albanian", ar: "
12wpcp_mejs.arabic", be: "wpcp_mejs.belarusian", bg: "wpcp_mejs.bulgarian", ca: "wpcp_mejs.catalan", zh: "wpcp_mejs.chinese", "zh-cn": "wpcp_mejs.chinese-simplified", "zh-tw": "wpcp_mejs.chines-traditional", hr: "wpcp_mejs.croatian", cs: "wpcp_mejs.czech", da: "wpcp_mejs.danish", nl: "wpcp_mejs.dutch", en: "wpcp_mejs.english", et: "wpcp_mejs.estonian", fl: "wpcp_mejs.filipino", fi: "wpcp_mejs.finnish", fr: "wpcp_mejs.french", gl: "wpcp_mejs.galician", de: "wpcp_mejs.german", el: "wpcp_mejs.greek", ht: "wpcp_mejs.haitian-creole", iw: "wpcp_mejs.hebrew", hi: "wpcp_mejs.hindi", hu: "wpcp_mejs.hungarian", is: "wpcp_mejs.icelandic", id: "wpcp_mejs.indonesian", ga: "wpcp_mejs.irish", it: "wpcp_mejs.italian", ja: "wpcp_mejs.japanese", ko: "wpcp_mejs.korean", lv: "wpcp_mejs.latvian", lt: "wpcp_mejs.lithuanian", mk: "wpcp_mejs.macedonian", ms: "wpcp_mejs.malay", mt: "wpcp_mejs.maltese", no: "wpcp_mejs.norwegian", fa: "wpcp_mejs.persian", pl: "wpcp_mejs.polish", pt: "wpcp_mejs.portuguese", ro: "wpcp_mejs.romanian", ru: "wpcp_mejs.russian", sr: "wpcp_mejs.serbian", sk: "wpcp_mejs.slovak", sl: "wpcp_mejs.slovenian", es: "wpcp_mejs.spanish", sw: "wpcp_mejs.swahili", sv: "wpcp_mejs.swedish", tl: "wpcp_mejs.tagalog", th: "wpcp_mejs.thai", tr: "wpcp_mejs.turkish", uk: "wpcp_mejs.ukrainian", vi: "wpcp_mejs.vietnamese", cy: "wpcp_mejs.welsh", yi: "wpcp_mejs.yiddish" } }, o.default.TrackFormatParser = { webvtt: { pattern: /^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/, parse: function (e) { for (var t = e.split(/\r?\n/), n = [], a = void 0, s = void 0, o = void 0, r = 0, l = t.length; r < l; r++) { if (a = this.pattern.exec(t[r]), a && r < t.length) { for (0 <= r - 1 && "" !== t[r - 1] && (o = t[r - 1]), r++, s = t[r], r++; "" !== t[r] && r < t.length;)s = s + "\n" + t[r], r++; s = null === s ? "" : s.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, "<a href='$1' target='_blank'>$1</a>"), n.push({ identifier: o, start: 0 === (0, c.convertSMPTEtoSeconds)(a[1]) ? .2 : (0, c.convertSMPTEtoSeconds)(a[1]), stop: (0, c.convertSMPTEtoSeconds)(a[3]), text: s, settings: a[5] }) } o = "" } return n } }, dfxp: { parse: function (e) { var t = a.default.adoptNode(new DOMParser().parseFromString(e, "application/xml").documentElement), n = t.querySelector("div"), s = n.querySelectorAll("p"), o = a.default.getElementById(n.getAttribute("style")), r = [], l = void 0; if (o) { o.removeAttribute("id"); var d = o.attributes; if (d.length) { l = {}; for (var u = 0, m = d.length; u < m; u++)l[d[u].name.split(":")[1]] = d[u].value } } for (var p = 0, f = s.length; p < f; p++) { var h = void 0, g = { start: null, stop: null, style: null, text: null }; if (s[p].getAttribute("begin") && (g.start = (0, c.convertSMPTEtoSeconds)(s[p].getAttribute("begin"))), !g.start && s[p - 1].getAttribute("end") && (g.start = (0, c.convertSMPTEtoSeconds)(s[p - 1].getAttribute("end"))), s[p].getAttribute("end") && (g.stop = (0, c.convertSMPTEtoSeconds)(s[p].getAttribute("end"))), !g.stop && s[p + 1].getAttribute("begin") && (g.stop = (0, c.convertSMPTEtoSeconds)(s[p + 1].getAttribute("begin"))), l) for (var y in h = "", l) h += y + ": " + l[y] + ";"; h && (g.style = h), 0 === g.start && (g.start = .2), g.text = s[p].innerHTML.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_| !:, .; ]*[-A-Z0-9+&@#\/%=~_|])/ig, "<a href='$1' target='_blank'>$1</a>"), r.push(g) } return r } } } }, { 17: 17, 2: 2, 27: 27, 28: 28, 29: 29, 32: 32, 6: 6, 8: 8 }], 15: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(2), i = t(n), a = e(17), s = t(a), o = e(6), r = t(o), l = e(26), d = e(28), u = e(27), c = e(29); Object.assign(a.config, { muteText: null, unmuteText: null, allyVolumeControlText: null, hideVolumeOnTouchDevices: !0, audioVolume: "horizontal", videoVolume: "vertical", startVolume: .8 }), Object.assign(s.default.prototype, { buildvolume: function (e, n, a, s) { if (!((l.IS_ANDROID || l.IS_IOS) && this.options.hideVolumeOnTouchDevices)) { var o = this, t = o.isVideo ? o.options.videoVolume : o.options.audioVolume, m = (0, d.isString)(o.options.muteText) ? o.options.muteText : r.default.t("wpcp_mejs.mute"), p = (0, d.isString)(o.options.unmuteText) ? o.options.unmuteText : r.default.t("wpcp_mejs.unmute"), f = (0, d.isString)(o.options.allyVolumeControlText) ? o.options.allyVolumeControlText : r.default.t("wpcp_mejs.volume-help-text"), h = i.default.createElement("div"); if (h.className = o.options.classPrefix + "button " + o.options.classPrefix + "volume-button " + o.options.classPrefix + "mute", h.innerHTML = "horizontal" === t ? (0, c.generateControlButton)(o.id, m, m, "" + o.media.options.iconS
vendor: 10,460 bytes, line 12
12prite, ["icon-mute", "icon-unmute"], "" + o.options.classPrefix, "", o.options.classPrefix + "horizontal-volume-slider") : (0, c.generateControlButton)(o.id, m, m, "" + o.media.options.iconSprite, ["icon-mute", "icon-unmute"], "" + o.options.classPrefix, "", o.options.classPrefix + "volume-slider") + ("<a class=\"" + o.options.classPrefix + "volume-slider\" ") + ("aria-label=\"" + r.default.t("wpcp_mejs.volume-slider") + "\" aria-valuemin=\"0\" aria-valuemax=\"100\" role=\"slider\" aria-orientation=\"vertical\">") + ("<span class=\"" + o.options.classPrefix + "offscreen\" id=\"" + o.options.classPrefix + "volume-slider\">" + f + "</span>") + ("<div class=\"" + o.options.classPrefix + "volume-total\">") + ("<div class=\"" + o.options.classPrefix + "volume-current\"></div>") + ("<div class=\"" + o.options.classPrefix + "volume-handle\"></div></div></a>"), o.addControlElement(h, "volume"), o.options.keyActions.push({ keys: [38], action: function (e) { var t = e.getElement(e.container).querySelector("." + o.options.classPrefix + "volume-slider"); t && t.matches(":focus") && (t.style.display = "block"), e.isVideo && (e.showControls(), e.startControlsTimer()); var n = Math.min(e.volume + .1, 1); e.setVolume(n), 0 < n && e.setMuted(!1) } }, { keys: [40], action: function (e) { var t = e.getElement(e.container).querySelector("." + o.options.classPrefix + "volume-slider"); t && (t.style.display = "block"), e.isVideo && (e.showControls(), e.startControlsTimer()); var n = Math.max(e.volume - .1, 0); e.setVolume(n), .1 >= n && e.setMuted(!0) } }, { keys: [77], action: function (e) { var t = e.getElement(e.container).querySelector("." + o.options.classPrefix + "volume-slider"); t && (t.style.display = "block"), e.isVideo && (e.showControls(), e.startControlsTimer()), e.media.muted ? e.setMuted(!1) : e.setMuted(!0) } }), "horizontal" === t) { var g = i.default.createElement("a"); g.className = o.options.classPrefix + "horizontal-volume-slider", g.setAttribute("aria-label", r.default.t("wpcp_mejs.volume-slider")), g.setAttribute("aria-valuemin", 0), g.setAttribute("aria-valuemax", 100), g.setAttribute("aria-valuenow", 100), g.setAttribute("role", "slider"), g.innerHTML += "<span class=\"" + o.options.classPrefix + "offscreen\" id=\"" + o.options.classPrefix + "horizontal-volume-slider\">" + f + "</span>" + ("<div class=\"" + o.options.classPrefix + "horizontal-volume-total\">") + ("<div class=\"" + o.options.classPrefix + "horizontal-volume-current\"></div>") + ("<div class=\"" + o.options.classPrefix + "horizontal-volume-handle\"></div></div>"), h.parentNode.insertBefore(g, h.nextSibling) } var y = !1, v = !1, E = !1, b = function () { var e = Math.floor(100 * s.volume); S.setAttribute("aria-valuenow", e), S.setAttribute("aria-valuetext", e + "%") }, S = "vertical" === t ? o.getElement(o.container).querySelector("." + o.options.classPrefix + "volume-slider") : o.getElement(o.container).querySelector("." + o.options.classPrefix + "horizontal-volume-slider"), x = "vertical" === t ? o.getElement(o.container).querySelector("." + o.options.classPrefix + "volume-total") : o.getElement(o.container).querySelector("." + o.options.classPrefix + "horizontal-volume-total"), P = "vertical" === t ? o.getElement(o.container).querySelector("." + o.options.classPrefix + "volume-current") : o.getElement(o.container).querySelector("." + o.options.classPrefix + "horizontal-volume-current"), _ = "vertical" === t ? o.getElement(o.container).querySelector("." + o.options.classPrefix + "volume-handle") : o.getElement(o.container).querySelector("." + o.options.classPrefix + "horizontal-volume-handle"), C = function (e) { if (!(null === e || isNaN(e) || void 0 === e)) { if (e = Math.max(0, e), e = Math.min(e, 1), 0 === e) { (0, u.removeClass)(h, o.options.classPrefix + "mute"), (0, u.addClass)(h, o.options.classPrefix + "unmute"); var n = h.firstElementChild; n.setAttribute("title", p), n.setAttribute("aria-label", p) } else { (0, u.removeClass)(h, o.options.classPrefix + "unmute"), (0, u.addClass)(h, o.options.classPrefix + "mute"); var i = h.firstElementChild; i.setAttribute("title", m), i.setAttribute("aria-label", m) } var a = 100 * e + "%", s = getComputedStyle(_); "vertical" === t ? (P.style.bottom = 0, P.style.height = a, _.style.bottom = a, _.style.marginBottom = -parseFloat(s.height) / 2 + "px") : (P.style.left = 0, P.style.width = a, _.style.left = a, _.style.marginLeft = -parseFloat(s.width) / 2 + "px") } }, T = function (n) { var e = (0, u.offset)(x), i = getComputedStyle(x); E = !0; var a = null; if ("vertical" === t) { var s = parseFloat(i.height), r = n.pageY - e.top; if (a = (s - r) / s, 0 === e.top || 0 === e.left) return } else { var l = parseFloat(i.width), d = n.pageX - e.left; a = d / l } a = Math.max(0, a), a = Math.min(a, 1), C(a), o.setMuted(0 === a), o.setVolume(a), n.preventDefault(), n.stopPropagation() }, k = function () { o.muted ? (C(0), (0, u.removeClass)(h, o.options.classPrefix + "mute"), (0, u.addClass)(h, o.options.classPrefix + "unmute")) : (C(s.volume), (0, u.removeClass)(h, o.options.classPrefix + "unmute"), (0, u.addClass)(h, o.options.classPrefix + "mute")) }; e.getElement(e.container).addEventListener("keydown", function (n) { var e = !!n.target.closest("." + o.options.classPrefix + "container"); e || "vertical" !== t || (S.style.display = "none") }), h.addEventListener("mouseenter", function (t) { t.target === h && (S.style.display = "block", v = !0, t.preventDefault(), t.stopPropagation()) }), h.addEventListener("focusin", function () { S.style.display = "block", v = !0 }), h.addEventListener("focusout", function (n) { n.relatedTarget && (!n.relatedTarget || n.relatedTarget.matches("." + o.options.classPrefix + "volume-slider")) || "vertical" !== t || (S.style.display = "none") }), h.addEventListener("mouseleave", function () { v = !1, y || "vertical" !== t || (S.style.display = "none") }), h.addEventListener("focusout", function () { v = !1 }), h.addEventListener("keydown", function (t) { if (o.options.enableKeyboard && o.options.keyActions.length) { var e = t.which || t.keyCode || 0, n = s.volume; switch (e) { case 38: n = Math.min(n + .1, 1); break; case 40: n = Math.max(0, n - .1); break; default: return !0; }y = !1, C(n), s.setVolume(n), t.preventDefault(), t.stopPropagation() } }), h.querySelector("button").addEventListener("click", function () { s.setMuted(!s.muted); var e = (0, d.createEvent)("volumechange", s); s.dispatchEvent(e) }), S.addEventListener("dragstart", function () { return !1 }), S.addEventListener("mouseover", function () { v = !0 }), S.addEventListener("focusin", function () { S.style.display = "block", v = !0 }), S.addEventListener("focusout", function () { v = !1, y || "vertical" !== t || (S.style.display = "none") }), S.addEventListener("mousedown", function (n) { T(n), o.globalBind("mousemove.vol", function (e) { var n = e.target; y && (n === S || n.closest("vertical" === t ? "." + o.options.classPrefix + "volume-slider" : "." + o.options.classPrefix + "horizontal-volume-slider")) && T(e) }), o.globalBind("mouseup.vol", function () { y = !1, v || "vertical" !== t || (S.style.display = "none") }), y = !0, n.preventDefault(), n.stopPropagation() }), s.addEventListener("volumechange", function (t) { y || k(), b(t) }); var w = !1; s.addEventListener("rendererready", function () { E || setTimeout(function () { w = !0, (0 === e.options.startVolume || s.originalNode.muted) && s.setMuted(!0), s.setVolume(e.options.startVolume), o.setControlsSize() }, 250) }), s.addEventListener("loadedmetadata", function () { setTimeout(function () { E || w || ((0 === e.options.startVolume || s.originalNode.muted) && s.setMuted(!0), 0 === e.options.startVolume && (e.options.startVolume = 0), s.setVolume(e.options.startVolume), o.setControlsSize()), w = !1 }, 250) }), (0 === e.options.startVolume || s.originalNode.muted) && (s.setMuted(!0), 0 === e.options.startVolume && (e.options.startVolume = 0), k()), o.getElement(o.container).addEventListener("controlsresize", function () { k() }) } } }) }, { 17: 17, 2: 2, 26: 26, 27: 27, 28: 28, 29: 29, 6: 6 }], 16: [function (e, t, n) { 'use strict'; Object.defineProperty(n, "__esModule", { value: !0 }); n.EN = { "wpcp_mejs.plural-form": 1, "wpcp_mejs.download-file": "Download File", "wpcp_mejs.install-flash": "You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/", "wpcp_mejs.fullscreen": "Fullscreen", "wpcp_mejs.play": "Play", "wpcp_mejs.pause": "Pause", "wpcp_mejs.time-slider": "Time Slider", "wpcp_mejs.time-help-text": "Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.", "wpcp_mejs.live-broadcast": "Live Broadcast", "wpcp_mejs.volume-help-text": "Use Up/Down Arrow keys to increase or decrease volume.", "wpcp_mejs.unmute": "Unmute", "wpcp_mejs.mute": "Mute", "wpcp_mejs.volume-slider": "Volume Slider", "wpcp_mejs.video-player": "Video Player", "wpcp_mejs.audio-player": "Audio Player", "wpcp_mejs.captions-subtitles": "Captions/Subtitles", "wpcp_mejs.captions-chapters": "Chapters", "wpcp_mejs.none": "None", "wpcp_mejs.afrikaans": "Afrikaans", "wpcp_mejs.albanian": "Albanian", "wpcp_mejs.arabic": "Arabic", "wpcp_mejs.belarusian": "Belarusian", "wpcp_mejs.bulgarian": "Bulgarian", "wpcp_mejs.catalan": "Catalan", "wpcp_mejs.chinese": "Chinese", "wpcp_mejs.chinese-simplified": "Chinese (Simplified)", "wpcp_mejs.chinese-traditional": "Chinese (Traditional)", "wpcp_mejs.croatian": "Croatian", "wpcp_mejs.czech": "Czech", "wpcp_mejs.danish": "Danish", "wpcp_mejs.dutch": "Dutch", "wpcp_mejs.english": "English", "wpcp_mejs.estonian": "Estonian", "wpcp_mejs.filipino": "Filipino", "wpcp_mejs.finnish": "Finnish", "wpcp_mejs.french": "French", "wpcp_mejs.galician": "Galician", "wpcp_mejs.german": "German", "wpcp_mejs.greek": "Greek", "wpcp_mejs.haitian-creole": "Haitian Creole", "wpcp_mejs.hebrew": "Hebrew", "wpcp_mejs.hindi": "Hindi", "wpcp_mejs.hungarian": "Hungarian", "wpcp_mejs.icelandic": "Icelandic", "wpcp_mejs.indonesian": "Indonesian", "wpcp_mejs.irish": "Irish", "wpcp_mejs.italian": "Italian", "wpcp_mejs.japanese": "Japanese", "wpcp_mejs.korean": "Korean", "wpcp_mejs.latvian": "Latvian", "wpcp_mejs.lithuanian": "Lithuanian", "wpcp_mejs.macedonian": "Macedonian", "wpcp_mejs.malay": "Malay", "wpcp_mejs.maltese": "Maltese", "wpcp_mejs.norwegian": "Norweg
12ian", "wpcp_mejs.persian": "Persian", "wpcp_mejs.polish": "Polish", "wpcp_mejs.portuguese": "Portuguese", "wpcp_mejs.romanian": "Romanian", "wpcp_mejs.russian": "Russian", "wpcp_mejs.serbian": "Serbian", "wpcp_mejs.slovak": "Slovak", "wpcp_mejs.slovenian": "Slovenian", "wpcp_mejs.spanish": "Spanish", "wpcp_mejs.swahili": "Swahili", "wpcp_mejs.swedish": "Swedish", "wpcp_mejs.tagalog": "Tagalog", "wpcp_mejs.thai": "Thai", "wpcp_mejs.turkish": "Turkish", "wpcp_mejs.ukrainian": "Ukrainian", "wpcp_mejs.vietnamese": "Vietnamese", "wpcp_mejs.welsh": "Welsh", "wpcp_mejs.yiddish": "Yiddish" } }, {}], 17: [function (e, t, n) { 'use strict'; function i(e) { return e && e.__esModule ? e : { default: e } } function a(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } Object.defineProperty(n, "__esModule", { value: !0 }), n.config = void 0; var s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, o = function () { function e(e, t) { for (var n, a = 0; a < t.length; a++)n = t[a], n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n) } return function (t, n, i) { return n && e(t.prototype, n), i && e(t, i), t } }(), r = e(3), l = i(r), d = e(2), u = i(d), c = e(8), m = i(c), p = e(7), f = i(p), h = e(18), g = i(h), y = e(6), v = i(y), E = e(26), b = e(28), S = e(32), x = e(30), P = e(27), _ = function (e) { if (e && e.__esModule) return e; var t = {}; if (null != e) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return t.default = e, t }(P), C = e(29); m.default.mepIndex = 0, m.default.players = {}; var T = n.config = { poster: "", showPosterWhenEnded: !1, showPosterWhenPaused: !1, defaultVideoWidth: 480, defaultVideoHeight: 270, videoWidth: -1, videoHeight: -1, defaultAudioWidth: 400, defaultAudioHeight: 40, defaultSeekBackwardInterval: function (e) { return .05 * e.getDuration() }, defaultSeekForwardInterval: function (e) { return .05 * e.getDuration() }, setDimensions: !0, audioWidth: -1, audioHeight: -1, loop: !1, autoRewind: !0, enableAutosize: !0, timeFormat: "", alwaysShowHours: !1, showTimecodeFrameCount: !1, framesPerSecond: 25, alwaysShowControls: !1, hideVideoControlsOnLoad: !1, hideVideoControlsOnPause: !1, clickToPlayPause: !0, controlsTimeoutDefault: 1500, controlsTimeoutMouseEnter: 2500, controlsTimeoutMouseLeave: 1e3, iPadUseNativeControls: !1, iPhoneUseNativeControls: !1, AndroidUseNativeControls: !1, features: ["playpause", "current", "progress", "duration", "tracks", "volume", "fullscreen"], useDefaultControls: !1, isVideo: !0, stretching: "auto", classPrefix: "wpcp_mejs__", enableKeyboard: !0, pauseOtherPlayers: !0, secondsDecimalLength: 0, customError: null, keyActions: [], hideScreenReaderTitle: !1 }; m.default.MepDefaults = T; var k = function () { function e(n, i) { a(this, e); var s = this, t = "string" == typeof n ? u.default.getElementById(n) : n; if (!(s instanceof e)) return new e(t, i); if (s.node = s.media = t, !!s.node) { if (s.media.player) return s.media.player; if (s.hasFocus = !1, s.controlsAreVisible = !0, s.controlsEnabled = !0, s.controlsTimer = null, s.currentMediaTime = 0, s.proxy = null, void 0 === i) { var r = s.node.getAttribute("data-wpcp_mejsoptions"); i = r ? JSON.parse(r) : {} } return s.options = Object.assign({}, T, i), s.options.loop && !s.media.getAttribute("loop") ? (s.media.loop = !0, s.node.loop = !0) : s.media.loop && (s.options.loop = !0), s.options.timeFormat || (s.options.timeFormat = "mm:ss", s.options.alwaysShowHours && (s.options.timeFormat = "hh:mm:ss"), s.options.showTimecodeFrameCount && (s.options.timeFormat += ":ff")), (0, S.calculateTimeFormat)(0, s.options, s.options.framesPerSecond || 25), s.id = "mep_" + m.default.mepIndex++, m.default.players[s.id] = s, s.init(), s } } return o(e, [{ key: "getElement", value: function (e) { return e } }, { key: "init", value: function () { var n = this, e = Object.assign({}, n.options, { success: function (e, t) { n._meReady(e, t) }, error: function (t) { n._handleError(t) } }), t = n.node.tagName.toLowerCase(); if (n.isDynamic = "audio" !== t && "video" !== t && "iframe" !== t, n.isVideo = n.isDynamic ? n.options.isVideo : "audio" !== t && n.options.isVideo, n.mediaFiles = null, n.trackFiles = null, E.IS_IPAD && n.options.iPadUseNativeControls || E.IS_IPHONE && n.options.iPhoneUseNativeControls) n.node.setAttribute("controls", !0), E.IS_IPAD && n.node.getAttribute("autoplay") && n.play(); else if ((n.isVideo || !n.isVideo && (n.options.features.length || n.options.useDefaultControls)) && !(E.IS_ANDROID && n.options.AndroidUseNativeControls)) { n.node.removeAttribute("controls"); var i = n.isVideo ? v.default.t("wpcp_mejs.video-player") : v.default.t("wpcp_mejs.audio-player"); if (!n.options.hideScreenReaderTitle) { var a = u.default.createElement("span"); a.className = n.options.classPrefix + "offscreen", a.innerText = i, n.media.parentNode.insertBefore(a, n.media) } if (n.container = u.default.createElement("div"), n.getElement(n.container).id = n.id, n.getElement(n.container).className = n.options.classPrefix + "container " + n.options.classPrefix + "container-keyboard-inactive " + n.media.className, n.getElement(n.container).tabIndex = 0, n.getElement(n.container).setAttribute("role", "application"), n.getElement(n.container).setAttribute("aria-label", i), n.getElement(n.container).innerHTML = "<div class=\"" + n.options.classPrefix + "inner\">" + ("<div class=\"" + n.options.classPrefix + "mediaelement\"></div>") + ("<div class=\"" + n.options.classPrefix + "layers\"></div>") + ("<div class=\"" + n.options.classPrefix + "controls\"></div></div>"), n.getElement(n.container).addEventListener("focus", function (t) { if (!n.controlsAreVisible && !n.hasFocus && n.controlsEnabled) { n.showControls(!0); var e = (0, b.isNodeAfter)(t.relatedTarget, n.getElement(n.container)) ? "." + n.options.classPrefix + "controls ." + n.options.classPrefix + "button:last-child > button" : "." + n.options.classPrefix + "playpause-button > button", i = n.getElement(n.container).querySelector(e); i.focus() } }), n.node.parentNode.insertBefore(n.getElement(n.container), n.node), n.options.features.length || n.options.useDefaultControls || (n.getElement(n.container).style.background = "transparent", n.getElement(n.container).querySelector("." + n.options.classPrefix + "controls").style.display = "none"), n.isVideo && "fill" === n.options.stretching && !_.hasClass(n.getElement(n.container).parentNode, n.options.classPrefix + "fill-container")) { n.outerContainer = n.media.parentNode; var s = u.default.createElement("div"); s.className = n.options.classPrefix + "fill-container", n.getElement(n.container).parentNode.insertBefore(s, n.getElement(n.container)), s.appendChild(n.getElement(n.container)) } E.IS_ANDROID && _.addClass(n.getElement(n.container), n.options.classPrefix + "android"), E.IS_IOS && _.addClass(n.getElement(n.container), n.options.classPrefix + "ios"), E.IS_IPAD && _.addClass(n.getElement(n.container), n.options.classPrefix + "ipad"), E.IS_IPHONE && _.addClass(n.getElement(n.container), n.options.classPrefix + "iphone"), _.addClass(n.getElement(n.container), n.isVideo ? n.options.classPrefix + "video" : n.options.classPrefix + "audio"), n.getElement(n.container).querySelector("." + n.options.classPrefix + "mediaelement").appendChild(n.node), n.media.player = n, n.controls = n.getElement(n.container).querySelector("." + n.options.classPrefix + "controls"), n.layers = n.getElement(n.container).querySelector("." + n.options.classPrefix + "layers"); var o = n.isVideo ? "video" : "audio", r = o.substring(0, 1).toUpperCase() + o.substring(1); n.width = 0 < n.options[o + "Width"] || -1 < n.options[o + "Width"].toString().indexOf("%") ? n.options[o + "Width"] : "" !== n.node.style.width && null !== n.node.style.width ? n.node.style.width : n.node.getAttribute("width") ? n.node.getAttribute("width") : n.options["default" + r + "Width"], n.height = 0 < n.options[o + "Height"] || -1 < n.options[o + "Height"].toString().indexOf("%") ? n.options[o + "Height"] : "" !== n.node.style.height && null !== n.node.style.height ? n.node.style.height : n.node.getAttribute("height") ? n.node.getAttribute("height") : n.options["default" + r + "Height"], n.initialAspectRatio = n.height >= n.width ? n.width / n.height : n.height / n.width, n.setPlayerSize(n.width, n.height), e.pluginWidth = n.width, e.pluginHeight = n.height } else n.isVideo || n.options.features.length || n.options.useDefaultControls || (n.node.style.display = "none"); if (m.default.MepDefaults = e, new f.default(n.media, e, n.mediaFiles), void 0 !== n.getElement(n.container) && n.options.features.length && n.controlsAreVisible && !n.options.hideVideoControlsOnLoad) { var l = (0, b.createEvent)("c
12ontrolsshown", n.getElement(n.container)); n.getElement(n.container).dispatchEvent(l) } } }, { key: "showControls", value: function (e) { var n = this; if (e = void 0 === e || e, !n.controlsAreVisible && n.isVideo) { if (e) (function () { _.fadeIn(n.getElement(n.controls), 200, function () { _.removeClass(n.getElement(n.controls), n.options.classPrefix + "offscreen"); var e = (0, b.createEvent)("controlsshown", n.getElement(n.container)); n.getElement(n.container).dispatchEvent(e) }); for (var e = n.getElement(n.container).querySelectorAll("." + n.options.classPrefix + "control"), t = function (t) { _.fadeIn(e[t], 200, function () { _.removeClass(e[t], n.options.classPrefix + "offscreen") }) }, a = 0, s = e.length; a < s; a++)t(a, s) })(); else { _.removeClass(n.getElement(n.controls), n.options.classPrefix + "offscreen"), n.getElement(n.controls).style.display = "", n.getElement(n.controls).style.opacity = 1; for (var t = n.getElement(n.container).querySelectorAll("." + n.options.classPrefix + "control"), a = 0, s = t.length; a < s; a++)_.removeClass(t[a], n.options.classPrefix + "offscreen"), t[a].style.display = ""; var o = (0, b.createEvent)("controlsshown", n.getElement(n.container)); n.getElement(n.container).dispatchEvent(o) } n.controlsAreVisible = !0, n.setControlsSize() } } }, { key: "hideControls", value: function (e, n) { var a = this; if (e = void 0 === e || e, !(!0 !== n && (!a.controlsAreVisible || a.options.alwaysShowControls || a.paused && 4 === a.readyState && (!a.options.hideVideoControlsOnLoad && 0 >= a.currentTime || !a.options.hideVideoControlsOnPause && 0 < a.currentTime) || a.isVideo && !a.options.hideVideoControlsOnLoad && !a.readyState || a.ended))) { if (e) (function () { _.fadeOut(a.getElement(a.controls), 200, function () { _.addClass(a.getElement(a.controls), a.options.classPrefix + "offscreen"), a.getElement(a.controls).style.display = ""; var e = (0, b.createEvent)("controlshidden", a.getElement(a.container)); a.getElement(a.container).dispatchEvent(e) }); for (var e = a.getElement(a.container).querySelectorAll("." + a.options.classPrefix + "control"), t = function (t) { _.fadeOut(e[t], 200, function () { _.addClass(e[t], a.options.classPrefix + "offscreen"), e[t].style.display = "" }) }, n = 0, s = e.length; n < s; n++)t(n, s) })(); else { _.addClass(a.getElement(a.controls), a.options.classPrefix + "offscreen"), a.getElement(a.controls).style.display = "", a.getElement(a.controls).style.opacity = 0; for (var t = a.getElement(a.container).querySelectorAll("." + a.options.classPrefix + "control"), s = 0, o = t.length; s < o; s++)_.addClass(t[s], a.options.classPrefix + "offscreen"), t[s].style.display = ""; var r = (0, b.createEvent)("controlshidden", a.getElement(a.container)); a.getElement(a.container).dispatchEvent(r) } a.controlsAreVisible = !1 } } }, { key: "startControlsTimer", value: function (e) { var n = this; e = "undefined" == typeof e ? n.options.controlsTimeoutDefault : e, n.killControlsTimer("start"), n.controlsTimer = setTimeout(function () { n.hideControls(), n.killControlsTimer("hide") }, e) } }, { key: "killControlsTimer", value: function () { var e = this; null !== e.controlsTimer && (clearTimeout(e.controlsTimer), delete e.controlsTimer, e.controlsTimer = null) } }, { key: "disableControls", value: function () { var e = this; e.killControlsTimer(), e.controlsEnabled = !1, e.hideControls(!1, !0) } }, { key: "enableControls", value: function () { var e = this; e.controlsEnabled = !0, e.showControls(!1) } }, { key: "_setDefaultPlayer", value: function () { var e = this; e.proxy && e.proxy.pause(), e.proxy = new g.default(e), e.media.addEventListener("loadedmetadata", function () { 0 < e.getCurrentTime() && 0 < e.currentMediaTime && (e.setCurrentTime(e.currentMediaTime), !E.IS_IOS && !E.IS_ANDROID && e.play()) }) } }, { key: "_meReady", value: function (e, n) { var i = this, t = n.getAttribute("autoplay"), a = void 0 !== t && null !== t && "false" !== t, s = null !== e.rendererN
vendor: 6,339 bytes, line 12
12ame && /(native|html5)/i.test(e.rendererName); if (i.getElement(i.controls) && i.enableControls(), i.getElement(i.container) && i.getElement(i.container).querySelector("." + i.options.classPrefix + "overlay-play") && (i.getElement(i.container).querySelector("." + i.options.classPrefix + "overlay-play").style.display = ""), !i.created) { if (i.created = !0, i.media = e, i.domNode = n, !(E.IS_ANDROID && i.options.AndroidUseNativeControls) && !(E.IS_IPAD && i.options.iPadUseNativeControls) && !(E.IS_IPHONE && i.options.iPhoneUseNativeControls)) { if (!i.isVideo && !i.options.features.length && !i.options.useDefaultControls) return a && s && i.play(), void (i.options.success && ("string" == typeof i.options.success ? l.default[i.options.success](i.media, i.domNode, i) : i.options.success(i.media, i.domNode, i))); if (i.featurePosition = {}, i._setDefaultPlayer(), i.buildposter(i, i.getElement(i.controls), i.getElement(i.layers), i.media), i.buildkeyboard(i, i.getElement(i.controls), i.getElement(i.layers), i.media), i.buildoverlays(i, i.getElement(i.controls), i.getElement(i.layers), i.media), i.options.useDefaultControls) { var o = ["playpause", "current", "progress", "duration", "tracks", "volume", "fullscreen"]; i.options.features = o.concat(i.options.features.filter(function (e) { return -1 === o.indexOf(e) })) } i.buildfeatures(i, i.getElement(i.controls), i.getElement(i.layers), i.media); var r = (0, b.createEvent)("controlsready", i.getElement(i.container)); i.getElement(i.container).dispatchEvent(r), i.setPlayerSize(i.width, i.height), i.setControlsSize(), i.isVideo && (i.clickToPlayPauseCallback = function () { if (i.options.clickToPlayPause) { var e = i.getElement(i.container).querySelector("." + i.options.classPrefix + "overlay-button"), t = e.getAttribute("aria-pressed"); i.paused && t ? i.pause() : i.paused ? i.play() : i.pause(), e.setAttribute("aria-pressed", !t), i.getElement(i.container).focus() } }, i.createIframeLayer(), i.media.addEventListener("click", i.clickToPlayPauseCallback), (E.IS_ANDROID || E.IS_IOS) && !i.options.alwaysShowControls ? i.node.addEventListener("touchstart", function () { i.controlsAreVisible ? i.hideControls(!1) : i.controlsEnabled && i.showControls(!1) }, !!E.SUPPORT_PASSIVE_EVENT && { passive: !0 }) : (i.getElement(i.container).addEventListener("mouseenter", function () { i.controlsEnabled && !i.options.alwaysShowControls && (i.killControlsTimer("enter"), i.showControls(), i.startControlsTimer(i.options.controlsTimeoutMouseEnter)) }), i.getElement(i.container).addEventListener("mousemove", function () { i.controlsEnabled && (!i.controlsAreVisible && i.showControls(), !i.options.alwaysShowControls && i.startControlsTimer(i.options.controlsTimeoutMouseEnter)) }), i.getElement(i.container).addEventListener("mouseleave", function () { !i.controlsEnabled || i.paused || i.options.alwaysShowControls || i.startControlsTimer(i.options.controlsTimeoutMouseLeave) })), i.options.hideVideoControlsOnLoad && i.hideControls(!1), i.options.enableAutosize && i.media.addEventListener("loadedmetadata", function (t) { var e = void 0 === t ? i.media : t.detail.target || t.target; !(0 >= i.options.videoHeight) || i.domNode.getAttribute("height") || i.domNode.style.height || null === e || isNaN(e.videoHeight) || (i.setPlayerSize(e.videoWidth, e.videoHeight), i.setControlsSize(), i.media.setSize(e.videoWidth, e.videoHeight)) })), i.media.addEventListener("play", function () { for (var e in i.hasFocus = !0, m.default.players) if (m.default.players.hasOwnProperty(e)) { var t = m.default.players[e]; t.id === i.id || !i.options.pauseOtherPlayers || t.paused || t.ended || !0 === t.options.ignorePauseOtherPlayersOption || (t.pause(), t.hasFocus = !1) } E.IS_ANDROID || E.IS_IOS || i.options.alwaysShowControls || !i.isVideo || i.hideControls() }), i.media.addEventListener("ended", function () { if (i.options.autoRewind) try { i.setCurrentTime(0), setTimeout(function () { var e = i.getElement(i.container).querySelector("." + i.options.classPrefix + "overlay-loading"); e && e.parentNode && (e.parentNode.style.display = "none") }, 20) } catch (e) { } "function" == typeof i.media.renderer.stop ? i.media.renderer.stop() : i.pause(), i.setProgressRail && i.setProgressRail(), i.setCurrentRail && i.setCurrentRail(), i.options.loop ? i.play() : !i.options.alwaysShowControls && i.controlsEnabled && i.showControls() }), i.media.addEventListener("loadedmetadata", function () { (0, S.calculateTimeFormat)(i.getDuration(), i.options, i.options.framesPerSecond || 25), i.updateDuration && i.updateDuration(), i.updateCurrent && i.updateCurrent(), i.isFullScreen || (i.setPlayerSize(i.width, i.height), i.setControlsSize()) }); var d = null; i.media.addEventListener("timeupdate", function () { isNaN(i.getDuration()) || d === i.getDuration() || (d = i.getDuration(), (0, S.calculateTimeFormat)(d, i.options, i.options.framesPerSecond || 25), i.updateDuration && i.updateDuration(), i.updateCurrent && i.updateCurrent(), i.setControlsSize()) }), i.getElement(i.container).addEventListener("click", function (t) { _.addClass(t.currentTarget, i.options.classPrefix + "container-keyboard-inactive") }), i.getElement(i.container).addEventListener("focusin", function (t) { _.removeClass(t.currentTarget, i.options.classPrefix + "container-keyboard-inactive"), !i.isVideo || E.IS_ANDROID || E.IS_IOS || !i.controlsEnabled || i.options.alwaysShowControls || (i.killControlsTimer("enter"), i.showControls(), i.startControlsTimer(i.options.controlsTimeoutMouseEnter)) }), i.getElement(i.container).addEventListener("focusout", function (t) { setTimeout(function () { t.relatedTarget && i.keyboardAction && !t.relatedTarget.closest("." + i.options.classPrefix + "container") && (i.keyboardAction = !1, i.isVideo && !i.options.alwaysShowControls && !i.paused && i.startControlsTimer(i.options.controlsTimeoutMouseLeave)) }, 0) }), setTimeout(function () { i.setPlayerSize(i.width, i.height), i.setControlsSize() }, 0), i.globalResizeCallback = function () { i.isFullScreen || E.HAS_TRUE_NATIVE_FULLSCREEN && u.default.webkitIsFullScreen || i.setPlayerSize(i.width, i.height), i.setControlsSize() }, i.globalBind("resize", i.globalResizeCallback) } a && s && i.play(), i.options.success && ("string" == typeof i.options.success ? l.default[i.options.success](i.media, i.domNo
12de, i) : i.options.success(i.media, i.domNode, i)) } } }, { key: "_handleError", value: function (n, e, a) { var s = this, t = s.getElement(s.layers).querySelector("." + s.options.classPrefix + "overlay-play"); t && (t.style.display = "none"), s.options.error && s.options.error(n, e, a), s.getElement(s.container).querySelector("." + s.options.classPrefix + "cannotplay") && s.getElement(s.container).querySelector("." + s.options.classPrefix + "cannotplay").remove(); var o = u.default.createElement("div"); o.className = s.options.classPrefix + "cannotplay", o.style.width = "100%", o.style.height = "100%"; var r = "function" == typeof s.options.customError ? s.options.customError(s.media, s.media.originalNode) : s.options.customError, l = ""; if (!r) { var d = s.media.originalNode.getAttribute("poster"); if (d && (l = "<img src=\"" + d + "\" alt=\"" + m.default.i18n.t("wpcp_mejs.download-file") + "\">"), n.message && (r = "<p>" + n.message + "</p>"), n.urls) for (var c, p = 0, f = n.urls.length; p < f; p++)c = n.urls[p], r += "<a href=\"" + c.src + "\" data-type=\"" + c.type + "\"><span>" + m.default.i18n.t("wpcp_mejs.download-file") + ": " + c.src + "</span></a>" } r && s.getElement(s.layers).querySelector("." + s.options.classPrefix + "overlay-error") && (o.innerHTML = r, s.getElement(s.layers).querySelector("." + s.options.classPrefix + "overlay-error").innerHTML = "" + l + o.outerHTML, s.getElement(s.layers).querySelector("." + s.options.classPrefix + "overlay-error").parentNode.style.display = "block"), s.controlsEnabled && s.disableControls() } }, { key: "setPlayerSize", value: function (e, n) { var i = this; if (!i.options.setDimensions) return !1; switch ("undefined" != typeof e && (i.width = e), "undefined" != typeof n && (i.height = n), i.options.stretching) { case "fill": i.isVideo ? i.setFillMode() : i.setDimensions(i.width, i.height); break; case "responsive": i.setResponsiveMode(); break; case "none": i.setDimensions(i.width, i.height); break; default: !0 === i.hasFluidMode() ? i.setResponsiveMode() : i.setDimensions(i.width, i.height); } } }, { key: "hasFluidMode", value: function () { var e = this; return -1 !== e.height.toString().indexOf("%") || e.node && e.node.style.maxWidth && "none" !== e.node.style.maxWidth && e.node.style.maxWidth !== e.width || e.node && e.node.currentStyle && "100%" === e.node.currentStyle.maxWidth } }, { key: "setResponsiveMode", value: function () { var e = this, t = function () { for (var t, n = e.getElement(e.container); n;) { try { if (E.IS_FIREFOX && "html" === n.tagName.toLowerCase() && l.default.self !== l.default.top && null !== l.default.frameElement) return l.default.frameElement; t = n.parentElement } catch (i) { t = n.parentElement } if (t && _.visible(t)) return t; n = t } return null }(), n = t ? getComputedStyle(t, null) : getComputedStyle(u.default.body, null), a = function () { return e.isVideo ? e.node.videoWidth && 0 < e.node.videoWidth ? e.node.videoWidth : e.node.getAttribute("width") ? e.node.getAttribute("width") : e.options.defaultVideoWidth : e.options.defaultAudioWidth }(), s = function () { return e.isVideo ? e.node.videoHeight && 0 < e.node.videoHeight ? e.node.videoHeight : e.node.getAttribute("height") ? e.node.getAttribute("height") : e.options.defaultVideoHeight : e.options.defaultAudioHeight }(), o = function () { if (!e.options.enableAutosize) return e.initialAspectRatio; var t = 1; return e.isVideo ? (t = e.node.videoWidth && 0 < e.node.videoWidth && e.node.videoHeight && 0 < e.node.videoHeight ? e.height >= e.width ? e.node.videoWidth / e.node.videoHeight : e.node.videoHeight / e.node.videoWidth : e.initialAspectRatio, (isNaN(t) || .01 > t || 100 < t) && (t = 1), t) : t }(), r = parseFloat(n.height), d = void 0, c = parseFloat(n.width); if (d = e.isVideo ? "100%" === e.height ? parseFloat(c * s / a, 10) : e.height >= e.width ? parseFloat(c / o, 10) : parseFloat(c * o, 10) : s, isNaN(d) && (d = r), 0 < e.getElement(e.container).parentNode.length && "body" === e.getElement(e.container).parentNode.tagName.toLowerCase() && (c = l.default.innerWidth || u.default.documentElement.clientWidth || u.default.body.clientWidth, d = l.default.innerHe
vendor: 4,230 bytes, line 12
12ight || u.default.documentElement.clientHeight || u.default.body.clientHeight), d && c) { e.getElement(e.container).style.width = c + "px", e.getElement(e.container).style.height = d + "px", e.node.style.width = "100%", e.node.style.height = "100%", e.isVideo && e.media.setSize && e.media.setSize(c, d); for (var m = e.getElement(e.layers).children, p = 0, f = m.length; p < f; p++)m[p].style.width = "100%", m[p].style.height = "100%" } } }, { key: "setFillMode", value: function () { var e = this, t = l.default.self !== l.default.top && null !== l.default.frameElement, n = function () { for (var t, n = e.getElement(e.container); n;) { try { if (E.IS_FIREFOX && "html" === n.tagName.toLowerCase() && l.default.self !== l.default.top && null !== l.default.frameElement) return l.default.frameElement; t = n.parentElement } catch (i) { t = n.parentElement } if (t && _.visible(t)) return t; n = t } return null }(), a = n ? getComputedStyle(n, null) : getComputedStyle(u.default.body, null); "none" !== e.node.style.height && e.node.style.height !== e.height && (e.node.style.height = "auto"), "none" !== e.node.style.maxWidth && e.node.style.maxWidth !== e.width && (e.node.style.maxWidth = "none"), "none" !== e.node.style.maxHeight && e.node.style.maxHeight !== e.height && (e.node.style.maxHeight = "none"), e.node.currentStyle && ("100%" === e.node.currentStyle.height && (e.node.currentStyle.height = "auto"), "100%" === e.node.currentStyle.maxWidth && (e.node.currentStyle.maxWidth = "none"), "100%" === e.node.currentStyle.maxHeight && (e.node.currentStyle.maxHeight = "none")), t || parseFloat(a.width) || (n.style.width = e.media.offsetWidth + "px"), t || parseFloat(a.height) || (n.style.height = e.media.offsetHeight + "px"), a = getComputedStyle(n); var s = parseFloat(a.width), o = parseFloat(a.height); e.setDimensions("100%", "100%"); var r = e.getElement(e.container).querySelector("." + e.options.classPrefix + "poster>img"); r && (r.style.display = ""); for (var d = e.getElement(e.container).querySelectorAll("object, embed, iframe, video"), c = e.height, m = e.width, p = m * o / c, f = !1 == p > s, h = f ? Math.floor(s) : Math.floor(p), g = f ? Math.floor(c * s / m) : Math.floor(o), y = f ? s + "px" : h + "px", v = f ? g + "px" : o + "px", b = 0, S = d.length; b < S; b++)d[b].style.height = v, d[b].style.width = y, e.media.setSize && e.media.setSize(y, v), d[b].style.marginLeft = Math.floor((s - h) / 2) + "px", d[b].style.marginTop = 0 } }, { key: "setDimensions", value: function (e, n) { var a = this; e = (0, b.isString)(e) && -1 < e.indexOf("%") ? e : parseFloat(e) + "px", n = (0, b.isString)(n) && -1 < n.indexOf("%") ? n : parseFloat(n) + "px", a.getElement(a.container).style.width = e, a.getElement(a.container).style.height = n; for (var t = a.getElement(a.layers).children, s = 0, o = t.length; s < o; s++)t[s].style.width = e, t[s].style.height = n } }, { key: "setControlsSize", value: function () { var e = this; if (_.visible(e.getElement(e.container))) if (e.rail && _.visible(e.rail)) { for (var t = e.total ? getComputedStyle(e.total, null) : null, n = t ? parseFloat(t.marginLeft) + parseFloat(t.marginRight) : 0, a = getComputedStyle(e.rail), s = parseFloat(a.marginLeft) + parseFloat(a.marginRight), o = 0, r = _.siblings(e.rail, function (t) { return t !== e.rail }), l = r.length, d = 0; d < l; d++)o += r[d].offsetWidth; o += n + (0 === n ? 2 * s : s) + 1, e.getElement(e.container).style.minWidth = o + "px"; var u = (0, b.createEvent)("controlsresize", e.getElement(e.container)); e.getElement(e.container).dispatchEvent(u) } else { for (var c = e.getElement(e.controls).children, m = 0, p = 0, f = c.length; p < f; p++)m += c[p].offsetWidth; e.getElement(e.container).style.minWidth = m + "px" } } }, { key: "addControlElement", value: function (e, n) { var a = this; if (void 0 !== a.featurePosition[n]) { var t = a.getElement(a.controls).children[a.featurePosition[n] - 1]; t.parentNode.insertBefore(e, t.nextSibling) } else { a.getElement(a.controls).appendChild(e); for (var s = a.getElement(a.controls).children, o = 0, r = s.length; o < r; o++)if (e === s[o]) { a.featurePosition[n] = o; break } } } }, { key: "createIframeLayer", value: function () { var n = this;
vendor: 9,689 bytes, line 12
12 if (n.isVideo && null !== n.media.rendererName && -1 < n.media.rendererName.indexOf("iframe") && !u.default.getElementById(n.media.id + "-iframe-overlay")) { var e = u.default.createElement("div"), t = u.default.getElementById(n.media.id + "_" + n.media.rendererName); e.id = n.media.id + "-iframe-overlay", e.className = n.options.classPrefix + "iframe-overlay", e.addEventListener("click", function (t) { n.options.clickToPlayPause && (n.paused ? n.play() : n.pause(), t.preventDefault(), t.stopPropagation()) }), t.parentNode.insertBefore(e, t) } } }, { key: "resetSize", value: function () { var e = this; setTimeout(function () { e.setPlayerSize(e.width, e.height), e.setControlsSize() }, 50) } }, { key: "setPoster", value: function (e) { var n = this; if (n.getElement(n.container)) { var t = n.getElement(n.container).querySelector("." + n.options.classPrefix + "poster"); t || (t = u.default.createElement("div"), t.className = n.options.classPrefix + "poster " + n.options.classPrefix + "layer", n.getElement(n.layers).appendChild(t)); var i = t.querySelector("img"); !i && e && (i = u.default.createElement("img"), i.alt = "", i.className = n.options.classPrefix + "poster-img", i.width = "100%", i.height = "100%", t.style.display = "", t.appendChild(i)), e ? (i.setAttribute("src", e), t.style.backgroundImage = "url(\"" + e + "\")", t.style.display = "") : i ? (t.style.backgroundImage = "none", t.style.display = "none", i.remove()) : t.style.display = "none" } else (E.IS_IPAD && n.options.iPadUseNativeControls || E.IS_IPHONE && n.options.iPhoneUseNativeControls || E.IS_ANDROID && n.options.AndroidUseNativeControls) && (n.media.originalNode.poster = e) } }, { key: "changeSkin", value: function (e) { var n = this; n.getElement(n.container).className = n.options.classPrefix + "container " + e, n.setPlayerSize(n.width, n.height), n.setControlsSize() } }, { key: "globalBind", value: function (e, n) { var a = this, t = a.node ? a.node.ownerDocument : u.default; if (e = (0, b.splitEvents)(e, a.id), e.d) for (var s = e.d.split(" "), o = 0, r = s.length; o < r; o++)s[o].split(".").reduce(function (i, a) { return t.addEventListener(a, n, !1), a }, ""); if (e.w) for (var d = e.w.split(" "), c = 0, m = d.length; c < m; c++)d[c].split(".").reduce(function (t, i) { return l.default.addEventListener(i, n, !1), i }, "") } }, { key: "globalUnbind", value: function (e, n) { var a = this, t = a.node ? a.node.ownerDocument : u.default; if (e = (0, b.splitEvents)(e, a.id), e.d) for (var s = e.d.split(" "), o = 0, r = s.length; o < r; o++)s[o].split(".").reduce(function (i, a) { return t.removeEventListener(a, n, !1), a }, ""); if (e.w) for (var d = e.w.split(" "), c = 0, m = d.length; c < m; c++)d[c].split(".").reduce(function (t, i) { return l.default.removeEventListener(i, n, !1), i }, "") } }, { key: "buildfeatures", value: function (e, n, a, s) { for (var o, r = this, t = 0, l = r.options.features.length; t < l; t++)if (o = r.options.features[t], r["build" + o]) try { r["build" + o](e, n, a, s) } catch (t) { console.error("error building " + o, t) } } }, { key: "buildposter", value: function (e, n, i, a) { var s = this, t = u.default.createElement("div"); t.className = s.options.classPrefix + "poster " + s.options.classPrefix + "layer", i.appendChild(t); var o = a.originalNode.getAttribute("poster"); "" !== e.options.poster && (o && E.IS_IOS && a.originalNode.removeAttribute("poster"), o = e.options.poster), o ? s.setPoster(o) : null !== s.media.renderer && "function" == typeof s.media.renderer.getPosterUrl ? s.setPoster(s.media.renderer.getPosterUrl()) : t.style.display = "none", a.addEventListener("play", function () { t.style.display = "none" }), a.addEventListener("playing", function () { t.style.display = "none" }), e.options.showPosterWhenEnded && e.options.autoRewind && a.addEventListener("ended", function () { t.style.display = "" }), a.addEventListener("error", function () { t.style.display = "none" }), e.options.showPosterWhenPaused && a.addEventListener("pause", function () { e.ended || (t.style.display = "") }) } }, { key: "buildoverlays", value: function (n, i, a, s) { if (n.isVideo) { var o = this, t = u.default.createElement("div"), r = u.default.createElement("div"), l = u.default.createElement("div"); t.style.display = "none", t.className = o.options.classPrefix + "overlay " + o.options.classPrefix + "layer", t.innerHTML = "<div class=\"" + o.options.classPrefix + "overlay-loading\">" + ("<div class=\"" + o.options.classPrefix + "overlay-loading-bg-img\">\n\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t\t<use xlink:href=\"" + o.media.options.iconSprite + "#icon-loading-spinner\"></use>\n\t\t\t\t\t</svg>\n\t\t\t\t</div></div>"), a.appendChild(t), r.style.display = "none", r.className = o.options.classPrefix + "overlay " + o.options.classPrefix + "layer", r.innerHTML = "<div class=\"" + o.options.classPrefix + "overlay-error\"></div>", a.appendChild(r), l.className = o.options.classPrefix + "overlay " + o.options.classPrefix + "layer " + o.options.classPrefix + "overlay-play", l.innerHTML = (0, C.generateControlButton)(o.id, v.default.t("wpcp_mejs.play"), v.default.t("wpcp_mejs.play"), "" + o.media.options.iconSprite, ["icon-overlay-play"], "" + o.options.classPrefix, o.options.classPrefix + "overlay-button", "", !1), l.addEventListener("click", function () { if (o.options.clickToPlayPause) { var e = o.getElement(o.container).querySelector("." + o.options.classPrefix + "overlay-button"), t = e.getAttribute("aria-pressed"); o.paused ? o.play() : o.pause(), e.setAttribute("aria-pressed", !!t), o.getElement(o.container).focus() } }), l.addEventListener("keydown", function (t) { var e = t.keyCode || t.which || 0; if (13 === e || E.IS_FIREFOX && 32 === e) { var n = (0, b.createEvent)("click", l); return l.dispatchEvent(n), !1 } }), a.appendChild(l), null !== o.media.rendererName && (/(youtube|facebook)/i.test(o.media.rendererName) && !(o.media.originalNode.getAttribute("poster") || n.options.poster || "function" == typeof o.media.renderer.getPosterUrl && o.media.renderer.getPosterUrl()) || E.IS_STOCK_ANDROID || o.media.originalNode.getAttribute("autoplay")) && (l.style.display = "none"); var d = !1; s.addEventListener("play", function () { l.style.display = "none", t.style.display = "none", r.style.display = "none", d = !1 }), s.addEventListener("playing", function () { l.style.display = "none", t.style.display = "none", r.style.display = "none", d = !1 }), s.addEventListener("seeking", function () { l.style.display = "none", t.style.display = "", d = !1 }), s.addEventListener("seeked", function () { l.style.display = o.paused && !E.IS_STOCK_ANDROID ? "" : "none", t.style.display = "none", d = !1 }), s.addEventListener("pause", function () { t.style.display = "none", E.IS_STOCK_ANDROID || d || (l.style.display = ""), d = !1 }), s.addEventListener("waiting", function () { t.style.display = "", d = !1 }), s.addEventListener("loadeddata", function () { t.style.display = "", E.IS_ANDROID && (s.canplayTimeout = setTimeout(function () { if (u.default.createEvent) { var e = u.default.createEvent("HTMLEvents"); return e.initEvent("canplay", !0, !0), s.dispatchEvent(e) } }, 300)), d = !1 }), s.addEventListener("canplay", function () { t.style.display = "none", clearTimeout(s.canplayTimeout), d = !1 }), s.addEventListener("error", function (n) { o._handleError(n, o.media, o.node), t.style.display = "none", l.style.display = "none", d = !0 }), s.addEventListener("loadedmetadata", function () { o.controlsEnabled || o.enableControls() }), s.addEventListener("keydown", function (t) { o.onkeydown(n, s, t), d = !1 }) } } }, { key: "buildkeyboard", value: function (e, n, i, a) { var s = this; s.getElement(s.container).addEventListener("keydown", function () { s.keyboardAction = !0 }), s.globalKeydownCallback = function (t) { if (!u.default.activeElement) return !0; var n = u.default.activeElement.closest("." + s.options.classPrefix + "container"), i = s.media.closest("." + s.options.classPrefix + "container"); return s.hasFocus = !!(n && i && n.id === i.id), s.onkeydown(e, a, t) }, s.globalClickCallback = function (e) { s.hasFocus = !!e.target.closest("." + s.options.classPrefix + "container") }, s.globalBind("keydown", s.globalKeydownCallback), s.globalBind("click", s.globalClickCallback) } }, { key: "onkeydown", value: function (t, n, a) { if (t.hasFocus && t.options.enableKeyboard) for (var e, s = 0, o = t.options.keyActions.length; s < o; s++) { e = t.options.keyActions[s]; for (var r = 0, l = e.keys.length; r < l; r++)if (a.keyCode === e.keys[r]) return e.action(t, n, a.keyCode, a), a.preventDefault(), void a.stopPropagation() } return !0 } }, { key: "play", value: function () { return this.proxy.play() } }, { key: "pause", value: function () { return this.proxy.pause() } }, { key: "load", value: function () { return this.proxy.load() } }, { key: "setCurrentTime", value: function (e) { this.proxy.setCurrentTime(e) } }, { key: "getCurrentTime", value: function () { return this.proxy.currentTime } }, { key: "getDuration", value: function () { return this.proxy.duration } }, { key: "setVolume", value: function (e) { this.proxy.volume = e } }, { key: "getVolume", value: function () { return this.proxy.getVolume() } }, { key: "setMuted", value: function (e) { this.proxy.setMuted(e) } }, { key: "setSrc", value: function (e) { this.controlsEnabled || this.enableControls(), this.proxy.setSrc(e) } }, { key: "getSrc", value: function () { return this.proxy.getSrc() } }, { key: "canPlayType", value: function (e) { return this.proxy.canPlayType(e) } }, { key: "remove", value: function () { var e = this, t = e.media.rendererN
12ame, n = e.media.originalNode.src; for (var i in e.options.features) { var a = e.options.features[i]; if (e["clean" + a]) try { e["clean" + a](e, e.getElement(e.layers), e.getElement(e.controls), e.media) } catch (t) { console.error("error cleaning " + a, t) } } var o = e.node.getAttribute("width"), r = e.node.getAttribute("height"); if (o ? -1 === o.indexOf("%") && (o += "px") : o = "auto", r ? -1 === r.indexOf("%") && (r += "px") : r = "auto", e.node.style.width = o, e.node.style.height = r, e.setPlayerSize(0, 0), e.isDynamic ? e.getElement(e.container).parentNode.insertBefore(e.node, e.getElement(e.container)) : function () { e.node.setAttribute("controls", !0), e.node.setAttribute("id", e.node.getAttribute("id").replace("_" + t, "").replace("_from_wpcp_mejs", "")); var a = e.getElement(e.container).querySelector("." + e.options.classPrefix + "poster>img"); if (a && e.node.setAttribute("poster", a.src), delete e.node.autoplay, e.node.setAttribute("src", ""), "" !== e.media.canPlayType((0, x.getTypeFromFile)(n)) && e.node.setAttribute("src", n), t && -1 < t.indexOf("iframe")) { var s = u.default.getElementById(e.media.id + "-iframe-overlay"); s.remove() } var o = e.node.cloneNode(); if (o.style.display = "", e.getElement(e.container).parentNode.insertBefore(o, e.getElement(e.container)), e.node.remove(), e.mediaFiles) for (var r, l = 0, d = e.mediaFiles.length; l < d; l++)r = u.default.createElement("source"), r.setAttribute("src", e.mediaFiles[l].src), r.setAttribute("type", e.mediaFiles[l].type), o.appendChild(r); if (e.trackFiles) for (var c = function (t) { var n = e.trackFiles[t], i = u.default.createElement("track"); i.kind = n.kind, i.label = n.label, i.srclang = n.srclang, i.src = n.src, o.appendChild(i), i.addEventListener("load", function () { this.mode = "showing", o.textTracks[t].mode = "showing" }) }, m = 0, p = e.trackFiles.length; m < p; m++)c(m, p); delete e.node, delete e.mediaFiles, delete e.trackFiles }(), e.media.renderer && "function" == typeof e.media.renderer.destroy && e.media.renderer.destroy(), delete m.default.players[e.id], "object" === s(e.getElement(e.container))) { var l = e.getElement(e.container).parentNode.querySelector("." + e.options.classPrefix + "offscreen"); l && l.remove(), e.getElement(e.container).remove() } e.globalUnbind("resize", e.globalResizeCallback), e.globalUnbind("keydown", e.globalKeydownCallback), e.globalUnbind("click", e.globalClickCallback), delete e.media.player } }, { key: "paused", get: function () { return this.proxy.paused } }, { key: "muted", get: function () { return this.proxy.muted }, set: function (e) { this.setMuted(e) } }, { key: "ended", get: function () { return this.proxy.ended } }, { key: "readyState", get: function () { return this.proxy.readyState } }, { key: "currentTime", set: function (e) { this.setCurrentTime(e) }, get: function () { return this.getCurrentTime() } }, { key: "duration", get: function () { return this.getDuration() } }, { key: "volume", set: function (e) { this.setVolume(e) }, get: function () { return this.getVolume() } }, { key: "src", set: function (e) { this.setSrc(e) }, get: function () { return this.getSrc() } }]), e }(); l.default.WPCPMediaElementPlayer = k, m.default.WPCPMediaElementPlayer = k, n.default = k }, { 18: 18, 2: 2, 26: 26, 27: 27, 28: 28, 29: 29, 3: 3, 30: 30, 32: 32, 6: 6, 7: 7, 8: 8 }], 18: [function (e, t, n) { 'use strict'; function i(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } Object.defineProperty(n, "__esModule", { value: !0 }); var a = function () { function e(e, t) { for (var n, a = 0; a < t.length; a++)n = t[a], n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n) } return function (t, n, i) { return n && e(t.prototype, n), i && e(t, i), t } }(), s = e(3), o = function (e) { return e && e.__esModule ? e : { default: e } }(s), r = function () { function e(t) { return i(this, e), this.media = t.media, this.isVideo = t.isVideo, this.classPrefix = t.options.classPrefix, this.createIframeLayer = function () { return t.createIframeLayer() }, this.setPoster = function (e) { return t.setPoster(e) }, this } return a(e, [{ key: "play", value: function () { return this.media.play() } }, { key: "pause", value: function () { return this.media.pause() } }, { key: "load", value: function () { var e = this; e.isLoaded || e.media.load(), e.isLoaded = !0 } }, { key: "setCurrentTime", value: function (e) { this.media.setCurrentTime(e) } }, { key: "getCurrentTime", value: function () { return this.media.currentTime } }, { key: "getDuration", value: function () { var e = this.media.getDuration(); return e === 1 / 0 && this.media.seekable && this.media.seekable.length && (e = this.media.seekable.end(0)), e } }, { key: "setVolume", value: function (e) { this.media.setVolume(e) } }, { key: "getVolume", value: function () { return this.media.getVolume() } }, { key: "setMuted", value: function (e) { this.media.setMuted(e) } }, { key: "setSrc", value: function (e) { var n = this, t = document.getElementById(n.media.id + "-iframe-overlay"); t && t.remove(), n.media.setSrc(e), n.createIframeLayer(), null !== n.media.renderer && "function" == typeof n.media.renderer.getPosterUrl && n.setPoster(n.media.renderer.getPosterUrl()) } }, { key: "getSrc", value: function () { return this.media.getSrc() } }, { key: "canPlayType", value: function (e) { return this.media.canPlayType(e) } }, { key: "paused", get: function () { return this.media.paused } }, { key: "muted", set: function (e) { this.setMuted(e) }, get: function () { return this.media.muted } }, { key: "ended", get: function () { return this.media.ended } }, { key: "readyState", get: function () { return this.media.readyState } }, { key: "currentTime", set: function (e) { this.setCurrentTime(e) }, get: function () { return this.getCurrentTime() } }, { key: "duration", get: function () { return this.getDuration() } }, { key: "remainingTime", get: function () { return this.getDuration() - this.currentTime() } }, { key: "volume", set: function (e) { this.setVolume(e) }, get: function () { return this.getVolume() } }, { key: "src", set: function (e) { this.setSrc(e) }
12, get: function () { return this.getSrc() } }]), e }(); n.default = r, o.default.DefaultPlayer = r }, { 3: 3 }], 19: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(3), i = t(n), a = e(8), s = t(a), o = e(17), r = t(o); "undefined" == typeof jQuery ? "undefined" == typeof Zepto ? "undefined" != typeof ender && (s.default.$ = ender) : s.default.$ = Zepto : s.default.$ = jQuery, function (e) { "undefined" != typeof e && (e.fn.mediaelementplayer = function (t) { return !1 === t ? this.each(function () { var t = e(this).data("mediaelementplayer"); t && t.remove(), e(this).removeData("mediaelementplayer") }) : this.each(function () { e(this).data("mediaelementplayer", new r.default(this, t)) }), this }, e(document).ready(function () { e("." + s.default.MepDefaults.classPrefix + "player").mediaelementplayer() })) }(s.default.$) }, { 17: 17, 3: 3, 8: 8 }], 20: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, i = e(3), a = t(i), s = e(8), o = t(s), r = e(9), l = e(28), d = e(30), u = e(26), c = e(27), m = { promise: null, load: function (e) { return "undefined" == typeof dashjs ? (e.options.path = "string" == typeof e.options.path ? e.options.path : "https://cdn.dashjs.org/latest/dash.all.min.js", m.promise = m.promise || (0, c.loadScript)(e.options.path), m.promise.then(function () { m._createPlayer(e) })) : m.promise = new Promise(function (e) { e() }).then(function () { m._createPlayer(e) }), m.promise }, _createPlayer: function (e) { var t = dashjs.MediaPlayer().create(); return a.default["__ready__" + e.id](t), t } }; d.typeChecks.push(function (e) { return ~e.toLowerCase().indexOf(".mpd") ? "application/dash+xml" : null }), r.renderer.add({ name: "native_dash", options: { prefix: "native_dash", dash: { path: "https://cdn.dashjs.org/latest/dash.all.min.js", debug: !1, drm: {}, robustnessLevel: "" } }, canPlayType: function (e) { return u.HAS_MSE && -1 < ["application/dash+xml"].indexOf(e.toLowerCase()) }, create: function (t, s, d) { var u = t.originalNode, c = t.id + "_" + s.prefix, e = u.autoplay, p = u.children, f = null, h = null; u.removeAttribute("type"); for (var g = 0, y = p.length; g < y; g++)p[g].removeAttribute("type"); f = u.cloneNode(!0), s = Object.assign(s, t.options); for (var v = o.default.html5media.properties, E = o.default.html5media.events.concat(["click", "mouseover", "mouseout"]).filter(function (t) { return "error" !== t }), b = function (n) { var e = (0, l.createEvent)(n.type, t); t.dispatchEvent(e) }, S = function (t) { var i = "" + t.substring(0, 1).toUpperCase() + t.substring(1); f["get" + i] = function () { return null === h ? null : f[t] }, f["set" + i] = function (i) { if (-1 === o.default.html5media.readOnlyProperties.indexOf(t)) if ("src" === t) { var a = "object" === ("undefined" == typeof i ? "undefined" : n(i)) && i.src ? i.src : i; if (f[t] = a, null !== h) { h.reset(); for (var r = 0, d = E.length; r < d; r++)f.removeEventListener(E[r], b); h = m._createPlayer({ options: s.dash, id: c }), i && "object" === ("undefined" == typeof i ? "undefined" : n(i)) && "object" === n(i.drm) && (h.setProtectionData(i.drm), (0, l.isString)(s.dash.robustnessLevel) && s.dash.robustnessLevel && h.getProtectionController().setRobustnessLevel(s.dash.robustnessLevel)), h.attachSource(a), e && h.play() } } else f[t] = i } }, x = 0, P = v.length; x < P; x++)S(v[x]); if (a.default["__ready__" + c] = function (e) { t.dashPlayer = h = e; for (var i = dashjs.MediaPlayer.events, a = function (e) { "loadedmetadata" === e && (h.initialize(), h.attachView(f), h.setAutoPlay(!1), "object" === n(s.dash.drm) && !o.default.Utils.isObjectEmpty(s.dash.drm) && (h.setProtectionData(s.dash.drm), (0, l.isString)(s.dash.robustnessLevel) && s.dash.robustnessLevel && h.getProtectionController().setRobustnessLevel(s.dash.robustnessLevel)), h.attachSource(f.getSrc())), f.addEventListener(e, b) }, r = 0, d = E.length; r < d; r++)a(E[r]); var u = function (n) { if ("error" === n.type.toLowerCase()) t.generateError(n.message, f.src), console.error(n); else { var e = (0, l.createEvent)(n.type, t); e.data = n, t.dispatchEvent(e) } }; for (var c in i) i.hasOwnProperty(c) && h.on(i[c], function (t) { return u(t) }) }, d && 0 < d.length) for (var _ = 0, C = d.length; _ < C; _++)if (r.renderer.renderers[s.prefix].canPlayType(d[_].type)) { f.setAttribute("src", d[_].src
12), "undefined" != typeof d[_].drm && (s.dash.drm = d[_].drm); break } f.setAttribute("id", c), u.parentNode.insertBefore(f, u), u.autoplay = !1, u.style.display = "none", f.setSize = function (e, t) { return f.style.width = e + "px", f.style.height = t + "px", f }, f.hide = function () { return f.pause(), f.style.display = "none", f }, f.show = function () { return f.style.display = "", f }, f.destroy = function () { null !== h && h.reset() }; var T = (0, l.createEvent)("rendererready", f); return t.dispatchEvent(T), t.promises.push(m.load({ options: s.dash, id: c })), f } }) }, { 26: 26, 27: 27, 28: 28, 3: 3, 30: 30, 8: 8, 9: 9 }], 21: [function (e, t, n) { 'use strict'; function i(e) { return e && e.__esModule ? e : { default: e } } Object.defineProperty(n, "__esModule", { value: !0 }), n.PluginDetector = void 0; var a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, s = e(3), o = i(s), r = e(2), l = i(r), d = e(8), u = i(d), c = e(6), m = i(c), p = e(9), f = e(28), h = e(26), g = e(30), y = n.PluginDetector = { plugins: [], hasPluginVersion: function (e, t) { var n = y.plugins[e]; return t[1] = t[1] || 0, t[2] = t[2] || 0, n[0] > t[0] || n[0] === t[0] && n[1] > t[1] || n[0] === t[0] && n[1] === t[1] && n[2] >= t[2] }, addPlugin: function (e, t, n, i, a) { y.plugins[e] = y.detectPlugin(t, n, i, a) }, detectPlugin: function (e, t, n, s) { var r, l, d = [0, 0, 0]; if (null !== h.NAV.plugins && void 0 !== h.NAV.plugins && "object" === a(h.NAV.plugins[e])) { if (r = h.NAV.plugins[e].description, r && ("undefined" == typeof h.NAV.mimeTypes || !h.NAV.mimeTypes[t] || h.NAV.mimeTypes[t].enabledPlugin)) { d = r.replace(e, "").replace(/^\s+/, "").replace(/\sr/gi, ".").split("."); for (var u = 0, c = d.length; u < c; u++)d[u] = parseInt(d[u].match(/\d+/), 10) } } else if (void 0 !== o.default.ActiveXObject) try { l = new ActiveXObject(n), l && (d = s(l)) } catch (t) { } return d } }; y.addPlugin("flash", "Shockwave Flash", "application/x-shockwave-flash", "ShockwaveFlash.ShockwaveFlash", function (e) { var t = [], n = e.GetVariable("$version"); return n && (n = n.split(" ")[1].split(","), t = [parseInt(n[0], 10), parseInt(n[1], 10), parseInt(n[2], 10)]), t }); var v = { create: function (e, t, n) { var a = {}, s = !1; a.options = t, a.id = e.id + "_" + a.options.prefix, a.mediaElement = e, a.flashState = {}, a.flashApi = null, a.flashApiStack = []; for (var r = u.default.html5media.properties, d = function (e) { a.flashState[e] = null; var t = "" + e.substring(0, 1).toUpperCase() + e.substring(1); a["get" + t] = function () { if (null !== a.flashApi) { if ("function" == typeof a.flashApi["get_" + e]) { var t = a.flashApi["get_" + e](); return "buffered" === e ? { start: function () { return 0 }, end: function () { return t }, length: 1 } : t } return null } return null }, a["set" + t] = function (t) { if ("src" === e && (t = (0, g.absolutizeUrl)(t)), null !== a.flashApi && void 0 !== a.flashApi["set_" + e]) try { a.flashApi["set_" + e](t) } catch (t) { } else a.flashApiStack.push({ type: "set", propName: e, value: t }) } }, c = 0, y = r.length; c < y; c++)d(r[c]); var v = u.default.html5media.methods, E = function (e) { a[e] = function () { if (s) if (null === a.flashApi) a.flashApiStack.push({ type: "call", methodName: e }); else if (a.flashApi["fire_" + e]) try { a.flashApi["fire_" + e]() } catch (t) { } else; } }; v.push("stop"); for (var b = 0, S = v.length; b < S; b++)E(v[b]); for (var x, P = ["rendererready"], _ = 0, C = P.length; _ < C; _++)x = (0, f.createEvent)(P[_], a), e.dispatchEvent(x); o.default["__ready__" + a.id] = function () { if (a.flashReady = !0, a.flashApi = l.default.getElementById("__" + a.id), a.flashApiStack.length) for (var e, t = 0, n = a.flashApiStack.length; t < n; t++)if (e = a.flashApiStack[t], "set" === e.type) { var i = e.propName, s = "" + i.substring(0, 1).toUpperCase() + i.substring(1); a["set" + s](e.value) } else "call" === e.type && a[e.methodName]() }, o.default["__event__" + a.id] = function (e, t) { var n = (0, f.createEvent)(e, a); if (t) try { n.data = JSON.parse(t), n.details.data = JSON.parse(t) } catch (i) { n.message = t } a.mediaElement.dispatchEvent(n) }, a.flashWrapper = l.default.createElement("div"), -1 === ["always", "sameDomain"].indexOf(a.options.shimScriptAccess) && (a.options.shimScriptAccess = "sameDomain"); var T = e.originalNode.autoplay, k = ["uid=" + a.id, "autoplay=" + T, "allowScriptAccess=" + a.options.shimScriptAccess, "preload=" + (e.originalNode.getAttribute("preload") || "")], w = null !== e.originalNode && "video" === e.originalNode.tagName.toLowerCase(), N = w ? e.originalNode.height : 1, A = w ? e.originalNode.width : 1; e.originalNode.getAttribute("src") && k.push("src=" + e.originalNode.getAttribute("src")), !0 === a.options.enablePseudoStreaming && (k.push("pseudostreamstart=" + a.options.pseudoStreamingStartQueryParam), k.push("pseudostreamtype=" + a.options.pseudoStreamingType)), a.options.streamDelimiter && k.push("streamdelimiter=" + encodeURIComponent(a.options.streamDelimiter)), a.options.proxyType && k.push("proxytype=" + a.options.proxyType), e.appendChild(a.flashWrapper), e.originalNode.style.display = "none"; var L = []; if (h.IS_IE || h.IS_EDGE) { var F = l.default.createElement("div"); a.flashWrapper.appendChild(F), L = h.IS_EDGE ? ["type=\"application/x-shockwave-flash\"", "data=\"" + a.options.pluginPath + a.options.filename + "\"", "id=\"__" + a.id + "\"", "width=\"" + A + "\"", "height=\"" + N + "'\""] : ["classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"", "codebase=\"//download.macromedia.com/pub/s
12hockwave/cabs/flash/swflash.cab\"", "id=\"__" + a.id + "\"", "width=\"" + A + "\"", "height=\"" + N + "\""], w || L.push("style=\"clip: rect(0 0 0 0); position: absolute;\""), F.outerHTML = "<object " + L.join(" ") + ">" + ("<param name=\"movie\" value=\"" + a.options.pluginPath + a.options.filename + "?x=" + new Date + "\" />") + ("<param name=\"flashvars\" value=\"" + k.join("&") + "\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /><param name=\"wmode\" value=\"transparent\" />") + ("<param name=\"allowScriptAccess\" value=\"" + a.options.shimScriptAccess + "\" /><param name=\"allowFullScreen\" value=\"true\" />") + ("<div>" + m.default.t("wpcp_mejs.install-flash") + "</div></object>") } else L = ["id=\"__" + a.id + "\"", "name=\"__" + a.id + "\"", "play=\"true\"", "loop=\"false\"", "quality=\"high\"", "bgcolor=\"#000000\"", "wmode=\"transparent\"", "allowScriptAccess=\"" + a.options.shimScriptAccess + "\"", "allowFullScreen=\"true\"", "type=\"application/x-shockwave-flash\"", "pluginspage=\"//www.macromedia.com/go/getflashplayer\"", "src=\"" + a.options.pluginPath + a.options.filename + "\"", "flashvars=\"" + k.join("&") + "\""], w ? (L.push("width=\"" + A + "\""), L.push("height=\"" + N + "\"")) : L.push("style=\"position: fixed; left: -9999em; top: -9999em;\""), a.flashWrapper.innerHTML = "<embed " + L.join(" ") + ">"; if (a.flashNode = a.flashWrapper.lastChild, a.hide = function () { s = !1, w && (a.flashNode.style.display = "none") }, a.show = function () { s = !0, w && (a.flashNode.style.display = "") }, a.setSize = function (e, t) { a.flashNode.style.width = e + "px", a.flashNode.style.height = t + "px", null !== a.flashApi && "function" == typeof a.flashApi.fire_setSize && a.flashApi.fire_setSize(e, t) }, a.destroy = function () { a.flashNode.remove() }, n && 0 < n.length) for (var I = 0, j = n.length; I < j; I++)if (p.renderer.renderers[t.prefix].canPlayType(n[I].type)) { a.setSrc(n[I].src); break } return a } }, E = y.hasPluginVersion("flash", [10, 0, 0]); if (E) { g.typeChecks.push(function (e) { return e = e.toLowerCase(), e.startsWith("rtmp") ? ~e.indexOf(".mp3") ? "audio/rtmp" : "video/rtmp" : /\.og(a|g)/i.test(e) ? "audio/ogg" : ~e.indexOf(".m3u8") ? "application/x-mpegURL" : ~e.indexOf(".mpd") ? "application/dash+xml" : ~e.indexOf(".flv") ? "video/flv" : null }); var b = { name: "flash_video", options: { prefix: "flash_video", filename: "mediaelement-flash-video.swf", enablePseudoStreaming: !1, pseudoStreamingStartQueryParam: "start", pseudoStreamingType: "byte", proxyType: "", streamDelimiter: "" }, canPlayType: function (e) { return ~["video/mp4", "video/rtmp", "audio/rtmp", "rtmp/mp4", "audio/mp4", "video/flv", "video/x-flv"].indexOf(e.toLowerCase()) }, create: v.create }; p.renderer.add(b); var S = { name: "flash_hls", options: { prefix: "flash_hls", filename: "mediaelement-flash-video-hls.swf" }, canPlayType: function (e) { return ~["application/x-mpegurl", "application/vnd.apple.mpegurl", "audio/mpegurl", "audio/hls", "video/hls"].indexOf(e.toLowerCase()) }, create: v.create }; p.renderer.add(S); var x = { name: "flash_dash", options: { prefix: "flash_dash", filename: "mediaelement-flash-video-mdash.swf" }, canPlayType: function (e) { return ~["application/dash+xml"].indexOf(e.toLowerCase()) }, create: v.create }; p.renderer.add(x); var P = { name: "flash_audio", options: { prefix: "flash_audio", filename: "mediaelement-flash-audio.swf" }, canPlayType: function (e) { return ~["audio/mp3"].indexOf(e.toLowerCase()) }, create: v.create }; p.renderer.add(P); var _ = { name: "flash_audio_ogg", options: { prefix: "flash_audio_ogg", filename: "mediaelement-flash-audio-ogg.swf" }, canPlayType: function (e) { return ~["audio/ogg", "audio/oga", "audio/ogv"].indexOf(e.toLowerCase()) }, create: v.create }; p.renderer.add(_) } }, { 2: 2, 26: 26, 28: 28, 3: 3, 30: 30, 6: 6, 8: 8, 9: 9 }], 22: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, i = e(3), a = t(i), s = e(8), o = t(s), r = e(9), l = e(28), d = e(26), u = e(30), c = e(27), m = { promise: null, load: function (e) { return "undefined" == typeof flvjs ? (e.options.path = "string" == typeof e.o
12ptions.path ? e.options.path : "https://cdn.jsdelivr.net/npm/flv.js@latest", m.promise = m.promise || (0, c.loadScript)(e.options.path), m.promise.then(function () { m._createPlayer(e) })) : m.promise = new Promise(function (e) { e() }).then(function () { m._createPlayer(e) }), m.promise }, _createPlayer: function (e) { flvjs.LoggingControl.enableDebug = e.options.debug, flvjs.LoggingControl.enableVerbose = e.options.debug; var t = flvjs.createPlayer(e.options, e.configs); return a.default["__ready__" + e.id](t), t } }; u.typeChecks.push(function (e) { return ~e.toLowerCase().indexOf(".flv") ? "video/flv" : null }), r.renderer.add({ name: "native_flv", options: { prefix: "native_flv", flv: { path: "https://cdn.jsdelivr.net/npm/flv.js@latest", cors: !0, debug: !1 } }, canPlayType: function (e) { return d.HAS_MSE && -1 < ["video/x-flv", "video/flv"].indexOf(e.toLowerCase()) }, create: function (t, s, d) { var u = t.originalNode, c = t.id + "_" + s.prefix, e = null, p = null; e = u.cloneNode(!0), s = Object.assign(s, t.options); for (var f = o.default.html5media.properties, h = o.default.html5media.events.concat(["click", "mouseover", "mouseout"]).filter(function (t) { return "error" !== t }), g = function (n) { var e = (0, l.createEvent)(n.type, t); t.dispatchEvent(e) }, y = function (t) { var i = "" + t.substring(0, 1).toUpperCase() + t.substring(1); e["get" + i] = function () { return null === p ? null : e[t] }, e["set" + i] = function (a) { if (-1 === o.default.html5media.readOnlyProperties.indexOf(t)) if ("src" !== t) e[t] = a; else if (e[t] = "object" === ("undefined" == typeof a ? "undefined" : n(a)) && a.src ? a.src : a, null !== p) { var r = { type: "flv", url: a, cors: s.flv.cors, debug: s.flv.debug, path: s.flv.path }, l = s.flv.configs; p.destroy(); for (var d = 0, u = h.length; d < u; d++)e.removeEventListener(h[d], g); p = m._createPlayer({ options: r, configs: l, id: c }), p.attachMediaElement(e), p.load() } } }, v = 0, E = f.length; v < E; v++)y(f[v]); if (a.default["__ready__" + c] = function (n) { t.flvPlayer = p = n; for (var i = flvjs.Events, a = function (t) { "loadedmetadata" === t && (p.unload(), p.detachMediaElement(), p.attachMediaElement(e), p.load()), e.addEventListener(t, g) }, s = 0, o = h.length; s < o; s++)a(h[s]); var r = function (n, i) { if ("error" === n) { var a = i[0] + ": " + i[1] + " " + i[2].msg; t.generateError(a, e.src) } else { var s = (0, l.createEvent)(n, t); s.data = i, t.dispatchEvent(s) } }, d = function (e) { i.hasOwnProperty(e) && p.on(i[e], function () { for (var t = arguments.length, n = Array(t), a = 0; a < t; a++)n[a] = arguments[a]; return r(i[e], n) }) }; for (var u in i) d(u) }, d && 0 < d.length) for (var b = 0, S = d.length; b < S; b++)if (r.renderer.renderers[s.prefix].canPlayType(d[b].type)) { e.setAttribute("src", d[b].src); break } e.setAttribute("id", c), u.parentNode.insertBefore(e, u), u.autoplay = !1, u.style.display = "none"; var x = { type: "flv", url: e.src, cors: s.flv.cors, debug: s.flv.debug, path: s.flv.path }, P = s.flv.configs; e.setSize = function (t, n) { return e.style.width = t + "px", e.style.height = n + "px", e }, e.hide = function () { return null !== p && p.pause(), e.style.display = "none", e }, e.show = function () { return e.style.display = "", e }, e.destroy = function () { null !== p && p.destroy() }; var _ = (0, l.createEvent)("rendererready", e); return t.dispatchEvent(_), t.promises.push(m.load({ options: x, configs: P, id: c })), e } }) }, { 26: 26, 27: 27, 28: 28, 3: 3, 30: 30, 8: 8, 9: 9 }], 23: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, i = e(3), a = t(i), s = e(8), o = t(s), r = e(9), l = e(28), d = e(26), u = e(30), c = e(27), m = { promise: null, load: function (e) { return "undefined" == typeof Hls ? (e.options.path = "string" == typeof e.o
12ptions.path ? e.options.path : "https://cdn.jsdelivr.net/npm/hls.js@latest", m.promise = m.promise || (0, c.loadScript)(e.options.path), m.promise.then(function () { m._createPlayer(e) })) : m.promise = new Promise(function (e) { e() }).then(function () { m._createPlayer(e) }), m.promise }, _createPlayer: function (e) { var t = new Hls(e.options); return a.default["__ready__" + e.id](t), t } }; u.typeChecks.push(function (e) { return ~e.toLowerCase().indexOf(".m3u8") ? "application/x-mpegURL" : null }), r.renderer.add({ name: "native_hls", options: { prefix: "native_hls", hls: { path: "https://cdn.jsdelivr.net/npm/hls.js@latest", autoStartLoad: !1, debug: !1 } }, canPlayType: function (e) { return d.HAS_MSE && -1 < ["application/x-mpegurl", "application/vnd.apple.mpegurl", "audio/mpegurl", "audio/hls", "video/hls"].indexOf(e.toLowerCase()) }, create: function (t, s, d) { var u = t.originalNode, c = t.id + "_" + s.prefix, e = u.getAttribute("preload"), p = u.autoplay, f = null, h = null, g = 0, y = d.length; h = u.cloneNode(!0), s = Object.assign(s, t.options), s.hls.autoStartLoad = e && "none" !== e || p; for (var v = o.default.html5media.properties, E = o.default.html5media.events.concat(["click", "mouseover", "mouseout"]).filter(function (t) { return "error" !== t }), b = function (n) { var e = (0, l.createEvent)(n.type, t); t.dispatchEvent(e) }, S = function (e) { var t = "" + e.substring(0, 1).toUpperCase() + e.substring(1); h["get" + t] = function () { return null === f ? null : h[e] }, h["set" + t] = function (t) { if (-1 === o.default.html5media.readOnlyProperties.indexOf(e)) if ("src" !== e) h[e] = t; else if (h[e] = "object" === ("undefined" == typeof t ? "undefined" : n(t)) && t.src ? t.src : t, null !== f) { f.destroy(); for (var a = 0, r = E.length; a < r; a++)h.removeEventListener(E[a], b); f = m._createPlayer({ options: s.hls, id: c }), f.loadSource(t), f.attachMedia(h) } } }, x = 0, P = v.length; x < P; x++)S(v[x]); if (a.default["__ready__" + c] = function (e) { t.hlsPlayer = f = e; for (var n = Hls.Events, i = function (e) { if ("loadedmetadata" === e) { var n = t.originalNode.src; f.detachMedia(), f.loadSource(n), f.attachMedia(h) } h.addEventListener(e, b) }, a = 0, s = E.length; a < s; a++)i(E[a]); var o = void 0, r = void 0, u = function (e, n) { if ("hlsError" === e && (console.warn(n), n = n[1], n.fatal)) { switch (n.type) { case "mediaError": var i = new Date().getTime(); if (!o || 3e3 < i - o) o = new Date().getTime(), f.recoverMediaError(); else if (!r || 3e3 < i - r) r = new Date().getTime(), console.warn("Attempting to swap Audio Codec and recover from media error"), f.swapAudioCodec(), f.recoverMediaError(); else { t.generateError("Cannot recover, last media error recovery failed", h.src), console.error("Cannot recover, last media error recovery failed") } break; case "networkError": if ("manifestLoadError" !== n.details) { t.generateError("Network error", d), console.error("Network error") } else if (g < y && void 0 !== d[g + 1]) h.setSrc(d[g++].src), h.load(), h.play(); else { t.generateError("Network error", d), console.error("Network error") } break; default: f.destroy(); }return } var a = (0, l.createEvent)(e, t); a.data = n, t.dispatchEvent(a) }, c = function (e) { n.hasOwnProperty(e) && f.on(n[e], function () { for (var t = arguments.length, i = Array(t), a = 0; a < t; a++)i[a] = arguments[a]; return u(n[e], i) }) }; for (var m in n) c(m) }, 0 < y) for (; g < y; g++)if (r.renderer.renderers[s.prefix].canPlayType(d[g].type)) { h.setAttribute("src", d[g].src); break } "auto" === e || p || (h.addEventListener("play", function () { null !== f && f.startLoad() }), h.addEventListener("pause", function () { null !== f && f.stopLoad() })), h.setAttribute("id", c), u.parentNode.insertBefore(h, u), u.autoplay = !1, u.style.display = "none", h.setSize = function (e, t) { return h.style.width = e + "px", h.style.height = t + "px", h }, h.hide = function () { return h.pause(), h.style.display = "none", h }, h.show = function () { return h.style.display = "", h }, h.destroy = function () { null !== f && (f.stopLoad(), f.destroy()) }; var _ = (0, l.createEvent)("rendererready", h); return t.dispatchEvent(_), t.promises.push(m.load({ options: s.hls, id: c })), h } }) }, { 26: 26, 27: 27, 28: 28, 3: 3, 30: 30, 8: 8, 9: 9 }], 24: [function (e) { 'use strict';
12 function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(3), i = t(n), a = e(2), s = t(a), o = e(8), r = t(o), l = e(9), d = e(28), u = e(26), c = { name: "html5", options: { prefix: "html5" }, canPlayType: function (e) { var t = s.default.createElement("video"); return u.IS_ANDROID && /\/mp(3|4)$/i.test(e) || ~["application/x-mpegurl", "vnd.apple.mpegurl", "audio/mpegurl", "audio/hls", "video/hls"].indexOf(e.toLowerCase()) && u.SUPPORTS_NATIVE_HLS ? "yes" : t.canPlayType ? t.canPlayType(e.toLowerCase()).replace(/no/, "") : "" }, create: function (t, n, a) { var o = t.id + "_" + n.prefix, u = !1, c = null; void 0 === t.originalNode || null === t.originalNode ? (c = s.default.createElement("audio"), t.appendChild(c)) : c = t.originalNode, c.setAttribute("id", o); for (var m = r.default.html5media.properties, p = function (e) { var t = "" + e.substring(0, 1).toUpperCase() + e.substring(1); c["get" + t] = function () { return c[e] }, c["set" + t] = function (t) { -1 === r.default.html5media.readOnlyProperties.indexOf(e) && (c[e] = t) } }, f = 0, e = m.length; f < e; f++)p(m[f]); for (var h = r.default.html5media.events.concat(["click", "mouseover", "mouseout"]).filter(function (t) { return "error" !== t }), g = function (e) { c.addEventListener(e, function (n) { if (u) { var e = (0, d.createEvent)(n.type, n.target); t.dispatchEvent(e) } }) }, y = 0, v = h.length; y < v; y++)g(h[y]); c.setSize = function (e, t) { return c.style.width = e + "px", c.style.height = t + "px", c }, c.hide = function () { return u = !1, c.style.display = "none", c }, c.show = function () { return u = !0, c.style.display = "", c }; var E = 0, b = a.length; if (0 < b) for (; E < b; E++)if (l.renderer.renderers[n.prefix].canPlayType(a[E].type)) { c.setAttribute("src", a[E].src); break } c.addEventListener("error", function (n) { n && n.target && n.target.error && 4 === n.target.error.code && u && (E < b && void 0 !== a[E + 1] ? (c.src = a[E++].src, c.load(), c.play()) : t.generateError("Media error: Format(s) not supported or source(s) not found", a)) }); var S = (0, d.createEvent)("rendererready", c); return t.dispatchEvent(S), c } }; i.default.HtmlMediaElement = r.default.HtmlMediaElement = c, l.renderer.add(c) }, { 2: 2, 26: 26, 28: 28, 3: 3, 8: 8, 9: 9 }], 25: [function (e) { 'use strict'; function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(3), a = t(n), s = e(2), o = t(s), r = e(8), l = t(r), d = e(9), u = e(28), c = e(30), m = e(27), p = { isIframeStarted: !1, isIframeLoaded: !1, iframeQueue: [], enqueueIframe: function (e) { p.isLoaded = "undefined" != typeof YT && YT.loaded, p.isLoaded ? p.createIframe(e) : (p.loadIframeApi(), p.iframeQueue.push(e)) }, loadIframeApi: function () { p.isIframeStarted || ((0, m.loadScript)("https://www.youtube.com/player_api"), p.isIframeStarted = !0) }, iFrameReady: function () { for (p.isLoaded = !0, p.isIframeLoaded = !0; 0 < p.iframeQueue.length;) { var e = p.iframeQueue.pop(); p.createIframe(e) } }, createIframe: function (e) { return new YT.Player(e.containerId, e) }, getYouTubeId: function (e) { var t = ""; 0 < e.indexOf("?") ? (t = p.getYouTubeIdFromParam(e), "" === t && (t = p.getYouTubeIdFromUrl(e))) : t = p.getYouTubeIdFromUrl(e); var n = t.substring(t.lastIndexOf("/") + 1); return t = n.split("?"), t[0] }, getYouTubeIdFromParam: function (e) { if (e === void 0 || null === e || !e.trim().length) return null; for (var t, n = e.split("?"), a = n[1].split("&"), s = "", o = 0, r = a.length; o < r; o++)if (t = a[o].split("="), "v" === t[0]) { s = t[1]; break } return s }, getYouTubeIdFromUrl: function (e) { if (void 0 === e || null === e || !e.trim().length) return null; var t = e.split("?"); return e = t[0], e.substring(e.lastIndexOf("/") + 1) }, getYouTubeNoCookieUrl: function (e) { if (void 0 === e || null === e || !e.trim().length || -1 === e.indexOf("//www.youtube")) return e; var t = e.split("/"); return t[2] = t[2].replace(".com", "-nocookie.com"), t.join("/") } }; a.default.onYouTubePlayerAPIReady = function () { p.iFrameReady() }, c.typeChecks.push(function (e) { return /\/\/(www\.youtube|youtu\.?be)/i.test(e) ? "video/x-youtube" : null }), d.renderer.add({ name: "youtube_iframe", options: { prefix: "youtube_iframe", youtube: { autoplay: 0, controls: 0, disablekb: 1, end: 0, loop: 0, modestbranding: 0, playsinline: 0, rel: 0, showinfo: 0, start: 0, iv_load_policy: 3, nocookie: !1, imageQuality: null } }, canPlayType: function (e) { return ~["video/youtube", "video/x-youtube"].indexOf(e.toLowerCase()) }, create: function (t, n, s) { var r = {}, d = [], c = null, m = !0, f = !1, h = null, g = 1; r.options = n, r.id = t.id + "_" + n.prefix, r.mediaElement = t; for (var y = l.default.html5media.properties, v = function (e) { var n = "" + e.substring(0, 1).toUpperCase() + e.substring(1); r["get" + n] = function () { if (null !== c) { switch (e) { case "currentTime": return c.getCurrentTime(); case "duration": return c.getDuration(); case "volume": return g = c.getVolume() / 100, g; case "playbackRate": return c.getPlaybackRate(); case "paused": return m; case "ended": return f; case "muted": return c.isMuted(); case "buffered": var t = c.getVideoLoadedFraction(), n = c.getDuration(); return { start: function () { return 0 }, end: function () { return t * n }, length: 1 }; case "src": return c.getVideoUrl(); case "readyState": return 4; }return null } return null }, r["set" + n] = function (n) { if (null !== c) switch (e) { case "src": var i = "string" == typeof n ? n : n[0].src, a = p.getYouTubeId(i); t.originalNode.autoplay ? c.loadVideoById(a) : c.cueVideoById(a); break; case "currentTime": c.seekTo(n); break; case "muted": n ? c.mute() : c.unMute(), setTimeout(function () { var e = (0, u.createEvent)("volumechange", r); t.dispatchEvent(e) }, 50); break; case "volume": g = n, c.setVolume(100 * n), setTimeout(function () { var e = (0, u.createEvent)("volumechange", r); t.dispatchEvent(e) }, 50); break; case "playbackRate": c.setPlaybackRate(n), setTimeout(function () { var e = (0, u.createEvent)("ratechange", r); t.dispatchEvent(e) }, 50); break; case "readyState": var s = (0, u.createEvent)("canplay", r); t.dispatchEvent(s); break; default: } else d.push({ type: "set", propName: e, value: n }) } }, E = 0, e = y.length; E < e; E++)v(y[E]); for (var b = l.default.html5media.methods, S = function (e) { r[e] = function () { if (null !== c) switch (e) { case "play": return m = !1, c.playVideo(); case "pause": return m = !0, c.pauseVideo(); case "load": return null; } else d.push({ type: "call", methodName: e }) } }, x = 0, P = b.length; x < P; x++)S(b[x]); var _ = function (e) { var n = "";
12 switch (e.data) { case 2: n = "The request contains an invalid parameter value. Verify that video ID has 11 characters and that contains no invalid characters, such as exclamation points or asterisks."; break; case 5: n = "The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred."; break; case 100: n = "The video requested was not found. Either video has been removed or has been marked as private."; break; case 101: case 105: n = "The owner of the requested video does not allow it to be played in embedded players."; break; default: n = "Unknown error."; }t.generateError("Code " + e.data + ": " + n, s) }, C = o.default.createElement("div"); C.id = r.id, r.options.youtube.nocookie && (t.originalNode.src = p.getYouTubeNoCookieUrl(s[0].src)), t.originalNode.parentNode.insertBefore(C, t.originalNode), t.originalNode.style.display = "none"; var T = "audio" === t.originalNode.tagName.toLowerCase(), k = T ? "1" : t.originalNode.height, w = T ? "1" : t.originalNode.width, N = p.getYouTubeId(s[0].src), A = { id: r.id, containerId: C.id, videoId: N, height: k, width: w, host: r.options.youtube && r.options.youtube.nocookie ? "https://www.youtube-nocookie.com" : void 0, playerVars: Object.assign({ controls: 0, rel: 0, disablekb: 1, showinfo: 0, modestbranding: 0, html5: 1, iv_load_policy: 3 }, r.options.youtube), origin: a.default.location.host, events: { onReady: function (n) { if (t.youTubeApi = c = n.target, t.youTubeState = { paused: !0, ended: !1 }, d.length) for (var e, i = 0, a = d.length; i < a; i++)if (e = d[i], "set" === e.type) { var s = e.propName, o = "" + s.substring(0, 1).toUpperCase() + s.substring(1); r["set" + o](e.value) } else "call" === e.type && r[e.methodName](); h = c.getIframe(), t.originalNode.muted && c.mute(); for (var l = ["mouseover", "mouseout"], m = function (n) { var e = (0, u.createEvent)(n.type, r); t.dispatchEvent(e) }, p = 0, f = l.length; p < f; p++)h.addEventListener(l[p], m, !1); for (var g, y = ["rendererready", "loadedmetadata", "loadeddata", "canplay"], v = 0, E = y.length; v < E; v++)g = (0, u.createEvent)(y[v], r), t.dispatchEvent(g) }, onStateChange: function (n) { var e = []; switch (n.data) { case -1: e = ["loadedmetadata"], m = !0, f = !1; break; case 0: e = ["ended"], m = !1, f = !r.options.youtube.loop, r.options.youtube.loop || r.stopInterval(); break; case 1: e = ["play", "playing"], m = !1, f = !1, r.startInterval(); break; case 2: e = ["pause"], m = !0, f = !1, r.stopInterval(); break; case 3: e = ["progress"], f = !1; break; case 5: e = ["loadeddata", "loadedmetadata", "canplay"], m = !0, f = !1; }for (var i, a = 0, s = e.length; a < s; a++)i = (0, u.createEvent)(e[a], r), t.dispatchEvent(i) }, onError: function (t) { return _(t) } } }; return (T || t.originalNode.hasAttribute("playsinline")) && (A.playerVars.playsinline = 1), t.originalNode.controls && (A.playerVars.controls = 1), t.originalNode.autoplay && (A.playerVars.autoplay = 1), t.originalNode.loop && (A.playerVars.loop = 1), (A.playerVars.loop && 1 === parseInt(A.playerVars.loop, 10) || -1 < t.originalNode.src.indexOf("loop=")) && !A.playerVars.playlist && -1 === t.originalNode.src.indexOf("playlist=") && (A.playerVars.playlist = p.getYouTubeId(t.originalNode.src)), p.enqueueIframe(A), r.onEvent = function (e, n, i) { null !== i && void 0 !== i && (t.youTubeState = i) }, r.setSize = function (e, t) { null !== c && c.setSize(e, t) }, r.hide = function () { r.stopInterval(), r.pause(), h && (h.style.display = "none") }, r.show = function () { h && (h.style.display = "") }, r.destroy = function () { c.destroy() }, r.interval = null, r.startInterval = function () { r.interval = setInterval(function () { var e = (0, u.createEvent)("timeupdate", r); t.dispatchEvent(e) }, 250) }, r.stopInterval = function () { r.interval && clearInterval(r.interval) }, r.getPosterUrl = function () { var e = n.youtube.imageQuality, i = p.getYouTubeId(t.originalNode.src); return e && -1 < ["default", "hqdefault", "mqdefault", "sddefault", "maxresdefault"].indexOf(e) && i ? "https://img.youtube.com/vi/" + i + "/" + e + ".jpg" : "" }, r } }) }, { 2: 2, 27: 27, 28: 28, 3: 3, 30: 30, 8: 8, 9: 9 }], 26: [function (e, t, n) { 'use strict';
vendor: 4,725 bytes, line 12
12 function a(e) { return e && e.__esModule ? e : { default: e } } Object.defineProperty(n, "__esModule", { value: !0 }), n.cancelFullScreen = n.requestFullScreen = n.isFullScreen = n.FULLSCREEN_EVENT_NAME = n.HAS_NATIVE_FULLSCREEN_ENABLED = n.HAS_TRUE_NATIVE_FULLSCREEN = n.HAS_IOS_FULLSCREEN = n.HAS_MS_NATIVE_FULLSCREEN = n.HAS_MOZ_NATIVE_FULLSCREEN = n.HAS_WEBKIT_NATIVE_FULLSCREEN = n.HAS_NATIVE_FULLSCREEN = n.SUPPORTS_NATIVE_HLS = n.SUPPORT_PASSIVE_EVENT = n.SUPPORT_POINTER_EVENTS = n.HAS_MSE = n.IS_STOCK_ANDROID = n.IS_SAFARI = n.IS_FIREFOX = n.IS_CHROME = n.IS_EDGE = n.IS_IE = n.IS_ANDROID = n.IS_IOS = n.IS_IPOD = n.IS_IPHONE = n.IS_IPAD = n.UA = n.NAV = void 0; for (var s = e(3), o = a(s), r = e(2), l = a(r), d = e(8), u = a(d), c = n.NAV = o.default.navigator, m = n.UA = c.userAgent.toLowerCase(), p = n.IS_IPAD = /ipad/i.test(m) && !o.default.MSStream, f = n.IS_IPHONE = /iphone/i.test(m) && !o.default.MSStream, h = n.IS_IPOD = /ipod/i.test(m) && !o.default.MSStream, g = n.IS_IOS = /ipad|iphone|ipod/i.test(m) && !o.default.MSStream, y = n.IS_ANDROID = /android/i.test(m), v = n.IS_IE = /(trident|microsoft)/i.test(c.appName), E = n.IS_EDGE = ("msLaunchUri" in c) && !("documentMode" in l.default), b = n.IS_CHROME = /chrome/i.test(m), S = n.IS_FIREFOX = /firefox/i.test(m), x = n.IS_SAFARI = /safari/i.test(m) && !b, P = n.IS_STOCK_ANDROID = /^mozilla\/\d+\.\d+\s\(linux;\su;/i.test(m), _ = n.HAS_MSE = ("MediaSource" in o.default), C = n.SUPPORT_POINTER_EVENTS = function () { var e = l.default.createElement("x"), t = l.default.documentElement, n = o.default.getComputedStyle; if (!("pointerEvents" in e.style)) return !1; e.style.pointerEvents = "auto", e.style.pointerEvents = "x", t.appendChild(e); var i = n && "auto" === (n(e, "") || {}).pointerEvents; return e.remove(), !!i }(), T = n.SUPPORT_PASSIVE_EVENT = function () { var e = !1; try { var t = Object.defineProperty({}, "passive", { get: function () { e = !0 } }); o.default.addEventListener("test", null, t) } catch (t) { } return e }(), k = ["source", "track", "audio", "video"], w = void 0, N = 0, A = k.length; N < A; N++)w = l.default.createElement(k[N]); var L = n.SUPPORTS_NATIVE_HLS = x || v && /edge/i.test(m), F = w.webkitEnterFullscreen !== void 0, I = w.requestFullscreen !== void 0; F && /mac os x 10_5/i.test(m) && (I = !1, F = !1); var j = w.webkitRequestFullScreen !== void 0, M = w.mozRequestFullScreen !== void 0, O = w.msRequestFullscreen !== void 0, D = j || M || O, V = D, R = "", H = void 0, U = void 0, q = void 0; M ? V = l.default.mozFullScreenEnabled : O && (V = l.default.msFullscreenEnabled), b && (F = !1), D && (j ? R = "webkitfullscreenchange" : M ? R = "fullscreenchange" : O && (R = "MSFullscreenChange"), n.isFullScreen = H = function () { if (M) return l.default.mozFullScreen; return j ? l.default.webkitIsFullScreen : O ? null !== l.default.msFullscreenElement : void 0 }, n.requestFullScreen = U = function (e) { j ? e.webkitRequestFullScreen() : M ? e.mozRequestFullScreen() : O && e.msRequestFullscreen() }, n.cancelFullScreen = q = function () { j ? l.default.webkitCancelFullScreen() : M ? l.default.mozCancelFullScreen() : O && l.default.msExitFullscreen() }); var B = n.HAS_NATIVE_FULLSCREEN = I, z = n.HAS_WEBKIT_NATIVE_FULLSCREEN = j, W = n.HAS_MOZ_NATIVE_FULLSCREEN = M, K = n.HAS_MS_NATIVE_FULLSCREEN = O, X = n.HAS_IOS_FULLSCREEN = F, Y = n.HAS_TRUE_NATIVE_FULLSCREEN = D, G = n.HAS_NATIVE_FULLSCREEN_ENABLED = V, $ = n.FULLSCREEN_EVENT_NAME = R; n.isFullScreen = H, n.requestFullScreen = U, n.cancelFullScreen = q, u.default.Features = u.default.Features || {}, u.default.Features.isiPad = p, u.default.Features.isiPod = h, u.default.Features.isiPhone = f, u.default.Features.isiOS = u.default.Features.isiPhone || u.default.Features.isiPad, u.default.Features.isAndroid = y, u.default.Features.isIE = v, u.default.Features.isEdge = E, u.default.Features.isChrome = b, u.default.Features.isFirefox = S, u.default.Features.isSafari = x, u.default.Features.isStockAndroid = P, u.default.Features.hasMSE = _, u.default.Features.supportsNativeHLS = L, u.default.Features.supportsPointerEvents = C, u.default.Features.supportsPassiveEvent = T, u.default.Features.hasiOSFullScreen = X, u.default.Features.hasNativeFullscreen = B, u.default.Features.hasWebkitNativeFullScreen = z, u.default.Features.hasMozNativeFullScreen = W, u.default.Features.hasMsNativeFullScreen = K, u.default.Features.hasTrueNativeFullScreen = Y, u.default.Features.nativeFullScreenEnabled = G, u.default.Features.fullScreenEventName = $, u.default.Features.isFullScreen = H, u.default.Features.requestFullScreen = U, u.default.Features.cancelFullScreen = q }, { 2: 2, 3: 3, 8: 8 }], 27: [function (e, t, n) { 'use strict';
12 function i(e) { return e && e.__esModule ? e : { default: e } } function a(e) { return new Promise(function (t, n) { var i = h.default.createElement("script"); i.src = e, i.async = !0, i.onload = function () { i.remove(), t() }, i.onerror = function () { i.remove(), n() }, h.default.head.appendChild(i) }) } function s(e) { var t = e.getBoundingClientRect(), n = p.default.pageXOffset || h.default.documentElement.scrollLeft, i = p.default.pageYOffset || h.default.documentElement.scrollTop; return { top: t.top + i, left: t.left + n } } function o(e, t) { S(e, t) ? P(e, t) : x(e, t) } function r(e) { var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : 400, n = arguments[2]; e.style.opacity || (e.style.opacity = 1); var i = null; p.default.requestAnimationFrame(function a(s) { i = i || s; var o = s - i, r = parseFloat(1 - o / t, 2); e.style.opacity = 0 > r ? 0 : r, o > t ? n && "function" == typeof n && n() : p.default.requestAnimationFrame(a) }) } function l(e) { var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : 400, n = arguments[2]; e.style.opacity || (e.style.opacity = 0); var i = null; p.default.requestAnimationFrame(function a(s) { i = i || s; var o = s - i, r = parseFloat(o / t, 2); e.style.opacity = 1 < r ? 1 : r, o > t ? n && "function" == typeof n && n() : p.default.requestAnimationFrame(a) }) } function d(e, t) { var n = []; e = e.parentNode.firstChild; do (!t || t(e)) && n.push(e); while (e = e.nextSibling); return n } function u(e) { return void 0 !== e.getClientRects && "function" === e.getClientRects ? !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length) : !!(e.offsetWidth || e.offsetHeight) } function c(e, t, n, i) { var a = p.default.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"), s = "application/x-www-form-urlencoded; charset=UTF-8", o = !1, r = "*/".concat("*"); "text" === t ? s = "text/plain" : "json" === t ? s = "application/json, text/javascript" : "html" === t ? s = "text/html" : "xml" === t ? s = "application/xml, text/xml" : void 0; "application/x-www-form-urlencoded" !== s && (r = s + ", */*; q=0.01"), a && (a.open("GET", e, !0), a.setRequestHeader("Accept", r), a.onreadystatechange = function () { if (!o && 4 === a.readyState) if (200 === a.status) { o = !0; var e; e = "json" === t ? JSON.parse(a.responseText) : "xml" === t ? a.responseXML : a.responseText, n(e) } else "function" == typeof i && i(a.status) }, a.send()) } Object.defineProperty(n, "__esModule", { value: !0 }), n.removeClass = n.addClass = n.hasClass = void 0, n.loadScript = a, n.offset = s, n.toggleClass = o, n.fadeOut = r, n.fadeIn = l, n.siblings = d, n.visible = u, n.ajax = c; var m = e(3), p = i(m), f = e(2), h = i(f), g = e(8), y = i(g), v = void 0, E = void 0, b = void 0; "classList" in h.default.documentElement ? (v = function (e, t) { return e.classList !== void 0 && e.classList.contains(t) }, E = function (e, t) { return e.classList.add(t) }, b = function (e, t) { return e.classList.remove(t) }) : (v = function (e, t) { return new RegExp("\\b" + t + "\\b").test(e.className) }, E = function (e, t) { S(e, t) || (e.className += " " + t) }, b = function (e, t) { e.className = e.className.replace(new RegExp("\\b" + t + "\\b", "g"), "") }); var S = n.hasClass = v, x = n.addClass = E, P = n.removeClass = b; y.default.Utils = y.default.Utils || {}, y.default.Utils.offset = s, y.default.Utils.hasClass = S, y.default.Utils.addClass = x, y.default.Utils.removeClass = P, y.default.Utils.toggleClass = o, y.default.Utils.fadeIn = l, y.default.Utils.fadeOut = r, y.default.Utils.siblings = d, y.default.Utils.visible = u, y.default.Utils.ajax = c, y.default.Utils.loadScript = a }, { 2: 2, 3: 3, 8: 8 }], 28: [function (e, t, n) { 'use strict'; function i(e) { if ("string" != typeof e) throw new Error("Argument passed must be a string"); var t = { "&": "&", "<": "<", ">": ">", '"': """ }; return e.replace(/[&<>"]/g, function (e) { return t[e] }) } function a(e, t) { var n = this, i = arguments, a = !!(2 < arguments.length && arguments[2] !== void 0) && arguments[2]; if ("function" != typeof e) throw new Error("First argument must be a function"); if ("number" != typeof t) throw new Error("Second argument must be a numeric value"); var s; return function () { var o = n, r = i, l = a && !s; clearTimeout(s), s = setTimeout(function () { s = null, a || e.apply(o, r) }, t), l && e.apply(o, r) } } function s(e) { return 0 >= Object.getOwnPropertyNames(e).length } function o(e, t) { var n = { d: [], w: [] }; return (e || "").split(" ").forEach(function (e) { var i = "" + e + (t ? "." + t : ""); i.startsWith(".") ? (n.d.push(i), n.w.push(i)) : n[/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/.test(e) ? "w" : "d"].push(i) }), n.d = n.d.join(" "), n.w = n.w.join(" "), n } function r(e, t) { if ("string" != typeof e) throw new Error("Event name must be a string"); var n = e.match(/([a-z]+\.([a-z]+))/i), i = { target: t }; return null !== n && (e = n[1], i.namespace = n[2]), new window.CustomEvent(e, { detail: i }) } function l(e, t) { return !!(e && t && 2 & e.compareDocumentPosition(t)) } function d(e) { return "string" == typeof e } Object.defineProperty(n, "__esModule", { value: !0 }), n.escapeHTML = i, n.debounce = a, n.isObjectEmpty = s, n.splitEvents = o, n.createEvent = r, n.isNodeAfter = l, n.isString = d;
12 var u = e(8), c = function (e) { return e && e.__esModule ? e : { default: e } }(u); c.default.Utils = c.default.Utils || {}, c.default.Utils.escapeHTML = i, c.default.Utils.debounce = a, c.default.Utils.isObjectEmpty = s, c.default.Utils.splitEvents = o, c.default.Utils.createEvent = r, c.default.Utils.isNodeAfter = l, c.default.Utils.isString = d }, { 8: 8 }], 29: [function (e, t, n) { 'use strict'; function i(e, t, n, i, a, s) { var o = 6 < arguments.length && arguments[6] !== void 0 ? arguments[6] : null, r = 7 < arguments.length && arguments[7] !== void 0 ? arguments[7] : "", l = 8 < arguments.length && arguments[8] !== void 0 ? arguments[8] : null; if ("string" != typeof e) throw new Error("`ariaControls` argument must be a string"); if ("string" != typeof t) throw new Error("`ariaLabel` argument must be a string"); if ("string" != typeof n) throw new Error("`title` argument must be a string"); if ("string" != typeof i) throw new Error("`iconSprite` argument must be a string"); if ("string" != typeof r) throw new Error("`ariaDescribedby` argument must be a string"); if (!Array.isArray(a)) throw new Error("`icons` argument must be an array"); if ("string" != typeof s) throw new Error("`classPrefix` argument must be a string"); var d = o ? "class=\"" + o + "\" " : "", u = "" === r ? "" : "aria-describedby=\"" + r + "\" ", c = null === l ? "" : "aria-pressed=\"" + l + "\"", m = a.map(function (t) { return "<svg xmlns=\"http://www.w3.org/2000/svg\" id=\"" + e + "-" + t + "\" class=\"" + s + t + "\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t\t<use xlink:href=\"" + i + "#" + t + "\"></use>\n\t\t\t</svg>\n" }); return "<button " + d + " type=\"button\" aria-controls=\"" + e + "\" title=\"" + n + "\" aria-label=\"" + t + "\" " + u + " " + c + ">\n\t\t\t" + m.join("") + "\n\t\t</button>" } Object.defineProperty(n, "__esModule", { value: !0 }), n.generateControlButton = i; var a = e(8), s = function (e) { return e && e.__esModule ? e : { default: e } }(a); s.default.Utils = s.default.Utils || {}, s.default.Utils.generateControlButton = i }, { 8: 8 }], 30: [function (e, t, n) { 'use strict'; function i(e) { if ("string" != typeof e) throw new Error("`url` argument must be a string"); var t = document.createElement("div"); return t.innerHTML = "<a href=\"" + (0, c.escapeHTML)(e) + "\">x</a>", t.firstChild.href } function a(e) { var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : ""; return e && !t ? o(e) : t } function s(e) { if ("string" != typeof e) throw new Error("`type` argument must be a string"); return e && -1 < e.indexOf(";") ? e.substr(0, e.indexOf(";")) : e } function o(e) { if ("string" != typeof e) throw new Error("`url` argument must be a string"); for (var t, n = 0, a = m.length; n < a; n++)if (t = m[n](e), t) return t; var s = r(e), o = l(s), d = "video/mp4"; return o && (~["mp4", "m4v", "ogg", "ogv", "webm", "flv", "mpeg"].indexOf(o) ? d = "video/" + o : "mov" === o ? d = "video/quicktime" : ~["mp3", "oga", "wav", "mid", "midi"].indexOf(o) && (d = "audio/" + o)), d } function r(e) { if ("string" != typeof e) throw new Error("`url` argument must be a string"); var t = e.split("?")[0], n = t.split("\\").pop().split("/").pop(); return ~n.indexOf(".") ? n.substring(n.lastIndexOf(".") + 1) : "" } function l(e) { if ("string" != typeof e) throw new Error("`extension` argument must be a string"); return "mp4" === e || "m4v" === e ? "mp4" : "webm" === e || "webma" === e || "webmv" === e ? "webm" : "ogg" === e || "oga" === e || "ogv" === e ? "ogg" : e } Object.defineProperty(n, "__esModule", { value: !0 }), n.typeChecks = void 0, n.absolutizeUrl = i, n.formatType = a, n.getMimeFromType = s, n.getTypeFromFile = o, n.getExtension = r, n.normalizeExtension = l; var d = e(8), u = function (e) { return e && e.__esModule ? e : { default: e } }(d), c = e(28), m = n.typeChecks = []; u.default.Utils = u.default.Utils || {}, u.default.Utils.typeChecks = m, u.default.Utils.absolutizeUrl = i, u.default.Utils.formatType = a, u.default.Utils.getMimeFromType = s, u.default.Utils.getTypeFromFile = o, u.default.Utils.getExtension = r, u.default.Utils.normalizeExtension = l }, { 28: 28, 8: 8 }], 31: [function (e) { 'use strict';
12 function t(e) { return e && e.__esModule ? e : { default: e } } var n = e(2), i = t(n), a = e(4), s = t(a), o = e(5), r = t(o); if (function (e) { e.forEach(function (e) { e.hasOwnProperty("remove") || Object.defineProperty(e, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function () { this.parentNode.removeChild(this) } }) }) }([Element.prototype, CharacterData.prototype, DocumentType.prototype]), function () { function e(e, t) { t = t || { bubbles: !1, cancelable: !1, detail: void 0 }; var n = i.default.createEvent("CustomEvent"); return n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), n } return "function" != typeof window.CustomEvent && void (e.prototype = window.Event.prototype, window.CustomEvent = e) }(), "function" != typeof Object.assign && (Object.assign = function (e) { if (null === e || void 0 === e) throw new TypeError("Cannot convert undefined or null to object"); for (var t, n = Object(e), i = 1, a = arguments.length; i < a; i++)if (t = arguments[i], null !== t) for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && (n[s] = t[s]); return n }), String.prototype.startsWith || (String.prototype.startsWith = function (e, t) { return t = t || 0, this.substr(t, e.length) === e }), Element.prototype.matches || (Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector || function (e) { for (var t = (this.document || this.ownerDocument).querySelectorAll(e), n = t.length - 1; 0 <= --n && t.item(n) !== this;); return -1 < n }), window.Element && !Element.prototype.closest && (Element.prototype.closest = function (e) { var t, n = (this.document || this.ownerDocument).querySelectorAll(e), a = this; do for (t = n.length; 0 <= --t && n.item(t) !== a;); while (0 > t && (a = a.parentElement)); return a }), function () { for (var e = 0, t = ["ms", "moz", "webkit", "o"], n = 0; n < t.length && !window.requestAnimationFrame; ++n)window.requestAnimationFrame = window[t[n] + "RequestAnimationFrame"], window.cancelAnimationFrame = window[t[n] + "CancelAnimationFrame"] || window[t[n] + "CancelRequestAnimationFrame"]; window.requestAnimationFrame || (window.requestAnimationFrame = function (t) { var n = new Date().getTime(), i = Math.max(0, 16 - (n - e)), a = window.setTimeout(function () { t(n + i) }, i); return e = n + i, a }), window.cancelAnimationFrame || (window.cancelAnimationFrame = function (e) { clearTimeout(e) }) }(), /firefox/i.test(navigator.userAgent)) { var l = window.getComputedStyle; window.getComputedStyle = function (e, n) { var i = l(e, n); return null === i ? { getPropertyValue: function () { } } : i } } window.Promise || (window.Promise = s.default), (0, r.default)(), function (e) { e && e.prototype && null === e.prototype.children && Object.defineProperty(e.prototype, "children", { get: function () { for (var e, t = 0, n = this.childNodes, a = []; e = n[t++];)1 === e.nodeType && a.push(e); return a } }) }(window.Node || window.Element) }, { 2: 2, 4: 4, 5: 5 }], 32: [function (e, t, n) { 'use strict'; function a() { var e = 0 < arguments.length && arguments[0] !== void 0 ? arguments[0] : 25; return 0 != e % 1 } function s(e) { var n = !!(1 < arguments.length && void 0 !== arguments[1]) && arguments[1], s = !!(2 < arguments.length && void 0 !== arguments[2]) && arguments[2], o = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : 25, r = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 0, l = 5 < arguments.length && void 0 !== arguments[5] ? arguments[5] : "hh:mm:ss"; e = !e || "number" != typeof e || 0 > e ? 0 : e; var u, c, p, h, g = Math.round(.066666 * o), y = Math.round(o), v = 24 * Math.round(3600 * o), E = Math.round(600 * o), b = a(o) ? ";" : ":", S = Math.round(e * o); if (a(o)) { 0 > S && (S = v + S), S %= v; var x = Math.floor(S / E), d = S % E; S += 9 * g * x, d > g && (S += g * Math.floor((d - g) / Math.round(60 * y - g))); var m = Math.floor(S / y); u = Math.floor(Math.floor(m / 60) / 60), c = Math.floor(m / 60) % 60, p = s ? m % 60 : Math.floor(S / y % 60).toFixed(r) } else u = Math.floor(e / 3600) % 24, c = Math.floor(e / 60) % 60, p = s ? Math.floor(e % 60) : Math.floor(e % 60).toFixed(r); u = 0 >= u ? 0 : u, c = 0 >= c ? 0 : c, p = 0 >= p ? 0 : p, p = 60 === p ? 0 : p, c = 60 == c ? 0 : c; for (var P, _ = l.split(":"), C = {}, T = 0, k = _.length; T < k; ++T) { P = ""; for (var w = 0, N = _[T].length; w < N; w++)0 > P.indexOf(_[T][w]) && (P += _[T][w]); ~["f", "s", "m", "h"].indexOf(P) && (C[P] = _[T].length) } var t = n || 0 < u ? (10 > u && 1 < C.h ? "0" + u : u) + ":" : ""; return t += (10 > c && 1 < C.m ? "0" + c : c) + ":", t += "" + (10 > p && 1 < C.s ? "0" + p : p), s && (h = (S % y).toFixed(0), h = 0 >= h ? 0 : h, t += 10 > h && C.f ? b + "0" + h : "" + b + h), t } function o(e) { var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 25; if ("string" != typeof e) throw new TypeError("Time must be a string"); if (0 < e.indexOf(";") && (e = e.replace(";", ":")), !/\d{2}(\:\d{2}){0,3}/i.test(e)) throw new TypeError("Time code must have the format `00:00:00`"); var n = e.split(":"), i = void 0, s = 0, o = 0, r = 0, l = 0, d = 0, u = Math.round(.066666 * t), c = Math.round(t), m = 3600 * c, p = 60 * c; switch (n.length) { default: case 1: r = parseInt(n[0], 10); break; case 2: o = parseInt(n[0], 10), r = parseInt(n[1], 10); break; case 3: s = parseInt(n[0], 10), o = parseInt(n[1], 10), r = parseInt(n[2], 10); break; case 4: s = parseInt(n[0], 10), o = parseInt(n[1], 10), r = parseInt(n[2], 10), l = parseInt(n[3], 10); }return a(t) ? (d = 60 * s + o, i = m * s + p * o + c * r + l - u * (d - Math.floor(d / 10))) : i = (m * s + p * o + t * r + l) / t, parseFloat(i.toFixed(3)) } function r(e, t) { var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : 25; e = !e || "number" != typeof e || 0 > e ? 0 : e; for (var a = Math.floor(e / 3600) % 24, s = Math.floor(e / 60) % 60, o = Math.floor(e % 60), r = Math.floor((e % 1 * n).toFixed(3)), l = [[r, "f"], [o, "s"], [s, "m"], [a, "h"]], d = t.timeFormat, u = d[1] === d[0], c = u ? 2 : 1, m = d.length < c ? d[c] : ":", p = d[0], f = !1, h = 0, g = l.length; h < g; h++)if (~d.indexOf(l[h][1])) f = !0; else if (f) { for (var y = !1, v = h; v < g; v++)if (0 < l[v][0]) { y = !0; break } if (!y) break; u || (d = p + d), d = l[h][1] + m + d, u && (d = l[h][1] + d), p = l[h][1] } t.timeFormat = d } function l(e) { if ("string" != typeof e) throw new TypeError("Argument must be a string value"); e = e.replace(",", "."); var t = ~e.indexOf(".") ? e.split(".")[1].length : 0, n = 0, a = 1; e = e.split(":").reverse(); for (var s = 0, o = e.length; s < o; s++)a = 1, 0 < s && (a = Math.pow(60, s)), n += +e[s] * a; return +n.toFixed(t) } Object.defineProperty(n, "__esModule", { value: !0 }), n.isDropFrame = a, n.secondsToTimeCode = s, n.timeCodeToSeconds = o, n.calculateTimeFormat = r, n.convertSMPTEtoSeconds = l;
12 var d = e(8), u = function (e) { return e && e.__esModule ? e : { default: e } }(d); u.default.Utils = u.default.Utils || {}, u.default.Utils.secondsToTimeCode = s, u.default.Utils.timeCodeToSeconds = o, u.default.Utils.calculateTimeFormat = r, u.default.Utils.convertSMPTEtoSeconds = l }, { 8: 8 }] }, {}, [31, 7, 6, 16, 24, 21, 20, 22, 23, 25, 17, 19, 18, 10, 11, 12, 13, 14, 15]); 13 14/*! 15 * MediaElement.js - Ads 16 * http://www.mediaelementjs.com/ 17 * 18 * Wrapper that mimics native HTML5 MediaElement (audio and video) 19 * using a variety of technologies (pure JavaScript, Flash, iframe) 20 * 21 * Copyright 2010-2017, John Dyer (http://j.hn/) 22 * License: MIT 23 * 24 */ 25!function i(o, n, d) { function l(r, e) { if (!n[r]) { if (!o[r]) { var a = "function" == typeof require && require; if (!e && a) return a(r, !0); if (c) return c(r, !0); var s = new Error("Cannot find module '" + r + "'"); throw s.code = "MODULE_NOT_FOUND", s } var t = n[r] = { exports: {} }; o[r][0].call(t.exports, function (e) { return l(o[r][1][e] || e) }, t, t.exports, i, o, n, d) } return n[r].exports } for (var c = "function" == typeof require && require, e = 0; e < d.length; e++)l(d[e]); return l }({ 1: [function (e, r, a) { "use strict"; wpcp_mejs.i18n.en["wpcp_mejs.ad-skip"] = "Skip ad", wpcp_mejs.i18n.en["wpcp_mejs.ad-skip-info"] = ["Skip in 1 second", "Skip in %1 seconds"], Object.assign(w
vendor: 9,477 bytes, lines 25-38
25pcp_mejs.MepDefaults, { adsPrerollMediaUrl: [], adsPrerollAdUrl: [], adsPrerollAdEnableSkip: !1, adsPrerollAdSkipSeconds: -1, indexPreroll: 0 }), Object.assign(WPCPMediaElementPlayer.prototype, { adsLoaded: !1, adsDataIsLoading: !1, adsCurrentMediaUrl: "", adsCurrentMediaDuration: 0, adsPlayerHasStarted: !1, buildads: function (e, r, a) { var s = this; s.adsLoaded || (s.adsLoaded = !0, e.adsLayer = document.createElement("div"), e.adsLayer.className = s.options.classPrefix + "layer " + s.options.classPrefix + "overlay " + s.options.classPrefix + "ads", e.adsLayer.innerHTML = '<a href="#" target="_blank"></a><div class="' + s.options.classPrefix + 'ads-skip-block"><span class="' + s.options.classPrefix + 'ads-skip-message"></span><span class="' + s.options.classPrefix + 'ads-skip-button">' + wpcp_mejs.i18n.t("wpcp_mejs.ad-skip") + "</span></div>", e.adsLayer.style.display = "none", a.insertBefore(e.adsLayer, a.querySelector("." + s.options.classPrefix + "overlay-play")), e.adsLayer.querySelector("a").addEventListener("click", s.adsAdClick.bind(s)), e.adsSkipBlock = e.adsLayer.querySelector("." + s.options.classPrefix + "ads-skip-block"), e.adsSkipBlock.style.display = "none", e.adsSkipMessage = e.adsLayer.querySelector("." + s.options.classPrefix + "ads-skip-message"), e.adsSkipMessage.style.display = "none", e.adsSkipButton = e.adsLayer.querySelector("." + s.options.classPrefix + "ads-skip-button"), e.adsSkipButton.addEventListener("click", s.adsSkipClick.bind(s)), s.adsMediaTryingToStartProxy = s.adsMediaTryingToStart.bind(s), s.adsPrerollStartedProxy = s.adsPrerollStarted.bind(s), s.adsPrerollMetaProxy = s.adsPrerollMeta.bind(s), s.adsPrerollUpdateProxy = s.adsPrerollUpdate.bind(s), s.adsPrerollVolumeProxy = s.adsPrerollVolume.bind(s), s.adsPrerollEndedProxy = s.adsPrerollEnded.bind(s), s.media.addEventListener("rendererready", function () { var e = s.media.querySelector("iframe"); e && (e.style.display = "none") }), s.media.addEventListener("play", s.adsMediaTryingToStartProxy), s.media.addEventListener("playing", s.adsMediaTryingToStartProxy), s.media.addEventListener("canplay", s.adsMediaTryingToStartProxy), s.media.addEventListener("loadedmetadata", s.adsMediaTryingToStartProxy), s.options.indexPreroll < s.options.adsPrerollMediaUrl.length && s.adsStartPreroll()) }, adsMediaTryingToStart: function () { var e = this; e.adsDataIsLoading && !e.paused && e.options.indexPreroll < e.options.adsPrerollMediaUrl.length && e.pause(), e.adsPlayerHasStarted = !0 }, adsStartPreroll: function () { var e = this; e.media.addEventListener("loadedmetadata", e.adsPrerollMetaProxy), e.media.addEventListener("playing", e.adsPrerollStartedProxy), e.media.addEventListener("ended", e.adsPrerollEndedProxy), e.media.addEventListener("timeupdate", e.adsPrerollUpdateProxy), e.media.addEventListener("volumechange", e.adsPrerollVolumeProxy), 0 === e.options.indexPreroll && (e.adsCurrentMediaUrl = e.media.originalNode.src, e.adsCurrentMediaDuration = e.duration), e.setSrc(e.options.adsPrerollMediaUrl[e.options.indexPreroll]), e.load(); for (var r = e.container.querySelector("." + e.options.classPrefix + "controls").children, a = 0, s = r.length; a < s; a++) { var t = r[a], i = t.querySelector("button"); !i || wpcp_mejs.Utils.hasClass(t, e.options.classPrefix + "playpause-button") || wpcp_mejs.Utils.hasClass(t, e.options.classPrefix + "chromecast-button") ? t.querySelector("." + e.options.classPrefix + "time-slider") && (t.querySelector("." + e.options.classPrefix + "time-slider").style.pointerEvents = "none") : (i.disabled = !0, t.style.pointerEvents = "none") } e.adsPlayerHasStarted && setTimeout(function () { e.play() }, 100) }, adsPrerollMeta: function () { var e = this, r = 0; 0 < e.options.duration ? r = e.options.duration : isNaN(e.adsCurrentMediaDuration) || (r = e.adsCurrentMediaDuration), e.controls.querySelector("." + e.options.classPrefix + "duration") && setTimeout(function () { e.controls.querySelector("." + e.options.classPrefix + "duration").innerHTML = wpcp_mejs.Utils.secondsToTimeCode(r, e.options.alwaysShowHours, e.options.showTimecodeFrameCount, e.options.framesPerSecond, e.options.secondsDecimalLength) }, 250); var a = wpcp_mejs.Utils.createEvent("wpcp_mejsprerollinitialized", e.container); e.container.dispatchEvent(a) }, adsPrerollStarted: function () { var e = this; e.media.removeEventListener("playing", e.adsPrerollStartedProxy), e.adsLayer.style.display = "block", e.options.adsPrerollAdUrl[e.options.indexPreroll] ? e.adsLayer.querySelector("a").href = e.options.adsPrerollAdUrl[e.options.indexPreroll] : (e.adsLayer.querySelector("a").href = "#", e.adsLayer.querySelector("a").setAttribute("target", "")), e.options.adsPrerollAdEnableSkip ? (e.adsSkipBlock.style.display = "block", 0 < e.options.adsPrerollAdSkipSeconds ? (e.adsSkipMessage.innerHTML = wpcp_mejs.i18n.t("wpcp_mejs.ad-skip-info", e.options.adsPrerollAdSkipSeconds), e.adsSkipMessage.style.display = "block", e.adsSkipButton.style.display = "none") : (e.adsSkipMessage.style.display = "none", e.adsSkipButton.style.display = "block")) : e.adsSkipBlock.style.display = "none"; var r = wpcp_mejs.Utils.createEvent("wpcp_mejsprerollstarted", e.container); e.container.dispatchEvent(r) }, adsPrerollUpdate: function () { var e = this; e.options.adsPrerollAdEnableSkip && 0 < e.options.adsPrerollAdSkipSeconds && (e.currentTime > e.options.adsPrerollAdSkipSeconds ? (e.adsSkipButton.style.display = "block", e.adsSkipMessage.style.display = "none") : e.adsSkipMessage.innerHTML = wpcp_mejs.i18n.t("wpcp_mejs.ad-skip-info", Math.round(e.options.adsPrerollAdSkipSeconds - e.currentTime))); var r = wpcp_mejs.Utils.createEvent("wpcp_mejsprerolltimeupdate", e.container); r.detail.duration = e.duration, r.detail.currentTime = e.currentTime, e.container.dispatchEvent(r) }, adsPrerollVolume: function () { var e = wpcp_mejs.Utils.createEvent("wpcp_mejsprerollvolumechanged", this.container); this.container.dispatchEvent(e) }, adsPrerollEnded: function () { var a = this; a.media.removeEventListener("ended", a.adsPrerollEndedProxy), setTimeout(function () { if (a.options.indexPreroll++, a.options.indexPreroll < a.options.adsPrerollMediaUrl.length) a.adsStartPreroll(); else { var e = wpcp_mejs.Utils.createEvent("wpcp_mejsprerollfinished", a.container); a.container.dispatchEvent(e), a.adRestoreMainMedia() } var r = wpcp_mejs.Utils.createEvent("wpcp_mejsprerollended", a.container); a.container.dispatchEvent(r) }, 0) }, adRestoreMainMedia: function () { var e = this, r = e.media.querySelector("iframe"); r && (r.style.display = ""), e.setSrc(e.adsCurrentMediaUrl), setTimeout(function () { e.load(), e.play() }, 10); for (var a = e.container.querySelector("." + e.options.classPrefix + "controls").children, s = 0, t = a.length; s < t; s++) { var i = a[s], o = i.querySelector("button"); o && !wpcp_mejs.Utils.hasClass(i, e.options.classPrefix + "playpause-button") ? (i.style.pointerEvents = "auto", o.disabled = !1) : i.querySelector("." + e.options.classPrefix + "time-slider") && (i.querySelector("." + e.options.classPrefix + "time-slider").style.pointerEvents = "auto") } e.adsSkipBlock && e.adsSkipBlock.remove(), e.adsLayer.style.display = "none", e.media.removeEventListener("ended", e.adsPrerollEndedProxy), e.media.removeEventListener("loadedmetadata", e.adsPrerollMetaProxy), e.media.removeEventListener("timeupdate", e.adsPrerollUpdateProxy); var n = wpcp_mejs.Utils.createEvent("wpcp_mejsprerollmainstarted", e.container); e.container.dispatchEvent(n) }, adsAdClick: function () { var e = this; e.paused ? e.play() : e.pause(); var r = wpcp_mejs.Utils.createEvent("wpcp_mejsprerolladsclicked", e.container); e.container.dispatchEvent(r) }, adsSkipClick: function (e) { var r = this; r.media.removeEventListener("ended", r.adsPrerollEndedProxy); var a = wpcp_mejs.Utils.createEvent("wpcp_mejsprerollskipclicked", r.container); r.container.dispatchEvent(a), a = wpcp_mejs.Utils.createEvent("wpcp_mejsprerollended", r.container), r.container.dispatchEvent(a), r.options.indexPreroll++, r.options.indexPreroll < r.options.adsPrerollMediaUrl.length ? r.adsStartPreroll() : (a = wpcp_mejs.Utils.createEvent("wpcp_mejsprerollfinished", r.container), r.container.dispatchEvent(a), r.adRestoreMainMedia()), e.preventDefault(), e.stopPropagation() }, prerollAdsFinished: function () { return this.options.indexPreroll === this.options.adsPrerollMediaUrl.length }, adsLoadUrl: function (e) { var r = new Image, a = Math.round(1e5 * Math.random()); r.src = e + (~e.indexOf("?") ? "&" : "?") + "random" + a + "=" + a, r.loaded = function () { r = null } } }) }, {}] }, {}, [1]); 26 27/*! 28 * MediaElement.js - Ads-Vast-Vpaid 29 * http://www.mediaelementjs.com/ 30 * 31 * Wrapper that mimics native HTML5 MediaElement (audio and video) 32 * using a variety of technologies (pure JavaScript, Flash, iframe) 33 * 34 * Copyright 2010-2017, John Dyer (http://j.hn/) 35 * License: MIT 36 * 37 */ 38!function r(s, o, d) { function l(e, t) { if (!o[e]) { if (!s[e]) { var a = "function" == typeof require && require; if (!t && a) return a(e, !0); if (g) return g(e, !0); var i = new Error("Cannot find module '" + e + "'"); throw i.code = "MODULE_NOT_FOUND", i } var n = o[e] = { exports: {} }; s[e][0].call(n.exports, function (t) { return l(s[e][1][t] || t) }, n, n.exports, r, s, o, d) } return o[e].exports } for (var g = "function" == typeof require && require, t = 0; t < d.length; t++)l(d[t]); return l }({ 1: [function (t, e, a) { "use strict";
vendor: 7,440 bytes, line 38
38 Object.assign(wpcp_mejs.MepDefaults, { vastAdTagUrl: "", vastAdsType: "vast" }), Object.assign(WPCPMediaElementPlayer.prototype, { vastAdTagIsLoading: !1, vastAdTagIsLoaded: !1, vastStartedPlaying: !1, vastAdTags: [], buildvast: function (t, e, a, i) { var n = this; n.isVideo && ("" !== n.options.vastAdTagUrl && n.vastLoadAdTagInfo(), n.buildads(t, e, a, i), n.vastSetupEvents()) }, vastSetupEvents: function () { var p = this, h = !1, u = !1, f = !1; p.container.addEventListener("wpcp_mejsprerollinitialized", function () { if (0 < p.vastAdTags.length) { var t = p.vastAdTags[0]; if (t.trackingEvents.initialization) for (var e = 0, a = t.trackingEvents.initialization.length; e < a; e++)p.adsLoadUrl(t.trackingEvents.initialization[e]) } }), p.container.addEventListener("wpcp_mejsprerollstarted", function () { if (0 < p.vastAdTags.length) { var t = p.vastAdTags[0]; if (t.trackingEvents.start) for (var e = 0, a = t.trackingEvents.start.length; e < a; e++)p.adsLoadUrl(t.trackingEvents.start[e]); if (!t.shown && 0 < t.impressions.length) for (var i = 0, n = t.impressions.length; i < n; i++)p.adsLoadUrl(t.impressions[i]); t.shown = !0 } }), p.container.addEventListener("wpcp_mejsprerollvolumechanged", function () { if (0 < p.vastAdTags.length && p.options.indexPreroll < p.vastAdTags.length) { var t = p.vastAdTags[p.options.indexPreroll]; if (t.trackingEvents.mute && !p.media.volume) for (var e = 0, a = t.trackingEvents.mute.length; e < a; e++)p.adsLoadUrl(t.trackingEvents.mute[e]); if (t.trackingEvents.unmute && p.media.volume) for (var i = 0, n = t.trackingEvents.unmute.length; i < n; i++)p.adsLoadUrl(t.trackingEvents.unmute[i]) } }), p.container.addEventListener("wpcp_mejsprerolltimeupdate", function (t) { if (0 < p.vastAdTags.length && p.options.indexPreroll < p.vastAdTags.length) { var e = t.detail.duration, a = t.detail.currentTime, i = 100 * Math.min(1, Math.max(0, a / e)), n = p.vastAdTags[p.options.indexPreroll], r = 25 <= i && i < 50, s = 50 <= i && i < 75, o = 75 <= i && i < 100; if (n.trackingEvents.firstQuartile && !h && r) { for (var d = 0, l = n.trackingEvents.firstQuartile.length; d < l; d++)p.adsLoadUrl(n.trackingEvents.firstQuartile[d]); h = !0 } else if (n.trackingEvents.midpoint && !u && s) { for (var g = 0, v = n.trackingEvents.midpoint.length; g < v; g++)p.adsLoadUrl(n.trackingEvents.midpoint[g]); u = !0 } else if (n.trackingEvents.thirdQuartile && !f && o) { for (var c = 0, m = n.trackingEvents.thirdQuartile.length; c < m; c++)p.adsLoadUrl(n.trackingEvents.thirdQuartile[c]); f = !0 } } }), p.container.addEventListener("wpcp_mejsprerollended", function () { var t = p.vastAdTags[p.options.indexPreroll]; if (0 < p.vastAdTags.length && p.options.indexPreroll < p.vastAdTags.length && t.trackingEvents.complete) for (var e = 0, a = t.trackingEvents.complete.length; e < a; e++)p.adsLoadUrl(t.trackingEvents.complete[e]); f = u = h = !1 }), p.container.addEventListener("wpcp_mejsprerolladsclicked", function () { var t = p.vastAdTags[p.options.indexPreroll]; 0 < p.vastAdTags.length && p.options.indexPreroll < p.vastAdTags.length && t.clickThrough && t.clickTracking && p.adsLoadUrl(t.clickTracking) }), p.container.addEventListener("wpcp_mejsprerollskipclicked", function () { var t = p.vastAdTags[p.options.indexPreroll]; if (0 < p.vastAdTags.length && p.options.indexPreroll < p.vastAdTags.length && t.trackingEvents.skip) for (var e = 0, a = t.trackingEvents.skip.length; e < a; e++)p.adsLoadUrl(t.trackingEvents.skip[e]) }) }, vastSetAdTagUrl: function (t) { this.options.vastAdTagUrl = t, this.options.indexPreroll = 0, this.vastAdTagIsLoaded = !1, this.vastAdTags = [] }, vastLoadAdTagInfo: function () { this.adsDataIsLoading = !0, this.vastAdTagIsLoading = !0, this.loadAdTagInfoDirect() }, loadAdTagInfoDirect: function () { var e = this; wpcp_mejs.Utils.ajax(e.options.vastAdTagUrl, "xml", function (t) { "vpaid" === e.options.vastAdsType ? e.vpaidParseVpaidData(t) : e.vastParseVastData(t) }, function (t) { console.error("vast3:direct:error", t), e.loadAdTagInfoProxy() }) }, loadAdTagInfoProxy: function () { var e = this, t = location.protocol, a = 'select * from xml where url="' + encodeURI(e.options.vastAdTagUrl) + '"', i = "http" + (/^https/.test(t) ? "s" : "") + "://query.yahooapis.com/v1/public/yql?format=xml&q=" + a; wpcp_mejs.Utils.ajax(i, "xml", function (t) { "vpaid" === e.options.vastAdsType ? e.vpaidParseVpaidData(t) : e.vastParseVastData(t) }, function (t) { console.error("vast:proxy:yahoo:error", t) }) }, vastParseVastData: function (t) { var e = this, a = t.getElementsByTagName("Ad"); if (a.length) { e.vastAdTags = []; for (var i = e.options.indexPreroll = 0, n = a.length; i < n; i++) { var r = a[i], s = r.getElementsByTagName("AdTitle").length ? r.getElementsByTagName("AdTitle")[0].textContent.trim() : "", o = r.getElementsByTagName("Description").length ? r.getElementsByTagName("Description")[0].textContent.trim() : "", d = r.getElementsByTagName("ClickThrough").length ? r.getElementsByTagName("ClickThrough")[0].textContent.trim() : "", l = r.getElementsByTagName("ClickTracking").length ? r.getElementsByTagName("ClickTracking")[0].textContent.trim() : "", g = { id: r.getAttribute("id"), title: s, description: o, impressions: [], clickThrough: d, clickTracking: l, mediaFiles: [], trackingEvents: {}, shown: !1 }, v = r.getElementsByTagName("Impression"), c = r.getElementsByTagName("MediaFile"), m = r.getElementsByTagName("Tracking"); e.vastAdTags.push(g); for (var p = 0, h = v.length; p < h; p++)g.impressions.push(v[p].textContent.trim()); for (var u = 0, f = m.length; u < f; u++) { var T = m[u], A = T.getAttribute("event"); void 0 === g.trackingEvents[A] && (g.trackingEvents[A] = []), g.trackingEvents[A].push(T.textContent.trim()) } for (var k = 0, E = c.length; k < E; k++) { var y = c[k], x = y.getAttribute("type"); if ("" !== e.media.canPlayType(x) || /(no|false)/i.test(e.media.canPlayType(x))) if ("application/javascript" === x) { var P = document.createElement("script"), L = document.getElementsByTagName("script")[0]; P.src = y.textContent.trim(), L.parentNode.insertBefore(P, L) } else "application/x-shockwave-flash" !== x && g.mediaFiles.push({ id: y.getAttribute("id"), delivery: y.getAttribute("delivery"), type: x, bitrate: y.getAttribute("bitrate"), width: y.getAttribute("width"), height: y.getAttribute("height"), url: y.textContent.trim() }) } } e.vastLoaded() } }, vpaidParseVpaidData: function (t) { var e = this, a = t.getElementsByTagName("AdParameters"); if (e.vpaidAdTags = [], void (e.options.indexPreroll = 0) !== a[0]) { var i = JSON.parse(a[0].textContent.trim()), n = t.getElementsByTagName("Duration"), r = { id: i.ad_id.trim(), title: i.title.trim(), clickThrough: i.page_url, impressions: [], mediaFiles: [], trackingEvents: {}, shown: !1 }; if (void 0 !== i.media.tracking.beacon) for (var s = ["initialization", "start", "firstQuartile", "midpoint", "thirdQuartile", "complete"], o = 0, d = i.media.tracking.beacon.length; o < d; o++) { var l = i.media.tracking.beacon[o]; ~s.indexOf(l.type) ? (void 0 === r.trackingEvents[l.type] && (r.trackingEvents[l.type] = []), r.trackingEvents[l.type].push(l.beacon_url.trim())) : "impression" === l.type && r.impressions.push(l.beacon_url.trim()) } for (var g in i.media.video) if (i.media.video.hasOwnProperty(g)) { var v = i.media.video[g], c = v.mime_type.trim(); ("" !== e.media.canPlayType(c) || /(no|false)/i.test(e.media.canPlayType(c))
38) && r.mediaFiles.push({ id: v.media_id, format: v.format, type: c, transcoding: v.transcoding, width: v.width, height: v.height, duration: n, url: v.media_url }) } e.vastAdTags.push(r), e.vastLoaded() } }, vastLoaded: function () { this.vastAdTagIsLoaded = !0, this.vastAdTagIsLoading = !1, this.adsDataIsLoading = !1, this.vastStartPreroll() }, vastStartPreroll: function () { for (var t = this, e = 0; e < t.vastAdTags.length;)void 0 !== t.vastAdTags[e].mediaFiles && t.vastAdTags[e].mediaFiles.length && (t.options.adsPrerollMediaUrl[e] = t.vastAdTags[e].mediaFiles[0].url), void 0 !== t.vastAdTags[e].clickThrough && (t.options.adsPrerollAdUrl[e] = t.vastAdTags[e].clickThrough), e++; t.adsStartPreroll() } }) }, {}] }, {}, [1]); 39 40/*! 41 * MediaElement.js - ContextMenu 42 * http://www.mediaelementjs.com/ 43 * 44 * Wrapper that mimics native HTML5 MediaElement (audio and video) 45 * using a variety of technologies (pure JavaScript, Flash, iframe) 46 * 47 * Copyright 2010-2017, John Dyer (http://j.hn/) 48 * License: MIT 49 * 50 */ 51!function u(r, c, s) { function l(t, e) { if (!c[t]) { if (!r[t]) { var n = "function" == typeof require && require; if (!e && n) return n(t, !0); if (a) return a(t, !0); var o = new Error("Cannot find module '" + t + "'"); throw o.code = "MODULE_NOT_FOUND", o } var i = c[t] = { exports: {} }; r[t][0].call(i.exports, function (e) { var n = r[t][1][e]; return l(n || e) }, i, i.exports, u, r, c, s) } return c[t].exports } for (var a = "function" == typeof require && require, e = 0; e < s.length; e++)l(s[e]); return l }({ 1: [function (e, n, t) { "use strict"; wpcp_mejs.i18n.en["wpcp_mejs.fullscreen-off"] = "Turn off Fullscreen", wpcp_mejs.i18n.en["wpcp_mejs.fullscreen-on"] = "Go Fullscreen", wpcp_mejs.i18n.en["wpcp_mejs.download-video"] = "Download Video", Object.assign(w
vendor: 4,451 bytes, lines 51-64
51pcp_mejs.MepDefaults, { contextMenuItems: [{ render: function (e) { return void 0 === e.enterFullScreen ? null : e.isFullScreen ? wpcp_mejs.i18n.t("wpcp_mejs.fullscreen-off") : wpcp_mejs.i18n.t("wpcp_mejs.fullscreen-on") }, click: function (e) { e.isFullScreen ? e.exitFullScreen() : e.enterFullScreen() } }, { render: function (e) { return e.media.muted ? wpcp_mejs.i18n.t("wpcp_mejs.unmute") : wpcp_mejs.i18n.t("wpcp_mejs.mute") }, click: function (e) { e.media.muted ? e.setMuted(!1) : e.setMuted(!0) } }, { isSeparator: !0 }, { render: function () { return wpcp_mejs.i18n.t("wpcp_mejs.download-video") }, click: function (e) { window.location.href = e.media.currentSrc } }] }), Object.assign(WPCPMediaElementPlayer.prototype, { isContextMenuEnabled: !0, contextMenuTimeout: null, buildcontextmenu: function (n) { n.isVideo && (n.contextMenu = document.querySelector("." + n.options.classPrefix + "contextmenu"), null === n.contextMenu && (n.contextMenu = document.createElement("div"), n.contextMenu.className = n.options.classPrefix + "contextmenu", n.contextMenu.style.display = "none", document.body.appendChild(n.contextMenu)), n.container.addEventListener("contextmenu", function (e) { !n.isContextMenuEnabled || 3 !== e.keyCode && 3 !== e.which || (n.renderContextMenu(e), e.preventDefault(), e.stopPropagation()) }), n.container.addEventListener("click", function () { n.contextMenu.style.display = "none" }), n.contextMenu.addEventListener("mouseleave", function () { n.startContextMenuTimer() })) }, cleancontextmenu: function (e) { e.contextMenu.remove() }, enableContextMenu: function () { this.isContextMenuEnabled = !0 }, disableContextMenu: function () { this.isContextMenuEnabled = !1 }, startContextMenuTimer: function () { var e = this; e.killContextMenuTimer(), e.contextMenuTimer = setTimeout(function () { e.hideContextMenu(), e.killContextMenuTimer() }, 750) }, killContextMenuTimer: function () { var e = this.contextMenuTimer; null != e && (clearTimeout(e), e = null) }, hideContextMenu: function () { this.contextMenu.style.display = "none" }, renderContextMenu: function (e) { for (var u = this, n = "", t = u.options.contextMenuItems, o = 0, i = t.length; o < i; o++) { var r = t[o]; if (r.isSeparator) n += '<div class="' + u.options.classPrefix + 'contextmenu-separator"></div>'; else { var c = r.render(u); null != c && (n += '<div class="' + u.options.classPrefix + 'contextmenu-item" data-itemindex="' + o + '" id="element-' + 1e6 * Math.random() + '">' + c + "</div>") } } u.contextMenu.innerHTML = n; var s = u.contextMenu.offsetWidth, l = u.contextMenu.offsetHeight, a = e.pageX, d = e.pageY, f = document.documentElement, m = (window.pageXOffset || f.scrollLeft) - (f.clientLeft || 0), x = (window.pageYOffset || f.scrollTop) - (f.clientTop || 0), M = a + s > window.innerWidth + m ? a - s : a, p = d + l > window.innerHeight + x ? d - l : d; u.contextMenu.style.display = "", u.contextMenu.style.left = M + "px", u.contextMenu.style.top = p + "px"; for (var v = u.contextMenu.querySelectorAll("." + u.options.classPrefix + "contextmenu-item"), h = function (e, n) { var t = v[e], o = parseInt(t.getAttribute("data-itemindex"), 10), i = u.options.contextMenuItems[o]; void 0 !== i.show && i.show(t, u), t.addEventListener("click", function () { void 0 !== i.click && i.click(u), u.contextMenu.style.display = "none" }) }, y = 0, j = v.length; y < j; y++)h(y); setTimeout(function () { u.killControlsTimer() }, 100) } }) }, {}] }, {}, [1]); 52 53/*! 54 * MediaElement.js - Jump Forward 55 * http://www.mediaelementjs.com/ 56 * 57 * Wrapper that mimics native HTML5 MediaElement (audio and video) 58 * using a variety of technologies (pure JavaScript, Flash, iframe) 59 * 60 * Copyright 2010-2017, John Dyer (http://j.hn/) 61 * License: MIT 62 * 63 */ 64!function i(a, u, s) { function p(t, r) { if (!u[t]) { if (!a[t]) { var e = "function" == typeof require && require; if (!r && e) return e(t, !0); if (m) return m(t, !0); var n = new Error("Cannot find module '" + t + "'"); throw n.code = "MODULE_NOT_FOUND", n } var o = u[t] = { exports: {} }; a[t][0].call(o.exports, function (r) { return p(a[t][1][r] || r) }, o, o.exports, i, a, u, s) } return u[t].exports } for (var m = "function" == typeof require && require, r = 0; r < s.length; r++)p(s[r]); return p }({ 1: [function (r, t, e) { "use strict"; wpcp_mejs.i18n.en["wpcp_mejs.time-jump-forward"] = ["Jump forward 1 second", "Jump forward %1 seconds"], Object.assign(w
64pcp_mejs.MepDefaults, { jumpForwardInterval: 30, jumpForwardText: null }), Object.assign(WPCPMediaElementPlayer.prototype, { buildjumpforward: function (r, t, e, n) { var o = this, i = wpcp_mejs.i18n.t("wpcp_mejs.time-jump-forward", o.options.jumpForwardInterval), a = wpcp_mejs.Utils.isString(o.options.jumpForwardText) ? o.options.jumpForwardText.replace("%1", o.options.jumpForwardInterval) : i, u = document.createElement("div"); u.className = o.options.classPrefix + "button " + o.options.classPrefix + "jump-forward-button", u.innerHTML = '<button type="button" aria-controls="' + o.id + '" title="' + a + '" aria-label="' + a + '" tabindex="0">' + o.options.jumpForwardInterval + "</button>", o.addControlElement(u, "jumpforward"), u.addEventListener("click", function () { var r = isNaN(n.duration) ? o.options.jumpForwardInterval : n.duration; if (r) { var t = n.currentTime === 1 / 0 ? 0 : n.currentTime; n.setCurrentTime(Math.min(t + o.options.jumpForwardInterval, r)), this.querySelector("button").blur() } }) } }) }, {}] }, {}, [1]); 65 66/*! 67 * MediaElement.js - Skip Back 68 * http://www.mediaelementjs.com/ 69 * 70 * Wrapper that mimics native HTML5 MediaElement (audio and video) 71 * using a variety of technologies (pure JavaScript, Flash, iframe) 72 * 73 * Copyright 2010-2017, John Dyer (http://j.hn/) 74 * License: MIT 75 * 76 */ 77!function s(o, a, c) { function p(e, t) { if (!a[e]) { if (!o[e]) { var i = "function" == typeof require && require; if (!t && i) return i(e, !0); if (u) return u(e, !0); var n = new Error("Cannot find module '" + e + "'"); throw n.code = "MODULE_NOT_FOUND", n } var r = a[e] = { exports: {} }; o[e][0].call(r.exports, function (t) { return p(o[e][1][t] || t) }, r, r.exports, s, o, a, c) } return a[e].exports } for (var u = "function" == typeof require && require, t = 0; t < c.length; t++)p(c[t]); return p }({ 1: [function (t, e, i) { "use strict"; wpcp_mejs.i18n.en["wpcp_mejs.time-skip-back"] = ["Skip back 1 second", "Skip back %1 seconds"], Object.assign(w
77pcp_mejs.MepDefaults, { skipBackInterval: 30, skipBackText: null }), Object.assign(WPCPMediaElementPlayer.prototype, { buildskipback: function (t, e, i, n) { var r = this, s = wpcp_mejs.i18n.t("wpcp_mejs.time-skip-back", r.options.skipBackInterval), o = wpcp_mejs.Utils.isString(r.options.skipBackText) ? r.options.skipBackText.replace("%1", r.options.skipBackInterval) : s, a = document.createElement("div"); a.className = r.options.classPrefix + "button " + r.options.classPrefix + "skip-back-button", a.innerHTML = '<button type="button" aria-controls="' + r.id + '" title="' + o + '" aria-label="' + o + '" tabindex="0">' + r.options.skipBackInterval + "</button>", r.addControlElement(a, "skipback"), a.addEventListener("click", function () { if (isNaN(n.duration) ? r.options.skipBackInterval : n.duration) { var t = n.currentTime === 1 / 0 ? 0 : n.currentTime; n.setCurrentTime(Math.max(t - r.options.skipBackInterval, 0)), this.querySelector("button").blur() } }) } }) }, {}] }, {}, [1]); 78 79/*! 80 * MediaElement.js - Speed button 81 * http://www.mediaelementjs.com/ 82 * 83 * Wrapper that mimics native HTML5 MediaElement (audio and video) 84 * using a variety of technologies (pure JavaScript, Flash, iframe) 85 * 86 * Copyright 2010-2017, John Dyer (http://j.hn/) 87 * License: MIT 88 * 89 */ 90!function r(i, l, a) { function d(t, e) { if (!l[t]) { if (!i[t]) { var s = "function" == typeof require && require; if (!e && s) return s(t, !0); if (p) return p(t, !0); var o = new Error("Cannot find module '" + t + "'"); throw o.code = "MODULE_NOT_FOUND", o } var n = l[t] = { exports: {} }; i[t][0].call(n.exports, function (e) { return d(i[t][1][e] || e) }, n, n.exports, r, i, l, a) } return l[t].exports } for (var p = "function" == typeof require && require, e = 0; e < a.length; e++)d(a[e]); return d }({ 1: [function (e, t, s) { "use strict"; wpcp_mejs.i18n.en["wpcp_mejs.speed-rate"] = "Speed Rate", Object.assign(w
vendor: 5,704 bytes, lines 90-103
90pcp_mejs.MepDefaults, { speeds: ["2.00", "1.50", "1.25", "1.00", "0.75"], defaultSpeed: "1.00", speedChar: "x", speedText: null }), Object.assign(WPCPMediaElementPlayer.prototype, { buildspeed: function (l, e, t, a) { var d = this; if (null !== d.media.rendererName && /(native|html5)/i.test(d.media.rendererName)) { for (var o = [], s = wpcp_mejs.Utils.isString(d.options.speedText) ? d.options.speedText : wpcp_mejs.i18n.t("wpcp_mejs.speed-rate"), p = function (e) { for (var t = 0, s = o.length; t < s; t++)if (o[t].value === e) return o[t].name }, c = void 0, n = !1, r = 0, i = d.options.speeds.length; r < i; r++) { var u = d.options.speeds[r]; "string" == typeof u ? (o.push({ name: "" + u + d.options.speedChar, value: u }), u === d.options.defaultSpeed && (n = !0)) : (o.push(u), u.value === d.options.defaultSpeed && (n = !0)) } n || o.push({ name: d.options.defaultSpeed + d.options.speedChar, value: d.options.defaultSpeed }), o.sort(function (e, t) { return parseFloat(t.value) - parseFloat(e.value) }), d.cleanspeed(l), l.speedButton = document.createElement("div"), l.speedButton.className = d.options.classPrefix + "button " + d.options.classPrefix + "speed-button", l.speedButton.innerHTML = '<button type="button" aria-controls="' + d.id + '" title="' + s + '" aria-label="' + s + '" tabindex="0">' + p(d.options.defaultSpeed) + '</button><div class="' + d.options.classPrefix + "speed-selector " + d.options.classPrefix + 'offscreen"><ul class="' + d.options.classPrefix + 'speed-selector-list"></ul></div>', d.addControlElement(l.speedButton, "speed"); for (var f = 0, v = o.length; f < v; f++) { var h = d.id + "-speed-" + o[f].value; l.speedButton.querySelector("ul").innerHTML += '<li class="' + d.options.classPrefix + 'speed-selector-list-item"><input class="' + d.options.classPrefix + 'speed-selector-input" type="radio" name="' + d.id + '_speed"disabled="disabled" value="' + o[f].value + '" id="' + h + '" ' + (o[f].value === d.options.defaultSpeed ? ' checked="checked"' : "") + '/><label for="' + h + '" class="' + d.options.classPrefix + "speed-selector-label" + (o[f].value === d.options.defaultSpeed ? " " + d.options.classPrefix + "speed-selected" : "") + '">' + o[f].name + "</label></li>" } c = d.options.defaultSpeed, l.speedSelector = l.speedButton.querySelector("." + d.options.classPrefix + "speed-selector"); for (var m = ["mouseenter", "focusin"], S = ["mouseleave", "focusout"], x = l.speedButton.querySelectorAll('input[type="radio"]'), y = l.speedButton.querySelectorAll("." + d.options.classPrefix + "speed-selector-label"), b = 0, g = m.length; b < g; b++)l.speedButton.addEventListener(m[b], function () { wpcp_mejs.Utils.removeClass(l.speedSelector, d.options.classPrefix + "offscreen"), l.speedSelector.style.height = l.speedSelector.querySelector("ul").offsetHeight, l.speedSelector.style.top = -1 * parseFloat(l.speedSelector.offsetHeight) + "px" }); for (var P = 0, j = S.length; P < j; P++)l.speedSelector.addEventListener(S[P], function () { wpcp_mejs.Utils.addClass(this, d.options.classPrefix + "offscreen") }); for (var k = 0, E = x.length; k < E; k++) { var B = x[k]; B.disabled = !1, B.addEventListener("click", function () { var e = this.value; c = e, a.playbackRate = parseFloat(e), l.speedButton.querySelector("button").innerHTML = p(e); for (var t = l.speedButton.querySelectorAll("." + d.options.classPrefix + "speed-selected"), s = 0, o = t.length; s < o; s++)wpcp_mejs.Utils.removeClass(t[s], d.options.classPrefix + "speed-selected"); this.checked = !0; for (var n = wpcp_mejs.Utils.siblings(this, function (e) { return wpcp_mejs.Utils.hasClass(e, d.options.classPrefix + "speed-selector-label") }), r = 0, i = n.length; r < i; r++)wpcp_mejs.Utils.addClass(n[r], d.options.classPrefix + "speed-selected") }) } for (var U = 0, C = y.length; U < C; U++)y[U].addEventListener("click", function () { var e = wpcp_mejs.Utils.siblings(this, function (e) { return "INPUT" === e.tagName })[0], t = wpcp_mejs.Utils.createEvent("click", e); e.dispatchEvent(t) }); d.options.keyActions.push({ keys: [60, 188], action: function (e, t, s, o) { if ("<" == o.key) for (var n = 0; n < x.length - 1; n++)if (x[n].checked) { var r = x[n + 1]; r.dispatchEvent(wpcp_mejs.Utils.createEvent("click", r)) } } }, { keys: [62, 190], action: function (e, t, s, o) { if (">" == o.key) for (var n = 1; n < x.length; n++)if (x[n].checked) { var r = x[n - 1]; r.dispatchEvent(wpcp_mejs.Utils.createEvent("click", r)) } } }), l.speedSelector.addEventListener("keydown", function (e) { e.stopPropagation() }), a.addEventListener("loadedmetadata", function () { c && (a.playbackRate = parseFloat(c)) }) } }, cleanspeed: function (e) { e && (e.speedButton && e.speedButton.parentNode.removeChild(e.speedButton), e.speedSelector && e.speedSelector.parentNode.removeChild(e.speedSelector)) } }) }, {}] }, {}, [1]); 91 92/*! 93 * MediaElement.js - Google Analytics 94 * http://www.mediaelementjs.com/ 95 * 96 * Wrapper that mimics native HTML5 MediaElement (audio and video) 97 * using a variety of technologies (pure JavaScript, Flash, iframe) 98 * 99 * Copyright 2010-2017, John Dyer (http://j.hn/) 100 * License: MIT 101 * 102 */ 103!function l(a, s, g) { function r(n, e) { if (!s[n]) { if (!a[n]) { var t = "function" == typeof require && require; if (!e && t) return t(n, !0); if (c) return c(n, !0); var o = new Error("Cannot find module '" + n + "'"); throw o.code = "MODULE_NOT_FOUND", o } var i = s[n] = { exports: {} }; a[n][0].call(i.exports, function (e) { return r(a[n][1][e] || e) }, i, i.exports, l, a, s, g) } return s[n].exports } for (var c = "function" == typeof require && require, e = 0; e < g.length; e++)r(g[e]); return r }({ 1: [function (e, n, t) { "use strict";
vendor: 1,997 bytes, lines 103-116
103 Object.assign(wpcp_mejs.MepDefaults, { googleAnalyticsTitle: "", googleAnalyticsCategory: "Videos", googleAnalyticsEventPlay: "Play", googleAnalyticsEventPause: "Pause", googleAnalyticsEventEnded: "Ended", googleAnalyticsEventTime: "Time" }), Object.assign(WPCPMediaElementPlayer.prototype, { buildgoogleanalytics: function (e, n, t, o) { o.addEventListener("play", function () { "undefined" != typeof ga && ga("send", "event", e.options.googleAnalyticsCategory, e.options.googleAnalyticsEventPlay, "" === e.options.googleAnalyticsTitle ? e.media.currentSrc : e.options.googleAnalyticsTitle) }, !1), o.addEventListener("pause", function () { "undefined" != typeof ga && ga("send", "event", e.options.googleAnalyticsCategory, e.options.googleAnalyticsEventPause, "" === e.options.googleAnalyticsTitle ? e.media.currentSrc : e.options.googleAnalyticsTitle) }, !1), o.addEventListener("ended", function () { "undefined" != typeof ga && ga("send", "event", e.options.googleAnalyticsCategory, e.options.googleAnalyticsEventEnded, "" === e.options.googleAnalyticsTitle ? e.media.currentSrc : e.options.googleAnalyticsTitle) }, !1) } }) }, {}] }, {}, [1]); 104 105/*! 106 * MediaElement.js - AirPlay 107 * http://www.mediaelementjs.com/ 108 * 109 * Wrapper that mimics native HTML5 MediaElement (audio and video) 110 * using a variety of technologies (pure JavaScript, Flash, iframe) 111 * 112 * Copyright 2010-2017, John Dyer (http://j.hn/) 113 * License: MIT 114 * 115 */ 116!function n(l, o, s) { function d(t, e) { if (!o[t]) { if (!l[t]) { var i = "function" == typeof require && require; if (!e && i) return i(t, !0); if (c) return c(t, !0); var a = new Error("Cannot find module '" + t + "'"); throw a.code = "MODULE_NOT_FOUND", a } var r = o[t] = { exports: {} }; l[t][0].call(r.exports, function (e) { return d(l[t][1][e] || e) }, r, r.exports, n, l, o, s) } return o[t].exports } for (var c = "function" == typeof require && require, e = 0; e < s.length; e++)d(s[e]); return d }({ 1: [function (e, t, i) { "use strict";
vendor: 2,483 bytes, lines 116-129
116 Object.assign(wpcp_mejs.MepDefaults, { airPlayText: null }), Object.assign(WPCPMediaElementPlayer.prototype, { buildairplay: function () { if (window.WebKitPlaybackTargetAvailabilityEvent) { var r = this, e = wpcp_mejs.Utils.isString(r.options.airPlayText) ? r.options.airPlayText : "AirPlay", n = document.createElement("div"); n.className = r.options.classPrefix + "button " + r.options.classPrefix + "airplay-button", n.innerHTML = '<button type="button" aria-controls="' + r.id + '" title="' + e + '" aria-label="' + e + '" tabindex="0"></button>', n.addEventListener("click", function () { r.media.originalNode.webkitShowPlaybackTargetPicker() }); var t = r.media.originalNode.getAttribute("x-webkit-airplay"); t && "allow" === t || r.media.originalNode.setAttribute("x-webkit-airplay", "allow"), r.media.originalNode.addEventListener("webkitcurrentplaybacktargetiswirelesschanged", function () { var e = r.media.originalNode.webkitCurrentPlaybackTargetIsWireless ? "Started" : "Stopped", t = r.media.originalNode.webkitCurrentPlaybackTargetIsWireless ? "active" : "", i = n.querySelector("button"), a = wpcp_mejs.Utils.createEvent("airplay" + e, r.media); r.media.dispatchEvent(a), "active" === t ? wpcp_mejs.Utils.addClass(i, "active") : wpcp_mejs.Utils.removeClass(i, "active") }), r.media.originalNode.addEventListener("webkitplaybacktargetavailabilitychanged", function (e) { "available" === e.availability && r.addControlElement(n, "airplay") }) } } }) }, {}] }, {}, [1]); 117 118/*! 119 * MediaElement.js - ChromeCast 120 * http://www.mediaelementjs.com/ 121 * 122 * Wrapper that mimics native HTML5 MediaElement (audio and video) 123 * using a variety of technologies (pure JavaScript, Flash, iframe) 124 * 125 * Copyright 2010-2017, John Dyer (http://j.hn/) 126 * License: MIT 127 * 128 */ 129!function s(o, n, c) { function l(t, e) { if (!n[t]) { if (!o[t]) { var a = "function" == typeof require && require; if (!e && a) return a(t, !0); if (d) return d(t, !0); var r = new Error("Cannot find module '" + t + "'"); throw r.code = "MODULE_NOT_FOUND", r } var i = n[t] = { exports: {} }; o[t][0].call(i.exports, function (e) { return l(o[t][1][e] || e) }, i, i.exports, s, o, n, c) } return n[t].exports } for (var d = "function" == typeof require && require, e = 0; e < c.length; e++)l(c[e]); return l }({ 1: [function (e, t, a) { "use strict"; var r, i = e(2), o = (r = i) && r.__esModule ? r : { default: r }; wpcp_mejs.i18n.en["wpcp_mejs.chromecast-legend"] = "Casting to:", Object.assign(w
vendor: 11,336 bytes, line 129
129pcp_mejs.MepDefaults, { castTitle: null, castAppID: null, castPolicy: "origin", castEnableTracks: !1, castIsLive: !1 }), Object.assign(WPCPMediaElementPlayer.prototype, { buildchromecast: function (a, e, t, r) { var i = this, s = document.createElement("div"), o = wpcp_mejs.Utils.isString(i.options.castTitle) ? i.options.castTitle : "Chromecast"; if (a.chromecastLayer = document.createElement("div"), a.chromecastLayer.className = i.options.classPrefix + "chromecast-layer " + i.options.classPrefix + "layer", a.chromecastLayer.innerHTML = '<div class="' + i.options.classPrefix + 'chromecast-info"></div>', a.chromecastLayer.style.display = "none", t.insertBefore(a.chromecastLayer, t.firstChild), s.className = i.options.classPrefix + "button " + i.options.classPrefix + "chromecast-button", s.innerHTML = '<button type="button" is="google-cast-button" aria-controls="' + i.id + '" title="' + o + '" aria-label="' + o + '" tabindex="0"></button>', s.style.display = "none", i.addControlElement(s, "chromecast"), i.castButton = s, a.chromecastLayer.innerHTML = '<div class="' + i.options.classPrefix + 'chromecast-container"><span class="' + i.options.classPrefix + 'chromecast-icon"></span><span class="' + i.options.classPrefix + 'chromecast-info">' + wpcp_mejs.i18n.t("wpcp_mejs.chromecast-legend") + ' <span class="device"></span></span></div>', r.originalNode.getAttribute("poster") && (a.chromecastLayer.innerHTML += '<img src="' + r.originalNode.getAttribute("poster") + '" width="100%" height="100%">', a.chromecastLayer.querySelector("img").addEventListener("click", function () { if (a.options.clickToPlayPause) { var e = i.container.querySelector("." + i.options.classPrefix + "overlay-button"), t = e.getAttribute("aria-pressed"); a.paused ? a.play() : a.pause(), e.setAttribute("aria-pressed", !!t), a.container.focus() } })), window.__onGCastApiAvailable = function (e) { var t = wpcp_mejs.Utils.getTypeFromFile(r.originalNode.src).toLowerCase(), a = t && -1 < ["application/x-mpegurl", "application/vnd.apple.mpegurl", "application/dash+xml", "video/mp4", "audio/mp3", "audio/mp4"].indexOf(t); e && a && i._initializeCastPlayer() }, window.cast) { var n = i.controls.querySelector("." + i.options.classPrefix + "chromecast-button>button"); return n && "none" !== n.style.display && (i.controls.querySelector("." + i.options.classPrefix + "chromecast-button").style.display = ""), void i._initializeCastPlayer() } wpcp_mejs.Utils.loadScript("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1") }, cleanchromecast: function (e) { if (window.cast) { var t = cast.framework.CastContext.getInstance().getCurrentSession(); t && t.endSession(!0) } e.castButton && e.castButton.remove(), e.chromecastLayer && e.chromecastLayer.remove() }, _initializeCastPlayer: function () { var e = this, t = void 0; switch (this.options.castPolicy) { case "tab": t = "TAB_AND_ORIGIN_SCOPED"; break; case "page": t = "PAGE_SCOPED"; break; default: t = "ORIGIN_SCOPED" }var a = cast.framework.CastContext.getInstance(), r = a.getCurrentSession(); if (a.setOptions({ receiverApplicationId: e.options.castAppID || chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID, autoJoinPolicy: chrome.cast.AutoJoinPolicy[t] }), a.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED, e._checkCastButtonStatus.bind(e)), e.remotePlayer = new cast.framework.RemotePlayer, e.remotePlayerController = new cast.framework.RemotePlayerController(e.remotePlayer), e.remotePlayerController.addEventListener(cast.framework.RemotePlayerEventType.IS_CONNECTED_CHANGED, e._switchToCastPlayer.bind(this)), r) { var i = a.getCastState(), s = e.controls.querySelector("." + e.options.classPrefix + "chromecast-button"); s && i === cast.framework.CastState.NO_DEVICES_AVAILABLE ? s.style.display = "none" : s && (e.chromecastLayer && (e.chromecastLayer.style.display = i === cast.framework.CastState.CONNECTED ? "" : "none"), s.style.display = ""), e._switchToCastPlayer() } }, _checkCastButtonStatus: function (e) { var t = this, a = t.controls.querySelector("." + t.options.classPrefix + "chromecast-button"); a && e.castState === cast.framework.CastState.NO_DEVICES_AVAILABLE ? a.style.display = "none" : a && (t.chromecastLayer && (t.chromecastLayer.style.display = e.castState === cast.framework.CastState.CONNECTED ? "" : "none"), a.style.display = ""), setTimeout(function () { t.setPlayerSize(t.width, t.height), t.setControlsSize() }, 0) }, _switchToCastPlayer: function () { var e = this; if ((e.proxy && e.proxy.pause(), cast && cast.framework) && (cast.framework.CastContext.getInstance().addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED, e._checkCastButtonStatus.bind(e)), e.remotePlayer.isConnected)) return void e._setupCastPlayer(); e._setDefaultPlayer() }, _setupCastPlayer: function () { var r = this, s = cast.framework.CastContext.getInstance().getCurrentSession(), e = r.layers.querySelector("." + r.options.classPrefix + "chromecast-info"); !0 !== r.loadedChromecast && (r.loadedChromecast = !0, r.proxy = new o.default(r.remotePlayer, r.remotePlayerController, r.media, r.options), e && (e.querySelector(".device").innerText = s.getCastDevice().friendlyName), r.chromecastLayer && (r.chromecastLayer.style.display = ""), !0 === r.options.castEnableTracks && function () { var i = void 0 !== r.captionsButton ? r.captionsButton.querySelectorAll("input[type=radio]") : null; if (null !== i) for (var e = function (r, e) { i[r].addEventListener("click", function () { var e = parseInt(i[r].id.replace(/^.*?track_(\d+)_.*$/, "$1")), t = "none" === i[r].value ? [] : [e], a = new chrome.cast.media.EditTracksInfoRequest(t); s.getMediaSession().editTracksInfo(a, function () { }, function (e) { console.error(e) }) }) }, t = 0, a = i.length; t < a; t++)e(t) }(), r.media.addEventListener("loadedmetadata", function () { -1 === ["SESSION_ENDING", "SESSION_ENDED", "NO_SESSION"].indexOf(s.getSessionState()) && r.proxy instanceof DefaultPlayer && (r.proxy.pause(), r.proxy = new o.default(r.remotePlayer, r.remotePlayerController, r.media, r.options)) }), r.media.addEventListener("timeupdate", function () { r.currentMediaTime = r.getCurrentTime() })) } }) }, { 2: 2 }], 2: [function (e, t, a) { "use strict"; Object.defineProperty(a, "__esModule", { value: !0 }); var r = function () { function r(e, t) { for (var a = 0; a < t.length; a++) { var r = t[a]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) } } return function (e, t, a) { return t && r(e.prototype, t), a && r(e, a), e } }(); var i = function () { function s(e, t, a, r) { !function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") }(this, s); var i = this; return i.player = e, i.controller = t, i.media = a, i.endedMedia = !1, i.enableTracks = r.castEnableTracks, i.isLive = r.castIsLive, i.controller.addEventListener(cast.framework.RemotePlayerEventType.IS_PAUSED_CHANGED, function () { i.paused ? i.pause() : i.play(), i.endedMedia = !1 }), i.controller.addEventListener(cast.framework.RemotePlayerEventType.IS_MUTED_CHANGED, function () { i.setMuted(i.player.isMuted), i.volume = 0 }), i.controller.addEventListener(cast.framework.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED, function () { var e = wpcp_mejs.Utils.createEvent("loadedmetadata", i.media); i.media.dispatchEvent(e) }), i.controller.addEventListener(cast.framework.RemotePlayerEventType.VOLUME_LEVEL_CHANGED, function () { i.volume = i.player.volumeLevel; var e = wpcp_mejs.Utils.createEvent("volumechange", i.media); i.media.dispatchEvent(e) }), i.controller.addEventListener(cast.framework.RemotePlayerEventType.DURATION_CHANGED, function () { var e = wpcp_mejs.Utils.createEvent("timeupdate", i.media); i.media.dispatchEvent(e) }), i.controller.addEventListener(cast.framework.RemotePlayerEventType.CURRENT_TIME_CHANGED, function () { var e = wpcp_mejs.Utils.createEvent("timeupdate", i.media); i.media.dispatchEvent(e), !i.isLive && i.getCurrentTime() >= i.getDuration() && (i.endedMedia = !0, setTimeout(function () { var e = wpcp_mejs.Utils.createEvent("ended", i.media); i.media.dispatchEvent(e) }, 50)) }), i.controller.addEventListener(cast.framework.RemotePlayerEventType.IS_MUTED_CHANGED, function () { i.setMuted(i.player.isMuted) }), i.load(), i } return r(s, [{ key: "getSrc", value: function () { return this.media.originalNode.src } }, { key: "setSrc", value: function (e) { this.media.originalNode.src = "string" == typeof e ? e : e[0].src, this.load() } }, { key: "setCurrentTime", value: function (e) { this.player.currentTime = e, this.controller.seek(); var t = wpcp_mejs.Utils.createEvent("timeupdate", this.media); this.media.dispatchEvent(t) } }, { key: "getCurrentTime", value: function () { return this.player.currentTime } }, { key: "getDuration", value: function () { return this.player.duration } }, { key: "setVolume", value: function (e) { this.player.volumeLevel = e, this.controller.setVolumeLevel(); var t = wpcp_mejs.Utils.createEvent("volumechange", this.media); this.media.dispatchEvent(t) } }, { key: "getVolume", value: function () { return this.player.volumeLevel } }, { key: "play", value: function () { if (this.player.isPaused) { this.controller.playOrPause(); var e = wpcp_mejs.Utils.createEvent("play", this.media); this.media.dispatchEvent(e) } } }, { key: "pause", value: function () { if (!this.player.isPaused) { this.controller.playOrPause(); var e = wpcp_mejs.Utils.createEvent("pause", this.media); this.media.dispatchEvent(e) } } }, { key: "load", value: function () { var a = this, e = this.media.originalNode.src, t = wpcp_mejs.Utils.getTypeFromFile(e), r = new chrome.cast.media.MediaInfo(e, t), i = cast.framework.CastContext.getInstance().getCurrentSession(); if (e !== window.location.href && i) { if (!0 === a.enableTracks) { for (var s = [], o = a.media.originalNode.children, n = 1, c = 0, l = o.length; c < l; c++) { var d = o[c]; if ("track" === d.tagName.toLowerCase() && ("subtitles" === d.getAttribute("kind") || "captions" === d.getAttribute("kind"))) { var u = new chrome.cast.media.Track(n, chrome.cast.media.TrackType.TEXT); u.trackContentId = wpcp_mejs.Utils.absolutizeUrl(d.getAttribute("src")), u.trackContentType = "text/vtt", u.subtype = chrome.cast.media.TextTrackType.SUBTITLES, u.name = d.getAttribute("label"), u.language = d.getAttribute("srclang"), u.customData = null, s.push(u), n++ } } r.textTrackStyle = new chrome.cast.media.TextTrackStyle, r.tracks = s } if (r.metadata = new chrome.cast.media.GenericMediaMetadata, r.streamType = a.isLive ? chrome.cast.media.StreamType.LIVE : chrome.cast.media.StreamType.BUFFERED, r.customData = null, r.duration = null, r.currentTime = a.isLive ? 1 / 0 : 0, a.media.originalNode.getAttribute("data-cast-title") && (r.metadata.title = a.media.originalNode.getAttribute("data-cast-title")), a.media.originalNode.getAttribute("data-cast-description") && (r.metadata.subtitle = a.media.originalNode.getAttribute("data-cast-description")), a.media.originalNode.getAttribute("poster") || a.media.originalNode.getAttribute("data-cast-poster")) { var m = a.media.originalNode.getAttribute("poster") || a.media.originalNode.getAttribute("data-cast-poster"); r.metadata.images = [{ url: wpcp_mejs.Utils.absolutizeUrl(m) }] }
129 var p = new chrome.cast.media.LoadRequest(r); i.loadMedia(p).then(function () { var e = a.media.originalNode.currentTime; a.setCurrentTime(e), a.play(); var t = wpcp_mejs.Utils.createEvent("play", a.media); a.media.dispatchEvent(t) }, function (e) { a._getErrorMessage(e) }) } } }, { key: "setMuted", value: function (e) { var t = this; !0 !== e || this.player.isMuted ? !1 === e && this.player.isMuted && this.controller.muteOrUnmute() : this.controller.muteOrUnmute(), setTimeout(function () { var e = wpcp_mejs.Utils.createEvent("volumechange", t.media); t.media.dispatchEvent(e) }, 50) } }, { key: "canPlayType", value: function (e) { return ~["application/x-mpegurl", "vnd.apple.mpegurl", "application/dash+xml", "video/mp4"].indexOf(e) } }, { key: "_getErrorMessage", value: function (e) { var t = e.description ? " : " + e.description : ".", a = void 0; switch (e.code) { case chrome.cast.ErrorCode.API_NOT_INITIALIZED: a = "The API is not initialized" + t; break; case chrome.cast.ErrorCode.CANCEL: a = "The operation was canceled by the user" + t; break; case chrome.cast.ErrorCode.CHANNEL_ERROR: a = "A channel to the receiver is not available" + t; break; case chrome.cast.ErrorCode.EXTENSION_MISSING: a = "The Cast extension is not available" + t; break; case chrome.cast.ErrorCode.INVALID_PARAMETER: a = "The parameters to the operation were not valid" + t; break; case chrome.cast.ErrorCode.RECEIVER_UNAVAILABLE: a = "No receiver was compatible with the session request" + t; break; case chrome.cast.ErrorCode.SESSION_ERROR: a = "A session could not be created, or a session was invalid" + t; break; case chrome.cast.ErrorCode.TIMEOUT: a = "The operation timed out" + t; break; default: a = "Unknown error: " + e }console.error(a) } }, { key: "paused", get: function () { return this.player.isPaused } }, { key: "muted", set: function (e) { this.setMuted(e) }, get: function () { return this.player.isMuted } }, { key: "ended", get: function () { return this.endedMedia } }, { key: "readyState", get: function () { return this.media.originalNode.readyState } }, { key: "currentTime", set: function (e) { this.setCurrentTime(e) }, get: function () { return this.getCurrentTime() } }, { key: "duration", get: function () { return this.getDuration() } }, { key: "volume", set: function (e) { this.setVolume(e) }, get: function () { return this.getVolume() } }, { key: "src", set: function (e) { this.setSrc(e) }, get: function () { return this.getSrc() } }]), s }(); a.default = i, window.ChromecastPlayer = i }, {}] }, {}, [1, 2]); 130 131 132/*! MediaElement.js - WP Cloud Plugins - Playlist 133 * 134 * Copyright wpcloudplugins.com 135 */ 136"use strict";function wpcp_escape_html(t){return null==t?"":String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function create_playlistfrom_json(t){var e=[];if(null===t||t.length<1)return e;var l=new Date;l.setMinutes(l.getMinutes()+4);for(const[a,n]of Object.entries(t)){var i={title:n.title,id:n.id,description:n.artist,duration:n.duration,sources:[{src:n.source,type:n.type}],poster:n.poster,thumbnail:n.thumb,size:n.width,folder:n.folder,last_edited_date_str:n.last_edited_date_str,last_edited_time_str:n.last_edited_time_str,purchaselink:n.linktoshop,download:n.download,share:n.share,deeplink:n.deeplink,expires:l},s=[];n.captions&&n.captions.forEach(function(t,e){var l={kind:"captions",label:t.label,srclang:t.language,src:t.src};s.push(l)}),i.textTracks=s,e.push(i)}return e}function init_mediaelement(t,e,l,i){var s=t.querySelector(".wpcp__main-container"),a=!0,n=!0;"responsive"!==s.getAttribute("data-aspect-ratio")&&(a=!1,n=!1);var o={main:i,rootContainer:t,layout:t.getAttribute("data-layout"),listtoken:e,pluginPath:Default_Skin_vars.player_url+"/js/",playlist:l,stretching:"responsive",enableAutosize:n,setDimensions:a,classPrefix:"wpcp__",toggleCaptionsButtonWhenOnlyOne:!0,jumpForwardInterval:30,timeAndDurationSeparator:"<span> / </span>",skipBackInterval:10,hideVolumeOnTouchDevices:!1===s.querySelector("video, audio").autoplay,audioVolume:"vertical",isFloating:!1,playlistHeight:s.getAttribute("data-max-height"),defaultTitle:document.title,success:function(t,e){t.options.rootContainer.querySelector(".loading.initialize").style.display="none",t.options.rootContainer.querySelector(".wpcp__main-container").classList.remove("wpcp__loading");var l=new URL(window.location),i=new URLSearchParams(l.search).get("wpcp_link");if(null!==i){var s=JSON.parse(decodeURIComponent(atob(i)));s.source===t.options.main.element.attr("data-source")&&t.options.rootContainer.querySelector('.wpcp__playlist-item[data-id="'+s.focus_id+'"]').click()}},error:function(t,e){void 0!==t.options&&(t.options.rootContainer.querySelector(".loading.initialize").style.display="none",t.options.rootContainer.querySelector(".wpcp__main-container").classList.add("error"))}};o.contextMenuItems=[{render:function(t){return void 0===t.enterFullScreen?null:t.isFullScreen?wpcp_mejs.i18n.t("wpcp_mejs.fullscreen-off"):wpcp_mejs.i18n.t("wpcp_mejs.fullscreen-on")},click:function(t){t.isFullScreen?t.exitFullScreen():t.enterFullScreen()}},{render:function(t){return t.media.muted?wpcp_mejs.i18n.t("wpcp_mejs.unmute"):wpcp_mejs.i18n.t("wpcp_mejs.mute")},click:function(t){t.media.muted?t.setMuted(!1):t.setMuted(!0)}}];var r=s.getAttribute("data-controls").split(",");o.displayPlaylist="1"===s.getAttribute("data-show-playlist"),o.showPlaylistOnload="1"===s.getAttribute("data-open-playlist"),o.playlistInline="1"===s.getAttribute("data-playlist-inline"),o.playlistAutoPlay="1"===s.getAttribute("data-playlist-autoplay"),o.playlistLoop="1"===s.getAttribute("data-playlist-loop"),o.zipDownload="1"===s.getAttribute("data-zip-download");var p=s.getAttribute("data-ads-tag-url");if(""!==p){r.push("vast","ads"),o.vastAdTagUrl=p,o.vastAdsType="vast";var c=parseInt(s.getAttribute("data-ads-skip"))>-1;o.adsPrerollAdEnableSkip=c,c&&(o.adsPrerollAdSkipSeconds=parseInt(s.getAttribute("data-ads-skip")))}o.speeds=["2","1.75","1.5","1.25","1","0.75","0.5","0.25"],o.defaultSpeed="1",r.push("title","progress","tracks","contextmenu","googleanalytics","custom_playlist"),o.features=r,o.iconS
136prite="";let d={plugin:i,options:o};document.dispatchEvent(new CustomEvent("wpcp/mediaplayer/set-options",{detail:[d]})),window.wpcp_playlists[e]=new WPCPMediaElementPlayer(t.querySelector("video,audio"),d.options)}function toHHMMSS(t){var e=parseInt(t,10),l=Math.floor(e/3600),i=Math.floor(e/60)%60,s=e%60,a=s<10?"0"+s:s;return a=i<10?"0"+i+":"+a:i+":"+a,l>0&&(a=l<10?"0"+l+":"+a:l+":"+a),a}if(void 0===window.wpcp_playlists&&(window.wpcp_playlists={}),function t(e,l,i){function s(n,o){if(!l[n]){if(!e[n]){var r="function"==typeof require&&require;if(!o&&r)return r(n,!0);if(a)return a(n,!0);var p=new Error("Cannot find module '"+n+"'");throw p.code="MODULE_NOT_FOUND",p}var c=l[n]={exports:{}};e[n][0].call(c.exports,function(t){return s(e[n][1][t]||t)},c,c.exports,t,e,l,i)}return l[n].exports}for(var a="function"==typeof require&&require,n=0;n<i.length;n++)s(i[n]);return s}({1:[function(t,e,l){wpcp_mejs.i18n.en["wpcp_mejs.playlist"]="Toggle Playlist",wpcp_mejs.i18n.en["wpcp_mejs.playlist-prev"]="Previous",wpcp_mejs.i18n.en["wpcp_mejs.playlist-next"]="Next",wpcp_mejs.i18n.en["wpcp_mejs.playlist-loop"]="Loop",wpcp_mejs.i18n.en["wpcp_mejs.playlist-shuffle"]="Shuffle",Object.assign(w
136pcp_mejs.MepDefaults,{playlist:[],displayPlaylist:!0,showPlaylistOnload:!0,playlistHeight:null,autoClosePlaylist:!1,prevText:null,nextText:null,loopText:null,shuffleText:null,playlistTitle:null,currentMessage:null}),Object.assign(WPCPMediaElementPlayer.prototype,{buildcustom_playlist:function(t,e,l,i){var s=wpcp_mejs.i18n.t("wpcp_mejs.playlist"),a=wpcp_mejs.Utils.isString(t.options.playlistTitle)?t.options.playlistTitle:s;t.currentPlaylistItem=0,t.originalControlsIndex=e.style.zIndex,e.style.zIndex=5;var n=l.querySelector("."+t.options.classPrefix+"overlay-loading");if(n&&(n.innerHTML='<div class="loading"><svg class="loader-spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="3" stroke-miterlimit="10"></circle></svg></div>'),t.playlistLayer=document.createElement("div"),t.playlistLayer.className=t.options.classPrefix+"playlist-layer "+t.options.classPrefix+"layer "+(!1===t.options.displayPlaylist||!1===t.options.showPlaylistOnload?t.options.classPrefix+"playlist-hidden":""),t.playlistLayer.innerHTML='<ul class="'+t.options.classPrefix+"playlist "+t.options.classPrefix+'playlist-root" data-folder="/" style="'+(null!==t.options.playlistHeight?"max-height:"+t.options.playlistHeight:"")+'"></ul>',t.options.playlistInline&&wpcp_mejs.Utils.addClass(t.playlistLayer,t.options.classPrefix+"playlist-inline"),l.insertBefore(t.playlistLayer,l.firstChild),t.createWPCPPlayList_(t.playlistLayer.querySelector("ul")),t.playlistButton=document.createElement("div"),t.playlistButton.className=t.options.classPrefix+"button "+t.options.classPrefix+"playlist-button",t.playlistButton.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+a+'" aria-label="'+a+'" tabindex="0"></button>',t.playlistButton.addEventListener("click",function(){t.options.playlistInline?jQuery(t.playlistLayer).toggle():jQuery(t.playlistLayer).slideToggle(),t.options.playlistInline&&!1===wpcp_mejs.Utils.hasClass(t.playlistLayer,t.options.classPrefix+"playlist-hidden")?t.pause():t.options.playlistInline&&t.play()}),!0===t.options.displayPlaylist&&t.options.playlist.length>1&&t.addControlElement(t.playlistButton,"playlist"),t.searchContainer=document.createElement("div"),t.searchContainer.classList.add(t.options.classPrefix+"playlist-search"),t.searchBox=document.createElement("input"),t.searchBox.type="text",t.searchBox.size="40",t.searchBox.tabIndex="0",t.searchBox.placeholder=wpcp_mejs.i18n.t("wpcp_mejs.search"),t.searchBox.classList.add(t.options.classPrefix+"search-input"),t.searchContainer.insertBefore(t.searchBox,null),t.searchBox.addEventListener("input",function(e){let l=jQuery(this).val().replace(/<[^>]*>/g,"");l=new RegExp(l.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),"i"),jQuery(this).val().length>0?(clearTimeout(t.searchTimer),t.searchTimer=setTimeout(function(){jQuery("."+t.options.classPrefix+"playlist-item.is-hidden").removeClass("is-hidden");for(const[i,s]of Object.entries(t.playlist))if(s.title.search(l)>-1||s.description.search(l)>-1||s.folder.search(l)>-1);else{var e=t.playlistLayer.querySelector("."+t.options.classPrefix+'playlist-item[data-playlist-index="'+i+'"]');jQuery(e).addClass("is-hidden")}jQuery("."+t.options.classPrefix+"playlist-item-folder").each(function(){0===jQuery(this).find('li.wpcp__playlist-item:not(".is-hidden")').length&&jQuery(this).addClass("is-hidden")})},100)):(clearTimeout(t.searchTimer),jQuery("."+t.options.classPrefix+"playlist-item.is-hidden").removeClass("is-hidden"))}),!0===t.options.displayPlaylist&&t.options.playlist.length>1&&(t.hasSearch=!0,t.playlistLayer.insertBefore(t.searchContainer,t.playlistLayer.querySelector("ul"))),t.options.zipDownload&&(t.zipButton=document.createElement("button"),t.zipButton.tabIndex="0",t.zipButton.innerHTML='<i class="eva eva-download eva-lg"></i> '+wpcp_mejs.i18n.t("wpcp_mejs.zipdownload"),t.zipButton.classList.add(t.options.classPrefix+"playlist-zip-button"),t.zipButton.classList.add("button"),t.zipButton.addEventListener("click",function(e){t.options.main._actionDownloadZip(null,e)}),!0===t.options.displayPlaylist&&t.options.playlist.length>1&&t.playlistLayer.querySelector("ul").appendChild(t.zipButton)),t.playlistLayer.querySelectorAll("."+t.options.classPrefix+"playlist-item-thumbnail img").forEach(e
136=>{e.addEventListener("error",l=>{e.src=t.options.main.options.icons_set+"icon_11_"+(t.isVideo?"video":"audio")+"_xl128"})}),t.playerDownloadButton=document.createElement("div"),t.playerDownloadButton.className=t.options.classPrefix+"button "+t.options.classPrefix+"download-button",t.playerDownloadButton.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+wpcp_mejs.i18n.t("wpcp_mejs.download-file")+'" aria-label="'+wpcp_mejs.i18n.t("wpcp_mejs.download-file")+'" tabindex="0"></button>',t.playerDownloadButton.addEventListener("click",function(){t.playlistLayer.querySelector("."+t.options.classPrefix+'playlist-item[data-playlist-index="'+t.currentPlaylistItem+'"]').querySelector("."+t.options.classPrefix+"playlist-item-download").click()}),!1!==t.options.displayPlaylist&&1!==t.options.playlist.length||(t.addControlElement(t.playerDownloadButton,"playerdownload"),void 0!==t.playerDownloadButton&&(!1===t.playlist[t.currentPlaylistItem].download?t.playerDownloadButton.style.display="none":t.playerDownloadButton.style.display="inline-block")),t.playerShareButton=document.createElement("div"),t.playerShareButton.className=t.options.classPrefix+"button "+t.options.classPrefix+"share-button",t.playerShareButton.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+wpcp_mejs.i18n.t("wpcp_mejs.share")+'" aria-label="'+wpcp_mejs.i18n.t("wpcp_mejs.share")+'" tabindex="0"></button>',t.playerShareButton.addEventListener("click",function(e){var l=jQuery(t.playlistLayer.querySelector("."+t.options.classPrefix+'playlist-item[data-playlist-index="'+t.currentPlaylistItem+'"]'));e.stopPropagation(),t.options.main._actionShareEntry(l,e)}),!1!==t.options.displayPlaylist&&1!==t.options.playlist.length||(t.addControlElement(t.playerShareButton,"playershare"),void 0!==t.playerShareButton&&(!1===t.playlist[t.currentPlaylistItem].share?t.playerShareButton.style.display="none":t.playerShareButton.style.display="inline-block")),t.playerDeeplinkButton=document.createElement("div"),t.playerDeeplinkButton.className=t.options.classPrefix+"button "+t.options.classPrefix+"deeplink-button",t.playerDeeplinkButton.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+wpcp_mejs.i18n.t("wpcp_mejs.deeplink")+'" aria-label="'+wpcp_mejs.i18n.t("wpcp_mejs.deeplink")+'" tabindex="0"></button>',t.playerDeeplinkButton.addEventListener("click",function(e){var l=jQuery(t.playlistLayer.querySelector("."+t.options.classPrefix+'playlist-item[data-playlist-index="'+t.currentPlaylistItem+'"]'));e.stopPropagation(),t.options.main._actionCreateDeepLink(l,e)}),!1!==t.options.displayPlaylist&&1!==t.options.playlist.length||(t.addControlElement(t.playerDeeplinkButton,"playerdeeplink"),void 0!==t.playerDeeplinkButton&&(!1===t.playlist[t.currentPlaylistItem].deeplink?t.playerDeeplinkButton.style.display="none":t.playerDeeplinkButton.style.display="inline-block")),t.playlistLayer.querySelectorAll("."+t.options.classPrefix+"playlist-item:not(."+t.options.classPrefix+"playlist-item-folder)").forEach(function(e){e.addEventListener("click",function(e){e.stopPropagation();var l=parseInt(this.getAttribute("data-playlist-index"));t.loadPlaylistItem(l,!1,!0)})}),t.playlistLayer.querySelectorAll("."+t.options.classPrefix+"playlist-item-folder").forEach(function(e){e.addEventListener("click",function(l){l.stopPropagation();var i=e,s=i.querySelector("ul"),a=i.querySelector("i");wpcp_mejs.Utils.hasClass(i,t.options.classPrefix+"playlist-item-folder-open")?(wpcp_mejs.Utils.removeClass(a,"eva-arrow-down"),wpcp_mejs.Utils.addClass(a,"eva-arrow-right"),wpcp_mejs.Utils.removeClass(i,t.options.classPrefix+"playlist-item-folder-open"),jQuery(s).slideUp()):(wpcp_mejs.Utils.addClass(a,"eva-arrow-down"),wpcp_mejs.Utils.removeClass(a,"eva-arrow-right"),wpcp_mejs.Utils.addClass(i,t.options.classPrefix+"playlist-item-folder-open"),jQuery(s).slideDown())})}),t.changeLayout(),t.refreshStream=function(){if(t.readyState<3&&t.playlist[t.currentPlaylistItem].expires<new Date){console.debug("RENEW STREAM"),t.pause();var e=t.getCurrentTime();t.setSrc(t.playlist[t.currentPlaylistItem].src),t.setCurrentTime(e),t.play();var l=new Date;t.playlist[t.currentPlaylistItem].expires=l.setMinutes(l.getMinutes()+4)}},t.startProgressCallback=function(){t.refreshStream()},i.addEventListener("progress",t.startProgressCallback),t.playlistPlayCallback=function(){wpcp_mejs.Utils.addClass(t.container,t.options.classPrefix+"active"),document.title=t.browserTitle,t.refreshStream()},i.addEventListener("play",t.playlistPlayCallback),t.playlistPauseCallback=function(){wpcp_mejs.Utils.removeClass(t.container,t.options.classPrefix+"active"),t.scrollItemInView(),document.title=t.options.defaultTitle},i.addEventListener("pause",t.playlistPauseCallback),t.timeupdateCallback=function(){let e=JSON.stringify({playlist_item:t.currentPlaylistItem,current_time:t.getCurrentTime()});localStorage.setItem("wpcp-media-"+t.options.listtoken,e)},i.addEventListener("timeupdate",t.timeupdateCallback),t.playlistEndedCallback=function(){if(t.options.loop||t.adsPlayerHasStarted&&!t.adsPlayerHasFinished||!t.options.playlistAutoPlay)return;let e=t.currentPlaylistItem+1;t.options.shuffleEnabled&&(e=t.shuffleIndex(e)),t.currentPlaylistItem<t.playlist.length-1?t.loadPlaylistItem(e,!0,!0):t.options.playlistLoop&&t.loadPlaylistItem(0,!0,!0),wpcp_mejs.Utils.removeClass(t.container,t.options.classPrefix+"active"),document.title=t.options.defaultTitle},i.addEventListener("ended",t.playlistEndedCallback),t.container.addEventListener("wpcp_mejsprerollfinished",function(){t.adsPlayerHasFinished=!0}),t.container.offsetWidth<380&&t.options.rootContainer.setAttribute("data-layout","list"),window.addEventListener("resize",function(){clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout(function(){t.container.offsetWidth<380?t.options.rootContainer.setAttribute("data-layout","list"):t.options.rootContainer.setAttribute("data-layout",t.options.layout)},100)}),t.playlistCaptionChangeCallback=function(){void 0!==t.selectedTrack&&null!==t.selectedTrack?t.options.startLanguage=t.selectedTrack.srclang:t.options.startLanguage=null},i.addEventListener("captionschange",t.playlistCaptionChangeCallback),t.scrollItemInView=function(){var e=t.playlistLayer.querySelector(".is-selected"),l=e.offsetParent;if(null===l)return;const i=e.offsetTop,s=i+e.clientHeight,a=l.scrollTop,n=a+l.clientHeight;i<a?jQuery(l).animate({scrollTop:l.scrollTop-a-i}):s>n&&jQuery(l).animate({scrollTop:l.scrollTop+s-n})},t.lazyLoadingPlaylistItem=function(){var e=t.currentPlaylistItem+1;if(void 0!==t.playlist[e]&&!(void 0!==t.playlist[e].expires&&t.playlist[e].expires>new Date)){var l=new Date;t.playlist[e].expires=l.setMinutes(l.getMinutes()+4),t.playlist[e].preloaded="busy";var i=t.playlist[e].src[0],s=document.createElement("video");s.setAttribute("preload","metadata"),s.setAttribute("crossorigin","anonymous"),s.setAttribute("muted",!0),s.setAttribute("playsinline",!0);var a=document.createElement("source");a.setAttribute("type",i.type),a.setAttribute("src",i.src),s.appendChild(a),s.onloadedmetadata=function(l){t.playlist[e].preloaded=!0},s.onstalled=function(l){t.playlist[e].preloaded=!0},s.load()}},i.addEventListener("play",t.lazyLoadingPlaylistItem),"VIDEO"===t.node.nodeName&&(t.floating_container=document.querySelector("."+t.options.classPrefix+"floating-container"),t.inner_container=t.container.children[0],null===t.floating_container&&(t.floating_container=document.createElement("div"),t.floating_container.setAttribute("class",t.options.classPrefix+"floating-container"),document.body.appendChild(t.floating_container)),window.addEventListener("scroll",function(){clearTimeout(t.floatingTimer),t.floatingTimer=setTimeout(function(){var e=t.container.parentNode.getBoundingClientRect().top,l=t.container.offsetHeight,i=Math.floor(e+window.scrollY),s=Math.floor(i+l/2);t.options.isFloating=!1===t.paused&&window.scrollY>s,t.options.isFloating?t.floating_container.appendChild(t.node):t.container.querySelector(".wpcp__mediaelement div").appendChild(t.node)},50)})),t.keydownCallback=function(t){var e=wpcp_mejs.Utils.createEvent("click",t.target);return t.target.dispatchEvent(e),!1},t.playlistLayer.addEventListener("keydown",function(e){var l=e.which||e.keyCode||0;~[13,32,38,40].indexOf(l)&&t.keydownCallback(e)}),null!==(o=localStorage.getItem("wpcp-media-"+t.options.listtoken))&&t.options.rootContainer.getAttribute("data-sort").indexOf("shuffle")<0){var o=JSON.parse(o);t.loadPlaylistItem(o.playlist_item,!0,!1),o.current_time>10&&t.setCurrentTime(o.current_time)}else t.loadPlaylistItem(t.currentPlaylistItem,!0,!1);jQuery(t.options.main.element).on({click:function(e){tippy.hideAll();var l=jQuery(t.playlistLayer).find(".entry[data-id='"+jQuery(this).closest("[data-id]").attr("data-id")+"']");
136e.stopPropagation(),t.options.main._actionShareEntry(l,e)}},"."+t.options.classPrefix+"playlist-item-shortlink"),jQuery(t.options.main.element).on({click:function(e){tippy.hideAll();var l=jQuery(t.playlistLayer).find(".entry[data-id='"+jQuery(this).closest("[data-id]").attr("data-id")+"']");e.stopPropagation(),t.options.main._actionCreateDeepLink(l,e)}},"."+t.options.classPrefix+"playlist-item-deeplink"),t.playlistLayer.querySelectorAll("."+t.options.classPrefix+"playlist-item-file .entry-action-menu-button").forEach(function(e){e.addEventListener("click",function(t){t.stopPropagation()}),tippy(e,{trigger:"click",arrow:!1,offset:0,content:function(t){const e=t.querySelector(".tippy-content-holder").cloneNode(!0);return wpcp_mejs.Utils.removeClass(e,"tippy-content-holder"),e},maxWidth:350,allowHTML:!0,placement:t.options.main.is_rtl?"bottom-end":"bottom-start",appendTo:t.playlistLayer.parentNode,followCursor:"initial",duration:[300,0],interactive:!0,onShow:function(t){const e=t.reference.closest(".entry");wpcp_mejs.Utils.addClass(e,"hasfocus"),wpcp_mejs.Utils.addClass(e,"popupopen")},onHide:function(t){const e=t.reference.closest(".entry");wpcp_mejs.Utils.removeClass(e,"hasfocus"),wpcp_mejs.Utils.removeClass(e,"popupopen")}})}),t.playlistLayer.querySelectorAll("."+t.options.classPrefix+"playlist-item-file ."+t.options.classPrefix+"playlist-item-description:not(:empty)").forEach(function(e){tippy(e,{arrow:!1,offset:0,content:function(t){return'<div class="description-textbox"><div class="description-file-name">'+t.parentNode.childNodes[0].childNodes[0].innerHTML+'</div><div class="description-text">'+t.innerHTML+"</div></div>"},maxWidth:350,allowHTML:!0,placement:t.options.main.is_rtl?"bottom-end":"bottom-start",appendTo:t.playlistLayer.parentNode,followCursor:"initial",duration:[300,0],delay:[1e3,null],interactive:!0,onShow:function(t){const e=t.reference.closest(".entry");wpcp_mejs.Utils.addClass(e,"hasfocus"),wpcp_mejs.Utils.addClass(e,"popupopen")},onHide:function(t){const e=t.reference.closest(".entry");wpcp_mejs.Utils.removeClass(e,"hasfocus"),wpcp_mejs.Utils.removeClass(e,"popupopen")}})})},cleancustom_playlist:function(t,e,l,i){i.removeEventListener("ended",t.playlistEndedCallback)},buildprevtrack:function(t){var e=wpcp_mejs.i18n.t("wpcp_mejs.playlist-prev"),l=wpcp_mejs.Utils.isString(t.options.prevText)?t.options.prevText:e;t.prevButton=document.createElement("div"),t.prevButton.className=t.options.classPrefix+"button "+t.options.classPrefix+"prev-button",t.prevButton.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+l+'" aria-label="'+l+'" tabindex="0"></button>',t.prevPlaylistCallback=function(){let e=t.currentPlaylistItem-1;if(t.options.shuffleEnabled&&(e=t.shuffleIndex(e)),t.playlist[e]){var l=t.playlistLayer.querySelector("."+t.options.classPrefix+'playlist-item[data-playlist-index="'+e+'"]'),i=new Event("click");l.dispatchEvent(i)}},t.prevButton.addEventListener("click",t.prevPlaylistCallback),t.options.playlist.length<2||t.addControlElement(t.prevButton,"prevtrack")},cleanprevtrack:function(t){t.prevButton.removeEventListener("click",t.prevPlaylistCallback)},buildnexttrack:function(t){var e=wpcp_mejs.i18n.t("wpcp_mejs.playlist-next"),l=wpcp_mejs.Utils.isString(t.options.nextText)?t.options.nextText:e;t.nextButton=document.createElement("div"),t.nextButton.className=t.options.classPrefix+"button "+t.options.classPrefix+"next-button",t.nextButton.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+l+'" aria-label="'+l+'" tabindex="0"></button>',t.nextPlaylistCallback=function(){let e=t.currentPlaylistItem+1;if(t.options.shuffleEnabled&&(e=t.shuffleIndex(e)),t.playlist[e]){var l=t.playlistLayer.querySelector("."+t.options.classPrefix+'playlist-item[data-playlist-index="'+e+'"]'),i=new Event("click");l.dispatchEvent(i)}},t.nextButton.addEventListener("click",t.nextPlaylistCallback),t.options.playlist.length<2||t.addControlElement(t.nextButton,"nexttrack")},cleannexttrack:function(t){t.nextButton.removeEventListener("click",t.nextPlaylistCallback)},buildtitle:function(t){t.titleElement=document.createElement("div"),t.titleElement.className=t.options.classPrefix+"title-container",t.addControlElement(t.titleElement,"title")},buildloop:function(t){var e=wpcp_mejs.i18n.t("wpcp_mejs.playlist-loop"),l=wpcp_mejs.Utils.isString(t.options.loopText)?t.options.loopText:e;t.loopButton=document.createElement("div"),t.loopButton.className=t.options.classPrefix+"button "+t.options.classPrefix+"loop-button "+(t.options.loop?t.options.classPrefix+"loop-on":t.options.classPrefix+"loop-off"),t.loopButton.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+l+'" aria-label="'+l+'" tabindex="0"></button>',t.loopCallback=function(){t.options.loop=!t.options.loop,t.options.loop?(wpcp_mejs.Utils.removeClass(t.loop
136Button,t.options.classPrefix+"loop-off"),wpcp_mejs.Utils.addClass(t.loopButton,t.options.classPrefix+"loop-on")):(wpcp_mejs.Utils.removeClass(t.loopButton,t.options.classPrefix+"loop-on"),wpcp_mejs.Utils.addClass(t.loopButton,t.options.classPrefix+"loop-off"))},t.loopButton.addEventListener("click",t.loopCallback),t.addControlElement(t.loopButton,"loop")},cleanloop:function(t){t.loopButton.removeEventListener("click",t.loopCallback)},buildshuffle:function(t){var e=wpcp_mejs.i18n.t("wpcp_mejs.playlist-shuffle"),l=wpcp_mejs.Utils.isString(t.options.shuffleText)?t.options.shuffleText:e;t.shuffleButton=document.createElement("div"),t.shuffleButton.className=t.options.classPrefix+"button "+t.options.classPrefix+"shuffle-button "+t.options.classPrefix+"shuffle-off",t.shuffleButton.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+l+'" aria-label="'+l+'" tabindex="0"></button>',t.shuffleButton.style.display="none",t.media.addEventListener("play",function(){t.shuffleButton.style.display="",t.resetSize()}),t.options.shuffleEnabled=!1,t.options.shufflePlayedItems=[],t.shuffleIndex=function(e){let l=Math.floor(Math.random()*t.playlist.length);return-1===t.options.shufflePlayedItems.indexOf(l)?t.options.shufflePlayedItems.push(l):t.options.shufflePlayedItems.length<t.playlist.length?l=t.shuffleIndex(l):t.options.shufflePlayedItems.length>=t.playlist.length&&(t.options.shufflePlayedItems=[],t.options.shufflePlayedItems.push(l)),l},t.shuffleCallback=function(){t.options.shuffleEnabled?(wpcp_mejs.Utils.removeClass(t.shuffleButton,t.options.classPrefix+"shuffle-on"),wpcp_mejs.Utils.addClass(t.shuffleButton,t.options.classPrefix+"shuffle-off"),t.options.shuffleEnabled=!1):(wpcp_mejs.Utils.removeClass(t.shuffleButton,t.options.classPrefix+"shuffle-off"),wpcp_mejs.Utils.addClass(t.shuffleButton,t.options.classPrefix+"shuffle-on"),t.options.shuffleEnabled=!0)},t.shuffleButton.addEventListener("click",t.shuffleCallback),t.options.playlist.length<2||t.addControlElement(t.shuffleButton,"shuffle")},cleanshuffle:function(t){t.shuffleButton.removeEventListener("click",t.shuffleCallback)},createWPCPPlayList_:function(t){var e=this;if(e.playlist=e.options.playlist.length?e.options.playlist:[],e.playlist.length){e.listItems=[];for(const[n,o]of Object.entries(e.playlist)){var l=t,i=1,s=!0===o.folder?[""]:o.folder.split("/"),a="";s.forEach(function(t,s){if(a+="/"+t.replace(/'/g," "),null===(n=e.playlistLayer.querySelector("ul[data-folder='"+a+"']"))){var n;if((n=document.createElement("UL")).classList.add(e.options.classPrefix+"playlist-item-folder-content"),n.style.display="none",n.setAttribute("data-folder",a),""!==t){var o=document.createElement("LI");o.tabIndex=0,o.classList.add(e.options.classPrefix+"playlist-item",e.options.classPrefix+"playlist-item-folder","entry"),o.setAttribute("data-folder",a),o.setAttribute("data-depth",i),o.innerHTML='<div class="'+e.options.classPrefix+'playlist-item-card"><div class="'+e.options.classPrefix+'playlist-item-content"><div class="'+e.options.classPrefix+'playlist-item-title-wrapper"><div class="'+e.options.classPrefix+'playlist-item-title"><span><i class="eva eva-arrow-right"></i> '+wpcp_escape_html(t)+"</span></div></div></div></div></div>",o.appendChild(n)}l.appendChild(o)}l=n,i+=1})}e.playlist.forEach(function(t,l){var i=document.createElement("li"),s=(e.id,!0===t.folder?[""]:t.folder.split("/")),a=e.playlistLayer.querySelector("ul[data-folder='/"+t.folder.replace(/'/g," ")+"']"),n=s.length;e.playlist[l].src=t.sources,i.tabIndex=0,i.className=e.options.classPrefix+"playlist-item "+e.options.classPrefix+"playlist-item-file entry"+(0===l?" is-selected":""),""!==s[0]?i.setAttribute("data-depth",n):i.setAttribute("data-depth",0),i.setAttribute("data-playlist-index",l),i.setAttribute("data-id",t.id),i.setAttribute("data-name",t.title),i.innerHTML='<div class="'+e.options.classPrefix+'playlist-item-card">'+(t.thumbnail?'<div class="'+e.options.classPrefix+'playlist-item-thumbnail"><div class="preloading"></div>'+(t.duration>0?'<div class="'+e.options.classPrefix+'playlist-item-duration">'+toHHMMSS(t.duration)+"</div>":"")+'<img tabindex="-1" src="'+t.thumbnail+'" title="'+wpcp_escape_html(t.title)+'" referrerpolicy="no-referrer" loading="lazy"></div>':"")+'<div class="'+e.options.classPrefix+'playlist-item-content"><div class="'+e.options.classPrefix+'playlist-item-title-wrapper"><div class="'+e.options.classPrefix+'playlist-item-title" title="'+wpcp_escape_html(t.title)+'">'+wpcp_escape_html(t.title)+" "+(t.textTracks.length>0?'<i class="eva eva-message-square"></i>':"")+' <i class="eva eva-volume-up-outline"></i></div>'+(!1===t.download&&!1===t.purchaselink&&!1===t.deeplink?"":"<div class='"+e.options.classPrefix+"playlist-item-title-button'><div class='entry-info-button entry-action-menu-button' tabindex='0'><i class='eva eva-more-vertical-outline'></i><div id='menu-"+t.id+"' class='entry-action-menu-button-content tippy-content-holder'><ul data-id='"+t.id+"'>"+(!1!==t.download?'<li><a target="_blank" href="'+t.download+'" class="'+e.options.classPrefix+'playlist-item-download" title="'+wpcp_mejs.i18n.t("wpcp_mejs.download-file")+'"><i class="eva eva-download eva-lg"></i> '+wpcp_mejs.i18n.t("wpcp_mejs.download-file")+"</a></li>":"")+(!1!==t.purchaselink?'<li><a target="_blank" href="'+t.purchaselink+'" class="'+e.options.classPrefix+'playlist-item-purchase" title="'+wpcp_mejs.i18n.t("wpcp_mejs.purchase")+'"><i class="eva eva-shopping-cart eva-lg"></i> '+wpcp_mejs.i18n.t("wpcp_mejs.purchase")+"</a></li>":"")+(!1!==t.deeplink?'<li><a class="'+e.options.classPrefix+'playlist-item-deeplink" title="'+wpcp_mejs.i18n.t("wpcp_mejs.deeplink")+'"><i class="eva eva-link eva-lg"></i> '+wpcp_mejs.i18n.t("wpcp_mejs.deeplink")+"</a></li>":"")+(!1!==t.share?'<li><a class="'+e.options.classPrefix+'playlist-item-shortlink" title="'+wpcp_mejs.i18n.t("wpcp_mejs.share")+'"><i class="eva eva-share-outline eva-lg"></i> '+wpcp_mejs.i18n.t("wpcp_mejs.share")+"</a></li>":"")+"</ul></div></div></div>")+'</div><div class="'+e.options.classPrefix+'playlist-item-metadata"><div class="'+e.options.classPrefix+'playlist-item-lastedited"><div><span class="'+e.options.classPrefix+'playlist-item-lastedited-date">'+t.last_edited_date_str+'</span> <span class="'+e.options.classPrefix+'playlist-item-lastedited-time">'+t.last_edited_time_str+'</span></div></div></div><div class="'+e.options.classPrefix+'playlist-item-description">'+t.description+"</div></div></div>",e.listItems.push(i.outerHTML),a.appendChild(i)});var n=0,o=[];e.playlistLayer.querySelectorAll("."+e.options.classPrefix+"playlist-item-file").forEach(function(t){o[n]=e.playlist[t.getAttribute("data-playlist-index")],t.setAttribute("data-playlist-index",n),n++}),e.playlist=o,e.playlistLayer.querySelectorAll("ul").forEach(function(t){let l=0;for(let i=0;i<t.children.length;i++)t.children[i].classList.contains(e.options.classPrefix+"playlist-item-folder")&&l++;t.style.gridTemplateRows="repeat("+l+", auto)"});var r=e.playlistLayer.querySelector("li[data-depth='0']");null===r&&(r=e.playlistLayer.querySelector("."+e.options.classPrefix+"playlist-item[data-playlist-index='0']"));var p=parseInt(r.getAttribute("data-playlist-index"));e.currentPlaylistItem=p}},loadPlaylistItem:function(t,e,l){var i=this,s=i.playlistLayer.querySelector(".is-selected"),a=i.playlistLayer.querySelector("."+i.options.classPrefix+"playlist-item[data-playlist-index='"+t+"']");i.isVideo&&!0===i.options.autoClosePlaylist&&jQuery(i.playlistLayer).slideToggle(),wpcp_mejs.Utils.removeClass(s,"is-selected"),wpcp_mejs.Utils.addClass(a,"is-selected"),i.openPlaylistSubFolders(a),i.currentPlaylistItem===t&&!0!==e||(i.currentPlaylistItem=t,i.options.googleAnalyticsTitle=i.playlist[t].title+(null!==i.playlist[t].description?" | "+i.playlist[t].description:""),i.setSrc(i.playlist[t].src),i.setPoster(i.playlist[t].poster),i.scrollItemInView(),i.titleElement&&(i.titleElement.textContent=i.playlist[t].title,i.titleElement.title=i.playlist[t].title),i.browserTitle=i.playlist[t].title,i.adsCurrentMediaUrl=i.playlist[t].src,void 0===i.adsDataIsLoading||!0!==i.adsDataIsLoading?(void 0!==i.playerDownloadButton&&(!1===i.playlist[i.currentPlaylistItem].download?i.playerDownloadButton.style.display="none":i.playerDownloadButton.style.display="inline-block"),void 0!==i.playerShareButton&&(!1===i.playlist[i.currentPlaylistItem].share?i.playerShareButton.style.display="none":i.playerShareButton.style.display="inline-block"),void 0!==i.playerDeeplinkButton&&(!1===i.playlist[i.currentPlaylistItem].deeplink?i.playerDeeplinkButton.style.display="none":i.playerDeeplinkButton.style.display="inline-block"),i.load(),(i.node.getAutoplay()||l)&&i.play().then(()=>{}).catch(t=>{!1===navigator.userActivation.hasBeenActive&&i.setMuted(!0),i.play().then(()=>{}).catch(t=>{i.setMuted(!1)})}
136),i.options.features.forEach(function(t){"speed"!==t||void 0!==i.speedButton?"ads"===t&&i.adsPlayerHasStarted&&!i.adsPlayerHasFinished&&(i.adsLoaded=!1,i.options.indexPreroll=0,i.options.adsPlayerHasStarted=!1,i.adsDataIsLoading=!1,i.buildads(i,i.getElement(i.controls),i.getElement(i.layers))):i.buildspeed(i,i.getElement(i.controls),i.getElement(i.layers),i.media)}),i.loadPlaylistTracks(i.currentPlaylistItem)):i.loadPlaylistTracks(i.currentPlaylistItem))},loadPlaylistTracks:function(t){var e=this,l=e.playlist[t].textTracks;e.trackFiles=[],l.length>0&&l.forEach(function(t,l){var i=document.createElement("track");i.kind=t.kind,i.label=t.label,i.src=t.src,i.srclang=t.srclang,e.trackFiles.push(i)}),setTimeout(function(){e.rebuildtracks(),e.changeLayout(),e.findTracks(),e.loadTrack(0),e.tracks.forEach(function(t,l){if(""===e.options.startLanguage||null===e.options.startLanguage||t.srclang===e.options.startLanguage)return e.setTrack(t.trackId)})},1e3)},openPlaylistSubFolders:function(t){for(var e=this,l=t.parentNode;l&&!l.classList.contains(e.options.classPrefix+"playlist-root");)if(!1!==l.classList.contains(e.options.classPrefix+"playlist-item-folder")){if(l.classList.contains(e.options.classPrefix+"playlist-item-folder-open"))break;l.click(),l=l.parentNode}else l=l.parentNode},changeLayout:function(){var t=this;if(void 0===t.leftcontrols){var e=document.createElement("div"),l=document.createElement("div"),i=document.createElement("div");wpcp_mejs.Utils.addClass(e,t.options.classPrefix+"controls-left"),wpcp_mejs.Utils.addClass(l,t.options.classPrefix+"controls-center"),wpcp_mejs.Utils.addClass(i,t.options.classPrefix+"controls-right"),t.controls.appendChild(e),t.controls.appendChild(l),t.controls.appendChild(i),t.leftcontrols=e,t.centercontrols=l,t.rightcontrols=i}t.controls.querySelectorAll(".wpcp__volume-button, .wpcp__horizontal-volume-slider, .wpcp__currenttime-container, .wpcp__time, wpcp__duration-container").forEach(function(e){t.leftcontrols.appendChild(e)}),t.controls.querySelectorAll(".wpcp__speed-button, .wpcp__skip-back-button, .wpcp__prev-button, .wpcp__playpause-button, .wpcp__next-button, .wpcp__jump-forward-button").forEach(function(e){t.centercontrols.appendChild(e)}),t.controls.querySelectorAll(".wpcp__shuffle-button, .wpcp__loop-button, .wpcp__deeplink-button, .wpcp__share-button, .wpcp__download-button, .wpcp__fullscreen-button, .wpcp__playlist-button, .wpcp__captions-button, .wpcp__chromecast-button, .wpcp__airplay-button").forEach(function(e){t.rightcontrols.appendChild(e)}),t.playlistLayer.parentNode!==t.container.parentNode&&t.container.parentNode.appendChild(t.playlistLayer)}})},{}]},{},[1]),!navigator.userActivation){navigator.userActivation={hasBeenActive:!1};let t=e=>{e.isTrusted&&(navigator.userActivation.hasBeenActive=!0,window.removeEventListener("click",t))};window.addEventListener("click",t)}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.