Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

13 linhas
153 KiB

  1. /*!
  2. * MediaElement.js
  3. * http://www.mediaelementjs.com/
  4. *
  5. * Wrapper that mimics native HTML5 MediaElement (audio and video)
  6. * using a variety of technologies (pure JavaScript, Flash, iframe)
  7. *
  8. * Copyright 2010-2017, John Dyer (http://j.hn/)
  9. * License: MIT
  10. *
  11. */(function S(X,b,k){function L(_,w){if(!b[_]){if(!X[_]){var m=typeof require=="function"&&require;if(!w&&m)return m(_,!0);if(E)return E(_,!0);var f=new Error("Cannot find module '"+_+"'");throw f.code="MODULE_NOT_FOUND",f}var l=b[_]={exports:{}};X[_][0].call(l.exports,function(a){var n=X[_][1][a];return L(n||a)},l,l.exports,S,X,b,k)}return b[_].exports}for(var E=typeof require=="function"&&require,T=0;T<k.length;T++)L(k[T]);return L})({1:[function(S,X,b){},{}],2:[function(S,X,b){(function(k){var L,E=k!==void 0?k:typeof window<"u"?window:{},T=S(1);typeof document<"u"?L=document:(L=E["__GLOBAL_DOCUMENT_CACHE@4"])||(L=E["__GLOBAL_DOCUMENT_CACHE@4"]=T),X.exports=L}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{1:1}],3:[function(S,X,b){(function(k){var L;L=typeof window<"u"?window:k!==void 0?k:typeof self<"u"?self:{},X.exports=L}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],4:[function(S,X,b){(function(k){var L=setTimeout;function E(){}function T(a){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof a!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(a,this)}function _(a,n){for(;a._state===3;)a=a._value;a._state!==0?(a._handled=!0,T._immediateFn(function(){var i=a._state===1?n.onFulfilled:n.onRejected;if(i!==null){var u;try{u=i(a._value)}catch(d){return void m(n.promise,d)}w(n.promise,u)}else(a._state===1?w:m)(n.promise,a._value)})):a._deferreds.push(n)}function w(a,n){try{if(n===a)throw new TypeError("A promise cannot be resolved with itself.");if(n&&(typeof n=="object"||typeof n=="function")){var i=n.then;if(n instanceof T)return a._state=3,a._value=n,void f(a);if(typeof i=="function")return void l((u=i,d=n,function(){u.apply(d,arguments)}),a)}a._state=1,a._value=n,f(a)}catch(v){m(a,v)}var u,d}function m(a,n){a._state=2,a._value=n,f(a)}function f(a){a._state===2&&a._deferreds.length===0&&T._immediateFn(function(){a._handled||T._unhandledRejectionFn(a._value)});for(var n=0,i=a._deferreds.length;n<i;n++)_(a,a._deferreds[n]);a._deferreds=null}function l(a,n){var i=!1;try{a(function(u){i||(i=!0,w(n,u))},function(u){i||(i=!0,m(n,u))})}catch(u){if(i)return;i=!0,m(n,u)}}T.prototype.catch=function(a){return this.then(null,a)},T.prototype.then=function(a,n){var i=new this.constructor(E);return _(this,new function(u,d,v){this.onFulfilled=typeof u=="function"?u:null,this.onRejected=typeof d=="function"?d:null,this.promise=v}(a,n,i)),i},T.all=function(a){var n=Array.prototype.slice.call(a);return new T(function(i,u){if(n.length===0)return i([]);var d=n.length;function v(g,e){try{if(e&&(typeof e=="object"||typeof e=="function")){var o=e.then;if(typeof o=="function")return void o.call(e,function(t){v(g,t)},u)}n[g]=e,--d==0&&i(n)}catch(t){u(t)}}for(var r=0;r<n.length;r++)v(r,n[r])})},T.resolve=function(a){return a&&typeof a=="object"&&a.constructor===T?a:new T(function(n){n(a)})},T.reject=function(a){return new T(function(n,i){i(a)})},T.race=function(a){return new T(function(n,i){for(var u=0,d=a.length;u<d;u++)a[u].then(n,i)})},T._immediateFn=typeof setImmediate=="function"&&function(a){setImmediate(a)}||function(a){L(a,0)},T._unhandledRejectionFn=function(a){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",a)},T._setImmediateFn=function(a){T._immediateFn=a},T._setUnhandledRejectionFn=function(a){T._unhandledRejectionFn=a},X!==void 0&&X.exports?X.exports=T:k.Promise||(k.Promise=T)})(this)},{}],5:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0});var k,L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},E=S(7),T=(k=E)&&k.__esModule?k:{default:k},_=S(15),w=S(27),m={lang:"en",en:_.EN,language:function(){for(var f=arguments.length,l=Array(f),a=0;a<f;a++)l[a]=arguments[a];if(l!=null&&l.length){if(typeof l[0]!="string")throw new TypeError("Language code must be a string value");if(!/^[a-z]{2,3}((\-|_)[a-z]{2})?$/i.test(l[0]))throw new TypeError("Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters");m.lang=l[0],m[l[0]]===void 0?(l[1]=l[1]!==null&&l[1]!==void 0&&L(l[1])==="object"?l[1]:{},m[l[0]]=(0,w.isObjectEmpty)(l[1])?_.EN:l[1]):l[1]!==null&&l[1]!==void 0&&L(l[1])==="object"&&(m[l[0]]=l[1])}return m.lang},t:function(f){var l=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null;if(typeof f=="string"&&f.length){var a=void 0,n=void 0,i=m.language(),u=function(d,v,r){return(d===void 0?"undefined":L(d))!=="object"||typeof v!="number"||typeof r!="number"?d:[function(){return arguments.length<=1?void 0:arguments[1]},function(){return(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])===0||(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])!==0?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])===1||(arguments.length<=0?void 0:arguments[0])===11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])===2||(arguments.length<=0?void 0:arguments[0])===12?arguments.length<=2?void 0:arguments[2]:2<(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])===0||0<(arguments.length<=0?void 0:arguments[0])%100&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])%10&&((arguments.length<=0?void 0:arguments[0])%100<10||20<=(arguments.length<=0?void 0:arguments[0])%100)?arguments.length<=2?void 0:arguments[2]:[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])%10&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||20<=(arguments.length<=0?void 0:arguments[0])%100)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])<=4?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])%10&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||20<=(arguments.length<=0?void 0:arguments[0])%100)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%100==1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100==2?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100==3||(arguments.length<=0?void 0:arguments[0])%100==4?arguments.length<=4?void 0:arguments[4]:arguments.length<=1?void 0:arguments[1]},function(){return(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])===2?arguments.length<=2?void 0:arguments[2]:2<(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])<7?arguments.length<=3?void 0:arguments[3]:6<(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])<11?arguments.length<=4?void 0:arguments[4]:arguments.length<=5?void 0:arguments[5]},function(){return(arguments.length<=0?void 0:arguments[0])===0?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])===2?arguments.length<=3?void 0:arguments[3]:3<=(arguments.length<=0?void 0:arguments[0])%100&&(arguments.length<=0?void 0:arguments[0])%100<=10?arguments.length<=4?void 0:arguments[4]:11<=(arguments.length<=0?void 0:arguments[0])%100?arguments.length<=5?void 0:arguments[5]:arguments.length<=6?void 0:arguments[6]},function(){return(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])===0||1<(arguments.length<=0?void 0:arguments[0])%100&&(arguments.length<=0?void 0:arguments[0])%100<11?arguments.length<=2?void 0:arguments[2]:10<(arguments.length<=0?void 0:arguments[0])%100&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10==2?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])!==11&&(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])%10&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||20<=(arguments.length<=0?void 0:arguments[0])%100)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])===2?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])!==8&&(arguments.length<=0?void 0:arguments[0])!==11?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])===0?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])===2?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])===3?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])===0?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])===1?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]}][r].apply(null,[v].concat(d))};return m[i]!==void 0&&(a=m[i][f],l!==null&&typeof l=="number"&&(n=m[i]["mejs.plural-form"],a=u.apply(null,[a,l,n]))),!a&&m.en&&(a=m.en[f],l!==null&&typeof l=="number"&&(n=m.en["mejs.plural-form"],a=u.apply(null,[a,l,n]))),a=a||f,l!==null&&typeof l=="number"&&(a=a.replace("%1",l)),(0,w.escapeHTML)(a)}return f}};T.default.i18n=m,typeof mejsL10n<"u"&&T.default.i18n.language(mejsL10n.language,mejsL10n.strings),b.default=m},{15:15,27:27,7:7}],6:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0});var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},L=l(S(3)),E=l(S(2)),T=l(S(7)),_=S(27),w=S(28),m=S(8),f=S(25);function l(n){return n&&n.__esModule?n:{default:n}}var a=function n(i,u,d){var v=this;(function(I,H){if(!(I instanceof H))throw new TypeError("Cannot call a class as a function")})(this,n);var r=this;d=Array.isArray(d)?d:null,r.defaults={renderers:[],fakeNodeName:"mediaelementwrapper",pluginPath:"build/",shimScriptAccess:"sameDomain"},u=Object.assign(r.defaults,u),r.mediaElement=E.default.createElement(u.fakeNodeName);var g=i,e=!1;if(typeof i=="string"?r.mediaElement.originalNode=E.default.getElementById(i):g=(r.mediaElement.originalNode=i).id,r.mediaElement.originalNode===void 0||r.mediaElement.originalNode===null)return null;r.mediaElement.options=u,g=g||"mejs_"+Math.random().toString().slice(2),r.mediaElement.originalNode.setAttribute("id",g+"_from_mejs");var o=r.mediaElement.originalNode.tagName.toLowerCase();-1<["video","audio"].indexOf(o)&&!r.mediaElement.originalNode.getAttribute("preload")&&r.mediaElement.originalNode.setAttribute("preload","none"),r.mediaElement.originalNode.parentNode.insertBefore(r.mediaElement,r.mediaElement.originalNode),r.mediaElement.appendChild(r.mediaElement.originalNode);var t=function(I,H){if(L.default.location.protocol==="https:"&&I.indexOf("http:")===0&&f.IS_IOS&&-1<T.default.html5media.mediaTypes.indexOf(H)){var N=new XMLHttpRequest;N.onreadystatechange=function(){if(this.readyState===4&&this.status===200){var U=(L.default.URL||L.default.webkitURL).createObjectURL(this.response);return r.mediaElement.originalNode.setAttribute("src",U),U}return I},N.open("GET",I),N.responseType="blob",N.send()}return I},s=void 0;if(d!==null)s=d;else if(r.mediaElement.originalNode!==null)switch(s=[],r.mediaElement.originalNode.nodeName.toLowerCase()){case"iframe":s.push({type:"",src:r.mediaElement.originalNode.getAttribute("src")});break;case"audio":case"video":var c=r.mediaElement.originalNode.children.length,p=r.mediaElement.originalNode.getAttribute("src");if(p){var C=r.mediaElement.originalNode,h=(0,w.formatType)(p,C.getAttribute("type"));s.push({type:h,src:t(p,h)})}for(var x=0;x<c;x++){var y=r.mediaElement.originalNode.children[x];if(y.tagName.toLowerCase()==="source"){var F=y.getAttribute("src"),D=(0,w.formatType)(F,y.getAttribute("type"));s.push({type:D,src:t(F,D)})}}}r.mediaElement.id=g,r.mediaElement.renderers={},r.mediaElement.events={},r.mediaElement.promises=[],r.mediaElement.renderer=null,r.mediaElement.rendererName=null,r.mediaElement.changeRenderer=function(I,H){var N=v,U=2<Object.keys(H[0]).length?H[0]:H[0].src;if(N.mediaElement.renderer!==void 0&&N.mediaElement.renderer!==null&&N.mediaElement.renderer.name===I)return N.mediaElement.renderer.pause(),N.mediaElement.renderer.stop&&N.mediaElement.renderer.stop(),N.mediaElement.renderer.show(),N.mediaElement.renderer.setSrc(U),!0;N.mediaElement.renderer!==void 0&&N.mediaElement.renderer!==null&&(N.mediaElement.renderer.pause(),N.mediaElement.renderer.stop&&N.mediaElement.renderer.stop(),N.mediaElement.renderer.hide());var B=N.mediaElement.renderers[I],G=null;if(B!=null)return B.show(),B.setSrc(U),N.mediaElement.renderer=B,N.mediaElement.rendererName=I,!0;for(var Z=N.mediaElement.options.renderers.length?N.mediaElement.options.renderers:m.renderer.order,Q=0,J=Z.length;Q<J;Q++){var ee=Z[Q];if(ee===I){G=m.renderer.renderers[ee];var te=Object.assign(G.options,N.mediaElement.options);return(B=G.create(N.mediaElement,te,H)).name=I,N.mediaElement.renderers[G.name]=B,N.mediaElement.renderer=B,N.mediaElement.rendererName=I,B.show(),!0}}return!1},r.mediaElement.setSize=function(I,H){r.mediaElement.renderer!==void 0&&r.mediaElement.renderer!==null&&r.mediaElement.renderer.setSize(I,H)},r.mediaElement.generateError=function(I,H){I=I||"",H=Array.isArray(H)?H:[];var N=(0,_.createEvent)("error",r.mediaElement);N.message=I,N.urls=H,r.mediaElement.dispatchEvent(N),e=!0};var M=T.default.html5media.properties,P=T.default.html5media.methods,A=function(I,H,N,U){var B=I[H];Object.defineProperty(I,H,{get:function(){return N.apply(I,[B])},set:function(G){return B=U.apply(I,[G])}})},O=function(I){if(I!=="src"){var H=""+I.substring(0,1).toUpperCase()+I.substring(1),N=function(){return r.mediaElement.renderer!==void 0&&r.mediaElement.renderer!==null&&typeof r.mediaElement.renderer["get"+H]=="function"?r.mediaElement.renderer["get"+H]():null},U=function(B){r.mediaElement.renderer!==void 0&&r.mediaElement.renderer!==null&&typeof r.mediaElement.renderer["set"+H]=="function"&&r.mediaElement.renderer["set"+H](B)};A(r.mediaElement,I,N,U),r.mediaElement["get"+H]=N,r.mediaElement["set"+H]=U}},j=function(){return r.mediaElement.renderer!==void 0&&r.mediaElement.renderer!==null?r.mediaElement.renderer.getSrc():null},R=function(I){var H=[];if(typeof I=="string")H.push({src:I,type:I?(0,w.getTypeFromFile)(I):""});else if((I===void 0?"undefined":k(I))==="object"&&I.src!==void 0){var N=(0,w.absolutizeUrl)(I.src),U=I.type,B=Object.assign(I,{src:N,type:U!==""&&U!=null||!N?U:(0,w.getTypeFromFile)(N)});H.push(B)}else if(Array.isArray(I))for(var G=0,Z=I.length;G<Z;G++){var Q=(0,w.absolutizeUrl)(I[G].src),J=I[G].type,ee=Object.assign(I[G],{src:Q,type:J!==""&&J!=null||!Q?J:(0,w.getTypeFromFile)(Q)});H.push(ee)}var te=m.renderer.select(H,r.mediaElement.options.renderers.length?r.mediaElement.options.renderers:[]),ne=void 0;if(r.mediaElement.paused||(r.mediaElement.pause(),ne=(0,_.createEvent)("pause",r.mediaElement),r.mediaElement.dispatchEvent(ne)),r.mediaElement.originalNode.src=H[0].src||"",te!==null||!H[0].src)return H[0].src?r.mediaElement.changeRenderer(te.rendererName,H):null;r.mediaElement.generateError("No renderer found",H)},V=function(I,H){try{if(I!=="play"||r.mediaElement.rendererName!=="native_dash"&&r.mediaElement.rendererName!=="native_hls")r.mediaElement.renderer[I](H);else{var N=r.mediaElement.renderer[I](H);N&&typeof N.then=="function"&&N.catch(function(){r.mediaElement.paused&&setTimeout(function(){var U=r.mediaElement.renderer.play();U!==void 0&&U.catch(function(){r.mediaElement.renderer.paused||r.mediaElement.renderer.pause()})},150)})}}catch(U){r.mediaElement.generateError(U,s)}},q=function(I){r.mediaElement[I]=function(){for(var H=arguments.length,N=Array(H),U=0;U<H;U++)N[U]=arguments[U];return r.mediaElement.renderer!==void 0&&r.mediaElement.renderer!==null&&typeof r.mediaElement.renderer[I]=="function"&&(r.mediaElement.promises.length?Promise.all(r.mediaElement.promises).then(function(){V(I,N)}).catch(function(B){r.mediaElement.generateError(B,s)}):V(I,N)),null}};A(r.mediaElement,"src",j,R),r.mediaElement.getSrc=j,r.mediaElement.setSrc=R;for(var Y=0,W=M.length;Y<W;Y++)O(M[Y]);for(var z=0,K=P.length;z<K;z++)q(P[z]);return r.mediaElement.addEventListener=function(I,H){r.mediaElement.events[I]=r.mediaElement.events[I]||[],r.mediaElement.events[I].push(H)},r.mediaElement.removeEventListener=function(I,H){if(!I)return r.mediaElement.events={},!0;var N=r.mediaElement.events[I];if(!N)return!0;if(!H)return r.mediaElement.events[I]=[],!0;for(var U=0;U<N.length;U++)if(N[U]===H)return r.mediaElement.events[I].splice(U,1),!0;return!1},r.mediaElement.dispatchEvent=function(I){var H=r.mediaElement.events[I.type];if(H)for(var N=0;N<H.length;N++)H[N].apply(null,[I])},r.mediaElement.destroy=function(){var I=r.mediaElement.originalNode.cloneNode(!0),H=r.mediaElement.parentElement;I.removeAttribute("id"),I.remove(),r.mediaElement.remove(),H.appendChild(I)},s.length&&(r.mediaElement.src=s),r.mediaElement.promises.length?Promise.all(r.mediaElement.promises).then(function(){r.mediaElement.options.success&&r.mediaElement.options.success(r.mediaElement,r.mediaElement.originalNode)}).catch(function(){e&&r.mediaElement.options.error&&r.mediaElement.options.error(r.mediaElement,r.mediaElement.originalNode)}):(r.mediaElement.options.success&&r.mediaElement.options.success(r.mediaElement,r.mediaElement.originalNode),e&&r.mediaElement.options.error&&r.mediaElement.options.error(r.mediaElement,r.mediaElement.originalNode)),r.mediaElement};L.default.MediaElement=a,T.default.MediaElement=a,b.default=a},{2:2,25:25,27:27,28:28,3:3,7:7,8:8}],7:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0});var k,L=S(3),E={version:"4.2.12",html5media:{properties:["volume","src","currentTime","muted","duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable","currentSrc","preload","bufferedBytes","bufferedTime","initialTime","startOffsetTime","defaultPlaybackRate","playbackRate","played","autoplay","loop","controls"],readOnlyProperties:["duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable"],methods:["load","play","pause","canPlayType"],events:["loadstart","durationchange","loadedmetadata","loadeddata","progress","canplay","canplaythrough","suspend","abort","error","emptied","stalled","play","playing","pause","waiting","seeking","seeked","timeupdate","ended","ratechange","volumechange"],mediaTypes:["audio/mp3","audio/ogg","audio/oga","audio/wav","audio/x-wav","audio/wave","audio/x-pn-wav","audio/mpeg","audio/mp4","video/mp4","video/webm","video/ogg","video/ogv"]}};((k=L)&&k.__esModule?k:{default:k}).default.mejs=E,b.default=E},{3:3}],8:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.renderer=void 0;var k,L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},E=function(){function f(l,a){for(var n=0;n<a.length;n++){var i=a[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,n){return a&&f(l.prototype,a),n&&f(l,n),l}}(),T=S(7),_=(k=T)&&k.__esModule?k:{default:k},w=function(){function f(){(function(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")})(this,f),this.renderers={},this.order=[]}return E(f,[{key:"add",value:function(l){if(l.name===void 0)throw new TypeError("renderer must contain at least `name` property");this.renderers[l.name]=l,this.order.push(l.name)}},{key:"select",value:function(l){var a=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n=a.length;if(a=a.length?a:this.order,!n){var i=[/^(html5|native)/i,/^flash/i,/iframe$/i],u=function(t){for(var s=0,c=i.length;s<c;s++)if(i[s].test(t))return s;return i.length};a.sort(function(t,s){return u(t)-u(s)})}for(var d=0,v=a.length;d<v;d++){var r=a[d],g=this.renderers[r];if(g!=null){for(var e=0,o=l.length;e<o;e++)if(typeof g.canPlayType=="function"&&typeof l[e].type=="string"&&g.canPlayType(l[e].type))return{rendererName:g.name,src:l[e].src}}}return null}},{key:"order",set:function(l){if(!Array.isArray(l))throw new TypeError("order must be an array of strings.");this._order=l},get:function(){return this._order}},{key:"renderers",set:function(l){if(l!==null&&(l===void 0?"undefined":L(l))!=="object")throw new TypeError("renderers must be an array of objects.");this._renderers=l},get:function(){return this._renderers}}]),f}(),m=b.renderer=new w;_.default.Renderers=m},{7:7}],9:[function(S,X,b){var k=a(S(3)),L=a(S(2)),E=a(S(5)),T=S(16),_=a(T),w=function(n){{if(n&&n.__esModule)return n;var i={};if(n!=null)for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(i[u]=n[u]);return i.default=n,i}}(S(25)),m=S(27),f=S(26),l=S(28);function a(n){return n&&n.__esModule?n:{default:n}}Object.assign(T.config,{usePluginFullScreen:!0,fullscreenText:null,useFakeFullscreen:!1}),Object.assign(_.default.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,isPluginClickThroughCreated:!1,fullscreenMode:"",containerSizeTimeout:null,buildfullscreen:function(n){if(n.isVideo){n.isInIframe=k.default.location!==k.default.parent.location,n.detectFullscreenMode();var i=this,u=(0,m.isString)(i.options.fullscreenText)?i.options.fullscreenText:E.default.t("mejs.fullscreen"),d=L.default.createElement("div");d.className=i.options.classPrefix+"button "+i.options.classPrefix+"fullscreen-button",d.innerHTML='<button type="button" aria-controls="'+i.id+'" title="'+u+'" aria-label="'+u+'" tabindex="0"></button>',i.addControlElement(d,"fullscreen"),d.addEventListener("click",function(){w.HAS_TRUE_NATIVE_FULLSCREEN&&w.IS_FULLSCREEN||n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}),n.fullscreenBtn=d,i.options.keyActions.push({keys:[70],action:function(v,r,g,e){e.ctrlKey||v.enterFullScreen!==void 0&&(v.isFullScreen?v.exitFullScreen():v.enterFullScreen())}}),i.exitFullscreenCallback=function(v){var r=v.which||v.keyCode||0;i.options.enableKeyboard&&r===27&&(w.HAS_TRUE_NATIVE_FULLSCREEN&&w.IS_FULLSCREEN||i.isFullScreen)&&n.exitFullScreen()},i.globalBind("keydown",i.exitFullscreenCallback),i.normalHeight=0,i.normalWidth=0,w.HAS_TRUE_NATIVE_FULLSCREEN&&n.globalBind(w.FULLSCREEN_EVENT_NAME,function(){n.isFullScreen&&(w.isFullScreen()?(n.isNativeFullScreen=!0,n.setControlsSize()):(n.isNativeFullScreen=!1,n.exitFullScreen()))})}},cleanfullscreen:function(n){n.exitFullScreen(),n.globalUnbind("keydown",n.exitFullscreenCallback)},detectFullscreenMode:function(){var n=this.media.rendererName!==null&&/(native|html5)/i.test(this.media.rendererName),i="";return w.HAS_TRUE_NATIVE_FULLSCREEN&&n?i="native-native":w.HAS_TRUE_NATIVE_FULLSCREEN&&!n?i="plugin-native":this.usePluginFullScreen&&w.SUPPORT_POINTER_EVENTS&&(i="plugin-click"),this.fullscreenMode=i},enterFullScreen:function(){var n=this,i=n.media.rendererName!==null&&/(html5|native)/i.test(n.media.rendererName),u=getComputedStyle(n.getElement(n.container));if(n.isVideo)if(n.options.useFakeFullscreen===!1&&w.IS_IOS&&w.HAS_IOS_FULLSCREEN&&typeof n.media.originalNode.webkitEnterFullscreen=="function"&&n.media.originalNode.canPlayType((0,l.getTypeFromFile)(n.media.getSrc())))n.media.originalNode.webkitEnterFullscreen();else{if((0,f.addClass)(L.default.documentElement,n.options.classPrefix+"fullscreen"),(0,f.addClass)(n.getElement(n.container),n.options.classPrefix+"container-fullscreen"),n.normalHeight=parseFloat(u.height),n.normalWidth=parseFloat(u.width),n.fullscreenMode!=="native-native"&&n.fullscreenMode!=="plugin-native"||(w.requestFullScreen(n.getElement(n.container)),n.isInIframe&&setTimeout(function p(){if(n.isNativeFullScreen){var C=k.default.innerWidth||L.default.documentElement.clientWidth||L.default.body.clientWidth,h=screen.width;.002*h<Math.abs(h-C)?n.exitFullScreen():setTimeout(p,500)}},1e3)),n.getElement(n.container).style.width="100%",n.getElement(n.container).style.height="100%",n.containerSizeTimeout=setTimeout(function(){n.getElement(n.container).style.width="100%",n.getElement(n.container).style.height="100%",n.setControlsSize()},500),i)n.node.style.width="100%",n.node.style.height="100%";else for(var d=n.getElement(n.container).querySelectorAll("embed, object, video"),v=d.length,r=0;r<v;r++)d[r].style.width="100%",d[r].style.height="100%";n.options.setDimensions&&typeof n.media.setSize=="function"&&n.media.setSize(screen.width,screen.height);for(var g=n.getElement(n.layers).children,e=g.length,o=0;o<e;o++)g[o].style.width="100%",g[o].style.height="100%";n.fullscreenBtn&&((0,f.removeClass)(n.fullscreenBtn,n.options.classPrefix+"fullscreen"),(0,f.addClass)(n.fullscreenBtn,n.options.classPrefix+"unfullscreen")),n.setControlsSize(),n.isFullScreen=!0;var t=Math.min(screen.width/n.width,screen.height/n.height),s=n.getElement(n.container).querySelector("."+n.options.classPrefix+"captions-text");s&&(s.style.fontSize=100*t+"%",s.style.lineHeight="normal",n.getElement(n.container).querySelector("."+n.options.classPrefix+"captions-position").style.bottom=(screen.height-n.normalHeight)/2-n.getElement(n.controls).offsetHeight/2+t+15+"px");var c=(0,m.createEvent)("enteredfullscreen",n.getElement(n.container));n.getElement(n.container).dispatchEvent(c)}},exitFullScreen:function(){var n=this,i=n.media.rendererName!==null&&/(native|html5)/i.test(n.media.rendererName);if(n.isVideo){if(clearTimeout(n.containerSizeTimeout),w.HAS_TRUE_NATIVE_FULLSCREEN&&(w.IS_FULLSCREEN||n.isFullScreen)&&w.cancelFullScreen(),(0,f.removeClass)(L.default.documentElement,n.options.classPrefix+"fullscreen"),(0,f.removeClass)(n.getElement(n.container),n.options.classPrefix+"container-fullscreen"),n.options.setDimensions){if(n.getElement(n.container).style.width=n.normalWidth+"px",n.getElement(n.container).style.height=n.normalHeight+"px",i)n.node.style.width=n.normalWidth+"px",n.node.style.height=n.normalHeight+"px";else for(var u=n.getElement(n.container).querySelectorAll("embed, object, video"),d=u.length,v=0;v<d;v++)u[v].style.width=n.normalWidth+"px",u[v].style.height=n.normalHeight+"px";typeof n.media.setSize=="function"&&n.media.setSize(n.normalWidth,n.normalHeight);for(var r=n.getElement(n.layers).children,g=r.length,e=0;e<g;e++)r[e].style.width=n.normalWidth+"px",r[e].style.height=n.normalHeight+"px"}n.fullscreenBtn&&((0,f.removeClass)(n.fullscreenBtn,n.options.classPrefix+"unfullscreen"),(0,f.addClass)(n.fullscreenBtn,n.options.classPrefix+"fullscreen")),n.setControlsSize(),n.isFullScreen=!1;var o=n.getElement(n.container).querySelector("."+n.options.classPrefix+"captions-text");o&&(o.style.fontSize="",o.style.lineHeight="",n.getElement(n.container).querySelector("."+n.options.classPrefix+"captions-position").style.bottom="");var t=(0,m.createEvent)("exitedfullscreen",n.getElement(n.container));n.getElement(n.container).dispatchEvent(t)}}})},{16:16,2:2,25:25,26:26,27:27,28:28,3:3,5:5}],10:[function(S,X,b){var k=m(S(2)),L=S(16),E=m(L),T=m(S(5)),_=S(27),w=S(26);function m(f){return f&&f.__esModule?f:{default:f}}Object.assign(L.config,{playText:null,pauseText:null}),Object.assign(E.default.prototype,{buildplaypause:function(f,l,a,n){var i=this,u=i.options,d=(0,_.isString)(u.playText)?u.playText:T.default.t("mejs.play"),v=(0,_.isString)(u.pauseText)?u.pauseText:T.default.t("mejs.pause"),r=k.default.createElement("div");r.className=i.options.classPrefix+"button "+i.options.classPrefix+"playpause-button "+i.options.classPrefix+"play",r.innerHTML='<button type="button" aria-controls="'+i.id+'" title="'+d+'" aria-label="'+v+'" tabindex="0"></button>',r.addEventListener("click",function(){i.paused?i.play():i.pause()});var g=r.querySelector("button");function e(o){o==="play"?((0,w.removeClass)(r,i.options.classPrefix+"play"),(0,w.removeClass)(r,i.options.classPrefix+"replay"),(0,w.addClass)(r,i.options.classPrefix+"pause"),g.setAttribute("title",v),g.setAttribute("aria-label",v)):((0,w.removeClass)(r,i.options.classPrefix+"pause"),(0,w.removeClass)(r,i.options.classPrefix+"replay"),(0,w.addClass)(r,i.options.classPrefix+"play"),g.setAttribute("title",d),g.setAttribute("aria-label",d))}i.addControlElement(r,"playpause"),e("pse"),n.addEventListener("loadedmetadata",function(){n.rendererName.indexOf("flash")===-1&&e("pse")}),n.addEventListener("play",function(){e("play")}),n.addEventListener("playing",function(){e("play")}),n.addEventListener("pause",function(){e("pse")}),n.addEventListener("ended",function(){f.options.loop||((0,w.removeClass)(r,i.options.classPrefix+"pause"),(0,w.removeClass)(r,i.options.classPrefix+"play"),(0,w.addClass)(r,i.options.classPrefix+"replay"),g.setAttribute("title",d),g.setAttribute("aria-label",d))})}})},{16:16,2:2,26:26,27:27,5:5}],11:[function(S,X,b){var k=f(S(2)),L=S(16),E=f(L),T=f(S(5)),_=S(25),w=S(30),m=S(26);function f(l){return l&&l.__esModule?l:{default:l}}Object.assign(L.config,{enableProgressTooltip:!0,useSmoothHover:!0,forceLive:!1}),Object.assign(E.default.prototype,{buildprogress:function(l,a,n,i){var u=0,d=!1,v=!1,r=this,g=l.options.autoRewind,e=l.options.enableProgressTooltip?'<span class="'+r.options.classPrefix+'time-float"><span class="'+r.options.classPrefix+'time-float-current">00:00</span><span class="'+r.options.classPrefix+'time-float-corner"></span></span>':"",o=k.default.createElement("div");o.className=r.options.classPrefix+"time-rail",o.innerHTML='<span class="'+r.options.classPrefix+"time-total "+r.options.classPrefix+'time-slider"><span class="'+r.options.classPrefix+'time-buffering"></span><span class="'+r.options.classPrefix+'time-loaded"></span><span class="'+r.options.classPrefix+'time-current"></span><span class="'+r.options.classPrefix+'time-hovered no-hover"></span><span class="'+r.options.classPrefix+'time-handle"><span class="'+r.options.classPrefix+'time-handle-content"></span></span>'+e+"</span>",r.addControlElement(o,"progress"),r.options.keyActions.push({keys:[37,227],action:function(h){if(!isNaN(h.duration)&&0<h.duration){h.isVideo&&(h.showControls(),h.startControlsTimer());var x=h.getElement(h.container).querySelector("."+_player.config.classPrefix+"time-total");x&&x.focus();var y=Math.max(h.currentTime-h.options.defaultSeekBackwardInterval(h),0);h.setCurrentTime(y)}}},{keys:[39,228],action:function(h){if(!isNaN(h.duration)&&0<h.duration){h.isVideo&&(h.showControls(),h.startControlsTimer());var x=h.getElement(h.container).querySelector("."+_player.config.classPrefix+"time-total");x&&x.focus();var y=Math.min(h.currentTime+h.options.defaultSeekForwardInterval(h),h.duration);h.setCurrentTime(y)}}}),r.rail=a.querySelector("."+r.options.classPrefix+"time-rail"),r.total=a.querySelector("."+r.options.classPrefix+"time-total"),r.loaded=a.querySelector("."+r.options.classPrefix+"time-loaded"),r.current=a.querySelector("."+r.options.classPrefix+"time-current"),r.handle=a.querySelector("."+r.options.classPrefix+"time-handle"),r.timefloat=a.querySelector("."+r.options.classPrefix+"time-float"),r.timefloatcurrent=a.querySelector("."+r.options.classPrefix+"time-float-current"),r.slider=a.querySelector("."+r.options.classPrefix+"time-slider"),r.hovered=a.querySelector("."+r.options.classPrefix+"time-hovered"),r.buffer=a.querySelector("."+r.options.classPrefix+"time-buffering"),r.newTime=0,r.forcedHandlePause=!1,r.setTransformStyle=function(h,x){h.style.transform=x,h.style.webkitTransform=x,h.style.MozTransform=x,h.style.msTransform=x,h.style.OTransform=x},r.buffer.style.display="none";var t=function(h){var x=getComputedStyle(r.total),y=(0,m.offset)(r.total),F=r.total.offsetWidth,D=x.webkitTransform!==void 0?"webkitTransform":x.mozTransform!==void 0?"mozTransform ":x.oTransform!==void 0?"oTransform":x.msTransform!==void 0?"msTransform":"transform",M="WebKitCSSMatrix"in window?"WebKitCSSMatrix":"MSCSSMatrix"in window?"MSCSSMatrix":"CSSMatrix"in window?"CSSMatrix":void 0,P=0,A=0,O=0,j=void 0;if(j=h.originalEvent&&h.originalEvent.changedTouches?h.originalEvent.changedTouches[0].pageX:h.changedTouches?h.changedTouches[0].pageX:h.pageX,r.getDuration()){if(j<y.left?j=y.left:j>F+y.left&&(j=F+y.left),P=(O=j-y.left)/F,r.newTime=P*r.getDuration(),d&&r.getCurrentTime()!==null&&r.newTime.toFixed(4)!==r.getCurrentTime().toFixed(4)&&(r.setCurrentRailHandle(r.newTime),r.updateCurrent(r.newTime)),!_.IS_IOS&&!_.IS_ANDROID){if(O<0&&(O=0),r.options.useSmoothHover&&M!==null&&window[M]!==void 0){var R=new window[M](getComputedStyle(r.handle)[D]).m41,V=O/parseFloat(getComputedStyle(r.total).width)-R/parseFloat(getComputedStyle(r.total).width);r.hovered.style.left=R+"px",r.setTransformStyle(r.hovered,"scaleX("+V+")"),r.hovered.setAttribute("pos",O),0<=V?(0,m.removeClass)(r.hovered,"negative"):(0,m.addClass)(r.hovered,"negative")}if(r.timefloat){var q=r.timefloat.offsetWidth/2,Y=mejs.Utils.offset(r.getElement(r.container)),W=getComputedStyle(r.timefloat);A=j-Y.left<r.timefloat.offsetWidth?q:j-Y.left>=r.getElement(r.container).offsetWidth-q?r.total.offsetWidth-q:O,(0,m.hasClass)(r.getElement(r.container),r.options.classPrefix+"long-video")&&(A+=parseFloat(W.marginLeft)/2+r.timefloat.offsetWidth/2),r.timefloat.style.left=A+"px",r.timefloatcurrent.innerHTML=(0,w.secondsToTimeCode)(r.newTime,l.options.alwaysShowHours,l.options.showTimecodeFrameCount,l.options.framesPerSecond,l.options.secondsDecimalLength,l.options.timeFormat),r.timefloat.style.display="block"}}}else _.IS_IOS||_.IS_ANDROID||!r.timefloat||(A=r.timefloat.offsetWidth+F>=r.getElement(r.container).offsetWidth?r.timefloat.offsetWidth/2:0,r.timefloat.style.left=A+"px",r.timefloat.style.left=A+"px",r.timefloat.style.display="block")},s=function(){1e3<=new Date-u&&r.play()};r.slider.addEventListener("focus",function(){l.options.autoRewind=!1}),r.slider.addEventListener("blur",function(){l.options.autoRewind=g}),r.slider.addEventListener("keydown",function(h){if(1e3<=new Date-u&&(v=r.paused),r.options.enableKeyboard&&r.options.keyActions.length){var x=h.which||h.keyCode||0,y=r.getDuration(),F=l.options.defaultSeekForwardInterval(i),D=l.options.defaultSeekBackwardInterval(i),M=r.getCurrentTime(),P=r.getElement(r.container).querySelector("."+r.options.classPrefix+"volume-slider");if(x===38||x===40){P&&(P.style.display="block"),r.isVideo&&(r.showControls(),r.startControlsTimer());var A=x===38?Math.min(r.volume+.1,1):Math.max(r.volume-.1,0),O=A<=0;return r.setVolume(A),void r.setMuted(O)}switch(P&&(P.style.display="none"),x){case 37:r.getDuration()!==1/0&&(M-=D);break;case 39:r.getDuration()!==1/0&&(M+=F);break;case 36:M=0;break;case 35:M=y;break;case 13:case 32:return void(_.IS_FIREFOX&&(r.paused?r.play():r.pause()));default:return}M=M<0||isNaN(M)?0:y<=M?y:Math.floor(M),u=new Date,v||l.pause(),M<r.getDuration()&&!v&&setTimeout(s,1100),r.setCurrentTime(M),l.showControls(),h.preventDefault(),h.stopPropagation()}});var c=["mousedown","touchstart"];r.slider.addEventListener("dragstart",function(){return!1});for(var p=0,C=c.length;p<C;p++)r.slider.addEventListener(c[p],function(h){if(r.forcedHandlePause=!1,r.getDuration()!==1/0&&(h.which===1||h.which===0)){r.paused||(r.pause(),r.forcedHandlePause=!0),d=!0,t(h);for(var x=["mouseup","touchend"],y=0,F=x.length;y<F;y++)r.getElement(r.container).addEventListener(x[y],function(D){var M=D.target;(M===r.slider||M.closest("."+r.options.classPrefix+"time-slider"))&&t(D)});r.globalBind("mouseup.dur touchend.dur",function(){d&&r.getCurrentTime()!==null&&r.newTime.toFixed(4)!==r.getCurrentTime().toFixed(4)&&(r.setCurrentTime(r.newTime),r.setCurrentRailHandle(r.newTime),r.updateCurrent(r.newTime)),r.forcedHandlePause&&(r.slider.focus(),r.play()),r.forcedHandlePause=!1,d=!1,r.timefloat&&(r.timefloat.style.display="none")})}},!(!_.SUPPORT_PASSIVE_EVENT||c[p]!=="touchstart")&&{passive:!0});r.slider.addEventListener("mouseenter",function(h){h.target===r.slider&&r.getDuration()!==1/0&&(r.getElement(r.container).addEventListener("mousemove",function(x){var y=x.target;(y===r.slider||y.closest("."+r.options.classPrefix+"time-slider"))&&t(x)}),!r.timefloat||_.IS_IOS||_.IS_ANDROID||(r.timefloat.style.display="block"),r.hovered&&!_.IS_IOS&&!_.IS_ANDROID&&r.options.useSmoothHover&&(0,m.removeClass)(r.hovered,"no-hover"))}),r.slider.addEventListener("mouseleave",function(){r.getDuration()!==1/0&&(d||(r.timefloat&&(r.timefloat.style.display="none"),r.hovered&&r.options.useSmoothHover&&(0,m.addClass)(r.hovered,"no-hover")))}),r.broadcastCallback=function(h){var x,y,F,D,M=a.querySelector("."+r.options.classPrefix+"broadcast");if(r.options.forceLive||r.getDuration()===1/0){if(!M&&r.options.forceLive){var P=k.default.createElement("span");P.className=r.options.classPrefix+"broadcast",P.innerText=T.default.t("mejs.live-broadcast"),r.slider.style.display="none",r.rail.appendChild(P)}}else M&&(r.slider.style.display="",M.remove()),l.setProgressRail(h),r.forcedHandlePause||l.setCurrentRail(h),x=r.getCurrentTime(),y=T.default.t("mejs.time-slider"),F=(0,w.secondsToTimeCode)(x,l.options.alwaysShowHours,l.options.showTimecodeFrameCount,l.options.framesPerSecond,l.options.secondsDecimalLength,l.options.timeFormat),D=r.getDuration(),r.slider.setAttribute("role","slider"),r.slider.tabIndex=0,i.paused?(r.slider.setAttribute("aria-label",y),r.slider.setAttribute("aria-valuemin",0),r.slider.setAttribute("aria-valuemax",isNaN(D)?0:D),r.slider.setAttribute("aria-valuenow",x),r.slider.setAttribute("aria-valuetext",F)):(r.slider.removeAttribute("aria-label"),r.slider.removeAttribute("aria-valuemin"),r.slider.removeAttribute("aria-valuemax"),r.slider.removeAttribute("aria-valuenow"),r.slider.removeAttribute("aria-valuetext"))},i.addEventListener("progress",r.broadcastCallback),i.addEventListener("timeupdate",r.broadcastCallback),i.addEventListener("play",function(){r.buffer.style.display="none"}),i.addEventListener("playing",function(){r.buffer.style.display="none"}),i.addEventListener("seeking",function(){r.buffer.style.display=""}),i.addEventListener("seeked",function(){r.buffer.style.display="none"}),i.addEventListener("pause",function(){r.buffer.style.display="none"}),i.addEventListener("waiting",function(){r.buffer.style.display=""}),i.addEventListener("loadeddata",function(){r.buffer.style.display=""}),i.addEventListener("canplay",function(){r.buffer.style.display="none"}),i.addEventListener("error",function(){r.buffer.style.display="none"}),r.getElement(r.container).addEventListener("controlsresize",function(h){r.getDuration()!==1/0&&(l.setProgressRail(h),r.forcedHandlePause||l.setCurrentRail(h))})},cleanprogress:function(l,a,n,i){i.removeEventListener("progress",l.broadcastCallback),i.removeEventListener("timeupdate",l.broadcastCallback),l.rail&&l.rail.remove()},setProgressRail:function(l){var a=this,n=l!==void 0?l.detail.target||l.target:a.media,i=null;n&&n.buffered&&0<n.buffered.length&&n.buffered.end&&a.getDuration()?i=n.buffered.end(n.buffered.length-1)/a.getDuration():n&&n.bytesTotal!==void 0&&0<n.bytesTotal&&n.bufferedBytes!==void 0?i=n.bufferedBytes/n.bytesTotal:l&&l.lengthComputable&&l.total!==0&&(i=l.loaded/l.total),i!==null&&(i=Math.min(1,Math.max(0,i)),a.loaded&&a.setTransformStyle(a.loaded,"scaleX("+i+")"))},setCurrentRailHandle:function(l){this.setCurrentRailMain(this,l)},setCurrentRail:function(){this.setCurrentRailMain(this)},setCurrentRailMain:function(l,a){if(l.getCurrentTime()!==void 0&&l.getDuration()){var n=a===void 0?l.getCurrentTime():a;if(l.total&&l.handle){var i=parseFloat(getComputedStyle(l.total).width),u=Math.round(i*n/l.getDuration()),d=u-Math.round(l.handle.offsetWidth/2);if(d=d<0?0:d,l.setTransformStyle(l.current,"scaleX("+u/i+")"),l.setTransformStyle(l.handle,"translateX("+d+"px)"),l.options.useSmoothHover&&!(0,m.hasClass)(l.hovered,"no-hover")){var v=parseInt(l.hovered.getAttribute("pos"),10),r=(v=isNaN(v)?0:v)/i-d/i;l.hovered.style.left=d+"px",l.setTransformStyle(l.hovered,"scaleX("+r+")"),0<=r?(0,m.removeClass)(l.hovered,"negative"):(0,m.addClass)(l.hovered,"negative")}}}}})},{16:16,2:2,25:25,26:26,30:30,5:5}],12:[function(S,X,b){var k=w(S(2)),L=S(16),E=w(L),T=S(30),_=S(26);function w(m){return m&&m.__esModule?m:{default:m}}Object.assign(L.config,{duration:0,timeAndDurationSeparator:"<span> | </span>"}),Object.assign(E.default.prototype,{buildcurrent:function(m,f,l,a){var n=this,i=k.default.createElement("div");i.className=n.options.classPrefix+"time",i.setAttribute("role","timer"),i.setAttribute("aria-live","off"),i.innerHTML='<span class="'+n.options.classPrefix+'currenttime">'+(0,T.secondsToTimeCode)(0,m.options.alwaysShowHours,m.options.showTimecodeFrameCount,m.options.framesPerSecond,m.options.secondsDecimalLength,m.options.timeFormat)+"</span>",n.addControlElement(i,"current"),m.updateCurrent(),n.updateTimeCallback=function(){n.controlsAreVisible&&m.updateCurrent()},a.addEventListener("timeupdate",n.updateTimeCallback)},cleancurrent:function(m,f,l,a){a.removeEventListener("timeupdate",m.updateTimeCallback)},buildduration:function(m,f,l,a){var n=this;if(f.lastChild.querySelector("."+n.options.classPrefix+"currenttime"))f.querySelector("."+n.options.classPrefix+"time").innerHTML+=n.options.timeAndDurationSeparator+'<span class="'+n.options.classPrefix+'duration">'+(0,T.secondsToTimeCode)(n.options.duration,n.options.alwaysShowHours,n.options.showTimecodeFrameCount,n.options.framesPerSecond,n.options.secondsDecimalLength,n.options.timeFormat)+"</span>";else{f.querySelector("."+n.options.classPrefix+"currenttime")&&(0,_.addClass)(f.querySelector("."+n.options.classPrefix+"currenttime").parentNode,n.options.classPrefix+"currenttime-container");var i=k.default.createElement("div");i.className=n.options.classPrefix+"time "+n.options.classPrefix+"duration-container",i.innerHTML='<span class="'+n.options.classPrefix+'duration">'+(0,T.secondsToTimeCode)(n.options.duration,n.options.alwaysShowHours,n.options.showTimecodeFrameCount,n.options.framesPerSecond,n.options.secondsDecimalLength,n.options.timeFormat)+"</span>",n.addControlElement(i,"duration")}n.updateDurationCallback=function(){n.controlsAreVisible&&m.updateDuration()},a.addEventListener("timeupdate",n.updateDurationCallback)},cleanduration:function(m,f,l,a){a.removeEventListener("timeupdate",m.updateDurationCallback)},updateCurrent:function(){var m=this,f=m.getCurrentTime();isNaN(f)&&(f=0);var l=(0,T.secondsToTimeCode)(f,m.options.alwaysShowHours,m.options.showTimecodeFrameCount,m.options.framesPerSecond,m.options.secondsDecimalLength,m.options.timeFormat);5<l.length?(0,_.addClass)(m.getElement(m.container),m.options.classPrefix+"long-video"):(0,_.removeClass)(m.getElement(m.container),m.options.classPrefix+"long-video"),m.getElement(m.controls).querySelector("."+m.options.classPrefix+"currenttime")&&(m.getElement(m.controls).querySelector("."+m.options.classPrefix+"currenttime").innerText=l)},updateDuration:function(){var m=this,f=m.getDuration();m.media!==void 0&&(isNaN(f)||f===1/0||f<0)&&(m.media.duration=m.options.duration=f=0),0<m.options.duration&&(f=m.options.duration);var l=(0,T.secondsToTimeCode)(f,m.options.alwaysShowHours,m.options.showTimecodeFrameCount,m.options.framesPerSecond,m.options.secondsDecimalLength,m.options.timeFormat);5<l.length?(0,_.addClass)(m.getElement(m.container),m.options.classPrefix+"long-video"):(0,_.removeClass)(m.getElement(m.container),m.options.classPrefix+"long-video"),m.getElement(m.controls).querySelector("."+m.options.classPrefix+"duration")&&0<f&&(m.getElement(m.controls).querySelector("."+m.options.classPrefix+"duration").innerHTML=l)}})},{16:16,2:2,26:26,30:30}],13:[function(S,X,b){var k=l(S(2)),L=l(S(7)),E=l(S(5)),T=S(16),_=l(T),w=S(30),m=S(27),f=S(26);function l(a){return a&&a.__esModule?a:{default:a}}Object.assign(T.config,{startLanguage:"",tracksText:null,chaptersText:null,tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""}),Object.assign(_.default.prototype,{hasChapters:!1,buildtracks:function(a,n,i,u){if(this.findTracks(),a.tracks.length||a.trackFiles&&!a.trackFiles.length!==0){var d=this,v=d.options.tracksAriaLive?' role="log" aria-live="assertive" aria-atomic="false"':"",r=(0,m.isString)(d.options.tracksText)?d.options.tracksText:E.default.t("mejs.captions-subtitles"),g=(0,m.isString)(d.options.chaptersText)?d.options.chaptersText:E.default.t("mejs.captions-chapters"),e=a.trackFiles===null?a.tracks.length:a.trackFiles.length;if(d.domNode.textTracks)for(var o=d.domNode.textTracks.length-1;0<=o;o--)d.domNode.textTracks[o].mode="hidden";d.cleartracks(a),a.captions=k.default.createElement("div"),a.captions.className=d.options.classPrefix+"captions-layer "+d.options.classPrefix+"layer",a.captions.innerHTML='<div class="'+d.options.classPrefix+"captions-position "+d.options.classPrefix+'captions-position-hover"'+v+'><span class="'+d.options.classPrefix+'captions-text"></span></div>',a.captions.style.display="none",i.insertBefore(a.captions,i.firstChild),a.captionsText=a.captions.querySelector("."+d.options.classPrefix+"captions-text"),a.captionsButton=k.default.createElement("div"),a.captionsButton.className=d.options.classPrefix+"button "+d.options.classPrefix+"captions-button",a.captionsButton.innerHTML='<button type="button" aria-controls="'+d.id+'" title="'+r+'" aria-label="'+r+'" tabindex="0"></button><div class="'+d.options.classPrefix+"captions-selector "+d.options.classPrefix+'offscreen"><ul class="'+d.options.classPrefix+'captions-selector-list"><li class="'+d.options.classPrefix+'captions-selector-list-item"><input type="radio" class="'+d.options.classPrefix+'captions-selector-input" name="'+a.id+'_captions" id="'+a.id+'_captions_none" value="none" checked disabled><label class="'+d.options.classPrefix+"captions-selector-label "+d.options.classPrefix+'captions-selected" for="'+a.id+'_captions_none">'+E.default.t("mejs.none")+"</label></li></ul></div>",d.addControlElement(a.captionsButton,"tracks"),a.captionsButton.querySelector("."+d.options.classPrefix+"captions-selector-input").disabled=!1,a.chaptersButton=k.default.createElement("div"),a.chaptersButton.className=d.options.classPrefix+"button "+d.options.classPrefix+"chapters-button",a.chaptersButton.innerHTML='<button type="button" aria-controls="'+d.id+'" title="'+g+'" aria-label="'+g+'" tabindex="0"></button><div class="'+d.options.classPrefix+"chapters-selector "+d.options.classPrefix+'offscreen"><ul class="'+d.options.classPrefix+'chapters-selector-list"></ul></div>';for(var t=0,s=0;s<e;s++){var c=a.tracks[s].kind;a.tracks[s].src.trim()&&(c==="subtitles"||c==="captions"?t++:c!=="chapters"||n.querySelector("."+d.options.classPrefix+"chapter-selector")||a.captionsButton.parentNode.insertBefore(a.chaptersButton,a.captionsButton))}a.trackToLoad=-1,a.selectedTrack=null,a.isLoadingTrack=!1;for(var p=0;p<e;p++){var C=a.tracks[p].kind;!a.tracks[p].src.trim()||C!=="subtitles"&&C!=="captions"||a.addTrackButton(a.tracks[p].trackId,a.tracks[p].srclang,a.tracks[p].label)}a.loadNextTrack();var h=["mouseenter","focusin"],x=["mouseleave","focusout"];if(d.options.toggleCaptionsButtonWhenOnlyOne&&t===1)a.captionsButton.addEventListener("click",function(K){var I="none";a.selectedTrack===null&&(I=a.tracks[0].trackId);var H=K.keyCode||K.which;a.setTrack(I,H!==void 0)});else{for(var y=a.captionsButton.querySelectorAll("."+d.options.classPrefix+"captions-selector-label"),F=a.captionsButton.querySelectorAll("input[type=radio]"),D=0,M=h.length;D<M;D++)a.captionsButton.addEventListener(h[D],function(){(0,f.removeClass)(this.querySelector("."+d.options.classPrefix+"captions-selector"),d.options.classPrefix+"offscreen")});for(var P=0,A=x.length;P<A;P++)a.captionsButton.addEventListener(x[P],function(){(0,f.addClass)(this.querySelector("."+d.options.classPrefix+"captions-selector"),d.options.classPrefix+"offscreen")});for(var O=0,j=F.length;O<j;O++)F[O].addEventListener("click",function(K){var I=K.keyCode||K.which;a.setTrack(this.value,I!==void 0)});for(var R=0,V=y.length;R<V;R++)y[R].addEventListener("click",function(K){var I=(0,f.siblings)(this,function(N){return N.tagName==="INPUT"})[0],H=(0,m.createEvent)("click",I);I.dispatchEvent(H),K.preventDefault()});a.captionsButton.addEventListener("keydown",function(K){K.stopPropagation()})}for(var q=0,Y=h.length;q<Y;q++)a.chaptersButton.addEventListener(h[q],function(){this.querySelector("."+d.options.classPrefix+"chapters-selector-list").children.length&&(0,f.removeClass)(this.querySelector("."+d.options.classPrefix+"chapters-selector"),d.options.classPrefix+"offscreen")});for(var W=0,z=x.length;W<z;W++)a.chaptersButton.addEventListener(x[W],function(){(0,f.addClass)(this.querySelector("."+d.options.classPrefix+"chapters-selector"),d.options.classPrefix+"offscreen")});a.chaptersButton.addEventListener("keydown",function(K){K.stopPropagation()}),a.options.alwaysShowControls?(0,f.addClass)(a.getElement(a.container).querySelector("."+d.options.classPrefix+"captions-position"),d.options.classPrefix+"captions-position-hover"):(a.getElement(a.container).addEventListener("controlsshown",function(){(0,f.addClass)(a.getElement(a.container).querySelector("."+d.options.classPrefix+"captions-position"),d.options.classPrefix+"captions-position-hover")}),a.getElement(a.container).addEventListener("controlshidden",function(){u.paused||(0,f.removeClass)(a.getElement(a.container).querySelector("."+d.options.classPrefix+"captions-position"),d.options.classPrefix+"captions-position-hover")})),u.addEventListener("timeupdate",function(){a.displayCaptions()}),a.options.slidesSelector!==""&&(a.slidesContainer=k.default.querySelectorAll(a.options.slidesSelector),u.addEventListener("timeupdate",function(){a.displaySlides()}))}},cleartracks:function(a){a&&(a.captions&&a.captions.remove(),a.chapters&&a.chapters.remove(),a.captionsText&&a.captionsText.remove(),a.captionsButton&&a.captionsButton.remove(),a.chaptersButton&&a.chaptersButton.remove())},rebuildtracks:function(){var a=this;a.findTracks(),a.buildtracks(a,a.getElement(a.controls),a.getElement(a.layers),a.media)},findTracks:function(){var a=this,n=a.trackFiles===null?a.node.querySelectorAll("track"):a.trackFiles,i=n.length;a.tracks=[];for(var u=0;u<i;u++){var d=n[u],v=d.getAttribute("srclang").toLowerCase()||"",r=a.id+"_track_"+u+"_"+d.getAttribute("kind")+"_"+v;a.tracks.push({trackId:r,srclang:v,src:d.getAttribute("src"),kind:d.getAttribute("kind"),label:d.getAttribute("label")||"",entries:[],isLoaded:!1})}},setTrack:function(a,n){for(var i=this,u=i.captionsButton.querySelectorAll('input[type="radio"]'),d=i.captionsButton.querySelectorAll("."+i.options.classPrefix+"captions-selected"),v=i.captionsButton.querySelector('input[value="'+a+'"]'),r=0,g=u.length;r<g;r++)u[r].checked=!1;for(var e=0,o=d.length;e<o;e++)(0,f.removeClass)(d[e],i.options.classPrefix+"captions-selected");v.checked=!0;for(var t=(0,f.siblings)(v,function(y){return(0,f.hasClass)(y,i.options.classPrefix+"captions-selector-label")}),s=0,c=t.length;s<c;s++)(0,f.addClass)(t[s],i.options.classPrefix+"captions-selected");if(a==="none")i.selectedTrack=null,(0,f.removeClass)(i.captionsButton,i.options.classPrefix+"captions-enabled");else for(var p=0,C=i.tracks.length;p<C;p++){var h=i.tracks[p];if(h.trackId===a){i.selectedTrack===null&&(0,f.addClass)(i.captionsButton,i.options.classPrefix+"captions-enabled"),i.selectedTrack=h,i.captions.setAttribute("lang",i.selectedTrack.srclang),i.displayCaptions();break}}var x=(0,m.createEvent)("captionschange",i.media);x.detail.caption=i.selectedTrack,i.media.dispatchEvent(x),n||setTimeout(function(){i.getElement(i.container).focus()},500)},loadNextTrack:function(){var a=this;a.trackToLoad++,a.trackToLoad<a.tracks.length?(a.isLoadingTrack=!0,a.loadTrack(a.trackToLoad)):(a.isLoadingTrack=!1,a.checkForTracks())},loadTrack:function(a){var n=this,i=n.tracks[a];i===void 0||i.src===void 0&&i.src===""||(0,f.ajax)(i.src,"text",function(u){i.entries=typeof u=="string"&&/<tt\s+xml/gi.exec(u)?L.default.TrackFormatParser.dfxp.parse(u):L.default.TrackFormatParser.webvtt.parse(u),i.isLoaded=!0,n.enableTrackButton(i),n.loadNextTrack(),i.kind==="slides"?n.setupSlides(i):i.kind!=="chapters"||n.hasChapters||(n.drawChapters(i),n.hasChapters=!0)},function(){n.removeTrackButton(i.trackId),n.loadNextTrack()})},enableTrackButton:function(a){var n=this,i=a.srclang,u=k.default.getElementById(""+a.trackId);if(u){var d=a.label;d===""&&(d=E.default.t(L.default.language.codes[i])||i),u.disabled=!1;for(var v=(0,f.siblings)(u,function(o){return(0,f.hasClass)(o,n.options.classPrefix+"captions-selector-label")}),r=0,g=v.length;r<g;r++)v[r].innerHTML=d;if(n.options.startLanguage===i){u.checked=!0;var e=(0,m.createEvent)("click",u);u.dispatchEvent(e)}}},removeTrackButton:function(a){var n=k.default.getElementById(""+a);if(n){var i=n.closest("li");i&&i.remove()}},addTrackButton:function(a,n,i){var u=this;i===""&&(i=E.default.t(L.default.language.codes[n])||n),u.captionsButton.querySelector("ul").innerHTML+='<li class="'+u.options.classPrefix+'captions-selector-list-item"><input type="radio" class="'+u.options.classPrefix+'captions-selector-input" name="'+u.id+'_captions" id="'+a+'" value="'+a+'" disabled><label class="'+u.options.classPrefix+'captions-selector-label"for="'+a+'">'+i+" (loading)</label></li>"},checkForTracks:function(){var a=this,n=!1;if(a.options.hideCaptionsButtonWhenEmpty){for(var i=0,u=a.tracks.length;i<u;i++){var d=a.tracks[i].kind;if((d==="subtitles"||d==="captions")&&a.tracks[i].isLoaded){n=!0;break}}a.captionsButton.style.display=n?"":"none",a.setControlsSize()}},displayCaptions:function(){if(this.tracks!==void 0){var a=this,n=a.selectedTrack;if(n!==null&&n.isLoaded){var i=a.searchTrackPosition(n.entries,a.media.currentTime);if(-1<i)return a.captionsText.innerHTML=function(u){var d=k.default.createElement("div");d.innerHTML=u;for(var v=d.getElementsByTagName("script"),r=v.length;r--;)v[r].remove();for(var g=d.getElementsByTagName("*"),e=0,o=g.length;e<o;e++)for(var t=g[e].attributes,s=Array.prototype.slice.call(t),c=0,p=s.length;c<p;c++)s[c].name.startsWith("on")||s[c].value.startsWith("javascript")?g[e].remove():s[c].name==="style"&&g[e].removeAttribute(s[c].name);return d.innerHTML}(n.entries[i].text),a.captionsText.className=a.options.classPrefix+"captions-text "+(n.entries[i].identifier||""),a.captions.style.display="",void(a.captions.style.height="0px");a.captions.style.display="none"}else a.captions.style.display="none"}},setupSlides:function(a){this.slides=a,this.slides.entries.imgs=[this.slides.entries.length],this.showSlide(0)},showSlide:function(a){var n=this,i=this;if(i.tracks!==void 0&&i.slidesContainer!==void 0){var u=i.slides.entries[a].text,d=i.slides.entries[a].imgs;if(d===void 0||d.fadeIn===void 0){var v=k.default.createElement("img");v.src=u,v.addEventListener("load",function(){var o=n,t=(0,f.siblings)(o,function(p){return t(p)});o.style.display="none",i.slidesContainer.innerHTML+=o.innerHTML,(0,f.fadeIn)(i.slidesContainer.querySelector(v));for(var s=0,c=t.length;s<c;s++)(0,f.fadeOut)(t[s],400)}),i.slides.entries[a].imgs=d=v}else if(!(0,f.visible)(d)){var r=(0,f.siblings)(self,function(o){return r(o)});(0,f.fadeIn)(i.slidesContainer.querySelector(d));for(var g=0,e=r.length;g<e;g++)(0,f.fadeOut)(r[g])}}},displaySlides:function(){if(this.slides!==void 0){var a=this.slides,n=this.searchTrackPosition(a.entries,this.media.currentTime);-1<n&&this.showSlide(n)}},drawChapters:function(a){var n=this,i=a.entries.length;if(i){n.chaptersButton.querySelector("ul").innerHTML="";for(var u=0;u<i;u++)n.chaptersButton.querySelector("ul").innerHTML+='<li class="'+n.options.classPrefix+'chapters-selector-list-item" role="menuitemcheckbox" aria-live="polite" aria-disabled="false" aria-checked="false"><input type="radio" class="'+n.options.classPrefix+'captions-selector-input" name="'+n.id+'_chapters" id="'+n.id+"_chapters_"+u+'" value="'+a.entries[u].start+'" disabled><label class="'+n.options.classPrefix+'chapters-selector-label"for="'+n.id+"_chapters_"+u+'">'+a.entries[u].text+"</label></li>";for(var d=n.chaptersButton.querySelectorAll('input[type="radio"]'),v=n.chaptersButton.querySelectorAll("."+n.options.classPrefix+"chapters-selector-label"),r=0,g=d.length;r<g;r++)d[r].disabled=!1,d[r].checked=!1,d[r].addEventListener("click",function(t){var s=n.chaptersButton.querySelectorAll("li"),c=(0,f.siblings)(this,function(h){return(0,f.hasClass)(h,n.options.classPrefix+"chapters-selector-label")})[0];this.checked=!0,this.parentNode.setAttribute("aria-checked",!0),(0,f.addClass)(c,n.options.classPrefix+"chapters-selected"),(0,f.removeClass)(n.chaptersButton.querySelector("."+n.options.classPrefix+"chapters-selected"),n.options.classPrefix+"chapters-selected");for(var p=0,C=s.length;p<C;p++)s[p].setAttribute("aria-checked",!1);(t.keyCode||t.which)===void 0&&setTimeout(function(){n.getElement(n.container).focus()},500),n.media.setCurrentTime(parseFloat(this.value)),n.media.paused&&n.media.play()});for(var e=0,o=v.length;e<o;e++)v[e].addEventListener("click",function(t){var s=(0,f.siblings)(this,function(p){return p.tagName==="INPUT"})[0],c=(0,m.createEvent)("click",s);s.dispatchEvent(c),t.preventDefault()})}},searchTrackPosition:function(a,n){for(var i=0,u=a.length-1,d=void 0,v=void 0,r=void 0;i<=u;){if(v=a[d=i+u>>1].start,r=a[d].stop,v<=n&&n<r)return d;v<n?i=d+1:n<v&&(u=d-1)}return-1}}),L.default.language={codes:{af:"mejs.afrikaans",sq:"mejs.albanian",ar:"mejs.arabic",be:"mejs.belarusian",bg:"mejs.bulgarian",ca:"mejs.catalan",zh:"mejs.chinese","zh-cn":"mejs.chinese-simplified","zh-tw":"mejs.chines-traditional",hr:"mejs.croatian",cs:"mejs.czech",da:"mejs.danish",nl:"mejs.dutch",en:"mejs.english",et:"mejs.estonian",fl:"mejs.filipino",fi:"mejs.finnish",fr:"mejs.french",gl:"mejs.galician",de:"mejs.german",el:"mejs.greek",ht:"mejs.haitian-creole",iw:"mejs.hebrew",hi:"mejs.hindi",hu:"mejs.hungarian",is:"mejs.icelandic",id:"mejs.indonesian",ga:"mejs.irish",it:"mejs.italian",ja:"mejs.japanese",ko:"mejs.korean",lv:"mejs.latvian",lt:"mejs.lithuanian",mk:"mejs.macedonian",ms:"mejs.malay",mt:"mejs.maltese",no:"mejs.norwegian",fa:"mejs.persian",pl:"mejs.polish",pt:"mejs.portuguese",ro:"mejs.romanian",ru:"mejs.russian",sr:"mejs.serbian",sk:"mejs.slovak",sl:"mejs.slovenian",es:"mejs.spanish",sw:"mejs.swahili",sv:"mejs.swedish",tl:"mejs.tagalog",th:"mejs.thai",tr:"mejs.turkish",uk:"mejs.ukrainian",vi:"mejs.vietnamese",cy:"mejs.welsh",yi:"mejs.yiddish"}},L.default.TrackFormatParser={webvtt:{pattern:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(a){for(var n=a.split(/\r?\n/),i=[],u=void 0,d=void 0,v=void 0,r=0,g=n.length;r<g;r++){if((u=this.pattern.exec(n[r]))&&r<n.length){for(0<=r-1&&n[r-1]!==""&&(v=n[r-1]),d=n[++r],r++;n[r]!==""&&r<n.length;)d=d+`
  12. `+n[r],r++;d=d.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),i.push({identifier:v,start:(0,w.convertSMPTEtoSeconds)(u[1])===0?.2:(0,w.convertSMPTEtoSeconds)(u[1]),stop:(0,w.convertSMPTEtoSeconds)(u[3]),text:d,settings:u[5]})}v=""}return i}},dfxp:{parse:function(a){var n=(a=$(a).filter("tt")).firstChild,i=n.querySelectorAll("p"),u=a.getElementById(""+n.attr("style")),d=[],v=void 0;if(u.length){u.removeAttribute("id");var r=u.attributes;if(r.length){v={};for(var g=0,e=r.length;g<e;g++)v[r[g].name.split(":")[1]]=r[g].value}}for(var o=0,t=i.length;o<t;o++){var s=void 0,c={start:null,stop:null,style:null,text:null};if(i.eq(o).attr("begin")&&(c.start=(0,w.convertSMPTEtoSeconds)(i.eq(o).attr("begin"))),!c.start&&i.eq(o-1).attr("end")&&(c.start=(0,w.convertSMPTEtoSeconds)(i.eq(o-1).attr("end"))),i.eq(o).attr("end")&&(c.stop=(0,w.convertSMPTEtoSeconds)(i.eq(o).attr("end"))),!c.stop&&i.eq(o+1).attr("begin")&&(c.stop=(0,w.convertSMPTEtoSeconds)(i.eq(o+1).attr("begin"))),v)for(var p in s="",v)s+=p+":"+v[p]+";";s&&(c.style=s),c.start===0&&(c.start=.2),c.text=i.eq(o).innerHTML.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),d.push(c)}return d}}}},{16:16,2:2,26:26,27:27,30:30,5:5,7:7}],14:[function(S,X,b){var k=f(S(2)),L=S(16),E=f(L),T=f(S(5)),_=S(25),w=S(27),m=S(26);function f(l){return l&&l.__esModule?l:{default:l}}Object.assign(L.config,{muteText:null,unmuteText:null,allyVolumeControlText:null,hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical",startVolume:.8}),Object.assign(E.default.prototype,{buildvolume:function(l,a,n,i){if(!_.IS_ANDROID&&!_.IS_IOS||!this.options.hideVolumeOnTouchDevices){var u=this,d=u.isVideo?u.options.videoVolume:u.options.audioVolume,v=(0,w.isString)(u.options.muteText)?u.options.muteText:T.default.t("mejs.mute"),r=(0,w.isString)(u.options.unmuteText)?u.options.unmuteText:T.default.t("mejs.unmute"),g=(0,w.isString)(u.options.allyVolumeControlText)?u.options.allyVolumeControlText:T.default.t("mejs.volume-help-text"),e=k.default.createElement("div");if(e.className=u.options.classPrefix+"button "+u.options.classPrefix+"volume-button "+u.options.classPrefix+"mute",e.innerHTML=d==="horizontal"?'<button type="button" aria-controls="'+u.id+'" title="'+v+'" aria-label="'+v+'" tabindex="0"></button>':'<button type="button" aria-controls="'+u.id+'" title="'+v+'" aria-label="'+v+'" tabindex="0"></button><a href="javascript:void(0);" class="'+u.options.classPrefix+'volume-slider" aria-label="'+T.default.t("mejs.volume-slider")+'" aria-valuemin="0" aria-valuemax="100" role="slider" aria-orientation="vertical"><span class="'+u.options.classPrefix+'offscreen">'+g+'</span><div class="'+u.options.classPrefix+'volume-total"><div class="'+u.options.classPrefix+'volume-current"></div><div class="'+u.options.classPrefix+'volume-handle"></div></div></a>',u.addControlElement(e,"volume"),u.options.keyActions.push({keys:[38],action:function(P){var A=P.getElement(P.container).querySelector("."+L.config.classPrefix+"volume-slider");A&&A.matches(":focus")&&(A.style.display="block"),P.isVideo&&(P.showControls(),P.startControlsTimer());var O=Math.min(P.volume+.1,1);P.setVolume(O),0<O&&P.setMuted(!1)}},{keys:[40],action:function(P){var A=P.getElement(P.container).querySelector("."+L.config.classPrefix+"volume-slider");A&&(A.style.display="block"),P.isVideo&&(P.showControls(),P.startControlsTimer());var O=Math.max(P.volume-.1,0);P.setVolume(O),O<=.1&&P.setMuted(!0)}},{keys:[77],action:function(P){P.getElement(P.container).querySelector("."+L.config.classPrefix+"volume-slider").style.display="block",P.isVideo&&(P.showControls(),P.startControlsTimer()),P.media.muted?P.setMuted(!1):P.setMuted(!0)}}),d==="horizontal"){var o=k.default.createElement("a");o.className=u.options.classPrefix+"horizontal-volume-slider",o.href="javascript:void(0);",o.setAttribute("aria-label",T.default.t("mejs.volume-slider")),o.setAttribute("aria-valuemin",0),o.setAttribute("aria-valuemax",100),o.setAttribute("aria-valuenow",100),o.setAttribute("role","slider"),o.innerHTML+='<span class="'+u.options.classPrefix+'offscreen">'+g+'</span><div class="'+u.options.classPrefix+'horizontal-volume-total"><div class="'+u.options.classPrefix+'horizontal-volume-current"></div><div class="'+u.options.classPrefix+'horizontal-volume-handle"></div></div>',e.parentNode.insertBefore(o,e.nextSibling)}var t=!1,s=!1,c=!1,p=d==="vertical"?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-slider"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-slider"),C=d==="vertical"?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-total"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-total"),h=d==="vertical"?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-current"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-current"),x=d==="vertical"?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-handle"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-handle"),y=function(P){if(P!==null&&!isNaN(P)&&P!==void 0){if(P=Math.max(0,P),(P=Math.min(P,1))===0){(0,m.removeClass)(e,u.options.classPrefix+"mute"),(0,m.addClass)(e,u.options.classPrefix+"unmute");var A=e.firstElementChild;A.setAttribute("title",r),A.setAttribute("aria-label",r)}else{(0,m.removeClass)(e,u.options.classPrefix+"unmute"),(0,m.addClass)(e,u.options.classPrefix+"mute");var O=e.firstElementChild;O.setAttribute("title",v),O.setAttribute("aria-label",v)}var j=100*P+"%",R=getComputedStyle(x);d==="vertical"?(h.style.bottom=0,h.style.height=j,x.style.bottom=j,x.style.marginBottom=-parseFloat(R.height)/2+"px"):(h.style.left=0,h.style.width=j,x.style.left=j,x.style.marginLeft=-parseFloat(R.width)/2+"px")}},F=function(P){var A=(0,m.offset)(C),O=getComputedStyle(C);c=!0;var j=null;if(d==="vertical"){var R=parseFloat(O.height);if(j=(R-(P.pageY-A.top))/R,A.top===0||A.left===0)return}else{var V=parseFloat(O.width);j=(P.pageX-A.left)/V}j=Math.max(0,j),j=Math.min(j,1),y(j),u.setMuted(j===0),u.setVolume(j),P.preventDefault(),P.stopPropagation()},D=function(){u.muted?(y(0),(0,m.removeClass)(e,u.options.classPrefix+"mute"),(0,m.addClass)(e,u.options.classPrefix+"unmute")):(y(i.volume),(0,m.removeClass)(e,u.options.classPrefix+"unmute"),(0,m.addClass)(e,u.options.classPrefix+"mute"))};l.getElement(l.container).addEventListener("keydown",function(P){P.target.closest("."+u.options.classPrefix+"container")||d!=="vertical"||(p.style.display="none")}),e.addEventListener("mouseenter",function(P){P.target===e&&(p.style.display="block",s=!0,P.preventDefault(),P.stopPropagation())}),e.addEventListener("focusin",function(){p.style.display="block",s=!0}),e.addEventListener("focusout",function(P){P.relatedTarget&&(!P.relatedTarget||P.relatedTarget.matches("."+u.options.classPrefix+"volume-slider"))||d!=="vertical"||(p.style.display="none")}),e.addEventListener("mouseleave",function(){s=!1,t||d!=="vertical"||(p.style.display="none")}),e.addEventListener("focusout",function(){s=!1}),e.addEventListener("keydown",function(P){if(u.options.enableKeyboard&&u.options.keyActions.length){var A=P.which||P.keyCode||0,O=i.volume;switch(A){case 38:O=Math.min(O+.1,1);break;case 40:O=Math.max(0,O-.1);break;default:return!0}t=!1,y(O),i.setVolume(O),P.preventDefault(),P.stopPropagation()}}),e.querySelector("button").addEventListener("click",function(){i.setMuted(!i.muted);var P=(0,w.createEvent)("volumechange",i);i.dispatchEvent(P)}),p.addEventListener("dragstart",function(){return!1}),p.addEventListener("mouseover",function(){s=!0}),p.addEventListener("focusin",function(){p.style.display="block",s=!0}),p.addEventListener("focusout",function(){s=!1,t||d!=="vertical"||(p.style.display="none")}),p.addEventListener("mousedown",function(P){F(P),u.globalBind("mousemove.vol",function(A){var O=A.target;t&&(O===p||O.closest(d==="vertical"?"."+u.options.classPrefix+"volume-slider":"."+u.options.classPrefix+"horizontal-volume-slider"))&&F(A)}),u.globalBind("mouseup.vol",function(){t=!1,s||d!=="vertical"||(p.style.display="none")}),t=!0,P.preventDefault(),P.stopPropagation()}),i.addEventListener("volumechange",function(P){var A;t||D(),A=Math.floor(100*i.volume),p.setAttribute("aria-valuenow",A),p.setAttribute("aria-valuetext",A+"%")});var M=!1;i.addEventListener("rendererready",function(){c||setTimeout(function(){M=!0,(l.options.startVolume===0||i.originalNode.muted)&&(i.setMuted(!0),l.options.startVolume=0),i.setVolume(l.options.startVolume),u.setControlsSize()},250)}),i.addEventListener("loadedmetadata",function(){setTimeout(function(){c||M||((l.options.startVolume===0||i.originalNode.muted)&&i.setMuted(!0),i.setVolume(l.options.startVolume),u.setControlsSize()),M=!1},250)}),(l.options.startVolume===0||i.originalNode.muted)&&(i.setMuted(!0),l.options.startVolume=0,D()),u.getElement(u.container).addEventListener("controlsresize",function(){D()})}}})},{16:16,2:2,25:25,26:26,27:27,5:5}],15:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.EN={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}},{}],16:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.config=void 0;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},L=function(){function g(e,o){for(var t=0;t<o.length;t++){var s=o[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(e,o,t){return o&&g(e.prototype,o),t&&g(e,t),e}}(),E=d(S(3)),T=d(S(2)),_=d(S(7)),w=d(S(6)),m=d(S(17)),f=d(S(5)),l=S(25),a=S(27),n=S(30),i=S(28),u=function(g){{if(g&&g.__esModule)return g;var e={};if(g!=null)for(var o in g)Object.prototype.hasOwnProperty.call(g,o)&&(e[o]=g[o]);return e.default=g,e}}(S(26));function d(g){return g&&g.__esModule?g:{default:g}}_.default.mepIndex=0,_.default.players={};var v=b.config={poster:"",showPosterWhenEnded:!1,showPosterWhenPaused:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:40,defaultSeekBackwardInterval:function(g){return .05*g.getDuration()},defaultSeekForwardInterval:function(g){return .05*g.getDuration()},setDimensions:!0,audioWidth:-1,audioHeight:-1,loop:!1,autoRewind:!0,enableAutosize:!0,timeFormat:"",alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,hideVideoControlsOnPause:!1,clickToPlayPause:!0,controlsTimeoutDefault:1500,controlsTimeoutMouseEnter:2500,controlsTimeoutMouseLeave:1e3,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],useDefaultControls:!1,isVideo:!0,stretching:"auto",classPrefix:"mejs__",enableKeyboard:!0,pauseOtherPlayers:!0,secondsDecimalLength:0,customError:null,keyActions:[{keys:[32,179],action:function(g){l.IS_FIREFOX||(g.paused||g.ended?g.play():g.pause())}}]};_.default.MepDefaults=v;var r=function(){function g(e,o){(function(p,C){if(!(p instanceof C))throw new TypeError("Cannot call a class as a function")})(this,g);var t=this,s=typeof e=="string"?T.default.getElementById(e):e;if(!(t instanceof g))return new g(s,o);if(t.node=t.media=s,t.node){if(t.media.player)return t.media.player;if(t.hasFocus=!1,t.controlsAreVisible=!0,t.controlsEnabled=!0,t.controlsTimer=null,t.currentMediaTime=0,t.proxy=null,o===void 0){var c=t.node.getAttribute("data-mejsoptions");o=c?JSON.parse(c):{}}return t.options=Object.assign({},v,o),t.options.loop&&!t.media.getAttribute("loop")?(t.media.loop=!0,t.node.loop=!0):t.media.loop&&(t.options.loop=!0),t.options.timeFormat||(t.options.timeFormat="mm:ss",t.options.alwaysShowHours&&(t.options.timeFormat="hh:mm:ss"),t.options.showTimecodeFrameCount&&(t.options.timeFormat+=":ff")),(0,n.calculateTimeFormat)(0,t.options,t.options.framesPerSecond||25),t.id="mep_"+_.default.mepIndex++,(_.default.players[t.id]=t).init(),t}}return L(g,[{key:"getElement",value:function(e){return e}},{key:"init",value:function(){var e=this,o=Object.assign({},e.options,{success:function(j,R){e._meReady(j,R)},error:function(j){e._handleError(j)}}),t=e.node.tagName.toLowerCase();if(e.isDynamic=t!=="audio"&&t!=="video"&&t!=="iframe",e.isVideo=(e.isDynamic||t!=="audio")&&e.options.isVideo,e.mediaFiles=null,e.trackFiles=null,l.IS_IPAD&&e.options.iPadUseNativeControls||l.IS_IPHONE&&e.options.iPhoneUseNativeControls)e.node.setAttribute("controls",!0),l.IS_IPAD&&e.node.getAttribute("autoplay")&&e.play();else if(!e.isVideo&&(e.isVideo||!e.options.features.length&&!e.options.useDefaultControls)||l.IS_ANDROID&&e.options.AndroidUseNativeControls)e.isVideo||e.options.features.length||e.options.useDefaultControls||(e.node.style.display="none");else{e.node.removeAttribute("controls");var s=e.isVideo?f.default.t("mejs.video-player"):f.default.t("mejs.audio-player"),c=T.default.createElement("span");if(c.className=e.options.classPrefix+"offscreen",c.innerText=s,e.media.parentNode.insertBefore(c,e.media),e.container=T.default.createElement("div"),e.getElement(e.container).id=e.id,e.getElement(e.container).className=e.options.classPrefix+"container "+e.options.classPrefix+"container-keyboard-inactive "+e.media.className,e.getElement(e.container).tabIndex=0,e.getElement(e.container).setAttribute("role","application"),e.getElement(e.container).setAttribute("aria-label",s),e.getElement(e.container).innerHTML='<div class="'+e.options.classPrefix+'inner"><div class="'+e.options.classPrefix+'mediaelement"></div><div class="'+e.options.classPrefix+'layers"></div><div class="'+e.options.classPrefix+'controls"></div></div>',e.getElement(e.container).addEventListener("focus",function(j){if(!e.controlsAreVisible&&!e.hasFocus&&e.controlsEnabled){e.showControls(!0);var R=(0,a.isNodeAfter)(j.relatedTarget,e.getElement(e.container))?"."+e.options.classPrefix+"controls ."+e.options.classPrefix+"button:last-child > button":"."+e.options.classPrefix+"playpause-button > button";e.getElement(e.container).querySelector(R).focus()}}),e.node.parentNode.insertBefore(e.getElement(e.container),e.node),e.options.features.length||e.options.useDefaultControls||(e.getElement(e.container).style.background="transparent",e.getElement(e.container).querySelector("."+e.options.classPrefix+"controls").style.display="none"),e.isVideo&&e.options.stretching==="fill"&&!u.hasClass(e.getElement(e.container).parentNode,e.options.classPrefix+"fill-container")){e.outerContainer=e.media.parentNode;var p=T.default.createElement("div");p.className=e.options.classPrefix+"fill-container",e.getElement(e.container).parentNode.insertBefore(p,e.getElement(e.container)),p.appendChild(e.getElement(e.container))}if(l.IS_ANDROID&&u.addClass(e.getElement(e.container),e.options.classPrefix+"android"),l.IS_IOS&&u.addClass(e.getElement(e.container),e.options.classPrefix+"ios"),l.IS_IPAD&&u.addClass(e.getElement(e.container),e.options.classPrefix+"ipad"),l.IS_IPHONE&&u.addClass(e.getElement(e.container),e.options.classPrefix+"iphone"),u.addClass(e.getElement(e.container),e.isVideo?e.options.classPrefix+"video":e.options.classPrefix+"audio"),l.IS_SAFARI&&!l.IS_IOS){u.addClass(e.getElement(e.container),e.options.classPrefix+"hide-cues");for(var C=e.node.cloneNode(),h=e.node.children,x=[],y=[],F=0,D=h.length;F<D;F++){var M=h[F];(function(){switch(M.tagName.toLowerCase()){case"source":var j={};Array.prototype.slice.call(M.attributes).forEach(function(R){j[R.name]=R.value}),j.type=(0,i.formatType)(j.src,j.type),x.push(j);break;case"track":M.mode="hidden",y.push(M);break;default:C.appendChild(M.cloneNode(!0))}})()}e.node.remove(),e.node=e.media=C,x.length&&(e.mediaFiles=x),y.length&&(e.trackFiles=y)}e.getElement(e.container).querySelector("."+e.options.classPrefix+"mediaelement").appendChild(e.node),(e.media.player=e).controls=e.getElement(e.container).querySelector("."+e.options.classPrefix+"controls"),e.layers=e.getElement(e.container).querySelector("."+e.options.classPrefix+"layers");var P=e.isVideo?"video":"audio",A=P.substring(0,1).toUpperCase()+P.substring(1);0<e.options[P+"Width"]||-1<e.options[P+"Width"].toString().indexOf("%")?e.width=e.options[P+"Width"]:e.node.style.width!==""&&e.node.style.width!==null?e.width=e.node.style.width:e.node.getAttribute("width")?e.width=e.node.getAttribute("width"):e.width=e.options["default"+A+"Width"],0<e.options[P+"Height"]||-1<e.options[P+"Height"].toString().indexOf("%")?e.height=e.options[P+"Height"]:e.node.style.height!==""&&e.node.style.height!==null?e.height=e.node.style.height:e.node.getAttribute("height")?e.height=e.node.getAttribute("height"):e.height=e.options["default"+A+"Height"],e.initialAspectRatio=e.height>=e.width?e.width/e.height:e.height/e.width,e.setPlayerSize(e.width,e.height),o.pluginWidth=e.width,o.pluginHeight=e.height}if(_.default.MepDefaults=o,new w.default(e.media,o,e.mediaFiles),e.getElement(e.container)!==void 0&&e.options.features.length&&e.controlsAreVisible&&!e.options.hideVideoControlsOnLoad){var O=(0,a.createEvent)("controlsshown",e.getElement(e.container));e.getElement(e.container).dispatchEvent(O)}}},{key:"showControls",value:function(e){var o=this;if(e=e===void 0||e,!o.controlsAreVisible&&o.isVideo){if(e)(function(){u.fadeIn(o.getElement(o.controls),200,function(){u.removeClass(o.getElement(o.controls),o.options.classPrefix+"offscreen");var F=(0,a.createEvent)("controlsshown",o.getElement(o.container));o.getElement(o.container).dispatchEvent(F)});for(var C=o.getElement(o.container).querySelectorAll("."+o.options.classPrefix+"control"),h=function(F,D){u.fadeIn(C[F],200,function(){u.removeClass(C[F],o.options.classPrefix+"offscreen")})},x=0,y=C.length;x<y;x++)h(x)})();else{u.removeClass(o.getElement(o.controls),o.options.classPrefix+"offscreen"),o.getElement(o.controls).style.display="",o.getElement(o.controls).style.opacity=1;for(var t=o.getElement(o.container).querySelectorAll("."+o.options.classPrefix+"control"),s=0,c=t.length;s<c;s++)u.removeClass(t[s],o.options.classPrefix+"offscreen"),t[s].style.display="";var p=(0,a.createEvent)("controlsshown",o.getElement(o.container));o.getElement(o.container).dispatchEvent(p)}o.controlsAreVisible=!0,o.setControlsSize()}}},{key:"hideControls",value:function(e,o){var t=this;if(e=e===void 0||e,o===!0||!(!t.controlsAreVisible||t.options.alwaysShowControls||t.paused&&t.readyState===4&&(!t.options.hideVideoControlsOnLoad&&t.currentTime<=0||!t.options.hideVideoControlsOnPause&&0<t.currentTime)||t.isVideo&&!t.options.hideVideoControlsOnLoad&&!t.readyState||t.ended)){if(e)(function(){u.fadeOut(t.getElement(t.controls),200,function(){u.addClass(t.getElement(t.controls),t.options.classPrefix+"offscreen"),t.getElement(t.controls).style.display="";var D=(0,a.createEvent)("controlshidden",t.getElement(t.container));t.getElement(t.container).dispatchEvent(D)});for(var h=t.getElement(t.container).querySelectorAll("."+t.options.classPrefix+"control"),x=function(D,M){u.fadeOut(h[D],200,function(){u.addClass(h[D],t.options.classPrefix+"offscreen"),h[D].style.display=""})},y=0,F=h.length;y<F;y++)x(y)})();else{u.addClass(t.getElement(t.controls),t.options.classPrefix+"offscreen"),t.getElement(t.controls).style.display="",t.getElement(t.controls).style.opacity=0;for(var s=t.getElement(t.container).querySelectorAll("."+t.options.classPrefix+"control"),c=0,p=s.length;c<p;c++)u.addClass(s[c],t.options.classPrefix+"offscreen"),s[c].style.display="";var C=(0,a.createEvent)("controlshidden",t.getElement(t.container));t.getElement(t.container).dispatchEvent(C)}t.controlsAreVisible=!1}}},{key:"startControlsTimer",value:function(e){var o=this;e=e!==void 0?e:o.options.controlsTimeoutDefault,o.killControlsTimer("start"),o.controlsTimer=setTimeout(function(){o.hideControls(),o.killControlsTimer("hide")},e)}},{key:"killControlsTimer",value:function(){this.controlsTimer!==null&&(clearTimeout(this.controlsTimer),delete this.controlsTimer,this.controlsTimer=null)}},{key:"disableControls",value:function(){this.killControlsTimer(),this.controlsEnabled=!1,this.hideControls(!1,!0)}},{key:"enableControls",value:function(){this.controlsEnabled=!0,this.showControls(!1)}},{key:"_setDefaultPlayer",value:function(){var e=this;e.proxy&&e.proxy.pause(),e.proxy=new m.default(e),e.media.addEventListener("loadedmetadata",function(){0<e.getCurrentTime()&&0<e.currentMediaTime&&(e.setCurrentTime(e.currentMediaTime),l.IS_IOS||l.IS_ANDROID||e.play())})}},{key:"_meReady",value:function(e,o){var t=this,s=o.getAttribute("autoplay"),c=!(s==null||s==="false"),p=e.rendererName!==null&&/(native|html5)/i.test(t.media.rendererName);if(t.getElement(t.controls)&&t.enableControls(),t.getElement(t.container)&&t.getElement(t.container).querySelector("."+t.options.classPrefix+"overlay-play")&&(t.getElement(t.container).querySelector("."+t.options.classPrefix+"overlay-play").style.display=""),!t.created){if(t.created=!0,t.media=e,t.domNode=o,!(l.IS_ANDROID&&t.options.AndroidUseNativeControls||l.IS_IPAD&&t.options.iPadUseNativeControls||l.IS_IPHONE&&t.options.iPhoneUseNativeControls)){if(!t.isVideo&&!t.options.features.length&&!t.options.useDefaultControls)return c&&p&&t.play(),void(t.options.success&&(typeof t.options.success=="string"?E.default[t.options.success](t.media,t.domNode,t):t.options.success(t.media,t.domNode,t)));if(t.featurePosition={},t._setDefaultPlayer(),t.buildposter(t,t.getElement(t.controls),t.getElement(t.layers),t.media),t.buildkeyboard(t,t.getElement(t.controls),t.getElement(t.layers),t.media),t.buildoverlays(t,t.getElement(t.controls),t.getElement(t.layers),t.media),t.options.useDefaultControls){var C=["playpause","current","progress","duration","tracks","volume","fullscreen"];t.options.features=C.concat(t.options.features.filter(function(y){return C.indexOf(y)===-1}))}t.buildfeatures(t,t.getElement(t.controls),t.getElement(t.layers),t.media);var h=(0,a.createEvent)("controlsready",t.getElement(t.container));t.getElement(t.container).dispatchEvent(h),t.setPlayerSize(t.width,t.height),t.setControlsSize(),t.isVideo&&(t.clickToPlayPauseCallback=function(){if(t.options.clickToPlayPause){var y=t.getElement(t.container).querySelector("."+t.options.classPrefix+"overlay-button"),F=y.getAttribute("aria-pressed");t.paused&&F?t.pause():t.paused?t.play():t.pause(),y.setAttribute("aria-pressed",!F),t.getElement(t.container).focus()}},t.createIframeLayer(),t.media.addEventListener("click",t.clickToPlayPauseCallback),!l.IS_ANDROID&&!l.IS_IOS||t.options.alwaysShowControls?(t.getElement(t.container).addEventListener("mouseenter",function(){t.controlsEnabled&&(t.options.alwaysShowControls||(t.killControlsTimer("enter"),t.showControls(),t.startControlsTimer(t.options.controlsTimeoutMouseEnter)))}),t.getElement(t.container).addEventListener("mousemove",function(){t.controlsEnabled&&(t.controlsAreVisible||t.showControls(),t.options.alwaysShowControls||t.startControlsTimer(t.options.controlsTimeoutMouseEnter))}),t.getElement(t.container).addEventListener("mouseleave",function(){t.controlsEnabled&&(t.paused||t.options.alwaysShowControls||t.startControlsTimer(t.options.controlsTimeoutMouseLeave))})):t.node.addEventListener("touchstart",function(){t.controlsAreVisible?t.hideControls(!1):t.controlsEnabled&&t.showControls(!1)},!!l.SUPPORT_PASSIVE_EVENT&&{passive:!0}),t.options.hideVideoControlsOnLoad&&t.hideControls(!1),t.options.enableAutosize&&t.media.addEventListener("loadedmetadata",function(y){var F=y!==void 0?y.detail.target||y.target:t.media;t.options.videoHeight<=0&&!t.domNode.getAttribute("height")&&!t.domNode.style.height&&F!==null&&!isNaN(F.videoHeight)&&(t.setPlayerSize(F.videoWidth,F.videoHeight),t.setControlsSize(),t.media.setSize(F.videoWidth,F.videoHeight))})),t.media.addEventListener("play",function(){for(var y in t.hasFocus=!0,_.default.players)if(_.default.players.hasOwnProperty(y)){var F=_.default.players[y];F.id===t.id||!t.options.pauseOtherPlayers||F.paused||F.ended||(F.pause(),F.hasFocus=!1)}l.IS_ANDROID||l.IS_IOS||t.options.alwaysShowControls||!t.isVideo||t.hideControls()}),t.media.addEventListener("ended",function(){if(t.options.autoRewind)try{t.setCurrentTime(0),setTimeout(function(){var y=t.getElement(t.container).querySelector("."+t.options.classPrefix+"overlay-loading");y&&y.parentNode&&(y.parentNode.style.display="none")},20)}catch{}typeof t.media.renderer.stop=="function"?t.media.renderer.stop():t.pause(),t.setProgressRail&&t.setProgressRail(),t.setCurrentRail&&t.setCurrentRail(),t.options.loop?t.play():!t.options.alwaysShowControls&&t.controlsEnabled&&t.showControls()}),t.media.addEventListener("loadedmetadata",function(){(0,n.calculateTimeFormat)(t.getDuration(),t.options,t.options.framesPerSecond||25),t.updateDuration&&t.updateDuration(),t.updateCurrent&&t.updateCurrent(),t.isFullScreen||(t.setPlayerSize(t.width,t.height),t.setControlsSize())});var x=null;t.media.addEventListener("timeupdate",function(){isNaN(t.getDuration())||x===t.getDuration()||(x=t.getDuration(),(0,n.calculateTimeFormat)(x,t.options,t.options.framesPerSecond||25),t.updateDuration&&t.updateDuration(),t.updateCurrent&&t.updateCurrent(),t.setControlsSize())}),t.getElement(t.container).addEventListener("click",function(y){u.addClass(y.currentTarget,t.options.classPrefix+"container-keyboard-inactive")}),t.getElement(t.container).addEventListener("focusin",function(y){u.removeClass(y.currentTarget,t.options.classPrefix+"container-keyboard-inactive"),!t.isVideo||l.IS_ANDROID||l.IS_IOS||!t.controlsEnabled||t.options.alwaysShowControls||(t.killControlsTimer("enter"),t.showControls(),t.startControlsTimer(t.options.controlsTimeoutMouseEnter))}),t.getElement(t.container).addEventListener("focusout",function(y){setTimeout(function(){y.relatedTarget&&t.keyboardAction&&!y.relatedTarget.closest("."+t.options.classPrefix+"container")&&(t.keyboardAction=!1,!t.isVideo||t.options.alwaysShowControls||t.paused||t.startControlsTimer(t.options.controlsTimeoutMouseLeave))},0)}),setTimeout(function(){t.setPlayerSize(t.width,t.height),t.setControlsSize()},0),t.globalResizeCallback=function(){t.isFullScreen||l.HAS_TRUE_NATIVE_FULLSCREEN&&T.default.webkitIsFullScreen||t.setPlayerSize(t.width,t.height),t.setControlsSize()},t.globalBind("resize",t.globalResizeCallback)}c&&p&&t.play(),t.options.success&&(typeof t.options.success=="string"?E.default[t.options.success](t.media,t.domNode,t):t.options.success(t.media,t.domNode,t))}}},{key:"_handleError",value:function(e,o,t){var s=this,c=s.getElement(s.layers).querySelector("."+s.options.classPrefix+"overlay-play");c&&(c.style.display="none"),s.options.error&&s.options.error(e,o,t),s.getElement(s.container).querySelector("."+s.options.classPrefix+"cannotplay")&&s.getElement(s.container).querySelector("."+s.options.classPrefix+"cannotplay").remove();var p=T.default.createElement("div");p.className=s.options.classPrefix+"cannotplay",p.style.width="100%",p.style.height="100%";var C=typeof s.options.customError=="function"?s.options.customError(s.media,s.media.originalNode):s.options.customError,h="";if(!C){var x=s.media.originalNode.getAttribute("poster");if(x&&(h='<img src="'+x+'" alt="'+_.default.i18n.t("mejs.download-file")+'">'),e.message&&(C="<p>"+e.message+"</p>"),e.urls)for(var y=0,F=e.urls.length;y<F;y++){var D=e.urls[y];C+='<a href="'+D.src+'" data-type="'+D.type+'"><span>'+_.default.i18n.t("mejs.download-file")+": "+D.src+"</span></a>"}}C&&s.getElement(s.layers).querySelector("."+s.options.classPrefix+"overlay-error")&&(p.innerHTML=C,s.getElement(s.layers).querySelector("."+s.options.classPrefix+"overlay-error").innerHTML=""+h+p.outerHTML,s.getElement(s.layers).querySelector("."+s.options.classPrefix+"overlay-error").parentNode.style.display="block"),s.controlsEnabled&&s.disableControls()}},{key:"setPlayerSize",value:function(e,o){var t=this;if(!t.options.setDimensions)return!1;switch(e!==void 0&&(t.width=e),o!==void 0&&(t.height=o),t.options.stretching){case"fill":t.isVideo?t.setFillMode():t.setDimensions(t.width,t.height);break;case"responsive":t.setResponsiveMode();break;case"none":t.setDimensions(t.width,t.height);break;default:t.hasFluidMode()===!0?t.setResponsiveMode():t.setDimensions(t.width,t.height)}}},{key:"hasFluidMode",value:function(){var e=this;return e.height.toString().indexOf("%")!==-1||e.node&&e.node.style.maxWidth&&e.node.style.maxWidth!=="none"&&e.node.style.maxWidth!==e.width||e.node&&e.node.currentStyle&&e.node.currentStyle.maxWidth==="100%"}},{key:"setResponsiveMode",value:function(){var e,o=this,t=function(){for(var P=void 0,A=o.getElement(o.container);A;){try{if(l.IS_FIREFOX&&A.tagName.toLowerCase()==="html"&&E.default.self!==E.default.top&&E.default.frameElement!==null)return E.default.frameElement;P=A.parentElement}catch{P=A.parentElement}if(P&&u.visible(P))return P;A=P}return null}(),s=getComputedStyle(t||T.default.body,null),c=o.isVideo?o.node.videoWidth&&0<o.node.videoWidth?o.node.videoWidth:o.node.getAttribute("width")?o.node.getAttribute("width"):o.options.defaultVideoWidth:o.options.defaultAudioWidth,p=o.isVideo?o.node.videoHeight&&0<o.node.videoHeight?o.node.videoHeight:o.node.getAttribute("height")?o.node.getAttribute("height"):o.options.defaultVideoHeight:o.options.defaultAudioHeight,C=(e=1,o.isVideo&&(e=o.node.videoWidth&&0<o.node.videoWidth&&o.node.videoHeight&&0<o.node.videoHeight?o.height>=o.width?o.node.videoWidth/o.node.videoHeight:o.node.videoHeight/o.node.videoWidth:o.initialAspectRatio,(isNaN(e)||e<.01||100<e)&&(e=1)),e),h=parseFloat(s.height),x=void 0,y=parseFloat(s.width);if(x=o.isVideo?o.height==="100%"?parseFloat(y*p/c,10):o.height>=o.width?parseFloat(y/C,10):parseFloat(y*C,10):p,isNaN(x)&&(x=h),0<o.getElement(o.container).parentNode.length&&o.getElement(o.container).parentNode.tagName.toLowerCase()==="body"&&(y=E.default.innerWidth||T.default.documentElement.clientWidth||T.default.body.clientWidth,x=E.default.innerHeight||T.default.documentElement.clientHeight||T.default.body.clientHeight),x&&y){o.getElement(o.container).style.width=y+"px",o.getElement(o.container).style.height=x+"px",o.node.style.width="100%",o.node.style.height="100%",o.isVideo&&o.media.setSize&&o.media.setSize(y,x);for(var F=o.getElement(o.layers).children,D=0,M=F.length;D<M;D++)F[D].style.width="100%",F[D].style.height="100%"}}},{key:"setFillMode",value:function(){var e=this,o=E.default.self!==E.default.top&&E.default.frameElement!==null,t=function(){for(var W=void 0,z=e.getElement(e.container);z;){try{if(l.IS_FIREFOX&&z.tagName.toLowerCase()==="html"&&E.default.self!==E.default.top&&E.default.frameElement!==null)return E.default.frameElement;W=z.parentElement}catch{W=z.parentElement}if(W&&u.visible(W))return W;z=W}return null}(),s=getComputedStyle(t||T.default.body,null);e.node.style.height!=="none"&&e.node.style.height!==e.height&&(e.node.style.height="auto"),e.node.style.maxWidth!=="none"&&e.node.style.maxWidth!==e.width&&(e.node.style.maxWidth="none"),e.node.style.maxHeight!=="none"&&e.node.style.maxHeight!==e.height&&(e.node.style.maxHeight="none"),e.node.currentStyle&&(e.node.currentStyle.height==="100%"&&(e.node.currentStyle.height="auto"),e.node.currentStyle.maxWidth==="100%"&&(e.node.currentStyle.maxWidth="none"),e.node.currentStyle.maxHeight==="100%"&&(e.node.currentStyle.maxHeight="none")),o||parseFloat(s.width)||(t.style.width=e.media.offsetWidth+"px"),o||parseFloat(s.height)||(t.style.height=e.media.offsetHeight+"px"),s=getComputedStyle(t);var c=parseFloat(s.width),p=parseFloat(s.height);e.setDimensions("100%","100%");var C=e.getElement(e.container).querySelector("."+e.options.classPrefix+"poster>img");C&&(C.style.display="");for(var h=e.getElement(e.container).querySelectorAll("object, embed, iframe, video"),x=e.height,y=e.width,F=c,D=x*c/y,M=y*p/x,P=p,A=!(c<M),O=Math.floor(A?F:M),j=Math.floor(A?D:P),R=A?c+"px":O+"px",V=A?j+"px":p+"px",q=0,Y=h.length;q<Y;q++)h[q].style.height=V,h[q].style.width=R,e.media.setSize&&e.media.setSize(R,V),h[q].style.marginLeft=Math.floor((c-O)/2)+"px",h[q].style.marginTop=0}},{key:"setDimensions",value:function(e,o){var t=this;e=(0,a.isString)(e)&&-1<e.indexOf("%")?e:parseFloat(e)+"px",o=(0,a.isString)(o)&&-1<o.indexOf("%")?o:parseFloat(o)+"px",t.getElement(t.container).style.width=e,t.getElement(t.container).style.height=o;for(var s=t.getElement(t.layers).children,c=0,p=s.length;c<p;c++)s[c].style.width=e,s[c].style.height=o}},{key:"setControlsSize",value:function(){var e=this;if(u.visible(e.getElement(e.container)))if(e.rail&&u.visible(e.rail)){for(var o=e.total?getComputedStyle(e.total,null):null,t=o?parseFloat(o.marginLeft)+parseFloat(o.marginRight):0,s=getComputedStyle(e.rail),c=parseFloat(s.marginLeft)+parseFloat(s.marginRight),p=0,C=u.siblings(e.rail,function(A){return A!==e.rail}),h=C.length,x=0;x<h;x++)p+=C[x].offsetWidth;p+=t+(t===0?2*c:c)+1,e.getElement(e.container).style.minWidth=p+"px";var y=(0,a.createEvent)("controlsresize",e.getElement(e.container));e.getElement(e.container).dispatchEvent(y)}else{for(var F=e.getElement(e.controls).children,D=0,M=0,P=F.length;M<P;M++)D+=F[M].offsetWidth;e.getElement(e.container).style.minWidth=D+"px"}}},{key:"addControlElement",value:function(e,o){var t=this;if(t.featurePosition[o]!==void 0){var s=t.getElement(t.controls).children[t.featurePosition[o]-1];s.parentNode.insertBefore(e,s.nextSibling)}else{t.getElement(t.controls).appendChild(e);for(var c=t.getElement(t.controls).children,p=0,C=c.length;p<C;p++)if(e===c[p]){t.featurePosition[o]=p;break}}}},{key:"createIframeLayer",value:function(){var e=this;if(e.isVideo&&e.media.rendererName!==null&&-1<e.media.rendererName.indexOf("iframe")&&!T.default.getElementById(e.media.id+"-iframe-overlay")){var o=T.default.createElement("div"),t=T.default.getElementById(e.media.id+"_"+e.media.rendererName);o.id=e.media.id+"-iframe-overlay",o.className=e.options.classPrefix+"iframe-overlay",o.addEventListener("click",function(s){e.options.clickToPlayPause&&(e.paused?e.play():e.pause(),s.preventDefault(),s.stopPropagation())}),t.parentNode.insertBefore(o,t)}}},{key:"resetSize",value:function(){var e=this;setTimeout(function(){e.setPlayerSize(e.width,e.height),e.setControlsSize()},50)}},{key:"setPoster",value:function(e){var o=this;if(o.getElement(o.container)){var t=o.getElement(o.container).querySelector("."+o.options.classPrefix+"poster");t||((t=T.default.createElement("div")).className=o.options.classPrefix+"poster "+o.options.classPrefix+"layer",o.getElement(o.layers).appendChild(t));var s=t.querySelector("img");!s&&e&&((s=T.default.createElement("img")).className=o.options.classPrefix+"poster-img",s.width="100%",s.height="100%",t.style.display="",t.appendChild(s)),e?(s.setAttribute("src",e),t.style.backgroundImage='url("'+e+'")',t.style.display=""):s?(t.style.backgroundImage="none",t.style.display="none",s.remove()):t.style.display="none"}else(l.IS_IPAD&&o.options.iPadUseNativeControls||l.IS_IPHONE&&o.options.iPhoneUseNativeControls||l.IS_ANDROID&&o.options.AndroidUseNativeControls)&&(o.media.originalNode.poster=e)}},{key:"changeSkin",value:function(e){var o=this;o.getElement(o.container).className=o.options.classPrefix+"container "+e,o.setPlayerSize(o.width,o.height),o.setControlsSize()}},{key:"globalBind",value:function(e,o){var t=this.node?this.node.ownerDocument:T.default;if((e=(0,a.splitEvents)(e,this.id)).d)for(var s=e.d.split(" "),c=0,p=s.length;c<p;c++)s[c].split(".").reduce(function(y,F){return t.addEventListener(F,o,!1),F},"");if(e.w)for(var C=e.w.split(" "),h=0,x=C.length;h<x;h++)C[h].split(".").reduce(function(y,F){return E.default.addEventListener(F,o,!1),F},"")}},{key:"globalUnbind",value:function(e,o){var t=this.node?this.node.ownerDocument:T.default;if((e=(0,a.splitEvents)(e,this.id)).d)for(var s=e.d.split(" "),c=0,p=s.length;c<p;c++)s[c].split(".").reduce(function(y,F){return t.removeEventListener(F,o,!1),F},"");if(e.w)for(var C=e.w.split(" "),h=0,x=C.length;h<x;h++)C[h].split(".").reduce(function(y,F){return E.default.removeEventListener(F,o,!1),F},"")}},{key:"buildfeatures",value:function(e,o,t,s){for(var c=0,p=this.options.features.length;c<p;c++){var C=this.options.features[c];if(this["build"+C])try{this["build"+C](e,o,t,s)}catch(h){console.error("error building "+C,h)}}}},{key:"buildposter",value:function(e,o,t,s){var c=this,p=T.default.createElement("div");p.className=c.options.classPrefix+"poster "+c.options.classPrefix+"layer",t.appendChild(p);var C=s.originalNode.getAttribute("poster");e.options.poster!==""&&(C&&l.IS_IOS&&s.originalNode.removeAttribute("poster"),C=e.options.poster),C?c.setPoster(C):c.media.renderer!==null&&typeof c.media.renderer.getPosterUrl=="function"?c.setPoster(c.media.renderer.getPosterUrl()):p.style.display="none",s.addEventListener("play",function(){p.style.display="none"}),s.addEventListener("playing",function(){p.style.display="none"}),e.options.showPosterWhenEnded&&e.options.autoRewind&&s.addEventListener("ended",function(){p.style.display=""}),s.addEventListener("error",function(){p.style.display="none"}),e.options.showPosterWhenPaused&&s.addEventListener("pause",function(){e.ended||(p.style.display="")})}},{key:"buildoverlays",value:function(e,o,t,s){if(e.isVideo){var c=this,p=T.default.createElement("div"),C=T.default.createElement("div"),h=T.default.createElement("div");p.style.display="none",p.className=c.options.classPrefix+"overlay "+c.options.classPrefix+"layer",p.innerHTML='<div class="'+c.options.classPrefix+'overlay-loading"><span class="'+c.options.classPrefix+'overlay-loading-bg-img"></span></div>',t.appendChild(p),C.style.display="none",C.className=c.options.classPrefix+"overlay "+c.options.classPrefix+"layer",C.innerHTML='<div class="'+c.options.classPrefix+'overlay-error"></div>',t.appendChild(C),h.className=c.options.classPrefix+"overlay "+c.options.classPrefix+"layer "+c.options.classPrefix+"overlay-play",h.innerHTML='<div class="'+c.options.classPrefix+'overlay-button" role="button" tabindex="0" aria-label="'+f.default.t("mejs.play")+'" aria-pressed="false"></div>',h.addEventListener("click",function(){if(c.options.clickToPlayPause){var y=c.getElement(c.container).querySelector("."+c.options.classPrefix+"overlay-button"),F=y.getAttribute("aria-pressed");c.paused?c.play():c.pause(),y.setAttribute("aria-pressed",!!F),c.getElement(c.container).focus()}}),h.addEventListener("keydown",function(y){var F=y.keyCode||y.which||0;if(F===13||l.IS_FIREFOX&&F===32){var D=(0,a.createEvent)("click",h);return h.dispatchEvent(D),!1}}),t.appendChild(h),c.media.rendererName!==null&&(/(youtube|facebook)/i.test(c.media.rendererName)&&!(c.media.originalNode.getAttribute("poster")||e.options.poster||typeof c.media.renderer.getPosterUrl=="function"&&c.media.renderer.getPosterUrl())||l.IS_STOCK_ANDROID||c.media.originalNode.getAttribute("autoplay"))&&(h.style.display="none");var x=!1;s.addEventListener("play",function(){h.style.display="none",p.style.display="none",C.style.display="none",x=!1}),s.addEventListener("playing",function(){h.style.display="none",p.style.display="none",C.style.display="none",x=!1}),s.addEventListener("seeking",function(){h.style.display="none",p.style.display="",x=!1}),s.addEventListener("seeked",function(){h.style.display=c.paused&&!l.IS_STOCK_ANDROID?"":"none",p.style.display="none",x=!1}),s.addEventListener("pause",function(){p.style.display="none",l.IS_STOCK_ANDROID||x||(h.style.display=""),x=!1}),s.addEventListener("waiting",function(){p.style.display="",x=!1}),s.addEventListener("loadeddata",function(){p.style.display="",l.IS_ANDROID&&(s.canplayTimeout=setTimeout(function(){if(T.default.createEvent){var y=T.default.createEvent("HTMLEvents");return y.initEvent("canplay",!0,!0),s.dispatchEvent(y)}},300)),x=!1}),s.addEventListener("canplay",function(){p.style.display="none",clearTimeout(s.canplayTimeout),x=!1}),s.addEventListener("error",function(y){c._handleError(y,c.media,c.node),p.style.display="none",h.style.display="none",x=!0}),s.addEventListener("loadedmetadata",function(){c.controlsEnabled||c.enableControls()}),s.addEventListener("keydown",function(y){c.onkeydown(e,s,y),x=!1})}}},{key:"buildkeyboard",value:function(e,o,t,s){var c=this;c.getElement(c.container).addEventListener("keydown",function(){c.keyboardAction=!0}),c.globalKeydownCallback=function(p){var C=T.default.activeElement.closest("."+c.options.classPrefix+"container"),h=c.media.closest("."+c.options.classPrefix+"container");return c.hasFocus=!(!C||!h||C.id!==h.id),c.onkeydown(e,s,p)},c.globalClickCallback=function(p){c.hasFocus=!!p.target.closest("."+c.options.classPrefix+"container")},c.globalBind("keydown",c.globalKeydownCallback),c.globalBind("click",c.globalClickCallback)}},{key:"onkeydown",value:function(e,o,t){if(e.hasFocus&&e.options.enableKeyboard){for(var s=0,c=e.options.keyActions.length;s<c;s++)for(var p=e.options.keyActions[s],C=0,h=p.keys.length;C<h;C++)if(t.keyCode===p.keys[C])return p.action(e,o,t.keyCode,t),t.preventDefault(),void t.stopPropagation()}return!0}},{key:"play",value:function(){this.proxy.play()}},{key:"pause",value:function(){this.proxy.pause()}},{key:"load",value:function(){this.proxy.load()}},{key:"setCurrentTime",value:function(e){this.proxy.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){return this.proxy.currentTime}},{key:"getDuration",value:function(){return this.proxy.duration}},{key:"setVolume",value:function(e){this.proxy.volume=e}},{key:"getVolume",value:function(){return this.proxy.getVolume()}},{key:"setMuted",value:function(e){this.proxy.setMuted(e)}},{key:"setSrc",value:function(e){this.controlsEnabled||this.enableControls(),this.proxy.setSrc(e)}},{key:"getSrc",value:function(){return this.proxy.getSrc()}},{key:"canPlayType",value:function(e){return this.proxy.canPlayType(e)}},{key:"remove",value:function(){var e=this,o=e.media.rendererName,t=e.media.originalNode.src;for(var s in e.options.features){var c=e.options.features[s];if(e["clean"+c])try{e["clean"+c](e,e.getElement(e.layers),e.getElement(e.controls),e.media)}catch(h){console.error("error cleaning "+c,h)}}var p=e.node.getAttribute("width"),C=e.node.getAttribute("height");p?p.indexOf("%")===-1&&(p+="px"):p="auto",C?C.indexOf("%")===-1&&(C+="px"):C="auto",e.node.style.width=p,e.node.style.height=C,e.setPlayerSize(0,0),e.isDynamic?e.getElement(e.container).parentNode.insertBefore(e.node,e.getElement(e.container)):function(){e.node.setAttribute("controls",!0),e.node.setAttribute("id",e.node.getAttribute("id").replace("_"+o,"").replace("_from_mejs",""));var h=e.getElement(e.container).querySelector("."+e.options.classPrefix+"poster>img");h&&e.node.setAttribute("poster",h.src),delete e.node.autoplay,e.node.setAttribute("src",""),e.media.canPlayType((0,i.getTypeFromFile)(t))!==""&&e.node.setAttribute("src",t),o&&-1<o.indexOf("iframe")&&T.default.getElementById(e.media.id+"-iframe-overlay").remove();var x=e.node.cloneNode();if(x.style.display="",e.getElement(e.container).parentNode.insertBefore(x,e.getElement(e.container)),e.node.remove(),e.mediaFiles)for(var y=0,F=e.mediaFiles.length;y<F;y++){var D=T.default.createElement("source");D.setAttribute("src",e.mediaFiles[y].src),D.setAttribute("type",e.mediaFiles[y].type),x.appendChild(D)}if(e.trackFiles)for(var M=function(O,j){var R=e.trackFiles[O],V=T.default.createElement("track");V.kind=R.kind,V.label=R.label,V.srclang=R.srclang,V.src=R.src,x.appendChild(V),V.addEventListener("load",function(){this.mode="showing",x.textTracks[O].mode="showing"})},P=0,A=e.trackFiles.length;P<A;P++)M(P);delete e.node,delete e.mediaFiles,delete e.trackFiles}(),e.media.renderer&&typeof e.media.renderer.destroy=="function"&&e.media.renderer.destroy(),delete _.default.players[e.id],k(e.getElement(e.container))==="object"&&(e.getElement(e.container).parentNode.querySelector("."+e.options.classPrefix+"offscreen").remove(),e.getElement(e.container).remove()),e.globalUnbind("resize",e.globalResizeCallback),e.globalUnbind("keydown",e.globalKeydownCallback),e.globalUnbind("click",e.globalClickCallback),delete e.media.player}},{key:"paused",get:function(){return this.proxy.paused}},{key:"muted",get:function(){return this.proxy.muted},set:function(e){this.setMuted(e)}},{key:"ended",get:function(){return this.proxy.ended}},{key:"readyState",get:function(){return this.proxy.readyState}},{key:"currentTime",set:function(e){this.setCurrentTime(e)},get:function(){return this.getCurrentTime()}},{key:"duration",get:function(){return this.getDuration()}},{key:"volume",set:function(e){this.setVolume(e)},get:function(){return this.getVolume()}},{key:"src",set:function(e){this.setSrc(e)},get:function(){return this.getSrc()}}]),g}();E.default.MediaElementPlayer=r,_.default.MediaElementPlayer=r,b.default=r},{17:17,2:2,25:25,26:26,27:27,28:28,3:3,30:30,5:5,6:6,7:7}],17:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0});var k,L=function(){function w(m,f){for(var l=0;l<f.length;l++){var a=f[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(m,a.key,a)}}return function(m,f,l){return f&&w(m.prototype,f),l&&w(m,l),m}}(),E=S(3),T=(k=E)&&k.__esModule?k:{default:k},_=function(){function w(m){return function(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}(this,w),this.media=m.media,this.isVideo=m.isVideo,this.classPrefix=m.options.classPrefix,this.createIframeLayer=function(){return m.createIframeLayer()},this.setPoster=function(f){return m.setPoster(f)},this}return L(w,[{key:"play",value:function(){this.media.play()}},{key:"pause",value:function(){this.media.pause()}},{key:"load",value:function(){this.isLoaded||this.media.load(),this.isLoaded=!0}},{key:"setCurrentTime",value:function(m){this.media.setCurrentTime(m)}},{key:"getCurrentTime",value:function(){return this.media.currentTime}},{key:"getDuration",value:function(){return this.media.getDuration()}},{key:"setVolume",value:function(m){this.media.setVolume(m)}},{key:"getVolume",value:function(){return this.media.getVolume()}},{key:"setMuted",value:function(m){this.media.setMuted(m)}},{key:"setSrc",value:function(m){var f=this,l=document.getElementById(f.media.id+"-iframe-overlay");l&&l.remove(),f.media.setSrc(m),f.createIframeLayer(),f.media.renderer!==null&&typeof f.media.renderer.getPosterUrl=="function"&&f.setPoster(f.media.renderer.getPosterUrl())}},{key:"getSrc",value:function(){return this.media.getSrc()}},{key:"canPlayType",value:function(m){return this.media.canPlayType(m)}},{key:"paused",get:function(){return this.media.paused}},{key:"muted",set:function(m){this.setMuted(m)},get:function(){return this.media.muted}},{key:"ended",get:function(){return this.media.ended}},{key:"readyState",get:function(){return this.media.readyState}},{key:"currentTime",set:function(m){this.setCurrentTime(m)},get:function(){return this.getCurrentTime()}},{key:"duration",get:function(){return this.getDuration()}},{key:"remainingTime",get:function(){return this.getDuration()-this.currentTime()}},{key:"volume",set:function(m){this.setVolume(m)},get:function(){return this.getVolume()}},{key:"src",set:function(m){this.setSrc(m)},get:function(){return this.getSrc()}}]),w}();b.default=_,T.default.DefaultPlayer=_},{3:3}],18:[function(S,X,b){T(S(3));var k,L=T(S(7)),E=T(S(16));function T(_){return _&&_.__esModule?_:{default:_}}typeof jQuery<"u"?L.default.$=jQuery:typeof Zepto<"u"?L.default.$=Zepto:typeof ender<"u"&&(L.default.$=ender),(k=L.default.$)!==void 0&&(k.fn.mediaelementplayer=function(_){return _===!1?this.each(function(){var w=k(this).data("mediaelementplayer");w&&w.remove(),k(this).removeData("mediaelementplayer")}):this.each(function(){k(this).data("mediaelementplayer",new E.default(this,_))}),this},k(document).ready(function(){k("."+L.default.MepDefaults.classPrefix+"player").mediaelementplayer()}))},{16:16,3:3,7:7}],19:[function(S,X,b){var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},L=l(S(3)),E=l(S(7)),T=S(8),_=S(27),w=S(28),m=S(25),f=S(26);function l(i){return i&&i.__esModule?i:{default:i}}var a={promise:null,load:function(i){return typeof dashjs<"u"?a.promise=new Promise(function(u){u()}).then(function(){a._createPlayer(i)}):(i.options.path=typeof i.options.path=="string"?i.options.path:"https://cdn.dashjs.org/latest/dash.all.min.js",a.promise=a.promise||(0,f.loadScript)(i.options.path),a.promise.then(function(){a._createPlayer(i)})),a.promise},_createPlayer:function(i){var u=dashjs.MediaPlayer().create();return L.default["__ready__"+i.id](u),u}},n={name:"native_dash",options:{prefix:"native_dash",dash:{path:"https://cdn.dashjs.org/latest/dash.all.min.js",debug:!1,drm:{},robustnessLevel:""}},canPlayType:function(i){return m.HAS_MSE&&-1<["application/dash+xml"].indexOf(i.toLowerCase())},create:function(i,u,d){var v=i.originalNode,r=i.id+"_"+u.prefix,g=v.autoplay,e=v.children,o=null,t=null;v.removeAttribute("type");for(var s=0,c=e.length;s<c;s++)e[s].removeAttribute("type");o=v.cloneNode(!0),u=Object.assign(u,i.options);for(var p=E.default.html5media.properties,C=E.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(A){return A!=="error"}),h=function(A){var O=(0,_.createEvent)(A.type,i);i.dispatchEvent(O)},x=function(A){var O=""+A.substring(0,1).toUpperCase()+A.substring(1);o["get"+O]=function(){return t!==null?o[A]:null},o["set"+O]=function(j){if(E.default.html5media.readOnlyProperties.indexOf(A)===-1)if(A==="src"){var R=(j===void 0?"undefined":k(j))==="object"&&j.src?j.src:j;if(o[A]=R,t!==null){t.reset();for(var V=0,q=C.length;V<q;V++)o.removeEventListener(C[V],h);t=a._createPlayer({options:u.dash,id:r}),j&&(j===void 0?"undefined":k(j))==="object"&&k(j.drm)==="object"&&(t.setProtectionData(j.drm),(0,_.isString)(u.dash.robustnessLevel)&&u.dash.robustnessLevel&&t.getProtectionController().setRobustnessLevel(u.dash.robustnessLevel)),t.attachSource(R),g&&t.play()}}else 0<j&&(o[A]=j)}},y=0,F=p.length;y<F;y++)x(p[y]);if(L.default["__ready__"+r]=function(A){i.dashPlayer=t=A;for(var O,j=dashjs.MediaPlayer.events,R=0,V=C.length;R<V;R++)(O=C[R])==="loadedmetadata"&&(t.initialize(),t.attachView(o),t.setAutoPlay(!1),k(u.dash.drm)!=="object"||E.default.Utils.isObjectEmpty(u.dash.drm)||(t.setProtectionData(u.dash.drm),(0,_.isString)(u.dash.robustnessLevel)&&u.dash.robustnessLevel&&t.getProtectionController().setRobustnessLevel(u.dash.robustnessLevel)),t.attachSource(o.getSrc())),o.addEventListener(O,h);var q=function(W){if(W.type.toLowerCase()==="error")i.generateError(W.message,o.src),console.error(W);else{var z=(0,_.createEvent)(W.type,i);z.data=W,i.dispatchEvent(z)}};for(var Y in j)j.hasOwnProperty(Y)&&t.on(j[Y],function(W){return q(W)})},d&&0<d.length){for(var D=0,M=d.length;D<M;D++)if(T.renderer.renderers[u.prefix].canPlayType(d[D].type)){o.setAttribute("src",d[D].src),d[D].drm!==void 0&&(u.dash.drm=d[D].drm);break}}o.setAttribute("id",r),v.parentNode.insertBefore(o,v),v.autoplay=!1,v.style.display="none",o.setSize=function(A,O){return o.style.width=A+"px",o.style.height=O+"px",o},o.hide=function(){return o.pause(),o.style.display="none",o},o.show=function(){return o.style.display="",o},o.destroy=function(){t!==null&&t.reset()};var P=(0,_.createEvent)("rendererready",o);return i.dispatchEvent(P),i.promises.push(a.load({options:u.dash,id:r})),o}};w.typeChecks.push(function(i){return~i.toLowerCase().indexOf(".mpd")?"application/dash+xml":null}),T.renderer.add(n)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],20:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.PluginDetector=void 0;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L=a(S(3)),E=a(S(2)),T=a(S(7)),_=a(S(5)),w=S(8),m=S(27),f=S(25),l=S(28);function a(e){return e&&e.__esModule?e:{default:e}}var n=b.PluginDetector={plugins:[],hasPluginVersion:function(e,o){var t=n.plugins[e];return o[1]=o[1]||0,o[2]=o[2]||0,t[0]>o[0]||t[0]===o[0]&&t[1]>o[1]||t[0]===o[0]&&t[1]===o[1]&&t[2]>=o[2]},addPlugin:function(e,o,t,s,c){n.plugins[e]=n.detectPlugin(o,t,s,c)},detectPlugin:function(e,o,t,s){var c=[0,0,0],p=void 0,C=void 0;if(f.NAV.plugins!==null&&f.NAV.plugins!==void 0&&k(f.NAV.plugins[e])==="object"){if((p=f.NAV.plugins[e].description)&&(f.NAV.mimeTypes===void 0||!f.NAV.mimeTypes[o]||f.NAV.mimeTypes[o].enabledPlugin))for(var h=0,x=(c=p.replace(e,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".")).length;h<x;h++)c[h]=parseInt(c[h].match(/\d+/),10)}else if(L.default.ActiveXObject!==void 0)try{(C=new ActiveXObject(t))&&(c=s(C))}catch{}return c}};n.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(e){var o=[],t=e.GetVariable("$version");return t&&(t=t.split(" ")[1].split(","),o=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)]),o});var i={create:function(e,o,t){var s={},c=!1;s.options=o,s.id=e.id+"_"+s.options.prefix,s.mediaElement=e,s.flashState={},s.flashApi=null,s.flashApiStack=[];for(var p=T.default.html5media.properties,C=function(N){s.flashState[N]=null;var U=""+N.substring(0,1).toUpperCase()+N.substring(1);s["get"+U]=function(){if(s.flashApi!==null){if(typeof s.flashApi["get_"+N]=="function"){var B=s.flashApi["get_"+N]();return N==="buffered"?{start:function(){return 0},end:function(){return B},length:1}:B}return null}return null},s["set"+U]=function(B){if(N==="src"&&(B=(0,l.absolutizeUrl)(B)),s.flashApi!==null&&s.flashApi["set_"+N]!==void 0)try{s.flashApi["set_"+N](B)}catch{}else s.flashApiStack.push({type:"set",propName:N,value:B})}},h=0,x=p.length;h<x;h++)C(p[h]);var y=T.default.html5media.methods,F=function(N){s[N]=function(){if(c)if(s.flashApi!==null){if(s.flashApi["fire_"+N])try{s.flashApi["fire_"+N]()}catch{}}else s.flashApiStack.push({type:"call",methodName:N})}};y.push("stop");for(var D=0,M=y.length;D<M;D++)F(y[D]);for(var P=["rendererready"],A=0,O=P.length;A<O;A++){var j=(0,m.createEvent)(P[A],s);e.dispatchEvent(j)}L.default["__ready__"+s.id]=function(){if(s.flashReady=!0,s.flashApi=E.default.getElementById("__"+s.id),s.flashApiStack.length)for(var N=0,U=s.flashApiStack.length;N<U;N++){var B=s.flashApiStack[N];if(B.type==="set"){var G=B.propName,Z=""+G.substring(0,1).toUpperCase()+G.substring(1);s["set"+Z](B.value)}else B.type==="call"&&s[B.methodName]()}},L.default["__event__"+s.id]=function(N,U){var B=(0,m.createEvent)(N,s);if(U)try{B.data=JSON.parse(U),B.details.data=JSON.parse(U)}catch{B.message=U}s.mediaElement.dispatchEvent(B)},s.flashWrapper=E.default.createElement("div"),["always","sameDomain"].indexOf(s.options.shimScriptAccess)===-1&&(s.options.shimScriptAccess="sameDomain");var R=e.originalNode.autoplay,V=["uid="+s.id,"autoplay="+R,"allowScriptAccess="+s.options.shimScriptAccess,"preload="+(e.originalNode.getAttribute("preload")||"")],q=e.originalNode!==null&&e.originalNode.tagName.toLowerCase()==="video",Y=q?e.originalNode.height:1,W=q?e.originalNode.width:1;e.originalNode.getAttribute("src")&&V.push("src="+e.originalNode.getAttribute("src")),s.options.enablePseudoStreaming===!0&&(V.push("pseudostreamstart="+s.options.pseudoStreamingStartQueryParam),V.push("pseudostreamtype="+s.options.pseudoStreamingType)),s.options.streamDelimiter&&V.push("streamdelimiter="+encodeURIComponent(s.options.streamDelimiter)),s.options.proxyType&&V.push("proxytype="+s.options.proxyType),e.appendChild(s.flashWrapper),e.originalNode.style.display="none";var z=[];if(f.IS_IE||f.IS_EDGE){var K=E.default.createElement("div");s.flashWrapper.appendChild(K),z=f.IS_EDGE?['type="application/x-shockwave-flash"','data="'+s.options.pluginPath+s.options.filename+'"','id="__'+s.id+'"','width="'+W+'"','height="'+Y+`'"`]:['classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"','codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"','id="__'+s.id+'"','width="'+W+'"','height="'+Y+'"'],q||z.push('style="clip: rect(0 0 0 0); position: absolute;"'),K.outerHTML="<object "+z.join(" ")+'><param name="movie" value="'+s.options.pluginPath+s.options.filename+"?x="+new Date+'" /><param name="flashvars" value="'+V.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+s.options.shimScriptAccess+'" /><param name="allowFullScreen" value="true" /><div>'+_.default.t("mejs.install-flash")+"</div></object>"}else z=['id="__'+s.id+'"','name="__'+s.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowScriptAccess="'+s.options.shimScriptAccess+'"','allowFullScreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+s.options.pluginPath+s.options.filename+'"','flashvars="'+V.join("&")+'"'],q?(z.push('width="'+W+'"'),z.push('height="'+Y+'"')):z.push('style="position: fixed; left: -9999em; top: -9999em;"'),s.flashWrapper.innerHTML="<embed "+z.join(" ")+">";if(s.flashNode=s.flashWrapper.lastChild,s.hide=function(){c=!1,q&&(s.flashNode.style.display="none")},s.show=function(){c=!0,q&&(s.flashNode.style.display="")},s.setSize=function(N,U){s.flashNode.style.width=N+"px",s.flashNode.style.height=U+"px",s.flashApi!==null&&typeof s.flashApi.fire_setSize=="function"&&s.flashApi.fire_setSize(N,U)},s.destroy=function(){s.flashNode.remove()},t&&0<t.length){for(var I=0,H=t.length;I<H;I++)if(w.renderer.renderers[o.prefix].canPlayType(t[I].type)){s.setSrc(t[I].src);break}}return s}};if(n.hasPluginVersion("flash",[10,0,0])){l.typeChecks.push(function(e){return(e=e.toLowerCase()).startsWith("rtmp")?~e.indexOf(".mp3")?"audio/rtmp":"video/rtmp":/\.og(a|g)/i.test(e)?"audio/ogg":~e.indexOf(".m3u8")?"application/x-mpegURL":~e.indexOf(".mpd")?"application/dash+xml":~e.indexOf(".flv")?"video/flv":null});var u={name:"flash_video",options:{prefix:"flash_video",filename:"mediaelement-flash-video.swf",enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",pseudoStreamingType:"byte",proxyType:"",streamDelimiter:""},canPlayType:function(e){return~["video/mp4","video/rtmp","audio/rtmp","rtmp/mp4","audio/mp4","video/flv","video/x-flv"].indexOf(e.toLowerCase())},create:i.create};w.renderer.add(u);var d={name:"flash_hls",options:{prefix:"flash_hls",filename:"mediaelement-flash-video-hls.swf"},canPlayType:function(e){return~["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())},create:i.create};w.renderer.add(d);var v={name:"flash_dash",options:{prefix:"flash_dash",filename:"mediaelement-flash-video-mdash.swf"},canPlayType:function(e){return~["application/dash+xml"].indexOf(e.toLowerCase())},create:i.create};w.renderer.add(v);var r={name:"flash_audio",options:{prefix:"flash_audio",filename:"mediaelement-flash-audio.swf"},canPlayType:function(e){return~["audio/mp3"].indexOf(e.toLowerCase())},create:i.create};w.renderer.add(r);var g={name:"flash_audio_ogg",options:{prefix:"flash_audio_ogg",filename:"mediaelement-flash-audio-ogg.swf"},canPlayType:function(e){return~["audio/ogg","audio/oga","audio/ogv"].indexOf(e.toLowerCase())},create:i.create};w.renderer.add(g)}},{2:2,25:25,27:27,28:28,3:3,5:5,7:7,8:8}],21:[function(S,X,b){var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},L=l(S(3)),E=l(S(7)),T=S(8),_=S(27),w=S(25),m=S(28),f=S(26);function l(i){return i&&i.__esModule?i:{default:i}}var a={promise:null,load:function(i){return typeof flvjs<"u"?a.promise=new Promise(function(u){u()}).then(function(){a._createPlayer(i)}):(i.options.path=typeof i.options.path=="string"?i.options.path:"https://cdn.jsdelivr.net/npm/flv.js@latest",a.promise=a.promise||(0,f.loadScript)(i.options.path),a.promise.then(function(){a._createPlayer(i)})),a.promise},_createPlayer:function(i){flvjs.LoggingControl.enableDebug=i.options.debug,flvjs.LoggingControl.enableVerbose=i.options.debug;var u=flvjs.createPlayer(i.options,i.configs);return L.default["__ready__"+i.id](u),u}},n={name:"native_flv",options:{prefix:"native_flv",flv:{path:"https://cdn.jsdelivr.net/npm/flv.js@latest",cors:!0,debug:!1}},canPlayType:function(i){return w.HAS_MSE&&-1<["video/x-flv","video/flv"].indexOf(i.toLowerCase())},create:function(i,u,d){var v=i.originalNode,r=i.id+"_"+u.prefix,g=null,e=null;g=v.cloneNode(!0),u=Object.assign(u,i.options);for(var o=E.default.html5media.properties,t=E.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(M){return M!=="error"}),s=function(M){var P=(0,_.createEvent)(M.type,i);i.dispatchEvent(P)},c=function(M){var P=""+M.substring(0,1).toUpperCase()+M.substring(1);g["get"+P]=function(){return e!==null?g[M]:null},g["set"+P]=function(A){if(E.default.html5media.readOnlyProperties.indexOf(M)===-1)if(M==="src"){if(g[M]=(A===void 0?"undefined":k(A))==="object"&&A.src?A.src:A,e!==null){var O={type:"flv"};O.url=A,O.cors=u.flv.cors,O.debug=u.flv.debug,O.path=u.flv.path;var j=u.flv.configs;e.destroy();for(var R=0,V=t.length;R<V;R++)g.removeEventListener(t[R],s);(e=a._createPlayer({options:O,configs:j,id:r})).attachMediaElement(g),e.load()}}else 0<A&&(g[M]=A)}},p=0,C=o.length;p<C;p++)c(o[p]);if(L.default["__ready__"+r]=function(M){i.flvPlayer=e=M;for(var P,A=flvjs.Events,O=0,j=t.length;O<j;O++)(P=t[O])==="loadedmetadata"&&(e.unload(),e.detachMediaElement(),e.attachMediaElement(g),e.load()),g.addEventListener(P,s);var R=function(q){A.hasOwnProperty(q)&&e.on(A[q],function(){for(var Y=arguments.length,W=Array(Y),z=0;z<Y;z++)W[z]=arguments[z];return function(K,I){if(K==="error"){var H=I[0]+": "+I[1]+" "+I[2].msg;i.generateError(H,g.src)}else{var N=(0,_.createEvent)(K,i);N.data=I,i.dispatchEvent(N)}}(A[q],W)})};for(var V in A)R(V)},d&&0<d.length){for(var h=0,x=d.length;h<x;h++)if(T.renderer.renderers[u.prefix].canPlayType(d[h].type)){g.setAttribute("src",d[h].src);break}}g.setAttribute("id",r),v.parentNode.insertBefore(g,v),v.autoplay=!1,v.style.display="none";var y={type:"flv"};y.url=g.src,y.cors=u.flv.cors,y.debug=u.flv.debug,y.path=u.flv.path;var F=u.flv.configs;g.setSize=function(M,P){return g.style.width=M+"px",g.style.height=P+"px",g},g.hide=function(){return e!==null&&e.pause(),g.style.display="none",g},g.show=function(){return g.style.display="",g},g.destroy=function(){e!==null&&e.destroy()};var D=(0,_.createEvent)("rendererready",g);return i.dispatchEvent(D),i.promises.push(a.load({options:y,configs:F,id:r})),g}};m.typeChecks.push(function(i){return~i.toLowerCase().indexOf(".flv")?"video/flv":null}),T.renderer.add(n)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],22:[function(S,X,b){var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},L=l(S(3)),E=l(S(7)),T=S(8),_=S(27),w=S(25),m=S(28),f=S(26);function l(i){return i&&i.__esModule?i:{default:i}}var a={promise:null,load:function(i){return typeof Hls<"u"?a.promise=new Promise(function(u){u()}).then(function(){a._createPlayer(i)}):(i.options.path=typeof i.options.path=="string"?i.options.path:"https://cdn.jsdelivr.net/npm/hls.js@latest",a.promise=a.promise||(0,f.loadScript)(i.options.path),a.promise.then(function(){a._createPlayer(i)})),a.promise},_createPlayer:function(i){var u=new Hls(i.options);return L.default["__ready__"+i.id](u),u}},n={name:"native_hls",options:{prefix:"native_hls",hls:{path:"https://cdn.jsdelivr.net/npm/hls.js@latest",autoStartLoad:!1,debug:!1}},canPlayType:function(i){return w.HAS_MSE&&-1<["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(i.toLowerCase())},create:function(i,u,d){var v=i.originalNode,r=i.id+"_"+u.prefix,g=v.getAttribute("preload"),e=v.autoplay,o=null,t=null,s=0,c=d.length;t=v.cloneNode(!0),(u=Object.assign(u,i.options)).hls.autoStartLoad=g&&g!=="none"||e;for(var p=E.default.html5media.properties,C=E.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(M){return M!=="error"}),h=function(M){var P=(0,_.createEvent)(M.type,i);i.dispatchEvent(P)},x=function(M){var P=""+M.substring(0,1).toUpperCase()+M.substring(1);t["get"+P]=function(){return o!==null?t[M]:null},t["set"+P]=function(A){if(E.default.html5media.readOnlyProperties.indexOf(M)===-1)if(M==="src"){if(t[M]=(A===void 0?"undefined":k(A))==="object"&&A.src?A.src:A,o!==null){o.destroy();for(var O=0,j=C.length;O<j;O++)t.removeEventListener(C[O],h);(o=a._createPlayer({options:u.hls,id:r})).loadSource(A),o.attachMedia(t)}}else 0<A&&(t[M]=A)}},y=0,F=p.length;y<F;y++)x(p[y]);if(L.default["__ready__"+r]=function(M){i.hlsPlayer=o=M;for(var P=Hls.Events,A=function(W){if(W==="loadedmetadata"){var z=i.originalNode.src;o.detachMedia(),o.loadSource(z),o.attachMedia(t)}t.addEventListener(W,h)},O=0,j=C.length;O<j;O++)A(C[O]);var R=void 0,V=void 0,q=function(W){P.hasOwnProperty(W)&&o.on(P[W],function(){for(var z=arguments.length,K=Array(z),I=0;I<z;I++)K[I]=arguments[I];return function(H,N){if(H==="hlsError"&&(console.warn(N),(N=N[1]).fatal))switch(N.type){case"mediaError":var U=new Date().getTime();if(!R||3e3<U-R)R=new Date().getTime(),o.recoverMediaError();else if(!V||3e3<U-V)V=new Date().getTime(),console.warn("Attempting to swap Audio Codec and recover from media error"),o.swapAudioCodec(),o.recoverMediaError();else{var B="Cannot recover, last media error recovery failed";i.generateError(B,t.src),console.error(B)}break;case"networkError":if(N.details==="manifestLoadError")if(s<c&&d[s+1]!==void 0)t.setSrc(d[s++].src),t.load(),t.play();else{var G="Network error";i.generateError(G,d),console.error(G)}else{var Z="Network error";i.generateError(Z,d),console.error(Z)}break;default:o.destroy()}else{var Q=(0,_.createEvent)(H,i);Q.data=N,i.dispatchEvent(Q)}}(P[W],K)})};for(var Y in P)q(Y)},0<c){for(;s<c;s++)if(T.renderer.renderers[u.prefix].canPlayType(d[s].type)){t.setAttribute("src",d[s].src);break}}g==="auto"||e||(t.addEventListener("play",function(){o!==null&&o.startLoad()}),t.addEventListener("pause",function(){o!==null&&o.stopLoad()})),t.setAttribute("id",r),v.parentNode.insertBefore(t,v),v.autoplay=!1,v.style.display="none",t.setSize=function(M,P){return t.style.width=M+"px",t.style.height=P+"px",t},t.hide=function(){return t.pause(),t.style.display="none",t},t.show=function(){return t.style.display="",t},t.destroy=function(){o!==null&&(o.stopLoad(),o.destroy())};var D=(0,_.createEvent)("rendererready",t);return i.dispatchEvent(D),i.promises.push(a.load({options:u.hls,id:r})),t}};m.typeChecks.push(function(i){return~i.toLowerCase().indexOf(".m3u8")?"application/x-mpegURL":null}),T.renderer.add(n)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],23:[function(S,X,b){var k=m(S(3)),L=m(S(2)),E=m(S(7)),T=S(8),_=S(27),w=S(25);function m(l){return l&&l.__esModule?l:{default:l}}var f={name:"html5",options:{prefix:"html5"},canPlayType:function(l){var a=L.default.createElement("video");return w.IS_ANDROID&&/\/mp(3|4)$/i.test(l)||~["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(l.toLowerCase())&&w.SUPPORTS_NATIVE_HLS?"yes":a.canPlayType?a.canPlayType(l.toLowerCase()).replace(/no/,""):""},create:function(l,a,n){var i=l.id+"_"+a.prefix,u=!1,d=null;l.originalNode===void 0||l.originalNode===null?(d=L.default.createElement("audio"),l.appendChild(d)):d=l.originalNode,d.setAttribute("id",i);for(var v=E.default.html5media.properties,r=function(x){var y=""+x.substring(0,1).toUpperCase()+x.substring(1);d["get"+y]=function(){return d[x]},d["set"+y]=function(F){E.default.html5media.readOnlyProperties.indexOf(x)===-1&&0<F&&(d[x]=F)}},g=0,e=v.length;g<e;g++)r(v[g]);for(var o,t=E.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(x){return x!=="error"}),s=0,c=t.length;s<c;s++)o=t[s],d.addEventListener(o,function(x){if(u){var y=(0,_.createEvent)(x.type,x.target);l.dispatchEvent(y)}});d.setSize=function(x,y){return d.style.width=x+"px",d.style.height=y+"px",d},d.hide=function(){return u=!1,d.style.display="none",d},d.show=function(){return u=!0,d.style.display="",d};var p=0,C=n.length;if(0<C){for(;p<C;p++)if(T.renderer.renderers[a.prefix].canPlayType(n[p].type)){d.setAttribute("src",n[p].src);break}}d.addEventListener("error",function(x){x.target.error.code===4&&u&&(p<C&&n[p+1]!==void 0?(d.src=n[p++].src,d.load(),d.play()):l.generateError("Media error: Format(s) not supported or source(s) not found",n))});var h=(0,_.createEvent)("rendererready",d);return l.dispatchEvent(h),d}};k.default.HtmlMediaElement=E.default.HtmlMediaElement=f,T.renderer.add(f)},{2:2,25:25,27:27,3:3,7:7,8:8}],24:[function(S,X,b){var k=f(S(3)),L=f(S(2)),E=f(S(7)),T=S(8),_=S(27),w=S(28),m=S(26);function f(n){return n&&n.__esModule?n:{default:n}}var l={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(n){l.isLoaded=typeof YT<"u"&&YT.loaded,l.isLoaded?l.createIframe(n):(l.loadIframeApi(),l.iframeQueue.push(n))},loadIframeApi:function(){l.isIframeStarted||((0,m.loadScript)("https://www.youtube.com/player_api"),l.isIframeStarted=!0)},iFrameReady:function(){for(l.isLoaded=!0,l.isIframeLoaded=!0;0<l.iframeQueue.length;){var n=l.iframeQueue.pop();l.createIframe(n)}},createIframe:function(n){return new YT.Player(n.containerId,n)},getYouTubeId:function(n){var i="";return 0<n.indexOf("?")?(i=l.getYouTubeIdFromParam(n))===""&&(i=l.getYouTubeIdFromUrl(n)):i=l.getYouTubeIdFromUrl(n),(i=i.substring(i.lastIndexOf("/")+1).split("?"))[0]},getYouTubeIdFromParam:function(n){if(n==null||!n.trim().length)return null;for(var i=n.split("?")[1].split("&"),u="",d=0,v=i.length;d<v;d++){var r=i[d].split("=");if(r[0]==="v"){u=r[1];break}}return u},getYouTubeIdFromUrl:function(n){return n!=null&&n.trim().length?(n=n.split("?")[0]).substring(n.lastIndexOf("/")+1):null},getYouTubeNoCookieUrl:function(n){if(n==null||!n.trim().length||n.indexOf("//www.youtube")===-1)return n;var i=n.split("/");return i[2]=i[2].replace(".com","-nocookie.com"),i.join("/")}},a={name:"youtube_iframe",options:{prefix:"youtube_iframe",youtube:{autoplay:0,controls:0,disablekb:1,end:0,loop:0,modestbranding:0,playsinline:0,rel:0,showinfo:0,start:0,iv_load_policy:3,nocookie:!1,imageQuality:null}},canPlayType:function(n){return~["video/youtube","video/x-youtube"].indexOf(n.toLowerCase())},create:function(n,i,u){var d={},v=[],r=null,g=!0,e=!1,o=null;d.options=i,d.id=n.id+"_"+i.prefix,d.mediaElement=n;for(var t=E.default.html5media.properties,s=function(j){var R=""+j.substring(0,1).toUpperCase()+j.substring(1);d["get"+R]=function(){if(r!==null){switch(j){case"currentTime":return r.getCurrentTime();case"duration":return r.getDuration();case"volume":return r.getVolume()/100;case"playbackRate":return r.getPlaybackRate();case"paused":return g;case"ended":return e;case"muted":return r.isMuted();case"buffered":var V=r.getVideoLoadedFraction(),q=r.getDuration();return{start:function(){return 0},end:function(){return V*q},length:1};case"src":return r.getVideoUrl();case"readyState":return 4}return null}return null},d["set"+R]=function(V){if(r!==null)switch(j){case"src":var q=typeof V=="string"?V:V[0].src,Y=l.getYouTubeId(q);n.originalNode.autoplay?r.loadVideoById(Y):r.cueVideoById(Y);break;case"currentTime":r.seekTo(V);break;case"muted":V?r.mute():r.unMute(),setTimeout(function(){var z=(0,_.createEvent)("volumechange",d);n.dispatchEvent(z)},50);break;case"volume":r.setVolume(100*V),setTimeout(function(){var z=(0,_.createEvent)("volumechange",d);n.dispatchEvent(z)},50);break;case"playbackRate":r.setPlaybackRate(V),setTimeout(function(){var z=(0,_.createEvent)("ratechange",d);n.dispatchEvent(z)},50);break;case"readyState":var W=(0,_.createEvent)("canplay",d);n.dispatchEvent(W)}else v.push({type:"set",propName:j,value:V})}},c=0,p=t.length;c<p;c++)s(t[c]);for(var C=E.default.html5media.methods,h=function(j){d[j]=function(){if(r!==null)switch(j){case"play":return g=!1,r.playVideo();case"pause":return g=!0,r.pauseVideo();case"load":return null}else v.push({type:"call",methodName:j})}},x=0,y=C.length;x<y;x++)h(C[x]);var F=L.default.createElement("div");F.id=d.id,d.options.youtube.nocookie&&(n.originalNode.src=l.getYouTubeNoCookieUrl(u[0].src)),n.originalNode.parentNode.insertBefore(F,n.originalNode),n.originalNode.style.display="none";var D=n.originalNode.tagName.toLowerCase()==="audio",M=D?"1":n.originalNode.height,P=D?"1":n.originalNode.width,A=l.getYouTubeId(u[0].src),O={id:d.id,containerId:F.id,videoId:A,height:M,width:P,playerVars:Object.assign({controls:0,rel:0,disablekb:1,showinfo:0,modestbranding:0,html5:1,iv_load_policy:3},d.options.youtube),origin:k.default.location.host,events:{onReady:function(j){if(n.youTubeApi=r=j.target,n.youTubeState={paused:!0,ended:!1},v.length)for(var R=0,V=v.length;R<V;R++){var q=v[R];if(q.type==="set"){var Y=q.propName,W=""+Y.substring(0,1).toUpperCase()+Y.substring(1);d["set"+W](q.value)}else q.type==="call"&&d[q.methodName]()}o=r.getIframe(),n.originalNode.muted&&r.mute();for(var z=["mouseover","mouseout"],K=function(Z){var Q=(0,_.createEvent)(Z.type,d);n.dispatchEvent(Q)},I=0,H=z.length;I<H;I++)o.addEventListener(z[I],K,!1);for(var N=["rendererready","loadedmetadata","loadeddata","canplay"],U=0,B=N.length;U<B;U++){var G=(0,_.createEvent)(N[U],d);n.dispatchEvent(G)}},onStateChange:function(j){var R=[];switch(j.data){case-1:R=["loadedmetadata"],g=!0,e=!1;break;case 0:R=["ended"],g=!1,e=!d.options.youtube.loop,d.options.youtube.loop||d.stopInterval();break;case 1:R=["play","playing"],e=g=!1,d.startInterval();break;case 2:R=["pause"],g=!0,e=!1,d.stopInterval();break;case 3:R=["progress"],e=!1;break;case 5:R=["loadeddata","loadedmetadata","canplay"],g=!0,e=!1}for(var V=0,q=R.length;V<q;V++){var Y=(0,_.createEvent)(R[V],d);n.dispatchEvent(Y)}},onError:function(j){return function(R){var V="";switch(R.data){case 2:V="The request contains an invalid parameter value. Verify that video ID has 11 characters and that contains no invalid characters, such as exclamation points or asterisks.";break;case 5:V="The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.";break;case 100:V="The video requested was not found. Either video has been removed or has been marked as private.";break;case 101:case 105:V="The owner of the requested video does not allow it to be played in embedded players.";break;default:V="Unknown error."}n.generateError("Code "+R.data+": "+V,u)}(j)}}};return(D||n.originalNode.hasAttribute("playsinline"))&&(O.playerVars.playsinline=1),n.originalNode.controls&&(O.playerVars.controls=1),n.originalNode.autoplay&&(O.playerVars.autoplay=1),n.originalNode.loop&&(O.playerVars.loop=1),(O.playerVars.loop&&parseInt(O.playerVars.loop,10)===1||-1<n.originalNode.src.indexOf("loop="))&&!O.playerVars.playlist&&n.originalNode.src.indexOf("playlist=")===-1&&(O.playerVars.playlist=l.getYouTubeId(n.originalNode.src)),l.enqueueIframe(O),d.onEvent=function(j,R,V){V!=null&&(n.youTubeState=V)},d.setSize=function(j,R){r!==null&&r.setSize(j,R)},d.hide=function(){d.stopInterval(),d.pause(),o&&(o.style.display="none")},d.show=function(){o&&(o.style.display="")},d.destroy=function(){r.destroy()},d.interval=null,d.startInterval=function(){d.interval=setInterval(function(){var j=(0,_.createEvent)("timeupdate",d);n.dispatchEvent(j)},250)},d.stopInterval=function(){d.interval&&clearInterval(d.interval)},d.getPosterUrl=function(){var j=i.youtube.imageQuality,R=l.getYouTubeId(n.originalNode.src);return j&&-1<["default","hqdefault","mqdefault","sddefault","maxresdefault"].indexOf(j)&&R?"https://img.youtube.com/vi/"+R+"/"+j+".jpg":""},d}};k.default.onYouTubePlayerAPIReady=function(){l.iFrameReady()},w.typeChecks.push(function(n){return/\/\/(www\.youtube|youtu\.?be)/i.test(n)?"video/x-youtube":null}),T.renderer.add(a)},{2:2,26:26,27:27,28:28,3:3,7:7,8:8}],25:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.cancelFullScreen=b.requestFullScreen=b.isFullScreen=b.FULLSCREEN_EVENT_NAME=b.HAS_NATIVE_FULLSCREEN_ENABLED=b.HAS_TRUE_NATIVE_FULLSCREEN=b.HAS_IOS_FULLSCREEN=b.HAS_MS_NATIVE_FULLSCREEN=b.HAS_MOZ_NATIVE_FULLSCREEN=b.HAS_WEBKIT_NATIVE_FULLSCREEN=b.HAS_NATIVE_FULLSCREEN=b.SUPPORTS_NATIVE_HLS=b.SUPPORT_PASSIVE_EVENT=b.SUPPORT_POINTER_EVENTS=b.HAS_MSE=b.IS_STOCK_ANDROID=b.IS_SAFARI=b.IS_FIREFOX=b.IS_CHROME=b.IS_EDGE=b.IS_IE=b.IS_ANDROID=b.IS_IOS=b.IS_IPOD=b.IS_IPHONE=b.IS_IPAD=b.UA=b.NAV=void 0;var k=T(S(3)),L=T(S(2)),E=T(S(7));function T(N){return N&&N.__esModule?N:{default:N}}for(var _=b.NAV=k.default.navigator,w=b.UA=_.userAgent.toLowerCase(),m=b.IS_IPAD=/ipad/i.test(w)&&!k.default.MSStream,f=b.IS_IPHONE=/iphone/i.test(w)&&!k.default.MSStream,l=b.IS_IPOD=/ipod/i.test(w)&&!k.default.MSStream,a=(b.IS_IOS=/ipad|iphone|ipod/i.test(w)&&!k.default.MSStream,b.IS_ANDROID=/android/i.test(w)),n=b.IS_IE=/(trident|microsoft)/i.test(_.appName),i=b.IS_EDGE=("msLaunchUri"in _)&&!("documentMode"in L.default),u=b.IS_CHROME=/chrome/i.test(w),d=b.IS_FIREFOX=/firefox/i.test(w),v=b.IS_SAFARI=/safari/i.test(w)&&!u,r=b.IS_STOCK_ANDROID=/^mozilla\/\d+\.\d+\s\(linux;\su;/i.test(w),g=b.HAS_MSE=("MediaSource"in k.default),e=b.SUPPORT_POINTER_EVENTS=function(){var N=L.default.createElement("x"),U=L.default.documentElement,B=k.default.getComputedStyle;if(!("pointerEvents"in N.style))return!1;N.style.pointerEvents="auto",N.style.pointerEvents="x",U.appendChild(N);var G=B&&(B(N,"")||{}).pointerEvents==="auto";return N.remove(),!!G}(),o=b.SUPPORT_PASSIVE_EVENT=function(){var N=!1;try{var U=Object.defineProperty({},"passive",{get:function(){N=!0}});k.default.addEventListener("test",null,U)}catch{}return N}(),t=["source","track","audio","video"],s=void 0,c=0,p=t.length;c<p;c++)s=L.default.createElement(t[c]);var C=b.SUPPORTS_NATIVE_HLS=v||a&&(u||r)||n&&/edge/i.test(w),h=s.webkitEnterFullscreen!==void 0,x=s.requestFullscreen!==void 0;h&&/mac os x 10_5/i.test(w)&&(h=x=!1);var y=s.webkitRequestFullScreen!==void 0,F=s.mozRequestFullScreen!==void 0,D=s.msRequestFullscreen!==void 0,M=y||F||D,P=M,A="",O=void 0,j=void 0,R=void 0;F?P=L.default.mozFullScreenEnabled:D&&(P=L.default.msFullscreenEnabled),u&&(h=!1),M&&(y?A="webkitfullscreenchange":F?A="mozfullscreenchange":D&&(A="MSFullscreenChange"),b.isFullScreen=O=function(){return F?L.default.mozFullScreen:y?L.default.webkitIsFullScreen:D?L.default.msFullscreenElement!==null:void 0},b.requestFullScreen=j=function(N){y?N.webkitRequestFullScreen():F?N.mozRequestFullScreen():D&&N.msRequestFullscreen()},b.cancelFullScreen=R=function(){y?L.default.webkitCancelFullScreen():F?L.default.mozCancelFullScreen():D&&L.default.msExitFullscreen()});var V=b.HAS_NATIVE_FULLSCREEN=x,q=b.HAS_WEBKIT_NATIVE_FULLSCREEN=y,Y=b.HAS_MOZ_NATIVE_FULLSCREEN=F,W=b.HAS_MS_NATIVE_FULLSCREEN=D,z=b.HAS_IOS_FULLSCREEN=h,K=b.HAS_TRUE_NATIVE_FULLSCREEN=M,I=b.HAS_NATIVE_FULLSCREEN_ENABLED=P,H=b.FULLSCREEN_EVENT_NAME=A;b.isFullScreen=O,b.requestFullScreen=j,b.cancelFullScreen=R,E.default.Features=E.default.Features||{},E.default.Features.isiPad=m,E.default.Features.isiPod=l,E.default.Features.isiPhone=f,E.default.Features.isiOS=E.default.Features.isiPhone||E.default.Features.isiPad,E.default.Features.isAndroid=a,E.default.Features.isIE=n,E.default.Features.isEdge=i,E.default.Features.isChrome=u,E.default.Features.isFirefox=d,E.default.Features.isSafari=v,E.default.Features.isStockAndroid=r,E.default.Features.hasMSE=g,E.default.Features.supportsNativeHLS=C,E.default.Features.supportsPointerEvents=e,E.default.Features.supportsPassiveEvent=o,E.default.Features.hasiOSFullScreen=z,E.default.Features.hasNativeFullscreen=V,E.default.Features.hasWebkitNativeFullScreen=q,E.default.Features.hasMozNativeFullScreen=Y,E.default.Features.hasMsNativeFullScreen=W,E.default.Features.hasTrueNativeFullScreen=K,E.default.Features.nativeFullScreenEnabled=I,E.default.Features.fullScreenEventName=H,E.default.Features.isFullScreen=O,E.default.Features.requestFullScreen=j,E.default.Features.cancelFullScreen=R},{2:2,3:3,7:7}],26:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.removeClass=b.addClass=b.hasClass=void 0,b.loadScript=_,b.offset=w,b.toggleClass=u,b.fadeOut=d,b.fadeIn=v,b.siblings=r,b.visible=g,b.ajax=e;var k=T(S(3)),L=T(S(2)),E=T(S(7));function T(o){return o&&o.__esModule?o:{default:o}}function _(o){return new Promise(function(t,s){var c=L.default.createElement("script");c.src=o,c.async=!0,c.onload=function(){c.remove(),t()},c.onerror=function(){c.remove(),s()},L.default.head.appendChild(c)})}function w(o){var t=o.getBoundingClientRect(),s=k.default.pageXOffset||L.default.documentElement.scrollLeft,c=k.default.pageYOffset||L.default.documentElement.scrollTop;return{top:t.top+c,left:t.left+s}}var m=void 0,f=void 0,l=void 0;"classList"in L.default.documentElement?(m=function(o,t){return o.classList!==void 0&&o.classList.contains(t)},f=function(o,t){return o.classList.add(t)},l=function(o,t){return o.classList.remove(t)}):(m=function(o,t){return new RegExp("\\b"+t+"\\b").test(o.className)},f=function(o,t){a(o,t)||(o.className+=" "+t)},l=function(o,t){o.className=o.className.replace(new RegExp("\\b"+t+"\\b","g"),"")});var a=b.hasClass=m,n=b.addClass=f,i=b.removeClass=l;function u(o,t){a(o,t)?i(o,t):n(o,t)}function d(o){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:400,s=arguments[2];o.style.opacity||(o.style.opacity=1);var c=null;k.default.requestAnimationFrame(function p(C){var h=C-(c=c||C),x=parseFloat(1-h/t,2);o.style.opacity=x<0?0:x,t<h?s&&typeof s=="function"&&s():k.default.requestAnimationFrame(p)})}function v(o){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:400,s=arguments[2];o.style.opacity||(o.style.opacity=0);var c=null;k.default.requestAnimationFrame(function p(C){var h=C-(c=c||C),x=parseFloat(h/t,2);o.style.opacity=1<x?1:x,t<h?s&&typeof s=="function"&&s():k.default.requestAnimationFrame(p)})}function r(o,t){var s=[];for(o=o.parentNode.firstChild;t&&!t(o)||s.push(o),o=o.nextSibling;);return s}function g(o){return o.getClientRects!==void 0&&o.getClientRects==="function"?!!(o.offsetWidth||o.offsetHeight||o.getClientRects().length):!(!o.offsetWidth&&!o.offsetHeight)}function e(o,t,s,c){var p=k.default.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),C="application/x-www-form-urlencoded; charset=UTF-8",h=!1,x="*/".concat("*");switch(t){case"text":C="text/plain";break;case"json":C="application/json, text/javascript";break;case"html":C="text/html";break;case"xml":C="application/xml, text/xml"}C!=="application/x-www-form-urlencoded"&&(x=C+", */*; q=0.01"),p&&(p.open("GET",o,!0),p.setRequestHeader("Accept",x),p.onreadystatechange=function(){if(!h&&p.readyState===4)if(p.status===200){h=!0;var y=void 0;switch(t){case"json":y=JSON.parse(p.responseText);break;case"xml":y=p.responseXML;break;default:y=p.responseText}s(y)}else typeof c=="function"&&c(p.status)},p.send())}E.default.Utils=E.default.Utils||{},E.default.Utils.offset=w,E.default.Utils.hasClass=a,E.default.Utils.addClass=n,E.default.Utils.removeClass=i,E.default.Utils.toggleClass=u,E.default.Utils.fadeIn=v,E.default.Utils.fadeOut=d,E.default.Utils.siblings=r,E.default.Utils.visible=g,E.default.Utils.ajax=e,E.default.Utils.loadScript=_},{2:2,3:3,7:7}],27:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.escapeHTML=T,b.debounce=_,b.isObjectEmpty=w,b.splitEvents=m,b.createEvent=f,b.isNodeAfter=l,b.isString=a;var k,L=S(7),E=(k=L)&&k.__esModule?k:{default:k};function T(n){if(typeof n!="string")throw new Error("Argument passed must be a string");var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};return n.replace(/[&<>"]/g,function(u){return i[u]})}function _(n,i){var u=this,d=arguments,v=2<arguments.length&&arguments[2]!==void 0&&arguments[2];if(typeof n!="function")throw new Error("First argument must be a function");if(typeof i!="number")throw new Error("Second argument must be a numeric value");var r=void 0;return function(){var g=u,e=d,o=v&&!r;clearTimeout(r),r=setTimeout(function(){r=null,v||n.apply(g,e)},i),o&&n.apply(g,e)}}function w(n){return Object.getOwnPropertyNames(n).length<=0}function m(n,i){var u=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/,d={d:[],w:[]};return(n||"").split(" ").forEach(function(v){var r=v+(i?"."+i:"");r.startsWith(".")?(d.d.push(r),d.w.push(r)):d[u.test(v)?"w":"d"].push(r)}),d.d=d.d.join(" "),d.w=d.w.join(" "),d}function f(n,i){if(typeof n!="string")throw new Error("Event name must be a string");var u=n.match(/([a-z]+\.([a-z]+))/i),d={target:i};return u!==null&&(n=u[1],d.namespace=u[2]),new window.CustomEvent(n,{detail:d})}function l(n,i){return!!(n&&i&&2&n.compareDocumentPosition(i))}function a(n){return typeof n=="string"}E.default.Utils=E.default.Utils||{},E.default.Utils.escapeHTML=T,E.default.Utils.debounce=_,E.default.Utils.isObjectEmpty=w,E.default.Utils.splitEvents=m,E.default.Utils.createEvent=f,E.default.Utils.isNodeAfter=l,E.default.Utils.isString=a},{7:7}],28:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.typeChecks=void 0,b.absolutizeUrl=w,b.formatType=m,b.getMimeFromType=f,b.getTypeFromFile=l,b.getExtension=a,b.normalizeExtension=n;var k,L=S(7),E=(k=L)&&k.__esModule?k:{default:k},T=S(27),_=b.typeChecks=[];function w(i){if(typeof i!="string")throw new Error("`url` argument must be a string");var u=document.createElement("div");return u.innerHTML='<a href="'+(0,T.escapeHTML)(i)+'">x</a>',u.firstChild.href}function m(i){var u=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"";return i&&!u?l(i):u}function f(i){if(typeof i!="string")throw new Error("`type` argument must be a string");return i&&-1<i.indexOf(";")?i.substr(0,i.indexOf(";")):i}function l(i){if(typeof i!="string")throw new Error("`url` argument must be a string");for(var u=0,d=_.length;u<d;u++){var v=_[u](i);if(v)return v}var r=n(a(i)),g="video/mp4";return r&&(~["mp4","m4v","ogg","ogv","webm","flv","mpeg","mov"].indexOf(r)?g="video/"+r:~["mp3","oga","wav","mid","midi"].indexOf(r)&&(g="audio/"+r)),g}function a(i){if(typeof i!="string")throw new Error("`url` argument must be a string");var u=i.split("?")[0].split("\\").pop().split("/").pop();return~u.indexOf(".")?u.substring(u.lastIndexOf(".")+1):""}function n(i){if(typeof i!="string")throw new Error("`extension` argument must be a string");switch(i){case"mp4":case"m4v":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return i}}E.default.Utils=E.default.Utils||{},E.default.Utils.typeChecks=_,E.default.Utils.absolutizeUrl=w,E.default.Utils.formatType=m,E.default.Utils.getMimeFromType=f,E.default.Utils.getTypeFromFile=l,E.default.Utils.getExtension=a,E.default.Utils.normalizeExtension=n},{27:27,7:7}],29:[function(S,X,b){var k,L=T(S(2)),E=T(S(4));function T(w){return w&&w.__esModule?w:{default:w}}if([Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(w){w.hasOwnProperty("remove")||Object.defineProperty(w,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}),function(){if(typeof window.CustomEvent=="function")return;function w(m,f){f=f||{bubbles:!1,cancelable:!1,detail:void 0};var l=L.default.createEvent("CustomEvent");return l.initCustomEvent(m,f.bubbles,f.cancelable,f.detail),l}w.prototype=window.Event.prototype,window.CustomEvent=w}(),typeof Object.assign!="function"&&(Object.assign=function(w){if(w==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(w),f=1,l=arguments.length;f<l;f++){var a=arguments[f];if(a!==null)for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(m[n]=a[n])}return m}),String.prototype.startsWith||(String.prototype.startsWith=function(w,m){return m=m||0,this.substr(m,w.length)===w}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(w){for(var m=(this.document||this.ownerDocument).querySelectorAll(w),f=m.length-1;0<=--f&&m.item(f)!==this;);return-1<f}),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(w){var m=(this.document||this.ownerDocument).querySelectorAll(w),f=void 0,l=this;do for(f=m.length;0<=--f&&m.item(f)!==l;);while(f<0&&(l=l.parentElement));return l}),function(){for(var w=0,m=["ms","moz","webkit","o"],f=0;f<m.length&&!window.requestAnimationFrame;++f)window.requestAnimationFrame=window[m[f]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[m[f]+"CancelAnimationFrame"]||window[m[f]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(l){var a=new Date().getTime(),n=Math.max(0,16-(a-w)),i=window.setTimeout(function(){l(a+n)},n);return w=a+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(l){clearTimeout(l)})}(),/firefox/i.test(navigator.userAgent)){var _=window.getComputedStyle;window.getComputedStyle=function(w,m){var f=_(w,m);return f===null?{getPropertyValue:function(){}}:f}}window.Promise||(window.Promise=E.default),(k=window.Node||window.Element)&&k.prototype&&k.prototype.children===null&&Object.defineProperty(k.prototype,"children",{get:function(){for(var w=0,m=void 0,f=this.childNodes,l=[];m=f[w++];)m.nodeType===1&&l.push(m);return l}})},{2:2,4:4}],30:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.isDropFrame=T,b.secondsToTimeCode=_,b.timeCodeToSeconds=w,b.calculateTimeFormat=m,b.convertSMPTEtoSeconds=f;var k,L=S(7),E=(k=L)&&k.__esModule?k:{default:k};function T(){return(0<arguments.length&&arguments[0]!==void 0?arguments[0]:25)%1!=0}function _(l){var a=1<arguments.length&&arguments[1]!==void 0&&arguments[1],n=2<arguments.length&&arguments[2]!==void 0&&arguments[2],i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:25,u=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,d=5<arguments.length&&arguments[5]!==void 0?arguments[5]:"hh:mm:ss";l=!l||typeof l!="number"||l<0?0:l;var v=Math.round(.066666*i),r=Math.round(i),g=24*Math.round(3600*i),e=Math.round(600*i),o=T(i)?";":":",t=void 0,s=void 0,c=void 0,p=void 0,C=Math.round(l*i);if(T(i)){C<0&&(C=g+C);var h=(C%=g)%e;C+=9*v*Math.floor(C/e),v<h&&(C+=v*Math.floor((h-v)/Math.round(60*r-v)));var x=Math.floor(C/r);t=Math.floor(Math.floor(x/60)/60),s=Math.floor(x/60)%60,c=n?x%60:Math.floor(C/r%60).toFixed(u)}else t=Math.floor(l/3600)%24,s=Math.floor(l/60)%60,c=n?Math.floor(l%60):Math.floor(l%60).toFixed(u);t=t<=0?0:t,c=(c=c<=0?0:c)===60?0:c,s=(s=s<=0?0:s)===60?0:s;for(var y=d.split(":"),F={},D=0,M=y.length;D<M;++D){for(var P="",A=0,O=y[D].length;A<O;A++)P.indexOf(y[D][A])<0&&(P+=y[D][A]);~["f","s","m","h"].indexOf(P)&&(F[P]=y[D].length)}var j=a||0<t?(t<10&&1<F.h?"0"+t:t)+":":"";return j+=(s<10&&1<F.m?"0"+s:s)+":",j+=""+(c<10&&1<F.s?"0"+c:c),n&&(j+=(p=(p=(C%r).toFixed(0))<=0?0:p)<10&&F.f?o+"0"+p:""+o+p),j}function w(l){var a=1<arguments.length&&arguments[1]!==void 0?arguments[1]:25;if(typeof l!="string")throw new TypeError("Time must be a string");if(0<l.indexOf(";")&&(l=l.replace(";",":")),!/\d{2}(\:\d{2}){0,3}/i.test(l))throw new TypeError("Time code must have the format `00:00:00`");var n=l.split(":"),i=void 0,u=0,d=0,v=0,r=0,g=0,e=Math.round(.066666*a),o=Math.round(a),t=3600*o,s=60*o;switch(n.length){default:case 1:v=parseInt(n[0],10);break;case 2:d=parseInt(n[0],10),v=parseInt(n[1],10);break;case 3:u=parseInt(n[0],10),d=parseInt(n[1],10),v=parseInt(n[2],10);break;case 4:u=parseInt(n[0],10),d=parseInt(n[1],10),v=parseInt(n[2],10),r=parseInt(n[3],10)}return i=T(a)?t*u+s*d+o*v+r-e*((g=60*u+d)-Math.floor(g/10)):(t*u+s*d+a*v+r)/a,parseFloat(i.toFixed(3))}function m(l,a){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:25;l=!l||typeof l!="number"||l<0?0:l;for(var i=Math.floor(l/3600)%24,u=Math.floor(l/60)%60,d=Math.floor(l%60),v=[[Math.floor((l%1*n).toFixed(3)),"f"],[d,"s"],[u,"m"],[i,"h"]],r=a.timeFormat,g=r[1]===r[0],e=g?2:1,o=r.length<e?r[e]:":",t=r[0],s=!1,c=0,p=v.length;c<p;c++)if(~r.indexOf(v[c][1]))s=!0;else if(s){for(var C=!1,h=c;h<p;h++)if(0<v[h][0]){C=!0;break}if(!C)break;g||(r=t+r),r=v[c][1]+o+r,g&&(r=v[c][1]+r),t=v[c][1]}a.timeFormat=r}function f(l){if(typeof l!="string")throw new TypeError("Argument must be a string value");for(var a=~(l=l.replace(",",".")).indexOf(".")?l.split(".")[1].length:0,n=0,i=1,u=0,d=(l=l.split(":").reverse()).length;u<d;u++)i=1,0<u&&(i=Math.pow(60,u)),n+=Number(l[u])*i;return Number(n.toFixed(a))}E.default.Utils=E.default.Utils||{},E.default.Utils.secondsToTimeCode=_,E.default.Utils.timeCodeToSeconds=w,E.default.Utils.calculateTimeFormat=m,E.default.Utils.convertSMPTEtoSeconds=f},{7:7}]},{},[29,6,5,15,23,20,19,21,22,24,16,18,17,9,10,11,12,13,14]);