UNPKG

playable

Version:

Video player based on HTML5Video

16 lines (14 loc) 669 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Playable",[],e):"object"==typeof exports?exports.Playable=e():t.Playable=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=460)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return d})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return m})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return _})),n.d(e,"__spreadArray",(function(){return y})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return E})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return T})),n.d(e,"__makeTemplateObject",(function(){return S})),n.d(e,"__importStar",(function(){return k})),n.d(e,"__importDefault",(function(){return L})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return A})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,i){e(n,i,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function d(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var h=Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]};function f(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||h(e,t,n)}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function y(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function E(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:r?r(e):e}:r}}function T(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,r,(e=t[n](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var w=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&h(e,t,n);return w(e,t),e}function L(t){return t&&t.__esModule?t:{default:t}}function x(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)}function A(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n}},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LIVE_STATES=e.LiveState=e.ENGINE_STATES=e.EngineState=e.ERRORS=e.Error=e.VIDEO_EVENTS=e.VideoEvent=e.UI_EVENTS=e.UIEvent=e.TEXT_LABELS=e.TextLabel=e.MEDIA_STREAM_DELIVERY_PRIORITY=e.MediaStreamDeliveryPriority=e.MimeToStreamTypeMap=e.MEDIA_STREAM_TYPES=e.MediaStreamType=void 0;var i=n(0),r=n(77);Object.defineProperty(e,"MediaStreamDeliveryPriority",{enumerable:!0,get:function(){return r.MediaStreamDeliveryPriority}}),Object.defineProperty(e,"MEDIA_STREAM_DELIVERY_PRIORITY",{enumerable:!0,get:function(){return r.MediaStreamDeliveryPriority}}),Object.defineProperty(e,"MediaStreamType",{enumerable:!0,get:function(){return r.MediaStreamType}}),Object.defineProperty(e,"MEDIA_STREAM_TYPES",{enumerable:!0,get:function(){return r.MediaStreamType}}),Object.defineProperty(e,"MimeToStreamTypeMap",{enumerable:!0,get:function(){return r.MimeToStreamTypeMap}});var o=(0,i.__importDefault)(n(78));e.UIEvent=o.default,e.UI_EVENTS=o.default;var a=(0,i.__importDefault)(n(43));e.VideoEvent=a.default,e.VIDEO_EVENTS=a.default;var s=(0,i.__importDefault)(n(79));e.Error=s.default,e.ERRORS=s.default;var l=(0,i.__importDefault)(n(80));e.TextLabel=l.default,e.TEXT_LABELS=l.default;var u=(0,i.__importDefault)(n(81));e.EngineState=u.default,e.ENGINE_STATES=u.default;var c=(0,i.__importDefault)(n(82));e.LiveState=c.default,e.LIVE_STATES=c.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(!t)throw new Error("HTML provided to htmlToElement is empty");var e=document.createElement("div");if(e.innerHTML=t.trim(),e.childElementCount>1)throw new Error("HTML provided to htmlToElement doesn't have root element");return e.firstChild}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}var a,s,l;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){var i,r,o={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),s=function(t){return document.querySelector(t)},l=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var n=s.call(this,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),u=null,c=0,d=[],h=n(90);function f(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=o[i.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](i.parts[a]);for(;a<i.parts.length;a++)r.parts.push(g(i.parts[a],e))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(g(i.parts[a],e));o[i.id]={id:i.id,refs:1,parts:s}}}}function p(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=e.base?o[0]+e.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}function m(t,e){var n=l(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=d[d.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),d.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=l(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,r)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=d.indexOf(t);e>=0&&d.splice(e,1)}function _(t){var e=document.createElement("style");return t.attrs.type="text/css",y(e,t.attrs),m(t,e),e}function y(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function g(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var a=c++;n=u||(u=_(e)),i=T.bind(null,n,a,!1),r=T.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",y(e,t.attrs),m(t,e),e}(e),i=w.bind(null,n,e),r=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=_(e),i=S.bind(null,n),r=function(){v(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=p(t,e);return f(n,e),function(t){for(var i=[],r=0;r<n.length;r++){var a=n[r];(s=o[a.id]).refs--,i.push(s)}t&&f(p(t,e),e);for(r=0;r<i.length;r++){var s;if(0===(s=i[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete o[s.id]}}}};var E,b=(E=[],function(t,e){return E[t]=e,E.filter(Boolean).join("\n")});function T(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=b(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function S(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function w(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=h(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e}((0,i.__importDefault)(n(26)).default);e.default=r},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PLAYER_API_PROPERTY=void 0,e.PLAYER_API_PROPERTY="___playerAPI";e.default=function(t){return function(n,i,r){var o,a,s=t||i;if(n[e.PLAYER_API_PROPERTY]||(n[e.PLAYER_API_PROPERTY]={}),n[e.PLAYER_API_PROPERTY][s]&&(o=n[e.PLAYER_API_PROPERTY][s],a=r,o.value!==a.value||o.get!==a.get||o.set!==a.set))throw new Error('Method "'.concat(s,'" for public API in ').concat(n.constructor.name," is already defined"));n[e.PLAYER_API_PROPERTY][s]=r}}},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.querySelector('[data-playable-hook="'.concat(e,'"]'))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEYCODES=void 0;var i=n(0),r=n(44),o=(0,i.__importDefault)(n(112));e.KEYCODES={SPACE_BAR:32,ENTER:13,TAB:9,LEFT_ARROW:37,RIGHT_ARROW:39,UP_ARROW:38,DOWN_ARROW:40,DEBUG_KEY:68};var a=function(){function t(t,e){this._eventEmitter=new r.EventEmitter,this._element=t,e&&this._attachCallbacks(e),this._bindCallbacks(),this._bindEvents()}return t.prototype._attachCallbacks=function(t){var e=this;Object.keys(t).forEach((function(n){var i=t[n];Array.isArray(i)?i.forEach((function(t){return e._eventEmitter.on(n,t)})):e._eventEmitter.on(n,i)}))},t.prototype._unattachCallbacks=function(){this._eventEmitter.removeAllListeners()},t.prototype._bindCallbacks=function(){this._processKeyboardInput=this._processKeyboardInput.bind(this)},t.prototype._bindEvents=function(){this._element.addEventListener("keydown",this._processKeyboardInput,!1)},t.prototype._unbindEvents=function(){this._element.removeEventListener("keydown",this._processKeyboardInput,!1)},t.prototype.addCallbacks=function(t){this._attachCallbacks(t)},t.prototype._processKeyboardInput=function(t){this._eventEmitter.emit(t.keyCode,t)},Object.defineProperty(t.prototype,"_isDestroyed",{get:function(){return!this._element&&!this._eventEmitter},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this._isDestroyed?o.default.warn("KeyboardInterceptor.destroy called after already been destroyed"):(this._unbindEvents(),this._element=null,this._unattachCallbacks(),this._eventEmitter=null)},t}();e.default=a},,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSafari=e.isDesktopSafari=e.isAndroid=e.isIOS=e.isIPad=e.isIPod=e.isIPhone=void 0;var i=/iphone/i,r=/ipod/i,o=/ipad/i,a=/(android)/i,s=/^((?!chrome|android).)*safari/i,l=/^((?!chrome|android|iphone|ipod|ipad).)*safari/i,u=function(){return!!window.MSStream},c=function(){return window.navigator&&window.navigator.userAgent},d=function(){return!u()&&i.test(c())};e.isIPhone=d;var h=function(){return!u()&&r.test(c())};e.isIPod=h;var f=function(){return!u()&&o.test(c())};e.isIPad=f;e.isIOS=function(){return d()||h()||f()};e.isAndroid=function(){return a.test(c())};e.isDesktopSafari=function(){return l.test(c())};e.isSafari=function(){return s.test(c())}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},,,,function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.SINGLETON="singleton",t.TRANSIENT="transient",t.SCOPED="scoped"}(i||(i={})),e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=(0,n(0).__importDefault)(n(86)),r=function(){function t(t){this._themeStyles={};var e=this.constructor._moduleTheme;t&&e&&(t.registerModuleTheme(this,e),this._themeStyles=t.get(this))}return t.setTheme=function(t){this._moduleTheme=t},t.extendStyleNames=function(t){this._styles=(0,i.default)(this._styles,t)},t.resetStyles=function(){this._styles={}},Object.defineProperty(t.prototype,"themeStyles",{get:function(){return this._themeStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleNames",{get:function(){return this.constructor._styles||{}},enumerable:!1,configurable:!0}),t._styles={},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_THEME_CONFIG=e.transperentizeColor=void 0;var i=n(0),r=(0,i.__importDefault)(n(100));e.transperentizeColor=r.default;var o=(0,i.__importStar)(n(102));Object.defineProperty(e,"DEFAULT_THEME_CONFIG",{enumerable:!0,get:function(){return o.DEFAULT_THEME_CONFIG}}),e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AMOUNT_TO_CHANGE_VOLUME=e.AMOUNT_TO_SKIP_SECONDS=void 0;var i=n(0),r=n(2),o=n(19),a=(0,i.__importStar)(n(13));e.AMOUNT_TO_SKIP_SECONDS=5,e.AMOUNT_TO_CHANGE_VOLUME=10;var s=function(){function t(t){var e=t.config,n=t.eventEmitter,i=t.rootContainer,r=t.engine;this._eventEmitter=n,this._engine=r,(0,o.isIPhone)()||(0,o.isIPod)()||(0,o.isIPad)()||(0,o.isAndroid)()?this._isEnabled=!1:this._isEnabled=!1!==e.disableControlWithKeyboard,this._initInterceptor(i.getElement())}return t.prototype._initInterceptor=function(t){this._isEnabled&&(this._keyboardInterceptor=new a.default(t),this._attachDefaultControls())},t.prototype._attachDefaultControls=function(){var t,n=this;this._keyboardInterceptor.addCallbacks(((t={})[a.KEYCODES.TAB]=function(){n._eventEmitter.emitAsync(r.UIEvent.KEYBOARD_KEYDOWN_INTERCEPTED)},t[a.KEYCODES.SPACE_BAR]=function(t){t.preventDefault(),n._eventEmitter.emitAsync(r.UIEvent.KEYBOARD_KEYDOWN_INTERCEPTED),n._eventEmitter.emitAsync(r.UIEvent.TOGGLE_PLAYBACK_WITH_KEYBOARD),n._engine.togglePlayback()},t[a.KEYCODES.LEFT_ARROW]=function(t){n._engine.isSeekAvailable&&(t.preventDefault(),n._eventEmitter.emitAsync(r.UIEvent.KEYBOARD_KEYDOWN_INTERCEPTED),n._eventEmitter.emitAsync(r.UIEvent.GO_BACKWARD_WITH_KEYBOARD),n._engine.seekBackward(e.AMOUNT_TO_SKIP_SECONDS))},t[a.KEYCODES.RIGHT_ARROW]=function(t){n._engine.isSeekAvailable&&(t.preventDefault(),n._eventEmitter.emitAsync(r.UIEvent.KEYBOARD_KEYDOWN_INTERCEPTED),n._eventEmitter.emitAsync(r.UIEvent.GO_FORWARD_WITH_KEYBOARD),n._engine.seekForward(e.AMOUNT_TO_SKIP_SECONDS))},t[a.KEYCODES.UP_ARROW]=function(t){t.preventDefault(),n._eventEmitter.emitAsync(r.UIEvent.KEYBOARD_KEYDOWN_INTERCEPTED),n._eventEmitter.emitAsync(r.UIEvent.INCREASE_VOLUME_WITH_KEYBOARD),n._engine.setMute(!1),n._engine.increaseVolume(e.AMOUNT_TO_CHANGE_VOLUME)},t[a.KEYCODES.DOWN_ARROW]=function(t){t.preventDefault(),n._eventEmitter.emitAsync(r.UIEvent.KEYBOARD_KEYDOWN_INTERCEPTED),n._eventEmitter.emitAsync(r.UIEvent.DECREASE_VOLUME_WITH_KEYBOARD),n._engine.setMute(!1),n._engine.decreaseVolume(e.AMOUNT_TO_CHANGE_VOLUME)},t))},t.prototype._destroyInterceptor=function(){this._keyboardInterceptor&&this._keyboardInterceptor.destroy()},t.prototype.addKeyControl=function(t,e){var n;this._isEnabled&&this._keyboardInterceptor.addCallbacks(((n={})[t]=e,n))},t.prototype.destroy=function(){this._destroyInterceptor()},t.moduleName="keyboardControl",t.dependencies=["engine","eventEmitter","rootContainer","config"],t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getTooltipPositionByReferenceElement=e.TooltipService=e.Tooltip=void 0;var r=n(47);Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return i(r).default}});var o=n(190);Object.defineProperty(e,"TooltipService",{enumerable:!0,get:function(){return i(o).default}});var a=n(49);Object.defineProperty(e,"getTooltipPositionByReferenceElement",{enumerable:!0,get:function(){return i(a).default}})},function(t,e,n){"use strict";function i(t,e){return e?parseFloat((t/e*100).toFixed(2)):0}function r(t,e){var n=0;if(!t||!t.length)return null;for(;n<t.length-1&&!(t.start(n)<=e&&e<=t.end(n));)n+=1;return{start:t.start(n),end:t.end(n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.getNearestBufferSegmentInfo=e.geOverallBufferLength=e.getOverallPlayedPercent=e.getOverallBufferedPercent=e.getTimePercent=void 0,e.getTimePercent=i,e.getOverallBufferedPercent=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),t&&t.length&&n?i(r(t,e).end,n):0},e.getOverallPlayedPercent=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),i(t,e)},e.geOverallBufferLength=function(t){var e=0;if(!t||!t.length)return e;for(var n=0;n<t.length;n+=1)e+=t.end(n)-t.start(n);return e},e.getNearestBufferSegmentInfo=r},,,function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,u=[],c=!1,d=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&f())}function f(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(l=u,u=[];++d<e;)l&&l[d].run();d=-1,e=u.length}l=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultModules=e.playerAPIDecorator=e.Tooltip=e.CROSS_ORIGIN_VALUES=e.PRELOAD_TYPES=e.VIDEO_VIEW_MODES=e.LIVE_STATES=e.ENGINE_STATES=e.MEDIA_STREAM_DELIVERY_PRIORITY=e.MEDIA_STREAM_TYPES=e.TEXT_LABELS=e.VIDEO_EVENTS=e.UI_EVENTS=e.ERRORS=e.clearPlaybackAdapters=e.registerPlaybackAdapter=e.clearAdditionalModules=e.registerModule=e.create=void 0;var i=n(0),r=n(65);Object.defineProperty(e,"create",{enumerable:!0,get:function(){return r.create}}),Object.defineProperty(e,"registerModule",{enumerable:!0,get:function(){return r.registerModule}}),Object.defineProperty(e,"clearAdditionalModules",{enumerable:!0,get:function(){return r.clearAdditionalModules}}),Object.defineProperty(e,"registerPlaybackAdapter",{enumerable:!0,get:function(){return r.registerPlaybackAdapter}}),Object.defineProperty(e,"clearPlaybackAdapters",{enumerable:!0,get:function(){return r.clearPlaybackAdapters}});var o=n(42);Object.defineProperty(e,"DefaultModules",{enumerable:!0,get:function(){return o.modules}});var a=n(29);Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return a.Tooltip}});var s=(0,i.__importDefault)(n(9));e.playerAPIDecorator=s.default;var l=n(2);Object.defineProperty(e,"ERRORS",{enumerable:!0,get:function(){return l.ERRORS}}),Object.defineProperty(e,"UI_EVENTS",{enumerable:!0,get:function(){return l.UI_EVENTS}}),Object.defineProperty(e,"VIDEO_EVENTS",{enumerable:!0,get:function(){return l.VIDEO_EVENTS}}),Object.defineProperty(e,"TEXT_LABELS",{enumerable:!0,get:function(){return l.TEXT_LABELS}}),Object.defineProperty(e,"MEDIA_STREAM_TYPES",{enumerable:!0,get:function(){return l.MEDIA_STREAM_TYPES}}),Object.defineProperty(e,"MEDIA_STREAM_DELIVERY_PRIORITY",{enumerable:!0,get:function(){return l.MEDIA_STREAM_DELIVERY_PRIORITY}}),Object.defineProperty(e,"ENGINE_STATES",{enumerable:!0,get:function(){return l.ENGINE_STATES}}),Object.defineProperty(e,"LIVE_STATES",{enumerable:!0,get:function(){return l.LIVE_STATES}});var u=n(52);Object.defineProperty(e,"PRELOAD_TYPES",{enumerable:!0,get:function(){return u.PreloadType}}),Object.defineProperty(e,"CROSS_ORIGIN_VALUES",{enumerable:!0,get:function(){return u.CrossOriginValue}});var c=n(46);Object.defineProperty(e,"VIDEO_VIEW_MODES",{enumerable:!0,get:function(){return c.VideoViewMode}}),e.default={create:r.create,registerModule:r.registerModule,clearAdditionalModules:r.clearAdditionalModules,registerPlaybackAdapter:r.registerPlaybackAdapter,clearPlaybackAdapters:r.clearPlaybackAdapters,ERRORS:l.ERRORS,UI_EVENTS:l.UI_EVENTS,VIDEO_EVENTS:l.VIDEO_EVENTS,TEXT_LABELS:l.TEXT_LABELS,MEDIA_STREAM_TYPES:l.MEDIA_STREAM_TYPES,MEDIA_STREAM_DELIVERY_PRIORITY:l.MEDIA_STREAM_DELIVERY_PRIORITY,ENGINE_STATES:l.ENGINE_STATES,LIVE_STATES:l.LIVE_STATES,VIDEO_VIEW_MODES:c.VideoViewMode,PRELOAD_TYPES:u.PreloadType,CROSS_ORIGIN_VALUES:u.CrossOriginValue,Tooltip:a.Tooltip,playerAPIDecorator:s.default,DefaultModules:o.modules}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=(0,i.__importDefault)(n(66)),o=(0,i.__importDefault)(n(25)),a=(0,i.__importDefault)(n(40));e.default=(0,i.__assign)({createContainer:r.default,Lifetime:o.default},a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asClass=e.asFunction=e.asValue=e.makeFluidInterface=e.PROPERTY_FOR_DEPENDENCIES=void 0;var i=n(0),r=n(0),o=(0,i.__importDefault)(n(67)),a=(0,i.__importDefault)(n(25));e.PROPERTY_FOR_DEPENDENCIES="dependencies";e.makeFluidInterface=function(t){var e=function(e){return t.lifetime=e,t};return{setLifetime:e,transient:function(){return e(a.default.TRANSIENT)},scoped:function(){return e(a.default.SCOPED)},singleton:function(){return e(a.default.SINGLETON)}}};e.asValue=function(t){return{resolve:function(){return t},lifetime:a.default.TRANSIENT}};e.asFunction=function(t,n){if("function"!=typeof t)throw new o.default("asFunction","function",typeof t);var i={lifetime:a.default.TRANSIENT};n=(0,r.__assign)({},i,n);var l=s(t),u={resolve:l,lifetime:n.lifetime};return u.resolve=l.bind(u),(0,r.__assign)(u,(0,e.makeFluidInterface)(u)),u};function s(t,n){n||(n=t);var i=n[e.PROPERTY_FOR_DEPENDENCIES]||[];return function(e){if(i.length>0){var n=i.reduce((function(t,n){return t[n]=e.resolve(n),t}),{});return t(n,e)}return t(e)}}e.asClass=function(t,n){if("function"!=typeof t)throw new o.default("asClass","class",typeof t);var l={lifetime:a.default.TRANSIENT};n=(0,r.__assign)({},l,n);var u=s((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))}),t),c={resolve:u,lifetime:n.lifetime};return c.resolve=u.bind(c),(0,r.__assign)(c,(0,e.makeFluidInterface)(c)),c},e.default={asValue:e.asValue,asFunction:e.asFunction,asClass:e.asClass}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(t){function e(e){var n=t.call(this,e)||this;return Object.defineProperty(n,"message",{enumerable:!1,value:e}),Object.defineProperty(n,"name",{enumerable:!1,value:n.constructor.name}),Error.captureStackTrace(n,n.constructor),n}return(0,i.__extends)(e,t),e}(Error);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.modules=void 0;var i=n(0),r=(0,i.__importDefault)(n(39)),o=(0,i.__importDefault)(n(72)),a=(0,i.__importDefault)(n(96)),s=(0,i.__importDefault)(n(99)),l=(0,i.__importDefault)(n(27)),u=(0,i.__importDefault)(n(106)),c=(0,i.__importDefault)(n(108)),d=(0,i.__importDefault)(n(111)),h=(0,i.__importDefault)(n(28)),f=(0,i.__importDefault)(n(113)),p=(0,i.__importDefault)(n(120)),m=(0,i.__importDefault)(n(126)),v=(0,i.__importDefault)(n(139)),_=(0,i.__importDefault)(n(146)),y=(0,i.__importDefault)(n(152)),g=(0,i.__importDefault)(n(158)),E=(0,i.__importDefault)(n(164)),b=(0,i.__importDefault)(n(171)),T=(0,i.__importDefault)(n(177)),S=(0,i.__importDefault)(n(183)),w=(0,i.__importDefault)(n(201)),k=(0,i.__importDefault)(n(208)),L=(0,i.__importDefault)(n(215)),x=(0,i.__importDefault)(n(222)),A=(0,i.__importDefault)(n(229)),D=(0,i.__importDefault)(n(236)),I=(0,i.__importDefault)(n(246)),P=(0,i.__importDefault)(n(253)),O=(0,i.__importDefault)(n(256)),C=(0,i.__importDefault)(n(258)),R=(0,i.__importDefault)(n(264)),M=n(29),N=(0,i.__importDefault)(n(270)),F=r.default.asClass;e.modules={RootContainer:o.default,EventEmitter:a.default,Engine:s.default,ThemeService:l.default,TextMap:u.default,NativeOutput:N.default,FullScreenManager:c.default,PictureInPictureManager:P.default,LiveStateEngine:d.default,KeyboardControls:h.default,DebugPanel:f.default,Screen:p.default,InteractionIndicator:m.default,Overlay:v.default,Loader:_.default,MainUIBlock:y.default,TopBlock:g.default,LiveIndicator:b.default,Title:E.default,BottomBlock:T.default,ProgressControl:S.default,PlayControl:w.default,TimeControl:k.default,VolumeControl:L.default,FullScreenControl:x.default,PictureInPictureControl:A.default,Logo:D.default,DownloadButton:I.default,PreviewService:O.default,PreviewThumbnail:C.default,PreviewFullSize:R.default,TooltipService:M.TooltipService};var U=Object.keys(e.modules).reduce((function(t,n){var i=e.modules[n];if(!i.moduleName)throw new Error("No moduleName in module: ".concat(n));return t[i.moduleName]=F(i).scoped(),t}),{});e.default=U},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.ERROR="video-events/error",t.STATE_CHANGED="video-events/state-changed",t.LIVE_STATE_CHANGED="video-events/live-state-changed",t.DYNAMIC_CONTENT_ENDED="video-events/dynamic-content-ended",t.CHUNK_LOADED="video-events/chunk-loaded",t.CURRENT_TIME_UPDATED="video-events/current-time-updated",t.DURATION_UPDATED="video-events/duration-updated",t.SOUND_STATE_CHANGED="video-events/sound-state-changed",t.VOLUME_CHANGED="video-events/volume-changed",t.MUTE_CHANGED="video-events/mute-changed",t.SEEK_IN_PROGRESS="video-events/seek-in-progress",t.UPLOAD_STALLED="video-events/upload-stalled",t.UPLOAD_SUSPEND="video-events/upload-suspend",t.PLAY_REQUEST="video-events/play-request",t.PLAY_ABORTED="video-events/play-aborted",t.RESET="video-events/reset-playback"}(i||(i={})),e.default=i},function(t,e,n){"use strict";var i=Object.prototype.hasOwnProperty,r="~";function o(){}function a(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(t,e,n,i,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,i||t,o),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),u.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},u.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},u.prototype.on=function(t,e,n){return s(this,t,e,n,!1)},u.prototype.once=function(t,e,n){return s(this,t,e,n,!0)},u.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||i&&!a.once||n&&a.context!==n||l(this,o);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==e||i&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:l(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&l(this,e)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.VideoViewMode=void 0,function(t){t.REGULAR="REGULAR",t.BLUR="BLUR",t.FILL="FILL"}(i||(i={})),e.VideoViewMode=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(48),o=(0,i.__importDefault)(n(3)),a=(0,i.__importDefault)(n(12)),s=(0,i.__importDefault)(n(26)),l=(0,i.__importDefault)(n(188)),u=function(t){function e(){var e=t.call(this)||this;return e._isHidden=!0,e._initDOM(),e}return(0,i.__extends)(e,t),e.prototype._initDOM=function(){this._$rootElement=(0,o.default)((0,r.tooltipTemplate)({styles:this.styleNames})),this._$tooltipInner=(0,a.default)(this._$rootElement,"tooltip-inner")},e.prototype.getElement=function(){return this._$rootElement},Object.defineProperty(e.prototype,"isHidden",{get:function(){return this._isHidden},enumerable:!1,configurable:!0}),e.prototype.show=function(){this._isHidden&&(this._isHidden=!1,this._$rootElement.classList.add(this.styleNames.tooltipVisible))},e.prototype.hide=function(){this._isHidden||(this._isHidden=!0,this._$rootElement.classList.remove(this.styleNames.tooltipVisible))},e.prototype.setText=function(t){this.clearElement(),this._showAsText(),this._$tooltipInner.innerText=t},e.prototype.clearElement=function(){this._$tooltipInner.firstChild&&this._$tooltipInner.removeChild(this._$tooltipInner.firstChild)},e.prototype.setElement=function(t){t!==this._$tooltipInner.firstChild&&(this._showAsElement(),this.clearElement(),t&&this._$tooltipInner.appendChild(t))},e.prototype._showAsText=function(){this._$rootElement.classList.remove(this.styleNames.showAsElement),this._$rootElement.classList.add(this.styleNames.showAsText)},e.prototype._showAsElement=function(){this._$rootElement.classList.remove(this.styleNames.showAsText),this._$rootElement.classList.add(this.styleNames.showAsElement)},e.prototype.setStyle=function(t){var e=this;Object.keys(t).forEach((function(n){e._$rootElement.style[n]=t[n]}))},e.prototype.destroy=function(){this._$rootElement=null,this._$tooltipInner=null},e}(s.default);u.extendStyleNames(l.default),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tooltipContainerTemplate=e.tooltipTemplate=void 0;var i=n(0),r=(0,i.__importDefault)(n(186)),o=(0,i.__importDefault)(n(187)),a=r.default.default?r.default.default:r.default;e.tooltipTemplate=a;var s=o.default.default?o.default.default:o.default;e.tooltipContainerTemplate=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(50);function r(t,e){return t+e/2}e.default=function(t,e,n){void 0===n&&(n=r);var o=t.getBoundingClientRect(),a=e.getBoundingClientRect();return{placement:o.top>a.top?i.TooltipPositionPlacement.BOTTOM:i.TooltipPositionPlacement.TOP,x:n(o.left-a.left,o.width)}}},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.TooltipPositionPlacement=void 0,function(t){t.TOP="top",t.BOTTOM="bottom"}(i||(i={})),e.TooltipPositionPlacement=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=!isNaN(t)&&isFinite(t),n=e&&t<0,i=new Date(null);i.setSeconds(e?Math.abs(Math.floor(t)):0);var r=i.toISOString().substr(11,8).replace(/^00:/,"");return n?"-".concat(r):r}},function(t,e,n){"use strict";var i,r;Object.defineProperty(e,"__esModule",{value:!0}),e.CrossOriginValue=e.PreloadType=void 0,function(t){t.NONE="none",t.METADATA="metadata",t.AUTO="auto"}(i||(i={})),e.PreloadType=i,function(t){t.ANONYMUS="anonymous",t.CREDENTIALS="use-credentials"}(r||(r={})),e.CrossOriginValue=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeEnvironmentSupport=e.isBrowser=void 0,e.isBrowser="undefined"!=typeof window,e.NativeEnvironmentSupport={MSE:!1,HLS:!1,DASH:!1,MP4:!1,WEBM:!1,OGG:!1,MOV:!1,MKV:!1},function(){if(e.isBrowser){e.NativeEnvironmentSupport.MSE="WebKitMediaSource"in window||"MediaSource"in window;var t=document.createElement("video");"function"==typeof t.canPlayType&&((t.canPlayType("application/x-mpegURL")||t.canPlayType("application/vnd.apple.mpegURL"))&&(e.NativeEnvironmentSupport.HLS=!0),t.canPlayType("application/dash+xml")&&(e.NativeEnvironmentSupport.DASH=!0),t.canPlayType("video/mp4")&&(e.NativeEnvironmentSupport.MP4=!0),t.canPlayType("video/webm")&&(e.NativeEnvironmentSupport.WEBM=!0),t.canPlayType("video/ogg")&&(e.NativeEnvironmentSupport.OGG=!0),t.canPlayType("video/quicktime")&&(e.NativeEnvironmentSupport.MOV=!0),t.canPlayType("video/x-matroska")&&(e.NativeEnvironmentSupport.MKV=!0))}}()},,,,,function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(97),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(20))},,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.clearPlaybackAdapters=e.clearAdditionalModules=e.registerPlaybackAdapter=e.registerModule=e.container=void 0;var i=n(0),r=(0,i.__importDefault)(n(39)),o=(0,i.__importDefault)(n(70)),a=(0,i.__importDefault)(n(42)),s=(0,i.__importDefault)(n(276)),l={},u=(0,i.__spreadArray)([],s.default,!0);e.container=r.default.createContainer(),e.container.register(a.default);var c=Object.keys(a.default);e.registerModule=function(t,e){l[t]=e},e.registerPlaybackAdapter=function(t){u.push(t)},e.clearAdditionalModules=function(){l={}},e.clearPlaybackAdapters=function(){u=(0,i.__spreadArray)([],s.default,!0)},e.create=function(t,n){void 0===t&&(t={});var i=e.container.createScope(),a=Object.keys(l);return a.length&&a.forEach((function(t){return i.registerClass(t,l[t],{lifetime:r.default.Lifetime.SCOPED})})),i.registerValue("availablePlaybackAdapters",u),new o.default(t,i,c,a,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var i=n(0),r=n(0),o=n(40),a=(0,i.__importDefault)(n(68)),s=(0,i.__importDefault)(n(69)),l=(0,i.__importDefault)(n(25)),u=function(){function t(t,e){this._registrations={},this._resolutionStack=[],this.options=(0,r.__assign)({},t),this._parentContainer=e||null,this.__familyTree__=this._parentContainer?[this].concat(this._parentContainer.__familyTree__):[this],this.cache={}}return Object.defineProperty(t.prototype,"registrations",{get:function(){return(0,r.__assign)({},this._parentContainer&&this._parentContainer.registrations,this._registrations)},enumerable:!1,configurable:!0}),t.prototype._registerAs=function(t,e,n,i,o){var a=this,l=(0,s.default)(n,i);return Object.keys(l).forEach((function(n){var i=l[n];o=(0,r.__assign)({},o),!e&&Array.isArray(i)&&(o=(0,r.__assign)({},o,i[1]),i=i[0]),a.register(n,t(i,o))})),this},t.prototype.createScope=function(){return new t(this.options,this)},t.prototype.register=function(t,e){var n=this,i=(0,s.default)(t,e);return Object.keys(i).forEach((function(t){n._registrations[t]=i[t]})),this},t.prototype.registerClass=function(t,e,n){return this._registerAs(o.asClass,!1,t,e,n)},t.prototype.registerFunction=function(t,e,n){return this._registerAs(o.asFunction,!1,t,e,n)},t.prototype.registerValue=function(t,e,n){return this._registerAs(o.asValue,!0,t,e,n)},t.prototype.resolve=function(t){var e=this.__familyTree__[this.__familyTree__.length-1];try{var n=this.registrations[t];if(this._resolutionStack.indexOf(t)>-1)throw new a.default(t,this._resolutionStack,"Cyclic dependencies detected.");if(!n)throw new a.default(t,this._resolutionStack);this._resolutionStack.push(t);var i=void 0,r=void 0;switch(n.lifetime){case l.default.TRANSIENT:r=n.resolve(this);break;case l.default.SINGLETON:void 0===(i=e.cache[t])?(r=n.resolve(this),e.cache[t]=r):r=i;break;case l.default.SCOPED:for(var o=0,s=this.__familyTree__;o<s.length;o++){if(void 0!==(i=s[o].cache[t])){r=i;break}}void 0===i&&(r=n.resolve(this),this.cache[t]=r);break;default:throw new a.default(t,this._resolutionStack,'Unknown lifetime "'.concat(n.lifetime,'"'))}return this._resolutionStack.pop(),r}catch(t){throw this._resolutionStack=[],t}},t}();e.Container=u,e.default=function(t,e){return new u(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(t){function e(e,n,i){return t.call(this,"The function ".concat(e," expected a ").concat(n,", ").concat(i," given."))||this}return(0,i.__extends)(e,t),e}((0,i.__importDefault)(n(41)).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=(0,i.__importDefault)(n(41)),o=function(t){function e(e,n,i){return t.call(this,function(t,e,n){(e=e.slice()).push(t);var i=e.join(" -> "),r="Could not resolve '".concat(t,"'.");return n&&(r+=" ".concat(n," \n\n Resolution path: ").concat(i)),r}(e,n,i))||this}return(0,i.__extends)(e,t),e}(r.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default=function(t,e){var n;return"object"!=typeof t?(0,i.__assign)(((n={})[t]=e,n)):t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=(0,n(0).__importDefault)(n(71)),r=n(9),o=function(){function t(t,e,n,r,o){void 0===n&&(n=[]),void 0===r&&(r=[]),this._scope=e,this._scope.registerValue({config:(0,i.default)(t)}),this._scope.registerValue({themeConfig:o}),this._config=this._scope.resolve("config"),this._resolveAdditionalModules(r),this._resolveDefaultModules(n)}return t.prototype._resolveDefaultModules=function(t){var e=this;this._defaultModules=t.reduce((function(t,n){if(e._additionalModules[n])return t;var i=e._scope.resolve(n);return e._addPlayerAPIFromModule(i),t[n]=i,t}),{})},t.prototype._resolveAdditionalModules=function(t){var e=this;this._additionalModules=t.reduce((function(t,n){var i=e._scope.resolve(n);return e._addPlayerAPIFromModule(i),t[n]=i,t}),{})},t.prototype._getWrappedCallToModuleFunction=function(t,e){var n=this;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(n._destroyed)throw new Error("Player instance is destroyed");return e.apply(t,i)}},t.prototype._getPlayerAPIMethodDescriptor=function(t,e){var n={enumerable:!0,configurable:!0},i=e.get,r=e.set,o=e.value;return i&&(n.get=this._getWrappedCallToModuleFunction(t,i)),r&&(n.set=this._getWrappedCallToModuleFunction(t,r)),o&&(n.value=this._getWrappedCallToModuleFunction(t,o),n.writable=!0),n},t.prototype._getModuleApi=function(t){return t.getAPI?t.getAPI():t[r.PLAYER_API_PROPERTY]},t.prototype._addPlayerAPIFromModule=function(t){var e=this,n=this._getModuleApi(t),i=t.getAPI?function(t){return Object.getOwnPropertyDescriptor(n,t)}:function(i){return e._getPlayerAPIMethodDescriptor(t,n[i])};n&&Object.keys(n).forEach((function(t){if(e[t])throw new Error("API method ".concat(t," is already defined in Player facade"));Object.defineProperty(e,t,i(t))}))},t.prototype._clearPlayerAPIForModule=function(t){var e=this,n=this._getModuleApi(t);n&&Object.keys(n).forEach((function(t){delete e[t]}))},t.prototype.destroy=function(){var t=this;Object.keys(this._defaultModules).forEach((function(e){var n=t._defaultModules[e];t._clearPlayerAPIForModule(n),n.destroy()})),Object.keys(this._additionalModules).forEach((function(e){va