"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):e.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="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},i=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},r=function(e){return decodeURIComponent(e).replace(/\+/g," ")};"URLSearchParams"in e&&"a=1"===new URLSearchParams("?a=1").toString()||function(){var r=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof r){var n=this;e.forEach(function(e,t){n.append(t,e)})}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var i=0;it[0]?1:0}),e._entries&&(e._entries={});for(var n=0;n1?r(i[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),function(e){if(function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var i,r=document;if(n&&(void 0===e.location||n!==e.location.href)){(i=(r=document.implementation.createHTMLDocument("")).createElement("base")).href=n,r.head.appendChild(i);try{if(0!==i.href.indexOf(n))throw new Error(i.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var a=r.createElement("a");if(a.href=t,i&&(r.body.appendChild(a),a.href=a.href),":"===a.protocol||!/:/.test(a.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:a});var o=new URLSearchParams(this.search),s=!0,l=!0,c=this;["append","delete","set"].forEach(function(e){var t=o[e];o[e]=function(){t.apply(o,arguments),s&&(l=!1,c.search=o.toString(),l=!0)}}),Object.defineProperty(this,"searchParams",{value:o,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,l&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},i=n.prototype;["hash","host","hostname","port","protocol"].forEach(function(e){!function(e){Object.defineProperty(i,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)}),Object.defineProperty(i,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(i,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval(function(){e.location.origin=t()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e);var n=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},i=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},r=t(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)}),a=t(function(e){var t=e.exports={version:"2.6.2"};"number"==typeof __e&&(__e=t)}),o=(a.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),s=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e},l=function(e){try{return!!e()}catch(e){return!0}},c=!l(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),u=r.document,h=o(u)&&o(u.createElement),d=function(e){return h?u.createElement(e):{}},f=!c&&!l(function(){return 7!=Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a}),p=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!o(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},m=Object.defineProperty,g={f:c?Object.defineProperty:function(e,t,n){if(s(e),t=p(t,!0),s(n),f)try{return m(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},y=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},v=c?function(e,t,n){return g.f(e,t,y(1,n))}:function(e,t,n){return e[t]=n,e},b={}.hasOwnProperty,w=function(e,t){return b.call(e,t)},k=0,T=Math.random(),E=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++k+T).toString(36))},S=t(function(e){var t=E("src"),n=Function.toString,i=(""+n).split("toString");a.inspectSource=function(e){return n.call(e)},(e.exports=function(e,n,a,o){var s="function"==typeof a;s&&(w(a,"name")||v(a,"name",n)),e[n]!==a&&(s&&(w(a,t)||v(a,t,e[n]?""+e[n]:i.join(String(n)))),e===r?e[n]=a:o?e[n]?e[n]=a:v(e,n,a):(delete e[n],v(e,n,a)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[t]||n.call(this)})}),A=function(e,t,n){var o,s,l,c,u=e&A.F,h=e&A.G,d=e&A.S,f=e&A.P,p=e&A.B,m=h?r:d?r[t]||(r[t]={}):(r[t]||{}).prototype,g=h?a:a[t]||(a[t]={}),y=g.prototype||(g.prototype={});for(o in h&&(n=t),n)l=((s=!u&&m&&void 0!==m[o])?m:n)[o],c=p&&s?i(l,r):f&&"function"==typeof l?i(Function.call,l):l,m&&S(m,o,l,e&A.U),g[o]!=l&&v(g,o,c),f&&y[o]!=l&&(y[o]=l)};r.core=a,A.F=1,A.G=2,A.S=4,A.P=8,A.B=16,A.W=32,A.U=64,A.R=128;var C=A,_=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},P=function(e){return Object(_(e))},x=function(e,t,n,i){try{return i?t(s(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&s(r.call(e)),t}},I={},M=t(function(e){var t=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:a.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),N=t(function(e){var t=M("wks"),n=r.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:E)("Symbol."+e))}).store=t}),L=N("iterator"),O=Array.prototype,j=function(e){return void 0!==e&&(I.Array===e||O[L]===e)},R=Math.ceil,F=Math.floor,D=function(e){return isNaN(e=+e)?0:(e>0?F:R)(e)},q=Math.min,H=function(e){return e>0?q(D(e),9007199254740991):0},V=function(e,t,n){t in e?g.f(e,t,y(0,n)):e[t]=n},B={}.toString,U=function(e){return B.call(e).slice(8,-1)},W=N("toStringTag"),z="Arguments"==U(function(){return arguments}()),K=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),W))?n:z?U(t):"Object"==(i=U(t))&&"function"==typeof t.callee?"Arguments":i},Y=N("iterator"),G=a.getIteratorMethod=function(e){if(null!=e)return e[Y]||e["@@iterator"]||I[K(e)]},$=N("iterator"),Q=!1;try{[7][$]().return=function(){Q=!0}}catch(e){}var X=function(e,t){if(!t&&!Q)return!1;var n=!1;try{var i=[7],r=i[$]();r.next=function(){return{done:n=!0}},i[$]=function(){return r},e(i)}catch(e){}return n};C(C.S+C.F*!X(function(e){}),"Array",{from:function(e){var t,n,r,a,o=P(e),s="function"==typeof this?this:Array,l=arguments.length,c=l>1?arguments[1]:void 0,u=void 0!==c,h=0,d=G(o);if(u&&(c=i(c,l>2?arguments[2]:void 0,2)),null==d||s==Array&&j(d))for(n=new s(t=H(o.length));t>h;h++)V(n,h,u?c(o[h],h):o[h]);else for(a=d.call(o),n=new s;!(r=a.next()).done;h++)V(n,h,u?x(a,c,[r.value,h],!0):r.value);return n.length=h,n}});var J=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==U(e)?e.split(""):Object(e)},Z=Array.isArray||function(e){return"Array"==U(e)},ee=N("species"),te=function(e,t){return new(function(e){var t;return Z(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!Z(t.prototype)||(t=void 0),o(t)&&null===(t=t[ee])&&(t=void 0)),void 0===t?Array:t}(e))(t)},ne=function(e,t){var n=1==e,r=2==e,a=3==e,o=4==e,s=6==e,l=5==e||s,c=t||te;return function(t,u,h){for(var d,f,p=P(t),m=J(p),g=i(u,h,3),y=H(m.length),v=0,b=n?c(t,y):r?c(t,0):void 0;y>v;v++)if((l||v in m)&&(f=g(d=m[v],v,p),e))if(n)b[v]=f;else if(f)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:b.push(d)}else if(o)return!1;return s?-1:a||o?o:b}},ie=N("unscopables"),re=Array.prototype;null==re[ie]&&v(re,ie,{});var ae=function(e){re[ie][e]=!0},oe=ne(5),se=!0;"find"in[]&&Array(1).find(function(){se=!1}),C(C.P+C.F*se,"Array",{find:function(e){return oe(this,e,arguments.length>1?arguments[1]:void 0)}}),ae("find");var le={f:{}.propertyIsEnumerable},ce=function(e){return J(_(e))},ue=Object.getOwnPropertyDescriptor,he={f:c?ue:function(e,t){if(e=ce(e),t=p(t,!0),f)try{return ue(e,t)}catch(e){}if(w(e,t))return y(!le.f.call(e,t),e[t])}},de=function(e,t){if(s(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},fe={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=i(Function.call,he.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,i){return de(e,i),t?e.__proto__=i:n(e,i),e}}({},!1):void 0),check:de}.set,pe=function(e,t,n){var i,r=t.constructor;return r!==n&&"function"==typeof r&&(i=r.prototype)!==n.prototype&&o(i)&&fe&&fe(e,i),e},me=Math.max,ge=Math.min,ye=function(e){return function(t,n,i){var r,a=ce(t),o=H(a.length),s=function(e,t){return(e=D(e))<0?me(e+t,0):ge(e,t)}(i,o);if(e&&n!=n){for(;o>s;)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}},ve=M("keys"),be=function(e){return ve[e]||(ve[e]=E(e))},we=ye(!1),ke=be("IE_PROTO"),Te=function(e,t){var n,i=ce(e),r=0,a=[];for(n in i)n!=ke&&w(i,n)&&a.push(n);for(;t.length>r;)w(i,n=t[r++])&&(~we(a,n)||a.push(n));return a},Ee="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Se=Ee.concat("length","prototype"),Ae={f:Object.getOwnPropertyNames||function(e){return Te(e,Se)}},Ce="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",_e="["+Ce+"]",Pe=RegExp("^"+_e+_e+"*"),xe=RegExp(_e+_e+"*$"),Ie=function(e,t,n){var i={},r=l(function(){return!!Ce[e]()||"​…"!="​…"[e]()}),a=i[e]=r?t(Me):Ce[e];n&&(i[n]=a),C(C.P+C.F*r,"String",i)},Me=Ie.trim=function(e,t){return e=String(_(e)),1&t&&(e=e.replace(Pe,"")),2&t&&(e=e.replace(xe,"")),e},Ne=Ie,Le=Object.keys||function(e){return Te(e,Ee)},Oe=c?Object.defineProperties:function(e,t){s(e);for(var n,i=Le(t),r=i.length,a=0;r>a;)g.f(e,n=i[a++],t[n]);return e},je=r.document,Re=je&&je.documentElement,Fe=be("IE_PROTO"),De=function(){},qe=function(){var e,t=d("iframe"),n=Ee.length;for(t.style.display="none",Re.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("