(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis!="undefined"?globalThis:n||self,n.videojs=t())})(this,function(){"use strict";function hb(n){var i="info",r,t=function(){for(var t=arguments.length,u=new Array(t),n=0;n1?i-1:0),t=1;t=0)throw new Error("class has illegal whitespace characters");}function nst(n){return new RegExp("(^|\\s)"+n+"($|\\s)")}function au(){return document===window.document}function vu(n){return ki(n)&&n.nodeType===1}function gb(){try{return window.parent!==window.self}catch(n){return!0}}function nk(n){return function(t,i){if(!kb(t))return document[n](null);kb(i)&&(i=document.querySelector(i));var r=vu(i)?i:document;return r[n]&&r[n](t)}}function s(n,t,i,r){n===void 0&&(n="div");t===void 0&&(t={});i===void 0&&(i={});var u=document.createElement(n);return Object.getOwnPropertyNames(t).forEach(function(n){var i=t[n];n.indexOf("aria-")!==-1||n==="role"||n==="type"?(o.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\n"+("createEl(type, properties, attributes). Attempting to set "+n+" to "+i+".")),u.setAttribute(n,i)):n==="textContent"?yr(u,i):(u[n]!==i||n==="tabIndex")&&(u[n]=i)}),Object.getOwnPropertyNames(i).forEach(function(n){u.setAttribute(n,i[n])}),r&&dl(u,r),u}function yr(n,t){return typeof n.textContent=="undefined"?n.innerText=t:n.textContent=t,n}function bl(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}function pr(n,t){return(db(t),n.classList)?n.classList.contains(t):nst(t).test(n.className)}function nr(n,t){return n.classList?n.classList.add(t):pr(n,t)||(n.className=(n.className+" "+t).trim()),n}function he(n,t){return n?(n.classList?n.classList.remove(t):(db(t),n.className=n.className.split(/\s+/).filter(function(n){return n!==t}).join(" ")),n):(o.warn("removeClass was called with an element that doesn't exist"),null)}function tk(n,t,i){var r=pr(n,t);if(typeof i=="function"&&(i=i(n,t)),typeof i!="boolean"&&(i=!r),i!==r)return i?nr(n,t):he(n,t),n}function ik(n,t){Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];r===null||typeof r=="undefined"||r===!1?n.removeAttribute(i):n.setAttribute(i,r===!0?"":r)})}function tr(n){var f={},i,t,r,u;if(n&&n.attributes&&n.attributes.length>0)for(i=n.attributes,t=i.length-1;t>=0;t--)r=i[t].name,u=i[t].value,(typeof n[r]=="boolean"||",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")!==-1)&&(u=u!==null?!0:!1),f[r]=u;return f}function rk(n,t){return n.getAttribute(t)}function yu(n,t,i){n.setAttribute(t,i)}function os(n,t){n.removeAttribute(t)}function uk(){document.body.focus();document.onselectstart=function(){return!1}}function fk(){document.onselectstart=function(){return!0}}function pu(n){if(n&&n.getBoundingClientRect&&n.parentNode){var i=n.getBoundingClientRect(),t={};return["bottom","height","left","right","top","width"].forEach(function(n){i[n]!==undefined&&(t[n]=i[n])}),t.height||(t.height=parseFloat(ee(n,"height"))),t.width||(t.width=parseFloat(ee(n,"width"))),t}}function ce(n){if(!n||n&&!n.offsetParent)return{left:0,top:0,width:0,height:0};for(var r=n.offsetWidth,u=n.offsetHeight,t=0,i=0;n.offsetParent&&n!==document[is.fullscreenElement];)t+=n.offsetLeft,i+=n.offsetTop,n=n.offsetParent;return{left:t,top:i,width:r,height:u}}function ss(n,t){var i={x:0,y:0},r,f,e,o;if(ct)for(r=n;r&&r.nodeName.toLowerCase()!=="html";)f=ee(r,"transform"),/^matrix/.test(f)?(e=f.slice(7,-1).split(/,\s/).map(Number),i.x+=e[4],i.y+=e[5]):/^matrix3d/.test(f)&&(o=f.slice(9,-1).split(/,\s/).map(Number),i.x+=o[12],i.y+=o[13]),r=r.parentNode;var s={},l=ce(t.target),u=ce(n),a=u.width,v=u.height,h=t.offsetY-(u.top-l.top),c=t.offsetX-(u.left-l.left);return t.changedTouches&&(c=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,ct&&(c-=i.x,h-=i.y)),s.y=1-Math.max(0,Math.min(1,h/v)),s.x=Math.max(0,Math.min(1,c/a)),s}function ek(n){return ki(n)&&n.nodeType===3}function kl(n){while(n.firstChild)n.removeChild(n.firstChild);return n}function ok(n){return typeof n=="function"&&(n=n()),(Array.isArray(n)?n:[n]).map(function(n){return(typeof n=="function"&&(n=n()),vu(n)||ek(n))?n:typeof n=="string"&&/\S/.test(n)?document.createTextNode(n):void 0}).filter(function(n){return n})}function dl(n,t){return ok(t).forEach(function(t){return n.appendChild(t)}),n}function sk(n,t){return dl(kl(n),t)}function le(n){return n.button===undefined&&n.buttons===undefined?!0:n.button===0&&n.buttons===undefined?!0:n.type==="mouseup"&&n.button===0&&n.buttons===0?!0:n.button!==0||n.buttons!==1?!1:!0}function na(n,t){au()&&(t&&(gl=t),window.setTimeout(tst,n))}function ta(){lk=!0;window.removeEventListener("load",ta)}function cr(){return ist++}function pk(n,t){if(it.has(n)){var i=it.get(n);i.handlers[t].length===0&&(delete i.handlers[t],n.removeEventListener?n.removeEventListener(t,i.dispatcher,!1):n.detachEvent&&n.detachEvent("on"+t,i.dispatcher));Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled);Object.getOwnPropertyNames(i).length===0&&it["delete"](n)}}function ia(n,t,i,r){i.forEach(function(i){n(t,i,r)})}function hs(n){function f(){return!0}function e(){return!1}var t,i,r,u;if(n.fixed_)return n;if(!n||!n.isPropagationStopped||!n.isImmediatePropagationStopped){t=n||window.event;n={};for(i in t)i!=="layerX"&&i!=="layerY"&&i!=="keyLocation"&&i!=="webkitMovementX"&&i!=="webkitMovementY"&&(i==="returnValue"&&t.preventDefault||(n[i]=t[i]));n.target||(n.target=n.srcElement||document);n.relatedTarget||(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement);n.preventDefault=function(){t.preventDefault&&t.preventDefault();n.returnValue=!1;t.returnValue=!1;n.defaultPrevented=!0};n.defaultPrevented=!1;n.stopPropagation=function(){t.stopPropagation&&t.stopPropagation();n.cancelBubble=!0;t.cancelBubble=!0;n.isPropagationStopped=f};n.isPropagationStopped=e;n.stopImmediatePropagation=function(){t.stopImmediatePropagation&&t.stopImmediatePropagation();n.isImmediatePropagationStopped=f;n.stopPropagation()};n.isImmediatePropagationStopped=e;n.clientX!==null&&n.clientX!==undefined&&(r=document.documentElement,u=document.body,n.pageX=n.clientX+(r&&r.scrollLeft||u&&u.scrollLeft||0)-(r&&r.clientLeft||u&&u.clientLeft||0),n.pageY=n.clientY+(r&&r.scrollTop||u&&u.scrollTop||0)-(r&&r.clientTop||u&&u.clientTop||0));n.which=n.charCode||n.keyCode;n.button!==null&&n.button!==undefined&&(n.button=n.button&1?0:n.button&4?1:n.button&2?2:0)}return n.fixed_=!0,n}function bt(n,t,i){var r,u;if(Array.isArray(t))return ia(bt,n,t,i);it.has(n)||it.set(n,{});r=it.get(n);r.handlers||(r.handlers={});r.handlers[t]||(r.handlers[t]=[]);i.guid||(i.guid=cr());r.handlers[t].push(i);r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,i){var f,e,u,s;if(!r.disabled&&(t=hs(t),f=r.handlers[t.type],f))for(e=f.slice(0),u=0,s=e.length;u-1&&(u={passive:!0}),n.addEventListener(t,r.dispatcher,u)):n.attachEvent&&n.attachEvent("on"+t,r.dispatcher))}function rt(n,t,i){var r,e,o,u,f;if(it.has(n)&&(r=it.get(n),r.handlers)){if(Array.isArray(t))return ia(rt,n,t,i);if(e=function(n,t){r.handlers[t]=[];pk(n,t)},t===undefined){for(o in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},o)&&e(n,o);return}if(u=r.handlers[t],u){if(!i){e(n,t);return}if(i.guid)for(f=0;fi)throw new Error("Failed to execute '"+n+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").");}function id(n,t,i,r){return vst(n,r,i.length-1),i[r][t]}function oa(n){var t;return t=n===undefined||n.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty");},end:function(){throw new Error("This TimeRanges object is empty");}}:{length:n.length,start:id.bind(null,"start",0,n),end:id.bind(null,"end",1,n)},window.Symbol&&window.Symbol.iterator&&(t[window.Symbol.iterator]=function(){return(n||[]).values()}),t}function br(n,t){return Array.isArray(n)?oa(n):n===undefined||t===undefined?oa():oa([[n,t]])}function rd(n,t){var u=0,f,r,i;if(!t)return 0;for(n&&n.length||(n=br(0,0)),i=0;it&&(r=t),u+=r-f;return u/t}function lt(n){if(n instanceof lt)return n;typeof n=="number"?this.code=n:typeof n=="string"?this.message=n:ki(n)&&(typeof n.code=="number"&&(this.code=n.code),v(this,n));this.message||(this.message=lt.defaultMessages[this.code]||"")}function yst(n,t){var i,r=null;try{i=JSON.parse(n,t)}catch(u){r=u}return[r,i]}function ve(n){return n!==undefined&&n!==null&&typeof n.then=="function"}function ci(n){ve(n)&&n.then(null,function(){})}function eht(n){if(!n)return!1;var t=fht.call(n);return t==="[object Function]"||typeof n=="function"&&t!=="[object RegExp]"||typeof window!="undefined"&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}function oht(n){return n===void 0&&(n=""),n.toLowerCase().split(";").reduce(function(n,t){var i=t.split("="),r=i[0],u=i[1];return r.trim()==="charset"?u.trim():n},"utf-8")}function cht(n,t){for(var i=0;i0&&(a=setTimeout(function(){if(!f){f=!0;t.abort("timeout");var n=new Error("XMLHttpRequest timeout");n.code="ETIMEDOUT";s(n)}},n.timeout)),t.setRequestHeader)for(u in i)i.hasOwnProperty(u)&&t.setRequestHeader(u,i[u]);else if(n.headers&&!lht(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(t.responseType=n.responseType),"beforeSend"in n&&typeof n.beforeSend=="function"&&n.beforeSend(t),t.send(c||null),t}function aht(n){try{if(n.responseType==="document")return n.responseXML;var t=n.responseXML&&n.responseXML.documentElement.nodeName==="parsererror";if(n.responseType===""&&!t)return n.responseXML}catch(i){}return null}function vht(){}function dt(n,t){this.name="ParsingError";this.code=n.code;this.message=t||n.message}function ba(n){function i(n,t,i,r){return(n|0)*3600+(t|0)*60+(i|0)+(r|0)/1e3}var t=n.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return t?t[3]?i(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?i(t[1],t[2],0,t[4]):i(0,t[1],t[2],t[4]):null}function we(){this.values=bs(null)}function be(n,t,i,r){var f=r?n.split(r):[n],e,u,o,s;for(e in f)typeof f[e]=="string"&&(u=f[e].split(i),u.length===2)&&(o=u[0],s=u[1],t(o,s))}function yht(n,t,i){function f(){var t=ba(n);if(t===null)throw new dt(dt.Errors.BadTimeStamp,"Malformed timestamp: "+u);return n=n.replace(/^[^\sa-zA-Z-]+/,""),t}function e(n,t){var r=new we;be(n,function(n,t){var f,u,e;switch(n){case"region":for(f=i.length-1;f>=0;f--)if(i[f].id===t){r.set(n,i[f].region);break}break;case"vertical":r.alt(n,t,["rl","lr"]);break;case"line":u=t.split(",");e=u[0];r.integer(n,e);r.percent(n,e)?r.set("snapToLines",!1):null;r.alt(n,e,["auto"]);u.length===2&&r.alt("lineAlign",u[1],["start","center","end"]);break;case"position":u=t.split(",");r.percent(n,u[0]);u.length===2&&r.alt("positionAlign",u[1],["start","center","end"]);break;case"size":r.percent(n,t);break;case"align":r.alt(n,t,["start","center","end","left","right"])}},/:/,/\s/);t.region=r.get("region",null);t.vertical=r.get("vertical","");try{t.line=r.get("line","auto")}catch(u){}t.lineAlign=r.get("lineAlign","start");t.snapToLines=r.get("snapToLines",!0);t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(u){t.align=r.get("align","middle")}try{t.position=r.get("position","auto")}catch(u){t.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function r(){n=n.replace(/^\s+/,"")}var u=n;if(r(),t.startTime=f(),r(),n.substr(0,3)!=="-->")throw new dt(dt.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+u);n=n.substr(3);r();t.endTime=f();r();e(n,t)}function rg(n,t){function c(){function i(n){return t=t.substr(n.length),n}if(!t)return null;var n=t.match(/^([^<]*)(<[^>]*>?)?/);return i(n[1]?n[1]:n[2])}function l(n){return ka.innerHTML=n,n=ka.textContent,ka.textContent="",n}function a(n,t){return!ig[t.localName]||ig[t.localName]===n.localName}function v(t,i){var f=pht[t],r,u;return f?(r=n.document.createElement(f),u=wht[t],u&&i&&(r[u]=i.trim()),r):null}for(var h=n.document.createElement("div"),u=h,r,e=[],o,i,f,s;(r=c())!==null;){if(r[0]==="<"){if(r[1]==="/"){e.length&&e[e.length-1]===r.substr(2).replace(">","")&&(e.pop(),u=u.parentNode);continue}if(o=ba(r.substr(1,r.length-2)),o){i=n.document.createProcessingInstruction("timestamp",o);u.appendChild(i);continue}if(f=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/),!f)continue;if(i=v(f[1],f[3]),!i)continue;if(!a(u,i))continue;f[2]&&(s=f[2].split("."),s.forEach(function(n){var t=/^bg_/.test(n),r=t?n.slice(3):n,u,f;tg.hasOwnProperty(r)&&(u=t?"background-color":"color",f=tg[r],i.style[u]=f)}),i.className=s.join(" "));e.push(f[1]);u.appendChild(i);u=i;continue}u.appendChild(n.document.createTextNode(l(r)))}return h}function bht(n){for(var i,t=0;t=i[0]&&n<=i[1])return!0;return!1}function kht(n){function e(n,t){for(var i=t.childNodes.length-1;i>=0;i--)n.push(t.childNodes[i])}function r(n){var t,i,u;return!n||!n.length?null:(t=n.pop(),i=t.textContent||t.innerText,i)?(u=i.match(/^.*(\n|\r)/),u)?(n.length=0,u[0]):i:t.tagName==="ruby"?r(n):t.childNodes?(e(n,t),r(n)):void 0}var u=[],i="",f,t;if(!n||!n.childNodes)return"ltr";for(e(u,n);i=r(u);)for(t=0;t=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;var r=n.track,i=r.textTrackList,u=0;for(t=0;tf&&(e=new at(n),s=f);n=new at(o)}return e||o}var o=new at(t),e=t.cue,f=dht(e),u=[],h,l,v;if(e.snapToLines){switch(e.vertical){case"":u=["+y","-y"];h="height";break;case"rl":u=["+x","-x"];h="width";break;case"lr":u=["-x","+x"];h="width"}var c=o.lineHeight,s=c*Math.round(f),a=i[h]+c,p=u[0];Math.abs(s)>a&&(s=(s<0?-1:1)*Math.ceil(a/c)*c);f<0&&(s+=e.vertical===""?i.height:i.width,u=u.reverse());o.move(p,s)}else{l=o.lineHeight/i.height*100;switch(e.lineAlign){case"center":f-=l/2;break;case"end":f-=l}switch(e.vertical){case"":t.applyStyles({top:t.formatStyle(f,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(f,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(f,"%")})}u=["+y","-x","+x","-y"];o=new at(t)}v=y(o,u);t.move(v.toCSSCompatValues(i))}function ku(){}function oct(n){if(typeof n!="string")return!1;var t=fct[n.toLowerCase()];return t?n.toLowerCase():!1}function ga(n){if(typeof n!="string")return!1;var t=ect[n.toLowerCase()];return t?n.toLowerCase():!1}function ug(n,t,i){this.hasBeenReset=!1;var r="",u=!1,f=n,e=t,o=i,s=null,h="",c=!0,l="auto",a="start",v="auto",y="auto",p=100,w="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(n){r=""+n}},pauseOnExit:{enumerable:!0,get:function(){return u},set:function(n){u=!!n}},startTime:{enumerable:!0,get:function(){return f},set:function(n){if(typeof n!="number")throw new TypeError("Start time must be set to a number.");f=n;this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return e},set:function(n){if(typeof n!="number")throw new TypeError("End time must be set to a number.");e=n;this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(n){o=""+n;this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return s},set:function(n){s=n;this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(n){var t=oct(n);if(t===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t;this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(n){c=!!n;this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return l},set:function(n){if(typeof n!="number"&&n!==uct)throw new SyntaxError("Line: an invalid number or illegal string was specified.");l=n;this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return a},set:function(n){var t=ga(n);t?(a=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return v},set:function(n){if(n<0||n>100)throw new Error("Position must be between 0 and 100.");v=n;this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return y},set:function(n){var t=ga(n);t?(y=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return p},set:function(n){if(n<0||n>100)throw new Error("Size must be between 0 and 100.");p=n;this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return w},set:function(n){var t=ga(n);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");w=t;this.hasBeenReset=!0}}});this.displayState=undefined}function sct(n){if(typeof n!="string")return!1;var t=eg[n.toLowerCase()];return t?n.toLowerCase():!1}function ke(n){return typeof n=="number"&&n>=0&&n<=100}function hct(){var n=100,t=3,i=0,r=100,u=0,f=100,e="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(t){if(!ke(t))throw new Error("Width must be between 0 and 100.");n=t}},lines:{enumerable:!0,get:function(){return t},set:function(n){if(typeof n!="number")throw new TypeError("Lines must be set to a number.");t=n}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(n){if(!ke(n))throw new Error("RegionAnchorX must be between 0 and 100.");r=n}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(n){if(!ke(n))throw new Error("RegionAnchorY must be between 0 and 100.");i=n}},viewportAnchorY:{enumerable:!0,get:function(){return f},set:function(n){if(!ke(n))throw new Error("ViewportAnchorY must be between 0 and 100.");f=n}},viewportAnchorX:{enumerable:!0,get:function(){return u},set:function(n){if(!ke(n))throw new Error("ViewportAnchorX must be between 0 and 100.");u=n}},scroll:{enumerable:!0,get:function(){return e},set:function(n){var t=sct(n);t===!1?console.warn("Scroll: an invalid or illegal string was specified."):e=t}}})}function cct(n,t,i,r,u){var e,f;return u===void 0&&(u={}),e=n.textTracks(),u.kind=t,i&&(u.label=i),r&&(u.language=r),u.tech=n,f=new ut.text.TrackClass(u),e.addTrack(f),f}function lct(n,t){tu[n]=tu[n]||[];tu[n].push(t)}function act(n,t,i){n.setTimeout(function(){return iu(t,tu[t.type],i,n)},1)}function vct(n,t){n.forEach(function(n){return n.setTech&&n.setTech(t)})}function yct(n,t,i){return n.reduceRight(tv(i),t[i]())}function pct(n,t,i,r){return t[i](n.reduce(tv(i),r))}function sg(n,t,i,r){r===void 0&&(r=null);var o="call"+y(i),u=n.reduce(tv(o),r),f=u===gs,e=f?null:t[i](u);return kct(n,i,e,f),e}function tv(n){return function(t,i){return t===gs?gs:i[n]?i[n](t):t}}function kct(n,t,i,r){for(var f,u=n.length-1;u>=0;u--)f=n[u],f[t]&&f[t](r,i)}function dct(n){nv[n.id()]=null}function gct(n,t){var r=nv[n.id()],i=null,u;if(r===undefined||r===null)return i=t(n),nv[n.id()]=[[t,i]],i;for(u=0;u=0){for(u=t.length-1;r"&&">"||n=="&"&&"&"||n=='"'&&"""||"&#"+n.charCodeAt()+";"}function eo(n,t){if(t(n))return!0;if(n=n.firstChild)do if(eo(n,t))return!0;while(n=n.nextSibling)}function oo(){}function ivt(n,t,i){n&&n._inc++;var r=i.namespaceURI;r===uo.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}function lit(n,t,i){n&&n._inc++;var r=i.namespaceURI;r===uo.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function gy(n,t,i){var r,u,f;if(n&&n._inc)if(n._inc++,r=t.childNodes,i)r[r.length++]=i;else{for(u=t.firstChild,f=0;u;)r[f++]=u,u=u.nextSibling;r.length=f}}function ait(n,t){var i=t.previousSibling,r=t.nextSibling;return i?i.nextSibling=r:n.firstChild=r,r?r.previousSibling=i:n.lastChild=i,gy(n.ownerDocument,n),t}function vit(n,t,i){var e=t.parentNode,r,u,f;if(e&&e.removeChild(t),t.nodeType===ur){if(r=t.firstChild,r==null)return t;u=t.lastChild}else r=u=t;f=i?i.previousSibling:n.lastChild;r.previousSibling=f;u.nextSibling=i;f?f.nextSibling=r:n.firstChild=r;i==null?n.lastChild=u:i.previousSibling=u;do r.parentNode=n;while(r!==u&&(r=r.nextSibling));return gy(n.ownerDocument||n,n),t.nodeType==ur&&(t.firstChild=t.lastChild=null),t}function rvt(n,t){var r=t.parentNode,i;return r&&(i=n.lastChild,r.removeChild(t),i=n.lastChild),i=n.lastChild,t.parentNode=n,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:n.firstChild=t,n.lastChild=t,gy(n.ownerDocument,n,t),t}function su(){this._nsMap={}}function hc(){}function so(){}function np(){}function tp(){}function ip(){}function cc(){}function yit(){}function pit(){}function rp(){}function lc(){}function up(){}function wit(){}function bit(n,t){var f=[],i=this.nodeType==9&&this.documentElement||this,r=i.prefix,u=i.namespaceURI,e;return u&&r==null&&(r=i.lookupPrefix(u),r==null&&(e=[{namespace:u,prefix:null}])),hf(this,f,n,t,e),f.join("")}function kit(n,t,i){var e=n.prefix||"",r=n.namespaceURI,u,f;if(!r||e==="xml"&&r===uo.XML||r===uo.XMLNS)return!1;for(u=i.length;u--;)if(f=i[u],f.prefix===e)return f.namespace!==r;return!0}function fp(n,t,i){n.push(" ",t,'="',i.replace(/[<&"]/g,cit),'"')}function hf(n,t,i,r,u){var p,b,w,o,s,h,e,c,v,f,k,l,d;if(u||(u=[]),r)if(n=r(n),n){if(typeof n=="string"){t.push(n);return}}else return;switch(n.nodeType){case ei:var a=n.attributes,g=a.length,f=n.firstChild,y=n.tagName;if(i=uo.isHTML(n.namespaceURI)||i,p=y,!i&&!n.prefix&&n.namespaceURI){for(w=0;w=0;o--)if(s=u[o],s.prefix===""&&s.namespace===n.namespaceURI){b=s.namespace;break}if(b!==n.namespaceURI)for(o=u.length-1;o>=0;o--)if(s=u[o],s.namespace===n.namespaceURI){s.prefix&&(p=s.prefix+":"+y);break}}for(t.push("<",p),h=0;h"),i&&/^script$/i.test(y))while(f)f.data?t.push(f.data):hf(f,t,i,r,u.slice()),f=f.nextSibling;else while(f)hf(f,t,i,r,u.slice()),f=f.nextSibling;t.push("<\/",p,">")}else t.push("/>");return;case iit:case ur:for(f=n.firstChild;f;)hf(f,t,i,r,u.slice()),f=f.nextSibling;return;case of:return fp(t,n.name,n.value);case oc:return t.push(n.data.replace(/[<&]/g,cit).replace(/]]>/g,"]]>"));case dtt:return t.push("");case tit:return t.push("");case rit:k=n.publicId;l=n.systemId;t.push("")):l&&l!="."?t.push(" SYSTEM ",l,">"):(d=n.internalSubset,d&&t.push(" [",d,"]"),t.push(">"));return;case nit:return t.push("");case gtt:return t.push("&",n.nodeName,";");default:t.push("??",n.nodeName)}}function dit(n,t,i){var r,u;switch(t.nodeType){case ei:r=t.cloneNode(!1);r.ownerDocument=n;break;case of:i=!0}if(r||(r=t.cloneNode(!1)),r.ownerDocument=n,r.parentNode=null,i)for(u=t.firstChild;u;)r.appendChild(dit(n,u,i)),u=u.nextSibling;return r}function ep(n,t,i){var r=new t.constructor,f,e,o,u;for(f in t)e=t[f],typeof e!="object"&&e!=r[f]&&(r[f]=e);t.childNodes&&(r.childNodes=new fr);r.ownerDocument=n;switch(r.nodeType){case ei:var s=t.attributes,h=r.attributes=new sc,c=s.length;for(h._ownerElement=r,o=0;o65535){n-=65536;var t=55296+(n>>10),i=56320+(n&1023);return String.fromCharCode(t,i)}return String.fromCharCode(n)}function p(n){var t=n.slice(1,-1);return t in i?i[t]:t.charAt(0)==="#"?st(parseInt(t.substr(1).replace("x","0x"))):(u.error("entity not found:"+n),n)}function tt(t){if(t>s){var i=n.substring(s,t).replace(/&#?\w+;/g,p);c&&v(s);r.characters(i,0,t-s);s=t}}function v(t,i){while(t>=it&&(i=ht.exec(n)))w=i.index,it=w+i[0].length,c.lineNumber++;c.columnNumber=t-w+1}for(var w=0,it=0,ht=/.*(?:\r\n?|\n)|.*$/g,c=r.locator,a=[{currentNSMap:t}],ct={},s=0,f,b,k,ft,ot,y,g;;){try{if(f=n.indexOf("<",s),f<0){n.substr(s).match(/^\s*$/)||(b=r.doc,k=b.createTextNode(n.substr(s)),b.appendChild(k),r.currentElement=k);return}f>s&&tt(f);switch(n.charAt(f+1)){case"/":var e=n.indexOf(">",f+3),h=n.substring(f+2,e).replace(/[ \t\n\r]+$/g,""),l=a.pop();e<0?(h=n.substring(f+2).replace(/[\s<].*/,""),u.error("end tag name: "+h+" is not complete:"+l.tagName),e=f+1+h.length):h.match(/\ss?s=e:tt(Math.max(f,s)+1)}}function rrt(n,t){return t.lineNumber=n.lineNumber,t.columnNumber=n.columnNumber,t}function avt(n,t,i,r,u,f){function l(n,t,r){i.attributeNames.hasOwnProperty(n)&&f.fatalError("Attribute "+n+" redefined");i.addValue(n,t,r)}for(var h,o=++t,e=lo,c,s;;){c=n.charAt(o);switch(c){case"=":if(e===lr)h=n.slice(t,o),e=ao;else if(e===cf)e=ao;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(e===ao||e===lr)if(e===lr&&(f.warning('attribute value must after "="'),h=n.slice(t,o)),t=o+1,o=n.indexOf(c,t),o>0)s=n.slice(t,o).replace(/&#?\w+;/g,u),l(h,s,t-1),e=af;else throw new Error("attribute value no end '"+c+"' match");else if(e==lf)s=n.slice(t,o).replace(/&#?\w+;/g,u),l(h,s,t),f.warning('attribute "'+h+'" missed start quot('+c+")!!"),t=o+1,e=af;else throw new Error('attribute value must after "="');break;case"/":switch(e){case lo:i.setTagName(n.slice(t,o));case af:case vo:case ac:e=ac;i.closed=!0;case lf:case lr:case cf:break;default:throw new Error("attribute invalid close char('/')");}break;case"":return f.error("unexpected end of input"),e==lo&&i.setTagName(n.slice(t,o)),o;case">":switch(e){case lo:i.setTagName(n.slice(t,o));break;case lf:case lr:s=n.slice(t,o);s.slice(-1)==="/"&&(i.closed=!0,s=s.slice(0,-1));case cf:e===cf&&(s=h);e==lf?(f.warning('attribute "'+s+'" missed quot(")!'),l(h,s.replace(/&#?\w+;/g,u),t)):(co.isHTML(r[""])&&s.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+s+'" missed value!! "'+s+'" instead!!'),l(s,s,t));break;case ao:throw new Error("attribute value missed!!");}return o;case"€":c=" ";default:if(c<=" ")switch(e){case lo:i.setTagName(n.slice(t,o));e=vo;break;case lr:h=n.slice(t,o);e=cf;break;case lf:s=n.slice(t,o).replace(/&#?\w+;/g,u);f.warning('attribute "'+s+'" missed quot(")!!');l(h,s,t);case af:e=vo}else switch(e){case cf:i.tagName;co.isHTML(r[""])&&h.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+h+'" missed value!! "'+h+'" instead2!!');l(h,h,t);t=o;e=lr;break;case af:f.warning('attribute space is required"'+h+'"!!');case vo:e=lr;t=o;break;case ao:e=lf;t=o;break;case ac:throw new Error("elements closed character '/' and '>' must be connected to");}}o++}}function urt(n,t,i){for(var o=n.tagName,s=null,h=n.length,r,f,a;h--;){var u=n[h],c=u.qName,v=u.value,f=c.indexOf(":");if(f>0)var r=u.prefix=c.slice(0,f),e=c.slice(f+1),l=r==="xmlns"&&e;else e=c,r=null,l=c==="xmlns"&&"";u.localName=e;l!==!1&&(s==null&&(s={},frt(i,i={})),i[l]=s[l]=v,u.uri=co.XMLNS,t.startPrefixMapping(l,v))}for(h=n.length;h--;)u=n[h],r=u.prefix,r&&(r==="xml"&&(u.uri=co.XML),r!=="xmlns"&&(u.uri=i[r||""]));if(f=o.indexOf(":"),f>0?(r=n.prefix=o.slice(0,f),e=n.localName=o.slice(f+1)):(r=null,e=n.localName=o),a=n.uri=i[r||""],t.startElement(a,e,o,n),n.closed){if(t.endElement(a,e,o),s)for(r in s)t.endPrefixMapping(r)}else return n.currentNSMap=i,n.localNSMap=s,!0}function vvt(n,t,i,r,u){if(/^(?:script|textarea)$/i.test(i)){var e=n.indexOf("<\/"+i+">",t),f=n.substring(t+1,e);if(/[&<]/.test(f))return/^script$/i.test(i)?(u.characters(f,0,f.length),e):(f=f.replace(/&#?\w+;/g,r),u.characters(f,0,f.length),e)}return t+1}function yvt(n,t,i,r){var u=r[i];return u==null&&(u=n.lastIndexOf("<\/"+i+">"),u",t+4),f>t?(i.comment(n,t+4,f-t-4),f+3):(r.error("Unclosed comment"),-1)):-1;default:if(n.substr(t+3,6)=="CDATA[")return f=n.indexOf("]\]>",t+9),i.startCDATA(),i.characters(n,t+9,f-t-9),i.endCDATA(),f+3;if(u=bvt(n,t),e=u.length,e>1&&/!doctype/i.test(u[0][0])){var l=u[1][0],h=!1,o=!1;return e>3&&(/^public$/i.test(u[2][0])?(h=u[3][0],o=e>4&&u[4][0]):/^system$/i.test(u[2][0])&&(o=u[3][0])),s=u[e-1],i.startDTD(l,h,o),i.endDTD(),s.index+s[0].length}}return-1}function wvt(n,t,i){var u=n.indexOf("?>",t),r;return u?(r=n.substring(t,u).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/),r?(r[0].length,i.processingInstruction(r[1],r[2]),u+2):-1):-1}function ert(){this.attributeNames={}}function bvt(n,t){var i,u=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(n);i=r.exec(n);)if(u.push(i),i[1])return u}function hrt(n){this.options=n||{locator:{}}}function iyt(n,t,i){function r(t){var r=n[t];!r&&f&&(r=n.length==2?function(i){n(t,i)}:n);u[t]=r&&function(n){r("[xmldom "+t+"]\t"+n+cp(i))}||function(){}}if(!n){if(t instanceof yo)return t;n=t}var u={},f=n instanceof Function;return i=i||{},r("warning"),r("error"),r("fatalError"),u}function yo(){this.cdata=!1}function yf(n,t){t.lineNumber=n.lineNumber;t.columnNumber=n.columnNumber}function cp(n){if(n)return"\n@"+(n.systemId||"")+"#[line:"+n.lineNumber+",col:"+n.columnNumber+"]"}function crt(n,t,i){return typeof n=="string"?n.substr(t,i):n.length>=t+i||t?new java.lang.String(n,t,i)+"":n}function vc(n,t){n.currentElement?n.currentElement.appendChild(t):n.doc.appendChild(t)}function er(){}for(var ue,ht,sb,yk,it,cs,wk,bk,ae,nd,f,i,kr,ud,ps,dr,gr,ed,ld,ad,kt,nu,ut,ng,pa,pe,wa,bs,da,fg,eg,og,du,h,ag,de,vg,pg,wg,ri,uv,bg,fv,ev,th,ru,ih,rh,kg,uh,dg,ov,ge,fh,eh,gg,nn,oh,sv,cv,lv,av,rn,un,fn,vv,no,yv,en,pv,wv,bv,hh,ch,on,nf,tf,kv,uu,dv,lh,ah,vh,yh,ph,gv,wh,ny,ty,bh,iy,ry,sn,to,uy,dn,gn,ntt,ttt,kh,ftt,p,rf,ay,io,rc,uit,fit,ky,op,vot,fb="7.17.3",bi={},sr=function(n,t){return bi[n]=bi[n]||[],t&&(bi[n]=bi[n].concat(t)),bi[n]},yot=function(n,t){sr(n,t)},eb=function(n,t){var i=sr(n).indexOf(t);return i<=-1?!1:(bi[n]=bi[n].slice(),bi[n].splice(i,1),!0)},pot=function(n,t){sr(n,[].concat(t).map(function(t){var i=function i(){return eb(n,i),t.apply(void 0,arguments)};return i}))},is={prefixed:!0},rs=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],ob=rs[0],re,us=0;us0?e:0)),window.console)&&(f=window.console[i],f||i!=="debug"||(f=window.console.info||window.console.log),f&&o&&s.test(i))&&f[Array.isArray(u)?"apply":"call"](window.console,u)}};var o=hb("VIDEOJS"),cb=o.createLogger,fs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};var hi=vr(function(n){function t(){return n.exports=t=Object.assign||function(n){for(var i,r,t=1;t0)for(i=0,r=t.length;i=t&&(n.apply(void 0,arguments),i=r)}},ust=function(n,t,i,r){r===void 0&&(r=window);var u,e=function(){r.clearTimeout(u);u=null},f=function(){var f=this,e=arguments,o=function(){u=null;o=null;i||n.apply(f,e)};!u&&i&&n.apply(f,e);r.clearTimeout(u);u=r.setTimeout(o,t)};return f.cancel=e,f},k=function(){};k.prototype.allowedEvents_={};k.prototype.on=function(n,t){var i=this.addEventListener;this.addEventListener=function(){};bt(this,n,t);this.addEventListener=i};k.prototype.addEventListener=k.prototype.on;k.prototype.off=function(n,t){rt(this,n,t)};k.prototype.removeEventListener=k.prototype.off;k.prototype.one=function(n,t){var i=this.addEventListener;this.addEventListener=function(){};ls(this,n,t);this.addEventListener=i};k.prototype.any=function(n,t){var i=this.addEventListener;this.addEventListener=function(){};kk(this,n,t);this.addEventListener=i};k.prototype.trigger=function(n){var t=n.type||n;typeof n=="string"&&(n={type:t});n=hs(n);this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](n);wu(this,n)};k.prototype.dispatchEvent=k.prototype.trigger;k.prototype.queueTrigger=function(n){var r=this,i,t,u,f;ae||(ae=new Map);i=n.type||n;t=ae.get(this);t||(t=new Map,ae.set(this,t));u=t.get(i);t["delete"](i);window.clearTimeout(u);f=window.setTimeout(function(){t.size===0&&(t=null,ae["delete"](r));r.trigger(n)},0);t.set(i,f)};var as=function(n){return typeof n.name=="function"?n.name():typeof n.name=="string"?n.name:n.name_?n.name_:n.constructor&&n.constructor.name?n.constructor.name:typeof n},rr=function(n){return n instanceof k||!!n.eventBusEl_&&["on","one","off","trigger"].every(function(t){return typeof n[t]=="function"})},fst=function(n,t){rr(n)?t():(n.eventedCallbacks||(n.eventedCallbacks=[]),n.eventedCallbacks.push(t))},ra=function(n){return typeof n=="string"&&/\S/.test(n)||Array.isArray(n)&&!!n.length},vs=function(n,t,i){if(!n||!n.nodeName&&!rr(n))throw new Error("Invalid target for "+as(t)+"#"+i+"; must be a DOM node or evented object.");},dk=function(n,t,i){if(!ra(n))throw new Error("Invalid event type for "+as(t)+"#"+i+"; must be a non-empty string or array.");},gk=function(n,t,i){if(typeof n!="function")throw new Error("Invalid listener for "+as(t)+"#"+i+"; must be a function.");},ua=function(n,t,i){var e=t.length<3||t[0]===n||t[0]===n.eventBusEl_,u,f,r;return e?(u=n.eventBusEl_,t.length>=3&&t.shift(),f=t[0],r=t[1]):(u=t[0],f=t[1],r=t[2]),vs(u,n,i),dk(f,n,i),gk(r,n,i),r=c(n,r),{isTargetingSelf:e,target:u,type:f,listener:r}},wr=function(n,t,i,r){vs(n,n,t);n.nodeName?rst[t](n,i,r):n[t](i,r)},est={on:function(){for(var r,f,e=this,o=arguments.length,s=new Array(o),n=0;n=0;n--)this.children_[n].dispose&&this.children_[n].dispose();this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.parentComponent_=null;this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null);this.player_=null}},n.isDisposed=function(){return Boolean(this.isDisposed_)},n.player=function(){return this.player_},n.options=function(n){return n?(this.options_=l(this.options_,n),this.options_):this.options_},n.el=function(){return this.el_},n.createEl=function(n,t,i){return s(n,t,i)},n.localize=function(n,t,i){i===void 0&&(i=n);var f=this.player_.language&&this.player_.language(),u=this.player_.languages&&this.player_.languages(),e=u&&u[f],s=f&&f.split("-")[0],o=u&&u[s],r=i;return e&&e[n]?r=e[n]:o&&o[n]&&(r=o[n]),t&&(r=r.replace(/\{(\d+)\}/g,function(n,i){var r=t[i-1],u=r;return typeof r=="undefined"&&(u=n),u})),r},n.handleLanguagechange=function(){},n.contentEl=function(){return this.contentEl_||this.el_},n.id=function(){return this.id_},n.name=function(){return this.name_},n.children=function(){return this.children_},n.getChildById=function(n){return this.childIndex_[n]},n.getChild=function(n){if(n)return this.childNameIndex_[n]},n.getDescendant=function(){for(var n,r,u=arguments.length,t=new Array(u),i=0;i=0;t--)if(this.children_[t]===n){i=!0;this.children_.splice(t,1);break}i&&(n.parentComponent_=null,this.childIndex_[n.id()]=null,this.childNameIndex_[y(n.name())]=null,this.childNameIndex_[ys(n.name())]=null,r=n.el(),r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(n.el()))}},n.initChildren=function(){var i=this,n=this.options_.children;if(n){var u=this.options_,f=function(n){var r=n.name,t=n.opts,f;(u[r]!==undefined&&(t=u[r]),t!==!1)&&(t===!0&&(t={}),t.playerOptions=i.options_.playerOptions,f=i.addChild(r,t),f&&(i[r]=f))},r,e=t.getComponent("Tech");r=Array.isArray(n)?n:Object.keys(n);r.concat(Object.keys(this.options_).filter(function(n){return!r.some(function(t){return typeof t=="string"?n===t:n===t.name})})).map(function(t){var r,u;return typeof t=="string"?(r=t,u=n[r]||i.options_[r]||{}):(r=t.name,u=t),{name:r,opts:u}}).filter(function(n){var i=t.getComponent(n.opts.componentClass||y(n.name));return i&&!e.isTech(i)}).forEach(f)}},n.buildCSSClass=function(){return""},n.ready=function(n,t){if(t===void 0&&(t=!1),n){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[];this.readyQueue_.push(n);return}t?n.call(this):this.setTimeout(n,1)}},n.triggerReady=function(){this.isReady_=!0;this.setTimeout(function(){var n=this.readyQueue_;this.readyQueue_=[];n&&n.length>0&&n.forEach(function(n){n.call(this)},this);this.trigger("ready")},1)},n.$=function(n,t){return hr(n,t||this.contentEl())},n.$$=function(n,t){return hk(n,t||this.contentEl())},n.hasClass=function(n){return pr(this.el_,n)},n.addClass=function(n){nr(this.el_,n)},n.removeClass=function(n){he(this.el_,n)},n.toggleClass=function(n,t){tk(this.el_,n,t)},n.show=function(){this.removeClass("vjs-hidden")},n.hide=function(){this.addClass("vjs-hidden")},n.lockShowing=function(){this.addClass("vjs-lock-showing")},n.unlockShowing=function(){this.removeClass("vjs-lock-showing")},n.getAttribute=function(n){return rk(this.el_,n)},n.setAttribute=function(n,t){yu(this.el_,n,t)},n.removeAttribute=function(n){os(this.el_,n)},n.width=function(n,t){return this.dimension("width",n,t)},n.height=function(n,t){return this.dimension("height",n,t)},n.dimensions=function(n,t){this.width(n,!0);this.height(t)},n.dimension=function(n,t,i){if(t!==undefined){(t===null||t!==t)&&(t=0);this.el_.style[n]=(""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1?t:t==="auto"?"":t+"px";i||this.trigger("componentresize");return}if(!this.el_)return 0;var r=this.el_.style[n],u=r.indexOf("px");return u!==-1?parseInt(r.slice(0,u),10):parseInt(this.el_["offset"+y(n)],10)},n.currentDimension=function(n){var t=0,i;if(n!=="width"&&n!=="height")throw new Error("currentDimension only accepts width or height value");return t=ee(this.el_,n),t=parseFloat(t),(t===0||isNaN(t))&&(i="offset"+y(n),t=this.el_[i]),t},n.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},n.currentWidth=function(){return this.currentDimension("width")},n.currentHeight=function(){return this.currentDimension("height")},n.focus=function(){this.el_.focus()},n.blur=function(){this.el_.blur()},n.handleKeyDown=function(n){this.player_&&(n.stopPropagation(),this.player_.handleKeyDown(n))},n.handleKeyPress=function(n){this.handleKeyDown(n)},n.emitTapEvents=function(){var r=0,n=null,u=10,f=200,t,i;this.on("touchstart",function(i){i.touches.length===1&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},r=window.performance.now(),t=!0)});this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(n){var r=i.touches[0].pageX-n.pageX,f=i.touches[0].pageY-n.pageY,e=Math.sqrt(r*r+f*f);e>u&&(t=!1)}});i=function(){t=!1};this.on("touchleave",i);this.on("touchcancel",i);this.on("touchend",function(i){if(n=null,t===!0){var u=window.performance.now()-r;u0&&f.map(function(n){return u[n]}).every(Boolean)))throw new Error("Can not register Player component after player has been created.");return t.components_[n]=i,t.components_[ys(n)]=i,i},t.getComponent=function(n){if(n&&t.components_)return t.components_[n]},t}();for(t.prototype.supportsRaf_=typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function",t.registerComponent("Component",t),f=lst,i=ast,lt.prototype.code=0,lt.prototype.message="",lt.prototype.status=null,lt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],lt.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."},kr=0;kr=0;i--)if(t[i].enabled){ha(t,t[i]);break}return r=n.call(this,t)||this,r.changing_=!1,r}i(t,n);var r=t.prototype;return r.addTrack=function(t){var i=this;(t.enabled&&ha(this,t),n.prototype.addTrack.call(this,t),t.addEventListener)&&(t.enabledChange_=function(){i.changing_||(i.changing_=!0,ha(i,t),i.changing_=!1,i.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},r.removeTrack=function(t){n.prototype.removeTrack.call(this,t);t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(gr),ca=function(n,t){for(var i=0;i=0;i--)if(t[i].selected){ca(t,t[i]);break}return r=n.call(this,t)||this,r.changing_=!1,Object.defineProperty(f(r),"selectedIndex",{get:function(){for(var n=0;n=400&&r.statusCode<=599){if(f=u,t)if(ti.TextDecoder){e=oht(r.headers&&r.headers["content-type"]);try{f=new TextDecoder(e).decode(u)}catch(o){}}else f=String.fromCharCode.apply(null,new Uint8Array(u));n({cause:f});return}n(null,u)}};ad=ld;li.httpHandler=ad;var sht=function(n){var t={};return n?(n.trim().split("\n").forEach(function(n){var u=n.indexOf(":"),i=n.slice(0,u).trim().toLowerCase(),r=n.slice(u+1).trim();typeof t[i]=="undefined"?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]}),t):t},ya=li,hht=li;li.XMLHttpRequest=ti.XMLHttpRequest||vht;li.XDomainRequest="withCredentials"in new li.XMLHttpRequest?li.XMLHttpRequest:ti.XDomainRequest;cht(["get","put","post","patch","head","delete"],function(n){li[n==="delete"?"del":n]=function(t,i,r){return i=vd(t,i,r),i.method=n.toUpperCase(),yd(i)}});ya["default"]=hht;var pd=function(n,t){var i=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()),r=[];i.oncue=function(n){t.addCue(n)};i.onparsingerror=function(n){r.push(n)};i.onflush=function(){t.trigger({type:"loadeddata",target:t})};i.parse(n);r.length>0&&(window.console&&window.console.groupCollapsed&&window.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(n){return o.error(n)}),window.console&&window.console.groupEnd&&window.console.groupEnd());i.flush()},wd=function(n,t){var i={uri:n},u=ws(n),r;u&&(i.cors=u);r=t.tech_.crossOrigin()==="use-credentials";r&&(i.withCredentials=r);ya(i,c(this,function(n,i,r){if(n)return o.error(n,i);t.loaded_=!0;typeof WebVTT!="function"?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(n){if(n.type==="vttjserror"){o.error("vttjs failed to load, stopping trying to process "+t.src);return}return pd(r,t)}):pd(r,t)}))},ye=function(n){function t(t){var i;if(t===void 0&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=l(t,{kind:tht[t.kind]||"subtitles",language:t.language||t.srclang||""}),u=hd[r.mode]||"disabled",h=r["default"];(r.kind==="metadata"||r.kind==="chapters")&&(u="hidden");i=n.call(this,r)||this;i.tech_=r.tech;i.cues_=[];i.activeCues_=[];i.preload_=i.tech_.preloadTextTracks!==!1;var a=new sd(i.cues_),s=new sd(i.activeCues_),e=!1,o=c(f(i),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,e&&(this.trigger("cuechange"),e=!1))}),v=function(){i.tech_.off("timeupdate",o)};i.tech_.one("dispose",v);if(u!=="disabled")i.tech_.on("timeupdate",o);return Object.defineProperties(f(i),{"default":{get:function(){return h},set:function(){}},mode:{get:function(){return u},set:function(n){if(hd[n]&&u!==n){if(u=n,this.preload_||u==="disabled"||this.cues.length!==0||wd(this.src,this),this.tech_.off("timeupdate",o),u!=="disabled")this.tech_.on("timeupdate",o);this.trigger("modechange")}}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){var i,t,r,f,n,u;if(!this.loaded_)return null;if(this.cues.length===0)return s;for(i=this.tech_.currentTime(),t=[],r=0,f=this.cues.length;r=i?t.push(n):n.startTime===n.endTime&&n.startTime<=i&&n.startTime+.5>=i&&t.push(n);if(e=!1,t.length!==this.activeCues_.length)e=!0;else for(u=0;u=0&&t<=100)?(this.set(n,t),!0):!1}};var ka=wa.createElement&&wa.createElement("textarea"),pht={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},tg={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},wht={v:"title",lang:"lang"},ig={rt:"ruby"};da=[[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]];ks.prototype.applyStyles=function(n,t){t=t||this.div;for(var i in n)n.hasOwnProperty(i)&&(t.style[i]=n[i])};ks.prototype.formatStyle=function(n,t){return n===0?0:n+t};ds.prototype=bs(ks.prototype);ds.prototype.constructor=ds;at.prototype.move=function(n,t){t=t!==undefined?t:this.lineHeight;switch(n){case"+x":this.left+=t;this.right+=t;break;case"-x":this.left-=t;this.right-=t;break;case"+y":this.top+=t;this.bottom+=t;break;case"-y":this.top-=t;this.bottom-=t}};at.prototype.overlaps=function(n){return this.leftn.left&&this.topn.top};at.prototype.overlapsAny=function(n){for(var t=0;t=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right};at.prototype.overlapsOppositeAxis=function(n,t){switch(t){case"+x":return this.leftn.right;case"+y":return this.topn.bottom}};at.prototype.intersectPercentage=function(n){var t=Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left)),i=Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top)),r=t*i;return r/(this.height*this.width)};at.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}};at.getSimpleBoxPosition=function(n){var t=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,r=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,i=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;return n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n,{left:n.left,right:n.right,top:n.top||i,height:n.height||t,bottom:n.bottom||i+(n.height||t),width:n.width||r}};ku.StringDecoder=function(){return{decode:function(n){if(!n)return"";if(typeof n!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}};ku.convertCueToDOMTree=function(n,t){return!n||!t?null:rg(n,t)};var nct=.05,tct="sans-serif",ict="1.5%";ku.processCues=function(n,t,i){function o(n){for(var t=0;t")===-1){t.cue.id=i;continue}case"CUE":try{yht(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":if(o=i.indexOf("-->")!==-1,!i||o&&(r=!0)){t.oncue&&t.oncue(t.cue);t.cue=null;t.state="ID";continue}t.cue.text&&(t.cue.text+="\n");t.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(t.state="ID");continue}}}catch(e){if(t.reportOrThrowError(e),t.state==="CUETEXT"&&t.cue&&t.oncue)t.oncue(t.cue);t.cue=null;t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||n.state==="HEADER")&&(n.buffer+="\n\n",n.parse()),n.state==="INITIAL")throw new dt(dt.Errors.BadSignature);}catch(t){n.reportOrThrowError(t)}return n.onflush&&n.onflush(),this}};var rct=ku,uct="auto",fct={"":1,lr:1,rl:1},ect={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};ug.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};fg=ug;eg={"":!0,up:!0};og=hct;du=vr(function(n){var t=n.exports={WebVTT:rct,VTTCue:fg,VTTRegion:og};ti.vttjs=t;ti.WebVTT=t.WebVTT;var i=t.VTTCue,r=t.VTTRegion,u=ti.VTTCue,f=ti.VTTRegion;t.shim=function(){ti.VTTCue=i;ti.VTTRegion=r};t.restore=function(){ti.VTTCue=u;ti.VTTRegion=f};ti.VTTCue||t.shim()});du.WebVTT;du.VTTCue;du.VTTRegion;h=function(n){function r(t,i){var r;t===void 0&&(t={});i===void 0&&(i=function(){});t.reportTouchActivity=!1;r=n.call(this,null,t,i)||this;r.onDurationChange_=function(n){return r.onDurationChange(n)};r.trackProgress_=function(n){return r.trackProgress(n)};r.trackCurrentTime_=function(n){return r.trackCurrentTime(n)};r.stopTrackingCurrentTime_=function(n){return r.stopTrackingCurrentTime(n)};r.disposeSourceHandler_=function(n){return r.disposeSourceHandler(n)};r.hasStarted_=!1;r.on("playing",function(){this.hasStarted_=!0});r.on("loadstart",function(){this.hasStarted_=!1});return ut.names.forEach(function(n){var i=ut[n];t&&t[i.getterName]&&(r[i.privateName]=t[i.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(n){t["native"+n+"Tracks"]===!1&&(r["featuresNative"+n+"Tracks"]=!1)}),t.nativeCaptions===!1||t.nativeTextTracks===!1?r.featuresNativeTextTracks=!1:(t.nativeCaptions===!0||t.nativeTextTracks===!0)&&(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=t.preloadTextTracks!==!1,r.autoRemoteTextTracks_=new ut.text.ListClass,r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}i(r,n);var t=r.prototype;return t.triggerSourceset=function(n){var t=this;if(!this.isReady_)this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(n)},1)});this.trigger({src:n,type:"sourceset"})},t.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_);this.manualProgress=!0;this.one("ready",this.trackProgress_)},t.manualProgressOff=function(){this.manualProgress=!1;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange_)},t.trackProgress=function(){this.stopTrackingProgress();this.progressInterval=this.setInterval(c(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress");this.bufferedPercent_=n;n===1&&this.stopTrackingProgress()}),500)},t.onDurationChange=function(){this.duration_=this.duration()},t.buffered=function(){return br(0,0)},t.bufferedPercent=function(){return rd(this.buffered(),this.duration_)},t.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0;this.on("play",this.trackCurrentTime_);this.on("pause",this.stopTrackingCurrentTime_)},t.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime_);this.off("pause",this.stopTrackingCurrentTime_)},t.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime();this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.dispose=function(){this.clearTracks(kt.names);this.manualProgress&&this.manualProgressOff();this.manualTimeUpdates&&this.manualTimeUpdatesOff();n.prototype.dispose.call(this)},t.clearTracks=function(n){var t=this;n=[].concat(n);n.forEach(function(n){for(var i=t[n+"Tracks"]()||[],u=i.length,r;u--;)r=i[u],n==="text"&&t.removeRemoteTextTrack(r),i.removeTrack(r)})},t.cleanupAutoTextTracks=function(){for(var n=this.autoRemoteTextTracks_||[],t=n.length,i;t--;)i=n[t],this.removeRemoteTextTrack(i)},t.reset=function(){},t.crossOrigin=function(){},t.setCrossOrigin=function(){},t.error=function(n){return n!==undefined&&(this.error_=new lt(n),this.trigger("error")),this.error_},t.played=function(){return this.hasStarted_?br(0,0):br()},t.play=function(){},t.setScrubbing=function(){},t.scrubbing=function(){},t.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.initTrackListeners=function(){var n=this;kt.names.forEach(function(t){var u=kt[t],i=function(){n.trigger(t+"trackchange")},r=n[u.getterName]();r.addEventListener("removetrack",i);r.addEventListener("addtrack",i);n.on("dispose",function(){r.removeEventListener("removetrack",i);r.removeEventListener("addtrack",i)})})},t.addWebVttScript_=function(){var t=this,n;if(!window.WebVTT)if(document.body.contains(this.el())){if(!this.options_["vtt.js"]&&fe(du)&&Object.keys(du).length>0){this.trigger("vttjsloaded");return}n=document.createElement("script");n.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js";n.onload=function(){t.trigger("vttjsloaded")};n.onerror=function(){t.trigger("vttjserror")};this.on("dispose",function(){n.onload=null;n.onerror=null});window.WebVTT=!0;this.el().parentNode.appendChild(n)}else this.ready(this.addWebVttScript_)},t.emulateTextTracks=function(){var e=this,n=this.textTracks(),r=this.remoteTextTracks(),u=function(t){return n.addTrack(t.track)},f=function(t){return n.removeTrack(t.track)},i,t;r.on("addtrack",u);r.on("removetrack",f);this.addWebVttScript_();i=function(){return e.trigger("texttrackchange")};t=function(){var t,r;for(i(),t=0;t0;!this.player_.tech(!0)||(se||oe)&&n||this.player_.tech(!0).focus();this.player_.paused()?ci(this.player_.play()):this.player_.pause()}},r}(de);t.registerComponent("PosterImage",vg);var ii="#222",yg="#ccc",ilt={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'};pg=function(n){function r(t,i,r){var u,e;u=n.call(this,t,i,r)||this;e=function(n){return u.updateDisplay(n)};t.on("loadstart",function(n){return u.toggleDisplay(n)});t.on("texttrackchange",e);t.on("loadedmetadata",function(n){return u.preselectTrack(n)});return t.ready(c(f(u),function(){var i,n;if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",e);t.on("playerresize",e);window.addEventListener("orientationchange",e);t.on("dispose",function(){return window.removeEventListener("orientationchange",e)});for(i=this.options_.playerOptions.tracks||[],n=0;n0;ci(t);!this.player_.tech(!0)||(se||oe)&&f||this.player_.tech(!0).focus();return}if(i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle"),!r){this.player_.tech(!0).focus();return}u=function(){return r.focus()};ve(t)?t.then(u,function(){}):this.setTimeout(u,1)},t.handleKeyDown=function(t){this.mouseused_=!1;n.prototype.handleKeyDown.call(this,t)},t.handleMouseDown=function(){this.mouseused_=!0},r}(ri);uv.prototype.controlText_="Play Video";t.registerComponent("BigPlayButton",uv);bg=function(n){function t(t,i){var r;return r=n.call(this,t,i)||this,r.controlText(i&&i.controlText||r.localize("Close")),r}i(t,n);var r=t.prototype;return r.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},r.handleClick=function(){this.trigger({type:"close",bubbles:!1})},r.handleKeyDown=function(t){e.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):n.prototype.handleKeyDown.call(this,t)},t}(ri);t.registerComponent("CloseButton",bg);fv=function(n){function r(t,i){var r;i===void 0&&(i={});r=n.call(this,t,i)||this;i.replay=i.replay===undefined||i.replay;r.on(t,"play",function(n){return r.handlePlay(n)});r.on(t,"pause",function(n){return r.handlePause(n)});if(i.replay)r.on(t,"ended",function(n){return r.handleEnded(n)});return r}i(r,n);var t=r.prototype;return t.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(){this.player_.paused()?ci(this.player_.play()):this.player_.pause()},t.handleSeeked=function(n){this.removeClass("vjs-ended");this.player_.paused()?this.handlePause(n):this.handlePlay(n)},t.handlePlay=function(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")},t.handlePause=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")},t.handleEnded=function(){var n=this;this.removeClass("vjs-playing");this.addClass("vjs-ended");this.controlText("Replay");this.one(this.player_,"seeked",function(t){return n.handleSeeked(t)})},r}(ri);fv.prototype.controlText_="Play";t.registerComponent("PlayToggle",fv);ev=function(n,t){n=n<0?0:n;var i=Math.floor(n%60),r=Math.floor(n/60%60),u=Math.floor(n/3600),f=Math.floor(t/60%60),e=Math.floor(t/3600);return(isNaN(n)||n===Infinity)&&(u=r=i="-"),u=u>0||e>0?u+":":"",r=((u||f>=10)&&r<10?"0"+r:r)+":",i=i<10?"0"+i:i,u+r+i};th=ev;ru=function(n){function r(t,i){var r=n.call(this,t,i)||this;r.on(t,["timeupdate","ended"],function(n){return r.updateContent(n)});return r.updateTextNode_(),r}i(r,n);var t=r.prototype;return t.createEl=function(){var i=this.buildCSSClass(),t=n.prototype.createEl.call(this,"div",{className:i+" vjs-time-control vjs-control"}),r=s("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return t.appendChild(r),this.contentEl_=s("span",{className:i+"-display"},{"aria-live":"off",role:"presentation"}),t.appendChild(this.contentEl_),t},t.dispose=function(){this.contentEl_=null;this.textNode_=null;n.prototype.dispose.call(this)},t.updateTextNode_=function(n){var t=this;(n===void 0&&(n=0),n=gu(n),this.formattedTime_!==n)&&(this.formattedTime_=n,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(t.contentEl_){var n=t.textNode_;(n&&t.contentEl_.firstChild!==n&&(n=null,o.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=document.createTextNode(t.formattedTime_),t.textNode_)&&(n?t.contentEl_.replaceChild(t.textNode_,n):t.contentEl_.appendChild(t.textNode_))}}))},t.updateContent=function(){},r}(t);ru.prototype.labelText_="Time";ru.prototype.controlText_="Time";t.registerComponent("TimeDisplay",ru);ih=function(n){function t(){return n.apply(this,arguments)||this}i(t,n);var r=t.prototype;return r.buildCSSClass=function(){return"vjs-current-time"},r.updateContent=function(){var n;n=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateTextNode_(n)},t}(ru);ih.prototype.labelText_="Current Time";ih.prototype.controlText_="Current Time";t.registerComponent("CurrentTimeDisplay",ih);rh=function(n){function t(t,i){var r,u;r=n.call(this,t,i)||this;u=function(n){return r.updateContent(n)};r.on(t,"durationchange",u);r.on(t,"loadstart",u);r.on(t,"loadedmetadata",u);return r}i(t,n);var r=t.prototype;return r.buildCSSClass=function(){return"vjs-duration"},r.updateContent=function(){var n=this.player_.duration();this.updateTextNode_(n)},t}(ru);rh.prototype.labelText_="Duration";rh.prototype.controlText_="Duration";t.registerComponent("DurationDisplay",rh);kg=function(n){function t(){return n.apply(this,arguments)||this}i(t,n);var r=t.prototype;return r.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),i=n.prototype.createEl.call(this,"div"),r=n.prototype.createEl.call(this,"span",{textContent:"/"});return i.appendChild(r),t.appendChild(i),t},t}(t);t.registerComponent("TimeDivider",kg);uh=function(n){function t(t,i){var r=n.call(this,t,i)||this;r.on(t,"durationchange",function(n){return r.updateContent(n)});return r}i(t,n);var r=t.prototype;return r.buildCSSClass=function(){return"vjs-remaining-time"},r.createEl=function(){var t=n.prototype.createEl.call(this);return t.insertBefore(s("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},r.updateContent=function(){if(typeof this.player_.duration()=="number"){var n;n=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime();this.updateTextNode_(n)}},t}(ru);uh.prototype.labelText_="Remaining Time";uh.prototype.controlText_="Remaining Time";t.registerComponent("RemainingTimeDisplay",uh);dg=function(n){function t(t,i){var r;r=n.call(this,t,i)||this;r.updateShowing();r.on(r.player(),"durationchange",function(n){return r.updateShowing(n)});return r}i(t,n);var r=t.prototype;return r.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=s("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(s("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(document.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},r.dispose=function(){this.contentEl_=null;n.prototype.dispose.call(this)},r.updateShowing=function(){this.player().duration()===Infinity?this.show():this.hide()},t}(t);t.registerComponent("LiveDisplay",dg);ov=function(n){function r(t,i){var r;if(r=n.call(this,t,i)||this,r.updateLiveEdgeStatus(),r.player_.liveTracker){r.updateLiveEdgeStatusHandler_=function(n){return r.updateLiveEdgeStatus(n)};r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatusHandler_)}return r}i(r,n);var t=r.prototype;return t.createEl=function(){var t=n.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=s("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},t.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},t.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},t.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_);this.textEl_=null;n.prototype.dispose.call(this)},r}(ri);ov.prototype.controlText_="Seek to live, currently playing live";t.registerComponent("SeekToLive",ov);ge=function(n,t,i){return n=Number(n),Math.min(i,Math.max(t,isNaN(n)?t:n))};fh=function(n){function r(t,i){var r;return r=n.call(this,t,i)||this,r.handleMouseDown_=function(n){return r.handleMouseDown(n)},r.handleMouseUp_=function(n){return r.handleMouseUp(n)},r.handleKeyDown_=function(n){return r.handleKeyDown(n)},r.handleClick_=function(n){return r.handleClick(n)},r.handleMouseMove_=function(n){return r.handleMouseMove(n)},r.update_=function(n){return r.update(n)},r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}i(r,n);var t=r.prototype;return t.enabled=function(){return this.enabled_},t.enable=function(){if(!this.enabled()){this.on("mousedown",this.handleMouseDown_);this.on("touchstart",this.handleMouseDown_);this.on("keydown",this.handleKeyDown_);this.on("click",this.handleClick_);this.on(this.player_,"controlsvisible",this.update);if(this.playerEvent)this.on(this.player_,this.playerEvent,this.update);this.removeClass("disabled");this.setAttribute("tabindex",0);this.enabled_=!0}},t.disable=function(){if(this.enabled()){var n=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_);this.off("touchstart",this.handleMouseDown_);this.off("keydown",this.handleKeyDown_);this.off("click",this.handleClick_);this.off(this.player_,"controlsvisible",this.update_);this.off(n,"mousemove",this.handleMouseMove_);this.off(n,"mouseup",this.handleMouseUp_);this.off(n,"touchmove",this.handleMouseMove_);this.off(n,"touchend",this.handleMouseUp_);this.removeAttribute("tabindex");this.addClass("disabled");this.playerEvent&&this.off(this.player_,this.playerEvent,this.update);this.enabled_=!1}},t.createEl=function(t,i,r){return i===void 0&&(i={}),r===void 0&&(r={}),i.className=i.className+" vjs-slider",i=v({tabIndex:0},i),r=v({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),n.prototype.createEl.call(this,t,i,r)},t.handleMouseDown=function(n){var t=this.bar.el_.ownerDocument;n.type==="mousedown"&&n.preventDefault();n.type!=="touchstart"||gi||n.preventDefault();uk();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(t,"mousemove",this.handleMouseMove_);this.on(t,"mouseup",this.handleMouseUp_);this.on(t,"touchmove",this.handleMouseMove_);this.on(t,"touchend",this.handleMouseUp_);this.handleMouseMove(n,!0)},t.handleMouseMove=function(){},t.handleMouseUp=function(){var n=this.bar.el_.ownerDocument;fk();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(n,"mousemove",this.handleMouseMove_);this.off(n,"mouseup",this.handleMouseUp_);this.off(n,"touchmove",this.handleMouseMove_);this.off(n,"touchend",this.handleMouseUp_);this.update()},t.update=function(){var t=this,n;if(this.el_&&this.bar)return(n=this.getProgress(),n===this.progress_)?n:(this.progress_=n,this.requestNamedAnimationFrame("Slider#update",function(){var i=t.vertical()?"height":"width";t.bar.el().style[i]=(n*100).toFixed(2)+"%"}),n)},t.getProgress=function(){return Number(ge(this.getPercent(),0,1).toFixed(4))},t.calculateDistance=function(n){var t=ss(this.el_,n);return this.vertical()?t.y:t.x},t.handleKeyDown=function(t){e.isEventKey(t,"Left")||e.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):e.isEventKey(t,"Right")||e.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):n.prototype.handleKeyDown.call(this,t)},t.handleClick=function(n){n.stopPropagation();n.preventDefault()},t.vertical=function(n){if(n===undefined)return this.vertical_||!1;this.vertical_=!!n;this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},r}(t);t.registerComponent("Slider",fh);eh=function(n,t){return ge(n/t*100,0,100).toFixed(2)+"%"};gg=function(n){function t(t,i){var r;r=n.call(this,t,i)||this;r.partEls_=[];r.on(t,"progress",function(n){return r.update(n)});return r}i(t,n);var r=t.prototype;return r.createEl=function(){var i=n.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),t=s("span",{className:"vjs-control-text"}),r=s("span",{textContent:this.localize("Loaded")}),u=document.createTextNode(": ");return this.percentageEl_=s("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),i.appendChild(t),t.appendChild(r),t.appendChild(u),t.appendChild(this.percentageEl_),i},r.dispose=function(){this.partEls_=null;this.percentageEl_=null;n.prototype.dispose.call(this)},r.update=function(){var n=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var h=n.player_.liveTracker,r=n.player_.buffered(),a=h&&h.isLive()?h.seekableEnd():n.player_.duration(),c=n.player_.bufferedEnd(),u=n.partEls_,f=eh(c,a),i,o;for(n.percent_!==f&&(n.el_.style.width=f,yr(n.percentageEl_,f),n.percent_=f),i=0;ir.length;o--)n.el_.removeChild(u[o-1]);u.length=r.length})},t}(t);t.registerComponent("LoadProgressBar",gg);nn=function(n){function r(t,i){var r;return r=n.call(this,t,i)||this,r.update=ir(c(f(r),r.update),ui),r}i(r,n);var t=r.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},t.update=function(n,t,i){var u=ce(this.el_),f=pu(this.player_.el()),e=n.width*t;if(f&&u){var o=n.left-f.left+e,s=n.width-e+(f.right-n.right),r=u.width/2;ou.width&&(r=u.width);r=Math.round(r);this.el_.style.right="-"+r+"px";this.write(i)}},t.write=function(n){yr(this.el_,n)},t.updateTime=function(n,t,i,r){var u=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var e,s=u.player_.duration(),f,o;u.player_.liveTracker&&u.player_.liveTracker.isLive()?(f=u.player_.liveTracker.liveWindow(),o=f-t*f,e=(o<1?"":"-")+gu(o,f)):e=gu(i,s);u.update(n,t,e);r&&r()})},r}(t);t.registerComponent("TimeTooltip",nn);oh=function(n){function t(t,i){var r;return r=n.call(this,t,i)||this,r.update=ir(c(f(r),r.update),ui),r}i(t,n);var r=t.prototype;return r.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},r.update=function(n,t){var i=this.getChild("timeTooltip"),r;i&&(r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),i.updateTime(n,t,r))},t}(t);oh.prototype.options_={children:[]};ct||di||oh.prototype.options_.children.push("timeTooltip");t.registerComponent("PlayProgressBar",oh);sv=function(n){function t(t,i){var r;return r=n.call(this,t,i)||this,r.update=ir(c(f(r),r.update),ui),r}i(t,n);var r=t.prototype;return r.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},r.update=function(n,t){var i=this,r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(n,t,r,function(){i.el_.style.left=n.width*t+"px"})},t}(t);sv.prototype.options_={children:["timeTooltip"]};t.registerComponent("MouseTimeDisplay",sv);var sh=5,tn=12,hv=function(n){function r(t,i){var r;return r=n.call(this,t,i)||this,r.setEventHandlers_(),r}i(r,n);var t=r.prototype;return t.setEventHandlers_=function(){var n=this;this.update_=c(this,this.update);this.update=ir(this.update_,ui);this.on(this.player_,["ended","durationchange","timeupdate"],this.update);if(this.player_.liveTracker)this.on(this.player_.liveTracker,"liveedgechange",this.update);this.updateInterval=null;this.enableIntervalHandler_=function(t){return n.enableInterval_(t)};this.disableIntervalHandler_=function(t){return n.disableInterval_(t)};this.on(this.player_,["playing"],this.enableIntervalHandler_);this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_);if("hidden"in document&&"visibilityState"in document)this.on(document,"visibilitychange",this.toggleVisibility_)},t.toggleVisibility_=function(n){document.visibilityState==="hidden"?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(n)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},t.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,ui))},t.disableInterval_=function(n){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&n&&n.type!=="ended"||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.update=function(){var t=this,i;if(document.visibilityState!=="hidden")return i=n.prototype.update.call(this),this.requestNamedAnimationFrame("SeekBar#update",function(){var r=t.player_.ended()?t.player_.duration():t.getCurrentTime_(),u=t.player_.liveTracker,n=t.player_.duration();u&&u.isLive()&&(n=t.player_.liveTracker.liveCurrentTime());t.percent_!==i&&(t.el_.setAttribute("aria-valuenow",(i*100).toFixed(2)),t.percent_=i);(t.currentTime_!==r||t.duration_!==n)&&(t.el_.setAttribute("aria-valuetext",t.localize("progress bar timing: currentTime={1} duration={2}",[gu(r,n),gu(n,n)],"{1} of {2}")),t.currentTime_=r,t.duration_=n);t.bar&&t.bar.update(pu(t.el()),t.getProgress())}),i},t.userSeek_=function(n){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser();this.player_.currentTime(n)},t.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.getPercent=function(){var i=this.getCurrentTime_(),t,n=this.player_.liveTracker;return n&&n.isLive()?(t=(i-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=i/this.player_.duration(),t},t.handleMouseDown=function(t){le(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),n.prototype.handleMouseDown.call(this,t))},t.handleMouseMove=function(n,t){var i,u,r,f,e;if(t===void 0&&(t=!1),le(n)){if(t||this.player_.scrubbing()||this.player_.scrubbing(!0),u=this.calculateDistance(n),r=this.player_.liveTracker,r&&r.isLive()){if(u>=.99){r.seekToLiveEdge();return}if(f=r.seekableStart(),e=r.liveCurrentTime(),i=f+u*r.liveWindow(),i>=e&&(i=e),i<=f&&(i=f+.1),i===Infinity)return}else i=u*this.player_.duration(),i===this.player_.duration()&&(i=i-.1);this.userSeek_(i)}},t.enable=function(){n.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.disable=function(){n.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.handleMouseUp=function(t){n.prototype.handleMouseUp.call(this,t);t&&t.stopPropagation();this.player_.scrubbing(!1);this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0});this.videoWasPlaying?ci(this.player_.play()):this.update_()},t.stepForward=function(){this.userSeek_(this.player_.currentTime()+sh)},t.stepBack=function(){this.userSeek_(this.player_.currentTime()-sh)},t.handleAction=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t.handleKeyDown=function(t){var i=this.player_.liveTracker,r;e.isEventKey(t,"Space")||e.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.handleAction(t)):e.isEventKey(t,"Home")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(0)):e.isEventKey(t,"End")?(t.preventDefault(),t.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration())):/^[0-9]$/.test(e(t))?(t.preventDefault(),t.stopPropagation(),r=(e.codes[e(t)]-e.codes["0"])/10,i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*r):this.userSeek_(this.player_.duration()*r)):e.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-sh*tn)):e.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+sh*tn)):n.prototype.handleKeyDown.call(this,t)},t.dispose=function(){this.disableInterval_();this.off(this.player_,["ended","durationchange","timeupdate"],this.update);this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update);this.off(this.player_,["playing"],this.enableIntervalHandler_);this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_);"hidden"in document&&"visibilityState"in document&&this.off(document,"visibilitychange",this.toggleVisibility_);n.prototype.dispose.call(this)},r}(fh);hv.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};ct||di||hv.prototype.options_.children.splice(1,0,"mouseTimeDisplay");t.registerComponent("SeekBar",hv);cv=function(n){function r(t,i){var r;return r=n.call(this,t,i)||this,r.handleMouseMove=ir(c(f(r),r.handleMouseMove),ui),r.throttledHandleMouseSeek=ir(c(f(r),r.handleMouseSeek),ui),r.handleMouseUpHandler_=function(n){return r.handleMouseUp(n)},r.handleMouseDownHandler_=function(n){return r.handleMouseDown(n)},r.enable(),r}i(r,n);var t=r.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.handleMouseMove=function(n){var t=this.getChild("seekBar"),i,r;if(t&&(i=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay"),i||r)){var f=t.el(),e=ce(f),u=ss(f,n).x;u=ge(u,0,1);r&&r.update(e,u);i&&i.update(e,t.getProgress())}},t.handleMouseSeek=function(n){var t=this.getChild("seekBar");t&&t.handleMouseMove(n)},t.enabled=function(){return this.enabled_},t.disable=function(){if((this.children().forEach(function(n){return n.disable&&n.disable()}),this.enabled())&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var n=this.getChild("seekBar");this.player_.scrubbing(!1);n.videoWasPlaying&&ci(this.player_.play())}},t.enable=function(){if(this.children().forEach(function(n){return n.enable&&n.enable()}),!this.enabled()){this.on(["mousedown","touchstart"],this.handleMouseDownHandler_);this.on(this.el_,"mousemove",this.handleMouseMove);this.removeClass("disabled");this.enabled_=!0}},t.removeListenersAddedOnMousedownAndTouchstart=function(){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseSeek);this.off(n,"touchmove",this.throttledHandleMouseSeek);this.off(n,"mouseup",this.handleMouseUpHandler_);this.off(n,"touchend",this.handleMouseUpHandler_)},t.handleMouseDown=function(n){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(n);this.on(t,"mousemove",this.throttledHandleMouseSeek);this.on(t,"touchmove",this.throttledHandleMouseSeek);this.on(t,"mouseup",this.handleMouseUpHandler_);this.on(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseUp=function(n){var t=this.getChild("seekBar");t&&t.handleMouseUp(n);this.removeListenersAddedOnMousedownAndTouchstart()},r}(t);cv.prototype.options_={children:["seekBar"]};t.registerComponent("ProgressControl",cv);lv=function(n){function r(t,i){var r=n.call(this,t,i)||this;r.on(t,["enterpictureinpicture","leavepictureinpicture"],function(n){return r.handlePictureInPictureChange(n)});r.on(t,["disablepictureinpicturechanged","loadedmetadata"],function(n){return r.handlePictureInPictureEnabledChange(n)});return r.disable(),r}i(r,n);var t=r.prototype;return t.buildCSSClass=function(){return"vjs-picture-in-picture-control "+n.prototype.buildCSSClass.call(this)},t.handlePictureInPictureEnabledChange=function(){document.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1?this.enable():this.disable()},t.handlePictureInPictureChange=function(){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture");this.handlePictureInPictureEnabledChange()},t.handleClick=function(){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},r}(ri);lv.prototype.controlText_="Picture-in-Picture";t.registerComponent("PictureInPictureToggle",lv);av=function(n){function t(t,i){var r=n.call(this,t,i)||this;r.on(t,"fullscreenchange",function(n){return r.handleFullscreenChange(n)});return document[t.fsApi_.fullscreenEnabled]===!1&&r.disable(),r}i(t,n);var r=t.prototype;return r.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},r.handleFullscreenChange=function(){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},r.handleClick=function(){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(ri);av.prototype.controlText_="Fullscreen";t.registerComponent("FullscreenToggle",av);rn=function(n,t){t.tech_&&!t.tech_.featuresVolumeControl&&n.addClass("vjs-hidden");n.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?n.removeClass("vjs-hidden"):n.addClass("vjs-hidden")})};un=function(n){function t(){return n.apply(this,arguments)||this}i(t,n);var r=t.prototype;return r.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(n.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(t);t.registerComponent("VolumeLevel",un);fn=function(n){function r(t,i){var r;return r=n.call(this,t,i)||this,r.update=ir(c(f(r),r.update),ui),r}i(r,n);var t=r.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},t.update=function(n,t,i,r){if(!i){var f=pu(this.el_),e=pu(this.player_.el()),o=n.width*t;if(!e||!f)return;var s=n.left-e.left+o,h=n.width-o+(e.right-n.right),u=f.width/2;sf.width&&(u=f.width);this.el_.style.right="-"+u+"px"}this.write(r+"%")},t.write=function(n){yr(this.el_,n)},t.updateVolume=function(n,t,i,r,u){var f=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){f.update(n,t,i,r.toFixed(0));u&&u()})},r}(t);t.registerComponent("VolumeLevelTooltip",fn);vv=function(n){function t(t,i){var r;return r=n.call(this,t,i)||this,r.update=ir(c(f(r),r.update),ui),r}i(t,n);var r=t.prototype;return r.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},r.update=function(n,t,i){var r=this,u=100*t;this.getChild("volumeLevelTooltip").updateVolume(n,t,i,u,function(){i?r.el_.style.bottom=n.height*t+"px":r.el_.style.left=n.width*t+"px"})},t}(t);vv.prototype.options_={children:["volumeLevelTooltip"]};t.registerComponent("MouseVolumeLevelDisplay",vv);no=function(n){function r(t,i){var r=n.call(this,t,i)||this;r.on("slideractive",function(n){return r.updateLastVolume_(n)});r.on(t,"volumechange",function(n){return r.updateARIAAttributes(n)});return t.ready(function(){return r.updateARIAAttributes()}),r}i(r,n);var t=r.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.handleMouseDown=function(t){le(t)&&n.prototype.handleMouseDown.call(this,t)},t.handleMouseMove=function(n){var i=this.getChild("mouseVolumeLevelDisplay");if(i){var r=this.el(),f=pu(r),u=this.vertical(),t=ss(r,n);t=u?t.y:t.x;t=ge(t,0,1);i.update(f,t,u)}le(n)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(n)))},t.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.stepForward=function(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)},t.stepBack=function(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)},t.updateARIAAttributes=function(){var n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n);this.el_.setAttribute("aria-valuetext",n+"%")},t.volumeAsPercentage_=function(){return Math.round(this.player_.volume()*100)},t.updateLastVolume_=function(){var n=this,t=this.player_.volume();this.one("sliderinactive",function(){n.player_.volume()===0&&n.player_.lastVolume_(t)})},r}(fh);no.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};ct||di||no.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");no.prototype.playerEvent="volumechange";t.registerComponent("VolumeBar",no);yv=function(n){function r(t,i){var r;i===void 0&&(i={});i.vertical=i.vertical||!1;(typeof i.volumeBar=="undefined"||fe(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);r=n.call(this,t,i)||this;rn(f(r),t);r.throttledHandleMouseMove=ir(c(f(r),r.handleMouseMove),ui);r.handleMouseUpHandler_=function(n){return r.handleMouseUp(n)};r.on("mousedown",function(n){return r.handleMouseDown(n)});r.on("touchstart",function(n){return r.handleMouseDown(n)});r.on("mousemove",function(n){return r.handleMouseMove(n)});r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active");r.addClass("vjs-slider-active");r.trigger("slideractive")});r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active");r.removeClass("vjs-slider-active");r.trigger("sliderinactive")});return r}i(r,n);var t=r.prototype;return t.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.handleMouseDown=function(){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove);this.on(n,"touchmove",this.throttledHandleMouseMove);this.on(n,"mouseup",this.handleMouseUpHandler_);this.on(n,"touchend",this.handleMouseUpHandler_)},t.handleMouseUp=function(){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove);this.off(n,"touchmove",this.throttledHandleMouseMove);this.off(n,"mouseup",this.handleMouseUpHandler_);this.off(n,"touchend",this.handleMouseUpHandler_)},t.handleMouseMove=function(n){this.volumeBar.handleMouseMove(n)},r}(t);yv.prototype.options_={children:["volumeBar"]};t.registerComponent("VolumeControl",yv);en=function(n,t){t.tech_&&!t.tech_.featuresMuteControl&&n.addClass("vjs-hidden");n.on(t,"loadstart",function(){t.tech_.featuresMuteControl?n.removeClass("vjs-hidden"):n.addClass("vjs-hidden")})};pv=function(n){function r(t,i){var r;r=n.call(this,t,i)||this;en(f(r),t);r.on(t,["loadstart","volumechange"],function(n){return r.update(n)});return r}i(r,n);var t=r.prototype;return t.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(){var i=this.player_.volume(),n=this.player_.lastVolume_(),t;i===0?(t=n<.1?.1:n,this.player_.volume(t),this.player_.muted(!1)):this.player_.muted(this.player_.muted()?!1:!0)},t.update=function(){this.updateIcon_();this.updateControlText_()},t.updateIcon_=function(){var i=this.player_.volume(),n=3,t;for(ct&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),i===0||this.player_.muted()?n=0:i<.33?n=1:i<.67&&(n=2),t=0;t<4;t++)he(this.el_,"vjs-vol-"+t);nr(this.el_,"vjs-vol-"+n)},t.updateControlText_=function(){var t=this.player_.muted()||this.player_.volume()===0,n=t?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)},r}(ri);pv.prototype.controlText_="Mute";t.registerComponent("MuteToggle",pv);wv=function(n){function r(t,i){var r;i===void 0&&(i={});i.inline=typeof i.inline!="undefined"?i.inline:!0;(typeof i.volumeControl=="undefined"||fe(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);r=n.call(this,t,i)||this;r.handleKeyPressHandler_=function(n){return r.handleKeyPress(n)};r.on(t,["loadstart"],function(n){return r.volumePanelState_(n)});r.on(r.muteToggle,"keyup",function(n){return r.handleKeyPress(n)});r.on(r.volumeControl,"keyup",function(n){return r.handleVolumeControlKeyUp(n)});r.on("keydown",function(n){return r.handleKeyPress(n)});r.on("mouseover",function(n){return r.handleMouseOver(n)});r.on("mouseout",function(n){return r.handleMouseOut(n)});r.on(r.volumeControl,["slideractive"],r.sliderActive_);r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_);return r}i(r,n);var t=r.prototype;return t.sliderActive_=function(){this.addClass("vjs-slider-active")},t.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden");this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t.dispose=function(){this.handleMouseOut();n.prototype.dispose.call(this)},t.handleVolumeControlKeyUp=function(n){e.isEventKey(n,"Esc")&&this.muteToggle.focus()},t.handleMouseOver=function(){this.addClass("vjs-hover");bt(document,"keyup",this.handleKeyPressHandler_)},t.handleMouseOut=function(){this.removeClass("vjs-hover");rt(document,"keyup",this.handleKeyPressHandler_)},t.handleKeyPress=function(n){e.isEventKey(n,"Esc")&&this.handleMouseOut()},r}(t);wv.prototype.options_={children:["muteToggle","volumeControl"]};t.registerComponent("VolumePanel",wv);bv=function(n){function u(t,i){var r;r=n.call(this,t,i)||this;i&&(r.menuButton_=i.menuButton);r.focusedChild_=-1;r.on("keydown",function(n){return r.handleKeyDown(n)});return r.boundHandleBlur_=function(n){return r.handleBlur(n)},r.boundHandleTapClick_=function(n){return r.handleTapClick(n)},r}i(u,n);var r=u.prototype;return r.addEventListenerForItem=function(n){if(n instanceof t){this.on(n,"blur",this.boundHandleBlur_);this.on(n,["tap","click"],this.boundHandleTapClick_)}},r.removeEventListenerForItem=function(n){n instanceof t&&(this.off(n,"blur",this.boundHandleBlur_),this.off(n,["tap","click"],this.boundHandleTapClick_))},r.removeChild=function(t){typeof t=="string"&&(t=this.getChild(t));this.removeEventListenerForItem(t);n.prototype.removeChild.call(this,t)},r.addItem=function(n){var t=this.addChild(n);t&&this.addEventListenerForItem(t)},r.createEl=function(){var i=this.options_.contentElType||"ul",t;return this.contentEl_=s(i,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu"),t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"}),t.appendChild(this.contentEl_),bt(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()}),t},r.dispose=function(){this.contentEl_=null;this.boundHandleBlur_=null;this.boundHandleTapClick_=null;n.prototype.dispose.call(this)},r.handleBlur=function(n){var i=n.relatedTarget||document.activeElement,t;this.children().some(function(n){return n.el()===i})||(t=this.menuButton_,t&&t.buttonPressed_&&i!==t.el().firstChild&&t.unpressButton())},r.handleTapClick=function(n){var t,i;if(this.menuButton_){if(this.menuButton_.unpressButton(),t=this.children(),!Array.isArray(t))return;if(i=t.filter(function(t){return t.el()===n.target})[0],!i)return;i.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}},r.handleKeyDown=function(n){e.isEventKey(n,"Left")||e.isEventKey(n,"Down")?(n.preventDefault(),n.stopPropagation(),this.stepForward()):(e.isEventKey(n,"Right")||e.isEventKey(n,"Up"))&&(n.preventDefault(),n.stopPropagation(),this.stepBack())},r.stepForward=function(){var n=0;this.focusedChild_!==undefined&&(n=this.focusedChild_+1);this.focus(n)},r.stepBack=function(){var n=0;this.focusedChild_!==undefined&&(n=this.focusedChild_-1);this.focus(n)},r.focus=function(n){n===void 0&&(n=0);var t=this.children().slice(),i=t.length&&t[0].hasClass("vjs-menu-title");i&&t.shift();t.length>0&&(n<0?n=0:n>=t.length&&(n=t.length-1),this.focusedChild_=n,t[n].el_.focus())},u}(t);t.registerComponent("Menu",bv);hh=function(n){function u(t,i){var r,f,u;i===void 0&&(i={});r=n.call(this,t,i)||this;r.menuButton_=new ri(t,i);r.menuButton_.controlText(r.controlText_);r.menuButton_.el_.setAttribute("aria-haspopup","true");f=ri.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+f;r.menuButton_.removeClass("vjs-control");r.addChild(r.menuButton_);r.update();r.enabled_=!0;u=function(n){return r.handleClick(n)};r.handleMenuKeyUp_=function(n){return r.handleMenuKeyUp(n)};r.on(r.menuButton_,"tap",u);r.on(r.menuButton_,"click",u);r.on(r.menuButton_,"keydown",function(n){return r.handleKeyDown(n)});r.on(r.menuButton_,"mouseenter",function(){r.addClass("vjs-hover");r.menu.show();bt(document,"keyup",r.handleMenuKeyUp_)});r.on("mouseleave",function(n){return r.handleMouseLeave(n)});r.on("keydown",function(n){return r.handleSubmenuKeyDown(n)});return r}i(u,n);var r=u.prototype;return r.update=function(){var n=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu));this.menu=n;this.addChild(n);this.buttonPressed_=!1;this.menuButton_.el_.setAttribute("aria-expanded","false");this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},r.createMenu=function(){var i=new bv(this.player_,{menuButton:this}),r,u,n;if(this.hideThreshold_=0,this.options_.title&&(r=s("li",{className:"vjs-menu-title",textContent:y(this.options_.title),tabIndex:-1}),u=new t(this.player_,{el:r}),i.addItem(u)),this.items=this.createItems(),this.items)for(n=0;n-1&&i.mode==="showing"){n=!1;break}n!==this.isSelected_&&this.selected(n)},r.handleSelectedLanguageChange=function(){for(var t,i=this.player().textTracks(),r=!0,n=0,u=i.length;n-1&&t.mode==="showing"){r=!1;break}r&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(tf);t.registerComponent("OffTextTrackMenuItem",kv);uu=function(n){function t(t,i){return i===void 0&&(i={}),i.tracks=t.textTracks(),n.call(this,t,i)||this}i(t,n);var r=t.prototype;return r.createItems=function(n,t){var e,u,i,r,f;for(n===void 0&&(n=[]),t===void 0&&(t=tf),this.label_&&(e=this.label_+" off"),n.push(new kv(this.player_,{kinds:this.kinds_,kind:this.kind_,label:e})),this.hideThreshold_+=1,u=this.player_.textTracks(),Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]),i=0;i-1&&(f=new t(this.player_,{track:r,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1}),f.addClass("vjs-"+r.kind+"-menu-item"),n.push(f));return n},t}(ch);t.registerComponent("TextTrackButton",uu);dv=function(n){function t(t,i){var r,e=i.track,u=i.cue,o=t.currentTime();return i.selectable=!0,i.multiSelectable=!1,i.label=u.text,i.selected=u.startTime<=o&&o=0;n--)if(t=i[n],t.kind===this.kind_)return t},t.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(y(this.kind_))},t.createMenu=function(){return this.options_.title=this.getMenuCaption(),n.prototype.createMenu.call(this)},t.createItems=function(){var i=[],n,t,r,u,f;if(!this.track_||(n=this.track_.cues,!n))return i;for(t=0,r=n.length;t-1&&(r.label_="captions"),r.menuButton_.controlText(y(r.label_)),r}i(t,n);var r=t.prototype;return r.buildCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildCSSClass.call(this)},r.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildWrapperCSSClass.call(this)},r.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new yh(this.player_,{kind:this.label_})),this.hideThreshold_+=1),n.prototype.createItems.call(this,t,gv)},t}(uu);wh.prototype.kinds_=["captions","subtitles"];wh.prototype.controlText_="Subtitles";t.registerComponent("SubsCapsButton",wh);ny=function(n){function t(t,i){var r,u=i.track,o=t.audioTracks(),e;i.label=u.label||u.language||"Unknown";i.selected=u.enabled;r=n.call(this,t,i)||this;r.track=u;r.addClass("vjs-"+u.kind+"-menu-item");e=function(){for(var t=arguments.length,i=new Array(t),n=0;n=0;n--)i.push(new bh(this.player(),{rate:t[n]+"x"}));return i},t.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.handleClick=function(){for(var r=this.player().playbackRate(),n=this.playbackRates(),i=n[0],t=0;tr){i=n[t];break}this.player().playbackRate(i)},t.handlePlaybackRateschange=function(){this.update()},t.playbackRates=function(){var n=this.player();return n.playbackRates&&n.playbackRates()||[]},t.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},r}(hh);iy.prototype.controlText_="Playback Rate";t.registerComponent("PlaybackRateMenuButton",iy);ry=function(n){function t(){return n.apply(this,arguments)||this}i(t,n);var r=t.prototype;return r.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},r.createEl=function(t,i,r){return t===void 0&&(t="div"),i===void 0&&(i={}),r===void 0&&(r={}),i.className||(i.className=this.buildCSSClass()),n.prototype.createEl.call(this,t,i,r)},t}(t);t.registerComponent("Spacer",ry);sn=function(n){function t(){return n.apply(this,arguments)||this}i(t,n);var r=t.prototype;return r.buildCSSClass=function(){return"vjs-custom-control-spacer "+n.prototype.buildCSSClass.call(this)},r.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(ry);t.registerComponent("CustomControlSpacer",sn);to=function(n){function t(){return n.apply(this,arguments)||this}i(t,n);var r=t.prototype;return r.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(t);to.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]};"exitPictureInPicture"in document&&to.prototype.options_.children.splice(to.prototype.options_.children.length-1,0,"pictureInPictureToggle");t.registerComponent("ControlBar",to);uy=function(n){function t(t,i){var r=n.call(this,t,i)||this;r.on(t,"error",function(n){return r.open(n)});return r}i(t,n);var r=t.prototype;return r.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},r.content=function(){var n=this.player().error();return n?this.localize(n.message):""},t}(dr);uy.prototype.options_=hi({},dr.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});t.registerComponent("ErrorDisplay",uy);var fy="vjs-text-track-settings",hn=["#000","Black"],cn=["#00F","Blue"],ln=["#0FF","Cyan"],an=["#0F0","Green"],vn=["#F0F","Magenta"],yn=["#F00","Red"],pn=["#FFF","White"],wn=["#FF0","Yellow"],ey=["1","Opaque"],oy=["0.5","Semi-Transparent"],bn=["0","Transparent"],fu={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[hn,pn,yn,an,cn,wn,vn,ln]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[ey,oy,bn]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[pn,hn,yn,an,cn,wn,vn,ln]},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(n){return n==="1.00"?null:Number(n)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[ey,oy]},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:[bn,oy,ey]}};fu.windowColor.options=fu.backgroundColor.options;dn=function(n){function r(t,i){var r;i.temporary=!1;r=n.call(this,t,i)||this;r.updateDisplay=r.updateDisplay.bind(f(r));r.fill();r.hasBeenOpened_=r.hasBeenFilled_=!0;r.endDialog=s("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")});r.el().appendChild(r.endDialog);r.setDefaults();i.persistTextTrackSettings===undefined&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings);r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings();r.close()});r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults();r.updateDisplay()});return cu(fu,function(n){r.on(r.$(n.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}i(r,n);var t=r.prototype;return t.dispose=function(){this.endDialog=null;n.prototype.dispose.call(this)},t.createElSelect_=function(n,t,i){var e=this;t===void 0&&(t="");i===void 0&&(i="label");var r=fu[n],u=r.id.replace("%s",this.id_),f=[t,u].join(" ").trim();return["<"+i+' id="'+u+'" class="'+(i==="label"?"vjs-label":"")+'">',this.localize(r.label),"<\/"+i+">",'