/*

 Video.js 6.2.7 <http://videojs.com/>
 Copyright Brightcove, Inc. <https://www.brightcove.com/>
 Available under Apache License Version 2.0
 <https://github.com/videojs/video.js/blob/master/LICENSE>

 Includes vtt.js <https://github.com/mozilla/vtt.js>
 Available under Apache License Version 2.0
 <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
*/
(function(T,E){"object"===typeof exports&&"undefined"!==typeof module?module.exports=E():"function"===typeof define&&define.amd?define(E):T.videojs=E()})(this,function(){function T(d,c){return c={exports:{}},d(c,c.exports),c.exports}function E(d,c){dc(d).forEach(function(b){return c(d[b],b)})}function Qa(d,c){var b=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;return dc(d).reduce(function(a,b){return c(a,d[b],b)},b)}function z(d){for(var c=arguments.length,b=Array(1<c?c-1:0),a=1;a<c;a++)b[a-
1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[d].concat(b));b.forEach(function(a){a&&E(a,function(a,b){d[b]=a})});return d}function M(d){return!!d&&"object"===("undefined"===typeof d?"undefined":qa(d))}function U(d){return M(d)&&"[object Object]"===Kd.call(d)&&d.constructor===Object}function ia(d,c){if(!d||!c)return"";if("function"===typeof m.getComputedStyle){var b=m.getComputedStyle(d);return b?b[c]:""}return d.currentStyle[c]||""}function ec(d){if(/\s/.test(d))throw Error("class has illegal whitespace characters");
}function ba(){return n===m.document&&"undefined"!==typeof n.createElement}function kb(d){return M(d)&&1===d.nodeType}function fc(d){return function(c,b){if("string"!==typeof c||!/\S/.test(c))return n[d](null);"string"===typeof b&&/\S/.test(b)&&(b=n.querySelector(b));var a=kb(b)?b:n;return a[d]&&a[d](c)}}function B(){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},b=arguments[3],a=n.createElement(0<arguments.length&&void 0!==
arguments[0]?arguments[0]:"div");Object.getOwnPropertyNames(d).forEach(function(b){var c=d[b];-1!==b.indexOf("aria-")||"role"===b||"type"===b?(w.warn(lb(Ld,b,c)),a.setAttribute(b,c)):"textContent"===b?Aa(a,c):a[b]=c});Object.getOwnPropertyNames(c).forEach(function(b){a.setAttribute(b,c[b])});b&&mb(a,b);return a}function Aa(d,c){"undefined"===typeof d.textContent?d.innerText=c:d.textContent=c;return d}function Ra(d,c){c.firstChild?c.insertBefore(d,c.firstChild):c.appendChild(d)}function Ba(d,c){ec(c);
return d.classList?d.classList.contains(c):(new RegExp("(^|\\s)"+c+"($|\\s)")).test(d.className)}function ra(d,c){d.classList?d.classList.add(c):Ba(d,c)||(d.className=(d.className+" "+c).trim());return d}function Ca(d,c){d.classList?d.classList.remove(c):(ec(c),d.className=d.className.split(/\s+/).filter(function(b){return b!==c}).join(" "));return d}function gc(d,c,b){var a=Ba(d,c);"function"===typeof b&&(b=b(d,c));"boolean"!==typeof b&&(b=!a);if(b!==a)return b?ra(d,c):Ca(d,c),d}function hc(d,c){Object.getOwnPropertyNames(c).forEach(function(b){var a=
c[b];null===a||"undefined"===typeof a||!1===a?d.removeAttribute(b):d.setAttribute(b,!0===a?"":a)})}function ca(d){var c={};if(d&&d.attributes&&0<d.attributes.length)for(var b=d.attributes,a=b.length-1;0<=a;a--){var e=b[a].name,f=b[a].value;if("boolean"===typeof d[e]||-1!==",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+e+","))f=null!==f?!0:!1;c[e]=f}return c}function ic(){n.body.focus();n.onselectstart=function(){return!1}}function jc(){n.onselectstart=function(){return!0}}
function Da(d){if(d&&d.getBoundingClientRect&&d.parentNode){var c=d.getBoundingClientRect(),b={};"bottom height left right top width".split(" ").forEach(function(a){void 0!==c[a]&&(b[a]=c[a])});b.height||(b.height=parseFloat(ia(d,"height")));b.width||(b.width=parseFloat(ia(d,"width")));return b}}function kc(d){var c=void 0;d.getBoundingClientRect&&d.parentNode&&(c=d.getBoundingClientRect());if(!c)return{left:0,top:0};d=n.documentElement;var b=n.body;return{left:Math.round(c.left+(m.pageXOffset||b.scrollLeft)-
(d.clientLeft||b.clientLeft||0)),top:Math.round(c.top+(m.pageYOffset||b.scrollTop)-(d.clientTop||b.clientTop||0))}}function nb(d,c){var b={},a=kc(d),e=d.offsetWidth,f=d.offsetHeight,g=a.top;a=a.left;var h=c.pageY,k=c.pageX;c.changedTouches&&(k=c.changedTouches[0].pageX,h=c.changedTouches[0].pageY);b.y=Math.max(0,Math.min(1,(g-h+f)/f));b.x=Math.max(0,Math.min(1,(k-a)/e));return b}function lc(d){return M(d)&&3===d.nodeType}function ob(d){for(;d.firstChild;)d.removeChild(d.firstChild);return d}function mc(d){"function"===
typeof d&&(d=d());return(Array.isArray(d)?d:[d]).map(function(c){"function"===typeof c&&(c=c());if(kb(c)||lc(c))return c;if("string"===typeof c&&/\S/.test(c))return n.createTextNode(c)}).filter(function(c){return c})}function mb(d,c){mc(c).forEach(function(b){return d.appendChild(b)});return d}function nc(d,c){return mb(ob(d),c)}function Ea(d){var c=d[ja];c||(c=d[ja]=ka++);Fa[c]||(Fa[c]={});return Fa[c]}function oc(d){return(d=d[ja])?!!Object.getOwnPropertyNames(Fa[d]).length:!1}function pc(d){var c=
d[ja];if(c){delete Fa[c];try{delete d[ja]}catch(b){d.removeAttribute?d.removeAttribute(ja):d[ja]=null}}}function qc(d,c){var b=Ea(d);0===b.handlers[c].length&&(delete b.handlers[c],d.removeEventListener?d.removeEventListener(c,b.dispatcher,!1):d.detachEvent&&d.detachEvent("on"+c,b.dispatcher));0>=Object.getOwnPropertyNames(b.handlers).length&&(delete b.handlers,delete b.dispatcher,delete b.disabled);0===Object.getOwnPropertyNames(b).length&&pc(d)}function pb(d,c,b,a){b.forEach(function(b){d(c,b,a)})}
function Sa(d){function c(){return!0}function b(){return!1}if(!d||!d.isPropagationStopped){var a=d||m.event;d={};for(var e in a)"layerX"!==e&&"layerY"!==e&&"keyLocation"!==e&&"webkitMovementX"!==e&&"webkitMovementY"!==e&&("returnValue"===e&&a.preventDefault||(d[e]=a[e]));d.target||(d.target=d.srcElement||n);d.relatedTarget||(d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement);d.preventDefault=function(){a.preventDefault&&a.preventDefault();d.returnValue=!1;a.returnValue=!1;d.defaultPrevented=
!0};d.defaultPrevented=!1;d.stopPropagation=function(){a.stopPropagation&&a.stopPropagation();d.cancelBubble=!0;a.cancelBubble=!0;d.isPropagationStopped=c};d.isPropagationStopped=b;d.stopImmediatePropagation=function(){a.stopImmediatePropagation&&a.stopImmediatePropagation();d.isImmediatePropagationStopped=c;d.stopPropagation()};d.isImmediatePropagationStopped=b;if(null!==d.clientX&&void 0!==d.clientX){e=n.documentElement;var f=n.body;d.pageX=d.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||
f&&f.clientLeft||0);d.pageY=d.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)}d.which=d.charCode||d.keyCode;null!==d.button&&void 0!==d.button&&(d.button=d.button&1?0:d.button&4?1:d.button&2?2:0)}return d}function W(d,c,b){if(Array.isArray(c))return pb(W,d,c,b);var a=Ea(d);a.handlers||(a.handlers={});a.handlers[c]||(a.handlers[c]=[]);b.guid||(b.guid=ka++);a.handlers[c].push(b);a.dispatcher||(a.disabled=!1,a.dispatcher=function(b,c){if(!a.disabled){b=Sa(b);var e=a.handlers[b.type];
if(e){e=e.slice(0);for(var f=0,k=e.length;f<k&&!b.isImmediatePropagationStopped();f++)try{e[f].call(d,b,c)}catch(x){w.error(x)}}}});1===a.handlers[c].length&&(d.addEventListener?(b=!1,rc&&-1<Md.indexOf(c)&&(b={passive:!0}),d.addEventListener(c,a.dispatcher,b)):d.attachEvent&&d.attachEvent("on"+c,a.dispatcher))}function P(d,c,b){if(oc(d)){var a=Ea(d);if(a.handlers){if(Array.isArray(c))return pb(P,d,c,b);if(c){var e=a.handlers[c];if(e){if(!b)a.handlers[c]=[];else if(b.guid)for(a=0;a<e.length;a++)e[a].guid===
b.guid&&e.splice(a--,1);qc(d,c)}}else for(e in a.handlers)c=e,a.handlers[c]=[],qc(d,c)}}}function sa(d,c,b){var a=oc(d)?Ea(d):{},e=d.parentNode||d.ownerDocument;"string"===typeof c&&(c={type:c,target:d});c=Sa(c);a.dispatcher&&a.dispatcher.call(d,c,b);if(e&&!c.isPropagationStopped()&&!0===c.bubbles)sa.call(null,e,c,b);else if(!e&&!c.defaultPrevented&&(d=Ea(c.target),c.target[c.type])){d.disabled=!0;if("function"===typeof c.target[c.type])c.target[c.type]();d.disabled=!1}return!c.defaultPrevented}function Ga(d,
c,b){if(Array.isArray(c))return pb(Ga,d,c,b);var a=function f(){P(d,c,f);b.apply(this,arguments)};a.guid=b.guid=b.guid||ka++;W(d,c,a)}function qb(d,c){c&&(sc=c);m.setTimeout(Nd,d)}function rb(d){var c=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(c){if(!d[c].nodeName)throw Error('The eventBusKey "'+c+'" does not refer to an element.');d.eventBusEl_=d[c]}else d.eventBusEl_=B("span",{className:"vjs-event-bus"});z(d,Od);d.on("dispose",function(){return d.off()});return d}
function tc(d,c){z(d,Pd);d.state=z({},d.state,c);if("function"===typeof d.handleStateChanged&&Ta(d))d.on("statechanged",d.handleStateChanged);return d}function C(d){return"string"!==typeof d?d:d.charAt(0).toUpperCase()+d.slice(1)}function Qd(d,c){return C(d)===C(c)}function D(){for(var d={},c=arguments.length,b=Array(c),a=0;a<c;a++)b[a]=arguments[a];b.forEach(function(a){a&&E(a,function(a,b){U(a)?(U(d[b])||(d[b]={}),d[b]=D(d[b],a)):d[b]=a})});return d}function uc(d,c,b,a){var e=b.length-1;if("number"!==
typeof a||0>a||a>e)throw Error("Failed to execute '"+d+"' on 'TimeRanges': The index provided ("+a+") is non-numeric or out of bounds (0-"+e+").");return b[a][c]}function sb(d){return void 0===d||0===d.length?{length:0,start:function(){throw Error("This TimeRanges object is empty");},end:function(){throw Error("This TimeRanges object is empty");}}:{length:d.length,start:uc.bind(null,"start",0,d),end:uc.bind(null,"end",1,d)}}function la(d,c){return Array.isArray(d)?sb(d):void 0===d||void 0===c?sb():
sb([[d,c]])}function vc(d,c){var b=0;if(!c)return 0;d&&d.length||(d=la(0,0));for(var a=0;a<d.length;a++){var e=d.start(a);var f=d.end(a);f>c&&(f=c);b+=f-e}return b/c}function I(d){if(d instanceof I)return d;"number"===typeof d?this.code=d:"string"===typeof d?this.message=d:M(d)&&("number"===typeof d.code&&(this.code=d.code),z(this,d));this.message||(this.message=I.defaultMessages[this.code]||"")}function Rd(d){for(var c in d)if(d.hasOwnProperty(c))return!1;return!0}function wc(d,c,b){var a=d;xc(c)?
(b=c,"string"===typeof d&&(a={uri:d})):a=Sd(c,{uri:d});a.callback=b;return a}function X(d,c,b){c=wc(d,c,b);return yc(c)}function yc(d){function c(b){clearTimeout(p);b instanceof Error||(b=Error(""+(b||"Unknown XMLHttpRequest Error")));b.statusCode=0;var c=u;a||(a=!0,d.callback(b,c,void 0))}function b(){if(!g){clearTimeout(p);var b=d.useXDR&&void 0===e.status?200:1223===e.status?204:e.status;var c=u,f=null;if(0!==b){e.response?c=e.response:(c=e.responseText)||("document"===e.responseType?c=e.responseXML:
(c=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName,c=""!==e.responseType||c?null:e.responseXML));if(l)try{c=JSON.parse(c)}catch(Ze){}c={body:c,statusCode:b,method:k,headers:{},url:h,rawRequest:e};e.getAllResponseHeaders&&(c.headers=Td(e.getAllResponseHeaders()))}else f=Error("Internal XMLHttpRequest Error");b=c.body;a||(a=!0,d.callback(f,c,b))}}if("undefined"===typeof d.callback)throw Error("callback argument missing");var a=!1,e=d.xhr||null;e||(e=d.cors||d.useXDR?new X.XDomainRequest:
new X.XMLHttpRequest);var f,g,h=e.url=d.uri||d.url,k=e.method=d.method||"GET",x=d.body||d.data,y=e.headers=d.headers||{},m=!!d.sync,l=!1,p,u={body:void 0,headers:{},statusCode:0,method:k,url:h,rawRequest:e};"json"in d&&!1!==d.json&&(l=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==k&&"HEAD"!==k&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),x=JSON.stringify(!0===d.json?x:d.json)));e.onreadystatechange=function(){4===e.readyState&&setTimeout(b,0)};e.onload=
b;e.onerror=c;e.onprogress=function(){};e.onabort=function(){g=!0};e.ontimeout=c;e.open(k,h,!m,d.username,d.password);m||(e.withCredentials=!!d.withCredentials);!m&&0<d.timeout&&(p=setTimeout(function(){if(!g){g=!0;e.abort("timeout");var a=Error("XMLHttpRequest timeout");a.code="ETIMEDOUT";c(a)}},d.timeout));if(e.setRequestHeader)for(f in y)y.hasOwnProperty(f)&&e.setRequestHeader(f,y[f]);else if(d.headers&&!Rd(d.headers))throw Error("Headers cannot be set on an XDomainRequest object");"responseType"in
d&&(e.responseType=d.responseType);"beforeSend"in d&&"function"===typeof d.beforeSend&&d.beforeSend(e);e.send(x||null);return e}function Ud(){}function N(d,c){this.name="ParsingError";this.code=d.code;this.message=c||d.message}function tb(d){d=d.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);if(!d)return null;if(d[3]){var c=d[3].replace(":","");return 3600*(d[1]|0)+60*(d[2]|0)+(c|0)+(d[4]|0)/1E3}return 59<d[1]?3600*(d[1]|0)+60*(d[2]|0)+(d[4]|0)/1E3:60*(d[1]|0)+(d[2]|0)+(d[4]|0)/1E3}function Ha(){this.values=
ub(null)}function Ia(d,c,b,a){d=a?d.split(a):[d];for(var e in d)"string"===typeof d[e]&&(a=d[e].split(b),2===a.length&&c(a[0],a[1]))}function Vd(d,c,b){function a(){var a=tb(d);if(null===a)throw new N(N.Errors.BadTimeStamp,"Malformed timestamp: "+f);d=d.replace(/^[^\sa-zA-Z-]+/,"");return a}function e(){d=d.replace(/^\s+/,"")}var f=d;e();c.startTime=a();e();if("--\x3e"!==d.substr(0,3))throw new N(N.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+f);d=d.substr(3);
e();c.endTime=a();e();(function(a,c){var e=new Ha;Ia(a,function(a,c){switch(a){case "region":for(var d=b.length-1;0<=d;d--)if(b[d].id===c){e.set(a,b[d].region);break}break;case "vertical":e.alt(a,c,["rl","lr"]);break;case "line":d=c.split(",");var f=d[0];e.integer(a,f);e.percent(a,f)?e.set("snapToLines",!1):null;e.alt(a,f,["auto"]);2===d.length&&e.alt("lineAlign",d[1],["start","middle","end"]);break;case "position":d=c.split(",");e.percent(a,d[0]);2===d.length&&e.alt("positionAlign",d[1],["start",
"middle","end"]);break;case "size":e.percent(a,c);break;case "align":e.alt(a,c,["start","middle","end","left","right"])}},/:/,/\s/);c.region=e.get("region",null);c.vertical=e.get("vertical","");c.line=e.get("line","auto");c.lineAlign=e.get("lineAlign","start");c.snapToLines=e.get("snapToLines",!0);c.size=e.get("size",100);c.align=e.get("align","middle");c.position=e.get("position",{start:0,left:0,middle:50,end:100,right:100},c.align);c.positionAlign=e.get("positionAlign",{start:"start",left:"start",
middle:"middle",end:"end",right:"end"},c.align)})(d,c)}function zc(d,c){function b(){if(!c)return null;var a=c.match(/^([^<]*)(<[^>]+>?)?/);a=a[1]?a[1]:a[2];c=c.substr(a.length);return a}function a(a){return Wd[a]}function e(b){for(;m=b.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)b=b.replace(m[0],a);return b}function f(a,b){var c=Xd[a];if(!c)return null;var e=d.document.createElement(c);e.localName=c;(c=Yd[a])&&b&&(e[c]=b.trim());return e}for(var g=d.document.createElement("div"),h=g,k,x=[];null!==(k=b());)if("<"===
k[0])if("/"===k[1])x.length&&x[x.length-1]===k.substr(2).replace(">","")&&(x.pop(),h=h.parentNode);else{var y=tb(k.substr(1,k.length-2));if(y)k=d.document.createProcessingInstruction("timestamp",y),h.appendChild(k);else{var m=k.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);m&&(!(k=f(m[1],m[3]))||Ac[k.localName]&&Ac[k.localName]!==h.localName||(m[2]&&(k.className=m[2].substr(1).replace("."," ")),x.push(m[1]),h.appendChild(k),h=k))}}else h.appendChild(d.document.createTextNode(e(k)));return g}
function Zd(d){for(var c=0;c<Bc.length;c++){var b=Bc[c];if(d>=b[0]&&d<=b[1])return!0}return!1}function $d(d){function c(a,b){for(var c=b.childNodes.length-1;0<=c;c--)a.push(b.childNodes[c])}function b(a){if(!a||!a.length)return null;var e=a.pop(),d=e.textContent||e.innerText;if(d)return(e=d.match(/^.*(\n|\r)/))?(a.length=0,e[0]):d;if("ruby"===e.tagName)return b(a);if(e.childNodes)return c(a,e),b(a)}var a=[],e="";if(!d||!d.childNodes)return"ltr";for(c(a,d);e=b(a);)for(var f=0;f<e.length;f++)if(d=e.charCodeAt(f),
Zd(d))return"rtl";return"ltr"}function vb(){}function Ua(d,c,b){var a=/MSIE\s8\.0/.test(navigator.userAgent),e="rgba(255, 255, 255, 1)",f="rgba(0, 0, 0, 0.8)";a&&(e="rgb(255, 255, 255)",f="rgb(0, 0, 0)");this.cue=c;this.cueDiv=zc(d,c.text);e={color:e,backgroundColor:f,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};a||(e.writingMode=""===c.vertical?"horizontal-tb":"lr"===c.vertical?"vertical-lr":"vertical-rl",e.unicodeBidi="plaintext");this.applyStyles(e,this.cueDiv);this.div=
d.document.createElement("div");e={textAlign:"middle"===c.align?"center":c.align,font:b.font,whiteSpace:"pre-line",position:"absolute"};a||(e.direction=$d(this.cueDiv),e.writingMode=""===c.vertical?"horizontal-tb":"lr"===c.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext");this.applyStyles(e);this.div.appendChild(this.cueDiv);d=0;switch(c.positionAlign){case "start":d=c.position;break;case "middle":d=c.position-c.size/2;break;case "end":d=c.position-c.size}""===c.vertical?this.applyStyles({left:this.formatStyle(d,
"%"),width:this.formatStyle(c.size,"%")}):this.applyStyles({top:this.formatStyle(d,"%"),height:this.formatStyle(c.size,"%")});this.move=function(a){this.applyStyles({top:this.formatStyle(a.top,"px"),bottom:this.formatStyle(a.bottom,"px"),left:this.formatStyle(a.left,"px"),right:this.formatStyle(a.right,"px"),height:this.formatStyle(a.height,"px"),width:this.formatStyle(a.width,"px")})}}function J(d){var c=/MSIE\s8\.0/.test(navigator.userAgent);if(d.div){var b=d.div.offsetHeight;var a=d.div.offsetWidth;
var e=d.div.offsetTop;var f=(f=d.div.childNodes)&&(f=f[0])&&f.getClientRects&&f.getClientRects();d=d.div.getBoundingClientRect();var g=f?Math.max(f[0]&&f[0].height||0,d.height/f.length):0}this.left=d.left;this.right=d.right;this.top=d.top||e;this.height=d.height||b;this.bottom=d.bottom||e+(d.height||b);this.width=d.width||a;this.lineHeight=void 0!==g?g:d.lineHeight;c&&!this.lineHeight&&(this.lineHeight=13)}function ta(){}function wb(d){return"string"!==typeof d?!1:ae[d.toLowerCase()]?d.toLowerCase():
!1}function L(d){for(var c=1;c<arguments.length;c++){var b=arguments[c],a;for(a in b)d[a]=b[a]}return d}function Cc(d,c,b){var a=this,e=/MSIE\s8\.0/.test(navigator.userAgent),f={};e?a=document.createElement("custom"):f.enumerable=!0;a.hasBeenReset=!1;var g="",h=!1,k=d,x=c,y=b,m=null,l="",p=!0,u="auto",q="start",n=50,r="middle",t=50,v="middle";Object.defineProperty(a,"id",L({},f,{get:function(){return g},set:function(a){g=""+a}}));Object.defineProperty(a,"pauseOnExit",L({},f,{get:function(){return h},
set:function(a){h=!!a}}));Object.defineProperty(a,"startTime",L({},f,{get:function(){return k},set:function(a){if("number"!==typeof a)throw new TypeError("Start time must be set to a number.");k=a;this.hasBeenReset=!0}}));Object.defineProperty(a,"endTime",L({},f,{get:function(){return x},set:function(a){if("number"!==typeof a)throw new TypeError("End time must be set to a number.");x=a;this.hasBeenReset=!0}}));Object.defineProperty(a,"text",L({},f,{get:function(){return y},set:function(a){y=""+a;
this.hasBeenReset=!0}}));Object.defineProperty(a,"region",L({},f,{get:function(){return m},set:function(a){m=a;this.hasBeenReset=!0}}));Object.defineProperty(a,"vertical",L({},f,{get:function(){return l},set:function(a){a="string"!==typeof a?!1:be[a.toLowerCase()]?a.toLowerCase():!1;if(!1===a)throw new SyntaxError("An invalid or illegal string was specified.");l=a;this.hasBeenReset=!0}}));Object.defineProperty(a,"snapToLines",L({},f,{get:function(){return p},set:function(a){p=!!a;this.hasBeenReset=
!0}}));Object.defineProperty(a,"line",L({},f,{get:function(){return u},set:function(a){if("number"!==typeof a&&"auto"!==a)throw new SyntaxError("An invalid number or illegal string was specified.");u=a;this.hasBeenReset=!0}}));Object.defineProperty(a,"lineAlign",L({},f,{get:function(){return q},set:function(a){a=wb(a);if(!a)throw new SyntaxError("An invalid or illegal string was specified.");q=a;this.hasBeenReset=!0}}));Object.defineProperty(a,"position",L({},f,{get:function(){return n},set:function(a){if(0>
a||100<a)throw Error("Position must be between 0 and 100.");n=a;this.hasBeenReset=!0}}));Object.defineProperty(a,"positionAlign",L({},f,{get:function(){return r},set:function(a){a=wb(a);if(!a)throw new SyntaxError("An invalid or illegal string was specified.");r=a;this.hasBeenReset=!0}}));Object.defineProperty(a,"size",L({},f,{get:function(){return t},set:function(a){if(0>a||100<a)throw Error("Size must be between 0 and 100.");t=a;this.hasBeenReset=!0}}));Object.defineProperty(a,"align",L({},f,{get:function(){return v},
set:function(a){a=wb(a);if(!a)throw new SyntaxError("An invalid or illegal string was specified.");v=a;this.hasBeenReset=!0}}));a.displayState=void 0;if(e)return a}function Ja(d){return"number"===typeof d&&0<=d&&100>=d}function ce(d,c,b,a){var e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},f=d.textTracks();e.kind=c;b&&(e.label=b);a&&(e.language=a);e.tech=d;e=new O.text.TrackClass(e);f.addTrack(e);return e}function de(d,c,b){d.setTimeout(function(){return ua(c,ma[c.type],b,d)},1)}function ee(d,
c){d.forEach(function(b){return b.setTech&&b.setTech(c)})}function Dc(d){return function(c,b){return b[d]?b[d](c):c}}function ua(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],b=arguments[2],a=arguments[3],e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[],f=5<arguments.length&&void 0!==arguments[5]?arguments[5]:!1,g=c[0],h=c.slice(1);if("string"===typeof g)ua(d,ma[g],b,a,e,f);else if(g){var k=g(a);k.setSource(z({},
d),function(c,g){if(c)return ua(d,h,b,a,e,f);e.push(k);ua(g,d.type===g.type?h:ma[g.type],b,a,e,f)})}else h.length?ua(d,h,b,a,e,f):f?b(d,e):ua(d,ma["*"],b,a,e,!0)}function xb(d,c){return"rgba("+parseInt(d[1]+d[1],16)+","+parseInt(d[2]+d[2],16)+","+parseInt(d[3]+d[3],16)+","+c+")"}function da(d){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:d;d=0>d?0:d;var b=Math.floor(d%60),a=Math.floor(d/60%60),e=Math.floor(d/3600),f=Math.floor(c/60%60);c=Math.floor(c/3600);if(isNaN(d)||Infinity===
d)e=a=b="-";e=0<e||0<c?e+":":"";return e+(((e||10<=f)&&10>a?"0"+a:a)+":")+(10>b?"0"+b:b)}function Ec(d,c){c&&(d=c(d));if(d&&"none"!==d)return d}function t(d,c,b){var a=void 0;if("string"===typeof d){var e=t.getPlayers();0===d.indexOf("#")&&(d=d.slice(1));if(e[d])return c&&w.warn('Player "'+d+'" is already initialised. Options will not be applied.'),b&&e[d].ready(b),e[d];a=na("#"+d)}else a=d;if(!a||!a.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(a.player||F.players[a.playerId])return a.player||
F.players[a.playerId];c=c||{};t.hooks("beforesetup").forEach(function(b){b=b(a,D(c));!M(b)||Array.isArray(b)?w.error("please return an object in beforesetup hooks"):c=D(c,b)});var f=new (l.getComponent("Player"))(a,c,b);t.hooks("setup").forEach(function(a){return a(f)});return f}var Va="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},m="undefined"!==typeof window?window:"undefined"!==typeof Va?Va:"undefined"!==typeof self?self:{},Fc={},Gc=(Object.freeze||
Object)({"default":Fc}),fe=Gc&&Fc||Gc,Hc="undefined"!==typeof Va?Va:"undefined"!==typeof window?window:{};if("undefined"!==typeof document)var yb=document;else(yb=Hc["__GLOBAL_DOCUMENT_CACHE@4"])||(yb=Hc["__GLOBAL_DOCUMENT_CACHE@4"]=fe);var n=yb,G=m.navigator&&m.navigator.userAgent||"",Ic=/AppleWebKit\/([\d.]+)/i.exec(G),ge=Ic?parseFloat(Ic.pop()):null,zb=/iPad/i.test(G),Ab=/iPhone/i.test(G)&&!zb,Jc=/iPod/i.test(G),va=Ab||zb||Jc,he=function(){var d=G.match(/OS (\d+)_/i);return d&&d[1]?d[1]:null}(),
ea=/Android/i.test(G),Wa=function(){var d=G.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!d)return null;var c=d[1]&&parseFloat(d[1]),b=d[2]&&parseFloat(d[2]);return c&&b?parseFloat(d[1]+"."+d[2]):c?c:null}(),Kc=ea&&/webkit/i.test(G)&&2.3>Wa,Lc=ea&&5>Wa&&537>ge,Mc=/Firefox/i.test(G),Bb=/Edge/i.test(G),Xa=!Bb&&/Chrome/i.test(G),Nc=function(){var d=G.match(/Chrome\/(\d+)/);return d&&d[1]?parseFloat(d[1]):null}(),K=/MSIE\s8\.0/.test(G),oa=function(){var d=/MSIE\s(\d+)\.\d/.exec(G);d=d&&parseFloat(d[1]);
!d&&/Trident\/7.0/i.test(G)&&/rv:11.0/.test(G)&&(d=11);return d}(),Oc=/Safari/i.test(G)&&!Xa&&!ea&&!Bb,Pc=Oc||va,Ya=ba()&&("ontouchstart"in m||m.DocumentTouch&&m.document instanceof m.DocumentTouch),Qc=ba()&&"backgroundSize"in m.document.createElement("video").style,ie=(Object.freeze||Object)({IS_IPAD:zb,IS_IPHONE:Ab,IS_IPOD:Jc,IS_IOS:va,IOS_VERSION:he,IS_ANDROID:ea,ANDROID_VERSION:Wa,IS_OLD_ANDROID:Kc,IS_NATIVE_ANDROID:Lc,IS_FIREFOX:Mc,IS_EDGE:Bb,IS_CHROME:Xa,CHROME_VERSION:Nc,IS_IE8:K,IE_VERSION:oa,
IS_SAFARI:Oc,IS_ANY_SAFARI:Pc,TOUCH_ENABLED:Ya,BACKGROUND_SIZE_SUPPORTED:Qc}),qa="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"===typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},u=function(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function");},r=function(d,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+
typeof c);d.prototype=Object.create(c&&c.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(d,c):d.__proto__=c)},p=function(d,c){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?d:c},Cb=function(d,c){d.raw=c;return d},Kd=Object.prototype.toString,dc=function(d){return M(d)?Object.keys(d):[]},Q=void 0,Za="all",V=[],Db=function(d,c){var b=
2<arguments.length&&void 0!==arguments[2]?arguments[2]:!!oa&&11>oa,a=Q.levels[Za],e=new RegExp("^("+a+")$");"log"!==d&&c.unshift(d.toUpperCase()+":");V&&V.push([].concat(c));c.unshift("VIDEOJS:");var f=m.console&&m.console[d];if(f&&a&&e.test(d))if(b&&(c=c.map(function(a){if(M(a)||Array.isArray(a))try{return JSON.stringify(a)}catch(h){}return String(a)}).join(" ")),f.apply)f[Array.isArray(c)?"apply":"call"](m.console,c);else f(c)};Q=function(){for(var d=arguments.length,c=Array(d),b=0;b<d;b++)c[b]=
arguments[b];Db("log",c)};Q.levels={all:"log|warn|error",error:"error",off:"",warn:"warn|error",DEFAULT:Za};Q.level=function(d){if("string"===typeof d){if(!Q.levels.hasOwnProperty(d))throw Error('"'+d+'" in not a valid log level');Za=d}return Za};Q.history=function(){return V?[].concat(V):[]};Q.history.clear=function(){V&&(V.length=0)};Q.history.disable=function(){null!==V&&(V.length=0,V=null)};Q.history.enable=function(){null===V&&(V=[])};Q.error=function(){for(var d=arguments.length,c=Array(d),
b=0;b<d;b++)c[b]=arguments[b];return Db("error",c)};Q.warn=function(){for(var d=arguments.length,c=Array(d),b=0;b<d;b++)c[b]=arguments[b];return Db("warn",c)};var w=Q,lb=function(d){for(var c="",b=0;b<arguments.length;b++)c+=d[b].replace(/\n\r?\s*/g,"")+(arguments[b+1]||"");return c},Ld=Cb(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ",
"."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]),na=fc("querySelector"),Rc=fc("querySelectorAll"),Sc=(Object.freeze||Object)({isReal:ba,isEl:kb,createEl:B,textContent:Aa,prependTo:Ra,hasClass:Ba,addClass:ra,removeClass:Ca,toggleClass:gc,setAttributes:hc,getAttributes:ca,getAttribute:function(d,c){return d.getAttribute(c)},setAttribute:function(d,
c,b){d.setAttribute(c,b)},removeAttribute:function(d,c){d.removeAttribute(c)},blockTextSelection:ic,unblockTextSelection:jc,getBoundingClientRect:Da,findPosition:kc,getPointerPosition:nb,isTextNode:lc,emptyEl:ob,normalizeContent:mc,appendContent:mb,insertContent:nc,$:na,$$:Rc}),ka=1,Fa={},ja="vdata"+(new Date).getTime(),rc=!1;(function(){try{var d=Object.defineProperty({},"passive",{get:function(){rc=!0}});m.addEventListener("test",null,d)}catch(c){}})();var Md=["touchstart","touchmove"],je=(Object.freeze||
Object)({fixEvent:Sa,on:W,off:P,trigger:sa,one:Ga}),Eb=!1,sc=void 0,Nd=function(){if(ba()){var d=n.getElementsByTagName("video"),c=n.getElementsByTagName("audio"),b=[];if(d&&0<d.length)for(var a=0,e=d.length;a<e;a++)b.push(d[a]);if(c&&0<c.length)for(d=0,a=c.length;d<a;d++)b.push(c[d]);if(b&&0<b.length)for(c=0,d=b.length;c<d;c++)if((a=b[c])&&a.getAttribute)void 0===a.player&&null!==a.getAttribute("data-setup")&&sc(a);else{qb(1);break}else Eb||qb(1)}};ba()&&"complete"===n.readyState?Eb=!0:Ga(m,"load",
function(){Eb=!0});var Tc=function(d){var c=n.createElement("style");c.className=d;return c},Uc=function(d,c){d.styleSheet?d.styleSheet.cssText=c:d.textContent=c},v=function(d,c,b){c.guid||(c.guid=ka++);var a=function(){return c.apply(d,arguments)};a.guid=b?b+"_"+c.guid:c.guid;return a},fa=function(d,c){var b=Date.now();return function(){var a=Date.now();a-b>=c&&(d.apply(void 0,arguments),b=a)}},H=function(){};H.prototype.allowedEvents_={};H.prototype.on=function(d,c){var b=this.addEventListener;
this.addEventListener=function(){};W(this,d,c);this.addEventListener=b};H.prototype.addEventListener=H.prototype.on;H.prototype.off=function(d,c){P(this,d,c)};H.prototype.removeEventListener=H.prototype.off;H.prototype.one=function(d,c){var b=this.addEventListener;this.addEventListener=function(){};Ga(this,d,c);this.addEventListener=b};H.prototype.trigger=function(d){var c=d.type||d;"string"===typeof d&&(d={type:c});d=Sa(d);if(this.allowedEvents_[c]&&this["on"+c])this["on"+c](d);sa(this,d)};H.prototype.dispatchEvent=
H.prototype.trigger;var Ta=function(d){return d instanceof H||!!d.eventBusEl_&&["on","one","off","trigger"].every(function(c){return"function"===typeof d[c]})},Vc=function(d){return"string"===typeof d&&/\S/.test(d)||Array.isArray(d)&&!!d.length},Fb=function(d){if(!d.nodeName&&!Ta(d))throw Error("Invalid target; must be a DOM node or evented object.");},Wc=function(d){if(!Vc(d))throw Error("Invalid event type; must be a non-empty string or array.");},Xc=function(d){if("function"!==typeof d)throw Error("Invalid listener; must be a function.");
},Yc=function(d,c){var b=3>c.length||c[0]===d||c[0]===d.eventBusEl_;if(b){var a=d.eventBusEl_;3<=c.length&&c.shift();var e=c[0];var f=c[1]}else a=c[0],e=c[1],f=c[2];Fb(a);Wc(e);Xc(f);f=v(d,f);return{isTargetingSelf:b,target:a,type:e,listener:f}},Ka=function(d,c,b,a){Fb(d);if(d.nodeName)je[c](d,b,a);else d[c](b,a)},Od={on:function(){for(var d=this,c=arguments.length,b=Array(c),a=0;a<c;a++)b[a]=arguments[a];c=Yc(this,b);b=c.isTargetingSelf;var e=c.target,f=c.type,g=c.listener;Ka(e,"on",f,g);if(!b){var h=
function(){return d.off(e,f,g)};h.guid=g.guid;c=function(){return d.off("dispose",h)};c.guid=g.guid;Ka(this,"on","dispose",h);Ka(e,"on","dispose",c)}},one:function(){for(var d=this,c=arguments.length,b=Array(c),a=0;a<c;a++)b[a]=arguments[a];c=Yc(this,b);var e=c.target,f=c.type,g=c.listener;c.isTargetingSelf?Ka(e,"one",f,g):(c=function k(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];d.off(e,f,k);g.apply(null,b)},c.guid=g.guid,Ka(e,"one",f,c))},off:function(d,c,b){!d||Vc(d)?
P(this.eventBusEl_,d,c):(Fb(d),Wc(c),Xc(b),b=v(this,b),this.off("dispose",b),d.nodeName?(P(d,c,b),P(d,"dispose",b)):Ta(d)&&(d.off(c,b),d.off("dispose",b)))},trigger:function(d,c){return sa(this.eventBusEl_,d,c)}},Pd={state:{},setState:function(d){var c=this;"function"===typeof d&&(d=d());var b=void 0;E(d,function(a,e){c.state[e]!==a&&(b=b||{},b[e]={from:c.state[e],to:a});c.state[e]=a});b&&Ta(this)&&this.trigger({changes:b,type:"statechanged"});return b}},l=function(){function d(c,b,a){u(this,d);this.player_=
!c&&this.play?c=this:c;this.options_=D({},this.options_);b=this.options_=D(this.options_,b);this.id_=b.id||b.el&&b.el.id;this.id_||(this.id_=(c&&c.id&&c.id()||"no_player")+"_component_"+ka++);this.name_=b.name||null;b.el?this.el_=b.el:!1!==b.createEl&&(this.el_=this.createEl());rb(this,{eventBusKey:this.el_?"el_":null});tc(this,this.constructor.defaultState);this.children_=[];this.childIndex_={};this.childNameIndex_={};!1!==b.initChildren&&this.initChildren();this.ready(a);!1!==b.reportTouchActivity&&
this.enableTouchActivity()}d.prototype.dispose=function(){this.trigger({type:"dispose",bubbles:!1});if(this.children_)for(var c=this.children_.length-1;0<=c;c--)this.children_[c].dispose&&this.children_[c].dispose();this.childNameIndex_=this.childIndex_=this.children_=null;this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),pc(this.el_),this.el_=null)};d.prototype.player=function(){return this.player_};d.prototype.options=function(c){w.warn("this.options() has been deprecated and will be moved to the constructor in 6.0");
return c?this.options_=D(this.options_,c):this.options_};d.prototype.el=function(){return this.el_};d.prototype.createEl=function(c,b,a){return B(c,b,a)};d.prototype.localize=function(c,b){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:c,e=this.player_.language&&this.player_.language(),d=this.player_.languages&&this.player_.languages(),g=d&&d[e];e=e&&e.split("-")[0];d=d&&d[e];g&&g[c]?a=g[c]:d&&d[c]&&(a=d[c]);b&&(a=a.replace(/\{(\d+)\}/g,function(a,c){var e=b[c-1],d=e;"undefined"===typeof e&&
(d=a);return d}));return a};d.prototype.contentEl=function(){return this.contentEl_||this.el_};d.prototype.id=function(){return this.id_};d.prototype.name=function(){return this.name_};d.prototype.children=function(){return this.children_};d.prototype.getChildById=function(c){return this.childIndex_[c]};d.prototype.getChild=function(c){if(c)return c=C(c),this.childNameIndex_[c]};d.prototype.addChild=function(c){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=2<arguments.length&&
void 0!==arguments[2]?arguments[2]:this.children_.length,e=void 0;if("string"===typeof c){e=C(c);var f=b.componentClass||e;b.name=e;var g=d.getComponent(f);if(!g)throw Error("Component "+f+" does not exist");if("function"!==typeof g)return null;b=new g(this.player_||this,b)}else b=c;this.children_.splice(a,0,b);"function"===typeof b.id&&(this.childIndex_[b.id()]=b);(e=e||b.name&&C(b.name()))&&(this.childNameIndex_[e]=b);"function"===typeof b.el&&b.el()&&(a=this.contentEl().children[a]||null,this.contentEl().insertBefore(b.el(),
a));return b};d.prototype.removeChild=function(c){"string"===typeof c&&(c=this.getChild(c));if(c&&this.children_){for(var b=!1,a=this.children_.length-1;0<=a;a--)if(this.children_[a]===c){b=!0;this.children_.splice(a,1);break}b&&(this.childIndex_[c.id()]=null,this.childNameIndex_[c.name()]=null,(b=c.el())&&b.parentNode===this.contentEl()&&this.contentEl().removeChild(c.el()))}};d.prototype.initChildren=function(){var c=this,b=this.options_.children;if(b){var a=this.options_,e=void 0,f=d.getComponent("Tech");
e=Array.isArray(b)?b:Object.keys(b);e.concat(Object.keys(this.options_).filter(function(a){return!e.some(function(b){return"string"===typeof b?a===b:a===b.name})})).map(function(a){if("string"===typeof a){var e=a;a=b[e]||c.options_[e]||{}}else e=a.name;return{name:e,opts:a}}).filter(function(a){return(a=d.getComponent(a.opts.componentClass||C(a.name)))&&!f.isTech(a)}).forEach(function(b){var e=b.name;b=b.opts;void 0!==a[e]&&(b=a[e]);!1!==b&&(!0===b&&(b={}),b.playerOptions=c.options_.playerOptions,
(b=c.addChild(e,b))&&(c[e]=b))})}};d.prototype.buildCSSClass=function(){return""};d.prototype.ready=function(c){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;c&&(this.isReady_?b?c.call(this):this.setTimeout(c,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(c)))};d.prototype.triggerReady=function(){this.isReady_=!0;this.setTimeout(function(){var c=this.readyQueue_;this.readyQueue_=[];c&&0<c.length&&c.forEach(function(b){b.call(this)},this);this.trigger("ready")},1)};
d.prototype.$=function(c,b){return na(c,b||this.contentEl())};d.prototype.$$=function(c,b){return Rc(c,b||this.contentEl())};d.prototype.hasClass=function(c){return Ba(this.el_,c)};d.prototype.addClass=function(c){ra(this.el_,c)};d.prototype.removeClass=function(c){Ca(this.el_,c)};d.prototype.toggleClass=function(c,b){gc(this.el_,c,b)};d.prototype.show=function(){this.removeClass("vjs-hidden")};d.prototype.hide=function(){this.addClass("vjs-hidden")};d.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")};
d.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")};d.prototype.getAttribute=function(c){return this.el_.getAttribute(c)};d.prototype.setAttribute=function(c,b){this.el_.setAttribute(c,b)};d.prototype.removeAttribute=function(c){this.el_.removeAttribute(c)};d.prototype.width=function(c,b){return this.dimension("width",c,b)};d.prototype.height=function(c,b){return this.dimension("height",c,b)};d.prototype.dimensions=function(c,b){this.width(c,!0);this.height(b)};d.prototype.dimension=
function(c,b,a){if(void 0!==b){if(null===b||b!==b)b=0;-1!==(""+b).indexOf("%")||-1!==(""+b).indexOf("px")?this.el_.style[c]=b:this.el_.style[c]="auto"===b?"":b+"px";a||this.trigger("componentresize")}else{if(!this.el_)return 0;b=this.el_.style[c];a=b.indexOf("px");return-1!==a?parseInt(b.slice(0,a),10):parseInt(this.el_["offset"+C(c)],10)}};d.prototype.currentDimension=function(c){var b=0;if("width"!==c&&"height"!==c)throw Error("currentDimension only accepts width or height value");"function"===
typeof m.getComputedStyle&&(b=m.getComputedStyle(this.el_),b=b.getPropertyValue(c)||b[c]);b=parseFloat(b);0===b&&(c="offset"+C(c),b=this.el_[c]);return b};d.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}};d.prototype.currentWidth=function(){return this.currentDimension("width")};d.prototype.currentHeight=function(){return this.currentDimension("height")};d.prototype.focus=function(){this.el_.focus()};d.prototype.blur=function(){this.el_.blur()};
d.prototype.emitTapEvents=function(){var c=0,b=null,a=void 0;this.on("touchstart",function(e){1===e.touches.length&&(b={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},c=(new Date).getTime(),a=!0)});this.on("touchmove",function(c){if(1<c.touches.length)a=!1;else if(b){var e=c.touches[0].pageX-b.pageX;c=c.touches[0].pageY-b.pageY;10<Math.sqrt(e*e+c*c)&&(a=!1)}});var e=function(){a=!1};this.on("touchleave",e);this.on("touchcancel",e);this.on("touchend",function(e){b=null;!0===a&&200>(new Date).getTime()-
c&&(e.preventDefault(),this.trigger("tap"))})};d.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var c=v(this.player(),this.player().reportUserActivity),b=void 0;this.on("touchstart",function(){c();this.clearInterval(b);b=this.setInterval(c,250)});var a=function(a){c();this.clearInterval(b)};this.on("touchmove",c);this.on("touchend",a);this.on("touchcancel",a)}};d.prototype.setTimeout=function(c,b){c=v(this,c);var a=m.setTimeout(c,b),e=function(){this.clearTimeout(a)};
e.guid="vjs-timeout-"+a;this.on("dispose",e);return a};d.prototype.clearTimeout=function(c){m.clearTimeout(c);var b=function(){};b.guid="vjs-timeout-"+c;this.off("dispose",b);return c};d.prototype.setInterval=function(c,b){c=v(this,c);var a=m.setInterval(c,b),e=function(){this.clearInterval(a)};e.guid="vjs-interval-"+a;this.on("dispose",e);return a};d.prototype.clearInterval=function(c){m.clearInterval(c);var b=function(){};b.guid="vjs-interval-"+c;this.off("dispose",b);return c};d.prototype.requestAnimationFrame=
function(c){var b=this;if(this.supportsRaf_){c=v(this,c);var a=m.requestAnimationFrame(c);c=function(){return b.cancelAnimationFrame(a)};c.guid="vjs-raf-"+a;this.on("dispose",c);return a}return this.setTimeout(c,1E3/60)};d.prototype.cancelAnimationFrame=function(c){if(this.supportsRaf_){m.cancelAnimationFrame(c);var b=function(){};b.guid="vjs-raf-"+c;this.off("dispose",b);return c}return this.clearTimeout(c)};d.registerComponent=function(c,b){if("string"!==typeof c||!c)throw Error('Illegal component name, "'+
c+'"; must be a non-empty string.');var a=d.getComponent("Tech");a=a&&a.isTech(b);var e=d===b||d.prototype.isPrototypeOf(b.prototype);if(a||!e)throw Error('Illegal component, "'+c+'"; '+(a?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");c=C(c);d.components_||(d.components_={});a=d.getComponent("Player");if("Player"===c&&a&&a.players){var f=a.players;a=Object.keys(f);if(f&&0<a.length&&a.map(function(a){return f[a]}).every(Boolean))throw Error("Can not register Player component after player has been created.");
}return d.components_[c]=b};d.getComponent=function(c){if(c&&(c=C(c),d.components_&&d.components_[c]))return d.components_[c]};return d}();l.prototype.supportsRaf_="function"===typeof m.requestAnimationFrame&&"function"===typeof m.cancelAnimationFrame;l.registerComponent("Component",l);for(var ha={},$a=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror".split(" "),"webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror".split(" "),
"webkitRequestFullScreen webkitCancelFullScreen webkitCurrentFullScreenElement webkitCancelFullScreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError".split(" ")],ke=$a[0],ab=void 0,bb=0;bb<$a.length;bb++)if($a[bb][1]in n){ab=$a[bb];break}if(ab)for(var cb=
0;cb<ab.length;cb++)ha[ke[cb]]=ab[cb];I.prototype.code=0;I.prototype.message="";I.prototype.status=null;I.errorTypes="MEDIA_ERR_CUSTOM MEDIA_ERR_ABORTED MEDIA_ERR_NETWORK MEDIA_ERR_DECODE MEDIA_ERR_SRC_NOT_SUPPORTED MEDIA_ERR_ENCRYPTED".split(" ");I.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",
5:"The media is encrypted and we do not have the keys to decrypt it."};for(var wa=0;wa<I.errorTypes.length;wa++)I[I.errorTypes[wa]]=wa,I.prototype[I.errorTypes[wa]]=wa;var Gb=function(d){return"kind label language id inBandMetadataTrackDispatchType mode src".split(" ").reduce(function(c,b,a){d[b]&&(c[b]=d[b]);return c},{cues:d.cues&&Array.prototype.map.call(d.cues,function(c){return{startTime:c.startTime,endTime:c.endTime,text:c.text,id:c.id}})})},Zc={textTracksToJson:function(d){var c=d.$$("track"),
b=Array.prototype.map.call(c,function(a){return a.track});return Array.prototype.map.call(c,function(a){var b=Gb(a.track);a.src&&(b.src=a.src);return b}).concat(Array.prototype.filter.call(d.textTracks(),function(a){return-1===b.indexOf(a)}).map(Gb))},jsonToTextTracks:function(d,c){d.forEach(function(b){var a=c.addRemoteTextTrack(b).track;!b.src&&b.cues&&b.cues.forEach(function(b){return a.addCue(b)})});return c.textTracks()},trackToJson_:Gb},xa=function(d){function c(b,a){u(this,c);var e=p(this,
d.call(this,b,a));e.opened_=e.hasBeenOpened_=e.hasBeenFilled_=!1;e.closeable(!e.options_.uncloseable);e.content(e.options_.content);e.contentEl_=B("div",{className:"vjs-modal-dialog-content"},{role:"document"});e.descEl_=B("p",{className:"vjs-modal-dialog-description vjs-control-text",id:e.el().getAttribute("aria-describedby")});Aa(e.descEl_,e.description());e.el_.appendChild(e.descEl_);e.el_.appendChild(e.contentEl_);return e}r(c,d);c.prototype.createEl=function(){return d.prototype.createEl.call(this,
"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})};c.prototype.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+d.prototype.buildCSSClass.call(this)};c.prototype.handleKeyPress=function(b){27===b.which&&this.closeable()&&this.close()};c.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")};c.prototype.description=function(){var b=this.options_.description||
this.localize("This is a modal window.");this.closeable()&&(b+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button."));return b};c.prototype.open=function(){if(!this.opened_){var b=this.player();this.trigger("beforemodalopen");this.opened_=!0;(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill();this.wasPlaying_=!b.paused();this.options_.pauseOnOpen&&this.wasPlaying_&&b.pause();if(this.closeable())this.on(this.el_.ownerDocument,
"keydown",v(this,this.handleKeyPress));b.controls(!1);this.show();this.conditionalFocus_();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=!0}};c.prototype.opened=function(b){if("boolean"===typeof b)this[b?"open":"close"]();return this.opened_};c.prototype.close=function(){if(this.opened_){var b=this.player();this.trigger("beforemodalclose");this.opened_=!1;this.wasPlaying_&&this.options_.pauseOnOpen&&b.play();this.closeable()&&this.off(this.el_.ownerDocument,
"keydown",v(this,this.handleKeyPress));b.controls(!0);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.conditionalBlur_();this.options_.temporary&&this.dispose()}};c.prototype.closeable=function(b){if("boolean"===typeof b){b=this.closeable_=!!b;var a=this.getChild("closeButton");if(b&&!a){var c=this.contentEl_;this.contentEl_=this.el_;a=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=c;this.on(a,"close",this.close)}!b&&a&&(this.off(a,
"close",this.close),this.removeChild(a),a.dispose())}return this.closeable_};c.prototype.fill=function(){this.fillWith(this.content())};c.prototype.fillWith=function(b){var a=this.contentEl(),c=a.parentNode,d=a.nextSibling;this.trigger("beforemodalfill");this.hasBeenFilled_=!0;c.removeChild(a);this.empty();nc(a,b);this.trigger("modalfill");d?c.insertBefore(a,d):c.appendChild(a);(b=this.getChild("closeButton"))&&c.appendChild(b.el_)};c.prototype.empty=function(){this.trigger("beforemodalempty");ob(this.contentEl());
this.trigger("modalempty")};c.prototype.content=function(b){"undefined"!==typeof b&&(this.content_=b);return this.content_};c.prototype.conditionalFocus_=function(){var b=n.activeElement,a=this.player_.el_;this.previouslyActiveEl_=null;if(a.contains(b)||a===b)this.previouslyActiveEl_=b,this.focus(),this.on(n,"keydown",this.handleKeyDown)};c.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null);this.off(n,"keydown",this.handleKeyDown)};
c.prototype.handleKeyDown=function(b){if(9===b.which){for(var a=this.focusableEls_(),c=this.el_.querySelector(":focus"),d=void 0,g=0;g<a.length;g++)if(c===a[g]){d=g;break}n.activeElement===this.el_&&(d=0);b.shiftKey&&0===d?(a[a.length-1].focus(),b.preventDefault()):b.shiftKey||d!==a.length-1||(a[0].focus(),b.preventDefault())}};c.prototype.focusableEls_=function(){var b=this.el_.querySelectorAll("*");return Array.prototype.filter.call(b,function(a){return(a instanceof m.HTMLAnchorElement||a instanceof
m.HTMLAreaElement)&&a.hasAttribute("href")||(a instanceof m.HTMLInputElement||a instanceof m.HTMLSelectElement||a instanceof m.HTMLTextAreaElement||a instanceof m.HTMLButtonElement)&&!a.hasAttribute("disabled")||a instanceof m.HTMLIFrameElement||a instanceof m.HTMLObjectElement||a instanceof m.HTMLEmbedElement||a.hasAttribute("tabindex")&&-1!==a.getAttribute("tabindex")||a.hasAttribute("contenteditable")})};return c}(l);xa.prototype.options_={pauseOnOpen:!0,temporary:!0};l.registerComponent("ModalDialog",
xa);var R=function(d){function c(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;u(this,c);var f=p(this,d.call(this));if(!e&&(e=f,K)){e=n.createElement("custom");for(var g in c.prototype)"constructor"!==g&&(e[g]=c.prototype[g])}e.tracks_=[];Object.defineProperty(e,"length",{get:function(){return this.tracks_.length}});for(g=0;g<b.length;g++)e.addTrack(b[g]);return a=e,p(f,a)}r(c,d);c.prototype.addTrack=function(b){var a=
this.tracks_.length;""+a in this||Object.defineProperty(this,a,{get:function(){return this.tracks_[a]}});-1===this.tracks_.indexOf(b)&&(this.tracks_.push(b),this.trigger({track:b,type:"addtrack"}))};c.prototype.removeTrack=function(b){for(var a=void 0,c=0,d=this.length;c<d;c++)if(this[c]===b){a=this[c];a.off&&a.off();this.tracks_.splice(c,1);break}a&&this.trigger({track:a,type:"removetrack"})};c.prototype.getTrackById=function(b){for(var a=null,c=0,d=this.length;c<d;c++){var g=this[c];if(g.id===b){a=
g;break}}return a};return c}(H);R.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var le in R.prototype.allowedEvents_)R.prototype["on"+le]=null;var Hb=function(d,c){for(var b=0;b<d.length;b++)Object.keys(d[b]).length&&c.id!==d[b].id&&(d[b].enabled=!1)},me=function(d){function c(){var b,a,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];u(this,c);for(var f=void 0,g=e.length-1;0<=g;g--)if(e[g].enabled){Hb(e,e[g]);break}if(K){f=n.createElement("custom");
for(var h in R.prototype)"constructor"!==h&&(f[h]=R.prototype[h]);for(var k in c.prototype)"constructor"!==k&&(f[k]=c.prototype[k])}f=(b=p(this,d.call(this,e,f)),b);f.changing_=!1;return a=f,p(b,a)}r(c,d);c.prototype.addTrack=function(b){var a=this;b.enabled&&Hb(this,b);d.prototype.addTrack.call(this,b);b.addEventListener&&b.addEventListener("enabledchange",function(){a.changing_||(a.changing_=!0,Hb(a,b),a.changing_=!1,a.trigger("change"))})};return c}(R),Ib=function(d,c){for(var b=0;b<d.length;b++)Object.keys(d[b]).length&&
c.id!==d[b].id&&(d[b].selected=!1)},ne=function(d){function c(){var b,a,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];u(this,c);for(var f=void 0,g=e.length-1;0<=g;g--)if(e[g].selected){Ib(e,e[g]);break}if(K){f=n.createElement("custom");for(var h in R.prototype)"constructor"!==h&&(f[h]=R.prototype[h]);for(var k in c.prototype)"constructor"!==k&&(f[k]=c.prototype[k])}f=(b=p(this,d.call(this,e,f)),b);f.changing_=!1;Object.defineProperty(f,"selectedIndex",{get:function(){for(var a=0;a<this.length;a++)if(this[a].selected)return a;
return-1},set:function(){}});return a=f,p(b,a)}r(c,d);c.prototype.addTrack=function(b){var a=this;b.selected&&Ib(this,b);d.prototype.addTrack.call(this,b);b.addEventListener&&b.addEventListener("selectedchange",function(){a.changing_||(a.changing_=!0,Ib(a,b),a.changing_=!1,a.trigger("change"))})};return c}(R),$c=function(d){function c(){var b,a,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];u(this,c);var f=void 0;if(K){f=n.createElement("custom");for(var g in R.prototype)"constructor"!==
g&&(f[g]=R.prototype[g]);for(var h in c.prototype)"constructor"!==h&&(f[h]=c.prototype[h])}f=(b=p(this,d.call(this,e,f)),b);return a=f,p(b,a)}r(c,d);c.prototype.addTrack=function(b){d.prototype.addTrack.call(this,b);b.addEventListener("modechange",v(this,function(){this.trigger("change")}));-1===["metadata","chapters"].indexOf(b.kind)&&b.addEventListener("modechange",v(this,function(){this.trigger("selectedlanguagechange")}))};return c}(R),oe=function(){function d(){var c=0<arguments.length&&void 0!==
arguments[0]?arguments[0]:[];u(this,d);var b=this;if(K){b=n.createElement("custom");for(var a in d.prototype)"constructor"!==a&&(b[a]=d.prototype[a])}b.trackElements_=[];Object.defineProperty(b,"length",{get:function(){return this.trackElements_.length}});a=0;for(var e=c.length;a<e;a++)b.addTrackElement_(c[a]);if(K)return b}d.prototype.addTrackElement_=function(c){var b=this.trackElements_.length;""+b in this||Object.defineProperty(this,b,{get:function(){return this.trackElements_[b]}});-1===this.trackElements_.indexOf(c)&&
this.trackElements_.push(c)};d.prototype.getTrackElementByTrack_=function(c){for(var b=void 0,a=0,d=this.trackElements_.length;a<d;a++)if(c===this.trackElements_[a].track){b=this.trackElements_[a];break}return b};d.prototype.removeTrackElement_=function(c){for(var b=0,a=this.trackElements_.length;b<a;b++)if(c===this.trackElements_[b]){this.trackElements_.splice(b,1);break}};return d}(),ad=function(){function d(c){u(this,d);var b=this;if(K){b=n.createElement("custom");for(var a in d.prototype)"constructor"!==
a&&(b[a]=d.prototype[a])}d.prototype.setCues_.call(b,c);Object.defineProperty(b,"length",{get:function(){return this.length_}});if(K)return b}d.prototype.setCues_=function(c){var b=this.length||0,a=0,d=c.length;this.cues_=c;this.length_=c.length;c=function(a){""+a in this||Object.defineProperty(this,""+a,{get:function(){return this.cues_[a]}})};if(b<d)for(a=b;a<d;a++)c.call(this,a)};d.prototype.getCueById=function(c){for(var b=null,a=0,d=this.length;a<d;a++){var f=this[a];if(f.id===c){b=f;break}}return b};
return d}(),pe={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},qe={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},re={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},bd={disabled:"disabled",hidden:"hidden",showing:"showing"},Jb=function(d){function c(){var b,a=0<arguments.length&&
void 0!==arguments[0]?arguments[0]:{};u(this,c);var e=p(this,d.call(this)),f=e;if(K){f=n.createElement("custom");for(var g in c.prototype)"constructor"!==g&&(f[g]=c.prototype[g])}var h={id:a.id||"vjs_track_"+ka++,kind:a.kind||"",label:a.label||"",language:a.language||""};a=function(a){Object.defineProperty(f,a,{get:function(){return h[a]},set:function(){}})};for(var k in h)a(k);return b=f,p(e,b)}r(c,d);return c}(H),Kb=function(d){var c="protocol hostname port pathname search hash host".split(" "),
b=n.createElement("a");b.href=d;var a=""===b.host&&"file:"!==b.protocol,e=void 0;a&&(e=n.createElement("div"),e.innerHTML='<a href="'+d+'"></a>',b=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),n.body.appendChild(e));d={};for(var f=0;f<c.length;f++)d[c[f]]=b[c[f]];"http:"===d.protocol&&(d.host=d.host.replace(/:80$/,""));"https:"===d.protocol&&(d.host=d.host.replace(/:443$/,""));a&&n.body.removeChild(e);return d},cd=function(d){return"string"===typeof d&&(d=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(d))?
d.pop().toLowerCase():""},db=function(d){var c=m.location;d=Kb(d);return(":"===d.protocol?c.protocol:d.protocol)+d.host!==c.protocol+c.host},se=(Object.freeze||Object)({parseUrl:Kb,getAbsoluteURL:function(d){if(!d.match(/^https?:\/\//)){var c=n.createElement("div");c.innerHTML='<a href="'+d+'">x</a>';d=c.firstChild.href}return d},getFileExtension:cd,isCrossOrigin:db}),xc=function(d){var c=te.call(d);return"[object Function]"===c||"function"===typeof d&&"[object RegExp]"!==c||"undefined"!==typeof window&&
(d===window.setTimeout||d===window.alert||d===window.confirm||d===window.prompt)},te=Object.prototype.toString,Lb=T(function(d,c){c=d.exports=function(b){return b.replace(/^\s*|\s*$/g,"")};c.left=function(b){return b.replace(/^\s*/,"")};c.right=function(b){return b.replace(/\s*$/,"")}}),ve=function(d,c,b){if(!xc(c))throw new TypeError("iterator must be a function");3>arguments.length&&(b=this);if("[object Array]"===ue.call(d))for(var a=b,e=0,f=d.length;e<f;e++)dd.call(d,e)&&c.call(a,d[e],e,d);else if("string"===
typeof d)for(a=b,e=0,f=d.length;e<f;e++)c.call(a,d.charAt(e),e,d);else for(e in a=b,d)dd.call(d,e)&&c.call(a,d[e],e,d)},ue=Object.prototype.toString,dd=Object.prototype.hasOwnProperty,Td=function(d){if(!d)return{};var c={};ve(Lb(d).split("\n"),function(b){var a=b.indexOf(":"),d=Lb(b.slice(0,a)).toLowerCase();b=Lb(b.slice(a+1));"undefined"===typeof c[d]?c[d]=b:"[object Array]"===Object.prototype.toString.call(c[d])?c[d].push(b):c[d]=[c[d],b]});return c},Sd=function(){for(var d={},c=0;c<arguments.length;c++){var b=
arguments[c],a;for(a in b)we.call(b,a)&&(d[a]=b[a])}return d},we=Object.prototype.hasOwnProperty;X.XMLHttpRequest=m.XMLHttpRequest||Ud;X.XDomainRequest="withCredentials"in new X.XMLHttpRequest?X.XMLHttpRequest:m.XDomainRequest;(function(d,c){for(var b=0;b<d.length;b++)c(d[b])})("get put post patch head delete".split(" "),function(d){X["delete"===d?"del":d]=function(c,b,a){b=wc(c,b,a);b.method=d.toUpperCase();return yc(b)}});var ed=function(d,c){var b=new m.WebVTT.Parser(m,m.vttjs,m.WebVTT.StringDecoder()),
a=[];b.oncue=function(a){c.addCue(a)};b.onparsingerror=function(b){a.push(b)};b.onflush=function(){c.trigger({type:"loadeddata",target:c})};b.parse(d);0<a.length&&(m.console&&m.console.groupCollapsed&&m.console.groupCollapsed("Text Track parsing errors for "+c.src),a.forEach(function(a){return w.error(a)}),m.console&&m.console.groupEnd&&m.console.groupEnd());b.flush()},xe=function(d,c){var b={uri:d},a=db(d);a&&(b.cors=a);X(b,v(this,function(a,b,d){if(a)return w.error(a,b);c.loaded_=!0;if("function"!==
typeof m.WebVTT){if(c.tech_){var e=function(){return ed(d,c)};c.tech_.on("vttjsloaded",e);c.tech_.on("vttjserror",function(){w.error("vttjs failed to load, stopping trying to process "+c.src);c.tech_.off("vttjsloaded",e)})}}else ed(d,c)}))},La=function(d){function c(){var b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};u(this,c);if(!a.tech)throw Error("A tech was not provided.");a=D(a,{kind:re[a.kind]||"subtitles",language:a.language||a.srclang||""});var e=bd[a.mode]||"disabled",f=a["default"];
if("metadata"===a.kind||"chapters"===a.kind)e="hidden";var g=(b=p(this,d.call(this,a)),b);g.tech_=a.tech;if(K)for(var h in c.prototype)"constructor"!==h&&(g[h]=c.prototype[h]);g.cues_=[];g.activeCues_=[];var k=new ad(g.cues_),x=new ad(g.activeCues_),y=!1,m=v(g,function(){this.activeCues;y&&(this.trigger("cuechange"),y=!1)});"disabled"!==e&&g.tech_.ready(function(){g.tech_.on("timeupdate",m)},!0);Object.defineProperty(g,"default",{get:function(){return f},set:function(){}});Object.defineProperty(g,
"mode",{get:function(){return e},set:function(a){var b=this;bd[a]&&(e=a,"showing"===e&&this.tech_.ready(function(){b.tech_.on("timeupdate",m)},!0),this.trigger("modechange"))}});Object.defineProperty(g,"cues",{get:function(){return this.loaded_?k:null},set:function(){}});Object.defineProperty(g,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return x;for(var a=this.tech_.currentTime(),b=[],c=0,d=this.cues.length;c<d;c++){var e=this.cues[c];e.startTime<=a&&e.endTime>=
a?b.push(e):e.startTime===e.endTime&&e.startTime<=a&&e.startTime+.5>=a&&b.push(e)}y=!1;if(b.length!==this.activeCues_.length)y=!0;else for(a=0;a<b.length;a++)-1===this.activeCues_.indexOf(b[a])&&(y=!0);this.activeCues_=b;x.setCues_(this.activeCues_);return x},set:function(){}});a.src?(g.src=a.src,xe(a.src,g)):g.loaded_=!0;return p(b,g)}r(c,d);c.prototype.addCue=function(b){var a=b;if(m.vttjs&&!(b instanceof m.vttjs.VTTCue)){a=new m.vttjs.VTTCue(b.startTime,b.endTime,b.text);for(var c in b)c in a||
(a[c]=b[c]);a.id=b.id;a.originalCue_=b}b=this.tech_.textTracks();for(c=0;c<b.length;c++)b[c]!==this&&b[c].removeCue(a);this.cues_.push(a);this.cues.setCues_(this.cues_)};c.prototype.removeCue=function(b){for(var a=this.cues_.length;a--;){var c=this.cues_[a];if(c===b||c.originalCue_&&c.originalCue_===b){this.cues_.splice(a,1);this.cues.setCues_(this.cues_);break}}};return c}(Jb);La.prototype.allowedEvents_={cuechange:"cuechange"};var fd=function(d){function c(){var b,a=0<arguments.length&&void 0!==
arguments[0]?arguments[0]:{};u(this,c);a=D(a,{kind:qe[a.kind]||""});var e=(b=p(this,d.call(this,a)),b),f=!1;if(K)for(var g in c.prototype)"constructor"!==g&&(e[g]=c.prototype[g]);Object.defineProperty(e,"enabled",{get:function(){return f},set:function(a){"boolean"===typeof a&&a!==f&&(f=a,this.trigger("enabledchange"))}});a.enabled&&(e.enabled=a.enabled);e.loaded_=!0;return p(b,e)}r(c,d);return c}(Jb),gd=function(d){function c(){var b,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};u(this,
c);a=D(a,{kind:pe[a.kind]||""});var e=(b=p(this,d.call(this,a)),b),f=!1;if(K)for(var g in c.prototype)"constructor"!==g&&(e[g]=c.prototype[g]);Object.defineProperty(e,"selected",{get:function(){return f},set:function(a){"boolean"===typeof a&&a!==f&&(f=a,this.trigger("selectedchange"))}});a.selected&&(e.selected=a.selected);return p(b,e)}r(c,d);return c}(Jb),ya=function(d){function c(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};u(this,c);var a=p(this,d.call(this)),e=void 0,f=a;
if(K){f=n.createElement("custom");for(var g in c.prototype)"constructor"!==g&&(f[g]=c.prototype[g])}var h=new La(b);f.kind=h.kind;f.src=h.src;f.srclang=h.language;f.label=h.label;f["default"]=h["default"];Object.defineProperty(f,"readyState",{get:function(){return e}});Object.defineProperty(f,"track",{get:function(){return h}});e=0;h.addEventListener("loadeddata",function(){e=2;f.trigger({type:"load",target:f})});if(K){var k;return k=f,p(a,k)}return a}r(c,d);return c}(H);ya.prototype.allowedEvents_=
{load:"load"};ya.NONE=0;ya.LOADING=1;ya.LOADED=2;ya.ERROR=3;var S={audio:{ListClass:me,TrackClass:fd,capitalName:"Audio"},video:{ListClass:ne,TrackClass:gd,capitalName:"Video"},text:{ListClass:$c,TrackClass:La,capitalName:"Text"}};Object.keys(S).forEach(function(d){S[d].getterName=d+"Tracks";S[d].privateName=d+"Tracks_"});var Ma={remoteText:{ListClass:$c,TrackClass:La,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:oe,TrackClass:ya,capitalName:"RemoteTextTrackEls",
getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},O=D(S,Ma);Ma.names=Object.keys(Ma);S.names=Object.keys(S);O.names=[].concat(Ma.names).concat(S.names);var ub=Object.create||function(){function d(){}return function(c){if(1!==arguments.length)throw Error("Object.create shim only accepts one parameter.");d.prototype=c;return new d}}();N.prototype=ub(Error.prototype);N.prototype.constructor=N;N.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,
message:"Malformed time stamp."}};Ha.prototype={set:function(d,c){this.get(d)||""===c||(this.values[d]=c)},get:function(d,c,b){return b?this.has(d)?this.values[d]:c[b]:this.has(d)?this.values[d]:c},has:function(d){return d in this.values},alt:function(d,c,b){for(var a=0;a<b.length;++a)if(c===b[a]){this.set(d,c);break}},integer:function(d,c){/^-?\d+$/.test(c)&&this.set(d,parseInt(c,10))},percent:function(d,c){return c.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(c=parseFloat(c),0<=c&&100>=c)?(this.set(d,c),
!0):!1}};var Wd={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"\u200e","&rlm;":"\u200f","&nbsp;":"\u00a0"},Xd={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},Yd={v:"title",lang:"lang"},Ac={rt:"ruby"},Bc=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,
2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],
[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],
[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];vb.prototype.applyStyles=function(d,c){c=c||this.div;for(var b in d)d.hasOwnProperty(b)&&(c.style[b]=d[b])};vb.prototype.formatStyle=function(d,c){return 0===d?0:d+c};Ua.prototype=ub(vb.prototype);Ua.prototype.constructor=Ua;J.prototype.move=function(d,c){c=void 0!==c?c:this.lineHeight;switch(d){case "+x":this.left+=c;this.right+=
c;break;case "-x":this.left-=c;this.right-=c;break;case "+y":this.top+=c;this.bottom+=c;break;case "-y":this.top-=c,this.bottom-=c}};J.prototype.overlaps=function(d){return this.left<d.right&&this.right>d.left&&this.top<d.bottom&&this.bottom>d.top};J.prototype.overlapsAny=function(d){for(var c=0;c<d.length;c++)if(this.overlaps(d[c]))return!0;return!1};J.prototype.within=function(d){return this.top>=d.top&&this.bottom<=d.bottom&&this.left>=d.left&&this.right<=d.right};J.prototype.overlapsOppositeAxis=
function(d,c){switch(c){case "+x":return this.left<d.left;case "-x":return this.right>d.right;case "+y":return this.top<d.top;case "-y":return this.bottom>d.bottom}};J.prototype.intersectPercentage=function(d){return Math.max(0,Math.min(this.right,d.right)-Math.max(this.left,d.left))*Math.max(0,Math.min(this.bottom,d.bottom)-Math.max(this.top,d.top))/(this.height*this.width)};J.prototype.toCSSCompatValues=function(d){return{top:this.top-d.top,bottom:d.bottom-this.bottom,left:this.left-d.left,right:d.right-
this.right,height:this.height,width:this.width}};J.getSimpleBoxPosition=function(d){var c=d.div?d.div.offsetHeight:d.tagName?d.offsetHeight:0,b=d.div?d.div.offsetWidth:d.tagName?d.offsetWidth:0,a=d.div?d.div.offsetTop:d.tagName?d.offsetTop:0;d=d.div?d.div.getBoundingClientRect():d.tagName?d.getBoundingClientRect():d;return{left:d.left,right:d.right,top:d.top||a,height:d.height||c,bottom:d.bottom||a+(d.height||c),width:d.width||b}};ta.StringDecoder=function(){return{decode:function(d){if(!d)return"";
if("string"!==typeof d)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))}}};ta.convertCueToDOMTree=function(d,c){return d&&c?zc(d,c):null};ta.processCues=function(d,c,b){if(!d||!c||!b)return null;for(;b.firstChild;)b.removeChild(b.firstChild);var a=d.document.createElement("div");a.style.position="absolute";a.style.left="0";a.style.right="0";a.style.top="0";a.style.bottom="0";a.style.margin="1.5%";b.appendChild(a);if(function(a){for(var b=0;b<a.length;b++)if(a[b].hasBeenReset||
!a[b].displayState)return!0;return!1}(c)){var e=[],f=J.getSimpleBoxPosition(a),g={font:Math.round(5*f.height)/100+"px sans-serif"};(function(){for(var b,k,x=0;x<c.length;x++){k=c[x];b=new Ua(d,k,g);a.appendChild(b.div);var y=void 0,m=void 0,l=b,p=f,u=e,q=new J(l),n=l.cue;if("number"===typeof n.line&&(n.snapToLines||0<=n.line&&100>=n.line))var r=n.line;else if(n.track&&n.track.textTrackList&&n.track.textTrackList.mediaElement){r=n.track;for(var t=r.textTrackList,v=0,w=0;w<t.length&&t[w]!==r;w++)"showing"===
t[w].mode&&v++;r=-1*++v}else r=-1;t=[];if(n.snapToLines){switch(n.vertical){case "":t=["+y","-y"];m="height";break;case "rl":t=["+x","-x"];m="width";break;case "lr":t=["-x","+x"],m="width"}v=q.lineHeight;w=v*Math.round(r);m=p[m]+v;var z=t[0];Math.abs(w)>m&&(w=(0>w?-1:1)*Math.ceil(m/v)*v);0>r&&(w+=""===n.vertical?p.height:p.width,t=t.reverse());q.move(z,w)}else{q=q.lineHeight/p.height*100;switch(n.lineAlign){case "middle":r-=q/2;break;case "end":r-=q}switch(n.vertical){case "":l.applyStyles({top:l.formatStyle(r,
"%")});break;case "rl":l.applyStyles({left:l.formatStyle(r,"%")});break;case "lr":l.applyStyles({right:l.formatStyle(r,"%")})}t=["+y","-x","+x","-y"];q=new J(l)}a:{n=q;q=t;m=new J(n);r=1;for(t=0;t<q.length;t++){for(;n.overlapsOppositeAxis(p,q[t])||n.within(p)&&n.overlapsAny(u);)n.move(q[t]);if(n.within(p)){y=n;break a}v=n.intersectPercentage(p);r>v&&(y=new J(n),r=v);n=new J(m)}y=y||m}l.move(y.toCSSCompatValues(p));k.displayState=b.div;e.push(J.getSimpleBoxPosition(b))}})()}else for(b=0;b<c.length;b++)a.appendChild(c[b].displayState)};
ta.Parser=function(d,c,b){b||(b=c,c={});c||(c={});this.window=d;this.vttjs=c;this.state="INITIAL";this.buffer="";this.decoder=b||new TextDecoder("utf8");this.regionList=[]};ta.Parser.prototype={reportOrThrowError:function(d){if(d instanceof N)this.onparsingerror&&this.onparsingerror(d);else throw d;},parse:function(d){function c(){for(var a=f.buffer,b=0;b<a.length&&"\r"!==a[b]&&"\n"!==a[b];)++b;var c=a.substr(0,b);"\r"===a[b]&&++b;"\n"===a[b]&&++b;f.buffer=a.substr(b);return c}function b(a){var b=
new Ha;Ia(a,function(a,c){switch(a){case "id":b.set(a,c);break;case "width":b.percent(a,c);break;case "lines":b.integer(a,c);break;case "regionanchor":case "viewportanchor":var d=c.split(",");if(2!==d.length)break;var e=new Ha;e.percent("x",d[0]);e.percent("y",d[1]);if(!e.has("x")||!e.has("y"))break;b.set(a+"X",e.get("x"));b.set(a+"Y",e.get("y"));break;case "scroll":b.alt(a,c,["up"])}},/=/,/\s/);b.has("id")&&(a=new (f.vttjs.VTTRegion||f.window.VTTRegion),a.width=b.get("width",100),a.lines=b.get("lines",
3),a.regionAnchorX=b.get("regionanchorX",0),a.regionAnchorY=b.get("regionanchorY",100),a.viewportAnchorX=b.get("viewportanchorX",0),a.viewportAnchorY=b.get("viewportanchorY",100),a.scroll=b.get("scroll",""),f.onregion&&f.onregion(a),f.regionList.push({id:b.get("id"),region:a}))}function a(a){var b=new Ha;Ia(a,function(a,c){switch(a){case "MPEGT":b.integer(a+"S",c);break;case "LOCA":b.set(a+"L",tb(c))}},/[^\d]:/,/,/);f.ontimestampmap&&f.ontimestampmap({MPEGTS:b.get("MPEGTS"),LOCAL:b.get("LOCAL")})}
function e(c){c.match(/X-TIMESTAMP-MAP/)?Ia(c,function(b,c){switch(b){case "X-TIMESTAMP-MAP":a(c)}},/=/):Ia(c,function(a,c){switch(a){case "Region":b(c)}},/:/)}var f=this;d&&(f.buffer+=f.decoder.decode(d,{stream:!0}));try{if("INITIAL"===f.state){if(!/\r\n|\n/.test(f.buffer))return this;var g=c();var h=g.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new N(N.Errors.BadSignature);f.state="HEADER"}for(d=!1;f.buffer;){if(!/\r\n|\n/.test(f.buffer))return this;d?d=!1:g=c();switch(f.state){case "HEADER":/:/.test(g)?
e(g):g||(f.state="ID");continue;case "NOTE":g||(f.state="ID");continue;case "ID":if(/^NOTE($|[ \t])/.test(g)){f.state="NOTE";break}if(!g)continue;f.cue=new (f.vttjs.VTTCue||f.window.VTTCue)(0,0,"");f.state="CUE";if(-1===g.indexOf("--\x3e")){f.cue.id=g;continue}case "CUE":try{Vd(g,f.cue,f.regionList)}catch(x){f.reportOrThrowError(x);f.cue=null;f.state="BADCUE";continue}f.state="CUETEXT";continue;case "CUETEXT":var k=-1!==g.indexOf("--\x3e");if(!g||k&&(d=!0)){f.oncue&&f.oncue(f.cue);f.cue=null;f.state=
"ID";continue}f.cue.text&&(f.cue.text+="\n");f.cue.text+=g;continue;case "BADCUE":g||(f.state="ID")}}}catch(x){f.reportOrThrowError(x);if("CUETEXT"===f.state&&f.cue&&f.oncue)f.oncue(f.cue);f.cue=null;f.state="INITIAL"===f.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{this.buffer+=this.decoder.decode();if(this.cue||"HEADER"===this.state)this.buffer+="\n\n",this.parse();if("INITIAL"===this.state)throw new N(N.Errors.BadSignature);}catch(d){this.reportOrThrowError(d)}this.onflush&&this.onflush();
return this}};var be={"":!0,lr:!0,rl:!0},ae={start:!0,middle:!0,end:!0,left:!0,right:!0};Cc.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var ye={"":!0,up:!0},ze=function(){var d=100,c=3,b=0,a=100,e=0,f=100,g="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return d},set:function(a){if(!Ja(a))throw Error("Width must be between 0 and 100.");d=a}},lines:{enumerable:!0,get:function(){return c},set:function(a){if("number"!==typeof a)throw new TypeError("Lines must be set to a number.");
c=a}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(b){if(!Ja(b))throw Error("RegionAnchorX must be between 0 and 100.");a=b}},regionAnchorX:{enumerable:!0,get:function(){return b},set:function(a){if(!Ja(a))throw Error("RegionAnchorY must be between 0 and 100.");b=a}},viewportAnchorY:{enumerable:!0,get:function(){return f},set:function(a){if(!Ja(a))throw Error("ViewportAnchorY must be between 0 and 100.");f=a}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(a){if(!Ja(a))throw Error("ViewportAnchorX must be between 0 and 100.");
e=a}},scroll:{enumerable:!0,get:function(){return g},set:function(a){a="string"!==typeof a?!1:ye[a.toLowerCase()]?a.toLowerCase():!1;if(!1===a)throw new SyntaxError("An invalid or illegal string was specified.");g=a}}})},hd=T(function(d){d=d.exports={WebVTT:ta,VTTCue:Cc,VTTRegion:ze};m.vttjs=d;m.WebVTT=d.WebVTT;var c=d.VTTCue,b=d.VTTRegion,a=m.VTTCue,e=m.VTTRegion;d.shim=function(){m.VTTCue=c;m.VTTRegion=b};d.restore=function(){m.VTTCue=a;m.VTTRegion=e};m.VTTCue||d.shim()}),A=function(d){function c(){var b=
0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){};u(this,c);b.reportTouchActivity=!1;var e=p(this,d.call(this,null,b,a));e.hasStarted_=!1;e.on("playing",function(){this.hasStarted_=!0});e.on("loadstart",function(){this.hasStarted_=!1});O.names.forEach(function(a){a=O[a];b&&b[a.getterName]&&(e[a.privateName]=b[a.getterName])});e.featuresProgressEvents||e.manualProgressOn();e.featuresTimeupdateEvents||e.manualTimeUpdatesOn();
["Text","Audio","Video"].forEach(function(a){!1===b["native"+a+"Tracks"]&&(e["featuresNative"+a+"Tracks"]=!1)});if(!1===b.nativeCaptions||!1===b.nativeTextTracks)e.featuresNativeTextTracks=!1;else if(!0===b.nativeCaptions||!0===b.nativeTextTracks)e.featuresNativeTextTracks=!0;e.featuresNativeTextTracks||e.emulateTextTracks();e.autoRemoteTextTracks_=new O.text.ListClass;e.initTrackListeners();b.nativeControlsForTouch||e.emitTapEvents();e.constructor&&(e.name_=e.constructor.name||"Unknown Tech");return e}
r(c,d);c.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange);this.manualProgress=!0;this.one("ready",this.trackProgress)};c.prototype.manualProgressOff=function(){this.manualProgress=!1;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)};c.prototype.trackProgress=function(b){this.stopTrackingProgress();this.progressInterval=this.setInterval(v(this,function(){var a=this.bufferedPercent();this.bufferedPercent_!==a&&this.trigger("progress");
this.bufferedPercent_=a;1===a&&this.stopTrackingProgress()}),500)};c.prototype.onDurationChange=function(b){this.duration_=this.duration()};c.prototype.buffered=function(){return la(0,0)};c.prototype.bufferedPercent=function(){return vc(this.buffered(),this.duration_)};c.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)};c.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)};
c.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)};c.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime();this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)};c.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval);
this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})};c.prototype.dispose=function(){this.clearTracks(S.names);this.manualProgress&&this.manualProgressOff();this.manualTimeUpdates&&this.manualTimeUpdatesOff();d.prototype.dispose.call(this)};c.prototype.clearTracks=function(b){var a=this;b=[].concat(b);b.forEach(function(b){for(var c=a[b+"Tracks"]()||[],d=c.length;d--;){var e=c[d];"text"===b&&a.removeRemoteTextTrack(e);c.removeTrack(e)}})};c.prototype.cleanupAutoTextTracks=function(){for(var b=
this.autoRemoteTextTracks_||[],a=b.length;a--;)this.removeRemoteTextTrack(b[a])};c.prototype.reset=function(){};c.prototype.error=function(b){void 0!==b&&(this.error_=new I(b),this.trigger("error"));return this.error_};c.prototype.played=function(){return this.hasStarted_?la(0,0):la()};c.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})};c.prototype.initTrackListeners=function(){var b=this;S.names.forEach(function(a){var c=
function(){b.trigger(a+"trackchange")},d=b[S[a].getterName]();d.addEventListener("removetrack",c);d.addEventListener("addtrack",c);b.on("dispose",function(){d.removeEventListener("removetrack",c);d.removeEventListener("addtrack",c)})})};c.prototype.addWebVttScript_=function(){var b=this;if(!m.WebVTT)if(n.body.contains(this.el()))if(!this.options_["vtt.js"]&&U(hd)&&0<Object.keys(hd).length)this.trigger("vttjsloaded");else{var a=n.createElement("script");a.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js";
a.onload=function(){b.trigger("vttjsloaded")};a.onerror=function(){b.trigger("vttjserror")};this.on("dispose",function(){a.onload=null;a.onerror=null});m.WebVTT=!0;this.el().parentNode.appendChild(a)}else this.ready(this.addWebVttScript_)};c.prototype.emulateTextTracks=function(){var b=this,a=this.textTracks(),c=this.remoteTextTracks(),d=function(b){return a.addTrack(b.track)},g=function(b){return a.removeTrack(b.track)};c.on("addtrack",d);c.on("removetrack",g);this.addWebVttScript_();var h=function(){return b.trigger("texttrackchange")},
k=function(){h();for(var b=0;b<a.length;b++){var c=a[b];c.removeEventListener("cuechange",h);"showing"===c.mode&&c.addEventListener("cuechange",h)}};k();a.addEventListener("change",k);a.addEventListener("addtrack",k);a.addEventListener("removetrack",k);this.on("dispose",function(){c.off("addtrack",d);c.off("removetrack",g);a.removeEventListener("change",k);a.removeEventListener("addtrack",k);a.removeEventListener("removetrack",k);for(var b=0;b<a.length;b++)a[b].removeEventListener("cuechange",h)})};
c.prototype.addTextTrack=function(b,a,c){if(!b)throw Error("TextTrack kind is required but was not provided");return ce(this,b,a,c)};c.prototype.createRemoteTextTrack=function(b){b=D(b,{tech:this});return new Ma.remoteTextEl.TrackClass(b)};c.prototype.addRemoteTextTrack=function(){var b=this,a=arguments[1],c=this.createRemoteTextTrack(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{});!0!==a&&!1!==a&&(w.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),
a=!0);this.remoteTextTrackEls().addTrackElement_(c);this.remoteTextTracks().addTrack(c.track);!0!==a&&this.ready(function(){return b.autoRemoteTextTracks_.addTrack(c.track)});return c};c.prototype.removeRemoteTextTrack=function(b){var a=this.remoteTextTrackEls().getTrackElementByTrack_(b);this.remoteTextTrackEls().removeTrackElement_(a);this.remoteTextTracks().removeTrack(b);this.autoRemoteTextTracks_.removeTrack(b)};c.prototype.getVideoPlaybackQuality=function(){return{}};c.prototype.setPoster=function(){};
c.prototype.playsinline=function(){};c.prototype.setPlaysinline=function(){};c.prototype.canPlayType=function(){return""};c.canPlayType=function(){return""};c.canPlaySource=function(b,a){return c.canPlayType(b.type)};c.isTech=function(b){return b.prototype instanceof c||b instanceof c||b===c};c.registerTech=function(b,a){c.techs_||(c.techs_={});if(!c.isTech(a))throw Error("Tech "+b+" must be a Tech");if(!c.canPlayType)throw Error("Techs must have a static canPlayType method on them");if(!c.canPlaySource)throw Error("Techs must have a static canPlaySource method on them");
b=C(b);c.techs_[b]=a;"Tech"!==b&&c.defaultTechOrder_.push(b);return a};c.getTech=function(b){if(b){b=C(b);if(c.techs_&&c.techs_[b])return c.techs_[b];if(m&&m.videojs&&m.videojs[b])return w.warn("The "+b+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),m.videojs[b]}};return c}(l);O.names.forEach(function(d){var c=O[d];A.prototype[c.getterName]=function(){this[c.privateName]=this[c.privateName]||new c.ListClass;return this[c.privateName]}});
A.prototype.featuresVolumeControl=!0;A.prototype.featuresFullscreenResize=!1;A.prototype.featuresPlaybackRate=!1;A.prototype.featuresProgressEvents=!1;A.prototype.featuresTimeupdateEvents=!1;A.prototype.featuresNativeTextTracks=!1;A.withSourceHandlers=function(d){d.registerSourceHandler=function(c,b){var a=d.sourceHandlers;a||(a=d.sourceHandlers=[]);void 0===b&&(b=a.length);a.splice(b,0,c)};d.canPlayType=function(c){for(var b=d.sourceHandlers||[],a,e=0;e<b.length;e++)if(a=b[e].canPlayType(c))return a;
return""};d.selectSourceHandler=function(c,b){for(var a=d.sourceHandlers||[],e,f=0;f<a.length;f++)if(e=a[f].canHandleSource(c,b))return a[f];return null};d.canPlaySource=function(c,b){var a=d.selectSourceHandler(c,b);return a?a.canHandleSource(c,b):""};["seekable","duration"].forEach(function(c){var b=this[c];"function"===typeof b&&(this[c]=function(){return this.sourceHandler_&&this.sourceHandler_[c]?this.sourceHandler_[c].apply(this.sourceHandler_,arguments):b.apply(this,arguments)})},d.prototype);
d.prototype.setSource=function(c){var b=d.selectSourceHandler(c,this.options_);b||(d.nativeSourceHandler?b=d.nativeSourceHandler:w.error("No source hander found for the current source."));this.disposeSourceHandler();this.off("dispose",this.disposeSourceHandler);b!==d.nativeSourceHandler&&(this.currentSource_=c);this.sourceHandler_=b.handleSource(c,this,this.options_);this.on("dispose",this.disposeSourceHandler)};d.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio",
"video"]),this.currentSource_=null);this.cleanupAutoTextTracks();this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}};l.registerComponent("Tech",A);A.registerTech("Tech",A);A.defaultTechOrder_=[];var ma={},Ae={buffered:1,currentTime:1,duration:1,seekable:1,played:1},Be={setCurrentTime:1},Ce=function b(c){if(Array.isArray(c)){var a=[];c.forEach(function(c){c=b(c);Array.isArray(c)?a=a.concat(c):M(c)&&a.push(c)});c=a}else c="string"===typeof c&&
c.trim()?[{src:c}]:M(c)&&"string"===typeof c.src&&c.src&&c.src.trim()?[c]:[];return c},De=function(c){function b(a,e,f){u(this,b);var g=D({createEl:!1},e);f=p(this,c.call(this,a,g,f));if(e.playerOptions.sources&&0!==e.playerOptions.sources.length)a.src(e.playerOptions.sources);else for(g=0,e=e.playerOptions.techOrder;g<e.length;g++){var h=C(e[g]),k=A.getTech(h);h||(k=l.getComponent(h));if(k&&k.isSupported()){a.loadTech_(h);break}}return f}r(b,c);return b}(l);l.registerComponent("MediaLoader",De);
var eb=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.emitTapEvents();f.enable();return f}r(b,c);b.prototype.createEl=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"div",b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};b=z({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},b);"button"===a&&w.error("Creating a ClickableComponent with an HTML element of "+
a+" is not supported; use a Button instead.");f=z({role:"button","aria-live":"polite"},f);this.tabIndex_=b.tabIndex;a=c.prototype.createEl.call(this,a,b,f);this.createControlTextEl(a);return a};b.prototype.createControlTextEl=function(a){this.controlTextEl_=B("span",{className:"vjs-control-text"});a&&a.appendChild(this.controlTextEl_);this.controlText(this.controlText_,a);return this.controlTextEl_};b.prototype.controlText=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.el();
if(!a)return this.controlText_||"Need Text";var c=this.localize(a);this.controlText_=a;Aa(this.controlTextEl_,c);this.nonIconControl||b.setAttribute("title",c)};b.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+c.prototype.buildCSSClass.call(this)};b.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap",
"click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))};b.prototype.disable=function(){this.enabled_=!1;this.addClass("vjs-disabled");this.el_.setAttribute("aria-disabled","true");"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex");this.off(["tap","click"],this.handleClick);this.off("focus",this.handleFocus);this.off("blur",this.handleBlur)};b.prototype.handleClick=function(a){};b.prototype.handleFocus=function(a){W(n,"keydown",v(this,this.handleKeyPress))};
b.prototype.handleKeyPress=function(a){32===a.which||13===a.which?(a.preventDefault(),this.trigger("click")):c.prototype.handleKeyPress&&c.prototype.handleKeyPress.call(this,a)};b.prototype.handleBlur=function(a){P(n,"keydown",v(this,this.handleKeyPress))};return b}(l);l.registerComponent("ClickableComponent",eb);var Ee=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.update();a.on("posterchange",v(f,f.update));return f}r(b,c);b.prototype.dispose=function(){this.player().off("posterchange",
this.update);c.prototype.dispose.call(this)};b.prototype.createEl=function(){var a=B("div",{className:"vjs-poster",tabIndex:-1});Qc||(this.fallbackImg_=B("img"),a.appendChild(this.fallbackImg_));return a};b.prototype.update=function(a){a=this.player().poster();this.setSrc(a);a?this.show():this.hide()};b.prototype.setSrc=function(a){if(this.fallbackImg_)this.fallbackImg_.src=a;else{var b="";a&&(b='url("'+a+'")');this.el_.style.backgroundImage=b}};b.prototype.handleClick=function(a){this.player_.controls()&&
(this.player_.paused()?this.player_.play():this.player_.pause())};return b}(eb);l.registerComponent("PosterImage",Ee);var Fe={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},Ge=
function(c){function b(a,e,f){u(this,b);e=p(this,c.call(this,a,e,f));a.on("loadstart",v(e,e.toggleDisplay));a.on("texttrackchange",v(e,e.updateDisplay));a.on("loadstart",v(e,e.preselectTrack));a.ready(v(e,function(){if(a.tech_&&a.tech_.featuresNativeTextTracks)this.hide();else{a.on("fullscreenchange",v(this,this.updateDisplay));for(var b=this.options_.playerOptions.tracks||[],c=0;c<b.length;c++)this.player_.addRemoteTextTrack(b[c],!0);this.preselectTrack()}}));return e}r(b,c);b.prototype.preselectTrack=
function(){for(var a={captions:1,subtitles:1},b=this.player_.textTracks(),c=this.player_.cache_.selectedLanguage,g=void 0,h=void 0,k=void 0,m=0;m<b.length;m++){var l=b[m];c&&c.enabled&&c.language===l.language?l.kind===c.kind?k=l:k||(k=l):c&&!c.enabled?h=g=k=null:l["default"]&&("descriptions"!==l.kind||g?l.kind in a&&!h&&(h=l):g=l)}k?k.mode="showing":h?h.mode="showing":g&&(g.mode="showing")};b.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():
this.show()};b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})};b.prototype.clearDisplay=function(){"function"===typeof m.WebVTT&&m.WebVTT.processCues(m,[],this.el_)};b.prototype.updateDisplay=function(){var a=this.player_.textTracks();this.clearDisplay();for(var b=null,c=null,g=a.length;g--;){var h=a[g];"showing"===h.mode&&("descriptions"===h.kind?b=h:c=h)}c?("off"!==this.getAttribute("aria-live")&&
this.setAttribute("aria-live","off"),this.updateForTrack(c)):b&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(b))};b.prototype.updateForTrack=function(a){if("function"===typeof m.WebVTT&&a.activeCues){for(var b=this.player_.textTrackSettings.getValues(),c=[],g=0;g<a.activeCues.length;g++)c.push(a.activeCues[g]);m.WebVTT.processCues(m,c,this.el_);for(a=c.length;a--;)if(g=c[a]){g=g.displayState;b.color&&(g.firstChild.style.color=b.color);
if(b.textOpacity){var h=xb(b.color||"#fff",b.textOpacity);try{g.firstChild.style.color=h}catch(k){}}b.backgroundColor&&(g.firstChild.style.backgroundColor=b.backgroundColor);if(b.backgroundOpacity){h=xb(b.backgroundColor||"#000",b.backgroundOpacity);try{g.firstChild.style.backgroundColor=h}catch(k){}}if(b.windowColor)if(b.windowOpacity){h=xb(b.windowColor,b.windowOpacity);try{g.style.backgroundColor=h}catch(k){}}else g.style.backgroundColor=b.windowColor;b.edgeStyle&&("dropshadow"===b.edgeStyle?g.firstChild.style.textShadow=
"2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===b.edgeStyle?g.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===b.edgeStyle?g.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===b.edgeStyle&&(g.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222"));b.fontPercent&&1!==b.fontPercent&&(h=m.parseFloat(g.style.fontSize),g.style.fontSize=h*b.fontPercent+"px",g.style.height="auto",
g.style.top="auto",g.style.bottom="2px");b.fontFamily&&"default"!==b.fontFamily&&("small-caps"===b.fontFamily?g.firstChild.style.fontVariant="small-caps":g.firstChild.style.fontFamily=Fe[b.fontFamily])}}};return b}(l);l.registerComponent("TextTrackDisplay",Ge);var He=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})};return b}(l);l.registerComponent("LoadingSpinner",
He);var Y=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.createEl=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};a="button";b=z({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},b);c=z({type:"button","aria-live":"polite"},c);b=l.prototype.createEl.call(this,a,b,c);this.createControlTextEl(b);return b};b.prototype.addChild=
function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};w.warn("Adding an actionable (user controllable) child to a Button ("+this.constructor.name+") is not supported; use a ClickableComponent instead.");return l.prototype.addChild.call(this,a,b)};b.prototype.enable=function(){c.prototype.enable.call(this);this.el_.removeAttribute("disabled")};b.prototype.disable=function(){c.prototype.disable.call(this);this.el_.setAttribute("disabled","disabled")};b.prototype.handleKeyPress=
function(a){32!==a.which&&13!==a.which&&c.prototype.handleKeyPress.call(this,a)};return b}(eb);l.registerComponent("Button",Y);var id=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.mouseused_=!1;f.on("mousedown",f.handleMouseDown);return f}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-big-play-button"};b.prototype.handleClick=function(a){var b=this.player_.play();if(!(this.mouseused_&&a.clientX&&a.clientY)){var c=(a=this.player_.getChild("controlBar"))&&a.getChild("playToggle");
c?(a=function(){return c.focus()},b&&b.then?b.then(a,function(){}):this.setTimeout(a,1)):this.player_.focus()}};b.prototype.handleKeyPress=function(a){this.mouseused_=!1;c.prototype.handleKeyPress.call(this,a)};b.prototype.handleMouseDown=function(a){this.mouseused_=!0};return b}(Y);id.prototype.controlText_="Play Video";l.registerComponent("BigPlayButton",id);var Ie=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.controlText(e&&e.controlText||f.localize("Close"));return f}
r(b,c);b.prototype.buildCSSClass=function(){return"vjs-close-button "+c.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function(a){this.trigger({type:"close",bubbles:!1})};return b}(Y);l.registerComponent("CloseButton",Ie);var jd=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.on(a,"play",f.handlePlay);f.on(a,"pause",f.handlePause);f.on(a,"ended",f.handleEnded);return f}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-play-control "+c.prototype.buildCSSClass.call(this)};
b.prototype.handleClick=function(a){this.player_.paused()?this.player_.play():this.player_.pause()};b.prototype.handlePlay=function(a){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")};b.prototype.handlePause=function(a){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")};b.prototype.handleEnded=function(a){this.removeClass("vjs-playing");this.addClass("vjs-ended");this.controlText("Replay")};return b}(Y);
jd.prototype.controlText_="Play";l.registerComponent("PlayToggle",jd);var Je=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.throttledUpdateContent=fa(v(f,f.updateContent),25);f.on(a,"timeupdate",f.throttledUpdateContent);return f}r(b,c);b.prototype.createEl=function(){var a=c.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});this.contentEl_=B("div",{className:"vjs-current-time-display"},{"aria-live":"off"},B("span",{className:"vjs-control-text",
textContent:this.localize("Current Time")}));this.updateTextNode_();a.appendChild(this.contentEl_);return a};b.prototype.updateTextNode_=function(){this.textNode_&&this.contentEl_.removeChild(this.textNode_);this.textNode_=n.createTextNode(" "+(this.formattedTime_||"0:00"));this.contentEl_.appendChild(this.textNode_)};b.prototype.updateContent=function(a){a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();a=da(a,this.player_.duration());a!==this.formattedTime_&&
(this.formattedTime_=a,this.requestAnimationFrame(this.updateTextNode_))};return b}(l);l.registerComponent("CurrentTimeDisplay",Je);var Ke=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.throttledUpdateContent=fa(v(f,f.updateContent),25);f.on(a,["durationchange","loadedmetadata","timeupdate"],f.throttledUpdateContent);return f}r(b,c);b.prototype.createEl=function(){var a=c.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});this.contentEl_=
B("div",{className:"vjs-duration-display"},{"aria-live":"off"},B("span",{className:"vjs-control-text",textContent:this.localize("Duration Time")}));this.updateTextNode_();a.appendChild(this.contentEl_);return a};b.prototype.updateTextNode_=function(){this.textNode_&&this.contentEl_.removeChild(this.textNode_);this.textNode_=n.createTextNode(" "+(this.formattedTime_||"0:00"));this.contentEl_.appendChild(this.textNode_)};b.prototype.updateContent=function(a){(a=this.player_.duration())&&this.duration_!==
a&&(this.duration_=a,this.formattedTime_=da(a),this.requestAnimationFrame(this.updateTextNode_))};return b}(l);l.registerComponent("DurationDisplay",Ke);var Le=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})};return b}(l);l.registerComponent("TimeDivider",Le);var Me=function(c){function b(a,e){u(this,b);
var f=p(this,c.call(this,a,e));f.throttledUpdateContent=fa(v(f,f.updateContent),25);f.on(a,["timeupdate","durationchange"],f.throttledUpdateContent);return f}r(b,c);b.prototype.createEl=function(){var a=c.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});this.contentEl_=B("div",{className:"vjs-remaining-time-display"},{"aria-live":"off"},B("span",{className:"vjs-control-text",textContent:this.localize("Remaining Time")}));this.updateTextNode_();a.appendChild(this.contentEl_);
return a};b.prototype.updateTextNode_=function(){this.textNode_&&this.contentEl_.removeChild(this.textNode_);this.textNode_=n.createTextNode(" -"+(this.formattedTime_||"0:00"));this.contentEl_.appendChild(this.textNode_)};b.prototype.updateContent=function(a){this.player_.duration()&&(a=da(this.player_.remainingTime()),a!==this.formattedTime_&&(this.formattedTime_=a,this.requestAnimationFrame(this.updateTextNode_)))};return b}(l);l.registerComponent("RemainingTimeDisplay",Me);var Ne=function(c){function b(a,
e){u(this,b);var f=p(this,c.call(this,a,e));f.updateShowing();f.on(f.player(),"durationchange",f.updateShowing);return f}r(b,c);b.prototype.createEl=function(){var a=c.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});this.contentEl_=B("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"});a.appendChild(this.contentEl_);return a};b.prototype.updateShowing=function(a){Infinity===
this.player().duration()?this.show():this.hide()};return b}(l);l.registerComponent("LiveDisplay",Ne);var Mb=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.bar=f.getChild(f.options_.barName);f.vertical(!!f.options_.vertical);f.on("mousedown",f.handleMouseDown);f.on("touchstart",f.handleMouseDown);f.on("focus",f.handleFocus);f.on("blur",f.handleBlur);f.on("click",f.handleClick);f.on(a,"controlsvisible",f.update);if(f.playerEvent)f.on(a,f.playerEvent,f.update);return f}r(b,c);
b.prototype.createEl=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};b.className+=" vjs-slider";b=z({tabIndex:0},b);f=z({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},f);return c.prototype.createEl.call(this,a,b,f)};b.prototype.handleMouseDown=function(a){var b=this.bar.el_.ownerDocument;a.preventDefault();ic();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(b,
"mousemove",this.handleMouseMove);this.on(b,"mouseup",this.handleMouseUp);this.on(b,"touchmove",this.handleMouseMove);this.on(b,"touchend",this.handleMouseUp);this.handleMouseMove(a)};b.prototype.handleMouseMove=function(a){};b.prototype.handleMouseUp=function(){var a=this.bar.el_.ownerDocument;jc();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(a,"mousemove",this.handleMouseMove);this.off(a,"mouseup",this.handleMouseUp);this.off(a,"touchmove",this.handleMouseMove);this.off(a,
"touchend",this.handleMouseUp);this.update()};b.prototype.update=function(){if(this.el_){var a=this.getPercent(),b=this.bar;if(b){if("number"!==typeof a||a!==a||0>a||Infinity===a)a=0;var c=(100*a).toFixed(2)+"%";b=b.el().style;this.vertical()?b.height=c:b.width=c;return a}}};b.prototype.calculateDistance=function(a){a=nb(this.el_,a);return this.vertical()?a.y:a.x};b.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};b.prototype.handleKeyPress=function(a){if(37===
a.which||40===a.which)a.preventDefault(),this.stepBack();else if(38===a.which||39===a.which)a.preventDefault(),this.stepForward()};b.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};b.prototype.handleClick=function(a){a.stopImmediatePropagation();a.preventDefault()};b.prototype.vertical=function(a){if(void 0===a)return this.vertical_||!1;(this.vertical_=!!a)?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")};return b}(l);
l.registerComponent("Slider",Mb);var Oe=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.partEls_=[];f.on(a,"progress",f.update);return f}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})};b.prototype.update=function(a){a=this.player_.buffered();var b=this.player_.duration(),c=this.player_.bufferedEnd(),g=this.partEls_,
h=function(a,b){var c=a/b||0;return 100*(1<=c?1:c)+"%"};this.el_.style.width=h(c,b);for(b=0;b<a.length;b++){var k=a.start(b),m=a.end(b),l=g[b];l||(l=this.el_.appendChild(B()),g[b]=l);l.style.left=h(k,c);l.style.width=h(m-k,c)}for(c=g.length;c>a.length;c--)this.el_.removeChild(g[c-1]);g.length=a.length};return b}(l);l.registerComponent("LoadProgressBar",Oe);var Pe=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,
"div",{className:"vjs-time-tooltip"})};b.prototype.update=function(a,b,c){var e=Da(this.el_),f=Da(this.player_.el()),k=a.width*b;f&&e&&(b=a.left-f.left+k,a=a.width-k+(f.right-a.right),f=e.width/2,b<f?f+=f-b:a<f&&(f=a),0>f?f=0:f>e.width&&(f=e.width),this.el_.style.right="-"+f+"px",Aa(this.el_,c))};return b}(l);l.registerComponent("TimeTooltip",Pe);var Nb=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,
"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})};b.prototype.update=function(a,b){var c=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_);this.rafId_=this.requestAnimationFrame(function(){var e=c.player_.scrubbing()?c.player_.getCache().currentTime:c.player_.currentTime();e=da(e,c.player_.duration());var f=c.getChild("timeTooltip");f&&f.update(a,b,e)})};return b}(l);Nb.prototype.options_=
{children:[]};oa&&!(8<oa)||va||ea||Nb.prototype.options_.children.push("timeTooltip");l.registerComponent("PlayProgressBar",Nb);var kd=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.update=fa(v(f,f.update),25);return f}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})};b.prototype.update=function(a,b){var c=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_);this.rafId_=this.requestAnimationFrame(function(){var e=
c.player_.duration();e=da(b*e,e);c.el_.style.left=a.width*b+"px";c.getChild("timeTooltip").update(a,b,e)})};return b}(l);kd.prototype.options_={children:["timeTooltip"]};l.registerComponent("MouseTimeDisplay",kd);var fb=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.update=fa(v(f,f.update),50);f.on(a,["timeupdate","ended"],f.update);return f}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})};
b.prototype.update=function(){var a=c.prototype.update.call(this),b=this.player_.duration(),f=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(100*a).toFixed(2));this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[da(f,b),da(b,b)],"{1} of {2}"));this.bar.update(Da(this.el_),a);return a};b.prototype.getPercent=function(){var a=(this.player_.scrubbing()?this.player_.getCache().currentTime:
this.player_.currentTime())/this.player_.duration();return 1<=a?1:a};b.prototype.handleMouseDown=function(a){this.player_.scrubbing(!0);this.videoWasPlaying=!this.player_.paused();this.player_.pause();c.prototype.handleMouseDown.call(this,a)};b.prototype.handleMouseMove=function(a){a=this.calculateDistance(a)*this.player_.duration();a===this.player_.duration()&&(a-=.1);this.player_.currentTime(a)};b.prototype.handleMouseUp=function(a){c.prototype.handleMouseUp.call(this,a);this.player_.scrubbing(!1);
this.videoWasPlaying&&this.player_.play()};b.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)};b.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)};b.prototype.handleAction=function(a){this.player_.paused()?this.player_.play():this.player_.pause()};b.prototype.handleKeyPress=function(a){32===a.which||13===a.which?(a.preventDefault(),this.handleAction(a)):c.prototype.handleKeyPress&&c.prototype.handleKeyPress.call(this,a)};return b}(Mb);
fb.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};oa&&!(8<oa)||va||ea||fb.prototype.options_.children.splice(1,0,"mouseTimeDisplay");fb.prototype.playerEvent="timeupdate";l.registerComponent("SeekBar",fb);var ld=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.handleMouseMove=fa(v(f,f.handleMouseMove),25);f.on(f.el_,"mousemove",f.handleMouseMove);f.throttledHandleMouseSeek=fa(v(f,f.handleMouseSeek),25);f.on(["mousedown","touchstart"],
f.handleMouseDown);return f}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})};b.prototype.handleMouseMove=function(a){var b=this.getChild("seekBar"),c=b.getChild("mouseTimeDisplay"),g=b.el();b=Da(g);a=nb(g,a).x;1<a?a=1:0>a&&(a=0);c&&c.update(b,a)};b.prototype.handleMouseSeek=function(a){this.getChild("seekBar").handleMouseMove(a)};b.prototype.handleMouseDown=function(a){a=this.el_.ownerDocument;this.on(a,"mousemove",
this.throttledHandleMouseSeek);this.on(a,"touchmove",this.throttledHandleMouseSeek);this.on(a,"mouseup",this.handleMouseUp);this.on(a,"touchend",this.handleMouseUp)};b.prototype.handleMouseUp=function(a){a=this.el_.ownerDocument;this.off(a,"mousemove",this.throttledHandleMouseSeek);this.off(a,"touchmove",this.throttledHandleMouseSeek);this.off(a,"mouseup",this.handleMouseUp);this.off(a,"touchend",this.handleMouseUp)};return b}(l);ld.prototype.options_={children:["seekBar"]};l.registerComponent("ProgressControl",
ld);var md=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.on(a,"fullscreenchange",f.handleFullscreenChange);return f}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+c.prototype.buildCSSClass.call(this)};b.prototype.handleFullscreenChange=function(a){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")};b.prototype.handleClick=function(a){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()};
return b}(Y);md.prototype.controlText_="Fullscreen";l.registerComponent("FullscreenToggle",md);var Ob=function(c,b){b.tech_&&!b.tech_.featuresVolumeControl&&c.addClass("vjs-hidden");c.on(b,"loadstart",function(){b.tech_.featuresVolumeControl?c.removeClass("vjs-hidden"):c.addClass("vjs-hidden")})},Qe=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})};
return b}(l);l.registerComponent("VolumeLevel",Qe);var Pb=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.on("slideractive",f.updateLastVolume_);f.on(a,"volumechange",f.updateARIAAttributes);a.ready(function(){return f.updateARIAAttributes()});return f}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})};b.prototype.handleMouseMove=function(a){this.checkMuted();
this.player_.volume(this.calculateDistance(a))};b.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)};b.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()};b.prototype.stepForward=function(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)};b.prototype.stepBack=function(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)};b.prototype.updateARIAAttributes=function(a){a=this.player_.muted()?0:this.volumeAsPercentage_();
this.el_.setAttribute("aria-valuenow",a);this.el_.setAttribute("aria-valuetext",a+"%")};b.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())};b.prototype.updateLastVolume_=function(){var a=this,b=this.player_.volume();this.one("sliderinactive",function(){0===a.player_.volume()&&a.player_.lastVolume_(b)})};return b}(Mb);Pb.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};Pb.prototype.playerEvent="volumechange";l.registerComponent("VolumeBar",Pb);
var nd=function(c){function b(a){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};u(this,b);e.vertical=e.vertical||!1;if("undefined"===typeof e.volumeBar||U(e.volumeBar))e.volumeBar=e.volumeBar||{},e.volumeBar.vertical=e.vertical;var f=p(this,c.call(this,a,e));Ob(f,a);f.throttledHandleMouseMove=fa(v(f,f.handleMouseMove),25);f.on("mousedown",f.handleMouseDown);f.on("touchstart",f.handleMouseDown);f.on(f.volumeBar,["focus","slideractive"],function(){f.volumeBar.addClass("vjs-slider-active");
f.addClass("vjs-slider-active");f.trigger("slideractive")});f.on(f.volumeBar,["blur","sliderinactive"],function(){f.volumeBar.removeClass("vjs-slider-active");f.removeClass("vjs-slider-active");f.trigger("sliderinactive")});return f}r(b,c);b.prototype.createEl=function(){var a="vjs-volume-horizontal";this.options_.vertical&&(a="vjs-volume-vertical");return c.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+a})};b.prototype.handleMouseDown=function(a){a=this.el_.ownerDocument;
this.on(a,"mousemove",this.throttledHandleMouseMove);this.on(a,"touchmove",this.throttledHandleMouseMove);this.on(a,"mouseup",this.handleMouseUp);this.on(a,"touchend",this.handleMouseUp)};b.prototype.handleMouseUp=function(a){a=this.el_.ownerDocument;this.off(a,"mousemove",this.throttledHandleMouseMove);this.off(a,"touchmove",this.throttledHandleMouseMove);this.off(a,"mouseup",this.handleMouseUp);this.off(a,"touchend",this.handleMouseUp)};b.prototype.handleMouseMove=function(a){this.volumeBar.handleMouseMove(a)};
return b}(l);nd.prototype.options_={children:["volumeBar"]};l.registerComponent("VolumeControl",nd);var od=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));Ob(f,a);f.on(a,["loadstart","volumechange"],f.update);return f}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-mute-control "+c.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function(a){a=this.player_.volume();var b=this.player_.lastVolume_();0===a?(this.player_.volume(.1>b?.1:b),this.player_.muted(!1)):
this.player_.muted(this.player_.muted()?!1:!0)};b.prototype.update=function(a){this.updateIcon_();this.updateControlText_()};b.prototype.updateIcon_=function(){var a=this.player_.volume(),b=3;0===a||this.player_.muted()?b=0:.33>a?b=1:.67>a&&(b=2);for(a=0;4>a;a++)Ca(this.el_,"vjs-vol-"+a);ra(this.el_,"vjs-vol-"+b)};b.prototype.updateControlText_=function(){var a=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==a&&this.controlText(a)};return b}(Y);od.prototype.controlText_=
"Mute";l.registerComponent("MuteToggle",od);var pd=function(c){function b(a){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};u(this,b);e.inline="undefined"!==typeof e.inline?e.inline:!0;if("undefined"===typeof e.volumeControl||U(e.volumeControl))e.volumeControl=e.volumeControl||{},e.volumeControl.vertical=!e.inline;e=p(this,c.call(this,a,e));Ob(e,a);e.on(e.volumeControl,["slideractive"],e.sliderActive_);e.on(e.muteToggle,"focus",e.sliderActive_);e.on(e.volumeControl,["sliderinactive"],
e.sliderInactive_);e.on(e.muteToggle,"blur",e.sliderInactive_);return e}r(b,c);b.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")};b.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")};b.prototype.createEl=function(){var a="vjs-volume-panel-horizontal";this.options_.inline||(a="vjs-volume-panel-vertical");return c.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+a})};return b}(l);pd.prototype.options_={children:["muteToggle",
"volumeControl"]};l.registerComponent("VolumePanel",pd);var Qb=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));e&&(f.menuButton_=e.menuButton);f.focusedChild_=-1;f.on("keydown",f.handleKeyPress);return f}r(b,c);b.prototype.addItem=function(a){this.addChild(a);a.on("click",v(this,function(b){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==a.name()&&this.menuButton_.focus())}))};b.prototype.createEl=function(){this.contentEl_=B(this.options_.contentElType||
"ul",{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");var a=c.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});a.appendChild(this.contentEl_);W(a,"click",function(a){a.preventDefault();a.stopImmediatePropagation()});return a};b.prototype.handleKeyPress=function(a){if(37===a.which||40===a.which)a.preventDefault(),this.stepForward();else if(38===a.which||39===a.which)a.preventDefault(),this.stepBack()};b.prototype.stepForward=function(){var a=
0;void 0!==this.focusedChild_&&(a=this.focusedChild_+1);this.focus(a)};b.prototype.stepBack=function(){var a=0;void 0!==this.focusedChild_&&(a=this.focusedChild_-1);this.focus(a)};b.prototype.focus=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,b=this.children().slice();b.length&&b[0].className&&/vjs-menu-title/.test(b[0].className)&&b.shift();0<b.length&&(0>a?a=0:a>=b.length&&(a=b.length-1),this.focusedChild_=a,b[a].el_.focus())};return b}(l);l.registerComponent("Menu",
Qb);var Rb=function(c){function b(a){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};u(this,b);var f=p(this,c.call(this,a,e));f.menuButton_=new Y(a,e);f.menuButton_.controlText(f.controlText_);f.menuButton_.el_.setAttribute("aria-haspopup","true");e=Y.prototype.buildCSSClass();f.menuButton_.el_.className=f.buildCSSClass()+" "+e;f.menuButton_.removeClass("vjs-control");f.addChild(f.menuButton_);f.update();f.enabled_=!0;f.on(f.menuButton_,"tap",f.handleClick);f.on(f.menuButton_,"click",
f.handleClick);f.on(f.menuButton_,"focus",f.handleFocus);f.on(f.menuButton_,"blur",f.handleBlur);f.on("keydown",f.handleSubmenuKeyPress);return f}r(b,c);b.prototype.update=function(){var a=this.createMenu();this.menu&&this.removeChild(this.menu);this.menu=a;this.addChild(a);this.buttonPressed_=!1;this.menuButton_.el_.setAttribute("aria-expanded","false");this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()};b.prototype.createMenu=function(){var a=new Qb(this.player_,{menuButton:this});
this.hideThreshold_=0;if(this.options_.title){var b=B("li",{className:"vjs-menu-title",innerHTML:C(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;a.children_.unshift(b);Ra(b,a.contentEl())}if(this.items=this.createItems())for(b=0;b<this.items.length;b++)a.addItem(this.items[b]);return a};b.prototype.createItems=function(){};b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})};b.prototype.buildWrapperCSSClass=function(){var a=
"vjs-menu-button";a=!0===this.options_.inline?a+"-inline":a+"-popup";var b=Y.prototype.buildCSSClass();return"vjs-menu-button "+a+" "+b+" "+c.prototype.buildCSSClass.call(this)};b.prototype.buildCSSClass=function(){var a="vjs-menu-button";a=!0===this.options_.inline?a+"-inline":a+"-popup";return"vjs-menu-button "+a+" "+c.prototype.buildCSSClass.call(this)};b.prototype.controlText=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(a,
b)};b.prototype.handleClick=function(a){this.one(this.menu.contentEl(),"mouseleave",v(this,function(a){this.unpressButton();this.el_.blur()}));this.buttonPressed_?this.unpressButton():this.pressButton()};b.prototype.focus=function(){this.menuButton_.focus()};b.prototype.blur=function(){this.menuButton_.blur()};b.prototype.handleFocus=function(){W(n,"keydown",v(this,this.handleKeyPress))};b.prototype.handleBlur=function(){P(n,"keydown",v(this,this.handleKeyPress))};b.prototype.handleKeyPress=function(a){27===
a.which||9===a.which?(this.buttonPressed_&&this.unpressButton(),9!==a.which&&(a.preventDefault(),this.menuButton_.el_.focus())):38!==a.which&&40!==a.which||this.buttonPressed_||(this.pressButton(),a.preventDefault())};b.prototype.handleSubmenuKeyPress=function(a){if(27===a.which||9===a.which)this.buttonPressed_&&this.unpressButton(),9!==a.which&&(a.preventDefault(),this.menuButton_.el_.focus())};b.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded",
"true"),this.menu.focus())};b.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))};b.prototype.disable=function(){this.unpressButton();this.enabled_=!1;this.addClass("vjs-disabled");this.menuButton_.disable()};b.prototype.enable=function(){this.enabled_=!0;this.removeClass("vjs-disabled");this.menuButton_.enable()};return b}(l);l.registerComponent("MenuButton",Rb);var Sb=function(c){function b(a,
e){u(this,b);var f=e.tracks,g=p(this,c.call(this,a,e));1>=g.items.length&&g.hide();if(!f)return p(g);var h=v(g,g.update);f.addEventListener("removetrack",h);f.addEventListener("addtrack",h);g.player_.on("ready",h);g.player_.on("dispose",function(){f.removeEventListener("removetrack",h);f.removeEventListener("addtrack",h)});return g}r(b,c);return b}(Rb);l.registerComponent("TrackButton",Sb);var Na=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.selectable=e.selectable;f.selected(e.selected);
f.selectable?f.el_.setAttribute("role","menuitemcheckbox"):f.el_.setAttribute("role","menuitem");return f}r(b,c);b.prototype.createEl=function(a,b,f){this.nonIconControl=!0;return c.prototype.createEl.call(this,"li",z({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},b),f)};b.prototype.handleClick=function(a){this.selected(!0)};b.prototype.selected=function(a){this.selectable&&(a?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked",
"true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))};return b}(eb);l.registerComponent("MenuItem",Na);var Oa=function(c){function b(a,e){u(this,b);var f=e.track,g=a.textTracks();e.label=f.label||f.language||"Unknown";e.selected="showing"===f.mode;var h=p(this,c.call(this,a,e));h.track=f;var k=v(h,h.handleTracksChange),l=v(h,h.handleSelectedLanguageChange);a.on(["loadstart","texttrackchange"],k);g.addEventListener("change",
k);g.addEventListener("selectedlanguagechange",l);h.on("dispose",function(){g.removeEventListener("change",k);g.removeEventListener("selectedlanguagechange",l)});if(void 0===g.onchange){var q=void 0;h.on(["tap","click"],function(){if("object"!==qa(m.Event))try{q=new m.Event("change")}catch($e){}q||(q=n.createEvent("Event"),q.initEvent("change",!0,!0));g.dispatchEvent(q)})}return h}r(b,c);b.prototype.handleClick=function(a){var b=this.track.kind,f=this.track.kinds,g=this.player_.textTracks();f||(f=
[b]);c.prototype.handleClick.call(this,a);if(g)for(a=0;a<g.length;a++)b=g[a],b===this.track&&-1<f.indexOf(b.kind)?"showing"!==b.mode&&(b.mode="showing"):"disabled"!==b.mode&&(b.mode="disabled")};b.prototype.handleTracksChange=function(a){this.selected("showing"===this.track.mode)};b.prototype.handleSelectedLanguageChange=function(a){"showing"===this.track.mode&&(a=this.player_.cache_.selectedLanguage,a&&a.enabled&&a.language===this.track.language&&a.kind!==this.track.kind||(this.player_.cache_.selectedLanguage=
{enabled:!0,language:this.track.language,kind:this.track.kind}))};return b}(Na);l.registerComponent("TextTrackMenuItem",Oa);var qd=function(c){function b(a,e){u(this,b);e.track={player:a,kind:e.kind,kinds:e.kinds,"default":!1,mode:"disabled"};e.kinds||(e.kinds=[e.kind]);e.track.label=e.label?e.label:e.kinds.join(" and ")+" off";e.selectable=!0;var f=p(this,c.call(this,a,e));f.selected(!0);return f}r(b,c);b.prototype.handleTracksChange=function(a){a=this.player().textTracks();for(var b=!0,c=0,g=a.length;c<
g;c++){var h=a[c];if(-1<this.options_.kinds.indexOf(h.kind)&&"showing"===h.mode){b=!1;break}}this.selected(b)};b.prototype.handleSelectedLanguageChange=function(a){a=this.player().textTracks();for(var b=!0,c=0,g=a.length;c<g;c++){var h=a[c];if(-1<["captions","descriptions","subtitles"].indexOf(h.kind)&&"showing"===h.mode){b=!1;break}}b&&(this.player_.cache_.selectedLanguage={enabled:!1})};return b}(Oa);l.registerComponent("OffTextTrackMenuItem",qd);var za=function(c){function b(a){var e=1<arguments.length&&
void 0!==arguments[1]?arguments[1]:{};u(this,b);e.tracks=a.textTracks();return p(this,c.call(this,a,e))}r(b,c);b.prototype.createItems=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Oa,c=void 0;this.label_&&(c=this.label_+" off");a.push(new qd(this.player_,{kinds:this.kinds_,kind:this.kind_,label:c}));this.hideThreshold_+=1;c=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var g=
0;g<c.length;g++){var h=c[g];if(-1<this.kinds_.indexOf(h.kind)){var k=new b(this.player_,{track:h,selectable:!0});k.addClass("vjs-"+h.kind+"-menu-item");a.push(k)}}return a};return b}(Sb);l.registerComponent("TextTrackButton",za);var rd=function(c){function b(a,e){u(this,b);var f=e.track,g=e.cue,h=a.currentTime();e.selectable=!0;e.label=g.text;e.selected=g.startTime<=h&&h<g.endTime;h=p(this,c.call(this,a,e));h.track=f;h.cue=g;f.addEventListener("cuechange",v(h,h.update));return h}r(b,c);b.prototype.handleClick=
function(a){c.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)};b.prototype.update=function(a){a=this.cue;var b=this.player_.currentTime();this.selected(a.startTime<=b&&b<a.endTime)};return b}(Na);l.registerComponent("ChaptersTrackMenuItem",rd);var Tb=function(c){function b(a,e,f){u(this,b);return p(this,c.call(this,a,e,f))}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-chapters-button "+c.prototype.buildCSSClass.call(this)};b.prototype.buildWrapperCSSClass=
function(){return"vjs-chapters-button "+c.prototype.buildWrapperCSSClass.call(this)};b.prototype.update=function(a){this.track_&&(!a||"addtrack"!==a.type&&"removetrack"!==a.type)||this.setTrack(this.findChaptersTrack());c.prototype.update.call(this)};b.prototype.setTrack=function(a){if(this.track_!==a){this.updateHandler_||(this.updateHandler_=this.update.bind(this));if(this.track_){var b=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);b&&b.removeEventListener("load",this.updateHandler_);
this.track_=null}if(this.track_=a)this.track_.mode="hidden",(a=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&a.addEventListener("load",this.updateHandler_)}};b.prototype.findChaptersTrack=function(){for(var a=this.player_.textTracks()||[],b=a.length-1;0<=b;b--){var c=a[b];if(c.kind===this.kind_)return c}};b.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(C(this.kind_))};b.prototype.createMenu=function(){this.options_.title=
this.getMenuCaption();return c.prototype.createMenu.call(this)};b.prototype.createItems=function(){var a=[];if(!this.track_)return a;var b=this.track_.cues;if(!b)return a;for(var c=0,g=b.length;c<g;c++){var h=new rd(this.player_,{track:this.track_,cue:b[c]});a.push(h)}return a};return b}(za);Tb.prototype.kind_="chapters";Tb.prototype.controlText_="Chapters";l.registerComponent("ChaptersButton",Tb);var Ub=function(c){function b(a,e,f){u(this,b);e=p(this,c.call(this,a,e,f));var g=a.textTracks(),h=v(e,
e.handleTracksChange);g.addEventListener("change",h);e.on("dispose",function(){g.removeEventListener("change",h)});return e}r(b,c);b.prototype.handleTracksChange=function(a){a=this.player().textTracks();for(var b=!1,c=0,g=a.length;c<g;c++){var h=a[c];if(h.kind!==this.kind_&&"showing"===h.mode){b=!0;break}}b?this.disable():this.enable()};b.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+c.prototype.buildCSSClass.call(this)};b.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+
c.prototype.buildWrapperCSSClass.call(this)};return b}(za);Ub.prototype.kind_="descriptions";Ub.prototype.controlText_="Descriptions";l.registerComponent("DescriptionsButton",Ub);var Vb=function(c){function b(a,e,f){u(this,b);return p(this,c.call(this,a,e,f))}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+c.prototype.buildCSSClass.call(this)};b.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+c.prototype.buildWrapperCSSClass.call(this)};return b}(za);
Vb.prototype.kind_="subtitles";Vb.prototype.controlText_="Subtitles";l.registerComponent("SubtitlesButton",Vb);var Wb=function(c){function b(a,e){u(this,b);e.track={player:a,kind:e.kind,label:e.kind+" settings",selectable:!1,"default":!1,mode:"disabled"};e.selectable=!1;e.name="CaptionSettingsMenuItem";var f=p(this,c.call(this,a,e));f.addClass("vjs-texttrack-settings");f.controlText(", opens "+e.kind+" settings dialog");return f}r(b,c);b.prototype.handleClick=function(a){this.player().getChild("textTrackSettings").open()};
return b}(Oa);l.registerComponent("CaptionSettingsMenuItem",Wb);var Xb=function(c){function b(a,e,f){u(this,b);return p(this,c.call(this,a,e,f))}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-captions-button "+c.prototype.buildCSSClass.call(this)};b.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+c.prototype.buildWrapperCSSClass.call(this)};b.prototype.createItems=function(){var a=[];this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(a.push(new Wb(this.player_,
{kind:this.kind_})),this.hideThreshold_+=1);return c.prototype.createItems.call(this,a)};return b}(za);Xb.prototype.kind_="captions";Xb.prototype.controlText_="Captions";l.registerComponent("CaptionsButton",Xb);var sd=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.createEl=function(a,b,f){var e='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"captions"===this.options_.track.kind&&(e+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+
this.localize("Captions")+"</span>\n      ");return c.prototype.createEl.call(this,a,z({innerHTML:e+"</span>"},b),f)};return b}(Oa);l.registerComponent("SubsCapsMenuItem",sd);var Yb=function(c){function b(a){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};u(this,b);e=p(this,c.call(this,a,e));e.label_="subtitles";-1<["en","en-us","en-ca","fr-ca"].indexOf(e.player_.language_)&&(e.label_="captions");e.menuButton_.controlText(C(e.label_));return e}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+
c.prototype.buildCSSClass.call(this)};b.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+c.prototype.buildWrapperCSSClass.call(this)};b.prototype.createItems=function(){var a=[];this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(a.push(new Wb(this.player_,{kind:this.label_})),this.hideThreshold_+=1);return a=c.prototype.createItems.call(this,a,sd)};return b}(za);Yb.prototype.kinds_=["captions","subtitles"];Yb.prototype.controlText_="Subtitles";l.registerComponent("SubsCapsButton",
Yb);var td=function(c){function b(a,e){u(this,b);var f=e.track,g=a.audioTracks();e.label=f.label||f.language||"Unknown";e.selected=f.enabled;var h=p(this,c.call(this,a,e));h.track=f;var k=v(h,h.handleTracksChange);g.addEventListener("change",k);h.on("dispose",function(){g.removeEventListener("change",k)});return h}r(b,c);b.prototype.handleClick=function(a){var b=this.player_.audioTracks();c.prototype.handleClick.call(this,a);for(a=0;a<b.length;a++){var f=b[a];f.enabled=f===this.track}};b.prototype.handleTracksChange=
function(a){this.selected(this.track.enabled)};return b}(Na);l.registerComponent("AudioTrackMenuItem",td);var ud=function(c){function b(a){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};u(this,b);e.tracks=a.audioTracks();return p(this,c.call(this,a,e))}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-audio-button "+c.prototype.buildCSSClass.call(this)};b.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+c.prototype.buildWrapperCSSClass.call(this)};b.prototype.createItems=
function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var b=this.player_.audioTracks(),c=0;c<b.length;c++)a.push(new td(this.player_,{track:b[c],selectable:!0}));return a};return b}(Sb);ud.prototype.controlText_="Audio Track";l.registerComponent("AudioTrackButton",ud);var Zb=function(c){function b(a,e){u(this,b);var f=e.rate,g=parseFloat(f,10);e.label=f;e.selected=1===g;e.selectable=!0;var h=p(this,c.call(this,a,e));h.label=f;h.rate=g;h.on(a,"ratechange",
h.update);return h}r(b,c);b.prototype.handleClick=function(a){c.prototype.handleClick.call(this);this.player().playbackRate(this.rate)};b.prototype.update=function(a){this.selected(this.player().playbackRate()===this.rate)};return b}(Na);Zb.prototype.contentElType="button";l.registerComponent("PlaybackRateMenuItem",Zb);var vd=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.updateVisibility();f.updateLabel();f.on(a,"loadstart",f.updateVisibility);f.on(a,"ratechange",f.updateLabel);
return f}r(b,c);b.prototype.createEl=function(){var a=c.prototype.createEl.call(this);this.labelEl_=B("div",{className:"vjs-playback-rate-value",innerHTML:"1x"});a.appendChild(this.labelEl_);return a};b.prototype.buildCSSClass=function(){return"vjs-playback-rate "+c.prototype.buildCSSClass.call(this)};b.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+c.prototype.buildWrapperCSSClass.call(this)};b.prototype.createMenu=function(){var a=new Qb(this.player()),b=this.playbackRates();
if(b)for(var c=b.length-1;0<=c;c--)a.addChild(new Zb(this.player(),{rate:b[c]+"x"}));return a};b.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())};b.prototype.handleClick=function(a){a=this.player().playbackRate();for(var b=this.playbackRates(),c=b[0],g=0;g<b.length;g++)if(b[g]>a){c=b[g];break}this.player().playbackRate(c)};b.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates};
b.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length};b.prototype.updateVisibility=function(a){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")};b.prototype.updateLabel=function(a){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")};return b}(Rb);vd.prototype.controlText_="Playback Rate";l.registerComponent("PlaybackRateMenuButton",
vd);var wd=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-spacer "+c.prototype.buildCSSClass.call(this)};b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};return b}(l);l.registerComponent("Spacer",wd);var Re=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+
c.prototype.buildCSSClass.call(this)};b.prototype.createEl=function(){var a=c.prototype.createEl.call(this,{className:this.buildCSSClass()});a.innerHTML="&nbsp;";return a};return b}(wd);l.registerComponent("CustomControlSpacer",Re);var xd=function(c){function b(){u(this,b);return p(this,c.apply(this,arguments))}r(b,c);b.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})};return b}(l);xd.prototype.options_={children:"playToggle volumePanel currentTimeDisplay timeDivider durationDisplay progressControl liveDisplay remainingTimeDisplay customControlSpacer playbackRateMenuButton chaptersButton descriptionsButton subsCapsButton audioTrackButton fullscreenToggle".split(" ")};
l.registerComponent("ControlBar",xd);var yd=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e));f.on(a,"error",f.open);return f}r(b,c);b.prototype.buildCSSClass=function(){return"vjs-error-display "+c.prototype.buildCSSClass.call(this)};b.prototype.content=function(){var a=this.player().error();return a?this.localize(a.message):""};return b}(xa);yd.prototype.options_=D(xa.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});l.registerComponent("ErrorDisplay",
yd);var zd=["#000","Black"],Ad=["#00F","Blue"],Bd=["#0FF","Cyan"],Cd=["#0F0","Green"],Dd=["#F0F","Magenta"],Ed=["#F00","Red"],Fd=["#FFF","White"],Gd=["#FF0","Yellow"],$b=["1","Opaque"],ac=["0.5","Semi-Transparent"],Hd=["0","Transparent"],pa={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[zd,Fd,Ed,Cd,Ad,Gd,Dd,Bd]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[$b,ac,
Hd]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Fd,zd,Ed,Cd,Ad,Gd,Dd,Bd]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif",
"Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],"default":2,parser:function(c){return"1.00"===c?null:Number(c)}},textOpacity:{selector:".vjs-text-opacity > select",
id:"captions-foreground-opacity-%s",label:"Transparency",options:[$b,ac]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Hd,ac,$b]}};pa.windowColor.options=pa.backgroundColor.options;var Se=function(c){function b(a,e){u(this,b);e.temporary=!1;var f=p(this,c.call(this,a,e));f.updateDisplay=v(f,f.updateDisplay);f.fill();f.hasBeenOpened_=
f.hasBeenFilled_=!0;f.endDialog=B("p",{className:"vjs-control-text",textContent:f.localize("End of dialog window.")});f.el().appendChild(f.endDialog);f.setDefaults();void 0===e.persistTextTrackSettings&&(f.options_.persistTextTrackSettings=f.options_.playerOptions.persistTextTrackSettings);f.on(f.$(".vjs-done-button"),"click",function(){f.saveSettings();f.close()});f.on(f.$(".vjs-default-button"),"click",function(){f.setDefaults();f.updateDisplay()});E(pa,function(a){f.on(f.$(a.selector),"change",
f.updateDisplay)});f.options_.persistTextTrackSettings&&f.restoreSettings();return f}r(b,c);b.prototype.createElSelect_=function(a){var b=this,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",g=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"label",h=pa[a],k=h.id.replace("%s",this.id_);return["<"+g+' id="'+k+'" class="'+("label"===g?"vjs-label":"")+'">',this.localize(h.label),"</"+g+">",'<select aria-labelledby="'+c+" "+k+'">'].concat(h.options.map(function(a){var e=k+"-"+a[1];
return['<option id="'+e+'" value="'+a[0]+'" ','aria-labelledby="'+c+" "+k+" "+e+'">',b.localize(a[1]),"</option>"].join("")})).concat("</select>").join("")};b.prototype.createElFgColor_=function(){var a="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+a+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",a),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",a),"</span></fieldset>"].join("")};b.prototype.createElBgColor_=
function(){var a="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+a+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",a),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",a),"</span></fieldset>"].join("")};b.prototype.createElWinColor_=function(){var a="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+a+'">',this.localize("Window"),
"</legend>",this.createElSelect_("windowColor",a),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",a),"</span></fieldset>"].join("")};b.prototype.createElColors_=function(){return B("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})};b.prototype.createElFont_=function(){return B("div",{className:'vjs-track-settings-font">',innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',
this.createElSelect_("fontPercent","","legend"),'</fieldset><fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),'</fieldset><fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})};b.prototype.createElControls_=function(){var a=this.localize("restore all settings to the default values");return B("div",{className:"vjs-track-settings-controls",innerHTML:['<button class="vjs-default-button" title="'+
a+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+a+"</span>","</button>",'<button class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})};b.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]};b.prototype.label=function(){return this.localize("Caption Settings Dialog")};b.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")};b.prototype.buildCSSClass=
function(){return c.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"};b.prototype.getValues=function(){var a=this;return Qa(pa,function(b,c,g){var e=a.$(c.selector);c=Ec(e.options[e.options.selectedIndex].value,c.parser);void 0!==c&&(b[g]=c);return b},{})};b.prototype.setValues=function(a){var b=this;E(pa,function(c,e){var f=b.$(c.selector),g=a[e],m=c.parser;if(g)for(var l=0;l<f.options.length;l++)if(Ec(f.options[l].value,m)===g){f.selectedIndex=l;break}})};b.prototype.setDefaults=function(){var a=
this;E(pa,function(b){var c=b.hasOwnProperty("default")?b["default"]:0;a.$(b.selector).selectedIndex=c})};b.prototype.restoreSettings=function(){var a=void 0;try{a=JSON.parse(m.localStorage.getItem("vjs-text-track-settings"))}catch(e){w.warn(e)}a&&this.setValues(a)};b.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var a=this.getValues();try{Object.keys(a).length?m.localStorage.setItem("vjs-text-track-settings",JSON.stringify(a)):m.localStorage.removeItem("vjs-text-track-settings")}catch(e){w.warn(e)}}};
b.prototype.updateDisplay=function(){var a=this.player_.getChild("textTrackDisplay");a&&a.updateDisplay()};b.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null;this.off(n,"keydown",this.handleKeyDown);var a=this.player_.controlBar,b=a&&a.subsCapsButton;a=a&&a.captionsButton;b?b.focus():a&&a.focus()};return b}(xa);l.registerComponent("TextTrackSettings",Se);var Te=Cb(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],
["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]),q=function(c){function b(a,e){u(this,b);var f=p(this,c.call(this,a,e)),g=a.source,h=!1;g&&(f.el_.currentSrc!==g.src||a.tag&&3===a.tag.initNetworkState_)?f.setSource(g):f.handleLateInit_(f.el_);if(f.el_.hasChildNodes()){var k=f.el_.childNodes,m=k.length;for(g=[];m--;){var l=k[m];"track"===l.nodeName.toLowerCase()&&(f.featuresNativeTextTracks?(f.remoteTextTrackEls().addTrackElement_(l),
f.remoteTextTracks().addTrack(l.track),f.textTracks().addTrack(l.track),h||f.el_.hasAttribute("crossorigin")||!db(l.src)||(h=!0)):g.push(l))}for(k=0;k<g.length;k++)f.el_.removeChild(g[k])}f.proxyNativeTracks_();f.featuresNativeTextTracks&&h&&w.warn(lb(Te));f.restoreMetadataTracksInIOSNativePlayer_();(Ya||Ab||Lc)&&!0===a.nativeControlsForTouch&&f.setControls(!0);f.proxyWebkitFullscreen_();f.triggerReady();return f}r(b,c);b.prototype.dispose=function(){b.disposeMediaElement(this.el_);c.prototype.dispose.call(this)};
b.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var a=this.textTracks(),b=void 0,c=function(){b=[];for(var c=0;c<a.length;c++){var e=a[c];"metadata"===e.kind&&b.push({track:e,storedMode:e.mode})}};c();a.addEventListener("change",c);var g=function k(){for(var c=0;c<b.length;c++){var e=b[c];"disabled"===e.track.mode&&e.track.mode!==e.storedMode&&(e.track.mode=e.storedMode)}a.removeEventListener("change",k)};this.on("webkitbeginfullscreen",function(){a.removeEventListener("change",c);
a.removeEventListener("change",g);a.addEventListener("change",g)});this.on("webkitendfullscreen",function(){a.removeEventListener("change",c);a.addEventListener("change",c);a.removeEventListener("change",g)})};b.prototype.proxyNativeTracks_=function(){var a=this;S.names.forEach(function(b){b=S[b];var c=a.el()[b.getterName],e=a[b.getterName]();if(a["featuresNative"+b.capitalName+"Tracks"]&&c&&c.addEventListener){var h={change:function(a){e.trigger({type:"change",target:e,currentTarget:e,srcElement:e})},
addtrack:function(a){e.addTrack(a.track)},removetrack:function(a){e.removeTrack(a.track)}},k=function(){for(var a=[],b=0;b<e.length;b++){for(var f=!1,g=0;g<c.length;g++)if(c[g]===e[b]){f=!0;break}f||a.push(e[b])}for(;a.length;)e.removeTrack(a.shift())};Object.keys(h).forEach(function(b){var e=h[b];c.addEventListener(b,e);a.on("dispose",function(a){return c.removeEventListener(b,e)})});a.on("loadstart",k);a.on("dispose",function(b){return a.off("loadstart",k)})}})};b.prototype.createEl=function(){var a=
this.options_.tag;if(!a||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(a){var c=a.cloneNode(!0);a.parentNode&&a.parentNode.insertBefore(c,a);b.disposeMediaElement(a);a=c}else a=n.createElement("video"),c=this.options_.tag&&ca(this.options_.tag),c=D({},c),Ya&&!0===this.options_.nativeControlsForTouch||delete c.controls,hc(a,z(c,{id:this.options_.techId,"class":"vjs-tech"}));a.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&a.setAttribute("preload",this.options_.preload);
c=["loop","muted","playsinline","autoplay"];for(var f=c.length-1;0<=f;f--){var g=c[f],h=this.options_[g];"undefined"!==typeof h&&(h?a.setAttribute(g,g):a.removeAttribute(g),a[g]=h)}return a};b.prototype.handleLateInit_=function(a){if(0!==a.networkState&&3!==a.networkState)if(0===a.readyState){var b=!1,c=function(){b=!0};this.on("loadstart",c);var g=function(){b||this.trigger("loadstart")};this.on("loadedmetadata",g);this.ready(function(){this.off("loadstart",c);this.off("loadedmetadata",g);b||this.trigger("loadstart")})}else{var h=
["loadstart"];h.push("loadedmetadata");2<=a.readyState&&h.push("loadeddata");3<=a.readyState&&h.push("canplay");4<=a.readyState&&h.push("canplaythrough");this.ready(function(){h.forEach(function(a){this.trigger(a)},this)})}};b.prototype.setCurrentTime=function(a){try{this.el_.currentTime=a}catch(e){w(e,"Video is not ready. (Video.js)")}};b.prototype.duration=function(){var a=this;return Infinity===this.el_.duration&&ea&&Xa&&0===this.el_.currentTime?(this.on("timeupdate",function f(){0<a.el_.currentTime&&
(Infinity===a.el_.duration&&a.trigger("durationchange"),a.off("timeupdate",f))}),NaN):this.el_.duration||NaN};b.prototype.width=function(){return this.el_.offsetWidth};b.prototype.height=function(){return this.el_.offsetHeight};b.prototype.proxyWebkitFullscreen_=function(){var a=this;if("webkitDisplayingFullscreen"in this.el_){var b=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},c=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&
(this.one("webkitendfullscreen",b),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",c);this.on("dispose",function(){a.off("webkitbeginfullscreen",c);a.off("webkitendfullscreen",b)})}};b.prototype.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var a=m.navigator&&m.navigator.userAgent||"";if(/Android/.test(a)||!/Chrome|Mac OS X 10.5/.test(a))return!0}return!1};b.prototype.enterFullScreen=function(){var a=this.el_;a.paused&&a.networkState<=
a.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){a.pause();a.webkitEnterFullScreen()},0)):a.webkitEnterFullScreen()};b.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()};b.prototype.src=function(a){if(void 0===a)return this.el_.src;this.setSrc(a)};b.prototype.reset=function(){b.resetMediaElement(this.el_)};b.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc};b.prototype.setControls=function(a){this.el_.controls=!!a};
b.prototype.addTextTrack=function(a,b,f){return this.featuresNativeTextTracks?this.el_.addTextTrack(a,b,f):c.prototype.addTextTrack.call(this,a,b,f)};b.prototype.createRemoteTextTrack=function(a){if(!this.featuresNativeTextTracks)return c.prototype.createRemoteTextTrack.call(this,a);var b=n.createElement("track");a.kind&&(b.kind=a.kind);a.label&&(b.label=a.label);if(a.language||a.srclang)b.srclang=a.language||a.srclang;a["default"]&&(b["default"]=a["default"]);a.id&&(b.id=a.id);a.src&&(b.src=a.src);
return b};b.prototype.addRemoteTextTrack=function(a,b){var e=c.prototype.addRemoteTextTrack.call(this,a,b);this.featuresNativeTextTracks&&this.el().appendChild(e);return e};b.prototype.removeRemoteTextTrack=function(a){c.prototype.removeRemoteTextTrack.call(this,a);if(this.featuresNativeTextTracks)for(var b=this.$$("track"),f=b.length;f--;)a!==b[f]&&a!==b[f].track||this.el().removeChild(b[f])};b.prototype.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();
var a={};"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(a.droppedVideoFrames=this.el().webkitDroppedFrameCount,a.totalVideoFrames=this.el().webkitDecodedFrameCount);m.performance&&"function"===typeof m.performance.now?a.creationTime=m.performance.now():m.performance&&m.performance.timing&&"number"===typeof m.performance.timing.navigationStart&&(a.creationTime=m.Date.now()-m.performance.timing.navigationStart);return a};return b}(A);
if(ba()){q.TEST_VID=n.createElement("video");var gb=n.createElement("track");gb.kind="captions";gb.srclang="en";gb.label="English";q.TEST_VID.appendChild(gb)}q.isSupported=function(){try{q.TEST_VID.volume=.5}catch(c){return!1}return!(!q.TEST_VID||!q.TEST_VID.canPlayType)};q.canPlayType=function(c){return q.TEST_VID.canPlayType(c)};q.canPlaySource=function(c,b){return q.canPlayType(c.type)};q.canControlVolume=function(){try{var c=q.TEST_VID.volume;q.TEST_VID.volume=c/2+.1;return c!==q.TEST_VID.volume}catch(b){return!1}};
q.canControlPlaybackRate=function(){if(ea&&Xa&&58>Nc)return!1;try{var c=q.TEST_VID.playbackRate;q.TEST_VID.playbackRate=c/2+.1;return c!==q.TEST_VID.playbackRate}catch(b){return!1}};q.supportsNativeTextTracks=function(){return Pc};q.supportsNativeVideoTracks=function(){return!(!q.TEST_VID||!q.TEST_VID.videoTracks)};q.supportsNativeAudioTracks=function(){return!(!q.TEST_VID||!q.TEST_VID.audioTracks)};q.Events="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange resize volumechange".split(" ");
q.prototype.featuresVolumeControl=q.canControlVolume();q.prototype.featuresPlaybackRate=q.canControlPlaybackRate();q.prototype.movingMediaElementInDOM=!va;q.prototype.featuresFullscreenResize=!0;q.prototype.featuresProgressEvents=!0;q.prototype.featuresTimeupdateEvents=!0;q.prototype.featuresNativeTextTracks=q.supportsNativeTextTracks();q.prototype.featuresNativeVideoTracks=q.supportsNativeVideoTracks();q.prototype.featuresNativeAudioTracks=q.supportsNativeAudioTracks();var bc=q.TEST_VID&&q.TEST_VID.constructor.prototype.canPlayType,
Ue=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Ve=/^video\/mp4/i;q.patchCanPlayType=function(){4<=Wa&&!Mc?q.TEST_VID.constructor.prototype.canPlayType=function(c){return c&&Ue.test(c)?"maybe":bc.call(this,c)}:Kc&&(q.TEST_VID.constructor.prototype.canPlayType=function(c){return c&&Ve.test(c)?"maybe":bc.call(this,c)})};q.unpatchCanPlayType=function(){var c=q.TEST_VID.constructor.prototype.canPlayType;q.TEST_VID.constructor.prototype.canPlayType=bc;return c};q.patchCanPlayType();q.disposeMediaElement=
function(c){if(c){for(c.parentNode&&c.parentNode.removeChild(c);c.hasChildNodes();)c.removeChild(c.firstChild);c.removeAttribute("src");if("function"===typeof c.load)try{c.load()}catch(b){}}};q.resetMediaElement=function(c){if(c){for(var b=c.querySelectorAll("source"),a=b.length;a--;)c.removeChild(b[a]);c.removeAttribute("src");if("function"===typeof c.load)try{c.load()}catch(e){}}};"muted defaultMuted autoplay controls loop playsinline".split(" ").forEach(function(c){q.prototype[c]=function(){return this.el_[c]||
this.el_.hasAttribute(c)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(c){q.prototype["set"+C(c)]=function(b){(this.el_[c]=b)?this.el_.setAttribute(c,c):this.el_.removeAttribute(c)}});"paused currentTime buffered volume poster preload error seeking seekable ended playbackRate defaultPlaybackRate played networkState readyState videoWidth videoHeight".split(" ").forEach(function(c){q.prototype[c]=function(){return this.el_[c]}});"volume src poster preload playbackRate defaultPlaybackRate".split(" ").forEach(function(c){q.prototype["set"+
C(c)]=function(b){this.el_[c]=b}});["pause","load","play"].forEach(function(c){q.prototype[c]=function(){return this.el_[c]()}});A.withSourceHandlers(q);q.nativeSourceHandler={};q.nativeSourceHandler.canPlayType=function(c){try{return q.TEST_VID.canPlayType(c)}catch(b){return""}};q.nativeSourceHandler.canHandleSource=function(c,b){if(c.type)return q.nativeSourceHandler.canPlayType(c.type);if(c.src){var a=cd(c.src);return q.nativeSourceHandler.canPlayType("video/"+a)}return""};q.nativeSourceHandler.handleSource=
function(c,b,a){b.setSrc(c.src)};q.nativeSourceHandler.dispose=function(){};q.registerSourceHandler(q.nativeSourceHandler);A.registerTech("Html5",q);var We=Cb(["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "],["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "]),
Id="progress abort suspend emptied stalled loadedmetadata loadeddata timeupdate ratechange resize volumechange texttrackchange".split(" "),F=function(c){function b(a,e,f){u(this,b);a.id=a.id||"vjs_video_"+ka++;e=z(b.getTagSettings(a),e);e.initChildren=!1;e.createEl=!1;e.reportTouchActivity=!1;if(!e.language)if("function"===typeof a.closest){var g=a.closest("[lang]");g&&(e.language=g.getAttribute("lang"))}else for(g=a;g&&1===g.nodeType;){if(ca(g).hasOwnProperty("lang")){e.language=g.getAttribute("lang");
break}g=g.parentNode}f=p(this,c.call(this,null,e,f));f.isReady_=!1;if(!f.options_||!f.options_.techOrder||!f.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");f.tag=a;f.tagAttributes=a&&ca(a);f.language(f.options_.language);if(e.languages){var h={};Object.getOwnPropertyNames(e.languages).forEach(function(a){h[a.toLowerCase()]=e.languages[a]});f.languages_=h}else f.languages_=b.prototype.options_.languages;
f.cache_={};f.poster_=e.poster||"";f.controls_=!!e.controls;f.cache_.lastVolume=1;a.controls=!1;f.scrubbing_=!1;f.el_=f.createEl();rb(f,{eventBusKey:"el_"});g=D(f.options_);if(e.plugins){var k=e.plugins;Object.keys(k).forEach(function(a){if("function"===typeof this[a])this[a](k[a]);else throw Error('plugin "'+a+'" does not exist');},f)}f.options_.playerOptions=g;f.middleware_=[];f.initChildren();f.isAudio("audio"===a.nodeName.toLowerCase());f.controls()?f.addClass("vjs-controls-enabled"):f.addClass("vjs-controls-disabled");
f.el_.setAttribute("role","region");f.isAudio()?f.el_.setAttribute("aria-label",f.localize("Audio Player")):f.el_.setAttribute("aria-label",f.localize("Video Player"));f.isAudio()&&f.addClass("vjs-audio");f.flexNotSupported_()&&f.addClass("vjs-no-flex");va||f.addClass("vjs-workinghover");b.players[f.id_]=f;f.addClass("vjs-v6");f.userActive(!0);f.reportUserActivity();f.listenForUserActivity_();f.on("fullscreenchange",f.handleFullscreenChange_);f.on("stageclick",f.handleStageClick_);f.changingSrc_=
!1;return f}r(b,c);b.prototype.dispose=function(){this.trigger("dispose");this.off("dispose");this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_);b.players[this.id_]=null;this.tag&&this.tag.player&&(this.tag.player=null);this.el_&&this.el_.player&&(this.el_.player=null);this.tech_&&this.tech_.dispose();c.prototype.dispose.call(this)};b.prototype.createEl=function(){var a=this.tag,b=void 0,f=this.playerElIngest_=a.parentNode&&a.parentNode.hasAttribute&&a.parentNode.hasAttribute("data-vjs-player");
b=f?this.el_=a.parentNode:this.el_=c.prototype.createEl.call(this,"div");a.setAttribute("tabindex","-1");a.removeAttribute("width");a.removeAttribute("height");var g=ca(a);Object.getOwnPropertyNames(g).forEach(function(a){"class"===a?b.className+=" "+g[a]:b.setAttribute(a,g[a])});a.playerId=a.id;a.id+="_html5_api";a.className="vjs-tech";a.player=b.player=this;this.addClass("vjs-paused");if(!0!==m.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Tc("vjs-styles-dimensions");var h=na(".vjs-styles-defaults"),
k=na("head");k.insertBefore(this.styleEl_,h?h.nextSibling:k.firstChild)}this.width(this.options_.width);this.height(this.options_.height);this.fluid(this.options_.fluid);this.aspectRatio(this.options_.aspectRatio);h=a.getElementsByTagName("a");for(k=0;k<h.length;k++){var l=h.item(k);ra(l,"vjs-hidden");l.setAttribute("hidden","hidden")}a.initNetworkState_=a.networkState;a.parentNode&&!f&&a.parentNode.insertBefore(b,a);Ra(a,b);this.children_.unshift(a);this.el_.setAttribute("lang",this.language_);return this.el_=
b};b.prototype.width=function(a){return this.dimension("width",a)};b.prototype.height=function(a){return this.dimension("height",a)};b.prototype.dimension=function(a,b){var c=a+"_";if(void 0===b)return this[c]||0;if(""===b)this[c]=void 0;else{var e=parseFloat(b);if(isNaN(e)){w.error('Improper value "'+b+'" supplied for for '+a);return}this[c]=e}this.updateStyleEl_()};b.prototype.fluid=function(a){if(void 0===a)return!!this.fluid_;this.fluid_=!!a;a?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid");
this.updateStyleEl_()};b.prototype.aspectRatio=function(a){if(void 0===a)return this.aspectRatio_;if(!/^\d+:\d+$/.test(a))throw Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=a;this.fluid(!0);this.updateStyleEl_()};b.prototype.updateStyleEl_=function(){if(!0===m.VIDEOJS_NO_DYNAMIC_STYLE){var a="number"===typeof this.width_?this.width_:this.options_.width,b="number"===typeof this.height_?this.height_:this.options_.height,c=
this.tech_&&this.tech_.el();c&&(0<=a&&(c.width=a),0<=b&&(c.height=b))}else{a=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":");var g=a[1]/a[0];a=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/g:this.videoWidth()||300;b=void 0!==this.height_?this.height_:a*g;c=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions";this.addClass(c);Uc(this.styleEl_,"\n      ."+
c+" {\n        width: "+a+"px;\n        height: "+b+"px;\n      }\n\n      ."+c+".vjs-fluid {\n        padding-top: "+100*g+"%;\n      }\n    ")}};b.prototype.loadTech_=function(a,b){var c=this;this.tech_&&this.unloadTech_();var e=C(a),h=a.charAt(0).toLowerCase()+a.slice(1);"Html5"!==e&&this.tag&&(A.getTech("Html5").disposeMediaElement(this.tag),this.tag=this.tag.player=null);this.techName_=e;this.isReady_=!1;var k={source:b,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),
techId:this.id()+"_"+e+"_api",autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"]};O.names.forEach(function(a){a=O[a];k[a.getterName]=c[a.privateName]});z(k,this.options_[e]);z(k,this.options_[h]);z(k,this.options_[a.toLowerCase()]);this.tag&&(k.tag=this.tag);b&&b.src===this.cache_.src&&
0<this.cache_.currentTime&&(k.startTime=this.cache_.currentTime);h=A.getTech(a);if(!h)throw Error("No Tech named '"+e+"' exists! '"+e+"' should be registered using videojs.registerTech()'");this.tech_=new h(k);this.tech_.ready(v(this,this.handleTechReady_),!0);Zc.jsonToTextTracks(this.textTracksJson_||[],this.tech_);Id.forEach(function(a){c.on(c.tech_,a,c["handleTech"+C(a)+"_"])});this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,
"canplay",this.handleTechCanPlay_);this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_);this.on(this.tech_,"playing",this.handleTechPlaying_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);this.on(this.tech_,"seeked",this.handleTechSeeked_);this.on(this.tech_,"play",this.handleTechPlay_);this.on(this.tech_,"firstplay",this.handleTechFirstPlay_);this.on(this.tech_,"pause",this.handleTechPause_);this.on(this.tech_,"durationchange",
this.handleTechDurationChange_);this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_);this.on(this.tech_,"error",this.handleTechError_);this.on(this.tech_,"loadedmetadata",this.updateStyleEl_);this.on(this.tech_,"posterchange",this.handleTechPosterChange_);this.on(this.tech_,"textdata",this.handleTechTextData_);this.usingNativeControls(this.techGet_("controls"));this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_();this.tech_.el().parentNode===this.el()||
"Html5"===e&&this.tag||Ra(this.tech_.el(),this.el());this.tag&&(this.tag=this.tag.player=null)};b.prototype.unloadTech_=function(){var a=this;O.names.forEach(function(b){b=O[b];a[b.privateName]=a[b.getterName]()});this.textTracksJson_=Zc.textTracksToJson(this.tech_);this.isReady_=!1;this.tech_.dispose();this.tech_=!1};b.prototype.tech=function(a){void 0===a&&w.warn(lb(We));return this.tech_};b.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_();this.on(this.tech_,"mousedown",
this.handleTechClick_);this.on(this.tech_,"touchstart",this.handleTechTouchStart_);this.on(this.tech_,"touchmove",this.handleTechTouchMove_);this.on(this.tech_,"touchend",this.handleTechTouchEnd_);this.on(this.tech_,"tap",this.handleTechTap_)};b.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_);this.off(this.tech_,"touchstart",this.handleTechTouchStart_);this.off(this.tech_,"touchmove",this.handleTechTouchMove_);this.off(this.tech_,"touchend",this.handleTechTouchEnd_);
this.off(this.tech_,"mousedown",this.handleTechClick_)};b.prototype.handleTechReady_=function(){this.triggerReady();this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume);this.handleTechPosterChange_();this.handleTechDurationChange_();if((this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(a){w("deleting tag.poster throws in some browsers",a)}this.play()}};b.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended");
this.removeClass("vjs-seeking");this.error(null);this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))};b.prototype.hasStarted=function(a){if(void 0!==a)this.hasStarted_!==a&&((this.hasStarted_=a)?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"));else return!!this.hasStarted_};b.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");
this.hasStarted(!0);this.trigger("play")};b.prototype.handleTechWaiting_=function(){var a=this;this.addClass("vjs-waiting");this.trigger("waiting");this.one("timeupdate",function(){return a.removeClass("vjs-waiting")})};b.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting");this.trigger("canplay")};b.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")};b.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting");
this.trigger("playing")};b.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking");this.trigger("seeking")};b.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking");this.trigger("seeked")};b.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(w.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime));this.addClass("vjs-has-started");this.trigger("firstplay")};b.prototype.handleTechPause_=
function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")};b.prototype.handleTechEnded_=function(){this.addClass("vjs-ended");this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause();this.trigger("ended")};b.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))};b.prototype.handleTechClick_=function(a){0===a.button&&this.controls()&&(this.paused()?this.play():this.pause())};b.prototype.handleTechTap_=function(){this.userActive(!this.userActive())};
b.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()};b.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()};b.prototype.handleTechTouchEnd_=function(a){a.preventDefault()};b.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")};b.prototype.handleStageClick_=function(){this.reportUserActivity()};b.prototype.handleTechFullscreenChange_=function(a,b){b&&this.isFullscreen(b.isFullscreen);
this.trigger("fullscreenchange")};b.prototype.handleTechError_=function(){var a=this.tech_.error();this.error(a)};b.prototype.handleTechTextData_=function(){var a=null;1<arguments.length&&(a=arguments[1]);this.trigger("textdata",a)};b.prototype.getCache=function(){return this.cache_};b.prototype.techCall_=function(a,b){this.ready(function(){if(a in Be)return this.tech_[a](this.middleware_.reduce(Dc(a),b));try{if(this.tech_)this.tech_[a](b)}catch(f){throw w(f),f;}},!0)};b.prototype.techGet_=function(a){if(this.tech_&&
this.tech_.isReady_){if(a in Ae){var b=this.tech_;return this.middleware_.reduceRight(Dc(a),b[a]())}try{return this.tech_[a]()}catch(f){throw void 0===this.tech_[a]?w("Video.js: "+a+" method not defined for "+this.techName_+" playback technology.",f):"TypeError"===f.name?(w("Video.js: "+a+" unavailable on "+this.techName_+" playback technology element.",f),this.tech_.isReady_=!1):w(f),f;}}};b.prototype.play=function(){if(this.changingSrc_)this.ready(function(){var a=this.techGet_("play");void 0!==
a&&"function"===typeof a.then&&a.then(null,function(a){})});else{if(this.isReady_&&(this.src()||this.currentSrc()))return this.techGet_("play");this.ready(function(){this.tech_.one("loadstart",function(){var a=this.play();void 0!==a&&"function"===typeof a.then&&a.then(null,function(a){})})})}};b.prototype.pause=function(){this.techCall_("pause")};b.prototype.paused=function(){return!1===this.techGet_("paused")?!1:!0};b.prototype.played=function(){return this.techGet_("played")||la(0,0)};b.prototype.scrubbing=
function(a){if("undefined"===typeof a)return this.scrubbing_;this.scrubbing_=!!a;a?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")};b.prototype.currentTime=function(a){if("undefined"!==typeof a)this.techCall_("setCurrentTime",a);else return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime};b.prototype.duration=function(a){if(void 0===a)return void 0!==this.cache_.duration?this.cache_.duration:NaN;a=parseFloat(a);0>a&&(a=Infinity);a!==this.cache_.duration&&
(this.cache_.duration=a,Infinity===a?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))};b.prototype.remainingTime=function(){return this.duration()-this.currentTime()};b.prototype.buffered=function(){var a=this.techGet_("buffered");a&&a.length||(a=la(0,0));return a};b.prototype.bufferedPercent=function(){return vc(this.buffered(),this.duration())};b.prototype.bufferedEnd=function(){var a=this.buffered(),b=this.duration();a=a.end(a.length-1);a>b&&(a=b);return a};
b.prototype.volume=function(a){if(void 0!==a)a=Math.max(0,Math.min(1,parseFloat(a))),this.cache_.volume=a,this.techCall_("setVolume",a),0<a&&this.lastVolume_(a);else return a=parseFloat(this.techGet_("volume")),isNaN(a)?1:a};b.prototype.muted=function(a){if(void 0!==a)this.techCall_("setMuted",a);else return this.techGet_("muted")||!1};b.prototype.defaultMuted=function(a){return void 0!==a?this.techCall_("setDefaultMuted",a):this.techGet_("defaultMuted")||!1};b.prototype.lastVolume_=function(a){if(void 0!==
a&&0!==a)this.cache_.lastVolume=a;else return this.cache_.lastVolume};b.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1};b.prototype.isFullscreen=function(a){if(void 0!==a)this.isFullscreen_=!!a;else return!!this.isFullscreen_};b.prototype.requestFullscreen=function(){this.isFullscreen(!0);ha.requestFullscreen?(W(n,ha.fullscreenchange,v(this,function f(b){this.isFullscreen(n[ha.fullscreenElement]);!1===this.isFullscreen()&&P(n,ha.fullscreenchange,f);this.trigger("fullscreenchange")})),
this.el_[ha.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))};b.prototype.exitFullscreen=function(){this.isFullscreen(!1);if(ha.requestFullscreen)n[ha.exitFullscreen]();else this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))};b.prototype.enterFullWindow=function(){this.isFullWindow=!0;this.docOrigOverflow=n.documentElement.style.overflow;
W(n,"keydown",v(this,this.fullWindowOnEscKey));n.documentElement.style.overflow="hidden";ra(n.body,"vjs-full-window");this.trigger("enterFullWindow")};b.prototype.fullWindowOnEscKey=function(a){27===a.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())};b.prototype.exitFullWindow=function(){this.isFullWindow=!1;P(n,"keydown",this.fullWindowOnEscKey);n.documentElement.style.overflow=this.docOrigOverflow;Ca(n.body,"vjs-full-window");this.trigger("exitFullWindow")};b.prototype.canPlayType=
function(a){for(var b,c=0,g=this.options_.techOrder;c<g.length;c++){b=g[c];var h=A.getTech(b);h||(h=l.getComponent(b));if(!h)w.error('The "'+b+'" tech is undefined. Skipped browser support check for that tech.');else if(h.isSupported()&&(b=h.canPlayType(a)))return b}return""};b.prototype.selectSource=function(a){var b=this,c=this.options_.techOrder.map(function(a){return[a,A.getTech(a)]}).filter(function(a){var b=a[0];if(a=a[1])return a.isSupported();w.error('The "'+b+'" tech is undefined. Skipped browser support check for that tech.');
return!1}),g=function(a,b,c){var e=void 0;a.some(function(a){return b.some(function(b){if(e=c(a,b))return!0})});return e},h=void 0;h=function(a){return function(b,c){return a(c,b)}};var k=function(a,c){var e=a[0];if(a[1].canPlaySource(c,b.options_[e.toLowerCase()]))return{source:c,tech:e}};return(h=this.options_.sourceOrder?g(a,c,h(k)):g(c,a,k))||!1};b.prototype.src=function(a){var b=this;if("undefined"===typeof a)return this.cache_.src;var c=Ce(a);c.length?(this.cache_.sources=c,this.changingSrc_=
!0,this.cache_.source=c[0],de(this,c[0],function(a,e){b.middleware_=e;if(b.src_(a)){if(1<c.length)return b.src(c.slice(1));b.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);b.triggerReady()}else b.changingSrc_=!1,b.cache_.src=a.src,ee(e,b.tech_)})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)};b.prototype.src_=function(a){var b=this.selectSource([a]);if(!b)return!0;if(!Qd(b.tech,
this.techName_))return this.changingSrc_=!0,this.loadTech_(b.tech,b.source),!1;this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",a):this.techCall_("src",a.src);"auto"===this.options_.preload&&this.load();this.options_.autoplay&&this.play()},!0);return!1};b.prototype.load=function(){this.techCall_("load")};b.prototype.reset=function(){this.loadTech_(this.options_.techOrder[0],null);this.techCall_("reset")};b.prototype.currentSources=function(){var a=
this.currentSource(),b=[];0!==Object.keys(a).length&&b.push(a);return this.cache_.sources||b};b.prototype.currentSource=function(){return this.cache_.source||{}};b.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""};b.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""};b.prototype.preload=function(a){if(void 0!==a)this.techCall_("setPreload",a),this.options_.preload=a;else return this.techGet_("preload")};b.prototype.autoplay=
function(a){if(void 0!==a)this.techCall_("setAutoplay",a),this.options_.autoplay=a;else return this.techGet_("autoplay",a)};b.prototype.playsinline=function(a){return void 0!==a?(this.techCall_("setPlaysinline",a),this.options_.playsinline=a,this):this.techGet_("playsinline")};b.prototype.loop=function(a){if(void 0!==a)this.techCall_("setLoop",a),this.options_.loop=a;else return this.techGet_("loop")};b.prototype.poster=function(a){if(void 0===a)return this.poster_;a||(a="");this.poster_=a;this.techCall_("setPoster",
a);this.trigger("posterchange")};b.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))};b.prototype.controls=function(a){if(void 0!==a)a=!!a,this.controls_!==a&&(this.controls_=a,this.usingNativeControls()&&this.techCall_("setControls",a),a?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):
(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()));else return!!this.controls_};b.prototype.usingNativeControls=function(a){if(void 0!==a)a=!!a,this.usingNativeControls_!==a&&((this.usingNativeControls_=a)?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")));
else return!!this.usingNativeControls_};b.prototype.error=function(a){if(void 0===a)return this.error_||null;null===a?(this.error_=a,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close()):(this.error_=new I(a),this.addClass("vjs-error"),w.error("(CODE:"+this.error_.code+" "+I.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"))};b.prototype.reportUserActivity=function(a){this.userActivity_=!0};b.prototype.userActive=function(a){if(void 0!==
a){if(a=!!a,a!==this.userActive_)if(this.userActive_=a)this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");else{this.userActivity_=!1;if(this.tech_)this.tech_.one("mousemove",function(a){a.stopPropagation();a.preventDefault()});this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")}}else return this.userActive_};b.prototype.listenForUserActivity_=function(){var a=void 0,b=void 0,c=void 0,
g=v(this,this.reportUserActivity);this.on("mousedown",function(){g();this.clearInterval(a);a=this.setInterval(g,250)});this.on("mousemove",function(a){if(a.screenX!==b||a.screenY!==c)b=a.screenX,c=a.screenY,g()});this.on("mouseup",function(b){g();this.clearInterval(a)});this.on("keydown",g);this.on("keyup",g);var h=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1;this.userActive(!0);this.clearTimeout(h);var a=this.options_.inactivityTimeout;0<a&&(h=this.setTimeout(function(){this.userActivity_||
this.userActive(!1)},a))}},250)};b.prototype.playbackRate=function(a){if(void 0!==a)this.techCall_("setPlaybackRate",a);else return this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1};b.prototype.defaultPlaybackRate=function(a){return void 0!==a?this.techCall_("setDefaultPlaybackRate",a):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1};b.prototype.isAudio=function(a){if(void 0!==a)this.isAudio_=!!a;else return!!this.isAudio_};b.prototype.addTextTrack=
function(a,b,c){if(this.tech_)return this.tech_.addTextTrack(a,b,c)};b.prototype.addRemoteTextTrack=function(a,b){if(this.tech_)return this.tech_.addRemoteTextTrack(a,b)};b.prototype.removeRemoteTextTrack=function(){var a=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).track;a=void 0===a?arguments[0]:a;if(this.tech_)return this.tech_.removeRemoteTextTrack(a)};b.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")};b.prototype.videoWidth=function(){return this.tech_&&
this.tech_.videoWidth&&this.tech_.videoWidth()||0};b.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0};b.prototype.language=function(a){if(void 0===a)return this.language_;this.language_=String(a).toLowerCase()};b.prototype.languages=function(){return D(b.prototype.options_.languages,this.languages_)};b.prototype.toJSON=function(){var a=D(this.options_),b=a.tracks;a.tracks=[];for(var c=0;c<b.length;c++){var g=b[c];g=D(g);g.player=void 0;a.tracks[c]=
g}return a};b.prototype.createModal=function(a,b){var c=this;b=b||{};b.content=a||"";var e=new xa(this,b);this.addChild(e);e.on("dispose",function(){c.removeChild(e)});e.open();return e};b.getTagSettings=function(a){var b={sources:[],tracks:[]},c=ca(a),g=c["data-setup"];Ba(a,"vjs-fluid")&&(c.fluid=!0);if(null!==g){var h=null;try{var k=JSON.parse(g||"{}",void 0)}catch(x){h=x}k=[h,k];g=k[0];k=k[1];g&&w.error(g);z(c,k)}z(b,c);if(a.hasChildNodes())for(a=a.childNodes,c=0,g=a.length;c<g;c++)k=a[c],h=k.nodeName.toLowerCase(),
"source"===h?b.sources.push(ca(k)):"track"===h&&b.tracks.push(ca(k));return b};b.prototype.flexNotSupported_=function(){var a=n.createElement("i");return!("flexBasis"in a.style||"webkitFlexBasis"in a.style||"mozFlexBasis"in a.style||"msFlexBasis"in a.style||"msFlexOrder"in a.style)};return b}(l);O.names.forEach(function(c){var b=O[c];F.prototype[b.getterName]=function(){if(this.tech_)return this.tech_[b.getterName]();this[b.privateName]=this[b.privateName]||new b.ListClass;return this[b.privateName]}});
F.players={};var Pa=m.navigator;F.prototype.options_={techOrder:A.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2E3,playbackRates:[],children:"mediaLoader posterImage textTrackDisplay loadingSpinner bigPlayButton controlBar errorDisplay textTrackSettings".split(" "),language:Pa&&(Pa.languages&&Pa.languages[0]||Pa.userLanguage||Pa.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."};["ended","seeking","seekable","networkState","readyState"].forEach(function(c){F.prototype[c]=
function(){return this.techGet_(c)}});Id.forEach(function(c){F.prototype["handleTech"+C(c)+"_"]=function(){return this.trigger(c)}});l.registerComponent("Player",F);var Z={},hb=function(c){return Z.hasOwnProperty(c)?Z[c]:void 0},ib=function(c,b,a){a=(a?"before":"")+"pluginsetup";c.trigger(a,b);c.trigger(a+":"+b.name,b)},Xe=function(c,b){var a=function(){ib(this,{name:c,plugin:b,instance:null},!0);var a=b.apply(this,arguments);this.activePlugins_=this.activePlugins_||{};this.activePlugins_[c]=!0;ib(this,
{name:c,plugin:b,instance:a});return a};Object.keys(b).forEach(function(c){a[c]=b[c]});return a},Jd=function(c,b){b.prototype.name=c;return function(){ib(this,{name:c,plugin:b,instance:null},!0);for(var a=arguments.length,e=Array(a),f=0;f<a;f++)e[f]=arguments[f];var g=new (Function.prototype.bind.apply(b,[null].concat([this].concat(e))));this[c]=function(){return g};ib(this,g.getEventHash());return g}},aa=function(){function c(b){u(this,c);if(this.constructor===c)throw Error("Plugin must be sub-classed; not directly instantiated.");
this.player=b;rb(this);delete this.trigger;tc(this,this.constructor.defaultState);var a=this.name;b.activePlugins_=b.activePlugins_||{};b.activePlugins_[a]=!0;this.dispose=v(this,this.dispose);b.on("dispose",this.dispose)}c.prototype.getEventHash=function(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};b.name=this.name;b.plugin=this.constructor;b.instance=this;return b};c.prototype.trigger=function(b){return sa(this.eventBusEl_,b,this.getEventHash(1<arguments.length&&void 0!==arguments[1]?
arguments[1]:{}))};c.prototype.handleStateChanged=function(b){};c.prototype.dispose=function(){var b=this.name,a=this.player;this.trigger("dispose");this.off();a.off("dispose",this.dispose);a.activePlugins_[b]=!1;this.player=this.state=null;a[b]=Jd(b,Z[b])};c.isBasic=function(b){b="string"===typeof b?hb(b):b;return"function"===typeof b&&!c.prototype.isPrototypeOf(b.prototype)};c.registerPlugin=function(b,a){if("string"!==typeof b)throw Error('Illegal plugin name, "'+b+'", must be a string, was '+
("undefined"===typeof b?"undefined":qa(b))+".");if(Z.hasOwnProperty(b))w.warn('A plugin named "'+b+'" already exists. You may want to avoid re-registering plugins!');else if(F.prototype.hasOwnProperty(b))throw Error('Illegal plugin name, "'+b+'", cannot share a name with an existing player method!');if("function"!==typeof a)throw Error('Illegal plugin for "'+b+'", must be a function, was '+("undefined"===typeof a?"undefined":qa(a))+".");Z[b]=a;"plugin"!==b&&(c.isBasic(a)?F.prototype[b]=Xe(b,a):F.prototype[b]=
Jd(b,a));return a};c.deregisterPlugin=function(b){if("plugin"===b)throw Error("Cannot de-register base plugin.");Z.hasOwnProperty(b)&&(delete Z[b],delete F.prototype[b])};c.getPlugins=function(){var b=void 0;(0<arguments.length&&void 0!==arguments[0]?arguments[0]:Object.keys(Z)).forEach(function(a){var c=hb(a);c&&(b=b||{},b[a]=c)});return b};c.getPluginVersion=function(b){return(b=hb(b))&&b.VERSION||""};return c}();aa.getPlugin=hb;aa.BASE_PLUGIN_NAME="plugin";aa.registerPlugin("plugin",aa);F.prototype.usingPlugin=
function(c){return!!this.activePlugins_&&!0===this.activePlugins_[c]};F.prototype.hasPlugin=function(c){return!!Z.hasOwnProperty(c)};var Ye=function(c,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof b?"undefined":qa(b)));c.prototype=Object.create(b&&b.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}});b&&(c.super_=b)};"undefined"===typeof HTMLVideoElement&&ba()&&(n.createElement("video"),
n.createElement("audio"),n.createElement("track"));t.hooks_={};t.hooks=function(c,b){t.hooks_[c]=t.hooks_[c]||[];b&&(t.hooks_[c]=t.hooks_[c].concat(b));return t.hooks_[c]};t.hook=function(c,b){t.hooks(c,b)};t.removeHook=function(c,b){var a=t.hooks(c).indexOf(b);if(-1>=a)return!1;t.hooks_[c]=t.hooks_[c].slice();t.hooks_[c].splice(a,1);return!0};if(!0!==m.VIDEOJS_NO_DYNAMIC_STYLE&&ba()){var jb=na(".vjs-styles-defaults");if(!jb){jb=Tc("vjs-styles-defaults");var cc=na("head");cc&&cc.insertBefore(jb,cc.firstChild);
Uc(jb,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}qb(1,t);t.VERSION="6.2.7";t.options=F.prototype.options_;t.getPlayers=function(){return F.players};t.players=F.players;t.getComponent=l.getComponent;t.registerComponent=function(c,b){A.isTech(b)&&w.warn("The "+c+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)");l.registerComponent.call(l,
c,b)};t.getTech=A.getTech;t.registerTech=A.registerTech;t.use=function(c,b){ma[c]=ma[c]||[];ma[c].push(b)};t.browser=ie;t.TOUCH_ENABLED=Ya;t.extend=function(c){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=function(){c.apply(this,arguments)},e={};"object"===("undefined"===typeof b?"undefined":qa(b))?(b.constructor!==Object.prototype.constructor&&(a=b.constructor),e=b):"function"===typeof b&&(a=b);Ye(a,c);for(var f in e)e.hasOwnProperty(f)&&(a.prototype[f]=e[f]);return a};t.mergeOptions=
D;t.bind=v;t.registerPlugin=aa.registerPlugin;t.plugin=function(c,b){w.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead");return aa.registerPlugin(c,b)};t.getPlugins=aa.getPlugins;t.getPlugin=aa.getPlugin;t.getPluginVersion=aa.getPluginVersion;t.addLanguage=function(c,b){var a;c=(""+c).toLowerCase();t.options.languages=D(t.options.languages,(a={},a[c]=b,a));return t.options.languages[c]};t.log=w;t.createTimeRange=t.createTimeRanges=la;t.formatTime=da;t.parseUrl=Kb;t.isCrossOrigin=
db;t.EventTarget=H;t.on=W;t.one=Ga;t.off=P;t.trigger=sa;t.xhr=X;t.TextTrack=La;t.AudioTrack=fd;t.VideoTrack=gd;"isEl isTextNode createEl hasClass addClass removeClass toggleClass setAttributes getAttributes emptyEl appendContent insertContent".split(" ").forEach(function(c){t[c]=function(){w.warn("videojs."+c+"() is deprecated; use videojs.dom."+c+"() instead");return Sc[c].apply(null,arguments)}});t.computedStyle=ia;t.dom=Sc;t.url=se;return t});
!function(){!function(T){(T=T&&T.videojs)&&(T.CDN_VERSION="6.2.7")}(window);(function(T,E,Qa,z,M,U,ia){E&&!1!==E.HELP_IMPROVE_VIDEOJS&&(.01<M.random()||(U=E.location,ia=E.videojs||{},T.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn="+z(U.hostname)+"&utmsr="+E.screen.availWidth+"x"+E.screen.availHeight+"&utmul="+(Qa.language||Qa.userLanguage||"").toLowerCase()+"&utmr="+z(U.href)+"&utmp="+z(U.hostname+U.pathname)+"&utmcc=__utma%3D1."+M.floor(1E10*M.random())+
".1.1.1.1%3B&utme=8(vjsv*cdnv)9("+ia.VERSION+"*"+ia.CDN_VERSION+")"))})(new Image,window,navigator,encodeURIComponent,Math)}();