/**
* @license
* Video.js 7.6.5
* Copyright Brightcove, Inc.
* Available under Apache License Version 2.0
*
*
* Includes vtt.js
* Available under Apache License Version 2.0
*
*/(function(k,U){typeof exports=="object"&&typeof module!="undefined"?module.exports=U(require("global/window"),require("global/document")):typeof define=="function"&&define.amd?define(["global/window","global/document"],U):(k=k||self).videojs=U(k.window,k.document)})(this,function(k,U){k=k&&k.hasOwnProperty("default")?k.default:k,U=U&&U.hasOwnProperty("default")?U.default:U;var as="7.6.5",zt=[],vc=function(t,i){return function(n,e,r){var a=i.levels[e],s=new RegExp("^("+a+")$");if(n!=="log"&&r.unshift(n.toUpperCase()+":"),r.unshift(t+":"),zt&&zt.push([].concat(r)),k.console){var o=k.console[n];o||n!=="debug"||(o=k.console.info||k.console.log),o&&a&&s.test(n)&&o[Array.isArray(r)?"apply":"call"](k.console,r)}}},Z=function t(i){function n(){for(var a=arguments.length,s=new Array(a),o=0;o',n=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),U.body.appendChild(e));for(var a={},s=0;sx',t=i.firstChild.href}return t}function kr(t){if(typeof t=="string"){var i=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(i)return i.pop().toLowerCase()}return""}function un(t){var i=k.location,n=Sr(t);return(n.protocol===":"?i.protocol:n.protocol)+n.host!==i.protocol+i.host}var Dc=function(t){function i(e){var r;e===void 0&&(e=[]);for(var a=e.length-1;0<=a;a--)if(e[a].enabled){br(e,e[a]);break}return(r=t.call(this,e)||this).changing_=!1,r}j(i,t);var n=i.prototype;return n.addTrack=function(e){var r=this;e.enabled&&br(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){r.changing_||(r.changing_=!0,br(r,e),r.changing_=!1,r.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},i}(Qe),Uc=function(t){function i(e){var r;e===void 0&&(e=[]);for(var a=e.length-1;0<=a;a--)if(e[a].selected){Tr(e,e[a]);break}return(r=t.call(this,e)||this).changing_=!1,Object.defineProperty(K(r),"selectedIndex",{get:function(){for(var s=0;s>0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var i=this.ToNumber(t);return pn(i)||i===0||!ho(i)?0:function(n,e){var r=n%e;return Math.floor(0<=r?r:r+e)}(ao(i)*Math.floor(Math.abs(i)),65536)},ToString:function(t){return ch(t)},ToObject:function(t){return this.CheckObjectCoercible(t),lh(t)},CheckObjectCoercible:function(t,i){if(t==null)throw new Je(i||"Cannot call method on "+t);return t},IsCallable:Pr,SameValue:function(t,i){return t===i?t!==0||1/t==1/i:pn(t)&&pn(i)},Type:function(t){return t===null?"Null":typeof t=="undefined"?"Undefined":typeof t=="function"||typeof t=="object"?"Object":typeof t=="number"?"Number":typeof t=="boolean"?"Boolean":typeof t=="string"?"String":void 0},IsPropertyDescriptor:function(t){if(this.Type(t)!=="Object")return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in t)if(dt(t,n)&&!i[n])return!1;var e=dt(t,"[[Value]]"),r=dt(t,"[[Get]]")||dt(t,"[[Set]]");if(e&&r)throw new Je("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return typeof t!="undefined"&&(dn(this,"Property Descriptor","Desc",t),!(!dt(t,"[[Get]]")&&!dt(t,"[[Set]]")))},IsDataDescriptor:function(t){return typeof t!="undefined"&&(dn(this,"Property Descriptor","Desc",t),!(!dt(t,"[[Value]]")&&!dt(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return typeof t!="undefined"&&(dn(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(typeof t=="undefined")return t;if(dn(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new Je("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if(this.Type(t)!=="Object")throw new Je("ToPropertyDescriptor requires an object");var i={};if(dt(t,"enumerable")&&(i["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),dt(t,"configurable")&&(i["[[Configurable]]"]=this.ToBoolean(t.configurable)),dt(t,"value")&&(i["[[Value]]"]=t.value),dt(t,"writable")&&(i["[[Writable]]"]=this.ToBoolean(t.writable)),dt(t,"get")){var n=t.get;if(typeof n!="undefined"&&!this.IsCallable(n))throw new TypeError("getter must be a function");i["[[Get]]"]=n}if(dt(t,"set")){var e=t.set;if(typeof e!="undefined"&&!this.IsCallable(e))throw new Je("setter must be a function");i["[[Set]]"]=e}if((dt(i,"[[Get]]")||dt(i,"[[Set]]"))&&(dt(i,"[[Value]]")||dt(i,"[[Writable]]")))throw new Je("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return i}},go=wr.call(Function.call,String.prototype.replace),hh=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,dh=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,yo=wr.call(Function.call,Ir());lo(yo,{getPolyfill:Ir,implementation:uo,shim:function(){var t=Ir();return lo(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t}});var xr=yo,ph=Object.prototype.toString,vo=Object.prototype.hasOwnProperty,fh=function(t,i,n){if(!Pr(i))throw new TypeError("iterator must be a function");var e;3<=arguments.length&&(e=n),ph.call(t)==="[object Array]"?function(r,a,s){for(var o=0,u=r.length;o=f||E.startTime===E.endTime&&E.startTime<=f&&E.startTime+.5>=f)&&y.push(E)}if(d=!1,y.length!==this.activeCues_.length)d=!0;else for(var S=0;S")throw new te(te.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+s);t=t.substr(3),u(),i.endTime=o(),u(),e=t,r=i,a=new xi,Di(e,function(c,d){switch(c){case"region":for(var h=n.length-1;0<=h;h--)if(n[h].id===d){a.set(c,n[h].region);break}break;case"vertical":a.alt(c,d,["rl","lr"]);break;case"line":var f=d.split(","),y=f[0];a.integer(c,y),a.percent(c,y)&&a.set("snapToLines",!1),a.alt(c,y,["auto"]),f.length===2&&a.alt("lineAlign",f[1],["start","middle","end"]);break;case"position":f=d.split(","),a.percent(c,f[0]),f.length===2&&a.alt("positionAlign",f[1],["start","middle","end"]);break;case"size":a.percent(c,d);break;case"align":a.alt(c,d,["start","middle","end","left","right"])}},/:/,/\s/),r.region=a.get("region",null),r.vertical=a.get("vertical",""),r.line=a.get("line","auto"),r.lineAlign=a.get("lineAlign","start"),r.snapToLines=a.get("snapToLines",!0),r.size=a.get("size",100),r.align=a.get("align","middle"),r.position=a.get("position",{start:0,left:0,middle:50,end:100,right:100},r.align),r.positionAlign=a.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},r.align)}((te.prototype=Dr(Error.prototype)).constructor=te).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},xi.prototype={set:function(t,i){this.get(t)||i===""||(this.values[t]=i)},get:function(t,i,n){return n?this.has(t)?this.values[t]:i[n]:this.has(t)?this.values[t]:i},has:function(t){return t in this.values},alt:function(t,i,n){for(var e=0;e","":"\u200E","":"\u200F"," ":"\xA0"},bh={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},Th={v:"title",lang:"lang"},wo={rt:"ruby"};function Ao(t,i){function n(){if(!i)return null;var _,E=i.match(/^([^<]*)(<[^>]*>?)?/);return _=E[1]?E[1]:E[2],i=i.substr(_.length),_}function e(_){return _h[_]}function r(_){for(;b=_.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)_=_.replace(b[0],e);return _}function a(_,E){var S=bh[_];if(!S)return null;var C=t.document.createElement(S);C.localName=S;var L=Th[_];return L&&E&&(C[L]=E.trim()),C}for(var s,o,u,c=t.document.createElement("div"),d=c,h=[];(s=n())!==null;)if(s[0]!=="<")d.appendChild(t.document.createTextNode(r(s)));else{if(s[1]==="/"){h.length&&h[h.length-1]===s.substr(2).replace(">","")&&(h.pop(),d=d.parentNode);continue}var f,y=Ur(s.substr(1,s.length-2));if(y){f=t.document.createProcessingInstruction("timestamp",y),d.appendChild(f);continue}var b=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!b||!(f=a(b[1],b[3]))||(o=d,wo[(u=f).localName]&&wo[u.localName]!==o.localName))continue;b[2]&&(f.className=b[2].substr(1).replace("."," ")),h.push(b[1]),d.appendChild(f),d=f}return c}var Po=[[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]];function Sh(t){for(var i=0;i=n[0]&&t<=n[1])return!0}return!1}function fn(){}function Rr(t,i,n){fn.call(this),this.cue=i,this.cueDiv=Ao(t,i.text);var e={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:i.vertical===""?"horizontal-tb":i.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(e,this.cueDiv),this.div=t.document.createElement("div"),e={direction:function(a){var s=[],o="";if(!a||!a.childNodes)return"ltr";function u(h,f){for(var y=f.childNodes.length-1;0<=y;y--)h.push(f.childNodes[y])}function c(h){if(!h||!h.length)return null;var f=h.pop(),y=f.textContent||f.innerText;if(y){var b=y.match(/^.*(\n|\r)/);return b?b[h.length=0]:y}return f.tagName==="ruby"?c(h):f.childNodes?(u(h,f),c(h)):void 0}for(u(s,a);o=c(s);)for(var d=0;dh&&(d=d<0?-1:1,d*=Math.ceil(h/c)*c),s<0&&(d+=a.vertical===""?n.height:n.width,o=o.reverse()),r.move(f,d)}else{var y=r.lineHeight/n.height*100;switch(a.lineAlign){case"middle":s-=y/2;break;case"end":s-=y}switch(a.vertical){case"":i.applyStyles({top:i.formatStyle(s,"%")});break;case"rl":i.applyStyles({left:i.formatStyle(s,"%")});break;case"lr":i.applyStyles({right:i.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],r=new Ot(i)}var b=function(_,E){for(var S,C=new Ot(_),L=1,D=0;Dt.left&&this.topt.top},Ot.prototype.overlapsAny=function(t){for(var i=0;i=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},Ot.prototype.overlapsOppositeAxis=function(t,i){switch(i){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},Ot.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},Ot.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},Ot.getSimpleBoxPosition=function(t){var i=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,e=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||e,height:t.height||i,bottom:t.bottom||e+(t.height||i),width:t.width||n}},Ui.StringDecoder=function(){return{decode:function(t){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},Ui.convertCueToDOMTree=function(t,i){return t&&i?Ao(t,i):null},Ui.processCues=function(t,i,n){if(!t||!i||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var e=t.document.createElement("div");if(e.style.position="absolute",e.style.left="0",e.style.right="0",e.style.top="0",e.style.bottom="0",e.style.margin="1.5%",n.appendChild(e),function(u){for(var c=0;c")===-1){i.cue.id=r;continue}case"CUE":try{vh(r,i.cue,i.regionList)}catch(u){i.reportOrThrowError(u),i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var o=r.indexOf("-->")!==-1;if(!r||o&&(s=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+=`
`),i.cue.text+=r;continue;case"BADCUE":r||(i.state="ID");continue}}}catch(u){i.reportOrThrowError(u),i.state==="CUETEXT"&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state=i.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&t.state!=="HEADER"||(t.buffer+=`
`,t.parse()),t.state==="INITIAL")throw new te(te.Errors.BadSignature)}catch(i){t.reportOrThrowError(i)}return t.onflush&&t.onflush(),this}};var Ch=Ui,Eh={"":1,lr:1,rl:1},wh={start:1,middle:1,end:1,left:1,right:1};function Mr(t){return typeof t=="string"&&!!wh[t.toLowerCase()]&&t.toLowerCase()}function Io(t,i,n){this.hasBeenReset=!1;var e="",r=!1,a=t,s=i,o=n,u=null,c="",d=!0,h="auto",f="start",y=50,b="middle",_=50,E="middle";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return e},set:function(S){e=""+S}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(S){r=!!S}},startTime:{enumerable:!0,get:function(){return a},set:function(S){if(typeof S!="number")throw new TypeError("Start time must be set to a number.");a=S,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(S){if(typeof S!="number")throw new TypeError("End time must be set to a number.");s=S,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(S){o=""+S,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(S){u=S,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},set:function(S){var C=function(L){return typeof L=="string"&&!!Eh[L.toLowerCase()]&&L.toLowerCase()}(S);if(C===!1)throw new SyntaxError("An invalid or illegal string was specified.");c=C,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(S){d=!!S,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(S){if(typeof S!="number"&&S!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");h=S,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(S){var C=Mr(S);if(!C)throw new SyntaxError("An invalid or illegal string was specified.");f=C,this.hasBeenReset=!0}},position:{enumerable:!0,get:function(){return y},set:function(S){if(S<0||100',className:this.buildCSSClass(),tabIndex:0},r),e==="button"&&Z.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),a=lt({role:"button"},a),this.tabIndex_=r.tabIndex;var s=t.prototype.createEl.call(this,e,r,a);return this.createControlTextEl(s),s},n.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=vt("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,r){if(r===void 0&&(r=this.el()),e===void 0)return this.controlText_||"Need Text";var a=this.localize(e);this.controlText_=e,$e(this.controlTextEl_,a),this.nonIconControl||r.setAttribute("title",a)},n.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_!="undefined"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("keydown",this.handleKeyDown))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_!="undefined"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver),this.off("mouseout",this.handleMouseOut),this.off(["tap","click"],this.handleClick),this.off("keydown",this.handleKeyDown)},n.handleClick=function(e){},n.handleKeyDown=function(e){z.isEventKey(e,"Space")||z.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},i}(x);x.registerComponent("ClickableComponent",yn);var Mh=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).update(),e.on("posterchange",J(K(a),a.update)),a}j(i,t);var n=i.prototype;return n.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},n.createEl=function(){return vt("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var r=this.player().poster();this.setSrc(r),r?this.show():this.hide()},n.setSrc=function(e){var r="";e&&(r='url("'+e+'")'),this.el_.style.backgroundImage=r},n.handleClick=function(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ge(this.player_.play()):this.player_.pause())},i}(yn);x.registerComponent("PosterImage",Mh);var vn="#222",Nh={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'};function jr(t,i){var n;if(t.length===4)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(t.length!==7)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+i+")"}function Fr(t,i,n){try{t.style[i]=n}catch(e){return}}var Bh=function(t){function i(e,r,a){var s;s=t.call(this,e,r,a)||this;var o=J(K(s),s.updateDisplay);return e.on("loadstart",J(K(s),s.toggleDisplay)),e.on("texttrackchange",o),e.on("loadedmetadata",J(K(s),s.preselectTrack)),e.ready(J(K(s),function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)this.hide();else{e.on("fullscreenchange",o),e.on("playerresize",o),k.addEventListener("orientationchange",o),e.on("dispose",function(){return k.removeEventListener("orientationchange",o)});for(var u=this.options_.playerOptions.tracks||[],c=0;c',className:this.buildCSSClass()},r),a=lt({type:"button"},a);var s=x.prototype.createEl.call(this,"button",r,a);return this.createControlTextEl(s),s},n.addChild=function(e,r){r===void 0&&(r={});var a=this.constructor.name;return Z.warn("Adding an actionable (user controllable) child to a Button ("+a+") is not supported; use a ClickableComponent instead."),x.prototype.addChild.call(this,e,r)},n.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(e){z.isEventKey(e,"Space")||z.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},i}(yn);x.registerComponent("Button",ee);var Do=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).mouseused_=!1,a.on("mousedown",a.handleMouseDown),a}j(i,t);var n=i.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var r=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)return ge(r),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());var a=this.player_.getChild("controlBar"),s=a&&a.getChild("playToggle");if(s){let u=function(){return s.focus()};var o=u;Pi(r)?r.then(u,function(){}):this.setTimeout(u,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(e){this.mouseused_=!1,t.prototype.handleKeyDown.call(this,e)},n.handleMouseDown=function(e){this.mouseused_=!0},i}(ee);Do.prototype.controlText_="Play Video",x.registerComponent("BigPlayButton",Do);var Fh=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).controlText(r&&r.controlText||a.localize("Close")),a}j(i,t);var n=i.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(e){z.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},i}(ee);x.registerComponent("CloseButton",Fh);var Uo=function(t){function i(e,r){var a;return r===void 0&&(r={}),a=t.call(this,e,r)||this,r.replay=r.replay===void 0||r.replay,a.on(e,"play",a.handlePlay),a.on(e,"pause",a.handlePause),r.replay&&a.on(e,"ended",a.handleEnded),a}j(i,t);var n=i.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},i}(ee);Uo.prototype.controlText_="Play",x.registerComponent("PlayToggle",Uo);function Ro(t,i){t=t<0?0:t;var n=Math.floor(t%60),e=Math.floor(t/60%60),r=Math.floor(t/3600),a=Math.floor(i/60%60),s=Math.floor(i/3600);return!isNaN(t)&&t!==1/0||(r=e=n="-"),(r=0'+this.localize(this.labelText_)+"\xA0"});return this.contentEl_=vt("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),this.updateTextNode_(),r.appendChild(this.contentEl_),r},n.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},n.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=U.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},n.formatTime_=function(e){return ti(e)},n.updateFormattedTime_=function(e){var r=this.formatTime_(e);r!==this.formattedTime_&&(this.formattedTime_=r,this.requestAnimationFrame(this.updateTextNode_))},n.updateContent=function(e){},i}(x);ei.prototype.labelText_="Time",ei.prototype.controlText_="Time",x.registerComponent("TimeDisplay",ei);var Vr=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).on(e,"ended",a.handleEnded),a}j(i,t);var n=i.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(r)},n.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},i}(ei);Vr.prototype.labelText_="Current Time",Vr.prototype.controlText_="Current Time",x.registerComponent("CurrentTimeDisplay",Vr);var qr=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).on(e,"durationchange",a.updateContent),a.on(e,"loadstart",a.updateContent),a.on(e,"loadedmetadata",a.throttledUpdateContent),a}j(i,t);var n=i.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var r=this.player_.duration();this.duration_!==r&&(this.duration_=r,this.updateFormattedTime_(r))},i}(ei);qr.prototype.labelText_="Duration",qr.prototype.controlText_="Duration",x.registerComponent("DurationDisplay",qr);var Hh=function(t){function i(){return t.apply(this,arguments)||this}return j(i,t),i.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"/
"},{"aria-hidden":!0})},i}(x);x.registerComponent("TimeDivider",Hh);var Wr=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).on(e,"durationchange",a.throttledUpdateContent),a.on(e,"ended",a.handleEnded),a}j(i,t);var n=i.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var e=t.prototype.createEl.call(this);return e.insertBefore(vt("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},n.updateContent=function(e){typeof this.player_.duration()=="number"&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},n.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},i}(ei);Wr.prototype.labelText_="Remaining Time",Wr.prototype.controlText_="Remaining Time",x.registerComponent("RemainingTimeDisplay",Wr);var Vh=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).updateShowing(),a.on(a.player(),"durationchange",a.updateShowing),a}j(i,t);var n=i.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=vt("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+"\xA0"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},n.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},i}(x);x.registerComponent("LiveDisplay",Vh);var Mo=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).updateLiveEdgeStatus(),a.player_.liveTracker&&a.on(a.player_.liveTracker,"liveedgechange",a.updateLiveEdgeStatus),a}j(i,t);var n=i.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=vt("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},n.updateLiveEdgeStatus=function(e){!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"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus),this.textEl_=null,t.prototype.dispose.call(this)},i}(ee);Mo.prototype.controlText_="Seek to live, currently playing live",x.registerComponent("SeekToLive",Mo);var zr=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).bar=a.getChild(a.options_.barName),a.vertical(!!a.options_.vertical),a.enable(),a}j(i,t);var n=i.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){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),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=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(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(e,r,a){return r===void 0&&(r={}),a===void 0&&(a={}),r.className=r.className+" vjs-slider",r=lt({tabIndex:0},r),a=lt({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},a),t.prototype.createEl.call(this,e,r,a)},n.handleMouseDown=function(e){var r=this.bar.el_.ownerDocument;e.type==="mousedown"&&e.preventDefault(),e.type!=="touchstart"||le||e.preventDefault(),ms(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(r,"mousemove",this.handleMouseMove),this.on(r,"mouseup",this.handleMouseUp),this.on(r,"touchmove",this.handleMouseMove),this.on(r,"touchend",this.handleMouseUp),this.handleMouseMove(e)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;gs(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},n.update=function(){if(this.el_){var e=this.getPercent(),r=this.bar;if(r){(typeof e!="number"||e!=e||e<0||e===1/0)&&(e=0);var a=(100*e).toFixed(2)+"%",s=r.el().style,o=this.vertical()?"height":"width";return s[o]!==a&&(s[o]=a),e}}},n.calculateDistance=function(e){var r=Yn(this.el_,e);return this.vertical()?r.y:r.x},n.handleKeyDown=function(e){z.isEventKey(e,"Left")||z.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):z.isEventKey(e,"Right")||z.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(e===void 0)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},i}(x);x.registerComponent("Slider",zr);var qh=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).partEls_=[],a.on(e,"progress",a.update),a}j(i,t);var n=i.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+': 0%'})},n.dispose=function(){this.partEls_=null,t.prototype.dispose.call(this)},n.update=function(e){function r(E,S,C){var L=E/S||0;return L=100*(1<=L?1:L),C&&(L=L.toFixed(2)),L+"%"}var a=this.player_.liveTracker,s=this.player_.buffered(),o=a&&a.isLive()?a.seekableEnd():this.player_.duration(),u=this.player_.bufferedEnd(),c=this.partEls_,d=this.$(".vjs-control-text-loaded-percentage");this.el_.style.width=r(u,o),$e(d,r(u,o,!0));for(var h=0;hs.length;_--)this.el_.removeChild(c[_-1]);c.length=s.length},i}(x);x.registerComponent("LoadProgressBar",qh);var Wh=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).update=fe(J(K(a),a.update),30),a}j(i,t);var n=i.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,r,a){var s=Ci(this.el_),o=Ci(this.player_.el()),u=e.width*r;if(o&&s){var c=e.left-o.left+u,d=e.width-u+(o.right-e.right),h=s.width/2;cs.width&&(h=s.width),this.el_.style.right="-"+h+"px",this.write(a)}},n.write=function(e){$e(this.el_,e)},n.updateTime=function(e,r,a,s){var o=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var u,c=o.player_.duration();if(o.player_.liveTracker&&o.player_.liveTracker.isLive()){var d=o.player_.liveTracker.liveWindow(),h=d-r*d;u=(h<1?"":"-")+ti(h,d)}else u=ti(a,c);o.update(e,r,u),s&&s()})},i}(x);x.registerComponent("TimeTooltip",Wh);var $r=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).update=fe(J(K(a),a.update),30),a}j(i,t);var n=i.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,r){var a=this.getChild("timeTooltip");if(a){var s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();a.updateTime(e,r,s)}},i}(x);$r.prototype.options_={children:[]},Zt||me||$r.prototype.options_.children.push("timeTooltip"),x.registerComponent("PlayProgressBar",$r);var No=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).update=fe(J(K(a),a.update),30),a}j(i,t);var n=i.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,r){var a=this,s=r*this.player_.duration();this.getChild("timeTooltip").updateTime(e,r,s,function(){a.el_.style.left=e.width*r+"px"})},i}(x);No.prototype.options_={children:["timeTooltip"]},x.registerComponent("MouseTimeDisplay",No);var Gr=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).setEventHandlers_(),a}j(i,t);var n=i.prototype;return n.setEventHandlers_=function(){this.update=fe(J(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.on(this.player_,"durationchange",this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.on(this.player_,["playing"],this.enableInterval_),this.on(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in U&&"visibilityState"in U&&this.on(U,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){U.hidden?this.disableInterval_(e):(this.enableInterval_(),this.requestAnimationFrame(this.update))},n.enableInterval_=function(){var e=this;this.clearInterval(this.updateInterval),this.updateInterval=this.setInterval(function(){e.requestAnimationFrame(e.update)},30)},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e.type!=="ended"||this.clearInterval(this.updateInterval)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update_=function(e,r){var a=this.player_.liveTracker,s=this.player_.duration();a&&a.isLive()&&(s=this.player_.liveTracker.liveCurrentTime()),this.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ti(e,s),ti(s,s)],"{1} of {2}")),this.bar&&this.bar.update(Ci(this.el_),r)},n.update=function(e){if(this.el().offsetParent!==null){var r=t.prototype.update.call(this);return this.update_(this.getCurrentTime_(),r),r}},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.handleEnded=function(e){this.update_(this.player_.duration(),1)},n.getPercent=function(){var e,r=this.getCurrentTime_(),a=this.player_.liveTracker;return a&&a.isLive()?(e=(r-a.seekableStart())/a.liveWindow(),a.atLiveEdge()&&(e=1)):e=r/this.player_.duration(),1<=e?1:e||0},n.handleMouseDown=function(e){Ge(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},n.handleMouseMove=function(e){if(Ge(e)){var r,a=this.calculateDistance(e),s=this.player_.liveTracker;if(s&&s.isLive()){var o=s.seekableStart(),u=s.liveCurrentTime();if(u<=(r=o+a*s.liveWindow())&&(r=u),r<=o&&(r=o+.1),r===1/0)return}else(r=a*this.player_.duration())===this.player_.duration()&&(r-=.1);this.player_.currentTime(r)}},n.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},n.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},n.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&ge(this.player_.play())},n.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},n.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(e){if(z.isEventKey(e,"Space")||z.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(z.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(0);else if(z.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(z(e))){e.preventDefault(),e.stopPropagation();var r=10*(z.codes[z(e)]-z.codes[0])/100;this.player_.currentTime(this.player_.duration()*r)}else z.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):z.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):t.prototype.handleKeyDown.call(this,e)},i}(zr);Gr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Zt||me||Gr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),x.registerComponent("SeekBar",Gr);var Bo=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).handleMouseMove=fe(J(K(a),a.handleMouseMove),30),a.throttledHandleMouseSeek=fe(J(K(a),a.handleMouseSeek),30),a.enable(),a}j(i,t);var n=i.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var r=this.getChild("seekBar");if(r){var a=r.getChild("mouseTimeDisplay"),s=r.el(),o=Ci(s),u=Yn(s,e).x;1'})},i}(x);x.registerComponent("VolumeLevel",zh);var Xr=function(t){function i(e,r){var a;return(a=t.call(this,e,r)||this).on("slideractive",a.updateLastVolume_),a.on(e,"volumechange",a.updateARIAAttributes),e.ready(function(){return a.updateARIAAttributes()}),a}j(i,t);var n=i.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(e){Ge(e)&&t.prototype.handleMouseDown.call(this,e)},n.handleMouseMove=function(e){Ge(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var r=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",r),this.el_.setAttribute("aria-valuetext",r+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,r=this.player_.volume();this.one("sliderinactive",function(){e.player_.volume()===0&&e.player_.lastVolume_(r)})},i}(zr);Xr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Xr.prototype.playerEvent="volumechange",x.registerComponent("VolumeBar",Xr);var Ho=function(t){function i(e,r){var a;return r===void 0&&(r={}),r.vertical=r.vertical||!1,typeof r.volumeBar!="undefined"&&!bi(r.volumeBar)||(r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=r.vertical),function(s,o){o.tech_&&!o.tech_.featuresVolumeControl&&s.addClass("vjs-hidden"),s.on(o,"loadstart",function(){o.tech_.featuresVolumeControl?s.removeClass("vjs-hidden"):s.addClass("vjs-hidden")})}(K(a=t.call(this,e,r)||this),e),a.throttledHandleMouseMove=fe(J(K(a),a.handleMouseMove),30),a.on("mousedown",a.handleMouseDown),a.on("touchstart",a.handleMouseDown),a.on(a.volumeBar,["focus","slideractive"],function(){a.volumeBar.addClass("vjs-slider-active"),a.addClass("vjs-slider-active"),a.trigger("slideractive")}),a.on(a.volumeBar,["blur","sliderinactive"],function(){a.volumeBar.removeClass("vjs-slider-active"),a.removeClass("vjs-slider-active"),a.trigger("sliderinactive")}),a}j(i,t);var n=i.prototype;return n.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},n.handleMouseDown=function(e){var r=this.el_.ownerDocument;this.on(r,"mousemove",this.throttledHandleMouseMove),this.on(r,"touchmove",this.throttledHandleMouseMove),this.on(r,"mouseup",this.handleMouseUp),this.on(r,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var r=this.el_.ownerDocument;this.off(r,"mousemove",this.throttledHandleMouseMove),this.off(r,"touchmove",this.throttledHandleMouseMove),this.off(r,"mouseup",this.handleMouseUp),this.off(r,"touchend",this.handleMouseUp)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},i}(x);Ho.prototype.options_={children:["volumeBar"]},x.registerComponent("VolumeControl",Ho);var Vo=function(t){function i(e,r){var a;return function(s,o){o.tech_&&!o.tech_.featuresMuteControl&&s.addClass("vjs-hidden"),s.on(o,"loadstart",function(){o.tech_.featuresMuteControl?s.removeClass("vjs-hidden"):s.addClass("vjs-hidden")})}(K(a=t.call(this,e,r)||this),e),a.on(e,["loadstart","volumechange"],a.update),a}j(i,t);var n=i.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var r=this.player_.volume(),a=this.player_.lastVolume_();if(r===0){var s=a<.1?.1:a;this.player_.volume(s),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),r=3;Zt&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),e===0||this.player_.muted()?r=0:e<.33?r=1:e<.67&&(r=2);for(var a=0;a<4;a++)Si(this.el_,"vjs-vol-"+a);oe(this.el_,"vjs-vol-"+r)},n.updateControlText_=function(){var e=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},i}(ee);Vo.prototype.controlText_="Mute",x.registerComponent("MuteToggle",Vo);var qo=function(t){function i(e,r){var a;return r===void 0&&(r={}),typeof r.inline!="undefined"?r.inline=r.inline:r.inline=!0,typeof r.volumeControl!="undefined"&&!bi(r.volumeControl)||(r.volumeControl=r.volumeControl||{},r.volumeControl.vertical=!r.inline),(a=t.call(this,e,r)||this).on(e,["loadstart"],a.volumePanelState_),a.on(a.muteToggle,"keyup",a.handleKeyPress),a.on(a.volumeControl,"keyup",a.handleVolumeControlKeyUp),a.on("keydown",a.handleKeyPress),a.on("mouseover",a.handleMouseOver),a.on("mouseout",a.handleMouseOut),a.on(a.volumeControl,["slideractive"],a.sliderActive_),a.on(a.volumeControl,["sliderinactive"],a.sliderInactive_),a}j(i,t);var n=i.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.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")},n.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},n.dispose=function(){this.handleMouseOut(),t.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){z.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),Ht(U,"keyup",J(this,this.handleKeyPress))},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Ct(U,"keyup",J(this,this.handleKeyPress))},n.handleKeyPress=function(e){z.isEventKey(e,"Esc")&&this.handleMouseOut()},i}(x);qo.prototype.options_={children:["muteToggle","volumeControl"]},x.registerComponent("VolumePanel",qo);var Kr=function(t){function i(e,r){var a;return a=t.call(this,e,r)||this,r&&(a.menuButton_=r.menuButton),a.focusedChild_=-1,a.on("keydown",a.handleKeyDown),a.boundHandleBlur_=J(K(a),a.handleBlur),a.boundHandleTapClick_=J(K(a),a.handleTapClick),a}j(i,t);var n=i.prototype;return n.addEventListenerForItem=function(e){e instanceof x&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof x&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(e){typeof e=="string"&&(e=this.getChild(e)),this.removeEventListenerForItem(e),t.prototype.removeChild.call(this,e)},n.addItem=function(e){var r=this.addChild(e);r&&this.addEventListenerForItem(r)},n.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=vt(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var r=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return r.appendChild(this.contentEl_),Ht(r,"click",function(a){a.preventDefault(),a.stopImmediatePropagation()}),r},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,t.prototype.dispose.call(this)},n.handleBlur=function(e){var r=e.relatedTarget||U.activeElement;if(!this.children().some(function(s){return s.el()===r})){var a=this.menuButton_;a&&a.buttonPressed_&&r!==a.el().firstChild&&a.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var r=this.children();if(!Array.isArray(r))return;var a=r.filter(function(s){return s.el()===e.target})[0];if(!a)return;a.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}},n.handleKeyDown=function(e){z.isEventKey(e,"Left")||z.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(z.isEventKey(e,"Right")||z.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){e===void 0&&(e=0);var r=this.children().slice();r.length&&r[0].className&&/vjs-menu-title/.test(r[0].className)&&r.shift(),0=r.length&&(e=r.length-1),r[this.focusedChild_=e].el_.focus())},i}(x);x.registerComponent("Menu",Kr);var Yr=function(t){function i(e,r){var a;r===void 0&&(r={}),(a=t.call(this,e,r)||this).menuButton_=new ee(e,r),a.menuButton_.controlText(a.controlText_),a.menuButton_.el_.setAttribute("aria-haspopup","true");var s=ee.prototype.buildCSSClass();return a.menuButton_.el_.className=a.buildCSSClass()+" "+s,a.menuButton_.removeClass("vjs-control"),a.addChild(a.menuButton_),a.update(),a.enabled_=!0,a.on(a.menuButton_,"tap",a.handleClick),a.on(a.menuButton_,"click",a.handleClick),a.on(a.menuButton_,"keydown",a.handleKeyDown),a.on(a.menuButton_,"mouseenter",function(){a.addClass("vjs-hover"),a.menu.show(),Ht(U,"keyup",J(K(a),a.handleMenuKeyUp))}),a.on("mouseleave",a.handleMouseLeave),a.on("keydown",a.handleSubmenuKeyDown),a}j(i,t);var n=i.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Kr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var r=vt("li",{className:"vjs-menu-title",innerHTML:ft(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var a=new x(this.player_,{el:r});e.addItem(a)}if(this.items=this.createItems(),this.items)for(var s=0;s