diff --git a/.huskyrc b/.huskyrc deleted file mode 100644 index 4cb8a6de..00000000 --- a/.huskyrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "hooks": { - "pre-commit": "lint-staged", - "post-commit": "git update-index --again" - } -} \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..20a1c668 --- /dev/null +++ b/.npmrc @@ -0,0 +1,5 @@ +global-style=true +engine-strict=true +legacy-peer-deps=true +lockfile-version=3 +save=true \ No newline at end of file diff --git a/dist/openplayer.css b/dist/openplayer.css index 00c0b0f6..a3fe89b0 100644 --- a/dist/openplayer.css +++ b/dist/openplayer.css @@ -35,12 +35,15 @@ box-sizing: border-box; } +.op-player__media { + width: 100% !important; +} + .op-player__media { display: inline-block; height: auto; object-fit: contain; position: relative; - width: 100% !important; } .op-player [aria-hidden='true'] { display: none; @@ -250,44 +253,56 @@ /* === Buttons =================== */ .op-controls__playpause:before { - content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyNC4zLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAzNSAzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzUgMzU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiNGRkZGRkY7fQ0KPC9zdHlsZT4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0zMS4xLDE2LjJjMC43LDAuMywxLDEsMC43LDEuN2MtMC4xLDAuMy0wLjQsMC42LTAuNywwLjdMNSwzNC43Yy0xLjEsMC43LTIsMC4yLTItMS4xVjEuNGMwLTEuMywxLTEuOCwyLTEuMQ0KCUwzMS4xLDE2LjJ6Ii8+DQo8L3N2Zz4NCg==); + content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAzNSAzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzUgMzU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojRkZGRkZGO30KPC9zdHlsZT4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTMxLjEsMTYuMmMwLjcsMC4zLDEsMSwwLjcsMS43Yy0wLjEsMC4zLTAuNCwwLjYtMC43LDAuN0w1LDM0LjdjLTEuMSwwLjctMiwwLjItMi0xLjFWMS40YzAtMS4zLDEtMS44LDItMS4xCglMMzEuMSwxNi4yeiIvPgo8L3N2Zz4K); } .op-controls__playpause--pause:before { - content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2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ik0yNy44LDI4LjdjLTAuNiwwLTEuMi0wLjMtMS41LTAuOWMtMC41LTAuOC0wLjItMS45LDAuNi0yLjRjNC40LTIuNiw1LjktOC4yLDMuNC0xMi42Yy0wLjgtMS40LTItMi42LTMuNC0zLjQNCglDMjYsOS4xLDI1LjYsOCwyNiw3LjFzMS40LTEuMywyLjMtMC44YzAuMSwwLDAuMiwwLjEsMC4zLDAuMmM2LjEsMy42LDguMSwxMS40LDQuNSwxNy41Yy0xLjEsMS45LTIuNywzLjQtNC41LDQuNQ0KCUMyOC40LDI4LjcsMjguMSwyOC43LDI3LjgsMjguN3oiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0yNC41LDIzLjFjLTAuNiwwLTEuMi0wLjMtMS41LTAuOWMtMC41LTAuOC0wLjItMS45LDAuNi0yLjRjMS4zLTAuNywxLjctMi4zLDEtMy42Yy0wLjItMC40LTAuNi0wLjgtMS0xDQoJYy0wLjgtMC42LTEtMS43LTAuNC0yLjRjMC41LTAuNywxLjQtMC45LDIuMi0wLjZjMi45LDEuNywzLjksNS40LDIuMyw4LjNjLTAuNSwwLjktMS4zLDEuNy0yLjMsMi4zQzI1LjEsMjMsMjQuOCwyMy4xLDI0LjUsMjMuMXoiDQoJLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xNy44LDQuMWwtOC4xLDYuNGwtMC4yLDAuMkgxYy0wLjYsMC0xLDAuNC0xLDF2MTEuNmMwLDAuNiwwLjQsMSwxLDFoOC41bDAuMSwwLjJsOC4xLDYuNQ0KCWMwLjQsMC4zLDEuMSwwLjMsMS40LTAuMmMwLjEtMC4yLDAuMi0wLjQsMC4yLTAuNlY0LjljMC0wLjYtMC41LTEtMS0xQzE4LjEsNCwxNy45LDQsMTcuOCw0LjF6Ii8+DQo8L3N2Zz4NCg==); width: 18px !important; } +.op-controls__mute:before { + content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiP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jxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xNi45LDE2LjJjLTAuMy0zLjYtMi4yLTUuNy01LjYtNS43Yy0zLjEsMC01LjYsMi44LTUuNiw3LjNzMi4yLDcuNCw1LjksNy40YzMsMCw1LTIuMiw1LjMtNS44aC0zLjUKCWMtMC4xLDEuMy0wLjcsMi40LTEuOSwyLjRjLTEuOSwwLTIuMi0xLjgtMi4yLTMuOGMwLTIuNywwLjgtNC4xLDIuMS00LjFjMS4xLDAsMS45LDAuOCwyLDIuM0gxNi45eiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjksMTYuMmMtMC4zLTMuNi0yLjItNS43LTUuNi01LjdjLTMuMSwwLTUuNiwyLjgtNS42LDcuM3MyLjIsNy40LDUuOSw3LjRjMywwLDUtMi4yLDUuMy01LjhoLTMuNQoJYy0wLjEsMS4zLTAuNywyLjQtMS45LDIuNGMtMS45LDAtMi4yLTEuOC0yLjItMy44YzAtMi43LDAuOC00LjEsMi4xLTQuMXMxLjksMC44LDIsMi4zSDI5eiIvPgo8L3N2Zz4K); +} .op-controls__captions.op-controls__captions--on:before { -webkit-filter: invert(73%) sepia(71%) saturate(6868%) hue-rotate(356deg) brightness(101%) contrast(126%); filter: invert(73%) sepia(71%) saturate(6868%) hue-rotate(356deg) brightness(101%) contrast(126%); } .op-controls__settings:before { - content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyNC4zLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94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tMC44LDAuN2wtMC43LDQuNgoJYy0xLjEsMC40LTIuMSwxLTMsMS43TDUuMiw1LjNjLTAuNC0wLjItMC45LDAtMS4xLDAuNGwtMy41LDYuMWMtMC4yLDAuNC0wLjEsMC45LDAuMiwxLjFsMy43LDIuOWMtMC4xLDAuNi0wLjEsMS4yLTAuMSwxLjcKCWMwLDAuNiwwLjEsMS4yLDAuMSwxLjdsLTMuNywyLjljLTAuMywwLjMtMC40LDAuOC0wLjIsMS4xbDMuNSw2LjFjMC4yLDAuNCwwLjcsMC41LDEuMSwwLjRsNC40LTEuN2MwLjksMC43LDEuOSwxLjMsMi45LDEuNwoJbDAuNyw0LjZjMC4xLDAuNCwwLjQsMC43LDAuOSwwLjdoN2MwLjQsMCwwLjgtMC4zLDAuOC0wLjdsMC43LTQuNmMxLjEtMC40LDItMSwyLjktMS43bDQuNCwxLjdjMC40LDAuMiwwLjksMCwxLjEtMC40bDMuNS02LjEKCWMwLjItMC40LDAuMS0wLjktMC4yLTEuMUwzMC41LDE5LjJ6IE0xNy41LDIzLjZjLTMuNCwwLTYuMS0yLjctNi4xLTYuMWMwLTMuNCwyLjctNi4xLDYuMS02LjFjMy40LDAsNi4xLDIuNyw2LjEsNi4xCglDMjMuNiwyMC45LDIwLjgsMjMuNiwxNy41LDIzLjZMMTcuNSwyMy42eiIvPgo8L3N2Zz4K); } /* === Settings =================== */ @@ -924,6 +939,10 @@ video:-webkit-media-text-track-display { z-index: -100; } .op-player__full .op-player__media, +.op-player__full .op-ads { + width: auto !important; +} +.op-player__full .op-player__media, .op-player__full .op-ads { height: auto; left: 50%; @@ -933,7 +952,6 @@ video:-webkit-media-text-track-display { top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); - width: auto !important; } /* === Fit effect ======= */ diff --git a/dist/openplayer.js b/dist/openplayer.js index b04f8c47..cdc8f791 100644 --- a/dist/openplayer.js +++ b/dist/openplayer.js @@ -7,7 +7,7 @@ exports["OpenPlayer"] = factory(); else root["OpenPlayer"] = factory(); -})(this, function() { +})(this, () => { return /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ @@ -119,7 +119,7 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor /***/ ((module) => { function _getPrototypeOf(o) { - module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }, module.exports.__esModule = true, module.exports["default"] = module.exports; return _getPrototypeOf(o); @@ -225,834 +225,447 @@ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, m /***/ }), -/***/ 489: -/***/ ((module) => { - -function _setPrototypeOf(o, p) { - module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _setPrototypeOf(o, p); -} - -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; - -/***/ }), - -/***/ 38: +/***/ 591: /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -var arrayWithHoles = __webpack_require__(858); - -var iterableToArrayLimit = __webpack_require__(884); - -var unsupportedIterableToArray = __webpack_require__(379); - -var nonIterableRest = __webpack_require__(521); - -function _slicedToArray(arr, i) { - return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); -} - -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; - -/***/ }), - -/***/ 8: -/***/ ((module) => { - -function _typeof(obj) { - "@babel/helpers - typeof"; - - return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); -} - -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; - -/***/ }), - -/***/ 379: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayLikeToArray = __webpack_require__(228); - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); -} - -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; - -/***/ }), - -/***/ 757: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__(666); - - -/***/ }), - -/***/ 666: -/***/ ((module) => { - -/** - * Copyright (c) 2014-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ +var _typeof = (__webpack_require__(8)["default"]); -var runtime = (function (exports) { +function _regeneratorRuntime() { "use strict"; + /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ - var Op = Object.prototype; - var hasOwn = Op.hasOwnProperty; - var undefined; // More compressible than void 0. - var $Symbol = typeof Symbol === "function" ? Symbol : {}; - var iteratorSymbol = $Symbol.iterator || "@@iterator"; - var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; - var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + module.exports = _regeneratorRuntime = function _regeneratorRuntime() { + return exports; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + var exports = {}, + Op = Object.prototype, + hasOwn = Op.hasOwnProperty, + $Symbol = "function" == typeof Symbol ? Symbol : {}, + iteratorSymbol = $Symbol.iterator || "@@iterator", + asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", + toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { - Object.defineProperty(obj, key, { + return Object.defineProperty(obj, key, { value: value, - enumerable: true, - configurable: true, - writable: true - }); - return obj[key]; + enumerable: !0, + configurable: !0, + writable: !0 + }), obj[key]; } + try { - // IE 8 has a broken Object.defineProperty that only works on DOM objects. define({}, ""); } catch (err) { - define = function(obj, key, value) { + define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { - // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; - var generator = Object.create(protoGenerator.prototype); - var context = new Context(tryLocsList || []); + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, + generator = Object.create(protoGenerator.prototype), + context = new Context(tryLocsList || []); + return generator._invoke = function (innerFn, self, context) { + var state = "suspendedStart"; + return function (method, arg) { + if ("executing" === state) throw new Error("Generator is already running"); + + if ("completed" === state) { + if ("throw" === method) throw arg; + return doneResult(); + } - // The ._invoke method unifies the implementations of the .next, - // .throw, and .return methods. - generator._invoke = makeInvokeMethod(innerFn, self, context); + for (context.method = method, context.arg = arg;;) { + var delegate = context.delegate; - return generator; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { + if ("suspendedStart" === state) throw state = "completed", context.arg; + context.dispatchException(context.arg); + } else "return" === context.method && context.abrupt("return", context.arg); + state = "executing"; + var record = tryCatch(innerFn, self, context); + + if ("normal" === record.type) { + if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; + return { + value: record.arg, + done: context.done + }; + } + + "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); + } + }; + }(innerFn, self, context), generator; } - exports.wrap = wrap; - // Try/catch helper to minimize deoptimizations. Returns a completion - // record like context.tryEntries[i].completion. This interface could - // have been (and was previously) designed to take a closure to be - // invoked without arguments, but in all the cases we care about we - // already have an existing method we want to call, so there's no need - // to create a new function object. We can even get away with assuming - // the method takes exactly one argument, since that happens to be true - // in every case, so we don't have to touch the arguments object. The - // only additional allocation required is the completion record, which - // has a stable shape and so hopefully should be cheap to allocate. function tryCatch(fn, obj, arg) { try { - return { type: "normal", arg: fn.call(obj, arg) }; + return { + type: "normal", + arg: fn.call(obj, arg) + }; } catch (err) { - return { type: "throw", arg: err }; + return { + type: "throw", + arg: err + }; } } - var GenStateSuspendedStart = "suspendedStart"; - var GenStateSuspendedYield = "suspendedYield"; - var GenStateExecuting = "executing"; - var GenStateCompleted = "completed"; - - // Returning this object from the innerFn has the same effect as - // breaking out of the dispatch switch statement. + exports.wrap = wrap; var ContinueSentinel = {}; - // Dummy constructor functions that we use as the .constructor and - // .constructor.prototype properties for functions that return Generator - // objects. For full spec compliance, you may wish to configure your - // minifier not to mangle the names of these two functions. function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} - // This is a polyfill for %IteratorPrototype% for environments that - // don't natively support it. var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); + var getProto = Object.getPrototypeOf, + NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); - var getProto = Object.getPrototypeOf; - var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - if (NativeIteratorPrototype && - NativeIteratorPrototype !== Op && - hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { - // This environment has a native %IteratorPrototype%; use it instead - // of the polyfill. - IteratorPrototype = NativeIteratorPrototype; - } - - var Gp = GeneratorFunctionPrototype.prototype = - Generator.prototype = Object.create(IteratorPrototype); - GeneratorFunction.prototype = GeneratorFunctionPrototype; - define(Gp, "constructor", GeneratorFunctionPrototype); - define(GeneratorFunctionPrototype, "constructor", GeneratorFunction); - GeneratorFunction.displayName = define( - GeneratorFunctionPrototype, - toStringTagSymbol, - "GeneratorFunction" - ); - - // Helper for defining the .next, .throw, and .return methods of the - // Iterator interface in terms of a single ._invoke method. function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function(method) { - define(prototype, method, function(arg) { + ["next", "throw", "return"].forEach(function (method) { + define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } - exports.isGeneratorFunction = function(genFun) { - var ctor = typeof genFun === "function" && genFun.constructor; - return ctor - ? ctor === GeneratorFunction || - // For the native GeneratorFunction constructor, the best we can - // do is to check its .name property. - (ctor.displayName || ctor.name) === "GeneratorFunction" - : false; - }; - - exports.mark = function(genFun) { - if (Object.setPrototypeOf) { - Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); - } else { - genFun.__proto__ = GeneratorFunctionPrototype; - define(genFun, toStringTagSymbol, "GeneratorFunction"); - } - genFun.prototype = Object.create(Gp); - return genFun; - }; - - // Within the body of any async function, `await x` is transformed to - // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test - // `hasOwn.call(value, "__await")` to determine if the yielded value is - // meant to be awaited. - exports.awrap = function(arg) { - return { __await: arg }; - }; - function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); - if (record.type === "throw") { - reject(record.arg); - } else { - var result = record.arg; - var value = result.value; - if (value && - typeof value === "object" && - hasOwn.call(value, "__await")) { - return PromiseImpl.resolve(value.__await).then(function(value) { - invoke("next", value, resolve, reject); - }, function(err) { - invoke("throw", err, resolve, reject); - }); - } - return PromiseImpl.resolve(value).then(function(unwrapped) { - // When a yielded Promise is resolved, its final value becomes - // the .value of the Promise<{value,done}> result for the - // current iteration. - result.value = unwrapped; - resolve(result); - }, function(error) { - // If a rejected Promise was yielded, throw the rejection back - // into the async generator function so it can be handled there. + if ("throw" !== record.type) { + var result = record.arg, + value = result.value; + return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { + invoke("next", value, resolve, reject); + }, function (err) { + invoke("throw", err, resolve, reject); + }) : PromiseImpl.resolve(value).then(function (unwrapped) { + result.value = unwrapped, resolve(result); + }, function (error) { return invoke("throw", error, resolve, reject); }); } + + reject(record.arg); } var previousPromise; - function enqueue(method, arg) { + this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { - return new PromiseImpl(function(resolve, reject) { + return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } - return previousPromise = - // If enqueue has been called before, then we want to wait until - // all previous Promises have been resolved before calling invoke, - // so that results are always delivered in the correct order. If - // enqueue has not been called before, then it is important to - // call invoke immediately, without waiting on a callback to fire, - // so that the async generator function has the opportunity to do - // any necessary setup in a predictable way. This predictability - // is why the Promise constructor synchronously invokes its - // executor callback, and why async functions synchronously - // execute code before the first await. Since we implement simple - // async functions in terms of async generators, it is especially - // important to get this right, even though it requires care. - previousPromise ? previousPromise.then( - callInvokeWithMethodAndArg, - // Avoid propagating failures to Promises returned by later - // invocations of the iterator. - callInvokeWithMethodAndArg - ) : callInvokeWithMethodAndArg(); - } - - // Define the unified helper method that is used to implement .next, - // .throw, and .return (see defineIteratorMethods). - this._invoke = enqueue; - } - - defineIteratorMethods(AsyncIterator.prototype); - define(AsyncIterator.prototype, asyncIteratorSymbol, function () { - return this; - }); - exports.AsyncIterator = AsyncIterator; - - // Note that simple async functions are implemented on top of - // AsyncIterator objects; they just return a Promise for the value of - // the final result produced by the iterator. - exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) { - if (PromiseImpl === void 0) PromiseImpl = Promise; - - var iter = new AsyncIterator( - wrap(innerFn, outerFn, self, tryLocsList), - PromiseImpl - ); - - return exports.isGeneratorFunction(outerFn) - ? iter // If outerFn is a generator, return the full iterator. - : iter.next().then(function(result) { - return result.done ? result.value : iter.next(); - }); - }; - - function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; - - return function invoke(method, arg) { - if (state === GenStateExecuting) { - throw new Error("Generator is already running"); - } - - if (state === GenStateCompleted) { - if (method === "throw") { - throw arg; - } - - // Be forgiving, per 25.3.3.3.3 of the spec: - // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume - return doneResult(); - } - - context.method = method; - context.arg = arg; - - while (true) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - - if (context.method === "next") { - // Setting context._sent for legacy support of Babel's - // function.sent implementation. - context.sent = context._sent = context.arg; - - } else if (context.method === "throw") { - if (state === GenStateSuspendedStart) { - state = GenStateCompleted; - throw context.arg; - } - - context.dispatchException(context.arg); - - } else if (context.method === "return") { - context.abrupt("return", context.arg); - } - - state = GenStateExecuting; - - var record = tryCatch(innerFn, self, context); - if (record.type === "normal") { - // If an exception is thrown from innerFn, we leave state === - // GenStateExecuting and loop back for another invocation. - state = context.done - ? GenStateCompleted - : GenStateSuspendedYield; - - if (record.arg === ContinueSentinel) { - continue; - } - - return { - value: record.arg, - done: context.done - }; - - } else if (record.type === "throw") { - state = GenStateCompleted; - // Dispatch the exception by looping back around to the - // context.dispatchException(context.arg) call above. - context.method = "throw"; - context.arg = record.arg; - } - } + return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } - // Call delegate.iterator[context.method](context.arg) and handle the - // result, either by returning a { value, done } result from the - // delegate iterator, or by modifying context.method and context.arg, - // setting context.delegate to null, and returning the ContinueSentinel. function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; - if (method === undefined) { - // A .throw or .return when the delegate iterator has no .throw - // method always terminates the yield* loop. - context.delegate = null; - - if (context.method === "throw") { - // Note: ["return"] must be used for ES3 parsing compatibility. - if (delegate.iterator["return"]) { - // If the delegate iterator has a return method, give it a - // chance to clean up. - context.method = "return"; - context.arg = undefined; - maybeInvokeDelegate(delegate, context); - - if (context.method === "throw") { - // If maybeInvokeDelegate(context) changed context.method from - // "return" to "throw", let that override the TypeError below. - return ContinueSentinel; - } - } - context.method = "throw"; - context.arg = new TypeError( - "The iterator does not provide a 'throw' method"); + if (undefined === method) { + if (context.delegate = null, "throw" === context.method) { + if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; + context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); - - if (record.type === "throw") { - context.method = "throw"; - context.arg = record.arg; - context.delegate = null; - return ContinueSentinel; - } - + if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; - - if (! info) { - context.method = "throw"; - context.arg = new TypeError("iterator result is not an object"); - context.delegate = null; - return ContinueSentinel; - } - - if (info.done) { - // Assign the result of the finished delegate to the temporary - // variable specified by delegate.resultName (see delegateYield). - context[delegate.resultName] = info.value; - - // Resume execution at the desired location (see delegateYield). - context.next = delegate.nextLoc; - - // If context.method was "throw" but the delegate handled the - // exception, let the outer generator proceed normally. If - // context.method was "next", forget context.arg since it has been - // "consumed" by the delegate iterator. If context.method was - // "return", allow the original .return call to continue in the - // outer generator. - if (context.method !== "return") { - context.method = "next"; - context.arg = undefined; - } - - } else { - // Re-yield the result returned by the delegate method. - return info; - } - - // The delegate iterator is finished, so forget it and continue with - // the outer generator. - context.delegate = null; - return ContinueSentinel; + return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } - // Define Generator.prototype.{next,throw,return} in terms of the - // unified ._invoke helper method. - defineIteratorMethods(Gp); - - define(Gp, toStringTagSymbol, "Generator"); - - // A Generator should always return itself as the iterator object when the - // @@iterator function is called on it. Some browsers' implementations of the - // iterator prototype chain incorrectly implement this, causing the Generator - // object to not be returned from this call. This ensures that doesn't happen. - // See https://github.com/facebook/regenerator/issues/274 for more details. - define(Gp, iteratorSymbol, function() { - return this; - }); - - define(Gp, "toString", function() { - return "[object Generator]"; - }); - function pushTryEntry(locs) { - var entry = { tryLoc: locs[0] }; - - if (1 in locs) { - entry.catchLoc = locs[1]; - } - - if (2 in locs) { - entry.finallyLoc = locs[2]; - entry.afterLoc = locs[3]; - } - - this.tryEntries.push(entry); + var entry = { + tryLoc: locs[0] + }; + 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; - record.type = "normal"; - delete record.arg; - entry.completion = record; + record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { - // The root entry object (effectively a try statement without a catch - // or a finally block) gives us a place to store values thrown from - // locations where there is no enclosing try statement. - this.tryEntries = [{ tryLoc: "root" }]; - tryLocsList.forEach(pushTryEntry, this); - this.reset(true); + this.tryEntries = [{ + tryLoc: "root" + }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } - exports.keys = function(object) { - var keys = []; - for (var key in object) { - keys.push(key); - } - keys.reverse(); - - // Rather than returning an object with a next method, we keep - // things simple and return the next function itself. - return function next() { - while (keys.length) { - var key = keys.pop(); - if (key in object) { - next.value = key; - next.done = false; - return next; - } - } - - // To avoid creating an additional object, we just hang the .value - // and .done properties off the next function object itself. This - // also ensures that the minifier will not anonymize the function. - next.done = true; - return next; - }; - }; - function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) { - return iteratorMethod.call(iterable); - } - - if (typeof iterable.next === "function") { - return iterable; - } + if (iteratorMethod) return iteratorMethod.call(iterable); + if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { - var i = -1, next = function next() { - while (++i < iterable.length) { - if (hasOwn.call(iterable, i)) { - next.value = iterable[i]; - next.done = false; - return next; - } + var i = -1, + next = function next() { + for (; ++i < iterable.length;) { + if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } - next.value = undefined; - next.done = true; - - return next; + return next.value = undefined, next.done = !0, next; }; return next.next = next; } } - // Return an iterator with no values. - return { next: doneResult }; + return { + next: doneResult + }; } - exports.values = values; function doneResult() { - return { value: undefined, done: true }; + return { + value: undefined, + done: !0 + }; } - Context.prototype = { - constructor: Context, - - reset: function(skipTempReset) { - this.prev = 0; - this.next = 0; - // Resetting context._sent for legacy support of Babel's - // function.sent implementation. - this.sent = this._sent = undefined; - this.done = false; - this.delegate = null; - - this.method = "next"; - this.arg = undefined; - - this.tryEntries.forEach(resetTryEntry); - - if (!skipTempReset) { - for (var name in this) { - // Not sure about the optimal order of these conditions: - if (name.charAt(0) === "t" && - hasOwn.call(this, name) && - !isNaN(+name.slice(1))) { - this[name] = undefined; - } - } - } - }, + return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { + var ctor = "function" == typeof genFun && genFun.constructor; + return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); + }, exports.mark = function (genFun) { + return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; + }, exports.awrap = function (arg) { + return { + __await: arg + }; + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { + return this; + }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { + void 0 === PromiseImpl && (PromiseImpl = Promise); + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); + return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { + return result.done ? result.value : iter.next(); + }); + }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { + return this; + }), define(Gp, "toString", function () { + return "[object Generator]"; + }), exports.keys = function (object) { + var keys = []; - stop: function() { - this.done = true; + for (var key in object) { + keys.push(key); + } - var rootEntry = this.tryEntries[0]; - var rootRecord = rootEntry.completion; - if (rootRecord.type === "throw") { - throw rootRecord.arg; + return keys.reverse(), function next() { + for (; keys.length;) { + var key = keys.pop(); + if (key in object) return next.value = key, next.done = !1, next; } + return next.done = !0, next; + }; + }, exports.values = values, Context.prototype = { + constructor: Context, + reset: function reset(skipTempReset) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { + "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); + } + }, + stop: function stop() { + this.done = !0; + var rootRecord = this.tryEntries[0].completion; + if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, - - dispatchException: function(exception) { - if (this.done) { - throw exception; - } - + dispatchException: function dispatchException(exception) { + if (this.done) throw exception; var context = this; - function handle(loc, caught) { - record.type = "throw"; - record.arg = exception; - context.next = loc; - if (caught) { - // If the dispatched exception was caught by a catch block, - // then let that catch block handle the exception normally. - context.method = "next"; - context.arg = undefined; - } - - return !! caught; + function handle(loc, caught) { + return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - var record = entry.completion; - - if (entry.tryLoc === "root") { - // Exception thrown outside of any try block that could handle - // it, so set the completion value of the entire function to - // throw the exception. - return handle("end"); - } + var entry = this.tryEntries[i], + record = entry.completion; + if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"); - var hasFinally = hasOwn.call(entry, "finallyLoc"); + var hasCatch = hasOwn.call(entry, "catchLoc"), + hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } else if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } - - } else if (hasFinally) { - if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { - throw new Error("try statement without catch or finally"); + if (!hasFinally) throw new Error("try statement without catch or finally"); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, - - abrupt: function(type, arg) { + abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && - hasOwn.call(entry, "finallyLoc") && - this.prev < entry.finallyLoc) { + + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } - if (finallyEntry && - (type === "break" || - type === "continue") && - finallyEntry.tryLoc <= arg && - arg <= finallyEntry.finallyLoc) { - // Ignore the finally entry if control is not jumping to a - // location outside the try/catch block. - finallyEntry = null; - } - + finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; - record.type = type; - record.arg = arg; - - if (finallyEntry) { - this.method = "next"; - this.next = finallyEntry.finallyLoc; - return ContinueSentinel; - } - - return this.complete(record); + return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, - - complete: function(record, afterLoc) { - if (record.type === "throw") { - throw record.arg; - } - - if (record.type === "break" || - record.type === "continue") { - this.next = record.arg; - } else if (record.type === "return") { - this.rval = this.arg = record.arg; - this.method = "return"; - this.next = "end"; - } else if (record.type === "normal" && afterLoc) { - this.next = afterLoc; - } - - return ContinueSentinel; + complete: function complete(record, afterLoc) { + if ("throw" === record.type) throw record.arg; + return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, - - finish: function(finallyLoc) { + finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) { - this.complete(entry.completion, entry.afterLoc); - resetTryEntry(entry); - return ContinueSentinel; - } + if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, - - "catch": function(tryLoc) { + "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { var record = entry.completion; - if (record.type === "throw") { + + if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } + return thrown; } } - // The context.catch method must only be called with a location - // argument that corresponds to a known catch block. throw new Error("illegal catch attempt"); }, - - delegateYield: function(iterable, resultName, nextLoc) { - this.delegate = { + delegateYield: function delegateYield(iterable, resultName, nextLoc) { + return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc - }; + }, "next" === this.method && (this.arg = undefined), ContinueSentinel; + } + }, exports; +} - if (this.method === "next") { - // Deliberately forget the last sent value so that we don't - // accidentally pass it on to the delegate. - this.arg = undefined; - } +module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; - return ContinueSentinel; - } - }; +/***/ }), + +/***/ 489: +/***/ ((module) => { + +function _setPrototypeOf(o, p) { + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _setPrototypeOf(o, p); +} - // Regardless of whether this script is executing as a CommonJS module - // or not, return the runtime object so that we can declare the variable - // regeneratorRuntime in the outer scope, which allows this module to be - // injected easily by `bin/regenerator --include-runtime script.js`. - return exports; +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 38: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -}( - // If this script is executing as a CommonJS module, use module.exports - // as the regeneratorRuntime namespace. Otherwise create a new empty - // object. Either way, the resulting object will be used to initialize - // the regeneratorRuntime variable at the top of this file. - true ? module.exports : 0 -)); +var arrayWithHoles = __webpack_require__(858); + +var iterableToArrayLimit = __webpack_require__(884); + +var unsupportedIterableToArray = __webpack_require__(379); + +var nonIterableRest = __webpack_require__(521); + +function _slicedToArray(arr, i) { + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); +} + +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 8: +/***/ ((module) => { + +function _typeof(obj) { + "@babel/helpers - typeof"; + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); +} + +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 379: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var arrayLikeToArray = __webpack_require__(228); + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); +} + +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 757: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +// TODO(Babel 8): Remove this file. + +var runtime = __webpack_require__(591)(); +module.exports = runtime; + +// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= try { regeneratorRuntime = runtime; } catch (accidentalStrictMode) { - // This module should not be running in strict mode, so the above - // assignment should always work unless something is misconfigured. Just - // in case runtime.js accidentally runs in strict mode, in modern engines - // we can explicitly access globalThis. In older engines we can escape - // strict mode using a global Function call. This could conceivably fail - // if a Content Security Policy forbids using Function, but in that case - // the proper solution is to fix the accidental strict mode problem. If - // you've misconfigured your bundler to force strict mode and applied a - // CSP to forbid Function, and you're not willing to fix either of those - // problems, please detail your unique predicament in a GitHub issue. if (typeof globalThis === "object") { globalThis.regeneratorRuntime = runtime; } else { @@ -1485,8 +1098,8 @@ var Captions = function () { __classPrivateFieldGet(this, _Captions_menu, "f").innerHTML = "
"); } - var _loop = function _loop(trackItems, _i2, _total2) { - var element = trackItems[_i2]; + var _loop = function _loop(i, trackItems, total) { + var element = trackItems[i]; if (element.kind === 'subtitles' || element.kind === 'captions') { if (element.default) { @@ -1497,13 +1110,13 @@ var Captions = function () { var trackUrl = getAbsoluteUrl(element.src); - var currTrack = __classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[_i2]; + var currTrack = __classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[i]; if (currTrack && currTrack.language === element.srclang) { if (currTrack.cues && currTrack.cues.length > 0) { - __classPrivateFieldGet(_this, _Captions_langTracks, "f")[element.srclang] = _this._getNativeCues(__classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[_i2]); + __classPrivateFieldGet(_this, _Captions_langTracks, "f")[element.srclang] = _this._getNativeCues(__classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[i]); - _this._prepareTrack(_i2, element.srclang, trackUrl, element.default || false); + _this._prepareTrack(i, element.srclang, trackUrl, element.default || false); } else { fetch(trackUrl).then(function (response) { if (!response.ok) { @@ -1514,18 +1127,18 @@ var Captions = function () { }).then(function (d) { __classPrivateFieldGet(_this, _Captions_langTracks, "f")[element.srclang] = _this._getCuesFromText(d); - _this._prepareTrack(_i2, element.srclang, trackUrl, element.default || false); + _this._prepareTrack(i, element.srclang, trackUrl, element.default || false); - var selector = ".op-subtitles__option[data-value=\"captions-".concat(__classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[_i2].language, "\"]"); + var selector = ".op-subtitles__option[data-value=\"captions-".concat(__classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[i].language, "\"]"); if (__classPrivateFieldGet(_this, _Captions_menu, "f") && !__classPrivateFieldGet(_this, _Captions_menu, "f").querySelector(selector)) { var item = document.createElement('div'); - var label = (labels === null || labels === void 0 ? void 0 : labels.lang) ? labels.lang[__classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[_i2].language] : null; + var label = (labels === null || labels === void 0 ? void 0 : labels.lang) ? labels.lang[__classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[i].language] : null; item.className = 'op-settings__submenu-item'; item.tabIndex = 0; item.setAttribute('role', 'menuitemradio'); - item.setAttribute('aria-checked', __classPrivateFieldGet(_this, _Captions_default, "f") === __classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[_i2].language ? 'true' : 'false'); - item.innerHTML = " "); + item.setAttribute('aria-checked', __classPrivateFieldGet(_this, _Captions_default, "f") === __classPrivateFieldGet(_this, _Captions_mediaTrackList, "f")[i].language ? 'true' : 'false'); + item.innerHTML = " "); __classPrivateFieldGet(_this, _Captions_menu, "f").appendChild(item); } @@ -1535,8 +1148,8 @@ var Captions = function () { } }; - for (var _i2 = 0, trackItems = __classPrivateFieldGet(this, _Captions_player, "f").getElement().querySelectorAll('track'), _total2 = trackItems.length; _i2 < _total2; _i2++) { - _loop(trackItems, _i2, _total2); + for (var i = 0, trackItems = __classPrivateFieldGet(this, _Captions_player, "f").getElement().querySelectorAll('track'), total = trackItems.length; i < total; i++) { + _loop(i, trackItems, total); } __classPrivateFieldSet(this, _Captions_captions, document.createElement('div'), "f"); @@ -1578,9 +1191,9 @@ var Captions = function () { if (detachMenus) { var menus = __classPrivateFieldGet(_this, _Captions_player, "f").getContainer().querySelectorAll('.op-settings'); - for (var _i3 = 0, _total3 = menus.length; _i3 < _total3; ++_i3) { - if (menus[_i3] !== __classPrivateFieldGet(_this, _Captions_menu, "f")) { - menus[_i3].setAttribute('aria-hidden', 'true'); + for (var _i2 = 0, _total2 = menus.length; _i2 < _total2; ++_i2) { + if (menus[_i2] !== __classPrivateFieldGet(_this, _Captions_menu, "f")) { + menus[_i2].setAttribute('aria-hidden', 'true'); } } @@ -1618,9 +1231,9 @@ var Captions = function () { if (!IS_IOS && !IS_ANDROID && detachMenus) { var menus = __classPrivateFieldGet(_this, _Captions_player, "f").getContainer().querySelectorAll('.op-settings'); - for (var _i4 = 0, _total4 = menus.length; _i4 < _total4; ++_i4) { - if (menus[_i4] !== __classPrivateFieldGet(_this, _Captions_menu, "f")) { - menus[_i4].setAttribute('aria-hidden', 'true'); + for (var _i3 = 0, _total3 = menus.length; _i3 < _total3; ++_i3) { + if (menus[_i3] !== __classPrivateFieldGet(_this, _Captions_menu, "f")) { + menus[_i3].setAttribute('aria-hidden', 'true'); } } @@ -1634,8 +1247,8 @@ var Captions = function () { if (!IS_IOS && !IS_ANDROID && detachMenus) { var menus = __classPrivateFieldGet(_this, _Captions_player, "f").getContainer().querySelectorAll('.op-settings'); - for (var _i5 = 0, _total5 = menus.length; _i5 < _total5; ++_i5) { - menus[_i5].setAttribute('aria-hidden', 'true'); + for (var _i4 = 0, _total4 = menus.length; _i4 < _total4; ++_i4) { + menus[_i4].setAttribute('aria-hidden', 'true'); } if (__classPrivateFieldGet(_this, _Captions_menu, "f").getAttribute('aria-hidden') === 'false') { @@ -1697,8 +1310,8 @@ var Captions = function () { if (option.parentElement && option.parentElement.parentElement) { var captions = option.parentElement.parentElement.querySelectorAll('.op-settings__submenu-item'); - for (var _i6 = 0, _total6 = captions.length; _i6 < _total6; ++_i6) { - captions[_i6].setAttribute('aria-checked', 'false'); + for (var _i5 = 0, _total5 = captions.length; _i5 < _total5; ++_i5) { + captions[_i5].setAttribute('aria-checked', 'false'); } } diff --git a/dist/openplayer.min.js b/dist/openplayer.min.js index 9f1611c1..7bb68d93 100644 --- a/dist/openplayer.min.js +++ b/dist/openplayer.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.OpenPlayer=t():e.OpenPlayer=t()}(this,(function(){return(()=>{var e={228:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i";var g=z(this,j,"f").querySelector("span");if(z(this,R,"f").media.timeupdate=function(){if(z(e,O,"f").isMedia())if(z(e,B,"f")){var t=z(e,N,"f")[z(e,B,"f").language];if(g&&void 0!==t){var i=e._search(t,z(e,O,"f").getMedia().currentTime);g.innerHTML="",i>-1&&z(e,P,"f").classList.contains("op-controls__captions--on")?(z(e,j,"f").classList.add("op-captions--on"),g.innerHTML=M(t[i].text,!1)):e._hideCaptions()}}else e._hideCaptions();else e._hideCaptions()},z(this,R,"f").button.click=function(t){var i=t.target;if(c){for(var n=z(e,O,"f").getContainer().querySelectorAll(".op-settings"),s=0,a=n.length;s2?{className:"op-subtitles__option",default:z(this,q,"f")||"off",key:"captions",name:(null==i?void 0:i.captions)||"",subitems:n}:{}}},{key:"_getCuesFromText",value:function(e){var t=e.split(/\r?\n/),i=[],n=/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])/gi;for(var s,a=new RegExp("^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\x3e ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*?)$"),r=0,o=t.length;r120&&!this.element.getAttribute("op-dvr__enabled")){this.element.setAttribute("op-dvr__enabled","true");var t=C("timeupdate");this.element.dispatchEvent(t)}}},{key:"_readMediadataInfo",value:function(e){var t,i=this,n=e;"metadata"===(null===(t=null==n?void 0:n.track)||void 0===t?void 0:t.kind)&&(n.track.mode="hidden",n.track.addEventListener("cuechange",(function(e){var t=e.target,n=t.activeCues?t.activeCues[0]:null;if(n){var s=C("metadataready",{detail:n});i.element.dispatchEvent(s)}}),w))}},{key:"_setTimeout",value:function(){var e=this;Wi(this,Oi,"f")||void 0===window||(ji(this,Oi,!0,"f"),ji(this,Pi,window.setInterval((function(){var t;if(Wi(e,Si,"f")>=30){clearInterval(Wi(e,Pi,"f"));var i="Media download failed part-way due to a network error",n=C("playererror",{detail:{data:{message:i,error:2},message:i,type:"HTML5"}});e.element.dispatchEvent(n),ji(e,Si,0,"f"),ji(e,Oi,!1,"f")}else ji(e,Si,(t=Wi(e,Si,"f"),++t),"f")}),1e3),"f"))}},{key:"_clearTimeout",value:function(){Wi(this,Pi,"f")&&(clearInterval(Wi(this,Pi,"f")),ji(this,Si,0,"f"),ji(this,Oi,!1,"f"))}},{key:"_dispatchError",value:function(e){var t,i=e.target,n=null==i?void 0:i.error;switch(null==n?void 0:n.code){case null==n?void 0:n.MEDIA_ERR_ABORTED:t="Media playback aborted";break;case null==n?void 0:n.MEDIA_ERR_NETWORK:t="Media download failed part-way due to a network error";break;case null==n?void 0:n.MEDIA_ERR_DECODE:t="Media playback aborted due to a corruption problem or because the\n media used features your browser did not support.";break;case null==n?void 0:n.MEDIA_ERR_SRC_NOT_SUPPORTED:t="Media could not be loaded, either because the server or network failed\n or because the format is not supported.";break;default:t="Unknown error occurred."}var s=C("playererror",{detail:{data:Object.assign(Object.assign({},e),{message:t,error:null==n?void 0:n.code}),message:t,type:"HTML5"}});this.element.dispatchEvent(s)}}]),i}(Yt);Ti=new WeakMap,Ci=new WeakMap,xi=new WeakMap,Si=new WeakMap,Oi=new WeakMap,Pi=new WeakMap;const Ni=Ri;var Ii,Di,Fi,Bi,qi,Hi,Ki,Vi,zi,Ui=function(e,t,i,n){return new(i||(i=Promise))((function(s,a){function r(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,o)}l((n=n.apply(e,t||[])).next())}))},Gi=function(e,t,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,i):s?s.value=i:t.set(e,i),i},Qi=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)},$i=function(){function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return r()(this,e),Ii.set(this,void 0),Di.set(this,void 0),Fi.set(this,void 0),Bi.set(this,void 0),qi.set(this,void 0),Hi.set(this,void 0),Ki.set(this,!1),Vi.set(this,{media:{},optionsKey:{},rules:[]}),zi.set(this,void 0),Gi(this,Ii,t,"f"),Gi(this,qi,i,"f"),Gi(this,Fi,this._getMediaFiles(),"f"),Gi(this,Vi,s,"f"),Gi(this,Hi,n,"f"),this}return l()(e,[{key:"canPlayType",value:function(e){return Qi(this,Di,"f").canPlayType(e)}},{key:"load",value:function(){return Ui(this,void 0,void 0,c().mark((function e(){var t=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Qi(this,Ki,"f")){e.next=2;break}return e.abrupt("return");case 2:if(Gi(this,Ki,!0,"f"),Qi(this,Fi,"f").length){e.next=5;break}throw new TypeError("Media not set");case 5:if(Qi(this,Di,"f")&&"function"==typeof Qi(this,Di,"f").destroy&&(1===Qi(this,Fi,"f").length&&Qi(this,Fi,"f")[0].src===Qi(this,Di,"f").media.src||Qi(this,Di,"f").destroy()),Qi(this,Fi,"f").some((function(e){try{Gi(t,Di,t._invoke(e),"f")}catch(i){Gi(t,Di,new Ni(Qi(t,Ii,"f"),e),"f")}return Qi(t,Di,"f").canPlayType(e.type)})),e.prev=7,null!==Qi(this,Di,"f")){e.next=10;break}throw new TypeError("Media cannot be played with any valid media type");case 10:return e.next=12,Qi(this,Di,"f").promise;case 12:Qi(this,Di,"f").load(),e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(7),Qi(this,Di,"f")&&Qi(this,Di,"f").destroy(),e.t0;case 19:case"end":return e.stop()}}),e,this,[[7,15]])})))}},{key:"play",value:function(){return Ui(this,void 0,void 0,c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Qi(this,Ki,"f")){e.next=7;break}return Gi(this,Ki,!0,"f"),e.next=4,this.load();case 4:Gi(this,Ki,!1,"f"),e.next=9;break;case 7:return e.next=9,Qi(this,Di,"f").promise;case 9:return Gi(this,Bi,Qi(this,Di,"f").play(),"f"),e.abrupt("return",Qi(this,Bi,"f"));case 11:case"end":return e.stop()}}),e,this)})))}},{key:"pause",value:function(){return Ui(this,void 0,void 0,c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Qi(this,Bi,"f")){e.next=3;break}return e.next=3,Qi(this,Bi,"f");case 3:Qi(this,Di,"f").pause();case 4:case"end":return e.stop()}}),e,this)})))}},{key:"destroy",value:function(){Qi(this,Di,"f")&&Qi(this,Di,"f").destroy()}},{key:"src",get:function(){return Qi(this,Fi,"f")},set:function(e){if("string"==typeof e?Qi(this,Fi,"f").push({src:e,type:ce(e,Qi(this,Ii,"f"))}):Array.isArray(e)?Gi(this,Fi,e,"f"):"object"===s()(e)&&Qi(this,Fi,"f").push(e),Gi(this,Fi,Qi(this,Fi,"f").filter((function(e){return e.src})),"f"),Qi(this,Fi,"f").length>0){var t=Qi(this,Fi,"f"),i=d()(t,1)[0];Qi(this,Ii,"f").src&&Qi(this,Ii,"f").setAttribute("data-op-file",Qi(this,Fi,"f")[0].src),Qi(this,Ii,"f").src=i.src,Gi(this,zi,i,"f"),Qi(this,Di,"f")&&(Qi(this,Di,"f").src=i)}else Qi(this,Ii,"f").src=""}},{key:"current",get:function(){return Qi(this,zi,"f")}},{key:"mediaFiles",get:function(){return Qi(this,Fi,"f")},set:function(e){Gi(this,Fi,e,"f")}},{key:"volume",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").volume:Qi(this,Ii,"f").volume},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").volume=e)}},{key:"muted",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").muted:Qi(this,Ii,"f").muted},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").muted=e)}},{key:"playbackRate",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").playbackRate:Qi(this,Ii,"f").playbackRate},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").playbackRate=e)}},{key:"defaultPlaybackRate",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").defaultPlaybackRate:Qi(this,Ii,"f").defaultPlaybackRate},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").defaultPlaybackRate=e)}},{key:"currentTime",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").currentTime:Qi(this,Ii,"f").currentTime},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").currentTime=e)}},{key:"duration",get:function(){var e=Qi(this,Di,"f")?Qi(this,Di,"f").duration:Qi(this,Ii,"f").duration;return e===1/0&&Qi(this,Ii,"f").seekable&&Qi(this,Ii,"f").seekable.length?Qi(this,Ii,"f").seekable.end(0):e}},{key:"paused",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").paused:Qi(this,Ii,"f").paused}},{key:"ended",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").ended:Qi(this,Ii,"f").ended}},{key:"loaded",get:function(){return Qi(this,Ki,"f")},set:function(e){Gi(this,Ki,e,"f")}},{key:"level",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").level:-1},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").level=e)}},{key:"levels",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").levels:[]}},{key:"instance",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").instance:null}},{key:"_getMediaFiles",value:function(){var e=[],t=Qi(this,Ii,"f").querySelectorAll("source"),i=Qi(this,Ii,"f").src;i&&e.push({src:i,type:Qi(this,Ii,"f").getAttribute("type")||ce(i,Qi(this,Ii,"f"))});for(var n=0,s=t.length;n-1&&(l=!0)})),Object.keys(Qi(this,Vi,"f").media).length)return Qi(this,Vi,"f").rules.forEach((function(t){var i=t(e.src);if(i){var n=Qi(s,Vi,"f").media[i],a=Qi(s,qi,"f")[Qi(s,Vi,"f").optionsKey[i]]||void 0;r=n(Qi(s,Ii,"f"),e,Qi(s,Hi,"f"),a)}})),r?(r.create(),r):new Ni(Qi(this,Ii,"f"),e);if(oe(e)){if(a&&Qi(this,qi,"f").forceNative&&!l)return new Ni(Qi(this,Ii,"f"),e);var f=(null===(t=Qi(this,qi,"f"))||void 0===t?void 0:t.hls)||void 0;return new Li(Qi(this,Ii,"f"),e,Qi(this,Hi,"f"),f)}if(le(e)){var c=(null===(i=Qi(this,qi,"f"))||void 0===i?void 0:i.dash)||void 0;return new ai(Qi(this,Ii,"f"),e,c)}if(fe(e)){var u=(null===(n=Qi(this,qi,"f"))||void 0===n?void 0:n.flv)||{debug:!1,type:"flv",url:e.src};return new vi(Qi(this,Ii,"f"),e,u)}return new Ni(Qi(this,Ii,"f"),e)}}]),e}();Ii=new WeakMap,Di=new WeakMap,Fi=new WeakMap,Bi=new WeakMap,qi=new WeakMap,Hi=new WeakMap,Ki=new WeakMap,Vi=new WeakMap,zi=new WeakMap;const Ji=$i;var Yi,Xi,Zi,en,tn,nn,sn,an,rn,on,ln,fn,cn,un,dn,hn,vn,pn,mn,yn,gn,bn,En,wn,_n,kn,An,Ln,Mn,Tn,Cn,xn,Sn,On=function(e,t,i,n){return new(i||(i=Promise))((function(s,a){function r(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,o)}l((n=n.apply(e,t||[])).next())}))},Pn=function(e,t,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,i):s?s.value=i:t.set(e,i),i},jn=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)},Wn=function(){function e(t,i,n,s,a){var o,l,f,c,u=this;r()(this,e),this.loadedAd=!1,Yi.set(this,!1),Xi.set(this,!1),Zi.set(this,!1),en.set(this,!1),tn.set(this,0),nn.set(this,void 0),sn.set(this,!1),an.set(this,0),rn.set(this,0),on.set(this,null),ln.set(this,void 0),fn.set(this,void 0),cn.set(this,void 0),un.set(this,[]),dn.set(this,void 0),hn.set(this,void 0),vn.set(this,void 0),pn.set(this,void 0),mn.set(this,void 0),yn.set(this,void 0),gn.set(this,void 0),bn.set(this,void 0),En.set(this,!1),wn.set(this,!1),_n.set(this,!1),kn.set(this,void 0),An.set(this,0),Ln.set(this,void 0),Mn.set(this,void 0),Tn.set(this,0),Cn.set(this,[]),xn.set(this,!1),Sn.set(this,null);var d={autoPlayAdBreaks:!0,customClick:{enabled:!1,label:"Click here for more info"},audioSkip:{enabled:!0,label:"Skip Ad",remainingLabel:"Skip in [[secs]] seconds"},debug:!1,enablePreloading:!1,language:"en",loop:!1,numRedirects:4,publisherId:void 0,sdkPath:"https://imasdk.googleapis.com/js/sdkloader/ima3.js",sessionId:void 0,src:[],vpaidMode:"enabled"};Pn(this,ln,t,"f"),Pn(this,dn,i,"f"),Pn(this,fn,t.getMedia(),"f"),Pn(this,cn,t.getElement(),"f"),Pn(this,En,n||!1,"f"),Pn(this,sn,t.getElement().muted,"f"),Pn(this,wn,s||!1,"f"),Pn(this,kn,Object.assign(Object.assign({},d),a),"f"),(null==a?void 0:a.customClick)&&Object.keys(a.customClick).length&&(jn(this,kn,"f").customClick=Object.assign(Object.assign({},d.customClick),a.customClick)),Pn(this,_n,!1,"f"),Pn(this,Ln,jn(this,cn,"f").volume,"f"),Pn(this,nn,jn(this,Ln,"f"),"f");var h=(null===(o=jn(this,kn,"f"))||void 0===o?void 0:o.debug)?null===(f=null===(l=jn(this,kn,"f"))||void 0===l?void 0:l.sdkPath)||void 0===f?void 0:f.replace(/(\.js$)/,"_debug.js"):null===(c=jn(this,kn,"f"))||void 0===c?void 0:c.sdkPath;return this.load=this.load.bind(this),this.resizeAds=this.resizeAds.bind(this),this._handleClickInContainer=this._handleClickInContainer.bind(this),this._handleSkipAds=this._handleSkipAds.bind(this),this._loaded=this._loaded.bind(this),this._error=this._error.bind(this),this._assign=this._assign.bind(this),this._contentLoadedAction=this._contentLoadedAction.bind(this),this._loadedMetadataHandler=this._loadedMetadataHandler.bind(this),this._contentEndedListener=this._contentEndedListener.bind(this),this._handleResizeAds=this._handleResizeAds.bind(this),this._onContentPauseRequested=this._onContentPauseRequested.bind(this),this._onContentResumeRequested=this._onContentResumeRequested.bind(this),Pn(this,hn,!h||"undefined"!=typeof google&&void 0!==google.ima?new Promise((function(e){e()})):A(h),"f"),jn(this,hn,"f").then((function(){u.load()})).catch((function(e){var t="Ad script could not be loaded; please check if you have an AdBlock ";t+="turned on, or if you provided a valid URL is correct",console.error("Ad error: ".concat(t,"."));var i=C("playererror",{detail:{data:e,message:t,type:"Ads"}});jn(u,cn,"f").dispatchEvent(i)})),this}return l()(e,[{key:"load",value:function(){var e,t,i,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("undefined"!=typeof google&&google.ima&&(n||!this.loadedAd||!jn(this,kn,"f").autoPlayAdBreaks)&&(jn(this,kn,"f").autoPlayAdBreaks||n)){this.loadedAd=!0;var s=jn(this,ln,"f").getContainer().querySelector(".op-ads");if(s&&s.parentNode&&s.parentNode.removeChild(s),Pn(this,en,!0,"f"),Pn(this,pn,document.createElement("div"),"f"),jn(this,pn,"f").className="op-ads",jn(this,pn,"f").tabIndex=-1,jn(this,cn,"f").parentElement&&jn(this,cn,"f").parentElement.insertBefore(jn(this,pn,"f"),jn(this,cn,"f").nextSibling),jn(this,pn,"f").addEventListener("click",this._handleClickInContainer),(null===(e=jn(this,kn,"f").customClick)||void 0===e?void 0:e.enabled)&&(Pn(this,mn,document.createElement("div"),"f"),jn(this,mn,"f").className="op-ads__click-container",jn(this,mn,"f").innerHTML='\n \n "));var u=function(t,i,n){var s,a,r=i[t];if("subtitles"===r.kind||"captions"===r.kind){r.default&&(V(e,q,r.srclang,"f"),z(e,P,"f").setAttribute("data-active-captions",r.srclang));var o=(s=r.src,(a=document.createElement("a")).href=s,a.href),l=z(e,I,"f")[t];l&&l.language===r.srclang&&(l.cues&&l.cues.length>0?(z(e,N,"f")[r.srclang]=e._getNativeCues(z(e,I,"f")[t]),e._prepareTrack(t,r.srclang,o,r.default||!1)):fetch(o).then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.text()})).then((function(i){z(e,N,"f")[r.srclang]=e._getCuesFromText(i),e._prepareTrack(t,r.srclang,o,r.default||!1);var n='.op-subtitles__option[data-value="captions-'.concat(z(e,I,"f")[t].language,'"]');if(z(e,W,"f")&&!z(e,W,"f").querySelector(n)){var s=document.createElement("div"),a=(null==f?void 0:f.lang)?f.lang[z(e,I,"f")[t].language]:null;s.className="op-settings__submenu-item",s.tabIndex=0,s.setAttribute("role","menuitemradio"),s.setAttribute("aria-checked",z(e,q,"f")===z(e,I,"f")[t].language?"true":"false"),s.innerHTML=' "),z(e,W,"f").appendChild(s)}})))}},h=(n=0,z(this,O,"f").getElement().querySelectorAll("track"));for(s=h.length;n";var v=z(this,j,"f").querySelector("span");if(z(this,R,"f").media.timeupdate=function(){if(z(e,O,"f").isMedia())if(z(e,B,"f")){var t=z(e,N,"f")[z(e,B,"f").language];if(v&&void 0!==t){var i=e._search(t,z(e,O,"f").getMedia().currentTime);v.innerHTML="",i>-1&&z(e,P,"f").classList.contains("op-controls__captions--on")?(z(e,j,"f").classList.add("op-captions--on"),v.innerHTML=M(t[i].text,!1)):e._hideCaptions()}}else e._hideCaptions();else e._hideCaptions()},z(this,R,"f").button.click=function(t){var i=t.target;if(c){for(var n=z(e,O,"f").getContainer().querySelectorAll(".op-settings"),s=0,a=n.length;s2?{className:"op-subtitles__option",default:z(this,q,"f")||"off",key:"captions",name:(null==i?void 0:i.captions)||"",subitems:n}:{}}},{key:"_getCuesFromText",value:function(e){var t=e.split(/\r?\n/),i=[],n=/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])/gi;for(var s,a=new RegExp("^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\x3e ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*?)$"),r=0,o=t.length;r120&&!this.element.getAttribute("op-dvr__enabled")){this.element.setAttribute("op-dvr__enabled","true");var t=C("timeupdate");this.element.dispatchEvent(t)}}},{key:"_readMediadataInfo",value:function(e){var t,i=this,n=e;"metadata"===(null===(t=null==n?void 0:n.track)||void 0===t?void 0:t.kind)&&(n.track.mode="hidden",n.track.addEventListener("cuechange",(function(e){var t=e.target,n=t.activeCues?t.activeCues[0]:null;if(n){var s=C("metadataready",{detail:n});i.element.dispatchEvent(s)}}),w))}},{key:"_setTimeout",value:function(){var e=this;Wi(this,Oi,"f")||void 0===window||(ji(this,Oi,!0,"f"),ji(this,Pi,window.setInterval((function(){var t;if(Wi(e,Si,"f")>=30){clearInterval(Wi(e,Pi,"f"));var i="Media download failed part-way due to a network error",n=C("playererror",{detail:{data:{message:i,error:2},message:i,type:"HTML5"}});e.element.dispatchEvent(n),ji(e,Si,0,"f"),ji(e,Oi,!1,"f")}else ji(e,Si,(t=Wi(e,Si,"f"),++t),"f")}),1e3),"f"))}},{key:"_clearTimeout",value:function(){Wi(this,Pi,"f")&&(clearInterval(Wi(this,Pi,"f")),ji(this,Si,0,"f"),ji(this,Oi,!1,"f"))}},{key:"_dispatchError",value:function(e){var t,i=e.target,n=null==i?void 0:i.error;switch(null==n?void 0:n.code){case null==n?void 0:n.MEDIA_ERR_ABORTED:t="Media playback aborted";break;case null==n?void 0:n.MEDIA_ERR_NETWORK:t="Media download failed part-way due to a network error";break;case null==n?void 0:n.MEDIA_ERR_DECODE:t="Media playback aborted due to a corruption problem or because the\n media used features your browser did not support.";break;case null==n?void 0:n.MEDIA_ERR_SRC_NOT_SUPPORTED:t="Media could not be loaded, either because the server or network failed\n or because the format is not supported.";break;default:t="Unknown error occurred."}var s=C("playererror",{detail:{data:Object.assign(Object.assign({},e),{message:t,error:null==n?void 0:n.code}),message:t,type:"HTML5"}});this.element.dispatchEvent(s)}}]),i}(Yt);Ti=new WeakMap,Ci=new WeakMap,xi=new WeakMap,Si=new WeakMap,Oi=new WeakMap,Pi=new WeakMap;const Ni=Ri;var Ii,Di,Fi,Bi,qi,Hi,Ki,Vi,zi,Ui=function(e,t,i,n){return new(i||(i=Promise))((function(s,a){function r(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,o)}l((n=n.apply(e,t||[])).next())}))},Gi=function(e,t,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,i):s?s.value=i:t.set(e,i),i},Qi=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)},$i=function(){function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return r()(this,e),Ii.set(this,void 0),Di.set(this,void 0),Fi.set(this,void 0),Bi.set(this,void 0),qi.set(this,void 0),Hi.set(this,void 0),Ki.set(this,!1),Vi.set(this,{media:{},optionsKey:{},rules:[]}),zi.set(this,void 0),Gi(this,Ii,t,"f"),Gi(this,qi,i,"f"),Gi(this,Fi,this._getMediaFiles(),"f"),Gi(this,Vi,s,"f"),Gi(this,Hi,n,"f"),this}return l()(e,[{key:"canPlayType",value:function(e){return Qi(this,Di,"f").canPlayType(e)}},{key:"load",value:function(){return Ui(this,void 0,void 0,c().mark((function e(){var t=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Qi(this,Ki,"f")){e.next=2;break}return e.abrupt("return");case 2:if(Gi(this,Ki,!0,"f"),Qi(this,Fi,"f").length){e.next=5;break}throw new TypeError("Media not set");case 5:if(Qi(this,Di,"f")&&"function"==typeof Qi(this,Di,"f").destroy&&(1===Qi(this,Fi,"f").length&&Qi(this,Fi,"f")[0].src===Qi(this,Di,"f").media.src||Qi(this,Di,"f").destroy()),Qi(this,Fi,"f").some((function(e){try{Gi(t,Di,t._invoke(e),"f")}catch(i){Gi(t,Di,new Ni(Qi(t,Ii,"f"),e),"f")}return Qi(t,Di,"f").canPlayType(e.type)})),e.prev=7,null!==Qi(this,Di,"f")){e.next=10;break}throw new TypeError("Media cannot be played with any valid media type");case 10:return e.next=12,Qi(this,Di,"f").promise;case 12:Qi(this,Di,"f").load(),e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(7),Qi(this,Di,"f")&&Qi(this,Di,"f").destroy(),e.t0;case 19:case"end":return e.stop()}}),e,this,[[7,15]])})))}},{key:"play",value:function(){return Ui(this,void 0,void 0,c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Qi(this,Ki,"f")){e.next=7;break}return Gi(this,Ki,!0,"f"),e.next=4,this.load();case 4:Gi(this,Ki,!1,"f"),e.next=9;break;case 7:return e.next=9,Qi(this,Di,"f").promise;case 9:return Gi(this,Bi,Qi(this,Di,"f").play(),"f"),e.abrupt("return",Qi(this,Bi,"f"));case 11:case"end":return e.stop()}}),e,this)})))}},{key:"pause",value:function(){return Ui(this,void 0,void 0,c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Qi(this,Bi,"f")){e.next=3;break}return e.next=3,Qi(this,Bi,"f");case 3:Qi(this,Di,"f").pause();case 4:case"end":return e.stop()}}),e,this)})))}},{key:"destroy",value:function(){Qi(this,Di,"f")&&Qi(this,Di,"f").destroy()}},{key:"src",get:function(){return Qi(this,Fi,"f")},set:function(e){if("string"==typeof e?Qi(this,Fi,"f").push({src:e,type:ce(e,Qi(this,Ii,"f"))}):Array.isArray(e)?Gi(this,Fi,e,"f"):"object"===s()(e)&&Qi(this,Fi,"f").push(e),Gi(this,Fi,Qi(this,Fi,"f").filter((function(e){return e.src})),"f"),Qi(this,Fi,"f").length>0){var t=Qi(this,Fi,"f"),i=d()(t,1)[0];Qi(this,Ii,"f").src&&Qi(this,Ii,"f").setAttribute("data-op-file",Qi(this,Fi,"f")[0].src),Qi(this,Ii,"f").src=i.src,Gi(this,zi,i,"f"),Qi(this,Di,"f")&&(Qi(this,Di,"f").src=i)}else Qi(this,Ii,"f").src=""}},{key:"current",get:function(){return Qi(this,zi,"f")}},{key:"mediaFiles",get:function(){return Qi(this,Fi,"f")},set:function(e){Gi(this,Fi,e,"f")}},{key:"volume",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").volume:Qi(this,Ii,"f").volume},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").volume=e)}},{key:"muted",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").muted:Qi(this,Ii,"f").muted},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").muted=e)}},{key:"playbackRate",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").playbackRate:Qi(this,Ii,"f").playbackRate},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").playbackRate=e)}},{key:"defaultPlaybackRate",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").defaultPlaybackRate:Qi(this,Ii,"f").defaultPlaybackRate},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").defaultPlaybackRate=e)}},{key:"currentTime",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").currentTime:Qi(this,Ii,"f").currentTime},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").currentTime=e)}},{key:"duration",get:function(){var e=Qi(this,Di,"f")?Qi(this,Di,"f").duration:Qi(this,Ii,"f").duration;return e===1/0&&Qi(this,Ii,"f").seekable&&Qi(this,Ii,"f").seekable.length?Qi(this,Ii,"f").seekable.end(0):e}},{key:"paused",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").paused:Qi(this,Ii,"f").paused}},{key:"ended",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").ended:Qi(this,Ii,"f").ended}},{key:"loaded",get:function(){return Qi(this,Ki,"f")},set:function(e){Gi(this,Ki,e,"f")}},{key:"level",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").level:-1},set:function(e){Qi(this,Di,"f")&&(Qi(this,Di,"f").level=e)}},{key:"levels",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").levels:[]}},{key:"instance",get:function(){return Qi(this,Di,"f")?Qi(this,Di,"f").instance:null}},{key:"_getMediaFiles",value:function(){var e=[],t=Qi(this,Ii,"f").querySelectorAll("source"),i=Qi(this,Ii,"f").src;i&&e.push({src:i,type:Qi(this,Ii,"f").getAttribute("type")||ce(i,Qi(this,Ii,"f"))});for(var n=0,s=t.length;n-1&&(l=!0)})),Object.keys(Qi(this,Vi,"f").media).length)return Qi(this,Vi,"f").rules.forEach((function(t){var i=t(e.src);if(i){var n=Qi(s,Vi,"f").media[i],a=Qi(s,qi,"f")[Qi(s,Vi,"f").optionsKey[i]]||void 0;r=n(Qi(s,Ii,"f"),e,Qi(s,Hi,"f"),a)}})),r?(r.create(),r):new Ni(Qi(this,Ii,"f"),e);if(oe(e)){if(a&&Qi(this,qi,"f").forceNative&&!l)return new Ni(Qi(this,Ii,"f"),e);var f=(null===(t=Qi(this,qi,"f"))||void 0===t?void 0:t.hls)||void 0;return new Li(Qi(this,Ii,"f"),e,Qi(this,Hi,"f"),f)}if(le(e)){var c=(null===(i=Qi(this,qi,"f"))||void 0===i?void 0:i.dash)||void 0;return new ai(Qi(this,Ii,"f"),e,c)}if(fe(e)){var u=(null===(n=Qi(this,qi,"f"))||void 0===n?void 0:n.flv)||{debug:!1,type:"flv",url:e.src};return new vi(Qi(this,Ii,"f"),e,u)}return new Ni(Qi(this,Ii,"f"),e)}}]),e}();Ii=new WeakMap,Di=new WeakMap,Fi=new WeakMap,Bi=new WeakMap,qi=new WeakMap,Hi=new WeakMap,Ki=new WeakMap,Vi=new WeakMap,zi=new WeakMap;const Ji=$i;var Yi,Xi,Zi,en,tn,nn,sn,an,rn,on,ln,fn,cn,un,dn,hn,vn,pn,mn,gn,yn,bn,En,wn,_n,kn,An,Ln,Mn,Tn,Cn,xn,Sn,On=function(e,t,i,n){return new(i||(i=Promise))((function(s,a){function r(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,o)}l((n=n.apply(e,t||[])).next())}))},Pn=function(e,t,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,i):s?s.value=i:t.set(e,i),i},jn=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)},Wn=function(){function e(t,i,n,s,a){var o,l,f,c,u=this;r()(this,e),this.loadedAd=!1,Yi.set(this,!1),Xi.set(this,!1),Zi.set(this,!1),en.set(this,!1),tn.set(this,0),nn.set(this,void 0),sn.set(this,!1),an.set(this,0),rn.set(this,0),on.set(this,null),ln.set(this,void 0),fn.set(this,void 0),cn.set(this,void 0),un.set(this,[]),dn.set(this,void 0),hn.set(this,void 0),vn.set(this,void 0),pn.set(this,void 0),mn.set(this,void 0),gn.set(this,void 0),yn.set(this,void 0),bn.set(this,void 0),En.set(this,!1),wn.set(this,!1),_n.set(this,!1),kn.set(this,void 0),An.set(this,0),Ln.set(this,void 0),Mn.set(this,void 0),Tn.set(this,0),Cn.set(this,[]),xn.set(this,!1),Sn.set(this,null);var d={autoPlayAdBreaks:!0,customClick:{enabled:!1,label:"Click here for more info"},audioSkip:{enabled:!0,label:"Skip Ad",remainingLabel:"Skip in [[secs]] seconds"},debug:!1,enablePreloading:!1,language:"en",loop:!1,numRedirects:4,publisherId:void 0,sdkPath:"https://imasdk.googleapis.com/js/sdkloader/ima3.js",sessionId:void 0,src:[],vpaidMode:"enabled"};Pn(this,ln,t,"f"),Pn(this,dn,i,"f"),Pn(this,fn,t.getMedia(),"f"),Pn(this,cn,t.getElement(),"f"),Pn(this,En,n||!1,"f"),Pn(this,sn,t.getElement().muted,"f"),Pn(this,wn,s||!1,"f"),Pn(this,kn,Object.assign(Object.assign({},d),a),"f"),(null==a?void 0:a.customClick)&&Object.keys(a.customClick).length&&(jn(this,kn,"f").customClick=Object.assign(Object.assign({},d.customClick),a.customClick)),Pn(this,_n,!1,"f"),Pn(this,Ln,jn(this,cn,"f").volume,"f"),Pn(this,nn,jn(this,Ln,"f"),"f");var h=(null===(o=jn(this,kn,"f"))||void 0===o?void 0:o.debug)?null===(f=null===(l=jn(this,kn,"f"))||void 0===l?void 0:l.sdkPath)||void 0===f?void 0:f.replace(/(\.js$)/,"_debug.js"):null===(c=jn(this,kn,"f"))||void 0===c?void 0:c.sdkPath;return this.load=this.load.bind(this),this.resizeAds=this.resizeAds.bind(this),this._handleClickInContainer=this._handleClickInContainer.bind(this),this._handleSkipAds=this._handleSkipAds.bind(this),this._loaded=this._loaded.bind(this),this._error=this._error.bind(this),this._assign=this._assign.bind(this),this._contentLoadedAction=this._contentLoadedAction.bind(this),this._loadedMetadataHandler=this._loadedMetadataHandler.bind(this),this._contentEndedListener=this._contentEndedListener.bind(this),this._handleResizeAds=this._handleResizeAds.bind(this),this._onContentPauseRequested=this._onContentPauseRequested.bind(this),this._onContentResumeRequested=this._onContentResumeRequested.bind(this),Pn(this,hn,!h||"undefined"!=typeof google&&void 0!==google.ima?new Promise((function(e){e()})):A(h),"f"),jn(this,hn,"f").then((function(){u.load()})).catch((function(e){var t="Ad script could not be loaded; please check if you have an AdBlock ";t+="turned on, or if you provided a valid URL is correct",console.error("Ad error: ".concat(t,"."));var i=C("playererror",{detail:{data:e,message:t,type:"Ads"}});jn(u,cn,"f").dispatchEvent(i)})),this}return l()(e,[{key:"load",value:function(){var e,t,i,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("undefined"!=typeof google&&google.ima&&(n||!this.loadedAd||!jn(this,kn,"f").autoPlayAdBreaks)&&(jn(this,kn,"f").autoPlayAdBreaks||n)){this.loadedAd=!0;var s=jn(this,ln,"f").getContainer().querySelector(".op-ads");if(s&&s.parentNode&&s.parentNode.removeChild(s),Pn(this,en,!0,"f"),Pn(this,pn,document.createElement("div"),"f"),jn(this,pn,"f").className="op-ads",jn(this,pn,"f").tabIndex=-1,jn(this,cn,"f").parentElement&&jn(this,cn,"f").parentElement.insertBefore(jn(this,pn,"f"),jn(this,cn,"f").nextSibling),jn(this,pn,"f").addEventListener("click",this._handleClickInContainer),(null===(e=jn(this,kn,"f").customClick)||void 0===e?void 0:e.enabled)&&(Pn(this,mn,document.createElement("div"),"f"),jn(this,mn,"f").className="op-ads__click-container",jn(this,mn,"f").innerHTML='