/* Video.js 7.8.4 Copyright Brightcove, Inc. Available under Apache License Version 2.0 Includes vtt.js Available under Apache License Version 2.0 slighly modified parse-headers 2.0.2 Copyright (c) 2014 David Björklund Available under the MIT license 2020 Brightcove, Inc @license Apache-2.0 @name m3u8-parser @version 4.4.0 @license Apache-2.0 */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(x){var J=0;return function(){return J=Object.getOwnPropertyNames(f.handlers).length&&(delete f.handlers,delete f.dispatcher,delete f.disabled);0===Object.getOwnPropertyNames(f).length&&Sa["delete"](g)}}function ne(g,c,f,b){f.forEach(function(a){g(c,a,b)})}function ud(g){function c(){return!0}function f(){return!1}if(g.fixed_)return g;if(!g||!g.isPropagationStopped){var b=g||x.event;for(a in g={},b)"layerX"!==a&&"layerY"!==a&&"keyLocation"!==a&&"webkitMovementX"!==a&&"webkitMovementY"!==a&&("returnValue"=== a&&b.preventDefault||(g[a]=b[a]));if(g.target||(g.target=g.srcElement||J),g.relatedTarget||(g.relatedTarget=g.fromElement===g.target?g.toElement:g.fromElement),g.preventDefault=function(){b.preventDefault&&b.preventDefault();g.returnValue=!1;b.returnValue=!1;g.defaultPrevented=!0},g.defaultPrevented=!1,g.stopPropagation=function(){b.stopPropagation&&b.stopPropagation();g.cancelBubble=!0;b.cancelBubble=!0;g.isPropagationStopped=c},g.isPropagationStopped=f,g.stopImmediatePropagation=function(){b.stopImmediatePropagation&& b.stopImmediatePropagation();g.isImmediatePropagationStopped=c;g.stopPropagation()},g.isImmediatePropagationStopped=f,null!==g.clientX&&void 0!==g.clientX){var a=J.documentElement;var d=J.body;g.pageX=g.clientX+(a&&a.scrollLeft||d&&d.scrollLeft||0)-(a&&a.clientLeft||d&&d.clientLeft||0);g.pageY=g.clientY+(a&&a.scrollTop||d&&d.scrollTop||0)-(a&&a.clientTop||d&&d.clientTop||0)}g.which=g.charCode||g.keyCode;null!==g.button&&void 0!==g.button&&(g.button=1&g.button?0:4&g.button?1:2&g.button?2:0)}return g.fixed_= !0,g}function kb(g,c,f){if(Array.isArray(c))return ne(kb,g,c,f);Sa.has(g)||Sa.set(g,{});var b=Sa.get(g);if(b.handlers||(b.handlers={}),b.handlers[c]||(b.handlers[c]=[]),f.guid||(f.guid=Lb++),b.handlers[c].push(f),b.dispatcher||(b.disabled=!1,b.dispatcher=function(a,d){if(!b.disabled){a=ud(a);var e=b.handlers[a.type];if(e){e=e.slice(0);for(var h=0,k=e.length;hc.length||c[0]===g||c[0]===g.eventBusEl_;return a=d?(f=g.eventBusEl_,3<=c.length&&c.shift(),b=c[0],c[1]):(f=c[0],b=c[1],c[2]),oe(f),zg(b),Ag(a),{isTargetingSelf:d, target:f,type:b,listener:ka(g,a)}}function Xb(g,c,f,b){oe(g);g.nodeName?gk[c](g,f,b):g[c](f,b)}function qe(g,c){void 0===c&&(c={});var f=c.eventBusKey;if(f){if(!g[f].nodeName)throw Error('The eventBusKey "'+f+'" does not refer to an element.');g.eventBusEl_=g[f]}else g.eventBusEl_=X("span",{className:"vjs-event-bus"});return ca(g,hk),g.eventedCallbacks&&g.eventedCallbacks.forEach(function(b){b()}),g.on("dispose",function(){g.off();x.setTimeout(function(){g.eventBusEl_=null},0)}),g}function Bg(g,c){return ca(g, ik),g.state=ca({},g.state,c),"function"==typeof g.handleStateChanged&&Wb(g)&&g.on("statechanged",g.handleStateChanged),g}function wd(g){return"string"!=typeof g?g:g.replace(/./,function(c){return c.toLowerCase()})}function Ca(g){return"string"!=typeof g?g:g.replace(/./,function(c){return c.toUpperCase()})}function ua(){for(var g={},c=arguments.length,f=Array(c),b=0;bb||a]*>?)?/);return w=B[1]?B[1]:B[2],c=c.substr(w.length),w}function b(w,B){var G=mk[w];if(!G)return null;G=g.document.createElement(G);var v=nk[w];return v&&B&&(G[v]= B.trim()),G}for(var a,d,e,h,k=g.document.createElement("div"),l=k,m=[];null!==(a=f());)if("\x3c"!==a[0])l.appendChild(g.document.createTextNode((d=a,ze.innerHTML=d,d=ze.textContent,ze.textContent="",d)));else if("/"===a[1])m.length&&m[m.length-1]===a.substr(2).replace("\x3e","")&&(m.pop(),l=l.parentNode);else{var n=xe(a.substr(1,a.length-2));if(n){var q=g.document.createProcessingInstruction("timestamp",n);l.appendChild(q)}else(a=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(q=b(a[1], a[3]))&&(e=l,!Mg[(h=q).localName]||Mg[h.localName]===e.localName)&&(a[2]&&(n=a[2].split("."),n.forEach(function(w){var B=/^bg_/.test(w);w=B?w.slice(3):w;Ng.hasOwnProperty(w)&&(q.style[B?"background-color":"color"]=Ng[w])}),q.className=n.join(" ")),m.push(a[1]),l.appendChild(q),l=q)}return k}function ok(g){for(var c=0;c=f[0]&&g<=f[1])return!0}return!1}function Ae(){}function Be(g,c,f){this.cue=c;this.cueDiv=Lg(g,c.text);var b={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:""===c.vertical?"horizontal-tb":"lr"===c.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(b,this.cueDiv);this.div=g.document.createElement("div");b={direction:function(a){function d(l,m){for(var n=m.childNodes.length-1;0<=n;n--)l.push(m.childNodes[n])}function e(l){if(!l||!l.length)return null;var m=l.pop(),n=m.textContent||m.innerText;return n?(m=n.match(/^.*(\n|\r)/))?m[l.length=0]:n:"ruby"=== m.tagName?e(l):m.childNodes?(d(l,m),e(l)):void 0}var h=[],k="";if(!a||!a.childNodes)return"ltr";for(d(h,a);k=e(h);)for(a=0;a=n.line))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;n=n.track;for(var q=n.textTrackList,w=0,B=0;Bh&&(l=0>l?-1:1,l*=Math.ceil(h/k)*k);0>d&&(l+=""===g.vertical?f.height:f.width,e=e.reverse());a.move(m,l)}else{a=a.lineHeight/f.height*100;switch(g.lineAlign){case "center":d-=a/2;break;case "end":d-=a}switch(g.vertical){case "":c.applyStyles({top:c.formatStyle(d,"%")});break;case "rl":c.applyStyles({left:c.formatStyle(d,"%")});break;case "lr":c.applyStyles({right:c.formatStyle(d,"%")})}e=["+y","-x","+x","-y"];a=new Va(c)}g=function(n,q){for(var w,B=new Va(n),G=1,v=0;vC||100C||100=g}function sk(){var g=100,c=3,f=0,b=100,a=0,d=100,e="";Object.defineProperties(this, {width:{enumerable:!0,get:function(){return g},set:function(h){if(!Sc(h))throw Error("Width must be between 0 and 100.");g=h}},lines:{enumerable:!0,get:function(){return c},set:function(h){if("number"!=typeof h)throw new TypeError("Lines must be set to a number.");c=h}},regionAnchorY:{enumerable:!0,get:function(){return b},set:function(h){if(!Sc(h))throw Error("RegionAnchorX must be between 0 and 100.");b=h}},regionAnchorX:{enumerable:!0,get:function(){return f},set:function(h){if(!Sc(h))throw Error("RegionAnchorY must be between 0 and 100."); f=h}},viewportAnchorY:{enumerable:!0,get:function(){return d},set:function(h){if(!Sc(h))throw Error("ViewportAnchorY must be between 0 and 100.");d=h}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(h){if(!Sc(h))throw Error("ViewportAnchorX must be between 0 and 100.");a=h}},scroll:{enumerable:!0,get:function(){return e},set:function(h){h="string"==typeof h&&!!tk[h.toLowerCase()]&&h.toLowerCase();!1===h||(e=h)}}})}function uk(g,c,f){g.setTimeout(function(){return function m(a, d,e,h,k,l){void 0===a&&(a={});void 0===d&&(d=[]);void 0===k&&(k=[]);void 0===l&&(l=!1);var n=d[0],q=d.slice(1);if("string"==typeof n)m(a,$b[n],e,h,k,l);else if(n){var w=vk(h,n);if(!w.setSource)return k.push(w),m(a,q,e,h,k,l);w.setSource(ca({},a),function(B,G){if(B)return m(a,q,e,h,k,l);k.push(w);m(G,a.type===G.type?q:$b[G.type],e,h,k,l)})}else q.length?m(a,q,e,h,k,l):l?e(a,k):m(a,$b["*"],e,h,k,!0)}(c,$b[c.type],f,g)},1)}function Qg(g,c,f,b){void 0===b&&(b=null);var a="call"+Ca(f);a=g.reduce(De(a), b);c=(b=a===yd)?null:c[f](a);for(a=g.length-1;0<=a;a--){var d=g[a];d[f]&&d[f](b,c)}return c}function De(g){return function(c,f){return c===yd?yd:f[g]?f[g](c):c}}function vk(g,c){var f=Ee[g.id()],b=null;if(null==f)return b=c(g),Ee[g.id()]=[[c,b]],b;for(var a=0;ag?0:g;var f=Math.floor(g%60),b=Math.floor(g/60%60),a=Math.floor(g/3600),d=Math.floor(c/60%60),e=Math.floor(c/3600);return!isNaN(g)&&g!==1/0||(a=b=f="-"),(a=0b?"0"+b:b)+":")+(10>f?"0"+f:f)}function kc(g,c){return void 0===c&&(c=g),Ge(g,c)}function Tc(g,c,f){return g=Number(g),Math.min(f,Math.max(c,isNaN(g)?c:g))}function Tg(g,c){if(c&&(g=c(g)),g&&"none"!==g)return g}function He(g){var c=g.el();if(c.hasAttribute("src"))return g.triggerSourceset(c.src),!0;c=g.$$("source");var f=[],b="";if(!c.length)return!1;for(var a=0;a=l)switch(k){case 0:f.setTagName(g.slice(c,h));k=6;break;case 1:e=g.slice(c,h);k=2;break;case 4:var m=g.slice(c,h).replace(/&#?\w+;/g,a);d.warning('attribute "'+ m+'" missed quot(")!!');f.add(e,m,c);case 5:k=6}else switch(k){case 2:f.tagName;"http://www.w3.org/1999/xhtml"===b[""]&&e.match(/^(?:disabled|checked|selected)$/i)||d.warning('attribute "'+e+'" missed value!! "'+e+'" instead2!!');f.add(e,e,c);c=h;k=1;break;case 5:d.warning('attribute space is required"'+e+'"!!');case 6:k=1;c=h;break;case 3:k=4;c=h;break;case 7:throw Error("elements closed character '/' and '\x3e' must be connected to");}}h++}}function bh(g,c,f){for(var b=g.tagName,a=null,d=g.length;d--;){var e= g[d],h=e.qName,k=e.value;if(0<(n=h.indexOf(":"))){var l=e.prefix=h.slice(0,n);h=h.slice(n+1);var m="xmlns"===l&&h}else l=null,m="xmlns"===h&&"";e.localName=h;!1!==m&&(null==a&&(a={},ch(f,f={})),f[m]=a[m]=k,e.uri="http://www.w3.org/2000/xmlns/",c.startPrefixMapping(m,k))}for(d=g.length;d--;)(l=(e=g[d]).prefix)&&("xml"===l&&(e.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(e.uri=f[l||""]));var n;h=0<(n=b.indexOf(":"))?(l=g.prefix=b.slice(0,n),g.localName=b.slice(n+1)):(l=null,g.localName= b);d=g.uri=f[l||""];if(c.startElement(d,h,b,g),!g.closed)return g.currentNSMap=f,g.localNSMap=a,!0;if(c.endElement(d,h,b),a)for(l in a)c.endPrefixMapping(l)}function Ck(g,c,f,b,a){if(/^(?:script|textarea)$/i.test(f)){var d=g.indexOf("\x3c/"+f+"\x3e",c);g=g.substring(c+1,d);if(/[&<]/.test(g))return/^script$/i.test(f)||(g=g.replace(/&#?\w+;/g,b)),a.characters(g,0,g.length),d}return c+1}function Dk(g,c,f,b){var a=b[f];return null==a&&((a=g.lastIndexOf("\x3c/"+f+"\x3e"))\/=]+=?|(\/?\s*>|<)/g;a.lastIndex=c;for(a.exec(g);c=a.exec(g);)if(b.push(c),c[1]){a=b;break a}a=void 0}var d= a.length;if(1G.attributes.bandwidth)){var H,Q=G.attributes,aa= G.segments,M=G.sidx;aa={attributes:(H={NAME:Q.id,BANDWIDTH:Q.bandwidth,CODECS:Q.codecs},H["PROGRAM-ID"]=1,H),uri:"",endList:"static"===(Q.type||"static"),timeline:Q.periodIndex,resolvedUri:"",targetDuration:Q.duration,segments:aa,mediaSequence:aa.length?aa[0].number:1};H=(Q.contentProtection&&(aa.contentProtection=Q.contentProtection),M&&(aa.sidx=M),aa);B[K]={language:C,autoselect:!0,"default":"main"===v,playlists:Ue([H],n),uri:""};"undefined"==typeof q&&"main"===v&&((q=G)["default"]=!0)}return B}, {});q||(w[Object.keys(w)[0]]["default"]=!0);return w}(b,c)),l.length&&(a.mediaGroups.SUBTITLES.subs=function(m,n){return void 0===n&&(n={}),m.reduce(function(q,w){var B=w.attributes.lang||"text";if(!q[B]){var G;var v=w.attributes;var C=w.segments;v=("undefined"==typeof C&&(C=[{uri:v.baseUrl,timeline:v.periodIndex,resolvedUri:v.baseUrl||"",duration:v.sourceDuration,number:0}],v.duration=v.sourceDuration),{attributes:(G={NAME:v.id,BANDWIDTH:v.bandwidth},G["PROGRAM-ID"]=1,G),uri:"",endList:"static"=== (v.type||"static"),timeline:v.periodIndex,resolvedUri:v.baseUrl||"",targetDuration:v.duration,segments:C,mediaSequence:C.length?C[0].number:1});q[B]={language:B,"default":!1,autoselect:!1,playlists:Ue([v],n),uri:""}}return q},{})}(l,c)),a}function Ch(g,c){var f,b,a,d,e,h,k,l,m,n,q,w,B=g.type;B=void 0===B?"static":B;var G=g.minimumUpdatePeriod;G=void 0===G?0:G;var v=g.media;v=void 0===v?"":v;var C=g.sourceDuration,K=g.timescale;K=void 0===K?1:K;var H=g.startNumber;H=void 0===H?1:H;for(var Q=g.periodIndex, aa=[],M=-1,Z=0;ZM&&(M=S);S&&Mha?(ha=Z+1,ha=ha===c.length?"dynamic"===B&&0>>2,dependsOn:3&g[0],isDependedOn:(192&g[1])>>>6,hasRedundancy:(48&g[1])>>>4,paddingValue:(14&g[1])>>>1,isNonSyncSample:1&g[1],degradationPriority:g[2]<<8|g[3]}}function pc(g){var c="";return c+=String.fromCharCode(g[0]),c+=String.fromCharCode(g[1]),c+=String.fromCharCode(g[2]),c+String.fromCharCode(g[3])}function Gb(){this.init= function(){var g={};this.on=function(c,f){g[c]||(g[c]=[]);g[c]=g[c].concat(f)};this.off=function(c,f){var b;return!!g[c]&&(b=g[c].indexOf(f),g[c]=g[c].slice(),g[c].splice(b,1),-1=v))switch(31&n[G]){case 6:var Q=n.subarray(G+1,G+1+v);a:{var aa=G;for(B=0;B>>4&&(c+=g[4]+1),c}function We(g){switch(g){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}function Kh(g){return g[0]<<21|g[1]<<14|g[2]<<7|g[3]}function bl(g,c,f){for(var b,a,d,e,h=0,k=Ya,l=!1;k<=g.byteLength;)if(71!==g[h]||71!==g[k]&&k!==g.byteLength)h++,k++;else{switch(b=g.subarray(h,k),oa.ts.parseType(b,c.pid)){case "pes":a= oa.ts.parsePesType(b,c.table),d=oa.ts.parsePayloadUnitStartIndicator(b),"audio"===a&&d&&(e=oa.ts.parsePesTime(b))&&(e.type="audio",f.audio.push(e),l=!0)}if(l)break;h+=Ya;k+=Ya}h=(k=g.byteLength)-Ya;for(l=!1;0<=h;)if(71!==g[h]||71!==g[k]&&k!==g.byteLength)h--,k--;else{switch(b=g.subarray(h,k),oa.ts.parseType(b,c.pid)){case "pes":a=oa.ts.parsePesType(b,c.table),d=oa.ts.parsePayloadUnitStartIndicator(b),"audio"===a&&d&&(e=oa.ts.parsePesTime(b))&&(e.type="audio",f.audio.push(e),l=!0)}if(l)break;h-=Ya; k-=Ya}}function cl(g,c,f){var b,a,d,e,h,k,l=0,m=Ya,n=!1,q=[];for(h=0;me;e++)m[(l[e]=e<<1^283*(e>>7))^e]=e;for(h=k=0;!a[h];h^=n||1,k=m[k]||1){w=(w=k^k<<1^ k<<2^k<<3^k<<4)>>8^255&w^99;var B=16843009*l[q=l[n=l[d[a[h]=w]=h]]]^65537*q^257*n^16843008*h;var G=257*l[w]^16843008*w;for(e=0;4>e;e++)f[e][h]=G=G<<24^G>>>8,b[e][w]=B=B<<24^B>>>8}for(e=0;5>e;e++)f[e]=f[e].slice(0),b[e]=b[e].slice(0)}pb=c;this._tables=[[pb[0][0].slice(),pb[0][1].slice(),pb[0][2].slice(),pb[0][3].slice(),pb[0][4].slice()],[pb[1][0].slice(),pb[1][1].slice(),pb[1][2].slice(),pb[1][3].slice(),pb[1][4].slice()]];c=this._tables[0][4];f=this._tables[1];e=g.length;h=1;if(4!==e&&6!==e&&8!== e)throw Error("Invalid aes key size");a=g.slice(0);d=[];this._key=[a,d];for(g=e;g<4*e+28;g++)b=a[g-1],(0==g%e||8===e&&4==g%e)&&(b=c[b>>>24]<<24^c[b>>16&255]<<16^c[b>>8&255]<<8^c[255&b],0==g%e&&(b=b<<8^b>>>24^h<<24,h=h<<1^283*(h>>7))),a[g]=a[g-e]^b;for(e=0;g;e++,g--)b=a[3&e?g:g-4],d[e]=4>=g||4>e?b:f[0][c[b>>>24]]^f[1][c[b>>16&255]]^f[2][c[b>>8&255]]^f[3][c[255&b]]}function bc(){Nd(this,bc);this.listeners={}}function ad(){Nd(this,ad);var g=Mh.call(this,Nh);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); g=!g||"object"!=typeof g&&"function"!=typeof g?this:g;return g.jobs=[],g.delay=1,g.timeout_=null,g}function qb(g){return g<<24|(65280&g)<<8|(16711680&g)>>8|g>>>24}function Oh(g,c,f){var b=new Int32Array(g.buffer,g.byteOffset,g.byteLength>>2);c=new el(Array.prototype.slice.call(c));g=new Uint8Array(g.byteLength);var a=new Int32Array(g.buffer),d;var e=f[0];var h=f[1];var k=f[2];f=f[3];for(d=0;dc){for(;cDate.now()}function af(g){return g.excludeUntil&& g.excludeUntil===1/0}function Qd(g){var c=Zh(g);return!g.disabled&&!c}function $h(g,c){return c.attributes&&c.attributes[g]}function bf(g,c){if(1===g.playlists.length)return!0;var f=c.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===g.playlists.filter(function(b){return!!Qd(b)&&(b.attributes.BANDWIDTH||0)g?String.fromCharCode(g):"."}function bi(g){var c={};return Object.keys(g).forEach(function(f){var b=g[f];ArrayBuffer.isView(b)?c[f]={bytes:b.buffer,byteOffset:b.byteOffset,byteLength:b.byteLength}:c[f]=b}),c} function Rd(g){var c=g.byterange||{length:1/0,offset:0};return[c.length,c.offset,g.resolvedUri].join()}function ci(g){g=Array.prototype.slice.call(g);for(var c="",f=0;fe+.25*k.duration)return null;h=k}return{segment:h,estimatedStart:h.videoTimingInfo?h.videoTimingInfo.transmuxedPresentationStart:e-h.duration,type:h.videoTimingInfo? "accurate":"estimate"}}(f,c);if(!b)return g({message:"valid programTime was not found"});if("estimate"===b.type)return g({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:b.estimatedStart});c={mediaSeconds:f};f=function(a,d){if(!d.dateTimeObject)return null;var e=a-(d.videoTimingInfo.transmuxedPresentationStart+d.videoTimingInfo.transmuxerPrependedSeconds);return new Date(d.dateTimeObject.getTime()+1E3*e)}(f,b.segment);return f&&(c.programDateTime= f.toISOString()),g(null,c)}function di(g){var c=g.programTime,f=g.playlist,b=g.retryCount,a=void 0===b?2:b,d=g.seekTo;b=g.pauseAfterSeek;var e=void 0===b||b,h=g.tech,k=g.callback;if(!k)throw Error("seekToProgramTime: callback must be provided");if("undefined"==typeof c||!f||!d)return k({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!f.endList&&!h.hasStarted_)return k({message:"player must be playing a live stream to start buffering"});if(!function(m){if(!m.segments|| 0===m.segments.length)return!1;for(var n=0;n=g&&f.removeCue(a)}function ii(g){return isNaN(g)||Math.abs(g)===1/0?Number.MAX_VALUE:g}function ll(g,c,f){var b=x.WebKitDataCue||x.VTTCue;if(c&&c.forEach(function(h){this.inbandTextTracks_[h.stream].addCue(new b(h.startTime+this.timestampOffset,h.endTime+this.timestampOffset,h.text))},g),f){var a=ii(g.mediaSource_.duration);if(f.forEach(function(h){var k=h.cueTime+this.timestampOffset;!("number"!=typeof k|| x.isNaN(k)||0>k)&&k<1/0&&h.frames.forEach(function(l){var m=new b(k,k,l.value||l.url||l.data||"");m.frame=l;m.value=l;(function(n){Object.defineProperties(n.frame,{id:{get:function(){return D.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),n.value.key}},value:{get:function(){return D.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),n.value.data}},privateData:{get:function(){return D.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."), n.value.data}}})})(m);this.metadataTrack_.addCue(m)},this)},g),g.metadataTrack_&&g.metadataTrack_.cues&&g.metadataTrack_.cues.length){g=g.metadataTrack_.cues;c=[];for(f=0;fx.performance.now()-d&&(h.preventDefault(), this.trigger("tap"))})},f.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var b,a=ka(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){a();this.clearInterval(b);b=this.setInterval(a,250)});var d=function(e){a();this.clearInterval(b)};this.on("touchmove",a);this.on("touchend",d);this.on("touchcancel",d)}},f.setTimeout=function(b,a){var d,e=this;return b=ka(this,b),this.clearTimersOnDispose_(),d=x.setTimeout(function(){e.setTimeoutIds_.has(d)&& e.setTimeoutIds_["delete"](d);b()},a),this.setTimeoutIds_.add(d),d},f.clearTimeout=function(b){return this.setTimeoutIds_.has(b)&&(this.setTimeoutIds_["delete"](b),x.clearTimeout(b)),b},f.setInterval=function(b,a){b=ka(this,b);this.clearTimersOnDispose_();var d=x.setInterval(b,a);return this.setIntervalIds_.add(d),d},f.clearInterval=function(b){return this.setIntervalIds_.has(b)&&(this.setIntervalIds_["delete"](b),x.clearInterval(b)),b},f.requestAnimationFrame=function(b){var a,d=this;return this.supportsRaf_? (this.clearTimersOnDispose_(),b=ka(this,b),a=x.requestAnimationFrame(function(){d.rafIds_.has(a)&&d.rafIds_["delete"](a);b()}),this.rafIds_.add(a),a):this.setTimeout(b,1E3/60)},f.cancelAnimationFrame=function(b){return this.supportsRaf_?(this.rafIds_.has(b)&&(this.rafIds_["delete"](b),x.cancelAnimationFrame(b)),b):this.clearTimeout(b)},f.clearTimersOnDispose_=function(){var b=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["rafIds_","cancelAnimationFrame"], ["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(a){b[a[0]].forEach(b[a[1]],b)});b.clearingTimersOnDispose_=!1}))},c.registerComponent=function(b,a){if("string"!=typeof b||!b)throw Error('Illegal component name, "'+b+'"; must be a non-empty string.');var d,e=c.getComponent("Tech");e=e&&e.isTech(a);var h=c===a||c.prototype.isPrototypeOf(a.prototype);if(e||!h)throw d=e?"techs must be registered using Tech.registerTech()":"must be a Component subclass",Error('Illegal component, "'+ b+'"; '+d+".");b=Ca(b);c.components_||(c.components_={});d=c.getComponent("Player");if("Player"===b&&d&&d.players){var k=d.players;d=Object.keys(k);if(k&&0wf&&537>Dl,Ki=/Firefox/i.test(Ja),id=/Edg/i.test(Ja),Jb=!id&&(/Chrome/i.test(Ja)||/CriOS/i.test(Ja)),Li=(tf=Ja.match(/(Chrome|CriOS)\/(\d+)/))&&tf[2]?parseFloat(tf[2]):null,jd=(uf=/MSIE\s(\d+)\.\d/.exec(Ja),!(vf=uf&&parseFloat(uf[1]))&&/Trident\/7.0/i.test(Ja)&&/rv:11.0/.test(Ja)&&(vf=11),vf),xf=/Safari/i.test(Ja)&&!Jb&&!Qb&&!id,Mi=/Windows/i.test(Ja),Bc=Fa()&&("ontouchstart"in x||x.navigator.maxTouchPoints||x.DocumentTouch&&x.document instanceof x.DocumentTouch),yf=/iPad/i.test(Ja)||xf&&Bc&&!/iPhone/i.test(Ja),zf=/iPhone/i.test(Ja)&&!yf,ub=zf||yf||Ii,Af=(xf||ub)&&!Jb,Fl=Object.freeze({__proto__:null,IS_IPOD:Ii,IOS_VERSION:El,IS_ANDROID:Qb,ANDROID_VERSION:wf,IS_NATIVE_ANDROID:Ji,IS_FIREFOX:Ki,IS_EDGE:id,IS_CHROME:Jb,CHROME_VERSION:Li,IE_VERSION:jd,IS_SAFARI:xf,IS_WINDOWS:Mi,TOUCH_ENABLED:Bc,IS_IPAD:yf,IS_IPHONE:zf,IS_IOS:ub,IS_ANY_SAFARI:Af}),Bf={prefixed:!0},Wd=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror fullscreen".split(" "), "webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror -webkit-full-screen".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror -moz-full-screen".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError -ms-fullscreen".split(" ")],Ni=Wd[0],Xd=0;for(;Xde;e++)a[String.fromCharCode(e)]=e-32;for(var e=48;58>e;e++)a[e- 48]=e;for(e=1;13>e;e++)a["f"+e]=e+111;for(e=0;10>e;e++)a["numpad "+e]=e+96;var h=f.names=f.title={};for(e in a)h[a[e]]=e;for(var k in d)a[k]=d[k]}),Cf=(fa.code,fa.codes,fa.aliases,fa.names,fa.title,"vjs-modal-dialog"),Dc=function(c){function f(a,d){var e;return(e=c.call(this,a,d)||this).opened_=e.hasBeenOpened_=e.hasBeenFilled_=!1,e.closeable(!e.options_.uncloseable),e.content(e.options_.content),e.contentEl_=X("div",{className:Cf+"-content"},{role:"document"}),e.descEl_=X("p",{className:Cf+"-description vjs-control-text", id:e.el().getAttribute("aria-describedby")}),sa(e.descEl_,e.description()),e.el_.appendChild(e.descEl_),e.el_.appendChild(e.contentEl_),e}T(f,c);var b=f.prototype;return b.createEl=function(){return c.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},b.dispose=function(){this.previouslyActiveEl_=this.descEl_=this.contentEl_=null;c.prototype.dispose.call(this)}, b.buildCSSClass=function(){return Cf+" vjs-hidden "+c.prototype.buildCSSClass.call(this)},b.label=function(){return this.localize(this.options_.label||"Modal Window")},b.description=function(){var a=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(a+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),a},b.open=function(){if(!this.opened_){var a=this.player();this.trigger("beforemodalopen");this.opened_= !0;!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill();this.wasPlaying_=!a.paused();this.options_.pauseOnOpen&&this.wasPlaying_&&a.pause();this.on("keydown",this.handleKeyDown);this.hadControls_=a.controls();a.controls(!1);this.show();this.conditionalFocus_();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=!0}},b.opened=function(a){return"boolean"==typeof a&&this[a?"open":"close"](),this.opened_},b.close=function(){if(this.opened_){var a= this.player();this.trigger("beforemodalclose");this.opened_=!1;this.wasPlaying_&&this.options_.pauseOnOpen&&a.play();this.off("keydown",this.handleKeyDown);this.hadControls_&&a.controls(!0);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.conditionalBlur_();this.options_.temporary&&this.dispose()}},b.closeable=function(a){if("boolean"==typeof a){a=this.closeable_=!!a;var d=this.getChild("closeButton");if(a&&!d){var e=this.contentEl_;this.contentEl_=this.el_; d=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=e;this.on(d,"close",this.close)}!a&&d&&(this.off(d,"close",this.close),this.removeChild(d),d.dispose())}return this.closeable_},b.fill=function(){this.fillWith(this.content())},b.fillWith=function(a){var d=this.contentEl(),e=d.parentNode,h=d.nextSibling;this.trigger("beforemodalfill");this.hasBeenFilled_=!0;e.removeChild(d);this.empty();sg(d,a);this.trigger("modalfill");h?e.insertBefore(d,h):e.appendChild(d);(a=this.getChild("closeButton"))&& e.appendChild(a.el_)},b.empty=function(){this.trigger("beforemodalempty");Nc(this.contentEl());this.trigger("modalempty")},b.content=function(a){return"undefined"!=typeof a&&(this.content_=a),this.content_},b.conditionalFocus_=function(){var a=J.activeElement,d=this.player_.el_;this.previouslyActiveEl_=null;!d.contains(a)&&d!==a||(this.previouslyActiveEl_=a,this.focus())},b.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},b.handleKeyDown= function(a){if(a.stopPropagation(),fa.isEventKey(a,"Escape")&&this.closeable())return a.preventDefault(),void this.close();if(fa.isEventKey(a,"Tab")){for(var d,e=this.focusableEls_(),h=this.el_.querySelector(":focus"),k=0;k=q?w.push(v):v.startTime===v.endTime&&v.startTime<=q&&v.startTime+.5>=q&&w.push(v)}if(m=!1,w.length!==this.activeCues_.length)m=!0;else for(q=0;q=f)&&(this.set(c,f),!0)}};var ze=J.createElement("textarea"),mk={c:"span",i:"i", b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},Ng={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)"},nk={v:"title",lang:"lang"},Mg={rt:"ruby"},Og=[[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]];Ae.prototype.applyStyles=function(c,f){for(var b in f=f||this.div,c)c.hasOwnProperty(b)&&(f.style[b]=c[b])};Ae.prototype.formatStyle=function(c,f){return 0===c?0:c+f};(Be.prototype=ye(Ae.prototype)).constructor=Be;Va.prototype.move=function(c, f){switch(f=void 0!==f?f:this.lineHeight,c){case "+x":this.left+=f;this.right+=f;break;case "-x":this.left-=f;this.right-=f;break;case "+y":this.top+=f;this.bottom+=f;break;case "-y":this.top-=f,this.bottom-=f}};Va.prototype.overlaps=function(c){return this.leftc.left&&this.topc.top};Va.prototype.overlapsAny=function(c){for(var f=0;f=c.top&&this.bottom<= c.bottom&&this.left>=c.left&&this.right<=c.right};Va.prototype.overlapsOppositeAxis=function(c,f){switch(f){case "+x":return this.leftc.right;case "+y":return this.topc.bottom}};Va.prototype.intersectPercentage=function(c){return Math.max(0,Math.min(this.right,c.right)-Math.max(this.left,c.left))*Math.max(0,Math.min(this.bottom,c.bottom)-Math.max(this.top,c.top))/(this.height*this.width)};Va.prototype.toCSSCompatValues=function(c){return{top:this.top- c.top,bottom:c.bottom-this.bottom,left:this.left-c.left,right:c.right-this.right,height:this.height,width:this.width}};Va.getSimpleBoxPosition=function(c){var f=c.div?c.div.offsetHeight:c.tagName?c.offsetHeight:0,b=c.div?c.div.offsetWidth:c.tagName?c.offsetWidth:0,a=c.div?c.div.offsetTop:c.tagName?c.offsetTop:0;return{left:(c=c.div?c.div.getBoundingClientRect():c.tagName?c.getBoundingClientRect():c).left,right:c.right,top:c.top||a,height:c.height||f,bottom:c.bottom||a+(c.height||f),width:c.width|| b}};Rc.StringDecoder=function(){return{decode:function(c){if(!c)return"";if("string"!=typeof c)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(c))}}};Rc.convertCueToDOMTree=function(c,f){return c&&f?Lg(c,f):null};Rc.processCues=function(c,f,b){if(!c||!f||!b)return null;for(;b.firstChild;)b.removeChild(b.firstChild);var a=c.document.createElement("div");if(a.style.position="absolute",a.style.left="0",a.style.right="0",a.style.top="0",a.style.bottom="0",a.style.margin= "1.5%",b.appendChild(a),function(k){for(var l=0;lh.length;l--)d.el_.removeChild(e[l-1]);e.length=h.length})},f}(N);N.registerComponent("LoadProgressBar",Zl);var $l=function(c){function f(a,d){var e;return(e=c.call(this,a,d)||this).update=Vb(ka(ja(e),e.update),30),e}T(f,c);var b=f.prototype;return b.createEl=function(){return c.prototype.createEl.call(this, "div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},b.update=function(a,d,e){var h=ab(this.el_),k=ab(this.player_.el()),l=a.width*d;k&&h&&(d=a.left-k.left+l,a=a.width-l+(k.right-a.right),k=h.width/2,dk?k=0:k>h.width&&(k=h.width),this.el_.style.right="-"+k+"px",this.write(e))},b.write=function(a){sa(this.el_,a)},b.updateTime=function(a,d,e,h){var k=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_);this.rafId_=this.requestAnimationFrame(function(){var l=k.player_.duration(); if(k.player_.liveTracker&&k.player_.liveTracker.isLive()){l=k.player_.liveTracker.liveWindow();var m=l-d*l;l=(1>m?"":"-")+kc(m,l)}else l=kc(e,l);k.update(a,d,l);h&&h()})},f}(N);N.registerComponent("TimeTooltip",$l);var If=function(c){function f(a,d){var e;return(e=c.call(this,a,d)||this).update=Vb(ka(ja(e),e.update),30),e}T(f,c);var b=f.prototype;return b.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},b.update= function(a,d){var e=this.getChild("timeTooltip");if(e){var h=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();e.updateTime(a,d,h)}},f}(N);If.prototype.options_={children:[]};ub||Qb||If.prototype.options_.children.push("timeTooltip");N.registerComponent("PlayProgressBar",If);var Yi=function(c){function f(a,d){var e;return(e=c.call(this,a,d)||this).update=Vb(ka(ja(e),e.update),30),e}T(f,c);var b=f.prototype;return b.createEl=function(){return c.prototype.createEl.call(this, "div",{className:"vjs-mouse-display"})},b.update=function(a,d){var e=this,h=d*this.player_.duration();this.getChild("timeTooltip").updateTime(a,d,h,function(){e.el_.style.left=a.width*d+"px"})},f}(N);Yi.prototype.options_={children:["timeTooltip"]};N.registerComponent("MouseTimeDisplay",Yi);var Jf=function(c){function f(a,d){var e;return(e=c.call(this,a,d)||this).setEventHandlers_(),e}T(f,c);var b=f.prototype;return b.setEventHandlers_=function(){this.update_=ka(this,this.update);this.update=Vb(this.update_, 30);this.on(this.player_,["ended","durationchange","timeupdate"],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 J&&"visibilityState"in J&&this.on(J,"visibilitychange",this.toggleVisibility_)},b.toggleVisibility_=function(a){J.hidden?this.disableInterval_(a):(this.enableInterval_(),this.update())}, b.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},b.disableInterval_=function(a){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&a&&"ended"!==a.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},b.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},b.update=function(a){var d=this,e=c.prototype.update.call(this); return this.requestAnimationFrame(function(){var h=d.player_.ended()?d.player_.duration():d.getCurrentTime_(),k=d.player_.liveTracker,l=d.player_.duration();k&&k.isLive()&&(l=d.player_.liveTracker.liveCurrentTime());d.percent_!==e&&(d.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),d.percent_=e);d.currentTime_===h&&d.duration_===l||(d.el_.setAttribute("aria-valuetext",d.localize("progress bar timing: currentTime\x3d{1} duration\x3d{2}",[kc(h,l),kc(l,l)],"{1} of {2}")),d.currentTime_=h,d.duration_= l);d.bar&&d.bar.update(ab(d.el()),d.getProgress())}),e},b.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},b.getPercent=function(){var a,d=this.getCurrentTime_(),e=this.player_.liveTracker;return e&&e.isLive()?(a=(d-e.seekableStart())/e.liveWindow(),e.atLiveEdge()&&(a=1)):a=d/this.player_.duration(),a},b.handleMouseDown=function(a){ic(a)&&(a.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(), this.player_.pause(),c.prototype.handleMouseDown.call(this,a))},b.handleMouseMove=function(a){if(ic(a)){var d;a=this.calculateDistance(a);var e=this.player_.liveTracker;if(e&&e.isLive()){if(.99<=a)return void e.seekToLiveEdge();var h=e.seekableStart(),k=e.liveCurrentTime();if(k<=(d=h+a*e.liveWindow())&&(d=k),d<=h&&(d=h+.1),d===1/0)return}else(d=a*this.player_.duration())===this.player_.duration()&&(d-=.1);this.player_.currentTime(d)}},b.enable=function(){c.prototype.enable.call(this);var a=this.getChild("mouseTimeDisplay"); a&&a.show()},b.disable=function(){c.prototype.disable.call(this);var a=this.getChild("mouseTimeDisplay");a&&a.hide()},b.handleMouseUp=function(a){c.prototype.handleMouseUp.call(this,a);a&&a.stopPropagation();this.player_.scrubbing(!1);this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0});this.videoWasPlaying?Zb(this.player_.play()):this.update_()},b.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},b.stepBack=function(){this.player_.currentTime(this.player_.currentTime()- 5)},b.handleAction=function(a){this.player_.paused()?this.player_.play():this.player_.pause()},b.handleKeyDown=function(a){fa.isEventKey(a,"Space")||fa.isEventKey(a,"Enter")?(a.preventDefault(),a.stopPropagation(),this.handleAction(a)):fa.isEventKey(a,"Home")?(a.preventDefault(),a.stopPropagation(),this.player_.currentTime(0)):fa.isEventKey(a,"End")?(a.preventDefault(),a.stopPropagation(),this.player_.currentTime(this.player_.duration())):/^[0-9]$/.test(fa(a))?(a.preventDefault(),a.stopPropagation(), a=10*(fa.codes[fa(a)]-fa.codes[0])/100,this.player_.currentTime(this.player_.duration()*a)):fa.isEventKey(a,"PgDn")?(a.preventDefault(),a.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):fa.isEventKey(a,"PgUp")?(a.preventDefault(),a.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):c.prototype.handleKeyDown.call(this,a)},b.dispose=function(){this.disableInterval_();this.off(this.player_,["ended","durationchange","timeupdate"],this.update);this.player_.liveTracker&& this.on(this.player_.liveTracker,"liveedgechange",this.update);this.off(this.player_,["playing"],this.enableInterval_);this.off(this.player_,["ended","pause","waiting"],this.disableInterval_);"hidden"in J&&"visibilityState"in J&&this.off(J,"visibilitychange",this.toggleVisibility_);c.prototype.dispose.call(this)},f}(Hf);Jf.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};ub||Qb||Jf.prototype.options_.children.splice(1,0,"mouseTimeDisplay");N.registerComponent("SeekBar", Jf);var Zi=function(c){function f(a,d){var e;return(e=c.call(this,a,d)||this).handleMouseMove=Vb(ka(ja(e),e.handleMouseMove),30),e.throttledHandleMouseSeek=Vb(ka(ja(e),e.handleMouseSeek),30),e.enable(),e}T(f,c);var b=f.prototype;return b.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},b.handleMouseMove=function(a){var d=this.getChild("seekBar");if(d){var e=d.getChild("playProgressBar"),h=d.getChild("mouseTimeDisplay");if(e||h){var k= d.el(),l=ab(k);a=Tb(k,a).x;a=Tc(0,1,a);h&&h.update(l,a);e&&e.update(l,d.getProgress())}}},b.handleMouseSeek=function(a){var d=this.getChild("seekBar");d&&d.handleMouseMove(a)},b.enabled=function(){return this.enabled_},b.disable=function(){this.children().forEach(function(a){return a.disable&&a.disable()});this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)}, b.enable=function(){this.children().forEach(function(a){return a.enable&&a.enable()});this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},b.handleMouseDown=function(a){var d=this.el_.ownerDocument,e=this.getChild("seekBar");e&&e.handleMouseDown(a);this.on(d,"mousemove",this.throttledHandleMouseSeek);this.on(d,"touchmove",this.throttledHandleMouseSeek);this.on(d,"mouseup",this.handleMouseUp); this.on(d,"touchend",this.handleMouseUp)},b.handleMouseUp=function(a){var d=this.el_.ownerDocument,e=this.getChild("seekBar");e&&e.handleMouseUp(a);this.off(d,"mousemove",this.throttledHandleMouseSeek);this.off(d,"touchmove",this.throttledHandleMouseSeek);this.off(d,"mouseup",this.handleMouseUp);this.off(d,"touchend",this.handleMouseUp)},f}(N);Zi.prototype.options_={children:["seekBar"]};N.registerComponent("ProgressControl",Zi);var $i=function(c){function f(a,d){var e;return(e=c.call(this,a,d)|| this).on(a,["enterpictureinpicture","leavepictureinpicture"],e.handlePictureInPictureChange),J.pictureInPictureEnabled||e.disable(),e}T(f,c);var b=f.prototype;return b.buildCSSClass=function(){return"vjs-picture-in-picture-control "+c.prototype.buildCSSClass.call(this)},b.handlePictureInPictureChange=function(a){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture")},b.handleClick=function(a){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture(): this.player_.requestPictureInPicture()},f}(vb);$i.prototype.controlText_="Picture-in-Picture";N.registerComponent("PictureInPictureToggle",$i);var aj=function(c){function f(a,d){var e;return(e=c.call(this,a,d)||this).on(a,"fullscreenchange",e.handleFullscreenChange),!1===J[a.fsApi_.fullscreenEnabled]&&e.disable(),e}T(f,c);var b=f.prototype;return b.buildCSSClass=function(){return"vjs-fullscreen-control "+c.prototype.buildCSSClass.call(this)},b.handleFullscreenChange=function(a){this.player_.isFullscreen()? this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},b.handleClick=function(a){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},f}(vb);aj.prototype.controlText_="Fullscreen";N.registerComponent("FullscreenToggle",aj);var am=function(c){function f(){return c.apply(this,arguments)||this}return T(f,c),f.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'\x3cspan class\x3d"vjs-control-text"\x3e\x3c/span\x3e'})}, f}(N);N.registerComponent("VolumeLevel",am);var Kf=function(c){function f(a,d){var e;return(e=c.call(this,a,d)||this).on("slideractive",e.updateLastVolume_),e.on(a,"volumechange",e.updateARIAAttributes),a.ready(function(){return e.updateARIAAttributes()}),e}T(f,c);var b=f.prototype;return b.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},b.handleMouseDown=function(a){ic(a)&& c.prototype.handleMouseDown.call(this,a)},b.handleMouseMove=function(a){ic(a)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(a)))},b.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},b.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},b.stepForward=function(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)},b.stepBack=function(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)},b.updateARIAAttributes=function(a){a= this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",a);this.el_.setAttribute("aria-valuetext",a+"%")},b.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},b.updateLastVolume_=function(){var a=this,d=this.player_.volume();this.one("sliderinactive",function(){0===a.player_.volume()&&a.player_.lastVolume_(d)})},f}(Hf);Kf.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};Kf.prototype.playerEvent="volumechange";N.registerComponent("VolumeBar", Kf);var bj=function(c){function f(a,d){var e;return void 0===d&&(d={}),d.vertical=d.vertical||!1,"undefined"!=typeof d.volumeBar&&!yb(d.volumeBar)||(d.volumeBar=d.volumeBar||{},d.volumeBar.vertical=d.vertical),e=c.call(this,a,d)||this,function(h,k){k.tech_&&!k.tech_.featuresVolumeControl&&h.addClass("vjs-hidden");h.on(k,"loadstart",function(){k.tech_.featuresVolumeControl?h.removeClass("vjs-hidden"):h.addClass("vjs-hidden")})}(ja(e),a),e.throttledHandleMouseMove=Vb(ka(ja(e),e.handleMouseMove),30), e.on("mousedown",e.handleMouseDown),e.on("touchstart",e.handleMouseDown),e.on(e.volumeBar,["focus","slideractive"],function(){e.volumeBar.addClass("vjs-slider-active");e.addClass("vjs-slider-active");e.trigger("slideractive")}),e.on(e.volumeBar,["blur","sliderinactive"],function(){e.volumeBar.removeClass("vjs-slider-active");e.removeClass("vjs-slider-active");e.trigger("sliderinactive")}),e}T(f,c);var b=f.prototype;return b.createEl=function(){var a="vjs-volume-horizontal";return this.options_.vertical&& (a="vjs-volume-vertical"),c.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+a})},b.handleMouseDown=function(a){a=this.el_.ownerDocument;this.on(a,"mousemove",this.throttledHandleMouseMove);this.on(a,"touchmove",this.throttledHandleMouseMove);this.on(a,"mouseup",this.handleMouseUp);this.on(a,"touchend",this.handleMouseUp)},b.handleMouseUp=function(a){a=this.el_.ownerDocument;this.off(a,"mousemove",this.throttledHandleMouseMove);this.off(a,"touchmove",this.throttledHandleMouseMove); this.off(a,"mouseup",this.handleMouseUp);this.off(a,"touchend",this.handleMouseUp)},b.handleMouseMove=function(a){this.volumeBar.handleMouseMove(a)},f}(N);bj.prototype.options_={children:["volumeBar"]};N.registerComponent("VolumeControl",bj);var cj=function(c){function f(a,d){var e;return e=c.call(this,a,d)||this,function(h,k){k.tech_&&!k.tech_.featuresMuteControl&&h.addClass("vjs-hidden");h.on(k,"loadstart",function(){k.tech_.featuresMuteControl?h.removeClass("vjs-hidden"):h.addClass("vjs-hidden")})}(ja(e), a),e.on(a,["loadstart","volumechange"],e.update),e}T(f,c);var b=f.prototype;return b.buildCSSClass=function(){return"vjs-mute-control "+c.prototype.buildCSSClass.call(this)},b.handleClick=function(a){a=this.player_.volume();var d=this.player_.lastVolume_();0===a?(this.player_.volume(.1>d?.1:d),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},b.update=function(a){this.updateIcon_();this.updateControlText_()},b.updateIcon_=function(){var a=this.player_.volume(),d=3;ub&&this.player_.tech_&& this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted);0===a||this.player_.muted()?d=0:.33>a?d=1:.67>a&&(d=2);for(a=0;4>a;a++)Ka(this.el_,"vjs-vol-"+a);Y(this.el_,"vjs-vol-"+d)},b.updateControlText_=function(){var a=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==a&&this.controlText(a)},f}(vb);cj.prototype.controlText_="Mute";N.registerComponent("MuteToggle",cj);var dj=function(c){function f(a,d){var e;return void 0===d&&(d={}),"undefined"!=typeof d.inline? d.inline=d.inline:d.inline=!0,"undefined"!=typeof d.volumeControl&&!yb(d.volumeControl)||(d.volumeControl=d.volumeControl||{},d.volumeControl.vertical=!d.inline),(e=c.call(this,a,d)||this).on(a,["loadstart"],e.volumePanelState_),e.on(e.muteToggle,"keyup",e.handleKeyPress),e.on(e.volumeControl,"keyup",e.handleVolumeControlKeyUp),e.on("keydown",e.handleKeyPress),e.on("mouseover",e.handleMouseOver),e.on("mouseout",e.handleMouseOut),e.on(e.volumeControl,["slideractive"],e.sliderActive_),e.on(e.volumeControl, ["sliderinactive"],e.sliderInactive_),e}T(f,c);var b=f.prototype;return b.sliderActive_=function(){this.addClass("vjs-slider-active")},b.sliderInactive_=function(){this.removeClass("vjs-slider-active")},b.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")},b.createEl=function(){var a="vjs-volume-panel-horizontal"; return this.options_.inline||(a="vjs-volume-panel-vertical"),c.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+a})},b.dispose=function(){this.handleMouseOut();c.prototype.dispose.call(this)},b.handleVolumeControlKeyUp=function(a){fa.isEventKey(a,"Esc")&&this.muteToggle.focus()},b.handleMouseOver=function(a){this.addClass("vjs-hover");kb(J,"keyup",ka(this,this.handleKeyPress))},b.handleMouseOut=function(a){this.removeClass("vjs-hover");Pa(J,"keyup",ka(this,this.handleKeyPress))}, b.handleKeyPress=function(a){fa.isEventKey(a,"Esc")&&this.handleMouseOut()},f}(N);dj.prototype.options_={children:["muteToggle","volumeControl"]};N.registerComponent("VolumePanel",dj);var Lf=function(c){function f(a,d){var e;return e=c.call(this,a,d)||this,d&&(e.menuButton_=d.menuButton),e.focusedChild_=-1,e.on("keydown",e.handleKeyDown),e.boundHandleBlur_=ka(ja(e),e.handleBlur),e.boundHandleTapClick_=ka(ja(e),e.handleTapClick),e}T(f,c);var b=f.prototype;return b.addEventListenerForItem=function(a){a instanceof N&&(this.on(a,"blur",this.boundHandleBlur_),this.on(a,["tap","click"],this.boundHandleTapClick_))},b.removeEventListenerForItem=function(a){a instanceof N&&(this.off(a,"blur",this.boundHandleBlur_),this.off(a,["tap","click"],this.boundHandleTapClick_))},b.removeChild=function(a){"string"==typeof a&&(a=this.getChild(a));this.removeEventListenerForItem(a);c.prototype.removeChild.call(this,a)},b.addItem=function(a){(a=this.addChild(a))&&this.addEventListenerForItem(a)},b.createEl=function(){this.contentEl_= X(this.options_.contentElType||"ul",{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");var a=c.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return a.appendChild(this.contentEl_),kb(a,"click",function(d){d.preventDefault();d.stopImmediatePropagation()}),a},b.dispose=function(){this.boundHandleTapClick_=this.boundHandleBlur_=this.contentEl_=null;c.prototype.dispose.call(this)},b.handleBlur=function(a){var d=a.relatedTarget||J.activeElement; this.children().some(function(e){return e.el()===d})||(a=this.menuButton_)&&a.buttonPressed_&&d!==a.el().firstChild&&a.unpressButton()},b.handleTapClick=function(a){if(this.menuButton_){this.menuButton_.unpressButton();var d=this.children();Array.isArray(d)&&(d=d.filter(function(e){return e.el()===a.target})[0])&&"CaptionSettingsMenuItem"!==d.name()&&this.menuButton_.focus()}},b.handleKeyDown=function(a){fa.isEventKey(a,"Left")||fa.isEventKey(a,"Down")?(a.preventDefault(),a.stopPropagation(),this.stepForward()): (fa.isEventKey(a,"Right")||fa.isEventKey(a,"Up"))&&(a.preventDefault(),a.stopPropagation(),this.stepBack())},b.stepForward=function(){var a=0;void 0!==this.focusedChild_&&(a=this.focusedChild_+1);this.focus(a)},b.stepBack=function(){var a=0;void 0!==this.focusedChild_&&(a=this.focusedChild_-1);this.focus(a)},b.focus=function(a){void 0===a&&(a=0);var d=this.children().slice();d.length&&d[0].className&&/vjs-menu-title/.test(d[0].className)&&d.shift();0a?a=0:a>=d.length&&(a=d.length-1), d[this.focusedChild_=a].el_.focus())},f}(N);N.registerComponent("Menu",Lf);var Mf=function(c){function f(a,d){var e;void 0===d&&(d={});(e=c.call(this,a,d)||this).menuButton_=new vb(a,d);e.menuButton_.controlText(e.controlText_);e.menuButton_.el_.setAttribute("aria-haspopup","true");var h=vb.prototype.buildCSSClass();return e.menuButton_.el_.className=e.buildCSSClass()+" "+h,e.menuButton_.removeClass("vjs-control"),e.addChild(e.menuButton_),e.update(),e.enabled_=!0,e.on(e.menuButton_,"tap",e.handleClick), e.on(e.menuButton_,"click",e.handleClick),e.on(e.menuButton_,"keydown",e.handleKeyDown),e.on(e.menuButton_,"mouseenter",function(){e.addClass("vjs-hover");e.menu.show();kb(J,"keyup",ka(ja(e),e.handleMenuKeyUp))}),e.on("mouseleave",e.handleMouseLeave),e.on("keydown",e.handleSubmenuKeyDown),e}T(f,c);var b=f.prototype;return b.update=function(){var a=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu));this.menu=a;this.addChild(a);this.buttonPressed_=!1;this.menuButton_.el_.setAttribute("aria-expanded", "false");this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},b.createMenu=function(){var a=new Lf(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var d=X("li",{className:"vjs-menu-title",innerHTML:Ca(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;d=new N(this.player_,{el:d});a.addItem(d)}if(this.items=this.createItems(),this.items)for(d=0;d=(d=c.call(this,b,a)||this).items.length&&d.hide(),!e)return ja(d);var h=ka(ja(d),d.update);return e.addEventListener("removetrack",h),e.addEventListener("addtrack",h),d.player_.on("ready",h),d.player_.on("dispose",function(){e.removeEventListener("removetrack", h);e.removeEventListener("addtrack",h)}),d}return T(f,c),f}(Mf);N.registerComponent("TrackButton",Nf);var bm="Tab Esc Up Down Right Left".split(" "),md=function(c){function f(a,d){var e;return(e=c.call(this,a,d)||this).selectable=d.selectable,e.isSelected_=d.selected||!1,e.multiSelectable=d.multiSelectable,e.selected(e.isSelected_),e.selectable?e.multiSelectable?e.el_.setAttribute("role","menuitemcheckbox"):e.el_.setAttribute("role","menuitemradio"):e.el_.setAttribute("role","menuitem"),e}T(f,c); var b=f.prototype;return b.createEl=function(a,d,e){return this.nonIconControl=!0,c.prototype.createEl.call(this,"li",ca({className:"vjs-menu-item",innerHTML:'\x3cspan class\x3d"vjs-menu-item-text"\x3e'+this.localize(this.options_.label)+"\x3c/span\x3e",tabIndex:-1},d),e)},b.handleKeyDown=function(a){bm.some(function(d){return fa.isEventKey(a,d)})||c.prototype.handleKeyDown.call(this,a)},b.handleClick=function(a){this.selected(!0)},b.selected=function(a){this.selectable&&(a?(this.addClass("vjs-selected"), this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},f}($d);N.registerComponent("MenuItem",md);var nd=function(c){function f(a,d){function e(){for(var q=arguments.length,w=Array(q),B=0;Ba){e=d[h];break}this.player().playbackRate(e)},b.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},b.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0this.options_.liveTolerance;this.timeupdateSeen_&&a!==1/0||(d=!1);d!==this.behindLiveEdge_&&(this.behindLiveEdge_=d,this.trigger("liveedgechange"))}},b.handleDurationchange=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},b.startTracking=function(){this.isTracking()|| (this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLive_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLive_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked):(this.one(this.player_,"play",this.handlePlay),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate)))},b.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0;this.on(this.player_,"seeked",this.handleSeeked)},b.handleSeeked= function(){var a=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=!this.skipNextSeeked_&&2Li)return!1;try{var c=V.TEST_VID.playbackRate;return V.TEST_VID.playbackRate=c/2+.1,c!==V.TEST_VID.playbackRate}catch(f){return!1}};V.canOverrideAttributes= function(){try{var c=function(){};Object.defineProperty(J.createElement("video"),"src",{get:c,set:c});Object.defineProperty(J.createElement("audio"),"src",{get:c,set:c});Object.defineProperty(J.createElement("video"),"innerHTML",{get:c,set:c});Object.defineProperty(J.createElement("audio"),"innerHTML",{get:c,set:c})}catch(f){return!1}return!0};V.supportsNativeTextTracks=function(){return Af||ub&&Jb};V.supportsNativeVideoTracks=function(){return!(!V.TEST_VID||!V.TEST_VID.videoTracks)};V.supportsNativeAudioTracks= function(){return!(!V.TEST_VID||!V.TEST_VID.audioTracks)};V.Events="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange resize volumechange".split(" ");[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"], ["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(c){var f=c[1];Ie(V.prototype,c[0],function(){return V[f]()},!0)});V.prototype.movingMediaElementInDOM=!ub;V.prototype.featuresFullscreenResize=!0;V.prototype.featuresProgressEvents=!0;V.prototype.featuresTimeupdateEvents=!0;V.patchCanPlayType=function(){4<=wf&&!Ki&&!Jb&&(be=V.TEST_VID&&V.TEST_VID.constructor.prototype.canPlayType,V.TEST_VID.constructor.prototype.canPlayType= function(c){return c&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(c)?"maybe":be.call(this,c)})};V.unpatchCanPlayType=function(){var c=V.TEST_VID.constructor.prototype.canPlayType;return be&&(V.TEST_VID.constructor.prototype.canPlayType=be),c};V.patchCanPlayType();V.disposeMediaElement=function(c){if(c){for(c.parentNode&&c.parentNode.removeChild(c);c.hasChildNodes();)c.removeChild(c.firstChild);c.removeAttribute("src");if("function"==typeof c.load)try{c.load()}catch(f){}}};V.resetMediaElement= function(c){if(c){for(var f=c.querySelectorAll("source"),b=f.length;b--;)c.removeChild(f[b]);c.removeAttribute("src");if("function"==typeof c.load)try{c.load()}catch(a){}}};"muted defaultMuted autoplay controls loop playsinline".split(" ").forEach(function(c){V.prototype[c]=function(){return this.el_[c]||this.el_.hasAttribute(c)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(c){V.prototype["set"+Ca(c)]=function(f){(this.el_[c]=f)?this.el_.setAttribute(c,c):this.el_.removeAttribute(c)}}); "paused currentTime buffered volume poster preload error seeking seekable ended playbackRate defaultPlaybackRate played networkState readyState videoWidth videoHeight crossOrigin".split(" ").forEach(function(c){V.prototype[c]=function(){return this.el_[c]}});"volume src poster preload playbackRate defaultPlaybackRate crossOrigin".split(" ").forEach(function(c){V.prototype["set"+Ca(c)]=function(f){this.el_[c]=f}});["pause","load","play"].forEach(function(c){V.prototype[c]=function(){return this.el_[c]()}}); ta.withSourceHandlers(V);V.nativeSourceHandler={};V.nativeSourceHandler.canPlayType=function(c){try{return V.TEST_VID.canPlayType(c)}catch(f){return""}};V.nativeSourceHandler.canHandleSource=function(c,f){if(c.type)return V.nativeSourceHandler.canPlayType(c.type);if(c.src){var b=ve(c.src);return V.nativeSourceHandler.canPlayType("video/"+b)}return""};V.nativeSourceHandler.handleSource=function(c,f,b){f.setSrc(c.src)};V.nativeSourceHandler.dispose=function(){};V.registerSourceHandler(V.nativeSourceHandler); ta.registerTech("Html5",V);var vj="progress abort suspend emptied stalled loadedmetadata loadeddata timeupdate resize volumechange texttrackchange".split(" "),Xf={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Yf="tiny xsmall small medium large xlarge huge".split(" "),ce={};Yf.forEach(function(c){var f="x"===c.charAt(0)?"x-"+c.substring(1):c;ce[c]="vjs-layout-"+f});var hm={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Da=function(c){function f(a, d,e){var h;if(a.id=a.id||d.id||"vjs_video_"+Lb++,(d=ca(f.getTagSettings(a),d)).initChildren=!1,d.createEl=!1,d.evented=!1,d.reportTouchActivity=!1,!d.language)if("function"==typeof a.closest){var k=a.closest("[lang]");k&&k.getAttribute&&(d.language=k.getAttribute("lang"))}else for(k=a;k&&1===k.nodeType;){if(za(k).hasOwnProperty("lang")){d.language=k.getAttribute("lang");break}k=k.parentNode}if((h=c.call(this,null,d,e)||this).boundDocumentFullscreenChange_=ka(ja(h),h.documentFullscreenChange_),h.boundFullWindowOnEscKey_= ka(ja(h),h.fullWindowOnEscKey),h.isFullscreen_=!1,h.log=Di(h.id_),h.fsApi_=Bf,h.isPosterFromTech_=!1,h.queuedCallbacks_=[],h.isReady_=!1,h.hasStarted_=!1,h.userActive_=!1,!h.options_||!h.options_.techOrder||!h.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(h.tag=a,h.tagAttributes=a&&za(a),h.language(h.options_.language),d.languages){var l={};Object.getOwnPropertyNames(d.languages).forEach(function(m){l[m.toLowerCase()]= d.languages[m]});h.languages_=l}else h.languages_=f.prototype.options_.languages;h.resetCache_();h.poster_=d.poster||"";h.controls_=!!d.controls;a.controls=!1;a.removeAttribute("controls");h.changingSrc_=!1;h.playCallbacks_=[];h.playTerminatedQueue_=[];a.hasAttribute("autoplay")?h.autoplay(!0):h.autoplay(h.options_.autoplay);d.plugins&&Object.keys(d.plugins).forEach(function(m){if("function"!=typeof h[m])throw Error('plugin "'+m+'" does not exist');});h.scrubbing_=!1;h.el_=h.createEl();qe(ja(h),{eventBusKey:"el_"}); h.fsApi_.requestFullscreen&&(kb(J,h.fsApi_.fullscreenchange,h.boundDocumentFullscreenChange_),h.on(h.fsApi_.fullscreenchange,h.boundDocumentFullscreenChange_));h.fluid_&&h.on("playerreset",h.updateStyleEl_);e=ua(h.options_);d.plugins&&Object.keys(d.plugins).forEach(function(m){h[m](d.plugins[m])});h.options_.playerOptions=e;h.middleware_=[];h.initChildren();h.isAudio("audio"===a.nodeName.toLowerCase());h.controls()?h.addClass("vjs-controls-enabled"):h.addClass("vjs-controls-disabled");h.el_.setAttribute("role", "region");h.isAudio()?h.el_.setAttribute("aria-label",h.localize("Audio Player")):h.el_.setAttribute("aria-label",h.localize("Video Player"));h.isAudio()&&h.addClass("vjs-audio");h.flexNotSupported_()&&h.addClass("vjs-no-flex");Bc&&h.addClass("vjs-touch-enabled");ub||h.addClass("vjs-workinghover");f.players[h.id_]=ja(h);return h.addClass("vjs-v7"),h.userActive(!0),h.reportUserActivity(),h.one("play",h.listenForUserActivity_),h.on("stageclick",h.handleStageClick_),h.on("keydown",h.handleKeyDown),h.breakpoints(h.options_.breakpoints), h.responsive(h.options_.responsive),h}T(f,c);var b=f.prototype;return b.dispose=function(){var a=this;this.trigger("dispose");this.off("dispose");Pa(J,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_);Pa(J,"keydown",this.boundFullWindowOnEscKey_);this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null);f.players[this.id_]=null;this.tag&&this.tag.player&&(this.tag.player=null);this.el_&&this.el_.player&&(this.el_.player=null); this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_="");this.playerElIngest_&&(this.playerElIngest_=null);this.tag&&(this.tag=null);Ee[this.id()]=null;Za.names.forEach(function(d){(d=a[Za[d].getterName]())&&d.off&&d.off()});c.prototype.dispose.call(this)},b.createEl=function(){var a,d=this.tag,e=this.playerElIngest_=d.parentNode&&d.parentNode.hasAttribute&&d.parentNode.hasAttribute("data-vjs-player"),h="video-js"===this.tag.tagName.toLowerCase();e?a=this.el_=d.parentNode:h||(a= this.el_=c.prototype.createEl.call(this,"div"));var k=za(d);if(h){a=this.el_=d;for(d=this.tag=J.createElement("video");a.children.length;)d.appendChild(a.firstChild);Ga(a,"video-js")||Y(a,"video-js");a.appendChild(d);e=this.playerElIngest_=a;Object.keys(a).forEach(function(q){try{d[q]=a[q]}catch(w){}})}if(d.setAttribute("tabindex","-1"),k.tabindex="-1",(jd||Jb&&Mi)&&(d.setAttribute("role","application"),k.role="application"),d.removeAttribute("width"),d.removeAttribute("height"),"width"in k&&delete k.width, "height"in k&&delete k.height,Object.getOwnPropertyNames(k).forEach(function(q){h&&"class"===q||a.setAttribute(q,k[q]);h&&d.setAttribute(q,k[q])}),d.playerId=d.id,d.id+="_html5_api",d.className="vjs-tech",d.player=a.player=this,this.addClass("vjs-paused"),!0!==x.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=ug("vjs-styles-dimensions");var l=Mb(".vjs-styles-defaults"),m=Mb("head");m.insertBefore(this.styleEl_,l?l.nextSibling:m.firstChild)}this.fluid_=this.fill_=!1;this.width(this.options_.width);this.height(this.options_.height); this.fill(this.options_.fill);this.fluid(this.options_.fluid);this.aspectRatio(this.options_.aspectRatio);this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);l=d.getElementsByTagName("a");for(m=0;ma&&(a=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",a),void(this.cache_.initTime=0)):(this.cache_.initTime=a,this.off("canplay",this.applyInitTime_),void this.one("canplay",this.applyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)}, b.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},b.duration=function(a){if(void 0===a)return void 0!==this.cache_.duration?this.cache_.duration:NaN;0>(a=parseFloat(a))&&(a=1/0);a!==this.cache_.duration&&((this.cache_.duration=a)===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(a)||this.trigger("durationchange"))},b.remainingTime=function(){return this.duration()-this.currentTime()},b.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())}, b.buffered=function(){var a=this.techGet_("buffered");return a&&a.length||(a=Yb(0,0)),a},b.bufferedPercent=function(){return Dg(this.buffered(),this.duration())},b.bufferedEnd=function(){var a=this.buffered(),d=this.duration();a=a.end(a.length-1);return d