wplayer
Version:
A simple, accessible and customizable HTML5 media player
1 lines • 106 kB
JavaScript
"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(String(e).replace(/\+/g," "))};"URLSearchParams"in e&&"a=1"===new e.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;i<e.length;i++){var o=e[i];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var s in e)e.hasOwnProperty(s)&&this.append(s,e[s])}},o=r.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var i in this._entries)if(this._entries.hasOwnProperty(i)){n=this._entries[i];for(var r=0;r<n.length;r++)e.call(t,n[r],i,this)}},o.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),n(e)},o.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},o.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach(function(t,n){e.push(i(n)+"="+i(t))}),e.join("&")},e.URLSearchParams=r}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach(function(n,i){t.push([i,n]),e._entries||e.delete(i)}),t.sort(function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0}),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach(function(e,n){t.push(n)});for(var n=0;n<t.length;n++)this.delete(t[n])}var i,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)i=o[n].split("="),this.append(r(i[0]),i.length>1?r(i[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),function(e){var t,n,i;if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||(t=e.URL,i=(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 o=r.createElement("a");if(o.href=t,i&&(r.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var s=new e.URLSearchParams(this.search),a=!0,l=!0,c=this;["append","delete","set"].forEach(function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),a&&(l=!1,c.search=s.toString(),l=!0)}}),Object.defineProperty(this,"searchParams",{value:s,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&&(a=!1,this.searchParams._fromString(this.search),a=!0))}})}).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 r=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:r,enumerable:!0})}catch(t){setInterval(function(){e.location.origin=r()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e);var n=Math.ceil,i=Math.floor,r=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)},o=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},s=function(e){return function(t,n){var i,s,a=String(o(t)),l=r(n),c=a.length;return l<0||l>=c?e?"":void 0:(i=a.charCodeAt(l))<55296||i>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):i:e?a.slice(l,l+2):s-56320+(i-55296<<10)+65536}},a=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)}),l=t(function(e){var t=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=t)}),c=(l.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),u=function(e){if(!c(e))throw TypeError(e+" is not an object!");return e},h=function(e){try{return!!e()}catch(e){return!0}},d=!h(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),f=a.document,p=c(f)&&c(f.createElement),m=function(e){return p?f.createElement(e):{}},g=!d&&!h(function(){return 7!=Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a}),v=function(e,t){if(!c(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!c(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!c(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!c(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},y=Object.defineProperty,b={f:d?Object.defineProperty:function(e,t,n){if(u(e),t=v(t,!0),u(n),g)try{return y(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}},w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k=d?function(e,t,n){return b.f(e,t,w(1,n))}:function(e,t,n){return e[t]=n,e},E={}.hasOwnProperty,_=function(e,t){return E.call(e,t)},S=0,T=Math.random(),P=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++S+T).toString(36))},x=t(function(e){var t=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:l.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),A=x("native-function-to-string",Function.toString),N=t(function(e){var t=P("src"),n=(""+A).split("toString");l.inspectSource=function(e){return A.call(e)},(e.exports=function(e,i,r,o){var s="function"==typeof r;s&&(_(r,"name")||k(r,"name",i)),e[i]!==r&&(s&&(_(r,t)||k(r,t,e[i]?""+e[i]:n.join(String(i)))),e===a?e[i]=r:o?e[i]?e[i]=r:k(e,i,r):(delete e[i],k(e,i,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[t]||A.call(this)})}),C=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},M=function(e,t,n){if(C(e),void 0===t)return e;switch(n){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)}},O=function(e,t,n){var i,r,o,s,c=e&O.F,u=e&O.G,h=e&O.S,d=e&O.P,f=e&O.B,p=u?a:h?a[t]||(a[t]={}):(a[t]||{}).prototype,m=u?l:l[t]||(l[t]={}),g=m.prototype||(m.prototype={});for(i in u&&(n=t),n)o=((r=!c&&p&&void 0!==p[i])?p:n)[i],s=f&&r?M(o,a):d&&"function"==typeof o?M(Function.call,o):o,p&&N(p,i,o,e&O.U),m[i]!=o&&k(m,i,s),d&&g[i]!=o&&(g[i]=o)};a.core=l,O.F=1,O.G=2,O.S=4,O.P=8,O.B=16,O.W=32,O.U=64,O.R=128;var j=O,L={},I={}.toString,F=function(e){return I.call(e).slice(8,-1)},R=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==F(e)?e.split(""):Object(e)},q=function(e){return R(o(e))},B=Math.min,D=function(e){return e>0?B(r(e),9007199254740991):0},U=Math.max,H=Math.min,V=function(e){return function(t,n,i){var o,s=q(t),a=D(s.length),l=function(e,t){return(e=r(e))<0?U(e+t,0):H(e,t)}(i,a);if(e&&n!=n){for(;a>l;)if((o=s[l++])!=o)return!0}else for(;a>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}},W=x("keys"),K=function(e){return W[e]||(W[e]=P(e))},z=V(!1),G=K("IE_PROTO"),$=function(e,t){var n,i=q(e),r=0,o=[];for(n in i)n!=G&&_(i,n)&&o.push(n);for(;t.length>r;)_(i,n=t[r++])&&(~z(o,n)||o.push(n));return o},X="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Y=Object.keys||function(e){return $(e,X)},J=d?Object.defineProperties:function(e,t){u(e);for(var n,i=Y(t),r=i.length,o=0;r>o;)b.f(e,n=i[o++],t[n]);return e},Q=a.document,Z=Q&&Q.documentElement,ee=K("IE_PROTO"),te=function(){},ne=function(){var e,t=m("iframe"),n=X.length;for(t.style.display="none",Z.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),ne=e.F;n--;)delete ne.prototype[X[n]];return ne()},ie=Object.create||function(e,t){var n;return null!==e?(te.prototype=u(e),n=new te,te.prototype=null,n[ee]=e):n=ne(),void 0===t?n:J(n,t)},re=t(function(e){var t=x("wks"),n=a.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:P)("Symbol."+e))}).store=t}),oe=b.f,se=re("toStringTag"),ae=function(e,t,n){e&&!_(e=n?e:e.prototype,se)&&oe(e,se,{configurable:!0,value:t})},le={};k(le,re("iterator"),function(){return this});var ce=function(e,t,n){e.prototype=ie(le,{next:w(1,n)}),ae(e,t+" Iterator")},ue=function(e){return Object(o(e))},he=K("IE_PROTO"),de=Object.prototype,fe=Object.getPrototypeOf||function(e){return e=ue(e),_(e,he)?e[he]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?de:null},pe=re("iterator"),me=!([].keys&&"next"in[].keys()),ge=function(){return this},ve=function(e,t,n,i,r,o,s){ce(n,t,i);var a,l,c,u=function(e){if(!me&&e in p)return p[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},h=t+" Iterator",d="values"==r,f=!1,p=e.prototype,m=p[pe]||p["@@iterator"]||r&&p[r],g=m||u(r),v=r?d?u("entries"):g:void 0,y="Array"==t&&p.entries||m;if(y&&(c=fe(y.call(new e)))!==Object.prototype&&c.next&&(ae(c,h,!0),"function"!=typeof c[pe]&&k(c,pe,ge)),d&&m&&"values"!==m.name&&(f=!0,g=function(){return m.call(this)}),(me||f||!p[pe])&&k(p,pe,g),L[t]=g,L[h]=ge,r)if(a={values:d?g:u("values"),keys:o?g:u("keys"),entries:v},s)for(l in a)l in p||N(p,l,a[l]);else j(j.P+j.F*(me||f),t,a);return a},ye=s(!0);ve(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=ye(t,n),this._i+=e.length,{value:e,done:!1})});var be=function(e,t,n,i){try{return i?t(u(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&u(r.call(e)),t}},we=re("iterator"),ke=Array.prototype,Ee=function(e){return void 0!==e&&(L.Array===e||ke[we]===e)},_e=function(e,t,n){t in e?b.f(e,t,w(0,n)):e[t]=n},Se=re("toStringTag"),Te="Arguments"==F(function(){return arguments}()),Pe=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),Se))?n:Te?F(t):"Object"==(i=F(t))&&"function"==typeof t.callee?"Arguments":i},xe=re("iterator"),Ae=l.getIteratorMethod=function(e){if(null!=e)return e[xe]||e["@@iterator"]||L[Pe(e)]},Ne=re("iterator"),Ce=!1;try{[7][Ne]().return=function(){Ce=!0}}catch(e){}var Me=function(e,t){if(!t&&!Ce)return!1;var n=!1;try{var i=[7],r=i[Ne]();r.next=function(){return{done:n=!0}},i[Ne]=function(){return r},e(i)}catch(e){}return n};j(j.S+j.F*!Me(function(e){}),"Array",{from:function(e){var t,n,i,r,o=ue(e),s="function"==typeof this?this:Array,a=arguments.length,l=a>1?arguments[1]:void 0,c=void 0!==l,u=0,h=Ae(o);if(c&&(l=M(l,a>2?arguments[2]:void 0,2)),null==h||s==Array&&Ee(h))for(n=new s(t=D(o.length));t>u;u++)_e(n,u,c?l(o[u],u):o[u]);else for(r=h.call(o),n=new s;!(i=r.next()).done;u++)_e(n,u,c?be(r,l,[i.value,u],!0):i.value);return n.length=u,n}});var Oe=Array.isArray||function(e){return"Array"==F(e)},je=re("species"),Le=function(e,t){return new(function(e){var t;return Oe(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!Oe(t.prototype)||(t=void 0),c(t)&&null===(t=t[je])&&(t=void 0)),void 0===t?Array:t}(e))(t)},Ie=function(e,t){var n=1==e,i=2==e,r=3==e,o=4==e,s=6==e,a=5==e||s,l=t||Le;return function(t,c,u){for(var h,d,f=ue(t),p=R(f),m=M(c,u,3),g=D(p.length),v=0,y=n?l(t,g):i?l(t,0):void 0;g>v;v++)if((a||v in p)&&(d=m(h=p[v],v,f),e))if(n)y[v]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return v;case 2:y.push(h)}else if(o)return!1;return s?-1:r||o?o:y}},Fe=re("unscopables"),Re=Array.prototype;null==Re[Fe]&&k(Re,Fe,{});var qe=function(e){Re[Fe][e]=!0},Be=Ie(5),De=!0;"find"in[]&&Array(1).find(function(){De=!1}),j(j.P+j.F*De,"Array",{find:function(e){return Be(this,e,arguments.length>1?arguments[1]:void 0)}}),qe("find");var Ue={f:{}.propertyIsEnumerable},He=Object.getOwnPropertyDescriptor,Ve={f:d?He:function(e,t){if(e=q(e),t=v(t,!0),g)try{return He(e,t)}catch(e){}if(_(e,t))return w(!Ue.f.call(e,t),e[t])}},We=function(e,t){if(u(e),!c(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},Ke={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=M(Function.call,Ve.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,i){return We(e,i),t?e.__proto__=i:n(e,i),e}}({},!1):void 0),check:We}.set,ze=function(e,t,n){var i,r=t.constructor;return r!==n&&"function"==typeof r&&(i=r.prototype)!==n.prototype&&c(i)&&Ke&&Ke(e,i),e},Ge=X.concat("length","prototype"),$e={f:Object.getOwnPropertyNames||function(e){return $(e,Ge)}},Xe="\t\n\v\f\r \u2028\u2029\ufeff",Ye="["+Xe+"]",Je=RegExp("^"+Ye+Ye+"*"),Qe=RegExp(Ye+Ye+"*$"),Ze=function(e,t,n){var i={},r=h(function(){return!!Xe[e]()||"
"!="
"[e]()}),o=i[e]=r?t(et):Xe[e];n&&(i[n]=o),j(j.P+j.F*r,"String",i)},et=Ze.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(Je,"")),2&t&&(e=e.replace(Qe,"")),e},tt=Ze,nt=$e.f,it=Ve.f,rt=b.f,ot=tt.trim,st=a.Number,at=st,lt=st.prototype,ct="Number"==F(ie(lt)),ut="trim"in String.prototype,ht=function(e){var t=v(e,!1);if("string"==typeof t&&t.length>2){var n,i,r,o=(t=ut?t.trim():ot(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+t}for(var s,a=t.slice(2),l=0,c=a.length;l<c;l++)if((s=a.charCodeAt(l))<48||s>r)return NaN;return parseInt(a,i)}}return+t};if(!st(" 0o1")||!st("0b1")||st("+0x1")){st=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof st&&(ct?h(function(){lt.valueOf.call(n)}):"Number"!=F(n))?ze(new at(ht(t)),n,st):ht(t)};for(var dt,ft=d?nt(at):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),pt=0;ft.length>pt;pt++)_(at,dt=ft[pt])&&!_(st,dt)&&rt(st,dt,it(at,dt));st.prototype=lt,lt.constructor=st,N(a,"Number",st)}var mt=function(e,t){return{value:t,done:!!e}},gt=ve(Array,"Array",function(e,t){this._t=q(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,mt(1)):mt(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");L.Arguments=L.Array,qe("keys"),qe("values"),qe("entries");for(var vt=re("iterator"),yt=re("toStringTag"),bt=L.Array,wt={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},kt=Y(wt),Et=0;Et<kt.length;Et++){var _t,St=kt[Et],Tt=wt[St],Pt=a[St],xt=Pt&&Pt.prototype;if(xt&&(xt[vt]||k(xt,vt,bt),xt[yt]||k(xt,yt,St),L[St]=bt,Tt))for(_t in gt)xt[_t]||N(xt,_t,gt[_t],!0)}!function(e,t){var n=(l.Object||{})[e]||Object[e],i={};i[e]=t(n),j(j.S+j.F*h(function(){n(1)}),"Object",i)}("keys",function(){return function(e){return Y(ue(e))}});var At=re("match"),Nt=function(e){var t;return c(e)&&(void 0!==(t=e[At])?!!t:"RegExp"==F(e))},Ct=function(e,t,n){if(Nt(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))},Mt=re("match"),Ot=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Mt]=!1,!"/./"[e](t)}catch(e){}}return!0};j(j.P+j.F*Ot("includes"),"String",{includes:function(e){return!!~Ct(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}});var jt=V(!0);j(j.P,"Array",{includes:function(e){return jt(this,e,arguments.length>1?arguments[1]:void 0)}}),qe("includes");var Lt=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},It=RegExp.prototype.exec,Ft=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"!==Pe(e))throw new TypeError("RegExp#exec called on incompatible receiver");return It.call(e,t)},Rt=function(){var e=u(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},qt=RegExp.prototype.exec,Bt=String.prototype.replace,Dt=qt,Ut=function(){var e=/a/,t=/b*/g;return qt.call(e,"a"),qt.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Ht=void 0!==/()??/.exec("")[1];(Ut||Ht)&&(Dt=function(e){var t,n,i,r,o=this;return Ht&&(n=new RegExp("^"+o.source+"$(?!\\s)",Rt.call(o))),Ut&&(t=o.lastIndex),i=qt.call(o,e),Ut&&i&&(o.lastIndex=o.global?i.index+i[0].length:t),Ht&&i&&i.length>1&&Bt.call(i[0],n,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)}),i});var Vt=Dt;j({target:"RegExp",proto:!0,forced:Vt!==/./.exec},{exec:Vt});var Wt=re("species"),Kt=!h(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),zt=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]}(),Gt=function(e,t,n){var i=re(e),r=!h(function(){var t={};return t[i]=function(){return 7},7!=""[e](t)}),s=r?!h(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[Wt]=function(){return n}),n[i](""),!t}):void 0;if(!r||!s||"replace"===e&&!Kt||"split"===e&&!zt){var a=/./[i],l=n(o,i,""[e],function(e,t,n,i,o){return t.exec===Vt?r&&!o?{done:!0,value:a.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),c=l[0],u=l[1];N(String.prototype,e,c),k(RegExp.prototype,i,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}};Gt("search",1,function(e,t,n,i){return[function(n){var i=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=i(n,e,this);if(t.done)return t.value;var r=u(e),o=String(this),s=r.lastIndex;Lt(s,0)||(r.lastIndex=0);var a=Ft(r,o);return Lt(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]}),d&&"g"!=/./g.flags&&b.f(RegExp.prototype,"flags",{configurable:!0,get:Rt});var $t=/./.toString,Xt=function(e){N(RegExp.prototype,"toString",e,!0)};function Yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Qt(e,t,n){return t&&Jt(e.prototype,t),n&&Jt(e,n),e}function Zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}h(function(){return"/a/b"!=$t.call({source:"a",flags:"b"})})?Xt(function(){var e=u(this);return"/".concat(e.source,"/","flags"in e?e.flags:!d&&e instanceof RegExp?Rt.call(e):void 0)}):"toString"!=$t.name&&Xt(function(){return $t.call(this)});var tn="".startsWith;j(j.P+j.F*Ot("startsWith"),"String",{startsWith:function(e){var t=Ct(this,e,"startsWith"),n=D(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return tn?tn.call(t,i,n):t.slice(n,n+i.length)===i}});var nn=t(function(e){var t=P("meta"),n=b.f,i=0,r=Object.isExtensible||function(){return!0},o=!h(function(){return r(Object.preventExtensions({}))}),s=function(e){n(e,t,{value:{i:"O"+ ++i,w:{}}})},a=e.exports={KEY:t,NEED:!1,fastKey:function(e,n){if(!c(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!_(e,t)){if(!r(e))return"F";if(!n)return"E";s(e)}return e[t].i},getWeak:function(e,n){if(!_(e,t)){if(!r(e))return!0;if(!n)return!1;s(e)}return e[t].w},onFreeze:function(e){return o&&a.NEED&&r(e)&&!_(e,t)&&s(e),e}}}),rn=(nn.KEY,nn.NEED,nn.fastKey,nn.getWeak,nn.onFreeze,{f:Object.getOwnPropertySymbols}),on=Object.assign,sn=!on||h(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=on({},e)[n]||Object.keys(on({},t)).join("")!=i})?function(e,t){for(var n=ue(e),i=arguments.length,r=1,o=rn.f,s=Ue.f;i>r;)for(var a,l=R(arguments[r++]),c=o?Y(l).concat(o(l)):Y(l),u=c.length,h=0;u>h;)s.call(l,a=c[h++])&&(n[a]=l[a]);return n}:on,an=function(e,t,n){for(var i in t)N(e,i,t[i],n);return e},ln=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e},cn=t(function(e){var t={},n={},i=e.exports=function(e,i,r,o,s){var a,l,c,h,d=s?function(){return e}:Ae(e),f=M(r,o,i?2:1),p=0;if("function"!=typeof d)throw TypeError(e+" is not iterable!");if(Ee(d)){for(a=D(e.length);a>p;p++)if((h=i?f(u(l=e[p])[0],l[1]):f(e[p]))===t||h===n)return h}else for(c=d.call(e);!(l=c.next()).done;)if((h=be(c,f,l.value,i))===t||h===n)return h};i.BREAK=t,i.RETURN=n}),un=function(e,t){if(!c(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e},hn=nn.getWeak,dn=Ie(5),fn=Ie(6),pn=0,mn=function(e){return e._l||(e._l=new gn)},gn=function(){this.a=[]},vn=function(e,t){return dn(e.a,function(e){return e[0]===t})};gn.prototype={get:function(e){var t=vn(this,e);if(t)return t[1]},has:function(e){return!!vn(this,e)},set:function(e,t){var n=vn(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=fn(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}};var yn={getConstructor:function(e,t,n,i){var r=e(function(e,o){ln(e,r,t,"_i"),e._t=t,e._i=pn++,e._l=void 0,null!=o&&cn(o,n,e[i],e)});return an(r.prototype,{delete:function(e){if(!c(e))return!1;var n=hn(e);return!0===n?mn(un(this,t)).delete(e):n&&_(n,this._i)&&delete n[this._i]},has:function(e){if(!c(e))return!1;var n=hn(e);return!0===n?mn(un(this,t)).has(e):n&&_(n,this._i)}}),r},def:function(e,t,n){var i=hn(u(t),!0);return!0===i?mn(e).set(t,n):i[e._i]=n,e},ufstore:mn};t(function(e){var t,n=Ie(0),i=un,r=!a.ActiveXObject&&"ActiveXObject"in a,o=nn.getWeak,s=Object.isExtensible,l=yn.ufstore,u=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},d={get:function(e){if(c(e)){var t=o(e);return!0===t?l(un(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return yn.def(un(this,"WeakMap"),e,t)}},f=e.exports=function(e,t,n,i,r,o){var s=a[e],l=s,u=r?"set":"add",d=l&&l.prototype,f={},p=function(e){var t=d[e];N(d,e,"delete"==e?function(e){return!(o&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof l&&(o||d.forEach&&!h(function(){(new l).entries().next()}))){var m=new l,g=m[u](o?{}:-0,1)!=m,v=h(function(){m.has(1)}),y=Me(function(e){new l(e)}),b=!o&&h(function(){for(var e=new l,t=5;t--;)e[u](t,t);return!e.has(-0)});y||((l=t(function(t,n){ln(t,l,e);var i=ze(new s,t,l);return null!=n&&cn(n,r,i[u],i),i})).prototype=d,d.constructor=l),(v||b)&&(p("delete"),p("has"),r&&p("get")),(b||g)&&p(u),o&&d.clear&&delete d.clear}else l=i.getConstructor(t,e,r,u),an(l.prototype,n),nn.NEED=!0;return ae(l,e),f[e]=l,j(j.G+j.W+j.F*(l!=s),f),o||i.setStrong(l,e,r),l}("WeakMap",u,d,yn,!0,!0);i&&r&&(t=yn.getConstructor(u,"WeakMap"),sn(t.prototype,d),nn.NEED=!0,n(["delete","has","get","set"],function(e){var n=f.prototype,i=n[e];N(n,e,function(n,r){if(c(n)&&!s(n)){this._f||(this._f=new t);var o=this._f[e](n,r);return"set"==e?this:o}return i.call(this,n,r)})}))});j(j.S,"Number",{isNaN:function(e){return e!=e}});var bn=function(e){return null!=e?e.constructor:null},wn=function(e,t){return Boolean(e&&t&&e instanceof t)},kn=function(e){return null==e},En=function(e){return bn(e)===Object},_n=function(e){return bn(e)===String},Sn=function(e){return Array.isArray(e)},Tn=function(e){return wn(e,NodeList)},Pn=function(e){return kn(e)||(_n(e)||Sn(e)||Tn(e))&&!e.length||En(e)&&!Object.keys(e).length},xn={nullOrUndefined:kn,object:En,number:function(e){return bn(e)===Number&&!Number.isNaN(e)},string:_n,boolean:function(e){return bn(e)===Boolean},function:function(e){return bn(e)===Function},array:Sn,weakMap:function(e){return wn(e,WeakMap)},nodeList:Tn,element:function(e){return wn(e,Element)},textNode:function(e){return bn(e)===Text},event:function(e){return wn(e,Event)},keyboardEvent:function(e){return wn(e,KeyboardEvent)},cue:function(e){return wn(e,window.TextTrackCue)||wn(e,window.VTTCue)},track:function(e){return wn(e,TextTrack)||!kn(e)&&_n(e.kind)},url:function(e){if(wn(e,window.URL))return!0;if(!_n(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!Pn(new URL(t).hostname)}catch(e){return!1}},empty:Pn};Array.prototype.find||(Array.prototype.find=function(e){return this.filter(e)[0]});var An={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:"16:9",clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.4.7/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240]},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","qualitychange"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption",menu:{quality:".js-plyr__menu__list--quality"}},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",videoInitFlag:"plyr__is-video-init",embed:"plyr__video-embed",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus"},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}}},Nn="picture-in-picture",Cn="inline",Mn={html5:"html5"},On={audio:"audio",video:"video"};var jn=function(){},Ln=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Yt(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Qt(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):jn}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):jn}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):jn}}]),e}(),In=Ue.f,Fn=function(e){return function(t){for(var n,i=q(t),r=Y(i),o=r.length,s=0,a=[];o>s;)In.call(i,n=r[s++])&&a.push(e?[n,i[n]]:i[n]);return a}},Rn=Fn(!0);j(j.S,"Object",{entries:function(e){return Rn(e)}});var qn=Fn(!1);j(j.S,"Object",{values:function(e){return qn(e)}});var Bn=s(!0),Dn=function(e,t,n){return t+(n?Bn(e,t).length:1)},Un=Math.max,Hn=Math.min,Vn=Math.floor,Wn=/\$([$&`']|\d\d?|<[^>]*>)/g,Kn=/\$([$&`']|\d\d?)/g;Gt("replace",2,function(e,t,n,i){return[function(i,r){var o=e(this),s=null==i?void 0:i[t];return void 0!==s?s.call(i,o,r):n.call(String(o),i,r)},function(e,t){var s=i(n,e,this,t);if(s.done)return s.value;var a=u(e),l=String(this),c="function"==typeof t;c||(t=String(t));var h=a.global;if(h){var d=a.unicode;a.lastIndex=0}for(var f=[];;){var p=Ft(a,l);if(null===p)break;if(f.push(p),!h)break;""===String(p[0])&&(a.lastIndex=Dn(l,D(a.lastIndex),d))}for(var m,g="",v=0,y=0;y<f.length;y++){p=f[y];for(var b=String(p[0]),w=Un(Hn(r(p.index),l.length),0),k=[],E=1;E<p.length;E++)k.push(void 0===(m=p[E])?m:String(m));var _=p.groups;if(c){var S=[b].concat(k,w,l);void 0!==_&&S.push(_);var T=String(t.apply(void 0,S))}else T=o(b,l,w,k,_,t);w>=v&&(g+=l.slice(v,w)+T,v=w+b.length)}return g+l.slice(v)}];function o(e,t,i,r,o,s){var a=i+e.length,l=r.length,c=Kn;return void 0!==o&&(o=ue(o),c=Wn),n.call(s,c,function(n,s){var c;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(a);case"<":c=o[s.slice(1,-1)];break;default:var u=+s;if(0===u)return n;if(u>l){var h=Vn(u/10);return 0===h?n:h<=l?void 0===r[h-1]?s.charAt(1):r[h-1]+s.charAt(1):n}c=r[u-1]}return void 0===c?"":c})}}),j(j.S+j.F,"Object",{assign:sn});var zn=re("species"),Gn=function(e,t){var n,i=u(e).constructor;return void 0===i||null==(n=u(i)[zn])?t:C(n)},$n=Math.min,Xn=[].push,Yn=!h(function(){});Gt("split",2,function(e,t,n,i){var r;return r="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 i=String(this);if(void 0===e&&0===t)return[];if(!Nt(e))return n.call(i,e,t);for(var r,o,s,a=[],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=Vt.call(h,i))&&!((o=h.lastIndex)>c&&(a.push(i.slice(c,r.index)),r.length>1&&r.index<i.length&&Xn.apply(a,r.slice(1)),s=r[0].length,c=o,a.length>=u));)h.lastIndex===r.index&&h.lastIndex++;return c===i.length?!s&&h.test("")||a.push(""):a.push(i.slice(c)),a.length>u?a.slice(0,u):a}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,i){var o=e(this),s=null==n?void 0:n[t];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},function(e,t){var o=i(r,e,this,t,r!==n);if(o.done)return o.value;var s=u(e),a=String(this),l=Gn(s,RegExp),c=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Yn?"y":"g"),d=new l(Yn?s:"^(?:"+s.source+")",h),f=void 0===t?4294967295:t>>>0;if(0===f)return[];if(0===a.length)return null===Ft(d,a)?[a]:[];for(var p=0,m=0,g=[];m<a.length;){d.lastIndex=Yn?m:0;var v,y=Ft(d,Yn?a:a.slice(m));if(null===y||(v=$n(D(d.lastIndex+(Yn?0:m)),a.length))===p)m=Dn(a,m,c);else{if(g.push(a.slice(p,m)),g.length===f)return g;for(var b=1;b<=y.length-1;b++)if(g.push(y[b]),g.length===f)return g;m=p=v}}return g.push(a.slice(p)),g}]});var Jn,Qn,Zn,ei=a.process,ti=a.setImmediate,ni=a.clearImmediate,ii=a.MessageChannel,ri=a.Dispatch,oi=0,si={},ai=function(){var e=+this;if(si.hasOwnProperty(e)){var t=si[e];delete si[e],t()}},li=function(e){ai.call(e.data)};ti&&ni||(ti=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return si[++oi]=function(){!function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}e.apply(n,t)}("function"==typeof e?e:Function(e),t)},Jn(oi),oi},ni=function(e){delete si[e]},"process"==F(ei)?Jn=function(e){ei.nextTick(M(ai,e,1))}:ri&&ri.now?Jn=function(e){ri.now(M(ai,e,1))}:ii?(Zn=(Qn=new ii).port2,Qn.port1.onmessage=li,Jn=M(Zn.postMessage,Zn,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(Jn=function(e){a.postMessage(e+"","*")},a.addEventListener("message",li,!1)):Jn="onreadystatechange"in m("script")?function(e){Z.appendChild(m("script")).onreadystatechange=function(){Z.removeChild(this),ai.call(e)}}:function(e){setTimeout(M(ai,e,1),0)});var ci={set:ti,clear:ni},ui=ci.set,hi=a.MutationObserver||a.WebKitMutationObserver,di=a.process,fi=a.Promise,pi="process"==F(di);function mi(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=C(t),this.reject=C(n)}var gi,vi,yi,bi,wi={f:function(e){return new mi(e)}},ki=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},Ei=a.navigator,_i=Ei&&Ei.userAgent||"",Si=re("species"),Ti=function(e){var t=a[e];d&&t&&!t[Si]&&b.f(t,Si,{configurable:!0,get:function(){return this}})},Pi=ci.set,xi=function(){var e,t,n,i=function(){var i,r;for(pi&&(i=di.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(pi)n=function(){di.nextTick(i)};else if(!hi||a.navigator&&a.navigator.standalone)if(fi&&fi.resolve){var r=fi.resolve(void 0);n=function(){r.then(i)}}else n=function(){ui.call(a,i)};else{var o=!0,s=document.createTextNode("");new hi(i).observe(s,{characterData:!0}),n=function(){s.data=o=!o}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}(),Ai=a.TypeError,Ni=a.process,Ci=Ni&&Ni.versions,Mi=Ci&&Ci.v8||"",Oi=a.Promise,ji="process"==Pe(Ni),Li=function(){},Ii=vi=wi.f,Fi=!!function(){try{var e=Oi.resolve(1),t=(e.constructor={})[re("species")]=function(e){e(Li,Li)};return(ji||"function"==typeof PromiseRejectionEvent)&&e.then(Li)instanceof t&&0!==Mi.indexOf("6.6")&&-1===_i.indexOf("Chrome/66")}catch(e){}}(),Ri=function(e){var t;return!(!c(e)||"function"!=typeof(t=e.then))&&t},qi=function(e,t){if(!e._n){e._n=!0;var n=e._c;xi(function(){for(var i=e._v,r=1==e._s,o=0,s=function(t){var n,o,s,a=r?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{a?(r||(2==e._h&&Ui(e),e._h=1),!0===a?n=i:(u&&u.enter(),n=a(i),u&&(u.exit(),s=!0)),n===t.promise?c(Ai("Promise-chain cycle")):(o=Ri(n))?o.call(n,l,c):l(n)):c(i)}catch(e){u&&!s&&u.exit(),c(e)}};n.length>o;)s(n[o++]);e._c=[],e._n=!1,t&&!e._h&&Bi(e)})}},Bi=function(e){Pi.call(a,function(){var t,n,i,r=e._v,o=Di(e);if(o&&(t=ki(function(){ji?Ni.emit("unhandledRejection",r,e):(n=a.onunhandledrejection)?n({promise:e,reason:r}):(i=a.console)&&i.error&&i.error("Unhandled promise rejection",r)}),e._h=ji||Di(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},Di=function(e){return 1!==e._h&&0===(e._a||e._c).length},Ui=function(e){Pi.call(a,function(){var t;ji?Ni.emit("rejectionHandled",e):(t=a.onrejectionhandled)&&t({promise:e,reason:e._v})})},Hi=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),qi(t,!0))},Vi=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw Ai("Promise can't be resolved itself");(t=Ri(e))?xi(function(){var i={_w:n,_d:!1};try{t.call(e,M(Vi,i,1),M(Hi,i,1))}catch(e){Hi.call(i,e)}}):(n._v=e,n._s=1,qi(n,!1))}catch(e){Hi.call({_w:n,_d:!1},e)}}};Fi||(Oi=function(e){ln(this,Oi,"Promise","_h"),C(e),gi.call(this);try{e(M(Vi,this,1),M(Hi,this,1))}catch(e){Hi.call(this,e)}},(gi=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=an(Oi.prototype,{then:function(e,t){var n=Ii(Gn(this,Oi));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=ji?Ni.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&qi(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),yi=function(){var e=new gi;this.promise=e,this.resolve=M(Vi,e,1),this.reject=M(Hi,e,1)},wi.f=Ii=function(e){return e===Oi||e===bi?new yi(e):vi(e)}),j(j.G+j.W+j.F*!Fi,{Promise:Oi}),ae(Oi,"Promise"),Ti("Promise"),bi=l.Promise,j(j.S+j.F*!Fi,"Promise",{reject:function(e){var t=Ii(this);return(0,t.reject)(e),t.promise}}),j(j.S+j.F*!Fi,"Promise",{resolve:function(e){return function(e,t){if(u(e),c(t)&&t.constructor===e)return t;var n=wi.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),j(j.S+j.F*!(Fi&&Me(function(e){Oi.all(e).catch(Li)})),"Promise",{all:function(e){var t=this,n=Ii(t),i=n.resolve,r=n.reject,o=ki(function(){var n=[],o=0,s=1;cn(e,!1,function(e){var a=o++,l=!1;n.push(void 0),s++,t.resolve(e).then(function(e){l||(l=!0,n[a]=e,--s||i(n))},r)}),--s||i(n)});return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=Ii(t),i=n.reject,r=ki(function(){cn(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}});var Wi=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function Ki(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!xn.empty(t)&&xn.function(n)){var a=t.split(" "),l=s;Wi&&(l={passive:o,capture:s}),a.forEach(function(t){i&&i.eventListeners&&r&&i.eventListeners.push({element:e,type:t,callback:n,options:l}),e[r?"addEventListener":"removeEventListener"](t,n,l)})}}function zi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Ki.call(this,e,t,n,!0,i,r)}function Gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Ki.call(this,e,t,n,!1,i,r)}function $i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Ki.call(this,e,t,function o(){Gi(e,t,o,i,r);for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];n.apply(this,a)},!0,i,r)}function Xi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(xn.element(e)&&!xn.empty(t)){var r=new CustomEvent(t,{bubbles:n,detail:Object.assign({},i,{plyr:this})});e.dispatchEvent(r)}}function Yi(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach(function(e,n){var i=n>0?t.cloneNode(!0):t,r=e.parentNode,o=e.nextSibling;i.appendChild(e),o?r.insertBefore(i,o):r.appendChild(i)})}function Ji(e,t){xn.element(e)&&!xn.empty(t)&&Object.entries(t).filter(function(e){var t=en(e,2)[1];return!xn.nullOrUndefined(t)}).forEach(function(t){var n=en(t,2),i=n[0],r=n[1];return e.setAttribute(i,r)})}function Qi(e,t,n){var i=document.createElement(e);return xn.object(t)&&Ji(i,t),xn.string(n)&&(i.innerText=n),i}function Zi(e,t,n,i){xn.element(t)&&t.appendChild(Qi(e,n,i))}function er(e){xn.nodeList(e)||xn.array(e)?Array.from(e).forEach(er):xn.element(e)&&xn.element(e.parentNode)&&e.parentNode.removeChild(e)}function tr(e){if(xn.element(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function nr(e,t){if(!xn.string(e)||xn.empty(e))return{};var n={},i=t;return e.split(",").forEach(function(e){var t=e.trim(),r=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),s=o[0],a=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":xn.object(i)&&xn.string(i.class)&&(i.class+=" ".concat(r)),n.class=r;break;case"#":n.id=t.replace("#","");break;case"[":n[s]=a}}),n}function ir(e,t){if(xn.element(e)){var n=t;xn.boolean(n)||(n=!e.hidden),n?e.setAttribute("hidden",""):e.removeAttribute("hidden")}}function rr(e,t,n){if(xn.nodeList(e))return Array.from(e).map(function(e){return rr(e,t,n)});if(xn.element(e)){var i="toggle";return void 0!==n&&(i=n?"add":"remove"),e.classList[i](t),e.classList.contains(t)}return!1}function or(e,t){return xn.element(e)&&e.classList.contains(t)}function sr(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function ar(e){return this.elements.container.querySelectorAll(e)}function lr(e){return this.elements.container.querySelector(e)}function cr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];xn.element(e)&&(e.focus({preventScroll:!0}),t&&rr(e,this.config.classNames.tabFocus))}var ur,hr,dr,fr=(ur=document.createElement("span"),hr={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},dr=Object.keys(hr).find(function(e){return void 0!==ur.style[e]}),!!xn.string(dr)&&hr[dr]);function pr(e){setTimeout(function(){try{ir(e,!0),e.offsetHeight,ir(e,!1)}catch(e){}},0)}var mr,gr={isIE:!!document.documentMode,isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)},vr={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},yr={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){var i=gr.isIPhone&&n&&yr.playsinline,r=yr[e]||"html5"!==t;return{api:r,ui:r&&yr.rangeInput&&("video"!==e||!gr.isIPhone||i)}},pip:!(gr.isIPhone||!xn.function(Qi("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Qi("video").disablePictureInPicture)),airplay:xn.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){var t=en(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(vr).includes(n)&&(n+='; codecs="'.concat(vr[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(mr=document.createElement("input"),mr.type="range","range"===mr.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==fr,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},br={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(t){return yr.mime.call(e,t.getAttribute("type"))}):[]},getQualityOptions:function(){return br.getSources.call(this).map(function(e){return Number(e.getAttribute("size"))}).filter(Boolean)},extend:function(){if(this.isHTML5){var e=this;Object.defineProperty(e.media,"quality",{get:function(){var t=br.getSources.call(e).find(function(t){return t.getAttribute("src")===e.source});return t&&Number(t.getAttribute("size"))},set:function(t){var n=br.getSources.call(e).find(function(e){return Number(e.getAttribute("size"))===t});if(n){var i=e.media,r=i.currentTime,o=i.paused,s=i.preload,a=i.readyState;e.media.src=n.getAttribute("src"),("none"!==s||a)&&(e.once("loadedmetadata",function(){e.currentTime=r,o||e.play()}),e.media.load()),Xi.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(er(br.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function wr(e,