"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):(e=e||self).Plyr=t()}(this,function(){"use strict";!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,i;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var e=function(e){return"object"==typeof e?null!==e:"function"==typeof e},t=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t},n=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},i={}.toString,r=function(e){return i.call(e).slice(8,-1)},a="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e,t){return e(t={exports:{}},t.exports),t.exports}var s=o(function(e){var t=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=t)}),l=(s.version,o(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),c=o(function(e){var t=l["__core-js_shared__"]||(l["__core-js_shared__"]={});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:s.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),u=0,h=Math.random(),d=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++u+h).toString(36))},f=o(function(e){var t=c("wks"),n=l.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:d)("Symbol."+e))}).store=t}),p=f("toStringTag"),m="Arguments"==r(function(){return arguments}()),g=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),p))?n:m?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i},v=RegExp.prototype.exec,y=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==g(e))throw new TypeError("RegExp#exec called on incompatible receiver");return v.call(e,t)},b=function(){var e=t(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n},w=RegExp.prototype.exec,k=String.prototype.replace,T=w,E=function(){var e=/a/,t=/b*/g;return w.call(e,"a"),w.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),S=void 0!==/()??/.exec("")[1];(E||S)&&(T=function(e){var t,n,i,r,a=this;return S&&(n=new RegExp("^"+a.source+"$(?!\\s)",b.call(a))),E&&(t=a.lastIndex),i=w.call(a,e),E&&i&&(a.lastIndex=a.global?i.index+i[0].length:t),S&&i&&i.length>1&&k.call(i[0],n,function(){for(r=1;r")}),G=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}(),$=function(e,t,n){var i=f(e),r=!P(function(){var t={};return t[i]=function(){return 7},7!=""[e](t)}),a=r?!P(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[K]=function(){return n}),n[i](""),!t}):void 0;if(!r||!a||"replace"===e&&!Y||"split"===e&&!G){var o=/./[i],s=n(z,i,""[e],function(e,t,n,i,a){return t.exec===A?r&&!a?{done:!0,value:o.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),l=s[0],c=s[1];H(String.prototype,e,l),R(RegExp.prototype,i,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)})}};$("search",1,function(e,i,r,a){return[function(t){var n=e(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,n):new RegExp(t)[i](String(n))},function(e){var i=a(r,e,this);if(i.done)return i.value;var o=t(e),s=String(this),l=o.lastIndex;n(l,0)||(o.lastIndex=0);var c=y(o,s);return n(o.lastIndex,l)||(o.lastIndex=l),null===c?-1:c.index}]});var X=f("match"),J=function(t){var n;return e(t)&&(void 0!==(n=t[X])?!!n:"RegExp"==r(t))},Q=f("species"),Z=function(e,n){var i,r=t(e).constructor;return void 0===r||null==(i=t(r)[Q])?n:V(i)},ee=Math.ceil,te=Math.floor,ne=function(e){return isNaN(e=+e)?0:(e>0?te:ee)(e)},ie=function(e){return function(t,n){var i,r,a=String(z(t)),o=ne(n),s=a.length;return o<0||o>=s?e?"":void 0:(i=a.charCodeAt(o))<55296||i>56319||o+1===s||(r=a.charCodeAt(o+1))<56320||r>57343?e?a.charAt(o):i:e?a.slice(o,o+2):r-56320+(i-55296<<10)+65536}},re=ie(!0),ae=function(e,t,n){return t+(n?re(e,t).length:1)},oe=Math.min,se=function(e){return e>0?oe(ne(e),9007199254740991):0},le=Math.min,ce=[].push,ue=!P(function(){});$("split",2,function(e,n,i,r){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!J(e))return i.call(n,e,t);for(var r,a,o,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,u=void 0===t?4294967295:t>>>0,h=new RegExp(e.source,l+"g");(r=A.call(h,n))&&!((a=h.lastIndex)>c&&(s.push(n.slice(c,r.index)),r.length>1&&r.index=u));)h.lastIndex===r.index&&h.lastIndex++;return c===n.length?!o&&h.test("")||s.push(""):s.push(n.slice(c)),s.length>u?s.slice(0,u):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:i.call(this,e,t)}:i,[function(t,i){var r=e(this),o=null==t?void 0:t[n];return void 0!==o?o.call(t,r,i):a.call(String(r),t,i)},function(e,n){var o=r(a,e,this,n,a!==i);if(o.done)return o.value;var s=t(e),l=String(this),c=Z(s,RegExp),u=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(ue?"y":"g"),d=new c(ue?s:"^(?:"+s.source+")",h),f=void 0===n?4294967295:n>>>0;if(0===f)return[];if(0===l.length)return null===y(d,l)?[l]:[];for(var p=0,m=0,g=[];ms;)if((r=a[s++])!=r)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},ke=c("keys"),Te=function(e){return ke[e]||(ke[e]=d(e))},Ee=we(!1),Se=Te("IE_PROTO"),Ae=function(e,t){var n,i=ve(e),r=0,a=[];for(n in i)n!=Se&&D(i,n)&&a.push(n);for(;t.length>r;)D(i,n=t[r++])&&(~Ee(a,n)||a.push(n));return a},Pe="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ce=Object.keys||function(e){return Ae(e,Pe)},_e=C?Object.defineProperties:function(e,n){t(e);for(var i,r=Ce(n),a=r.length,o=0;a>o;)L.f(e,i=r[o++],n[i]);return e},xe=l.document,Ne=xe&&xe.documentElement,Ie=Te("IE_PROTO"),Me=function(){},Oe=function(){var e,t=N("iframe"),n=Pe.length;for(t.style.display="none",Ne.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("