<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">!function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&amp;&amp;t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=3)}({"+5d+":function(t,e,i){"use strict";var n,r,a=i("/cRm").parseType,s=function(t){return new Date(1e3*t-20828448e5)},o=function(t){return{isLeading:(12&amp;t[0])&gt;&gt;&gt;2,dependsOn:3&amp;t[0],isDependedOn:(192&amp;t[1])&gt;&gt;&gt;6,hasRedundancy:(48&amp;t[1])&gt;&gt;&gt;4,paddingValue:(14&amp;t[1])&gt;&gt;&gt;1,isNonSyncSample:1&amp;t[1],degradationPriority:t[2]&lt;&lt;8|t[3]}},l={avc1:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{dataReferenceIndex:e.getUint16(6),width:e.getUint16(24),height:e.getUint16(26),horizresolution:e.getUint16(28)+e.getUint16(30)/16,vertresolution:e.getUint16(32)+e.getUint16(34)/16,frameCount:e.getUint16(40),depth:e.getUint16(74),config:n(t.subarray(78,t.byteLength))}},avcC:function(t){var e,i,n,r,a=new DataView(t.buffer,t.byteOffset,t.byteLength),s={configurationVersion:t[0],avcProfileIndication:t[1],profileCompatibility:t[2],avcLevelIndication:t[3],lengthSizeMinusOne:3&amp;t[4],sps:[],pps:[]},o=31&amp;t[5];for(n=6,r=0;r&lt;o;r++)i=a.getUint16(n),n+=2,s.sps.push(new Uint8Array(t.subarray(n,n+i))),n+=i;for(e=t[n],n++,r=0;r&lt;e;r++)i=a.getUint16(n),n+=2,s.pps.push(new Uint8Array(t.subarray(n,n+i))),n+=i;return s},btrt:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{bufferSizeDB:e.getUint32(0),maxBitrate:e.getUint32(4),avgBitrate:e.getUint32(8)}},esds:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),esId:t[6]&lt;&lt;8|t[7],streamPriority:31&amp;t[8],decoderConfig:{objectProfileIndication:t[11],streamType:t[12]&gt;&gt;&gt;2&amp;63,bufferSize:t[13]&lt;&lt;16|t[14]&lt;&lt;8|t[15],maxBitrate:t[16]&lt;&lt;24|t[17]&lt;&lt;16|t[18]&lt;&lt;8|t[19],avgBitrate:t[20]&lt;&lt;24|t[21]&lt;&lt;16|t[22]&lt;&lt;8|t[23],decoderConfigDescriptor:{tag:t[24],length:t[25],audioObjectType:t[26]&gt;&gt;&gt;3&amp;31,samplingFrequencyIndex:(7&amp;t[26])&lt;&lt;1|t[27]&gt;&gt;&gt;7&amp;1,channelConfiguration:t[27]&gt;&gt;&gt;3&amp;15}}}},ftyp:function(t){for(var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i={majorBrand:a(t.subarray(0,4)),minorVersion:e.getUint32(4),compatibleBrands:[]},n=8;n&lt;t.byteLength;)i.compatibleBrands.push(a(t.subarray(n,n+4))),n+=4;return i},dinf:function(t){return{boxes:n(t)}},dref:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),dataReferences:n(t.subarray(8))}},hdlr:function(t){var e={version:new DataView(t.buffer,t.byteOffset,t.byteLength).getUint8(0),flags:new Uint8Array(t.subarray(1,4)),handlerType:a(t.subarray(8,12)),name:""},i=8;for(i=24;i&lt;t.byteLength;i++){if(0===t[i]){i++;break}e.name+=String.fromCharCode(t[i])}return e.name=decodeURIComponent(escape(e.name)),e},mdat:function(t){return{byteLength:t.byteLength,nals:function(t){var e,i,n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=[];for(e=0;e+4&lt;t.length;e+=i)if(i=n.getUint32(e),e+=4,i&lt;=0)r.push("&lt;span style='color:red;'&gt;MALFORMED DATA&lt;/span&gt;");else switch(31&amp;t[e]){case 1:r.push("slice_layer_without_partitioning_rbsp");break;case 5:r.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:r.push("sei_rbsp");break;case 7:r.push("seq_parameter_set_rbsp");break;case 8:r.push("pic_parameter_set_rbsp");break;case 9:r.push("access_unit_delimiter_rbsp");break;default:r.push("UNKNOWN NAL - "+t[e]&amp;31)}return r}(t)}},mdhd:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n=4,r={version:i.getUint8(0),flags:new Uint8Array(t.subarray(1,4)),language:""};return 1===r.version?(n+=4,r.creationTime=s(i.getUint32(n)),n+=8,r.modificationTime=s(i.getUint32(n)),n+=4,r.timescale=i.getUint32(n),n+=8,r.duration=i.getUint32(n)):(r.creationTime=s(i.getUint32(n)),n+=4,r.modificationTime=s(i.getUint32(n)),n+=4,r.timescale=i.getUint32(n),n+=4,r.duration=i.getUint32(n)),n+=4,e=i.getUint16(n),r.language+=String.fromCharCode(96+(e&gt;&gt;10)),r.language+=String.fromCharCode(96+((992&amp;e)&gt;&gt;5)),r.language+=String.fromCharCode(96+(31&amp;e)),r},mdia:function(t){return{boxes:n(t)}},mfhd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),sequenceNumber:t[4]&lt;&lt;24|t[5]&lt;&lt;16|t[6]&lt;&lt;8|t[7]}},minf:function(t){return{boxes:n(t)}},mp4a:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i={dataReferenceIndex:e.getUint16(6),channelcount:e.getUint16(16),samplesize:e.getUint16(18),samplerate:e.getUint16(24)+e.getUint16(26)/65536};return t.byteLength&gt;28&amp;&amp;(i.streamDescriptor=n(t.subarray(28))[0]),i},moof:function(t){return{boxes:n(t)}},moov:function(t){return{boxes:n(t)}},mvex:function(t){return{boxes:n(t)}},mvhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i=4,n={version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4))};return 1===n.version?(i+=4,n.creationTime=s(e.getUint32(i)),i+=8,n.modificationTime=s(e.getUint32(i)),i+=4,n.timescale=e.getUint32(i),i+=8,n.duration=e.getUint32(i)):(n.creationTime=s(e.getUint32(i)),i+=4,n.modificationTime=s(e.getUint32(i)),i+=4,n.timescale=e.getUint32(i),i+=4,n.duration=e.getUint32(i)),i+=4,n.rate=e.getUint16(i)+e.getUint16(i+2)/16,i+=4,n.volume=e.getUint8(i)+e.getUint8(i+1)/8,i+=2,i+=2,i+=8,n.matrix=new Uint32Array(t.subarray(i,i+36)),i+=36,i+=24,n.nextTrackId=e.getUint32(i),n},pdin:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4)),rate:e.getUint32(4),initialDelay:e.getUint32(8)}},sdtp:function(t){var e,i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]};for(e=4;e&lt;t.byteLength;e++)i.samples.push({dependsOn:(48&amp;t[e])&gt;&gt;4,isDependedOn:(12&amp;t[e])&gt;&gt;2,hasRedundancy:3&amp;t[e]});return i},sidx:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8),earliestPresentationTime:i.getUint32(12),firstOffset:i.getUint32(16)},r=i.getUint16(22);for(e=24;r;e+=12,r--)n.references.push({referenceType:(128&amp;t[e])&gt;&gt;&gt;7,referencedSize:2147483647&amp;i.getUint32(e),subsegmentDuration:i.getUint32(e+4),startsWithSap:!!(128&amp;t[e+8]),sapType:(112&amp;t[e+8])&gt;&gt;&gt;4,sapDeltaTime:268435455&amp;i.getUint32(e+8)});return n},smhd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),balance:t[4]+t[5]/256}},stbl:function(t){return{boxes:n(t)}},stco:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),chunkOffsets:[]},r=i.getUint32(4);for(e=8;r;e+=4,r--)n.chunkOffsets.push(i.getUint32(e));return n},stsc:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n=i.getUint32(4),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleToChunks:[]};for(e=8;n;e+=12,n--)r.sampleToChunks.push({firstChunk:i.getUint32(e),samplesPerChunk:i.getUint32(e+4),sampleDescriptionIndex:i.getUint32(e+8)});return r},stsd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleDescriptions:n(t.subarray(8))}},stsz:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleSize:i.getUint32(4),entries:[]};for(e=12;e&lt;t.byteLength;e+=4)n.entries.push(i.getUint32(e));return n},stts:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),timeToSamples:[]},r=i.getUint32(4);for(e=8;r;e+=8,r--)n.timeToSamples.push({sampleCount:i.getUint32(e),sampleDelta:i.getUint32(e+4)});return n},styp:function(t){return l.ftyp(t)},tfdt:function(t){var e={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:t[4]&lt;&lt;24|t[5]&lt;&lt;16|t[6]&lt;&lt;8|t[7]};return 1===e.version&amp;&amp;(e.baseMediaDecodeTime*=Math.pow(2,32),e.baseMediaDecodeTime+=t[8]&lt;&lt;24|t[9]&lt;&lt;16|t[10]&lt;&lt;8|t[11]),e},tfhd:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:i.getUint32(4)},r=1&amp;n.flags[2],a=2&amp;n.flags[2],s=8&amp;n.flags[2],o=16&amp;n.flags[2],l=32&amp;n.flags[2],u=65536&amp;n.flags[0],c=131072&amp;n.flags[0];return e=8,r&amp;&amp;(e+=4,n.baseDataOffset=i.getUint32(12),e+=4),a&amp;&amp;(n.sampleDescriptionIndex=i.getUint32(e),e+=4),s&amp;&amp;(n.defaultSampleDuration=i.getUint32(e),e+=4),o&amp;&amp;(n.defaultSampleSize=i.getUint32(e),e+=4),l&amp;&amp;(n.defaultSampleFlags=i.getUint32(e)),u&amp;&amp;(n.durationIsEmpty=!0),!r&amp;&amp;c&amp;&amp;(n.baseDataOffsetIsMoof=!0),n},tkhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i=4,n={version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4))};return 1===n.version?(i+=4,n.creationTime=s(e.getUint32(i)),i+=8,n.modificationTime=s(e.getUint32(i)),i+=4,n.trackId=e.getUint32(i),i+=4,i+=8,n.duration=e.getUint32(i)):(n.creationTime=s(e.getUint32(i)),i+=4,n.modificationTime=s(e.getUint32(i)),i+=4,n.trackId=e.getUint32(i),i+=4,i+=4,n.duration=e.getUint32(i)),i+=4,i+=8,n.layer=e.getUint16(i),i+=2,n.alternateGroup=e.getUint16(i),i+=2,n.volume=e.getUint8(i)+e.getUint8(i+1)/8,i+=2,i+=2,n.matrix=new Uint32Array(t.subarray(i,i+36)),i+=36,n.width=e.getUint16(i)+e.getUint16(i+2)/16,i+=4,n.height=e.getUint16(i)+e.getUint16(i+2)/16,n},traf:function(t){return{boxes:n(t)}},trak:function(t){return{boxes:n(t)}},trex:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:e.getUint32(4),defaultSampleDescriptionIndex:e.getUint32(8),defaultSampleDuration:e.getUint32(12),defaultSampleSize:e.getUint32(16),sampleDependsOn:3&amp;t[20],sampleIsDependedOn:(192&amp;t[21])&gt;&gt;6,sampleHasRedundancy:(48&amp;t[21])&gt;&gt;4,samplePaddingValue:(14&amp;t[21])&gt;&gt;1,sampleIsDifferenceSample:!!(1&amp;t[21]),sampleDegradationPriority:e.getUint16(22)}},trun:function(t){var e,i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=1&amp;i.flags[2],a=4&amp;i.flags[2],s=1&amp;i.flags[1],l=2&amp;i.flags[1],u=4&amp;i.flags[1],c=8&amp;i.flags[1],h=n.getUint32(4),d=8;for(r&amp;&amp;(i.dataOffset=n.getInt32(d),d+=4),a&amp;&amp;h&amp;&amp;(e={flags:o(t.subarray(d,d+4))},d+=4,s&amp;&amp;(e.duration=n.getUint32(d),d+=4),l&amp;&amp;(e.size=n.getUint32(d),d+=4),c&amp;&amp;(e.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(e),h--);h--;)e={},s&amp;&amp;(e.duration=n.getUint32(d),d+=4),l&amp;&amp;(e.size=n.getUint32(d),d+=4),u&amp;&amp;(e.flags=o(t.subarray(d,d+4)),d+=4),c&amp;&amp;(e.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(e);return i},"url ":function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4))}},vmhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),graphicsmode:e.getUint16(4),opcolor:new Uint16Array([e.getUint16(6),e.getUint16(8),e.getUint16(10)])}}};n=function(t){for(var e,i,n,r,s,o=0,u=[],c=new ArrayBuffer(t.length),h=new Uint8Array(c),d=0;d&lt;t.length;++d)h[d]=t[d];for(e=new DataView(c);o&lt;t.byteLength;)i=e.getUint32(o),n=a(t.subarray(o+4,o+8)),r=i&gt;1?o+i:t.byteLength,(s=(l[n]||function(t){return{data:t}})(t.subarray(o+8,r))).size=i,s.type=n,u.push(s),o=r;return u},r=function(t,e){var i;return e=e||0,i=new Array(2*e+1).join(" "),t.map(function(t,n){return i+t.type+"\n"+Object.keys(t).filter(function(t){return"type"!==t&amp;&amp;"boxes"!==t}).map(function(e){var n=i+"  "+e+": ",r=t[e];if(r instanceof Uint8Array||r instanceof Uint32Array){var a=Array.prototype.slice.call(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)).map(function(t){return" "+("00"+t.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return a?1===a.length?n+"&lt;"+a.join("").slice(1)+"&gt;":n+"&lt;\n"+a.map(function(t){return i+"  "+t}).join("\n")+"\n"+i+"  &gt;":n+"&lt;&gt;"}return n+JSON.stringify(r,null,2).split("\n").map(function(t,e){return 0===e?t:i+"  "+t}).join("\n")}).join("\n")+(t.boxes?"\n"+r(t.boxes,e+1):"")}).join("\n")},t.exports={inspect:n,textify:r,parseTfdt:l.tfdt,parseHdlr:l.hdlr,parseTfhd:l.tfhd,parseTrun:l.trun}},"/N3L":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i("01cO"),a=i("awF4"),s=(n=a)&amp;&amp;n.__esModule?n:{default:n},o=function(t,e,i){var n,r;return void 0===e&amp;&amp;(e=t.mediaSequence+t.segments.length),e&lt;t.mediaSequence?0:(n=function(t,e){var i=0,n=e-t.mediaSequence,r=t.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(void 0!==(r=t.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=r.duration,void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}}(t,e)).precise?n.result:(r=function(t,e){for(var i=0,n=void 0,r=e-t.mediaSequence;r&lt;t.segments.length;r++){if(void 0!==(n=t.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=n.duration,void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(t,e)).precise?r.result:n.result+i},l=function(t,e,i){if(!t)return 0;if("number"!=typeof i&amp;&amp;(i=0),void 0===e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return s.default.Infinity}return o(t,e,i)};e.duration=l;var u=function(t,e,i){var n=0;if(e&gt;i){var r=[i,e];e=r[0],i=r[1]}if(e&lt;0){for(var a=e;a&lt;Math.min(0,i);a++)n+=t.targetDuration;e=0}for(a=e;a&lt;i;a++)n+=t.segments[a].duration;return n};e.sumDurations=u;var c=function(t){if(!t.segments.length)return 0;for(var e=t.segments.length-1,i=t.segments[e].duration||t.targetDuration,n=i+2*t.targetDuration;e--&amp;&amp;!((i+=t.segments[e].duration)&gt;=n););return Math.max(0,e)};e.safeLiveIndex=c;var h=function(t,e,i){if(!t||!t.segments)return null;if(t.endList)return l(t);if(null===e)return null;e=e||0;var n=i?c(t):t.segments.length;return o(t,t.mediaSequence+n,e)};e.playlistEnd=h;var d=function(t,e){var i=e||0,n=h(t,e,!0);return null===n?(0,r.createTimeRange)():(0,r.createTimeRange)(i,n)};e.seekable=d;var p=function(t){return t-Math.floor(t)==0},f=function(t,e){if(p(e))return e+.1*t;for(var i=e.toString().split(".")[1].length,n=1;n&lt;=i;n++){var r=Math.pow(10,n),a=e*r;if(p(a)||n===i)return(a+t)/r}},g=f.bind(null,1),m=f.bind(null,-1),y=function(t,e,i,n){var r=void 0,a=void 0,s=t.segments.length,o=e-n;if(o&lt;0){if(i&gt;0)for(r=i-1;r&gt;=0;r--)if(a=t.segments[r],(o+=m(a.duration))&gt;0)return{mediaIndex:r,startTime:n-u(t,i,r)};return{mediaIndex:0,startTime:e}}if(i&lt;0){for(r=i;r&lt;0;r++)if((o-=t.targetDuration)&lt;0)return{mediaIndex:0,startTime:e};i=0}for(r=i;r&lt;s;r++)if(a=t.segments[r],(o-=g(a.duration))&lt;0)return{mediaIndex:r,startTime:n+u(t,i,r)};return{mediaIndex:s-1,startTime:e}};e.getMediaInfoForTime=y;var v=function(t){return t.excludeUntil&amp;&amp;t.excludeUntil&gt;Date.now()};e.isBlacklisted=v;var _=function(t){return t.excludeUntil&amp;&amp;t.excludeUntil===1/0};e.isIncompatible=_;var b=function(t){var e=v(t);return!t.disabled&amp;&amp;!e};e.isEnabled=b;var T=function(t){return t.disabled};e.isDisabled=T;var S=function(t){for(var e=0;e&lt;t.segments.length;e++)if(t.segments[e].key)return!0;return!1};e.isAes=S;var k=function(t){for(var e=0;e&lt;t.segments.length;e++)if(t.segments[e].map)return!0;return!1};e.isFmp4=k;var C=function(t,e){return e.attributes&amp;&amp;e.attributes[t]};e.hasAttribute=C;var w=function(t,e,i){var n=arguments.length&lt;=3||void 0===arguments[3]?0:arguments[3];return C("BANDWIDTH",i)?(t*i.attributes.BANDWIDTH-8*n)/e:NaN};e.estimateSegmentRequestTime=w;var E=function(t,e){if(1===t.playlists.length)return!0;var i=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter(function(t){return!!b(t)&amp;&amp;(t.attributes.BANDWIDTH||0)&lt;i}).length};e.isLowestEnabledRendition=E,e.default={duration:l,seekable:d,safeLiveIndex:c,getMediaInfoForTime:y,isEnabled:b,isDisabled:T,isBlacklisted:v,isIncompatible:_,playlistEnd:h,isAes:S,isFmp4:k,hasAttribute:C,estimateSegmentRequestTime:w,isLowestEnabledRendition:E}},"/cRm":function(t,e,i){"use strict";var n,r,a,s,o,l=i("XHP2").toUnsigned;n=function(t,e){var i,a,s,o,u,c=[];if(!e.length)return null;for(i=0;i&lt;t.byteLength;)a=l(t[i]&lt;&lt;24|t[i+1]&lt;&lt;16|t[i+2]&lt;&lt;8|t[i+3]),s=r(t.subarray(i+4,i+8)),o=a&gt;1?i+a:t.byteLength,s===e[0]&amp;&amp;(1===e.length?c.push(t.subarray(i+8,o)):(u=n(t.subarray(i+8,o),e.slice(1))).length&amp;&amp;(c=c.concat(u))),i=o;return c},r=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),e+=String.fromCharCode(t[2]),e+=String.fromCharCode(t[3])},a=function(t){return n(t,["moov","trak"]).reduce(function(t,e){var i,r,a,s,o;return(i=n(e,["tkhd"])[0])?(r=i[0],s=l(i[a=0===r?12:20]&lt;&lt;24|i[a+1]&lt;&lt;16|i[a+2]&lt;&lt;8|i[a+3]),(o=n(e,["mdia","mdhd"])[0])?(a=0===(r=o[0])?12:20,t[s]=l(o[a]&lt;&lt;24|o[a+1]&lt;&lt;16|o[a+2]&lt;&lt;8|o[a+3]),t):null):null},{})},s=function(t,e){var i,r,a;return i=n(e,["moof","traf"]),r=[].concat.apply([],i.map(function(e){return n(e,["tfhd"]).map(function(i){var r,a;return r=l(i[4]&lt;&lt;24|i[5]&lt;&lt;16|i[6]&lt;&lt;8|i[7]),a=t[r]||9e4,(n(e,["tfdt"]).map(function(t){var e,i;return e=t[0],i=l(t[4]&lt;&lt;24|t[5]&lt;&lt;16|t[6]&lt;&lt;8|t[7]),1===e&amp;&amp;(i*=Math.pow(2,32),i+=l(t[8]&lt;&lt;24|t[9]&lt;&lt;16|t[10]&lt;&lt;8|t[11])),i})[0]||1/0)/a})})),a=Math.min.apply(null,r),isFinite(a)?a:0},o=function(t){var e=[];return n(t,["moov","trak"]).forEach(function(t){var i=n(t,["mdia","hdlr"]),a=n(t,["tkhd"]);i.forEach(function(t,i){var n,s,o=r(t.subarray(8,12)),l=a[i];"vide"===o&amp;&amp;(s=0===(n=new DataView(l.buffer,l.byteOffset,l.byteLength)).getUint8(0)?n.getUint32(12):n.getUint32(20),e.push(s))})}),e},t.exports={findBox:n,parseType:r,timescale:a,startTime:s,videoTrackIds:o}},"01cO":function(t,e,i){function n(t){return t&amp;&amp;"object"==typeof t&amp;&amp;"default"in t?t.default:t}var r,a=n(i("awF4")),s=n(i("dwO+")),o=n(i("sN1u")),l=n(i("I/+Z")),u=n(i("1Xk4")),c=n(i("oow/")),h="6.12.1",d=a.navigator&amp;&amp;a.navigator.userAgent||"",p=/AppleWebKit\/([\d.]+)/i.exec(d),f=p?parseFloat(p.pop()):null,g=/iPad/i.test(d),m=/iPhone/i.test(d)&amp;&amp;!g,y=/iPod/i.test(d),v=m||g||y,_=(r=d.match(/OS (\d+)_/i))&amp;&amp;r[1]?r[1]:null,b=/Android/i.test(d),T=function(){var t=d.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&amp;&amp;parseFloat(t[1]),i=t[2]&amp;&amp;parseFloat(t[2]);return e&amp;&amp;i?parseFloat(t[1]+"."+t[2]):e||null}(),S=b&amp;&amp;/webkit/i.test(d)&amp;&amp;T&lt;2.3,k=b&amp;&amp;T&lt;5&amp;&amp;f&lt;537,C=/Firefox/i.test(d),w=/Edge/i.test(d),E=!w&amp;&amp;(/Chrome/i.test(d)||/CriOS/i.test(d)),A=function(){var t=d.match(/(Chrome|CriOS)\/(\d+)/);return t&amp;&amp;t[2]?parseFloat(t[2]):null}(),x=/MSIE\s8\.0/.test(d),O=function(){var t=/MSIE\s(\d+)\.\d/.exec(d),e=t&amp;&amp;parseFloat(t[1]);return!e&amp;&amp;/Trident\/7.0/i.test(d)&amp;&amp;/rv:11.0/.test(d)&amp;&amp;(e=11),e}(),P=/Safari/i.test(d)&amp;&amp;!E&amp;&amp;!b&amp;&amp;!w,L=(P||v)&amp;&amp;!E,I=et()&amp;&amp;("ontouchstart"in a||a.navigator.maxTouchPoints||a.DocumentTouch&amp;&amp;a.document instanceof a.DocumentTouch),D=et()&amp;&amp;"backgroundSize"in a.document.createElement("video").style,M=(Object.freeze||Object)({IS_IPAD:g,IS_IPHONE:m,IS_IPOD:y,IS_IOS:v,IOS_VERSION:_,IS_ANDROID:b,ANDROID_VERSION:T,IS_OLD_ANDROID:S,IS_NATIVE_ANDROID:k,IS_FIREFOX:C,IS_EDGE:w,IS_CHROME:E,CHROME_VERSION:A,IS_IE8:x,IE_VERSION:O,IS_SAFARI:P,IS_ANY_SAFARI:L,TOUCH_ENABLED:I,BACKGROUND_SIZE_SUPPORTED:D}),R="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t},j=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},U=function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},N=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&amp;&amp;"function"!=typeof e?t:e},B=function(t,e){return t.raw=e,t},F=Object.prototype.toString,H=function(t){return W(t)?Object.keys(t):[]};function V(t,e){H(t).forEach(function(i){return e(t[i],i)})}function z(t){for(var e=arguments.length,i=Array(e&gt;1?e-1:0),n=1;n&lt;e;n++)i[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[t].concat(i)):(i.forEach(function(e){e&amp;&amp;V(e,function(e,i){t[i]=e})}),t)}function W(t){return!!t&amp;&amp;"object"===(void 0===t?"undefined":R(t))}function q(t){return W(t)&amp;&amp;"[object Object]"===F.call(t)&amp;&amp;t.constructor===Object}var G=void 0,X="info",Y=[],K=function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:!!O&amp;&amp;O&lt;11,n=G.levels[X],r=new RegExp("^("+n+")$");if("log"!==t&amp;&amp;e.unshift(t.toUpperCase()+":"),Y&amp;&amp;Y.push([].concat(e)),e.unshift("VIDEOJS:"),a.console){var s=a.console[t];s||"debug"!==t||(s=a.console.info||a.console.log),s&amp;&amp;n&amp;&amp;r.test(t)&amp;&amp;(i&amp;&amp;(e=e.map(function(t){if(W(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(e){return String(t)}return String(t)}).join(" ")),s.apply?s[Array.isArray(e)?"apply":"call"](a.console,e):s(e))}};(G=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];K("log",e)}).levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:X},G.level=function(t){if("string"==typeof t){if(!G.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');X=t}return X},G.history=function(){return Y?[].concat(Y):[]},G.history.clear=function(){Y&amp;&amp;(Y.length=0)},G.history.disable=function(){null!==Y&amp;&amp;(Y.length=0,Y=null)},G.history.enable=function(){null===Y&amp;&amp;(Y=[])},G.error=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];return K("error",e)},G.warn=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];return K("warn",e)},G.debug=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];return K("debug",e)};var $=G;function J(t,e){if(!t||!e)return"";if("function"==typeof a.getComputedStyle){var i=a.getComputedStyle(t);return i?i[e]:""}return t.currentStyle[e]||""}var Z=B(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]);function Q(t){return"string"==typeof t&amp;&amp;/\S/.test(t)}function tt(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function et(){return s===a.document&amp;&amp;void 0!==s.createElement}function it(t){return W(t)&amp;&amp;1===t.nodeType}function nt(){try{return a.parent!==a.self}catch(t){return!0}}function rt(t){return function(e,i){if(!Q(e))return s[t](null);Q(i)&amp;&amp;(i=s.querySelector(i));var n=it(i)?i:s;return n[t]&amp;&amp;n[t](e)}}function at(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"div",e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{},n=arguments[3],r=s.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var i=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?($.warn(o(Z,t,i)),r.setAttribute(t,i)):"textContent"===t?st(r,i):r[t]=i}),Object.getOwnPropertyNames(i).forEach(function(t){r.setAttribute(t,i[t])}),n&amp;&amp;wt(r,n),r}function st(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function ot(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function lt(t,e){return tt(e),t.classList?t.classList.contains(e):(i=e,new RegExp("(^|\\s)"+i+"($|\\s)")).test(t.className);var i}function ut(t,e){return t.classList?t.classList.add(e):lt(t,e)||(t.className=(t.className+" "+e).trim()),t}function ct(t,e){return t.classList?t.classList.remove(e):(tt(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function ht(t,e,i){var n=lt(t,e);if("function"==typeof i&amp;&amp;(i=i(t,e)),"boolean"!=typeof i&amp;&amp;(i=!n),i!==n)return i?ut(t,e):ct(t,e),t}function dt(t,e){Object.getOwnPropertyNames(e).forEach(function(i){var n=e[i];null===n||void 0===n||!1===n?t.removeAttribute(i):t.setAttribute(i,!0===n?"":n)})}function pt(t){var e={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&amp;&amp;t.attributes&amp;&amp;t.attributes.length&gt;0)for(var n=t.attributes,r=n.length-1;r&gt;=0;r--){var a=n[r].name,s=n[r].value;"boolean"!=typeof t[a]&amp;&amp;-1===i.indexOf(","+a+",")||(s=null!==s),e[a]=s}return e}function ft(t,e){return t.getAttribute(e)}function gt(t,e,i){t.setAttribute(e,i)}function mt(t,e){t.removeAttribute(e)}function yt(){s.body.focus(),s.onselectstart=function(){return!1}}function vt(){s.onselectstart=function(){return!0}}function _t(t){if(t&amp;&amp;t.getBoundingClientRect&amp;&amp;t.parentNode){var e=t.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(t){void 0!==e[t]&amp;&amp;(i[t]=e[t])}),i.height||(i.height=parseFloat(J(t,"height"))),i.width||(i.width=parseFloat(J(t,"width"))),i}}function bt(t){var e=void 0;if(t.getBoundingClientRect&amp;&amp;t.parentNode&amp;&amp;(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var i=s.documentElement,n=s.body,r=i.clientLeft||n.clientLeft||0,o=a.pageXOffset||n.scrollLeft,l=e.left+o-r,u=i.clientTop||n.clientTop||0,c=a.pageYOffset||n.scrollTop,h=e.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function Tt(t,e){var i={},n=bt(t),r=t.offsetWidth,a=t.offsetHeight,s=n.top,o=n.left,l=e.pageY,u=e.pageX;return e.changedTouches&amp;&amp;(u=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-l+a)/a)),i.x=Math.max(0,Math.min(1,(u-o)/r)),i}function St(t){return W(t)&amp;&amp;3===t.nodeType}function kt(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Ct(t){return"function"==typeof t&amp;&amp;(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&amp;&amp;(t=t()),it(t)||St(t)?t:"string"==typeof t&amp;&amp;/\S/.test(t)?s.createTextNode(t):void 0}).filter(function(t){return t})}function wt(t,e){return Ct(e).forEach(function(e){return t.appendChild(e)}),t}function Et(t,e){return wt(kt(t),e)}function At(t){return void 0===t.button&amp;&amp;void 0===t.buttons||(0===t.button&amp;&amp;void 0===t.buttons||(9===O||0===t.button&amp;&amp;1===t.buttons))}var xt=rt("querySelector"),Ot=rt("querySelectorAll"),Pt=(Object.freeze||Object)({isReal:et,isEl:it,isInFrame:nt,createEl:at,textContent:st,prependTo:ot,hasClass:lt,addClass:ut,removeClass:ct,toggleClass:ht,setAttributes:dt,getAttributes:pt,getAttribute:ft,setAttribute:gt,removeAttribute:mt,blockTextSelection:yt,unblockTextSelection:vt,getBoundingClientRect:_t,findPosition:bt,getPointerPosition:Tt,isTextNode:St,emptyEl:kt,normalizeContent:Ct,appendContent:wt,insertContent:Et,isSingleLeftClick:At,$:xt,$$:Ot}),Lt=1;function It(){return Lt++}var Dt={},Mt="vdata"+(new Date).getTime();function Rt(t){var e=t[Mt];return e||(e=t[Mt]=It()),Dt[e]||(Dt[e]={}),Dt[e]}function jt(t){var e=t[Mt];return!!e&amp;&amp;!!Object.getOwnPropertyNames(Dt[e]).length}function Ut(t){var e=t[Mt];if(e){delete Dt[e];try{delete t[Mt]}catch(e){t.removeAttribute?t.removeAttribute(Mt):t[Mt]=null}}}function Nt(t,e){var i=Rt(t);0===i.handlers[e].length&amp;&amp;(delete i.handlers[e],t.removeEventListener?t.removeEventListener(e,i.dispatcher,!1):t.detachEvent&amp;&amp;t.detachEvent("on"+e,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length&lt;=0&amp;&amp;(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&amp;&amp;Ut(t)}function Bt(t,e,i,n){i.forEach(function(i){t(e,i,n)})}function Ft(t){function e(){return!0}function i(){return!1}if(!t||!t.isPropagationStopped){var n=t||a.event;for(var r in t={},n)"layerX"!==r&amp;&amp;"layerY"!==r&amp;&amp;"keyLocation"!==r&amp;&amp;"webkitMovementX"!==r&amp;&amp;"webkitMovementY"!==r&amp;&amp;("returnValue"===r&amp;&amp;n.preventDefault||(t[r]=n[r]));if(t.target||(t.target=t.srcElement||s),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){n.preventDefault&amp;&amp;n.preventDefault(),t.returnValue=!1,n.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){n.stopPropagation&amp;&amp;n.stopPropagation(),t.cancelBubble=!0,n.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=i,t.stopImmediatePropagation=function(){n.stopImmediatePropagation&amp;&amp;n.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=i,null!==t.clientX&amp;&amp;void 0!==t.clientX){var o=s.documentElement,l=s.body;t.pageX=t.clientX+(o&amp;&amp;o.scrollLeft||l&amp;&amp;l.scrollLeft||0)-(o&amp;&amp;o.clientLeft||l&amp;&amp;l.clientLeft||0),t.pageY=t.clientY+(o&amp;&amp;o.scrollTop||l&amp;&amp;l.scrollTop||0)-(o&amp;&amp;o.clientTop||l&amp;&amp;l.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&amp;&amp;void 0!==t.button&amp;&amp;(t.button=1&amp;t.button?0:4&amp;t.button?1:2&amp;t.button?2:0)}return t}var Ht=!1;!function(){try{var t=Object.defineProperty({},"passive",{get:function(){Ht=!0}});a.addEventListener("test",null,t),a.removeEventListener("test",null,t)}catch(t){}}();var Vt=["touchstart","touchmove"];function zt(t,e,i){if(Array.isArray(e))return Bt(zt,t,e,i);var n=Rt(t);if(n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),i.guid||(i.guid=It()),n.handlers[e].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,i){if(!n.disabled){e=Ft(e);var r=n.handlers[e.type];if(r)for(var a=r.slice(0),s=0,o=a.length;s&lt;o&amp;&amp;!e.isImmediatePropagationStopped();s++)try{a[s].call(t,e,i)}catch(t){$.error(t)}}}),1===n.handlers[e].length)if(t.addEventListener){var r=!1;Ht&amp;&amp;Vt.indexOf(e)&gt;-1&amp;&amp;(r={passive:!0}),t.addEventListener(e,n.dispatcher,r)}else t.attachEvent&amp;&amp;t.attachEvent("on"+e,n.dispatcher)}function Wt(t,e,i){if(jt(t)){var n=Rt(t);if(n.handlers){if(Array.isArray(e))return Bt(Wt,t,e,i);var r=function(t,e){n.handlers[e]=[],Nt(t,e)};if(void 0!==e){var a=n.handlers[e];if(a)if(i){if(i.guid)for(var s=0;s&lt;a.length;s++)a[s].guid===i.guid&amp;&amp;a.splice(s--,1);Nt(t,e)}else r(t,e)}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&amp;&amp;r(t,o)}}}function qt(t,e,i){var n=jt(t)?Rt(t):{},r=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=Ft(e),n.dispatcher&amp;&amp;n.dispatcher.call(t,e,i),r&amp;&amp;!e.isPropagationStopped()&amp;&amp;!0===e.bubbles)qt.call(null,r,e,i);else if(!r&amp;&amp;!e.defaultPrevented){var a=Rt(e.target);e.target[e.type]&amp;&amp;(a.disabled=!0,"function"==typeof e.target[e.type]&amp;&amp;e.target[e.type](),a.disabled=!1)}return!e.defaultPrevented}function Gt(t,e,i){if(Array.isArray(e))return Bt(Gt,t,e,i);var n=function n(){Wt(t,e,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||It(),zt(t,e,n)}var Xt=(Object.freeze||Object)({fixEvent:Ft,on:zt,off:Wt,trigger:qt,one:Gt}),Yt=!1,Kt=void 0,$t=function(){if(et()&amp;&amp;!1!==Kt.options.autoSetup){var t=s.getElementsByTagName("video"),e=s.getElementsByTagName("audio"),i=s.getElementsByTagName("video-js"),n=[];if(t&amp;&amp;t.length&gt;0)for(var r=0,a=t.length;r&lt;a;r++)n.push(t[r]);if(e&amp;&amp;e.length&gt;0)for(var o=0,l=e.length;o&lt;l;o++)n.push(e[o]);if(i&amp;&amp;i.length&gt;0)for(var u=0,c=i.length;u&lt;c;u++)n.push(i[u]);if(n&amp;&amp;n.length&gt;0)for(var h=0,d=n.length;h&lt;d;h++){var p=n[h];if(!p||!p.getAttribute){Jt(1);break}void 0===p.player&amp;&amp;null!==p.getAttribute("data-setup")&amp;&amp;Kt(p)}else Yt||Jt(1)}};function Jt(t,e){e&amp;&amp;(Kt=e),a.setTimeout($t,t)}et()&amp;&amp;"complete"===s.readyState?Yt=!0:Gt(a,"load",function(){Yt=!0});var Zt=function(t){var e=s.createElement("style");return e.className=t,e},Qt=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},te=function(t,e,i){e.guid||(e.guid=It());var n=function(){return e.apply(t,arguments)};return n.guid=i?i+"_"+e.guid:e.guid,n},ee=function(t,e){var i=Date.now();return function(){var n=Date.now();n-i&gt;=e&amp;&amp;(t.apply(void 0,arguments),i=n)}},ie=function(t,e,i){var n=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:a,r=void 0;return function(){var a=this,s=arguments,o=function(){r=null,o=null,i||t.apply(a,s)};!r&amp;&amp;i&amp;&amp;t.apply(a,s),n.clearTimeout(r),r=n.setTimeout(o,e)}},ne=function(){};ne.prototype.allowedEvents_={},ne.prototype.on=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},zt(this,t,e),this.addEventListener=i},ne.prototype.addEventListener=ne.prototype.on,ne.prototype.off=function(t,e){Wt(this,t,e)},ne.prototype.removeEventListener=ne.prototype.off,ne.prototype.one=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},Gt(this,t,e),this.addEventListener=i},ne.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&amp;&amp;(t={type:e}),t=Ft(t),this.allowedEvents_[e]&amp;&amp;this["on"+e]&amp;&amp;this["on"+e](t),qt(this,t)},ne.prototype.dispatchEvent=ne.prototype.trigger;var re=function(t){return t instanceof ne||!!t.eventBusEl_&amp;&amp;["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},ae=function(t){return"string"==typeof t&amp;&amp;/\S/.test(t)||Array.isArray(t)&amp;&amp;!!t.length},se=function(t){if(!t.nodeName&amp;&amp;!re(t))throw new Error("Invalid target; must be a DOM node or evented object.")},oe=function(t){if(!ae(t))throw new Error("Invalid event type; must be a non-empty string or array.")},le=function(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")},ue=function(t,e){var i=e.length&lt;3||e[0]===t||e[0]===t.eventBusEl_,n=void 0,r=void 0,a=void 0;return i?(n=t.eventBusEl_,e.length&gt;=3&amp;&amp;e.shift(),r=e[0],a=e[1]):(n=e[0],r=e[1],a=e[2]),se(n),oe(r),le(a),{isTargetingSelf:i,target:n,type:r,listener:a=te(t,a)}},ce=function(t,e,i,n){se(t),t.nodeName?Xt[e](t,i,n):t[e](i,n)},he={on:function(){for(var t=this,e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];var r=ue(this,i),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(ce(s,"on",o,l),!a){var u=function(){return t.off(s,o,l)};u.guid=l.guid;var c=function(){return t.off("dispose",u)};c.guid=l.guid,ce(this,"on","dispose",u),ce(s,"on","dispose",c)}},one:function(){for(var t=this,e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];var r=ue(this,i),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)ce(s,"one",o,l);else{var u=function e(){for(var i=arguments.length,n=Array(i),r=0;r&lt;i;r++)n[r]=arguments[r];t.off(s,o,e),l.apply(null,n)};u.guid=l.guid,ce(s,"one",o,u)}},off:function(t,e,i){if(!t||ae(t))Wt(this.eventBusEl_,t,e);else{var n=t,r=e;se(n),oe(r),le(i),i=te(this,i),this.off("dispose",i),n.nodeName?(Wt(n,r,i),Wt(n,"dispose",i)):re(n)&amp;&amp;(n.off(r,i),n.off("dispose",i))}},trigger:function(t,e){return qt(this.eventBusEl_,t,e)}};function de(t){var e=(arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(e){if(!t[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');t.eventBusEl_=t[e]}else t.eventBusEl_=at("span",{className:"vjs-event-bus"});return z(t,he),t.on("dispose",function(){t.off(),a.setTimeout(function(){t.eventBusEl_=null},0)}),t}var pe={state:{},setState:function(t){var e=this;"function"==typeof t&amp;&amp;(t=t());var i=void 0;return V(t,function(t,n){e.state[n]!==t&amp;&amp;((i=i||{})[n]={from:e.state[n],to:t}),e.state[n]=t}),i&amp;&amp;re(this)&amp;&amp;this.trigger({changes:i,type:"statechanged"}),i}};function fe(t,e){return z(t,pe),t.state=z({},t.state,e),"function"==typeof t.handleStateChanged&amp;&amp;re(t)&amp;&amp;t.on("statechanged",t.handleStateChanged),t}function ge(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function me(){for(var t={},e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];return i.forEach(function(e){e&amp;&amp;V(e,function(e,i){q(e)?(q(t[i])||(t[i]={}),t[i]=me(t[i],e)):t[i]=e})}),t}var ye=function(){function t(e,i,n){if(j(this,t),!e&amp;&amp;this.play?this.player_=e=this:this.player_=e,this.options_=me({},this.options_),i=this.options_=me(this.options_,i),this.id_=i.id||i.el&amp;&amp;i.el.id,!this.id_){var r=e&amp;&amp;e.id&amp;&amp;e.id()||"no_player";this.id_=r+"_component_"+It()}this.name_=i.name||null,i.el?this.el_=i.el:!1!==i.createEl&amp;&amp;(this.el_=this.createEl()),!1!==i.evented&amp;&amp;de(this,{eventBusKey:this.el_?"el_":null}),fe(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==i.initChildren&amp;&amp;this.initChildren(),this.ready(n),!1!==i.reportTouchActivity&amp;&amp;this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t&gt;=0;t--)this.children_[t].dispose&amp;&amp;this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&amp;&amp;(this.el_.parentNode&amp;&amp;this.el_.parentNode.removeChild(this.el_),Ut(this.el_),this.el_=null),this.player_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return $.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=me(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,i){return at(t,e,i)},t.prototype.localize=function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:t,n=this.player_.language&amp;&amp;this.player_.language(),r=this.player_.languages&amp;&amp;this.player_.languages(),a=r&amp;&amp;r[n],s=n&amp;&amp;n.split("-")[0],o=r&amp;&amp;r[s],l=i;return a&amp;&amp;a[t]?l=a[t]:o&amp;&amp;o[t]&amp;&amp;(l=o[t]),e&amp;&amp;(l=l.replace(/\{(\d+)\}/g,function(t,i){var n=e[i-1],r=n;return void 0===n&amp;&amp;(r=t),r})),l},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){if(t)return t=ge(t),this.childNameIndex_[t]},t.prototype.addChild=function(e){var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,a=void 0;if("string"==typeof e){a=ge(e);var s=i.componentClass||a;i.name=a;var o=t.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,i)}else r=e;if(this.children_.splice(n,0,r),"function"==typeof r.id&amp;&amp;(this.childIndex_[r.id()]=r),(a=a||r.name&amp;&amp;ge(r.name()))&amp;&amp;(this.childNameIndex_[a]=r),"function"==typeof r.el&amp;&amp;r.el()){var l=this.contentEl().children[n]||null;this.contentEl().insertBefore(r.el(),l)}return r},t.prototype.removeChild=function(t){if("string"==typeof t&amp;&amp;(t=this.getChild(t)),t&amp;&amp;this.children_){for(var e=!1,i=this.children_.length-1;i&gt;=0;i--)if(this.children_[i]===t){e=!0,this.children_.splice(i,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var n=t.el();n&amp;&amp;n.parentNode===this.contentEl()&amp;&amp;this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,i=this.options_.children;if(i){var n=this.options_,r=void 0,a=t.getComponent("Tech");(r=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter(function(t){return!r.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var n=void 0,r=void 0;return"string"==typeof t?r=i[n=t]||e.options_[n]||{}:(n=t.name,r=t),{name:n,opts:r}}).filter(function(e){var i=t.getComponent(e.opts.componentClass||ge(e.name));return i&amp;&amp;!a.isTech(i)}).forEach(function(t){var i=t.name,r=t.opts;if(void 0!==n[i]&amp;&amp;(r=n[i]),!1!==r){!0===r&amp;&amp;(r={}),r.playerOptions=e.options_.playerOptions;var a=e.addChild(i,r);a&amp;&amp;(e[i]=a)}})}},t.prototype.buildCSSClass=function(){return""},t.prototype.ready=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&amp;&amp;t.length&gt;0&amp;&amp;t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return xt(t,e||this.contentEl())},t.prototype.$$=function(t,e){return Ot(t,e||this.contentEl())},t.prototype.hasClass=function(t){return lt(this.el_,t)},t.prototype.addClass=function(t){ut(this.el_,t)},t.prototype.removeClass=function(t){ct(this.el_,t)},t.prototype.toggleClass=function(t,e){ht(this.el_,t,e)},t.prototype.show=function(){this.removeClass("vjs-hidden")},t.prototype.hide=function(){this.addClass("vjs-hidden")},t.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},t.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.prototype.getAttribute=function(t){return ft(this.el_,t)},t.prototype.setAttribute=function(t,e){gt(this.el_,t,e)},t.prototype.removeAttribute=function(t){mt(this.el_,t)},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},t.prototype.dimension=function(t,e,i){if(void 0!==e)return null!==e&amp;&amp;e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[t],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+ge(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&amp;&amp;"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof a.getComputedStyle){var i=a.getComputedStyle(this.el_);e=i.getPropertyValue(t)||i[t]}if(0===(e=parseFloat(e))){var n="offset"+ge(t);e=this.el_[n]}return e},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.focus=function(){this.el_.focus()},t.prototype.blur=function(){this.el_.blur()},t.prototype.emitTapEvents=function(){var t=0,e=null,i=void 0;this.on("touchstart",function(n){1===n.touches.length&amp;&amp;(e={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=(new Date).getTime(),i=!0)}),this.on("touchmove",function(t){if(t.touches.length&gt;1)i=!1;else if(e){var n=t.touches[0].pageX-e.pageX,r=t.touches[0].pageY-e.pageY;Math.sqrt(n*n+r*r)&gt;10&amp;&amp;(i=!1)}});var n=function(){i=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){(e=null,!0===i)&amp;&amp;((new Date).getTime()-t&lt;200&amp;&amp;(n.preventDefault(),this.trigger("tap")))})},t.prototype.enableTouchActivity=function(){if(this.player()&amp;&amp;this.player().reportUserActivity){var t=te(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.prototype.setTimeout=function(t,e){var i,n,r=this;return t=te(this,t),i=a.setTimeout(function(){r.off("dispose",n),t()},e),(n=function(){return r.clearTimeout(i)}).guid="vjs-timeout-"+i,this.on("dispose",n),i},t.prototype.clearTimeout=function(t){a.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){var i=this;t=te(this,t);var n=a.setInterval(t,e),r=function(){return i.clearInterval(n)};return r.guid="vjs-interval-"+n,this.on("dispose",r),n},t.prototype.clearInterval=function(t){a.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.prototype.requestAnimationFrame=function(t){var e,i,n=this;return this.supportsRaf_?(t=te(this,t),e=a.requestAnimationFrame(function(){n.off("dispose",i),t()}),(i=function(){return n.cancelAnimationFrame(e)}).guid="vjs-raf-"+e,this.on("dispose",i),e):this.setTimeout(t,1e3/60)},t.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){a.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},t.registerComponent=function(e,i){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var n=t.getComponent("Tech"),r=n&amp;&amp;n.isTech(i),a=t===i||t.prototype.isPrototypeOf(i.prototype);if(r||!a){var s=void 0;throw s=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+s+".")}e=ge(e),t.components_||(t.components_={});var o=t.getComponent("Player");if("Player"===e&amp;&amp;o&amp;&amp;o.players){var l=o.players,u=Object.keys(l);if(l&amp;&amp;u.length&gt;0&amp;&amp;u.map(function(t){return l[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=i,i},t.getComponent=function(e){if(e)return e=ge(e),t.components_&amp;&amp;t.components_[e]?t.components_[e]:void 0},t}();function ve(t,e,i,n){return function(t,e,i){if("number"!=typeof e||e&lt;0||e&gt;i)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+i+").")}(t,n,i.length-1),i[n][e]}function _e(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:ve.bind(null,"start",0,t),end:ve.bind(null,"end",1,t)}}function be(t,e){return Array.isArray(t)?_e(t):void 0===t||void 0===e?_e():_e([[t,e]])}function Te(t,e){var i=0,n=void 0,r=void 0;if(!e)return 0;t&amp;&amp;t.length||(t=be(0,0));for(var a=0;a&lt;t.length;a++)n=t.start(a),(r=t.end(a))&gt;e&amp;&amp;(r=e),i+=r-n;return i/e}ye.prototype.supportsRaf_="function"==typeof a.requestAnimationFrame&amp;&amp;"function"==typeof a.cancelAnimationFrame,ye.registerComponent("Component",ye);for(var Se={},ke=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Ce=ke[0],we=void 0,Ee=0;Ee&lt;ke.length;Ee++)if(ke[Ee][1]in s){we=ke[Ee];break}if(we)for(var Ae=0;Ae&lt;we.length;Ae++)Se[Ce[Ae]]=we[Ae];function xe(t){if(t instanceof xe)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:W(t)&amp;&amp;("number"==typeof t.code&amp;&amp;(this.code=t.code),z(this,t)),this.message||(this.message=xe.defaultMessages[this.code]||"")}xe.prototype.code=0,xe.prototype.message="",xe.prototype.status=null,xe.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],xe.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Oe=0;Oe&lt;xe.errorTypes.length;Oe++)xe[xe.errorTypes[Oe]]=Oe,xe.prototype[xe.errorTypes[Oe]]=Oe;function Pe(t){return void 0!==t&amp;&amp;null!==t&amp;&amp;"function"==typeof t.then}function Le(t){Pe(t)&amp;&amp;t.then(null,function(t){})}var Ie=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,i,n){return t[i]&amp;&amp;(e[i]=t[i]),e},{cues:t.cues&amp;&amp;Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},De=function(t){var e=t.$$("track"),i=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=Ie(t.track);return t.src&amp;&amp;(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===i.indexOf(t)}).map(Ie))},Me=function(t,e){return t.forEach(function(t){var i=e.addRemoteTextTrack(t).track;!t.src&amp;&amp;t.cues&amp;&amp;t.cues.forEach(function(t){return i.addCue(t)})}),e.textTracks()},Re="vjs-modal-dialog",je=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=at("div",{className:Re+"-content"},{role:"document"}),r.descEl_=at("p",{className:Re+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),st(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return Re+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&amp;&amp;this.closeable()&amp;&amp;this.close()},e.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&amp;&amp;(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&amp;&amp;!this.hasBeenFilled_)&amp;&amp;this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&amp;&amp;this.wasPlaying_&amp;&amp;t.pause(),this.closeable()&amp;&amp;this.on(this.el_.ownerDocument,"keydown",te(this,this.handleKeyPress)),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},e.prototype.opened=function(t){return"boolean"==typeof t&amp;&amp;this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&amp;&amp;this.options_.pauseOnOpen&amp;&amp;t.play(),this.closeable()&amp;&amp;this.off(this.el_.ownerDocument,"keydown",te(this,this.handleKeyPress)),this.hadControls_&amp;&amp;t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&amp;&amp;this.dispose()}},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,i=this.getChild("closeButton");if(e&amp;&amp;!i){var n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close)}!e&amp;&amp;i&amp;&amp;(this.off(i,"close",this.close),this.removeChild(i),i.dispose())}return this.closeable_},e.prototype.fill=function(){this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),i=e.parentNode,n=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(e),this.empty(),Et(e,t),this.trigger("modalfill"),n?i.insertBefore(e,n):i.appendChild(e);var r=this.getChild("closeButton");r&amp;&amp;i.appendChild(r.el_)},e.prototype.empty=function(){this.trigger("beforemodalempty"),kt(this.contentEl()),this.trigger("modalempty")},e.prototype.content=function(t){return void 0!==t&amp;&amp;(this.content_=t),this.content_},e.prototype.conditionalFocus_=function(){var t=s.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&amp;&amp;(this.previouslyActiveEl_=t,this.focus(),this.on(s,"keydown",this.handleKeyDown))},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&amp;&amp;(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(s,"keydown",this.handleKeyDown)},e.prototype.handleKeyDown=function(t){if(9===t.which){for(var e=this.focusableEls_(),i=this.el_.querySelector(":focus"),n=void 0,r=0;r&lt;e.length;r++)if(i===e[r]){n=r;break}s.activeElement===this.el_&amp;&amp;(n=0),t.shiftKey&amp;&amp;0===n?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||n!==e.length-1||(e[0].focus(),t.preventDefault())}},e.prototype.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(t){return(t instanceof a.HTMLAnchorElement||t instanceof a.HTMLAreaElement)&amp;&amp;t.hasAttribute("href")||(t instanceof a.HTMLInputElement||t instanceof a.HTMLSelectElement||t instanceof a.HTMLTextAreaElement||t instanceof a.HTMLButtonElement)&amp;&amp;!t.hasAttribute("disabled")||t instanceof a.HTMLIFrameElement||t instanceof a.HTMLObjectElement||t instanceof a.HTMLEmbedElement||t.hasAttribute("tabindex")&amp;&amp;-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")})},e}(ye);je.prototype.options_={pauseOnOpen:!0,temporary:!0},ye.registerComponent("ModalDialog",je);var Ue=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[],n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:null;j(this,e);var r=N(this,t.call(this));if(!n&amp;&amp;(n=r,x))for(var a in n=s.createElement("custom"),e.prototype)"constructor"!==a&amp;&amp;(n[a]=e.prototype[a]);n.tracks_=[],Object.defineProperty(n,"length",{get:function(){return this.tracks_.length}});for(var o=0;o&lt;i.length;o++)n.addTrack(i[o]);return N(r,n)}return U(e,t),e.prototype.addTrack=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&amp;&amp;(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack=function(t){for(var e=void 0,i=0,n=this.length;i&lt;n;i++)if(this[i]===t){(e=this[i]).off&amp;&amp;e.off(),this.tracks_.splice(i,1);break}e&amp;&amp;this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,i=0,n=this.length;i&lt;n;i++){var r=this[i];if(r.id===t){e=r;break}}return e},e}(ne);for(var Ne in Ue.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Ue.prototype.allowedEvents_)Ue.prototype["on"+Ne]=null;var Be=function(t,e){for(var i=0;i&lt;t.length;i++)Object.keys(t[i]).length&amp;&amp;e.id!==t[i].id&amp;&amp;(t[i].enabled=!1)},Fe=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];j(this,e);for(var r=void 0,a=n.length-1;a&gt;=0;a--)if(n[a].enabled){Be(n,n[a]);break}if(x){for(var o in r=s.createElement("custom"),Ue.prototype)"constructor"!==o&amp;&amp;(r[o]=Ue.prototype[o]);for(var l in e.prototype)"constructor"!==l&amp;&amp;(r[l]=e.prototype[l])}return(r=i=N(this,t.call(this,n,r))).changing_=!1,N(i,r)}return U(e,t),e.prototype.addTrack=function(e){var i=this;e.enabled&amp;&amp;Be(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&amp;&amp;e.addEventListener("enabledchange",function(){i.changing_||(i.changing_=!0,Be(i,e),i.changing_=!1,i.trigger("change"))})},e}(Ue),He=function(t,e){for(var i=0;i&lt;t.length;i++)Object.keys(t[i]).length&amp;&amp;e.id!==t[i].id&amp;&amp;(t[i].selected=!1)},Ve=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];j(this,e);for(var r=void 0,a=n.length-1;a&gt;=0;a--)if(n[a].selected){He(n,n[a]);break}if(x){for(var o in r=s.createElement("custom"),Ue.prototype)"constructor"!==o&amp;&amp;(r[o]=Ue.prototype[o]);for(var l in e.prototype)"constructor"!==l&amp;&amp;(r[l]=e.prototype[l])}return(r=i=N(this,t.call(this,n,r))).changing_=!1,Object.defineProperty(r,"selectedIndex",{get:function(){for(var t=0;t&lt;this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),N(i,r)}return U(e,t),e.prototype.addTrack=function(e){var i=this;e.selected&amp;&amp;He(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&amp;&amp;e.addEventListener("selectedchange",function(){i.changing_||(i.changing_=!0,He(i,e),i.changing_=!1,i.trigger("change"))})},e}(Ue),ze=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];j(this,e);var r=void 0;if(x){for(var a in r=s.createElement("custom"),Ue.prototype)"constructor"!==a&amp;&amp;(r[a]=Ue.prototype[a]);for(var o in e.prototype)"constructor"!==o&amp;&amp;(r[o]=e.prototype[o])}return i=N(this,t.call(this,n,r)),N(i,r=i)}return U(e,t),e.prototype.addTrack=function(e){t.prototype.addTrack.call(this,e),e.addEventListener("modechange",te(this,function(){this.trigger("change")}));-1===["metadata","chapters"].indexOf(e.kind)&amp;&amp;e.addEventListener("modechange",te(this,function(){this.trigger("selectedlanguagechange")}))},e}(Ue),We=function(){function t(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];j(this,t);var i=this;if(x)for(var n in i=s.createElement("custom"),t.prototype)"constructor"!==n&amp;&amp;(i[n]=t.prototype[n]);i.trackElements_=[],Object.defineProperty(i,"length",{get:function(){return this.trackElements_.length}});for(var r=0,a=e.length;r&lt;a;r++)i.addTrackElement_(e[r]);if(x)return i}return t.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&amp;&amp;this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,i=0,n=this.trackElements_.length;i&lt;n;i++)if(t===this.trackElements_[i].track){e=this.trackElements_[i];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,i=this.trackElements_.length;e&lt;i;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}(),qe=function(){function t(e){j(this,t);var i=this;if(x)for(var n in i=s.createElement("custom"),t.prototype)"constructor"!==n&amp;&amp;(i[n]=t.prototype[n]);if(t.prototype.setCues_.call(i,e),Object.defineProperty(i,"length",{get:function(){return this.length_}}),x)return i}return t.prototype.setCues_=function(t){var e=this.length||0,i=0,n=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e&lt;n)for(i=e;i&lt;n;i++)r.call(this,i)},t.prototype.getCueById=function(t){for(var e=null,i=0,n=this.length;i&lt;n;i++){var r=this[i];if(r.id===t){e=r;break}}return e},t}(),Ge={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Xe={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Ye={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Ke={disabled:"disabled",hidden:"hidden",showing:"showing"},$e=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};j(this,e);var n=N(this,t.call(this)),r=n;if(x)for(var a in r=s.createElement("custom"),e.prototype)"constructor"!==a&amp;&amp;(r[a]=e.prototype[a]);var o={id:i.id||"vjs_track_"+It(),kind:i.kind||"",label:i.label||"",language:i.language||""},l=function(t){Object.defineProperty(r,t,{get:function(){return o[t]},set:function(){}})};for(var u in o)l(u);return N(n,r)}return U(e,t),e}(ne),Je=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],i=s.createElement("a");i.href=t;var n=""===i.host&amp;&amp;"file:"!==i.protocol,r=void 0;n&amp;&amp;((r=s.createElement("div")).innerHTML='&lt;a href="'+t+'"&gt;&lt;/a&gt;',i=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),s.body.appendChild(r));for(var o={},l=0;l&lt;e.length;l++)o[e[l]]=i[e[l]];return"http:"===o.protocol&amp;&amp;(o.host=o.host.replace(/:80$/,"")),"https:"===o.protocol&amp;&amp;(o.host=o.host.replace(/:443$/,"")),o.protocol||(o.protocol=a.location.protocol),n&amp;&amp;s.body.removeChild(r),o},Ze=function(t){if(!t.match(/^https?:\/\//)){var e=s.createElement("div");e.innerHTML='&lt;a href="'+t+'"&gt;x&lt;/a&gt;',t=e.firstChild.href}return t},Qe=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},ti=function(t){var e=a.location,i=Je(t);return(":"===i.protocol?e.protocol:i.protocol)+i.host!==e.protocol+e.host},ei=(Object.freeze||Object)({parseUrl:Je,getAbsoluteURL:Ze,getFileExtension:Qe,isCrossOrigin:ti}),ii=function(t,e){var i=new a.WebVTT.Parser(a,a.vttjs,a.WebVTT.StringDecoder()),n=[];i.oncue=function(t){e.addCue(t)},i.onparsingerror=function(t){n.push(t)},i.onflush=function(){e.trigger({type:"loadeddata",target:e})},i.parse(t),n.length&gt;0&amp;&amp;(a.console&amp;&amp;a.console.groupCollapsed&amp;&amp;a.console.groupCollapsed("Text Track parsing errors for "+e.src),n.forEach(function(t){return $.error(t)}),a.console&amp;&amp;a.console.groupEnd&amp;&amp;a.console.groupEnd()),i.flush()},ni=function(t,e){var i={uri:t},n=ti(t);n&amp;&amp;(i.cors=n),u(i,te(this,function(t,i,n){if(t)return $.error(t,i);if(e.loaded_=!0,"function"!=typeof a.WebVTT){if(e.tech_){var r=function(){return ii(n,e)};e.tech_.on("vttjsloaded",r),e.tech_.on("vttjserror",function(){$.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",r)})}}else ii(n,e)}))},ri=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};if(j(this,e),!n.tech)throw new Error("A tech was not provided.");var r=me(n,{kind:Ye[n.kind]||"subtitles",language:n.language||n.srclang||""}),a=Ke[r.mode]||"disabled",s=r.default;"metadata"!==r.kind&amp;&amp;"chapters"!==r.kind||(a="hidden");var o=i=N(this,t.call(this,r));if(o.tech_=r.tech,x)for(var l in e.prototype)"constructor"!==l&amp;&amp;(o[l]=e.prototype[l]);o.cues_=[],o.activeCues_=[];var u=new qe(o.cues_),c=new qe(o.activeCues_),h=!1,d=te(o,function(){this.activeCues=this.activeCues,h&amp;&amp;(this.trigger("cuechange"),h=!1)});return"disabled"!==a&amp;&amp;o.tech_.ready(function(){o.tech_.on("timeupdate",d)},!0),Object.defineProperty(o,"default",{get:function(){return s},set:function(){}}),Object.defineProperty(o,"mode",{get:function(){return a},set:function(t){var e=this;Ke[t]&amp;&amp;("showing"===(a=t)&amp;&amp;this.tech_.ready(function(){e.tech_.on("timeupdate",d)},!0),this.trigger("modechange"))}}),Object.defineProperty(o,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(o,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return c;for(var t=this.tech_.currentTime(),e=[],i=0,n=this.cues.length;i&lt;n;i++){var r=this.cues[i];r.startTime&lt;=t&amp;&amp;r.endTime&gt;=t?e.push(r):r.startTime===r.endTime&amp;&amp;r.startTime&lt;=t&amp;&amp;r.startTime+.5&gt;=t&amp;&amp;e.push(r)}if(h=!1,e.length!==this.activeCues_.length)h=!0;else for(var a=0;a&lt;e.length;a++)-1===this.activeCues_.indexOf(e[a])&amp;&amp;(h=!0);return this.activeCues_=e,c.setCues_(this.activeCues_),c},set:function(){}}),r.src?(o.src=r.src,ni(r.src,o)):o.loaded_=!0,N(i,o)}return U(e,t),e.prototype.addCue=function(t){var e=t;if(a.vttjs&amp;&amp;!(t instanceof a.vttjs.VTTCue)){for(var i in e=new a.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)i in e||(e[i]=t[i]);e.id=t.id,e.originalCue_=t}for(var n=this.tech_.textTracks(),r=0;r&lt;n.length;r++)n[r]!==this&amp;&amp;n[r].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(var e=this.cues_.length;e--;){var i=this.cues_[e];if(i===t||i.originalCue_&amp;&amp;i.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}($e);ri.prototype.allowedEvents_={cuechange:"cuechange"};var ai=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};j(this,e);var r=me(n,{kind:Xe[n.kind]||""}),a=i=N(this,t.call(this,r)),s=!1;if(x)for(var o in e.prototype)"constructor"!==o&amp;&amp;(a[o]=e.prototype[o]);return Object.defineProperty(a,"enabled",{get:function(){return s},set:function(t){"boolean"==typeof t&amp;&amp;t!==s&amp;&amp;(s=t,this.trigger("enabledchange"))}}),r.enabled&amp;&amp;(a.enabled=r.enabled),a.loaded_=!0,N(i,a)}return U(e,t),e}($e),si=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};j(this,e);var r=me(n,{kind:Ge[n.kind]||""}),a=i=N(this,t.call(this,r)),s=!1;if(x)for(var o in e.prototype)"constructor"!==o&amp;&amp;(a[o]=e.prototype[o]);return Object.defineProperty(a,"selected",{get:function(){return s},set:function(t){"boolean"==typeof t&amp;&amp;t!==s&amp;&amp;(s=t,this.trigger("selectedchange"))}}),r.selected&amp;&amp;(a.selected=r.selected),N(i,a)}return U(e,t),e}($e),oi=0,li=2,ui=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};j(this,e);var n=N(this,t.call(this)),r=void 0,a=n;if(x)for(var o in a=s.createElement("custom"),e.prototype)"constructor"!==o&amp;&amp;(a[o]=e.prototype[o]);var l=new ri(i);return a.kind=l.kind,a.src=l.src,a.srclang=l.language,a.label=l.label,a.default=l.default,Object.defineProperty(a,"readyState",{get:function(){return r}}),Object.defineProperty(a,"track",{get:function(){return l}}),r=oi,l.addEventListener("loadeddata",function(){r=li,a.trigger({type:"load",target:a})}),x?N(n,a):n}return U(e,t),e}(ne);ui.prototype.allowedEvents_={load:"load"},ui.NONE=oi,ui.LOADING=1,ui.LOADED=li,ui.ERROR=3;var ci={audio:{ListClass:Fe,TrackClass:ai,capitalName:"Audio"},video:{ListClass:Ve,TrackClass:si,capitalName:"Video"},text:{ListClass:ze,TrackClass:ri,capitalName:"Text"}};Object.keys(ci).forEach(function(t){ci[t].getterName=t+"Tracks",ci[t].privateName=t+"Tracks_"});var hi={remoteText:{ListClass:ze,TrackClass:ri,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:We,TrackClass:ui,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},di=me(ci,hi);hi.names=Object.keys(hi),ci.names=Object.keys(ci),di.names=[].concat(hi.names).concat(ci.names);var pi=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:function(){};j(this,e),i.reportTouchActivity=!1;var r=N(this,t.call(this,null,i,n));return r.hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),di.names.forEach(function(t){var e=di[t];i&amp;&amp;i[e.getterName]&amp;&amp;(r[e.privateName]=i[e.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===i["native"+t+"Tracks"]&amp;&amp;(r["featuresNative"+t+"Tracks"]=!1)}),!1===i.nativeCaptions||!1===i.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==i.nativeCaptions&amp;&amp;!0!==i.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new di.text.ListClass,r.initTrackListeners(),i.nativeControlsForTouch||r.emitTapEvents(),r.constructor&amp;&amp;(r.name_=r.constructor.name||"Unknown Tech"),r}return U(e,t),e.prototype.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",function(){return e.setTimeout(function(){return e.triggerSourceset(t)},1)}),this.trigger({src:t,type:"sourceset"})},e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(te(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&amp;&amp;this.trigger("progress"),this.bufferedPercent_=t,1===t&amp;&amp;this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(t){this.duration_=this.duration()},e.prototype.buffered=function(){return be(0,0)},e.prototype.bufferedPercent=function(){return Te(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&amp;&amp;this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(ci.names),this.manualProgress&amp;&amp;this.manualProgressOff(),this.manualTimeUpdates&amp;&amp;this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var i=e[t+"Tracks"]()||[],n=i.length;n--;){var r=i[n];"text"===t&amp;&amp;e.removeRemoteTextTrack(r),i.removeTrack(r)}})},e.prototype.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var i=t[e];this.removeRemoteTextTrack(i)}},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&amp;&amp;(this.error_=new xe(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?be(0,0):be()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&amp;&amp;this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTrackListeners=function(){var t=this;ci.names.forEach(function(e){var i=ci[e],n=function(){t.trigger(e+"trackchange")},r=t[i.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),t.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},e.prototype.addWebVttScript_=function(){var t=this;if(!a.WebVTT)if(s.body.contains(this.el())){if(!this.options_["vtt.js"]&amp;&amp;q(c)&amp;&amp;Object.keys(c).length&gt;0)return void this.trigger("vttjsloaded");var e=s.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks(),i=this.remoteTextTracks(),n=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return t.trigger("texttrackchange")},s=function(){a();for(var t=0;t&lt;e.length;t++){var i=e[t];i.removeEventListener("cuechange",a),"showing"===i.mode&amp;&amp;i.addEventListener("cuechange",a)}};s(),e.addEventListener("change",s),e.addEventListener("addtrack",s),e.addEventListener("removetrack",s),this.on("dispose",function(){i.off("addtrack",n),i.off("removetrack",r),e.removeEventListener("change",s),e.removeEventListener("addtrack",s),e.removeEventListener("removetrack",s);for(var t=0;t&lt;e.length;t++){e[t].removeEventListener("cuechange",a)}})},e.prototype.addTextTrack=function(t,e,i){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,i,n){var r=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:{},a=t.textTracks();r.kind=e,i&amp;&amp;(r.label=i),n&amp;&amp;(r.language=n),r.tech=t;var s=new di.text.TrackClass(r);return a.addTrack(s),s}(this,t,e,i)},e.prototype.createRemoteTextTrack=function(t){var e=me(t,{tech:this});return new hi.remoteTextEl.TrackClass(e)},e.prototype.addRemoteTextTrack=function(){var t=this,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},i=arguments[1],n=this.createRemoteTextTrack(e);return!0!==i&amp;&amp;!1!==i&amp;&amp;($.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==i&amp;&amp;this.ready(function(){return t.autoRemoteTextTracks_.addTrack(n.track)}),n},e.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},e.prototype.getVideoPlaybackQuality=function(){return{}},e.prototype.setPoster=function(){},e.prototype.playsinline=function(){},e.prototype.setPlaysinline=function(){},e.prototype.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,i){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,i){if(e.techs_||(e.techs_={}),!e.isTech(i))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=ge(t),e.techs_[t]=i,"Tech"!==t&amp;&amp;e.defaultTechOrder_.push(t),i},e.getTech=function(t){if(t)return t=ge(t),e.techs_&amp;&amp;e.techs_[t]?e.techs_[t]:a&amp;&amp;a.videojs&amp;&amp;a.videojs[t]?($.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),a.videojs[t]):void 0},e}(ye);di.names.forEach(function(t){var e=di[t];pi.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),pi.prototype.featuresVolumeControl=!0,pi.prototype.featuresMuteControl=!0,pi.prototype.featuresFullscreenResize=!1,pi.prototype.featuresPlaybackRate=!1,pi.prototype.featuresProgressEvents=!1,pi.prototype.featuresSourceset=!1,pi.prototype.featuresTimeupdateEvents=!1,pi.prototype.featuresNativeTextTracks=!1,pi.withSourceHandlers=function(t){t.registerSourceHandler=function(e,i){var n=t.sourceHandlers;n||(n=t.sourceHandlers=[]),void 0===i&amp;&amp;(i=n.length),n.splice(i,0,e)},t.canPlayType=function(e){for(var i=t.sourceHandlers||[],n=void 0,r=0;r&lt;i.length;r++)if(n=i[r].canPlayType(e))return n;return""},t.selectSourceHandler=function(e,i){for(var n=t.sourceHandlers||[],r=0;r&lt;n.length;r++)if(n[r].canHandleSource(e,i))return n[r];return null},t.canPlaySource=function(e,i){var n=t.selectSourceHandler(e,i);return n?n.canHandleSource(e,i):""};["seekable","seeking","duration"].forEach(function(t){var e=this[t];"function"==typeof e&amp;&amp;(this[t]=function(){return this.sourceHandler_&amp;&amp;this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var i=t.selectSourceHandler(e,this.options_);i||(t.nativeSourceHandler?i=t.nativeSourceHandler:$.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),i!==t.nativeSourceHandler&amp;&amp;(this.currentSource_=e),this.sourceHandler_=i.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler)},t.prototype.disposeSourceHandler=function(){this.currentSource_&amp;&amp;(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&amp;&amp;(this.sourceHandler_.dispose&amp;&amp;this.sourceHandler_.dispose(),this.sourceHandler_=null)}},ye.registerComponent("Tech",pi),pi.registerTech("Tech",pi),pi.defaultTechOrder_=[];var fi={},gi={},mi={};function yi(t,e,i){t.setTimeout(function(){return function t(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:[];var n=arguments[2];var r=arguments[3];var a=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:[];var s=arguments.length&gt;5&amp;&amp;void 0!==arguments[5]&amp;&amp;arguments[5];var o=i[0],l=i.slice(1);if("string"==typeof o)t(e,fi[o],n,r,a,s);else if(o){var u=function(t,e){var i=gi[t.id()],n=null;if(void 0===i||null===i)return n=e(t),gi[t.id()]=[[e,n]],n;for(var r=0;r&lt;i.length;r++){var a=i[r],s=a[0],o=a[1];s===e&amp;&amp;(n=o)}null===n&amp;&amp;(n=e(t),i.push([e,n]));return n}(r,o);if(!u.setSource)return a.push(u),t(e,l,n,r,a,s);u.setSource(z({},e),function(i,o){if(i)return t(e,l,n,r,a,s);a.push(u),t(o,e.type===o.type?l:fi[o.type],n,r,a,s)})}else l.length?t(e,l,n,r,a,s):s?n(e,a):t(e,fi["*"],n,r,a,!0)}(e,fi[e.type],i,t)},1)}function vi(t,e,i){var n=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:null,r="call"+ge(i),a=t.reduce(Si(r),n),s=a===mi,o=s?null:e[i](a);return function(t,e,i,n){for(var r=t.length-1;r&gt;=0;r--){var a=t[r];a[e]&amp;&amp;a[e](n,i)}}(t,i,o,s),o}var _i={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},bi={setCurrentTime:1},Ti={play:1,pause:1};function Si(t){return function(e,i){return e===mi?mi:i[t]?i[t](e):e}}var ki={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Ci=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",e=Qe(t);return ki[e.toLowerCase()]||""};function wi(t){var e=Ci(t.src);return!t.type&amp;&amp;e&amp;&amp;(t.type=e),t}var Ei=function(t){function e(i,n,r){j(this,e);var a=me({createEl:!1},n),s=N(this,t.call(this,i,a,r));if(n.playerOptions.sources&amp;&amp;0!==n.playerOptions.sources.length)i.src(n.playerOptions.sources);else for(var o=0,l=n.playerOptions.techOrder;o&lt;l.length;o++){var u=ge(l[o]),c=pi.getTech(u);if(u||(c=ye.getComponent(u)),c&amp;&amp;c.isSupported()){i.loadTech_(u);break}}return s}return U(e,t),e}(ye);ye.registerComponent("MediaLoader",Ei);var Ai=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.emitTapEvents(),r.enable(),r}return U(e,t),e.prototype.createEl=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"div",i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};i=z({innerHTML:'&lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;',className:this.buildCSSClass(),tabIndex:0},i),"button"===e&amp;&amp;$.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=z({role:"button"},n),this.tabIndex_=i.tabIndex;var r=t.prototype.createEl.call(this,e,i,n);return this.createControlTextEl(r),r},e.prototype.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=at("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&amp;&amp;t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},e.prototype.controlText=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:this.el();if(void 0===t)return this.controlText_||"Need Text";var i=this.localize(t);this.controlText_=t,st(this.controlTextEl_,i),this.nonIconControl||e.setAttribute("title",i)},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&amp;&amp;this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},e.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&amp;&amp;this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},e.prototype.handleClick=function(t){},e.prototype.handleFocus=function(t){zt(s,"keydown",te(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.trigger("click")):t.prototype.handleKeyPress&amp;&amp;t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(t){Wt(s,"keydown",te(this,this.handleKeyPress))},e}(ye);ye.registerComponent("ClickableComponent",Ai);var xi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.update(),i.on("posterchange",te(r,r.update)),r}return U(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=at("div",{className:"vjs-poster",tabIndex:-1});return D||(this.fallbackImg_=at("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&amp;&amp;(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(t){this.player_.controls()&amp;&amp;(this.player_.paused()?Le(this.player_.play()):this.player_.pause())},e}(Ai);ye.registerComponent("PosterImage",xi);var Oi={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 Pi(t,e){var i=void 0;if(4===t.length)i=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");i=t.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+e+")"}function Li(t,e,i){try{t.style[e]=i}catch(t){return}}var Ii=function(t){function e(i,n,r){j(this,e);var a=N(this,t.call(this,i,n,r));return i.on("loadstart",te(a,a.toggleDisplay)),i.on("texttrackchange",te(a,a.updateDisplay)),i.on("loadstart",te(a,a.preselectTrack)),i.ready(te(a,function(){if(i.tech_&amp;&amp;i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",te(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e&lt;t.length;e++)this.player_.addRemoteTextTrack(t[e],!0);this.preselectTrack()}})),a}return U(e,t),e.prototype.preselectTrack=function(){for(var t={captions:1,subtitles:1},e=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage,n=void 0,r=void 0,a=void 0,s=0;s&lt;e.length;s++){var o=e[s];i&amp;&amp;i.enabled&amp;&amp;i.language===o.language?o.kind===i.kind?a=o:a||(a=o):i&amp;&amp;!i.enabled?(a=null,n=null,r=null):o.default&amp;&amp;("descriptions"!==o.kind||n?o.kind in t&amp;&amp;!r&amp;&amp;(r=o):n=o)}a?a.mode="showing":r?r.mode="showing":n&amp;&amp;(n.mode="showing")},e.prototype.toggleDisplay=function(){this.player_.tech_&amp;&amp;this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"==typeof a.WebVTT&amp;&amp;a.WebVTT.processCues(a,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();this.clearDisplay();for(var e=null,i=null,n=t.length;n--;){var r=t[n];"showing"===r.mode&amp;&amp;("descriptions"===r.kind?e=r:i=r)}i?("off"!==this.getAttribute("aria-live")&amp;&amp;this.setAttribute("aria-live","off"),this.updateForTrack(i)):e&amp;&amp;("assertive"!==this.getAttribute("aria-live")&amp;&amp;this.setAttribute("aria-live","assertive"),this.updateForTrack(e))},e.prototype.updateForTrack=function(t){if("function"==typeof a.WebVTT&amp;&amp;t.activeCues){for(var e=[],i=0;i&lt;t.activeCues.length;i++)e.push(t.activeCues[i]);if(a.WebVTT.processCues(a,e,this.el_),this.player_.textTrackSettings)for(var n=this.player_.textTrackSettings.getValues(),r=e.length;r--;){var s=e[r];if(s){var o=s.displayState;if(n.color&amp;&amp;(o.firstChild.style.color=n.color),n.textOpacity&amp;&amp;Li(o.firstChild,"color",Pi(n.color||"#fff",n.textOpacity)),n.backgroundColor&amp;&amp;(o.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&amp;&amp;Li(o.firstChild,"backgroundColor",Pi(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&amp;&amp;(n.windowOpacity?Li(o,"backgroundColor",Pi(n.windowColor,n.windowOpacity)):o.style.backgroundColor=n.windowColor),n.edgeStyle&amp;&amp;("dropshadow"===n.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===n.edgeStyle?o.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===n.edgeStyle?o.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===n.edgeStyle&amp;&amp;(o.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),n.fontPercent&amp;&amp;1!==n.fontPercent){var l=a.parseFloat(o.style.fontSize);o.style.fontSize=l*n.fontPercent+"px",o.style.height="auto",o.style.top="auto",o.style.bottom="2px"}n.fontFamily&amp;&amp;"default"!==n.fontFamily&amp;&amp;("small-caps"===n.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=Oi[n.fontFamily])}}}},e}(ye);ye.registerComponent("TextTrackDisplay",Ii);var Di=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),i=this.localize(e?"Audio Player":"Video Player"),n=at("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[i])}),r=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(n),r},e}(ye);ye.registerComponent("LoadingSpinner",Di);var Mi=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};e=z({innerHTML:'&lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;',className:this.buildCSSClass()},e),i=z({type:"button"},i);var n=ye.prototype.createEl.call(this,"button",e,i);return this.createControlTextEl(n),n},e.prototype.addChild=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=this.constructor.name;return $.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),ye.prototype.addChild.call(this,t,e)},e.prototype.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},e.prototype.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},e.prototype.handleKeyPress=function(e){32!==e.which&amp;&amp;13!==e.which&amp;&amp;t.prototype.handleKeyPress.call(this,e)},e}(Ai);ye.registerComponent("Button",Mi);var Ri=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&amp;&amp;t.clientX&amp;&amp;t.clientY)Le(e);else{var i=this.player_.getChild("controlBar"),n=i&amp;&amp;i.getChild("playToggle");if(n){var r=function(){return n.focus()};Pe(e)?e.then(r,function(){}):this.setTimeout(r,1)}else this.player_.focus()}},e.prototype.handleKeyPress=function(e){this.mouseused_=!1,t.prototype.handleKeyPress.call(this,e)},e.prototype.handleMouseDown=function(t){this.mouseused_=!0},e}(Mi);Ri.prototype.controlText_="Play Video",ye.registerComponent("BigPlayButton",Ri);var ji=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.controlText(n&amp;&amp;n.controlText||r.localize("Close")),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},e}(Mi);ye.registerComponent("CloseButton",ji);var Ui=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"play",r.handlePlay),r.on(i,"pause",r.handlePause),r.on(i,"ended",r.handleEnded),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},e.prototype.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e.prototype.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}(Mi);Ui.prototype.controlText_="Play",ye.registerComponent("PlayToggle",Ui);var Ni=function(t,e){t=t&lt;0?0:t;var i=Math.floor(t%60),n=Math.floor(t/60%60),r=Math.floor(t/3600),a=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&amp;&amp;(r=n=i="-"),(r=r&gt;0||s&gt;0?r+":":"")+(n=((r||a&gt;=10)&amp;&amp;n&lt;10?"0"+n:n)+":")+(i=i&lt;10?"0"+i:i)},Bi=Ni;var Fi=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:t;return Bi(t,e)},Hi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.throttledUpdateContent=ee(te(r,r.updateContent),25),r.on(i,"timeupdate",r.throttledUpdateContent),r}return U(e,t),e.prototype.createEl=function(e){var i=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:i+" vjs-time-control vjs-control",innerHTML:'&lt;span class="vjs-control-text"&gt;'+this.localize(this.labelText_)+"Â&nbsp;&lt;/span&gt;"});return this.contentEl_=at("span",{className:i+"-display"},{"aria-live":"off"}),this.updateTextNode_(),n.appendChild(this.contentEl_),n},e.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},e.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=s.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},e.prototype.formatTime_=function(t){return Fi(t)},e.prototype.updateFormattedTime_=function(t){var e=this.formatTime_(t);e!==this.formattedTime_&amp;&amp;(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},e.prototype.updateContent=function(t){},e}(ye);Hi.prototype.labelText_="Time",Hi.prototype.controlText_="Time",ye.registerComponent("TimeDisplay",Hi);var Vi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"ended",r.handleEnded),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-current-time"},e.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(e)},e.prototype.handleEnded=function(t){this.player_.duration()&amp;&amp;this.updateFormattedTime_(this.player_.duration())},e}(Hi);Vi.prototype.labelText_="Current Time",Vi.prototype.controlText_="Current Time",ye.registerComponent("CurrentTimeDisplay",Vi);var zi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"durationchange",r.updateContent),r.on(i,"loadedmetadata",r.throttledUpdateContent),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-duration"},e.prototype.updateContent=function(t){var e=this.player_.duration();e&amp;&amp;this.duration_!==e&amp;&amp;(this.duration_=e,this.updateFormattedTime_(e))},e}(Hi);zi.prototype.labelText_="Duration",zi.prototype.controlText_="Duration",ye.registerComponent("DurationDisplay",zi);var Wi=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"&lt;div&gt;&lt;span&gt;/&lt;/span&gt;&lt;/div&gt;"})},e}(ye);ye.registerComponent("TimeDivider",Wi);var qi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"durationchange",r.throttledUpdateContent),r.on(i,"ended",r.handleEnded),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-remaining-time"},e.prototype.formatTime_=function(e){return"-"+t.prototype.formatTime_.call(this,e)},e.prototype.updateContent=function(t){this.player_.duration()&amp;&amp;(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},e.prototype.handleEnded=function(t){this.player_.duration()&amp;&amp;this.updateFormattedTime_(0)},e}(Hi);qi.prototype.labelText_="Remaining Time",qi.prototype.controlText_="Remaining Time",ye.registerComponent("RemainingTimeDisplay",qi);var Gi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return U(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=at("div",{className:"vjs-live-display",innerHTML:'&lt;span class="vjs-control-text"&gt;'+this.localize("Stream Type")+"Â&nbsp;&lt;/span&gt;"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(ye);ye.registerComponent("LiveDisplay",Gi);var Xi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return U(e,t),e.prototype.enabled=function(){return this.enabled_},e.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&amp;&amp;this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},e.prototype.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&amp;&amp;this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},e.prototype.createEl=function(e){var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};return i.className=i.className+" vjs-slider",i=z({tabIndex:0},i),n=z({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),t.prototype.createEl.call(this,e,i,n)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&amp;&amp;t.preventDefault(),"touchstart"!==t.type||E||t.preventDefault(),yt(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(t){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;vt(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!=t||t&lt;0||t===1/0)&amp;&amp;(t=0);var i=(100*t).toFixed(2)+"%",n=e.el().style;return this.vertical()?n.height=i:n.width=i,t}}},e.prototype.calculateDistance=function(t){var e=Tt(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&amp;&amp;39!==t.which||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(ye);ye.registerComponent("Slider",Xi);var Yi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.partEls_=[],r.on(i,"progress",r.update),r}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'&lt;span class="vjs-control-text"&gt;&lt;span&gt;'+this.localize("Loaded")+"&lt;/span&gt;: 0%&lt;/span&gt;"})},e.prototype.dispose=function(){this.partEls_=null,t.prototype.dispose.call(this)},e.prototype.update=function(t){var e=this.player_.buffered(),i=this.player_.duration(),n=this.player_.bufferedEnd(),r=this.partEls_,a=function(t,e){var i=t/e||0;return 100*(i&gt;=1?1:i)+"%"};this.el_.style.width=a(n,i);for(var s=0;s&lt;e.length;s++){var o=e.start(s),l=e.end(s),u=r[s];u||(u=this.el_.appendChild(at()),r[s]=u),u.style.left=a(o,n),u.style.width=a(l-o,n)}for(var c=r.length;c&gt;e.length;c--)this.el_.removeChild(r[c-1]);r.length=e.length},e}(ye);ye.registerComponent("LoadProgressBar",Yi);var Ki=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},e.prototype.update=function(t,e,i){var n=_t(this.el_),r=_t(this.player_.el()),a=t.width*e;if(r&amp;&amp;n){var s=t.left-r.left+a,o=t.width-a+(r.right-t.right),l=n.width/2;s&lt;l?l+=l-s:o&lt;l&amp;&amp;(l=o),l&lt;0?l=0:l&gt;n.width&amp;&amp;(l=n.width),this.el_.style.right="-"+l+"px",st(this.el_,i)}},e}(ye);ye.registerComponent("TimeTooltip",Ki);var $i=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'&lt;span class="vjs-control-text"&gt;&lt;span&gt;'+this.localize("Progress")+"&lt;/span&gt;: 0%&lt;/span&gt;"})},e.prototype.update=function(t,e){var i=this;this.rafId_&amp;&amp;this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var n=i.player_.scrubbing()?i.player_.getCache().currentTime:i.player_.currentTime(),r=Fi(n,i.player_.duration()),a=i.getChild("timeTooltip");a&amp;&amp;a.update(t,e,r)})},e}(ye);$i.prototype.options_={children:[]},O&amp;&amp;!(O&gt;8)||v||b||$i.prototype.options_.children.push("timeTooltip"),ye.registerComponent("PlayProgressBar",$i);var Ji=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.update=ee(te(r,r.update),25),r}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.update=function(t,e){var i=this;this.rafId_&amp;&amp;this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var n=i.player_.duration(),r=Fi(e*n,n);i.el_.style.left=t.width*e+"px",i.getChild("timeTooltip").update(t,e,r)})},e}(ye);Ji.prototype.options_={children:["timeTooltip"]},ye.registerComponent("MouseTimeDisplay",Ji);var Zi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.setEventHandlers_(),r}return U(e,t),e.prototype.setEventHandlers_=function(){var t=this;this.update=ee(te(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){t.clearInterval(t.updateInterval),t.updateInterval=t.setInterval(function(){t.requestAnimationFrame(function(){t.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){t.clearInterval(t.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},e.prototype.update_=function(t,e){var i=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Fi(t,i),Fi(i,i)],"{1} of {2}")),this.bar.update(_t(this.el_),e)},e.prototype.update=function(e){var i=t.prototype.update.call(this);return this.update_(this.getCurrentTime_(),i),i},e.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},e.prototype.handleEnded=function(t){this.update_(this.player_.duration(),1)},e.prototype.getPercent=function(){var t=this.getCurrentTime_()/this.player_.duration();return t&gt;=1?1:t},e.prototype.handleMouseDown=function(e){At(e)&amp;&amp;(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},e.prototype.handleMouseMove=function(t){if(At(t)){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&amp;&amp;(e-=.1),this.player_.currentTime(e)}},e.prototype.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&amp;&amp;e.show()},e.prototype.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&amp;&amp;e.hide()},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&amp;&amp;e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&amp;&amp;Le(this.player_.play())},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleAction(e)):t.prototype.handleKeyPress&amp;&amp;t.prototype.handleKeyPress.call(this,e)},e}(Xi);Zi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},O&amp;&amp;!(O&gt;8)||v||b||Zi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Zi.prototype.playerEvent="timeupdate",ye.registerComponent("SeekBar",Zi);var Qi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.handleMouseMove=ee(te(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=ee(te(r,r.handleMouseSeek),25),r.enable(),r}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var i=e.getChild("mouseTimeDisplay"),n=e.el(),r=_t(n),a=Tt(n,t).x;a&gt;1?a=1:a&lt;0&amp;&amp;(a=0),i&amp;&amp;i.update(r,a)}},e.prototype.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&amp;&amp;e.handleMouseMove(t)},e.prototype.enabled=function(){return this.enabled_},e.prototype.disable=function(){this.children().forEach(function(t){return t.disable&amp;&amp;t.disable()}),this.enabled()&amp;&amp;(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},e.prototype.enable=function(){this.children().forEach(function(t){return t.enable&amp;&amp;t.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument,i=this.getChild("seekBar");i&amp;&amp;i.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument,i=this.getChild("seekBar");i&amp;&amp;i.handleMouseUp(t),this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e}(ye);Qi.prototype.options_={children:["seekBar"]},ye.registerComponent("ProgressControl",Qi);var tn=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"fullscreenchange",r.handleFullscreenChange),!1===s[Se.fullscreenEnabled]&amp;&amp;r.disable(),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},e.prototype.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(Mi);tn.prototype.controlText_="Fullscreen",ye.registerComponent("FullscreenToggle",tn);var en=function(t,e){e.tech_&amp;&amp;!e.tech_.featuresVolumeControl&amp;&amp;t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},nn=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'&lt;span class="vjs-control-text"&gt;&lt;/span&gt;'})},e}(ye);ye.registerComponent("VolumeLevel",nn);var rn=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on("slideractive",r.updateLastVolume_),r.on(i,"volumechange",r.updateARIAAttributes),i.ready(function(){return r.updateARIAAttributes()}),r}return U(e,t),e.prototype.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"})},e.prototype.handleMouseDown=function(e){At(e)&amp;&amp;t.prototype.handleMouseDown.call(this,e)},e.prototype.handleMouseMove=function(t){At(t)&amp;&amp;(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},e.prototype.checkMuted=function(){this.player_.muted()&amp;&amp;this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},e.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},e.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&amp;&amp;t.player_.lastVolume_(e)})},e}(Xi);rn.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},rn.prototype.playerEvent="volumechange",ye.registerComponent("VolumeBar",rn);var an=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};j(this,e),n.vertical=n.vertical||!1,(void 0===n.volumeBar||q(n.volumeBar))&amp;&amp;(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var r=N(this,t.call(this,i,n));return en(r,i),r.throttledHandleMouseMove=ee(te(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")}),r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")}),r}return U(e,t),e.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&amp;&amp;(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(ye);an.prototype.options_={children:["volumeBar"]},ye.registerComponent("VolumeControl",an);var sn=function(t,e){e.tech_&amp;&amp;!e.tech_.featuresMuteControl&amp;&amp;t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},on=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return sn(r,i),r.on(i,["loadstart","volumechange"],r.update),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){var e=this.player_.volume(),i=this.player_.lastVolume_();if(0===e){var n=i&lt;.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},e.prototype.update=function(t){this.updateIcon_(),this.updateControlText_()},e.prototype.updateIcon_=function(){var t=this.player_.volume(),e=3;v&amp;&amp;this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t&lt;.33?e=1:t&lt;.67&amp;&amp;(e=2);for(var i=0;i&lt;4;i++)ct(this.el_,"vjs-vol-"+i);ut(this.el_,"vjs-vol-"+e)},e.prototype.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&amp;&amp;this.controlText(t)},e}(Mi);on.prototype.controlText_="Mute",ye.registerComponent("MuteToggle",on);var ln=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};j(this,e),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||q(n.volumeControl))&amp;&amp;(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var r=N(this,t.call(this,i,n));return r.on(i,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return U(e,t),e.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},e.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},e.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&amp;&amp;this.muteToggle.hasClass("vjs-hidden")&amp;&amp;this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&amp;&amp;!this.muteToggle.hasClass("vjs-hidden")&amp;&amp;this.addClass("vjs-mute-toggle-only")},e.prototype.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})},e}(ye);ln.prototype.options_={children:["muteToggle","volumeControl"]},ye.registerComponent("VolumePanel",ln);var un=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return n&amp;&amp;(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return U(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",te(this,function(e){this.menuButton_&amp;&amp;(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==t.name()&amp;&amp;this.menuButton_.focus())}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=at(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),zt(i,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),i},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&amp;&amp;39!==t.which||(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&amp;&amp;(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&amp;&amp;(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:0,e=this.children().slice();e.length&amp;&amp;e[0].className&amp;&amp;/vjs-menu-title/.test(e[0].className)&amp;&amp;e.shift(),e.length&gt;0&amp;&amp;(t&lt;0?t=0:t&gt;=e.length&amp;&amp;(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(ye);ye.registerComponent("Menu",un);var cn=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};j(this,e);var r=N(this,t.call(this,i,n));r.menuButton_=new Mi(i,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var a=Mi.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+a,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return U(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&amp;&amp;(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&amp;&amp;this.items.length&lt;=this.hideThreshold_?this.hide():this.show()},e.prototype.createMenu=function(){var t=new un(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=at("li",{className:"vjs-menu-title",innerHTML:ge(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,t.children_.unshift(e),ot(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var i=0;i&lt;this.items.length;i++)t.addItem(this.items[i]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},e.prototype.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Mi.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},e.prototype.controlText=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(t,e)},e.prototype.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",te(this,function(t){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.focus=function(){this.menuButton_.focus()},e.prototype.blur=function(){this.menuButton_.blur()},e.prototype.handleFocus=function(){zt(s,"keydown",te(this,this.handleKeyPress))},e.prototype.handleBlur=function(){Wt(s,"keydown",te(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&amp;&amp;this.unpressButton(),9!==t.which&amp;&amp;(t.preventDefault(),this.menuButton_.el_.focus())):38!==t.which&amp;&amp;40!==t.which||this.buttonPressed_||(this.pressButton(),t.preventDefault())},e.prototype.handleSubmenuKeyPress=function(t){27!==t.which&amp;&amp;9!==t.which||(this.buttonPressed_&amp;&amp;this.unpressButton(),9!==t.which&amp;&amp;(t.preventDefault(),this.menuButton_.el_.focus()))},e.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),v&amp;&amp;nt())return;this.menu.focus()}},e.prototype.unpressButton=function(){this.enabled_&amp;&amp;(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},e.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},e.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(ye);ye.registerComponent("MenuButton",cn);var hn=function(t){function e(i,n){j(this,e);var r=n.tracks,a=N(this,t.call(this,i,n));if(a.items.length&lt;=1&amp;&amp;a.hide(),!r)return N(a);var s=te(a,a.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),a.player_.on("ready",s),a.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)}),a}return U(e,t),e}(cn);ye.registerComponent("TrackButton",hn);var dn=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return U(e,t),e.prototype.createEl=function(e,i,n){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",z({className:"vjs-menu-item",innerHTML:'&lt;span class="vjs-menu-item-text"&gt;'+this.localize(this.options_.label)+"&lt;/span&gt;",tabIndex:-1},i),n)},e.prototype.handleClick=function(t){this.selected(!0)},e.prototype.selected=function(t){this.selectable&amp;&amp;(t?(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))},e}(Ai);ye.registerComponent("MenuItem",dn);var pn=function(t){function e(i,n){j(this,e);var r=n.track,o=i.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode;var l=N(this,t.call(this,i,n));l.track=r;var u=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];l.handleTracksChange.apply(l,e)},c=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];l.handleSelectedLanguageChange.apply(l,e)};if(i.on(["loadstart","texttrackchange"],u),o.addEventListener("change",u),o.addEventListener("selectedlanguagechange",c),l.on("dispose",function(){i.off(["loadstart","texttrackchange"],u),o.removeEventListener("change",u),o.removeEventListener("selectedlanguagechange",c)}),void 0===o.onchange){var h=void 0;l.on(["tap","click"],function(){if("object"!==R(a.Event))try{h=new a.Event("change")}catch(t){}h||(h=s.createEvent("Event")).initEvent("change",!0,!0),o.dispatchEvent(h)})}return l.handleTracksChange(),l}return U(e,t),e.prototype.handleClick=function(e){var i=this.track.kind,n=this.track.kinds,r=this.player_.textTracks();if(n||(n=[i]),t.prototype.handleClick.call(this,e),r)for(var a=0;a&lt;r.length;a++){var s=r[a];s===this.track&amp;&amp;n.indexOf(s.kind)&gt;-1?"showing"!==s.mode&amp;&amp;(s.mode="showing"):"disabled"!==s.mode&amp;&amp;(s.mode="disabled")}},e.prototype.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&amp;&amp;this.selected(e)},e.prototype.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&amp;&amp;e.enabled&amp;&amp;e.language===this.track.language&amp;&amp;e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},e.prototype.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(dn);ye.registerComponent("TextTrackMenuItem",pn);var fn=function(t){function e(i,n){return j(this,e),n.track={player:i,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,N(this,t.call(this,i,n))}return U(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!0,n=0,r=e.length;n&lt;r;n++){var a=e[n];if(this.options_.kinds.indexOf(a.kind)&gt;-1&amp;&amp;"showing"===a.mode){i=!1;break}}i!==this.isSelected_&amp;&amp;this.selected(i)},e.prototype.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),i=!0,n=0,r=e.length;n&lt;r;n++){var a=e[n];if(["captions","descriptions","subtitles"].indexOf(a.kind)&gt;-1&amp;&amp;"showing"===a.mode){i=!1;break}}i&amp;&amp;(this.player_.cache_.selectedLanguage={enabled:!1})},e}(pn);ye.registerComponent("OffTextTrackMenuItem",fn);var gn=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return j(this,e),n.tracks=i.textTracks(),N(this,t.call(this,i,n))}return U(e,t),e.prototype.createItems=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[],e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:pn,i=void 0;this.label_&amp;&amp;(i=this.label_+" off"),t.push(new fn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r&lt;n.length;r++){var a=n[r];if(this.kinds_.indexOf(a.kind)&gt;-1){var s=new e(this.player_,{track:a,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),t.push(s)}}return t},e}(hn);ye.registerComponent("TextTrackButton",gn);var mn=function(t){function e(i,n){j(this,e);var r=n.track,a=n.cue,s=i.currentTime();n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime&lt;=s&amp;&amp;s&lt;a.endTime;var o=N(this,t.call(this,i,n));return o.track=r,o.cue=a,r.addEventListener("cuechange",te(o,o.update)),o}return U(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(t){var e=this.cue,i=this.player_.currentTime();this.selected(e.startTime&lt;=i&amp;&amp;i&lt;e.endTime)},e}(dn);ye.registerComponent("ChaptersTrackMenuItem",mn);var yn=function(t){function e(i,n,r){return j(this,e),N(this,t.call(this,i,n,r))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.update=function(e){this.track_&amp;&amp;(!e||"addtrack"!==e.type&amp;&amp;"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},e.prototype.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&amp;&amp;e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&amp;&amp;i.addEventListener("load",this.updateHandler_)}}},e.prototype.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e&gt;=0;e--){var i=t[e];if(i.kind===this.kind_)return i}},e.prototype.getMenuCaption=function(){return this.track_&amp;&amp;this.track_.label?this.track_.label:this.localize(ge(this.kind_))},e.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},e.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var i=0,n=e.length;i&lt;n;i++){var r=e[i],a=new mn(this.player_,{track:this.track_,cue:r});t.push(a)}return t},e}(gn);yn.prototype.kind_="chapters",yn.prototype.controlText_="Chapters",ye.registerComponent("ChaptersButton",yn);var vn=function(t){function e(i,n,r){j(this,e);var a=N(this,t.call(this,i,n,r)),s=i.textTracks(),o=te(a,a.handleTracksChange);return s.addEventListener("change",o),a.on("dispose",function(){s.removeEventListener("change",o)}),a}return U(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!1,n=0,r=e.length;n&lt;r;n++){var a=e[n];if(a.kind!==this.kind_&amp;&amp;"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(gn);vn.prototype.kind_="descriptions",vn.prototype.controlText_="Descriptions",ye.registerComponent("DescriptionsButton",vn);var _n=function(t){function e(i,n,r){return j(this,e),N(this,t.call(this,i,n,r))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(gn);_n.prototype.kind_="subtitles",_n.prototype.controlText_="Subtitles",ye.registerComponent("SubtitlesButton",_n);var bn=function(t){function e(i,n){j(this,e),n.track={player:i,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem";var r=N(this,t.call(this,i,n));return r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return U(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(pn);ye.registerComponent("CaptionSettingsMenuItem",bn);var Tn=function(t){function e(i,n,r){return j(this,e),N(this,t.call(this,i,n,r))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&amp;&amp;this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new bn(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(gn);Tn.prototype.kind_="captions",Tn.prototype.controlText_="Captions",ye.registerComponent("CaptionsButton",Tn);var Sn=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(e,i,n){var r='&lt;span class="vjs-menu-item-text"&gt;'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&amp;&amp;(r+='\n        &lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;\n        &lt;span class="vjs-control-text"&gt; '+this.localize("Captions")+"&lt;/span&gt;\n      "),r+="&lt;/span&gt;",t.prototype.createEl.call(this,e,z({innerHTML:r},i),n)},e}(pn);ye.registerComponent("SubsCapsMenuItem",Sn);var kn=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};j(this,e);var r=N(this,t.call(this,i,n));return r.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)&gt;-1&amp;&amp;(r.label_="captions"),r.menuButton_.controlText(ge(r.label_)),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&amp;&amp;this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new bn(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,Sn)},e}(gn);kn.prototype.kinds_=["captions","subtitles"],kn.prototype.controlText_="Subtitles",ye.registerComponent("SubsCapsButton",kn);var Cn=function(t){function e(i,n){j(this,e);var r=n.track,a=i.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled;var s=N(this,t.call(this,i,n));s.track=r,s.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];s.handleTracksChange.apply(s,e)};return a.addEventListener("change",o),s.on("dispose",function(){a.removeEventListener("change",o)}),s}return U(e,t),e.prototype.createEl=function(e,i,n){var r='&lt;span class="vjs-menu-item-text"&gt;'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&amp;&amp;(r+='\n        &lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;\n        &lt;span class="vjs-control-text"&gt; '+this.localize("Descriptions")+"&lt;/span&gt;\n      "),r+="&lt;/span&gt;",t.prototype.createEl.call(this,e,z({innerHTML:r},i),n)},e.prototype.handleClick=function(e){var i=this.player_.audioTracks();t.prototype.handleClick.call(this,e);for(var n=0;n&lt;i.length;n++){var r=i[n];r.enabled=r===this.track}},e.prototype.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(dn);ye.registerComponent("AudioTrackMenuItem",Cn);var wn=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return j(this,e),n.tracks=i.audioTracks(),N(this,t.call(this,i,n))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var e=this.player_.audioTracks(),i=0;i&lt;e.length;i++){var n=e[i];t.push(new Cn(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return t},e}(hn);wn.prototype.controlText_="Audio Track",ye.registerComponent("AudioTrackButton",wn);var En=function(t){function e(i,n){j(this,e);var r=n.rate,a=parseFloat(r,10);n.label=r,n.selected=1===a,n.selectable=!0,n.multiSelectable=!1;var s=N(this,t.call(this,i,n));return s.label=r,s.rate=a,s.on(i,"ratechange",s.update),s}return U(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(dn);En.prototype.contentElType="button",ye.registerComponent("PlaybackRateMenuItem",En);var An=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.updateVisibility(),r.updateLabel(),r.on(i,"loadstart",r.updateVisibility),r.on(i,"ratechange",r.updateLabel),r}return U(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=at("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},e.prototype.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createMenu=function(){var t=new un(this.player()),e=this.playbackRates();if(e)for(var i=e.length-1;i&gt;=0;i--)t.addChild(new En(this.player(),{rate:e[i]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(t){for(var e=this.player().playbackRate(),i=this.playbackRates(),n=i[0],r=0;r&lt;i.length;r++)if(i[r]&gt;e){n=i[r];break}this.player().playbackRate(n)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&amp;&amp;this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&amp;&amp;this.player().tech_.featuresPlaybackRate&amp;&amp;this.playbackRates()&amp;&amp;this.playbackRates().length&gt;0},e.prototype.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(t){this.playbackRateSupported()&amp;&amp;(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(cn);An.prototype.controlText_="Playback Rate",ye.registerComponent("PlaybackRateMenuButton",An);var xn=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(ye);ye.registerComponent("Spacer",xn);var On=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML="Â&nbsp;",e},e}(xn);ye.registerComponent("CustomControlSpacer",On);var Pn=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(ye);Pn.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},ye.registerComponent("ControlBar",Pn);var Ln=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"error",r.open),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(je);Ln.prototype.options_=me(je.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),ye.registerComponent("ErrorDisplay",Ln);var In=["#000","Black"],Dn=["#00F","Blue"],Mn=["#0FF","Cyan"],Rn=["#0F0","Green"],jn=["#F0F","Magenta"],Un=["#F00","Red"],Nn=["#FFF","White"],Bn=["#FF0","Yellow"],Fn=["1","Opaque"],Hn=["0.5","Semi-Transparent"],Vn=["0","Transparent"],zn={backgroundColor:{selector:".vjs-bg-color &gt; select",id:"captions-background-color-%s",label:"Color",options:[In,Nn,Un,Rn,Dn,Bn,jn,Mn]},backgroundOpacity:{selector:".vjs-bg-opacity &gt; select",id:"captions-background-opacity-%s",label:"Transparency",options:[Fn,Hn,Vn]},color:{selector:".vjs-fg-color &gt; select",id:"captions-foreground-color-%s",label:"Color",options:[Nn,In,Un,Rn,Dn,Bn,jn,Mn]},edgeStyle:{selector:".vjs-edge-style &gt; select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family &gt; select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent &gt; select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity &gt; select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Fn,Hn]},windowColor:{selector:".vjs-window-color &gt; select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity &gt; select",id:"captions-window-opacity-%s",label:"Transparency",options:[Vn,Hn,Fn]}};function Wn(t,e){if(e&amp;&amp;(t=e(t)),t&amp;&amp;"none"!==t)return t}zn.windowColor.options=zn.backgroundColor.options;var qn=function(t){function e(i,n){j(this,e),n.temporary=!1;var r=N(this,t.call(this,i,n));return r.updateDisplay=te(r,r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=at("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&amp;&amp;(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.close()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),V(zn,function(t){r.on(r.$(t.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&amp;&amp;r.restoreSettings(),r}return U(e,t),e.prototype.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},e.prototype.createElSelect_=function(t){var e=this,i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"",n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"label",r=zn[t],a=r.id.replace("%s",this.id_),s=[i,a].join(" ").trim();return["&lt;"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'"&gt;',this.localize(r.label),"&lt;/"+n+"&gt;",'&lt;select aria-labelledby="'+s+'"&gt;'].concat(r.options.map(function(t){var i=a+"-"+t[1].replace(/\W+/g,"");return['&lt;option id="'+i+'" value="'+t[0]+'" ','aria-labelledby="'+s+" "+i+'"&gt;',e.localize(t[1]),"&lt;/option&gt;"].join("")})).concat("&lt;/select&gt;").join("")},e.prototype.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['&lt;fieldset class="vjs-fg-color vjs-track-setting"&gt;','&lt;legend id="'+t+'"&gt;',this.localize("Text"),"&lt;/legend&gt;",this.createElSelect_("color",t),'&lt;span class="vjs-text-opacity vjs-opacity"&gt;',this.createElSelect_("textOpacity",t),"&lt;/span&gt;","&lt;/fieldset&gt;"].join("")},e.prototype.createElBgColor_=function(){var t="captions-background-"+this.id_;return['&lt;fieldset class="vjs-bg-color vjs-track-setting"&gt;','&lt;legend id="'+t+'"&gt;',this.localize("Background"),"&lt;/legend&gt;",this.createElSelect_("backgroundColor",t),'&lt;span class="vjs-bg-opacity vjs-opacity"&gt;',this.createElSelect_("backgroundOpacity",t),"&lt;/span&gt;","&lt;/fieldset&gt;"].join("")},e.prototype.createElWinColor_=function(){var t="captions-window-"+this.id_;return['&lt;fieldset class="vjs-window-color vjs-track-setting"&gt;','&lt;legend id="'+t+'"&gt;',this.localize("Window"),"&lt;/legend&gt;",this.createElSelect_("windowColor",t),'&lt;span class="vjs-window-opacity vjs-opacity"&gt;',this.createElSelect_("windowOpacity",t),"&lt;/span&gt;","&lt;/fieldset&gt;"].join("")},e.prototype.createElColors_=function(){return at("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},e.prototype.createElFont_=function(){return at("div",{className:"vjs-track-settings-font",innerHTML:['&lt;fieldset class="vjs-font-percent vjs-track-setting"&gt;',this.createElSelect_("fontPercent","","legend"),"&lt;/fieldset&gt;",'&lt;fieldset class="vjs-edge-style vjs-track-setting"&gt;',this.createElSelect_("edgeStyle","","legend"),"&lt;/fieldset&gt;",'&lt;fieldset class="vjs-font-family vjs-track-setting"&gt;',this.createElSelect_("fontFamily","","legend"),"&lt;/fieldset&gt;"].join("")})},e.prototype.createElControls_=function(){var t=this.localize("restore all settings to the default values");return at("div",{className:"vjs-track-settings-controls",innerHTML:['&lt;button class="vjs-default-button" title="'+t+'"&gt;',this.localize("Reset"),'&lt;span class="vjs-control-text"&gt; '+t+"&lt;/span&gt;","&lt;/button&gt;",'&lt;button class="vjs-done-button"&gt;'+this.localize("Done")+"&lt;/button&gt;"].join("")})},e.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},e.prototype.label=function(){return this.localize("Caption Settings Dialog")},e.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},e.prototype.buildCSSClass=function(){return t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},e.prototype.getValues=function(){var t=this;return function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:0;return H(t).reduce(function(i,n){return e(i,t[n],n)},i)}(zn,function(e,i,n){var r,a,s=(r=t.$(i.selector),a=i.parser,Wn(r.options[r.options.selectedIndex].value,a));return void 0!==s&amp;&amp;(e[n]=s),e},{})},e.prototype.setValues=function(t){var e=this;V(zn,function(i,n){!function(t,e,i){if(e)for(var n=0;n&lt;t.options.length;n++)if(Wn(t.options[n].value,i)===e){t.selectedIndex=n;break}}(e.$(i.selector),t[n],i.parser)})},e.prototype.setDefaults=function(){var t=this;V(zn,function(e){var i=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=i})},e.prototype.restoreSettings=function(){var t=void 0;try{t=JSON.parse(a.localStorage.getItem("vjs-text-track-settings"))}catch(t){$.warn(t)}t&amp;&amp;this.setValues(t)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):a.localStorage.removeItem("vjs-text-track-settings")}catch(t){$.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&amp;&amp;t.updateDisplay()},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(s,"keydown",this.handleKeyDown);var t=this.player_.controlBar,e=t&amp;&amp;t.subsCapsButton,i=t&amp;&amp;t.captionsButton;e?e.focus():i&amp;&amp;i.focus()},e}(je);ye.registerComponent("TextTrackSettings",qn);var Gn=function(t){function e(i,n){j(this,e);var r=n.ResizeObserver||a.ResizeObserver;null===n.ResizeObserver&amp;&amp;(r=!1);var s=me({createEl:!r},n),o=N(this,t.call(this,i,s));return o.ResizeObserver=n.ResizeObserver||a.ResizeObserver,o.loadListener_=null,o.resizeObserver_=null,o.debouncedHandler_=ie(function(){o.resizeHandler()},100,!1,i),r?(o.resizeObserver_=new o.ResizeObserver(o.debouncedHandler_),o.resizeObserver_.observe(i.el())):(o.loadListener_=function(){o.el_.contentWindow&amp;&amp;zt(o.el_.contentWindow,"resize",o.debouncedHandler_),o.off("load",o.loadListener_)},o.on("load",o.loadListener_)),o}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},e.prototype.resizeHandler=function(){this.player_.trigger("playerresize")},e.prototype.dispose=function(){this.resizeObserver_&amp;&amp;(this.player_.el()&amp;&amp;this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&amp;&amp;this.el_.contentWindow&amp;&amp;Wt(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&amp;&amp;this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},e}(ye);ye.registerComponent("ResizeManager",Gn);var Xn=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var i=t.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a&lt;i.length;a++){var s=i[a].src;s&amp;&amp;-1===n.indexOf(s)&amp;&amp;n.push(s)}return!!n.length&amp;&amp;(1===n.length&amp;&amp;(r=n[0]),t.triggerSourceset(r),!0)},Yn={};x||(Yn=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=s.createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var i=s.createDocumentFragment();e.childNodes.length;)i.appendChild(e.childNodes[0]);return this.innerText="",a.Element.prototype.appendChild.call(this,i),this.innerHTML}}));var Kn=function(t,e){for(var i={},n=0;n&lt;t.length&amp;&amp;!((i=Object.getOwnPropertyDescriptor(t[n],e))&amp;&amp;i.set&amp;&amp;i.get);n++);return i.enumerable=!0,i.configurable=!0,i},$n=function(t){var e=t.el();if(!e.resetSourceWatch_){var i={},n=function(t){return Kn([t.el(),a.HTMLMediaElement.prototype,a.Element.prototype,Yn],"innerHTML")}(t),r=function(i){return function(){for(var n=arguments.length,r=Array(n),a=0;a&lt;n;a++)r[a]=arguments[a];var s=i.apply(e,r);return Xn(t),s}};["append","appendChild","insertAdjacentHTML"].forEach(function(t){e[t]&amp;&amp;(i[t]=e[t],e[t]=r(i[t]))}),Object.defineProperty(e,"innerHTML",me(n,{set:r(n.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(i).forEach(function(t){e[t]=i[t]}),Object.defineProperty(e,"innerHTML",n)},t.one("sourceset",e.resetSourceWatch_)}},Jn={};x||(Jn=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Ze(a.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return a.Element.prototype.setAttribute.call(this,"src",t),t}}));var Zn=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var i=function(t){return Kn([t.el(),a.HTMLMediaElement.prototype,Jn],"src")}(t),n=e.setAttribute,r=e.load;Object.defineProperty(e,"src",me(i,{set:function(n){var r=i.set.call(e,n);return t.triggerSourceset(e.src),r}})),e.setAttribute=function(i,r){var a=n.call(e,i,r);return/src/i.test(i)&amp;&amp;t.triggerSourceset(e.src),a},e.load=function(){var i=r.call(e);return Xn(t)||(t.triggerSourceset(""),$n(t)),i},e.currentSrc?t.triggerSourceset(e.currentSrc):Xn(t)||$n(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=r,e.setAttribute=n,Object.defineProperty(e,"src",i),e.resetSourceWatch_&amp;&amp;e.resetSourceWatch_()}}}},Qn=B(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]),tr=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n)),a=i.source,s=!1;if(a&amp;&amp;(r.el_.currentSrc!==a.src||i.tag&amp;&amp;3===i.tag.initNetworkState_)?r.setSource(a):r.handleLateInit_(r.el_),i.enableSourceset&amp;&amp;r.setupSourcesetHandling_(),r.el_.hasChildNodes()){for(var l=r.el_.childNodes,u=l.length,c=[];u--;){var h=l[u];"track"===h.nodeName.toLowerCase()&amp;&amp;(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(h),r.remoteTextTracks().addTrack(h.track),r.textTracks().addTrack(h.track),s||r.el_.hasAttribute("crossorigin")||!ti(h.src)||(s=!0)):c.push(h))}for(var d=0;d&lt;c.length;d++)r.el_.removeChild(c[d])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&amp;&amp;s&amp;&amp;$.warn(o(Qn)),r.restoreMetadataTracksInIOSNativePlayer_(),(I||m||k)&amp;&amp;!0===i.nativeControlsForTouch&amp;&amp;r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}return U(e,t),e.prototype.dispose=function(){this.el_&amp;&amp;this.el_.resetSourceset_&amp;&amp;this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},e.prototype.setupSourcesetHandling_=function(){Zn(this)},e.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var t=this.textTracks(),e=void 0,i=function(){e=[];for(var i=0;i&lt;t.length;i++){var n=t[i];"metadata"===n.kind&amp;&amp;e.push({track:n,storedMode:n.mode})}};i(),t.addEventListener("change",i),this.on("dispose",function(){return t.removeEventListener("change",i)});var n=function i(){for(var n=0;n&lt;e.length;n++){var r=e[n];"disabled"===r.track.mode&amp;&amp;r.track.mode!==r.storedMode&amp;&amp;(r.track.mode=r.storedMode)}t.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",i),t.removeEventListener("change",n),t.addEventListener("change",n)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",i),t.addEventListener("change",i),t.removeEventListener("change",n)})},e.prototype.proxyNativeTracks_=function(){var t=this;ci.names.forEach(function(e){var i=ci[e],n=t.el()[i.getterName],r=t[i.getterName]();if(t["featuresNative"+i.capitalName+"Tracks"]&amp;&amp;n&amp;&amp;n.addEventListener){var a={change:function(t){r.trigger({type:"change",target:r,currentTarget:r,srcElement:r})},addtrack:function(t){r.addTrack(t.track)},removetrack:function(t){r.removeTrack(t.track)}},s=function(){for(var t=[],e=0;e&lt;r.length;e++){for(var i=!1,a=0;a&lt;n.length;a++)if(n[a]===r[e]){i=!0;break}i||t.push(r[e])}for(;t.length;)r.removeTrack(t.shift())};Object.keys(a).forEach(function(e){var i=a[e];n.addEventListener(e,i),t.on("dispose",function(t){return n.removeEventListener(e,i)})}),t.on("loadstart",s),t.on("dispose",function(e){return t.off("loadstart",s)})}})},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&amp;&amp;!this.movingMediaElementInDOM){if(t){var i=t.cloneNode(!0);t.parentNode&amp;&amp;t.parentNode.insertBefore(i,t),e.disposeMediaElement(t),t=i}else{t=s.createElement("video");var n=me({},this.options_.tag&amp;&amp;pt(this.options_.tag));I&amp;&amp;!0===this.options_.nativeControlsForTouch||delete n.controls,dt(t,z(n,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&amp;&amp;gt(t,"preload",this.options_.preload);for(var r=["loop","muted","playsinline","autoplay"],a=0;a&lt;r.length;a++){var o=r[a],l=this.options_[o];void 0!==l&amp;&amp;(l?gt(t,o,o):mt(t,o),t[o]=l)}return t},e.prototype.handleLateInit_=function(t){if(0!==t.networkState&amp;&amp;3!==t.networkState){if(0===t.readyState){var e=!1,i=function(){e=!0};this.on("loadstart",i);var n=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),e||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),t.readyState&gt;=2&amp;&amp;r.push("loadeddata"),t.readyState&gt;=3&amp;&amp;r.push("canplay"),t.readyState&gt;=4&amp;&amp;r.push("canplaythrough"),this.ready(function(){r.forEach(function(t){this.trigger(t)},this)})}},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){$(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){var t=this;if(this.el_.duration===1/0&amp;&amp;b&amp;&amp;E&amp;&amp;0===this.el_.currentTime){return this.on("timeupdate",function e(){t.el_.currentTime&gt;0&amp;&amp;(t.el_.duration===1/0&amp;&amp;t.trigger("durationchange"),t.off("timeupdate",e))}),NaN}return this.el_.duration||NaN},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},i=function(){"webkitPresentationMode"in this.el_&amp;&amp;"picture-in-picture"!==this.el_.webkitPresentationMode&amp;&amp;(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){t.off("webkitbeginfullscreen",i),t.off("webkitendfullscreen",e)})}},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=a.navigator&amp;&amp;a.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;t.paused&amp;&amp;t.networkState&lt;=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.addTextTrack=function(e,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,i,n):t.prototype.addTextTrack.call(this,e,i,n)},e.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var i=s.createElement("track");return e.kind&amp;&amp;(i.kind=e.kind),e.label&amp;&amp;(i.label=e.label),(e.language||e.srclang)&amp;&amp;(i.srclang=e.language||e.srclang),e.default&amp;&amp;(i.default=e.default),e.id&amp;&amp;(i.id=e.id),e.src&amp;&amp;(i.src=e.src),i},e.prototype.addRemoteTextTrack=function(e,i){var n=t.prototype.addRemoteTextTrack.call(this,e,i);return this.featuresNativeTextTracks&amp;&amp;this.el().appendChild(n),n},e.prototype.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)e!==i[n]&amp;&amp;e!==i[n].track||this.el().removeChild(i[n])},e.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&amp;&amp;void 0!==this.el().webkitDecodedFrameCount&amp;&amp;(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),a.performance&amp;&amp;"function"==typeof a.performance.now?t.creationTime=a.performance.now():a.performance&amp;&amp;a.performance.timing&amp;&amp;"number"==typeof a.performance.timing.navigationStart&amp;&amp;(t.creationTime=a.Date.now()-a.performance.timing.navigationStart),t},e}(pi);if(et()){tr.TEST_VID=s.createElement("video");var er=s.createElement("track");er.kind="captions",er.srclang="en",er.label="English",tr.TEST_VID.appendChild(er)}tr.isSupported=function(){try{tr.TEST_VID.volume=.5}catch(t){return!1}return!(!tr.TEST_VID||!tr.TEST_VID.canPlayType)},tr.canPlayType=function(t){return tr.TEST_VID.canPlayType(t)},tr.canPlaySource=function(t,e){return tr.canPlayType(t.type)},tr.canControlVolume=function(){try{var t=tr.TEST_VID.volume;return tr.TEST_VID.volume=t/2+.1,t!==tr.TEST_VID.volume}catch(t){return!1}},tr.canMuteVolume=function(){try{var t=tr.TEST_VID.muted;return tr.TEST_VID.muted=!t,tr.TEST_VID.muted?gt(tr.TEST_VID,"muted","muted"):mt(tr.TEST_VID,"muted"),t!==tr.TEST_VID.muted}catch(t){return!1}},tr.canControlPlaybackRate=function(){if(b&amp;&amp;E&amp;&amp;A&lt;58)return!1;try{var t=tr.TEST_VID.playbackRate;return tr.TEST_VID.playbackRate=t/2+.1,t!==tr.TEST_VID.playbackRate}catch(t){return!1}},tr.canOverrideAttributes=function(){if(x)return!1;try{var t=function(){};Object.defineProperty(s.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(s.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(s.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(s.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},tr.supportsNativeTextTracks=function(){return L||v&amp;&amp;E},tr.supportsNativeVideoTracks=function(){return!(!tr.TEST_VID||!tr.TEST_VID.videoTracks)},tr.supportsNativeAudioTracks=function(){return!(!tr.TEST_VID||!tr.TEST_VID.audioTracks)},tr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],tr.prototype.featuresVolumeControl=tr.canControlVolume(),tr.prototype.featuresMuteControl=tr.canMuteVolume(),tr.prototype.featuresPlaybackRate=tr.canControlPlaybackRate(),tr.prototype.featuresSourceset=tr.canOverrideAttributes(),tr.prototype.movingMediaElementInDOM=!v,tr.prototype.featuresFullscreenResize=!0,tr.prototype.featuresProgressEvents=!0,tr.prototype.featuresTimeupdateEvents=!0,tr.prototype.featuresNativeTextTracks=tr.supportsNativeTextTracks(),tr.prototype.featuresNativeVideoTracks=tr.supportsNativeVideoTracks(),tr.prototype.featuresNativeAudioTracks=tr.supportsNativeAudioTracks();var ir=tr.TEST_VID&amp;&amp;tr.TEST_VID.constructor.prototype.canPlayType,nr=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,rr=/^video\/mp4/i;tr.patchCanPlayType=function(){T&gt;=4&amp;&amp;!C&amp;&amp;!E?tr.TEST_VID.constructor.prototype.canPlayType=function(t){return t&amp;&amp;nr.test(t)?"maybe":ir.call(this,t)}:S&amp;&amp;(tr.TEST_VID.constructor.prototype.canPlayType=function(t){return t&amp;&amp;rr.test(t)?"maybe":ir.call(this,t)})},tr.unpatchCanPlayType=function(){var t=tr.TEST_VID.constructor.prototype.canPlayType;return tr.TEST_VID.constructor.prototype.canPlayType=ir,t},tr.patchCanPlayType(),tr.disposeMediaElement=function(t){if(t){for(t.parentNode&amp;&amp;t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&amp;&amp;function(){try{t.load()}catch(t){}}()}},tr.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),i=e.length;i--;)t.removeChild(e[i]);t.removeAttribute("src"),"function"==typeof t.load&amp;&amp;function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){tr.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){tr.prototype["set"+ge(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){tr.prototype[t]=function(){return this.el_[t]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(t){tr.prototype["set"+ge(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(t){tr.prototype[t]=function(){return this.el_[t]()}}),pi.withSourceHandlers(tr),tr.nativeSourceHandler={},tr.nativeSourceHandler.canPlayType=function(t){try{return tr.TEST_VID.canPlayType(t)}catch(t){return""}},tr.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return tr.nativeSourceHandler.canPlayType(t.type);if(t.src){var i=Qe(t.src);return tr.nativeSourceHandler.canPlayType("video/"+i)}return""},tr.nativeSourceHandler.handleSource=function(t,e,i){e.setSrc(t.src)},tr.nativeSourceHandler.dispose=function(){},tr.registerSourceHandler(tr.nativeSourceHandler),pi.registerTech("Html5",tr);var ar=B(["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "],["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "]),sr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],or={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},lr=function(t){function e(i,n,r){if(j(this,e),i.id=i.id||n.id||"vjs_video_"+It(),(n=z(e.getTagSettings(i),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if("function"==typeof i.closest){var a=i.closest("[lang]");a&amp;&amp;a.getAttribute&amp;&amp;(n.language=a.getAttribute("lang"))}else for(var s=i;s&amp;&amp;1===s.nodeType;){if(pt(s).hasOwnProperty("lang")){n.language=s.getAttribute("lang");break}s=s.parentNode}var o=N(this,t.call(this,null,n,r));if(o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=i,o.tagAttributes=i&amp;&amp;pt(i),o.language(o.options_.language),n.languages){var l={};Object.getOwnPropertyNames(n.languages).forEach(function(t){l[t.toLowerCase()]=n.languages[t]}),o.languages_=l}else o.languages_=e.prototype.options_.languages;o.cache_={},o.poster_=n.poster||"",o.controls_=!!n.controls,o.cache_.lastVolume=1,i.controls=!1,i.removeAttribute("controls"),i.hasAttribute("autoplay")?o.options_.autoplay=!0:o.autoplay(o.options_.autoplay),o.scrubbing_=!1,o.el_=o.createEl(),o.cache_.lastPlaybackRate=o.defaultPlaybackRate(),de(o,{eventBusKey:"el_"});var u=me(o.options_);if(n.plugins){var c=n.plugins;Object.keys(c).forEach(function(t){if("function"!=typeof this[t])throw new Error('plugin "'+t+'" does not exist');this[t](c[t])},o)}o.options_.playerOptions=u,o.middleware_=[],o.initChildren(),o.isAudio("audio"===i.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&amp;&amp;o.addClass("vjs-audio"),o.flexNotSupported_()&amp;&amp;o.addClass("vjs-no-flex"),v||o.addClass("vjs-workinghover"),e.players[o.id_]=o;var d=h.split(".")[0];return o.addClass("vjs-v"+d),o.userActive(!0),o.reportUserActivity(),o.one("play",o.listenForUserActivity_),o.on("fullscreenchange",o.handleFullscreenChange_),o.on("stageclick",o.handleStageClick_),o.changingSrc_=!1,o.playWaitingForReady_=!1,o.playOnLoadstart_=null,o}return U(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&amp;&amp;this.styleEl_.parentNode&amp;&amp;(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&amp;&amp;this.tag.player&amp;&amp;(this.tag.player=null),this.el_&amp;&amp;this.el_.player&amp;&amp;(this.el_.player=null),this.tech_&amp;&amp;(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&amp;&amp;(this.playerElIngest_=null),this.tag&amp;&amp;(this.tag=null),gi[this.id()]=null,t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.tag,i=void 0,n=this.playerElIngest_=e.parentNode&amp;&amp;e.parentNode.hasAttribute&amp;&amp;e.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();n?i=this.el_=e.parentNode:r||(i=this.el_=t.prototype.createEl.call(this,"div"));var o=pt(e);if(r){for(i=this.el_=e,e=this.tag=s.createElement("video");i.children.length;)e.appendChild(i.firstChild);lt(i,"video-js")||ut(i,"video-js"),i.appendChild(e),n=this.playerElIngest_=i,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach(function(t){void 0!==i[t]&amp;&amp;(e[t]=i[t])})}if(e.setAttribute("tabindex","-1"),O&amp;&amp;e.setAttribute("role","application"),e.removeAttribute("width"),e.removeAttribute("height"),Object.getOwnPropertyNames(o).forEach(function(t){"class"===t?(i.className+=" "+o[t],r&amp;&amp;(e.className+=" "+o[t])):(i.setAttribute(t,o[t]),r&amp;&amp;e.setAttribute(t,o[t]))}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=i.player=this,this.addClass("vjs-paused"),!0!==a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Zt("vjs-styles-dimensions");var l=xt(".vjs-styles-defaults"),u=xt("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var c=e.getElementsByTagName("a"),h=0;h&lt;c.length;h++){var d=c.item(h);ut(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&amp;&amp;!n&amp;&amp;e.parentNode.insertBefore(i,e),ot(e,i),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_=i,i},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var i=t+"_";if(void 0===e)return this[i]||0;if(""===e)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(e);isNaN(n)?$.error('Improper value "'+e+'" supplied for for '+t):(this[i]=n,this.updateStyleEl_())},e.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){if(!0!==a.VIDEOJS_NO_DYNAMIC_STYLE){var t=void 0,e=void 0,i=void 0,n=(void 0!==this.aspectRatio_&amp;&amp;"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()&gt;0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=n[1]/n[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*r,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),Qt(this.styleEl_,"\n      ."+i+" {\n        width: "+t+"px;\n        height: "+e+"px;\n      }\n\n      ."+i+".vjs-fluid {\n        padding-top: "+100*r+"%;\n      }\n    ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,o="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&amp;&amp;this.tech_.el();l&amp;&amp;(s&gt;=0&amp;&amp;(l.width=s),o&gt;=0&amp;&amp;(l.height=o))}},e.prototype.loadTech_=function(t,e){var i=this;this.tech_&amp;&amp;this.unloadTech_();var n=ge(t),r=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==n&amp;&amp;this.tag&amp;&amp;(pi.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a={source:e,autoplay:"string"!=typeof this.autoplay()&amp;&amp;this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+n+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};di.names.forEach(function(t){var e=di[t];a[e.getterName]=i[e.privateName]}),z(a,this.options_[n]),z(a,this.options_[r]),z(a,this.options_[t.toLowerCase()]),this.tag&amp;&amp;(a.tag=this.tag),e&amp;&amp;e.src===this.cache_.src&amp;&amp;this.cache_.currentTime&gt;0&amp;&amp;(a.startTime=this.cache_.currentTime);var s=pi.getTech(t);if(!s)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new s(a),this.tech_.ready(te(this,this.handleTechReady_),!0),Me(this.textTracksJson_||[],this.tech_),sr.forEach(function(t){i.on(i.tech_,t,i["handleTech"+ge(t)+"_"])}),Object.keys(or).forEach(function(t){i.on(i.tech_,t,function(e){0===i.tech_.playbackRate()&amp;&amp;i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+or[t]+"_"].bind(i),event:e}):i["handleTech"+or[t]+"_"](e)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&amp;&amp;!this.usingNativeControls()&amp;&amp;this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&amp;&amp;this.tag||ot(this.tech_.el(),this.el()),this.tag&amp;&amp;(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){var t=this;di.names.forEach(function(e){var i=di[e];t[i.privateName]=t[i.getterName]()}),this.textTracksJson_=De(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&amp;&amp;(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.prototype.tech=function(t){return void 0===t&amp;&amp;$.warn(o(ar)),this.tech_},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&amp;&amp;this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&amp;&amp;this.tag&amp;&amp;this.options_.autoplay&amp;&amp;this.paused())try{delete this.tag.poster}catch(t){$("deleting tag.poster throws in some browsers",t)}},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},e.prototype.manualAutoplay_=function(t){var e=this;if(this.tech_&amp;&amp;"string"==typeof t){var i=function(){var t=e.muted();e.muted(!0);var i=e.play();if(i&amp;&amp;i.then&amp;&amp;i.catch)return i.catch(function(i){e.muted(t)})},n=void 0;if("any"===t?(n=this.play())&amp;&amp;n.then&amp;&amp;n.catch&amp;&amp;n.catch(function(){return i()}):n="muted"===t?i():this.play(),n&amp;&amp;n.then&amp;&amp;n.catch)return n.then(function(){e.trigger({type:"autoplay-success",autoplay:t})}).catch(function(i){e.trigger({type:"autoplay-failure",autoplay:t})})}},e.prototype.updateSourceCaches_=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",e=t,i="";if("string"!=typeof e&amp;&amp;(e=t.src,i=t.type),!/^blob:/.test(e)){this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&amp;&amp;!i&amp;&amp;(i=function(t,e){if(!e)return"";if(t.cache_.source.src===e&amp;&amp;t.cache_.source.type)return t.cache_.source.type;var i=t.cache_.sources.filter(function(t){return t.src===e});if(i.length)return i[0].type;for(var n=t.$$("source"),r=0;r&lt;n.length;r++){var a=n[r];if(a.type&amp;&amp;a.src&amp;&amp;a.src===e)return a.type}return Ci(e)}(this,e)),this.cache_.source=me({},t,{src:e,type:i});for(var n=this.cache_.sources.filter(function(t){return t.src&amp;&amp;t.src===e}),r=[],a=this.$$("source"),s=[],o=0;o&lt;a.length;o++){var l=pt(a[o]);r.push(l),l.src&amp;&amp;l.src===e&amp;&amp;s.push(l.src)}s.length&amp;&amp;!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e}},e.prototype.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_&amp;&amp;(this.updateSourceCaches_(t.src),!t.src)){this.tech_.one(["sourceset","loadstart"],function t(i){"sourceset"!==i.type&amp;&amp;e.updateSourceCaches_(e.techGet_("currentSrc")),e.tech_.off(["sourceset","loadstart"],t)})}this.trigger({src:t.src,type:"sourceset"})},e.prototype.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&amp;&amp;(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechRateChange_=function(){this.tech_.playbackRate()&gt;0&amp;&amp;0===this.cache_.lastPlaybackRate&amp;&amp;(this.queuedCallbacks_.forEach(function(t){return t.callback(t.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&amp;&amp;($.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){At(t)&amp;&amp;this.controls_&amp;&amp;(this.paused()?Le(this.play()):this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&amp;&amp;this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&amp;&amp;this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t)},e.prototype.handleTechTextData_=function(){var t=null;arguments.length&gt;1&amp;&amp;(t=arguments[1]),this.trigger("textdata",t)},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){this.ready(function(){if(t in bi)return function(t,e,i,n){return e[i](t.reduce(Si(i),n))}(this.middleware_,this.tech_,t,e);if(t in Ti)return vi(this.middleware_,this.tech_,t,e);try{this.tech_&amp;&amp;this.tech_[t](e)}catch(t){throw $(t),t}},!0)},e.prototype.techGet_=function(t){if(this.tech_&amp;&amp;this.tech_.isReady_){if(t in _i)return function(t,e,i){return t.reduceRight(Si(i),e[i]())}(this.middleware_,this.tech_,t);if(t in Ti)return vi(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw $("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw $("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw $(e),e}}},e.prototype.play=function(){var t=this,e=this.options_.Promise||a.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},e.prototype.play_=function(){var t=this,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:Le;if(this.playOnLoadstart_&amp;&amp;this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&amp;&amp;(this.src()||this.currentSrc()))return void e(this.techGet_("play"));this.playOnLoadstart_=function(){t.playOnLoadstart_=null,e(t.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){t.playWaitingForReady_=!1,e(t.play())})}},e.prototype.pause=function(){this.techCall_("pause")},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.played=function(){return this.techGet_("played")||be(0,0)},e.prototype.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.prototype.currentTime=function(t){return void 0!==t?(t&lt;0&amp;&amp;(t=0),void this.techCall_("setCurrentTime",t)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.prototype.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))&lt;0&amp;&amp;(t=1/0),t!==this.cache_.duration&amp;&amp;(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&amp;&amp;t.length||(t=be(0,0)),t},e.prototype.bufferedPercent=function(){return Te(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),i=t.end(t.length-1);return i&gt;e&amp;&amp;(i=e),i},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e&gt;0&amp;&amp;this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},e.prototype.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},e.prototype.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){if(void 0===t)return!!this.isFullscreen_;this.isFullscreen_=!!t},e.prototype.requestFullscreen=function(){var t=Se;this.isFullscreen(!0),t.requestFullscreen?(zt(s,t.fullscreenchange,te(this,function e(i){this.isFullscreen(s[t.fullscreenElement]),!1===this.isFullscreen()&amp;&amp;Wt(s,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},e.prototype.exitFullscreen=function(){var t=Se;this.isFullscreen(!1),t.requestFullscreen?s[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=s.documentElement.style.overflow,zt(s,"keydown",te(this,this.fullWindowOnEscKey)),s.documentElement.style.overflow="hidden",ut(s.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&amp;&amp;(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,Wt(s,"keydown",this.fullWindowOnEscKey),s.documentElement.style.overflow=this.docOrigOverflow,ct(s.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,i=0,n=this.options_.techOrder;i&lt;n.length;i++){var r=n[i],a=pi.getTech(r);if(a||(a=ye.getComponent(r)),a){if(a.isSupported()&amp;&amp;(e=a.canPlayType(t)))return e}else $.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e,i=this,n=this.options_.techOrder.map(function(t){return[t,pi.getTech(t)]}).filter(function(t){var e=t[0],i=t[1];return i?i.isSupported():($.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),r=function(t,e,i){var n=void 0;return t.some(function(t){return e.some(function(e){if(n=i(t,e))return!0})}),n},a=function(t,e){var n=t[0];if(t[1].canPlaySource(e,i.options_[n.toLowerCase()]))return{source:e,tech:n}};return(this.options_.sourceOrder?r(t,n,(e=a,function(t,i){return e(i,t)})):r(n,t,a))||!1},e.prototype.src=function(t){var e=this;if(void 0===t)return this.cache_.src||"";var i=function t(e){if(Array.isArray(e)){var i=[];e.forEach(function(e){e=t(e),Array.isArray(e)?i=i.concat(e):W(e)&amp;&amp;i.push(e)}),e=i}else e="string"==typeof e&amp;&amp;e.trim()?[wi({src:e})]:W(e)&amp;&amp;"string"==typeof e.src&amp;&amp;e.src&amp;&amp;e.src.trim()?[wi(e)]:[];return e}(t);i.length?(this.changingSrc_=!0,this.cache_.sources=i,this.updateSourceCaches_(i[0]),yi(this,i[0],function(t,n){var r,a;if(e.middleware_=n,e.cache_.sources=i,e.updateSourceCaches_(t),e.src_(t))return i.length&gt;1?e.src(i.slice(1)):(e.changingSrc_=!1,e.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void e.triggerReady());r=n,a=e.tech_,r.forEach(function(t){return t.setTech&amp;&amp;t.setTech(a)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},e.prototype.src_=function(t){var e,i,n=this,r=this.selectSource([t]);return!r||(e=r.tech,i=this.techName_,ge(e)!==ge(i)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1},!0),!1))},e.prototype.load=function(){this.techCall_("load")},e.prototype.reset=function(){this.tech_&amp;&amp;this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},e.prototype.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&amp;&amp;e.push(t),this.cache_.sources||e},e.prototype.currentSource=function(){return this.cache_.source||{}},e.prototype.currentSrc=function(){return this.currentSource()&amp;&amp;this.currentSource().src||""},e.prototype.currentType=function(){return this.currentSource()&amp;&amp;this.currentSource().type||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},e.prototype.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e=void 0;"string"==typeof t&amp;&amp;/(any|play|muted)/.test(t)?(this.options_.autoplay=t,this.manualAutoplay_(t),e=!1):this.options_.autoplay=!!t,e=e||this.options_.autoplay,this.tech_&amp;&amp;this.techCall_("setAutoplay",e)},e.prototype.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},e.prototype.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&amp;&amp;(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.prototype.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&amp;&amp;this.tech_&amp;&amp;this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&amp;&amp;(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},e.prototype.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&amp;&amp;(this.controls_=t,this.usingNativeControls()&amp;&amp;this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},e.prototype.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&amp;&amp;(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&amp;&amp;this.errorDisplay.close())):(this.error_=new xe(t),this.addClass("vjs-error"),$.error("(CODE:"+this.error_.code+" "+xe.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},e.prototype.reportUserActivity=function(t){this.userActivity_=!0},e.prototype.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&amp;&amp;this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,i=void 0,n=te(this,this.reportUserActivity);this.on("mousedown",function(){n(),this.clearInterval(t),t=this.setInterval(n,250)}),this.on("mousemove",function(t){t.screenX===e&amp;&amp;t.screenY===i||(e=t.screenX,i=t.screenY,n())}),this.on("mouseup",function(e){n(),this.clearInterval(t)}),this.on("keydown",n),this.on("keyup",n);var r=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(r);var t=this.options_.inactivityTimeout;t&lt;=0||(r=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){if(void 0===t)return this.tech_&amp;&amp;this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},e.prototype.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&amp;&amp;this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.prototype.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},e.prototype.addTextTrack=function(t,e,i){if(this.tech_)return this.tech_.addTextTrack(t,e,i)},e.prototype.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},e.prototype.removeRemoteTextTrack=function(){var t=(arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{}).track,e=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(e)},e.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.prototype.videoWidth=function(){return this.tech_&amp;&amp;this.tech_.videoWidth&amp;&amp;this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&amp;&amp;this.tech_.videoHeight&amp;&amp;this.tech_.videoHeight()||0},e.prototype.language=function(t){if(void 0===t)return this.language_;this.language_=String(t).toLowerCase()},e.prototype.languages=function(){return me(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=me(this.options_),e=t.tracks;t.tracks=[];for(var i=0;i&lt;e.length;i++){var n=e[i];(n=me(n)).player=void 0,t.tracks[i]=n}return t},e.prototype.createModal=function(t,e){var i=this;(e=e||{}).content=t||"";var n=new je(this,e);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n},e.getTagSettings=function(t){var e={sources:[],tracks:[]},i=pt(t),n=i["data-setup"];if(lt(t,"vjs-fluid")&amp;&amp;(i.fluid=!0),null!==n){var r=l(n||"{}"),a=r[0],s=r[1];a&amp;&amp;$.error(a),z(i,s)}if(z(e,i),t.hasChildNodes())for(var o=t.childNodes,u=0,c=o.length;u&lt;c;u++){var h=o[u],d=h.nodeName.toLowerCase();"source"===d?e.sources.push(pt(h)):"track"===d&amp;&amp;e.tracks.push(pt(h))}return e},e.prototype.flexNotSupported_=function(){var t=s.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},e}(ye);di.names.forEach(function(t){var e=di[t];lr.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),lr.players={};var ur=a.navigator;lr.prototype.options_={techOrder:pi.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:ur&amp;&amp;(ur.languages&amp;&amp;ur.languages[0]||ur.userLanguage||ur.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},x||lr.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach(function(t){lr.prototype[t]=function(){return this.techGet_(t)}}),sr.forEach(function(t){lr.prototype["handleTech"+ge(t)+"_"]=function(){return this.trigger(t)}}),ye.registerComponent("Player",lr);var cr={},hr=function(t){return cr.hasOwnProperty(t)},dr=function(t){return hr(t)?cr[t]:void 0},pr=function(t,e){t.activePlugins_=t.activePlugins_||{},t.activePlugins_[e]=!0},fr=function(t,e,i){var n=(i?"before":"")+"pluginsetup";t.trigger(n,e),t.trigger(n+":"+e.name,e)},gr=function(t,e){return e.prototype.name=t,function(){fr(this,{name:t,plugin:e,instance:null},!0);for(var i=arguments.length,n=Array(i),r=0;r&lt;i;r++)n[r]=arguments[r];var a=new(Function.prototype.bind.apply(e,[null].concat([this].concat(n))));return this[t]=function(){return a},fr(this,a.getEventHash()),a}},mr=function(){function t(e){if(j(this,t),this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,de(this),delete this.trigger,fe(this,this.constructor.defaultState),pr(e,this.name),this.dispose=te(this,this.dispose),e.on("dispose",this.dispose)}return t.prototype.version=function(){return this.constructor.VERSION},t.prototype.getEventHash=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},t.prototype.trigger=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return qt(this.eventBusEl_,t,this.getEventHash(e))},t.prototype.handleStateChanged=function(t){},t.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e.activePlugins_[t]=!1,this.player=this.state=null,e[t]=gr(t,cr[t])},t.isBasic=function(e){var i="string"==typeof e?dr(e):e;return"function"==typeof i&amp;&amp;!t.prototype.isPrototypeOf(i.prototype)},t.registerPlugin=function(e,i){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+(void 0===e?"undefined":R(e))+".");if(hr(e))$.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(lr.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof i)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+(void 0===i?"undefined":R(i))+".");return cr[e]=i,"plugin"!==e&amp;&amp;(t.isBasic(i)?lr.prototype[e]=function(t,e){var i=function(){fr(this,{name:t,plugin:e,instance:null},!0);var i=e.apply(this,arguments);return pr(this,t),fr(this,{name:t,plugin:e,instance:i}),i};return Object.keys(e).forEach(function(t){i[t]=e[t]}),i}(e,i):lr.prototype[e]=gr(e,i)),i},t.deregisterPlugin=function(t){if("plugin"===t)throw new Error("Cannot de-register base plugin.");hr(t)&amp;&amp;(delete cr[t],delete lr.prototype[t])},t.getPlugins=function(){var t=void 0;return(arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:Object.keys(cr)).forEach(function(e){var i=dr(e);i&amp;&amp;((t=t||{})[e]=i)}),t},t.getPluginVersion=function(t){var e=dr(t);return e&amp;&amp;e.VERSION||""},t}();mr.getPlugin=dr,mr.BASE_PLUGIN_NAME="plugin",mr.registerPlugin("plugin",mr),lr.prototype.usingPlugin=function(t){return!!this.activePlugins_&amp;&amp;!0===this.activePlugins_[t]},lr.prototype.hasPlugin=function(t){return!!hr(t)};"undefined"==typeof HTMLVideoElement&amp;&amp;et()&amp;&amp;(s.createElement("video"),s.createElement("audio"),s.createElement("track"),s.createElement("video-js"));var yr=function(t){return 0===t.indexOf("#")?t.slice(1):t};function vr(t,e,i){var n=vr.getPlayer(t);if(n)return e&amp;&amp;$.warn('Player "'+t+'" is already initialised. Options will not be applied.'),i&amp;&amp;n.ready(i),n;var r="string"==typeof t?xt("#"+yr(t)):t;if(!it(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");s.body.contains(r)||$.warn("The element supplied is not included in the DOM"),e=e||{},vr.hooks("beforesetup").forEach(function(t){var i=t(r,me(e));W(i)&amp;&amp;!Array.isArray(i)?e=me(e,i):$.error("please return an object in beforesetup hooks")});var a=ye.getComponent("Player");return n=new a(r,e,i),vr.hooks("setup").forEach(function(t){return t(n)}),n}if(vr.hooks_={},vr.hooks=function(t,e){return vr.hooks_[t]=vr.hooks_[t]||[],e&amp;&amp;(vr.hooks_[t]=vr.hooks_[t].concat(e)),vr.hooks_[t]},vr.hook=function(t,e){vr.hooks(t,e)},vr.hookOnce=function(t,e){vr.hooks(t,[].concat(e).map(function(e){return function i(){return vr.removeHook(t,i),e.apply(void 0,arguments)}}))},vr.removeHook=function(t,e){var i=vr.hooks(t).indexOf(e);return!(i&lt;=-1)&amp;&amp;(vr.hooks_[t]=vr.hooks_[t].slice(),vr.hooks_[t].splice(i,1),!0)},!0!==a.VIDEOJS_NO_DYNAMIC_STYLE&amp;&amp;et()){var _r=xt(".vjs-styles-defaults");if(!_r){_r=Zt("vjs-styles-defaults");var br=xt("head");br&amp;&amp;br.insertBefore(_r,br.firstChild),Qt(_r,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}Jt(1,vr),vr.VERSION=h,vr.options=lr.prototype.options_,vr.getPlayers=function(){return lr.players},vr.getPlayer=function(t){var e=lr.players,i=void 0;if("string"==typeof t){var n=yr(t),r=e[n];if(r)return r;i=xt("#"+n)}else i=t;if(it(i)){var a=i,s=a.player,o=a.playerId;if(s||e[o])return s||e[o]}},vr.getAllPlayers=function(){return Object.keys(lr.players).map(function(t){return lr.players[t]}).filter(Boolean)},vr.players=lr.players,vr.getComponent=ye.getComponent,vr.registerComponent=function(t,e){pi.isTech(e)&amp;&amp;$.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),ye.registerComponent.call(ye,t,e)},vr.getTech=pi.getTech,vr.registerTech=pi.registerTech,vr.use=function(t,e){fi[t]=fi[t]||[],fi[t].push(e)},!x&amp;&amp;Object.defineProperty?(Object.defineProperty(vr,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(vr.middleware,"TERMINATOR",{value:mi,writeable:!1,enumerable:!0})):vr.middleware={TERMINATOR:mi},vr.browser=M,vr.TOUCH_ENABLED=I,vr.extend=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=function(){t.apply(this,arguments)},n={};for(var r in"object"===(void 0===e?"undefined":R(e))?(e.constructor!==Object.prototype.constructor&amp;&amp;(i=e.constructor),n=e):"function"==typeof e&amp;&amp;(i=e),function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":R(e)));t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(t.super_=e)}(i,t),n)n.hasOwnProperty(r)&amp;&amp;(i.prototype[r]=n[r]);return i},vr.mergeOptions=me,vr.bind=te,vr.registerPlugin=mr.registerPlugin,vr.deregisterPlugin=mr.deregisterPlugin,vr.plugin=function(t,e){return $.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),mr.registerPlugin(t,e)},vr.getPlugins=mr.getPlugins,vr.getPlugin=mr.getPlugin,vr.getPluginVersion=mr.getPluginVersion,vr.addLanguage=function(t,e){var i;return t=(""+t).toLowerCase(),vr.options.languages=me(vr.options.languages,((i={})[t]=e,i)),vr.options.languages[t]},vr.log=$,vr.createTimeRange=vr.createTimeRanges=be,vr.formatTime=Fi,vr.setFormatTime=function(t){Bi=t},vr.resetFormatTime=function(){Bi=Ni},vr.parseUrl=Je,vr.isCrossOrigin=ti,vr.EventTarget=ne,vr.on=zt,vr.one=Gt,vr.off=Wt,vr.trigger=qt,vr.xhr=u,vr.TextTrack=ri,vr.AudioTrack=ai,vr.VideoTrack=si,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(t){vr[t]=function(){return $.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),Pt[t].apply(null,arguments)}}),vr.computedStyle=J,vr.dom=Pt,vr.url=ei,t.exports=vr},"020U":function(t,e,i){"use strict";var n,r,a,s,o,l,u,c,h,d,p,f,g,m,y,v,_,b,T,S,k,C,w,E,A,x,O,P,L,I,D,M,R,j,U,N,B,F,H,V,z,W=Math.pow(2,32)-1;!function(){var t;if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in w)w.hasOwnProperty(t)&amp;&amp;(w[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);E=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),x=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),A=new Uint8Array([0,0,0,1]),O=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),P=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),L={video:O,audio:P},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0]),R=new Uint8Array([0,0,0,0,0,0,0,0]),j=R,U=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=R,I=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=function(t){var e,i,n=[],r=0;for(e=1;e&lt;arguments.length;e++)n.push(arguments[e]);for(e=n.length;e--;)r+=n[e].byteLength;for(i=new Uint8Array(r+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(t,4),e=0,r=8;e&lt;n.length;e++)i.set(n[e],r),r+=n[e].byteLength;return i},r=function(){return n(w.dinf,n(w.dref,M))},a=function(t){return n(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype&lt;&lt;3|t.samplingfrequencyindex&gt;&gt;&gt;1,t.samplingfrequencyindex&lt;&lt;7|t.channelcount&lt;&lt;3,6,1,2]))},s=function(){return n(w.ftyp,E,A,E,x)},v=function(t){return n(w.hdlr,L[t])},o=function(t){return n(w.mdat,t)},y=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration&gt;&gt;&gt;24&amp;255,t.duration&gt;&gt;&gt;16&amp;255,t.duration&gt;&gt;&gt;8&amp;255,255&amp;t.duration,85,196,0,0]);return t.samplerate&amp;&amp;(e[12]=t.samplerate&gt;&gt;&gt;24&amp;255,e[13]=t.samplerate&gt;&gt;&gt;16&amp;255,e[14]=t.samplerate&gt;&gt;&gt;8&amp;255,e[15]=255&amp;t.samplerate),n(w.mdhd,e)},m=function(t){return n(w.mdia,y(t),v(t.type),u(t))},l=function(t){return n(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&amp;t)&gt;&gt;24,(16711680&amp;t)&gt;&gt;16,(65280&amp;t)&gt;&gt;8,255&amp;t]))},u=function(t){return n(w.minf,"video"===t.type?n(w.vmhd,I):n(w.smhd,D),r(),b(t))},c=function(t,e){for(var i=[],r=e.length;r--;)i[r]=S(e[r]);return n.apply(null,[w.moof,l(t)].concat(i))},h=function(t){for(var e=t.length,i=[];e--;)i[e]=f(t[e]);return n.apply(null,[w.moov,p(4294967295)].concat(i).concat(d(t)))},d=function(t){for(var e=t.length,i=[];e--;)i[e]=k(t[e]);return n.apply(null,[w.mvex].concat(i))},p=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&amp;t)&gt;&gt;24,(16711680&amp;t)&gt;&gt;16,(65280&amp;t)&gt;&gt;8,255&amp;t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(w.mvhd,e)},_=function(t){var e,i,r=t.samples||[],a=new Uint8Array(4+r.length);for(i=0;i&lt;r.length;i++)e=r[i].flags,a[i+4]=e.dependsOn&lt;&lt;4|e.isDependedOn&lt;&lt;2|e.hasRedundancy;return n(w.sdtp,a)},b=function(t){return n(w.stbl,T(t),n(w.stts,N),n(w.stsc,j),n(w.stsz,U),n(w.stco,R))},T=function(t){return n(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===t.type?B(t):F(t))},B=function(t){var e,i=t.sps||[],r=t.pps||[],a=[],s=[];for(e=0;e&lt;i.length;e++)a.push((65280&amp;i[e].byteLength)&gt;&gt;&gt;8),a.push(255&amp;i[e].byteLength),a=a.concat(Array.prototype.slice.call(i[e]));for(e=0;e&lt;r.length;e++)s.push((65280&amp;r[e].byteLength)&gt;&gt;&gt;8),s.push(255&amp;r[e].byteLength),s=s.concat(Array.prototype.slice.call(r[e]));return n(w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&amp;t.width)&gt;&gt;8,255&amp;t.width,(65280&amp;t.height)&gt;&gt;8,255&amp;t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(w.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([i.length]).concat(a).concat([r.length]).concat(s))),n(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},F=function(t){return n(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&amp;t.channelcount)&gt;&gt;8,255&amp;t.channelcount,(65280&amp;t.samplesize)&gt;&gt;8,255&amp;t.samplesize,0,0,0,0,(65280&amp;t.samplerate)&gt;&gt;8,255&amp;t.samplerate,0,0]),a(t))},g=function(t){var e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&amp;t.id)&gt;&gt;24,(16711680&amp;t.id)&gt;&gt;16,(65280&amp;t.id)&gt;&gt;8,255&amp;t.id,0,0,0,0,(4278190080&amp;t.duration)&gt;&gt;24,(16711680&amp;t.duration)&gt;&gt;16,(65280&amp;t.duration)&gt;&gt;8,255&amp;t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&amp;t.width)&gt;&gt;8,255&amp;t.width,0,0,(65280&amp;t.height)&gt;&gt;8,255&amp;t.height,0,0]);return n(w.tkhd,e)},S=function(t){var e,i,r,a,s,o;return e=n(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&amp;t.id)&gt;&gt;24,(16711680&amp;t.id)&gt;&gt;16,(65280&amp;t.id)&gt;&gt;8,255&amp;t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(t.baseMediaDecodeTime/(W+1)),o=Math.floor(t.baseMediaDecodeTime%(W+1)),i=n(w.tfdt,new Uint8Array([1,0,0,0,s&gt;&gt;&gt;24&amp;255,s&gt;&gt;&gt;16&amp;255,s&gt;&gt;&gt;8&amp;255,255&amp;s,o&gt;&gt;&gt;24&amp;255,o&gt;&gt;&gt;16&amp;255,o&gt;&gt;&gt;8&amp;255,255&amp;o])),92,"audio"===t.type?(r=C(t,92),n(w.traf,e,i,r)):(a=_(t),r=C(t,a.length+92),n(w.traf,e,i,r,a))},f=function(t){return t.duration=t.duration||4294967295,n(w.trak,g(t),m(t))},k=function(t){var e=new Uint8Array([0,0,0,0,(4278190080&amp;t.id)&gt;&gt;24,(16711680&amp;t.id)&gt;&gt;16,(65280&amp;t.id)&gt;&gt;8,255&amp;t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&amp;&amp;(e[e.length-1]=0),n(w.trex,e)},z=function(t,e){var i=0,n=0,r=0,a=0;return t.length&amp;&amp;(void 0!==t[0].duration&amp;&amp;(i=1),void 0!==t[0].size&amp;&amp;(n=2),void 0!==t[0].flags&amp;&amp;(r=4),void 0!==t[0].compositionTimeOffset&amp;&amp;(a=8)),[0,0,i|n|r|a,1,(4278190080&amp;t.length)&gt;&gt;&gt;24,(16711680&amp;t.length)&gt;&gt;&gt;16,(65280&amp;t.length)&gt;&gt;&gt;8,255&amp;t.length,(4278190080&amp;e)&gt;&gt;&gt;24,(16711680&amp;e)&gt;&gt;&gt;16,(65280&amp;e)&gt;&gt;&gt;8,255&amp;e]},V=function(t,e){var i,r,a,s;for(e+=20+16*(r=t.samples||[]).length,i=z(r,e),s=0;s&lt;r.length;s++)a=r[s],i=i.concat([(4278190080&amp;a.duration)&gt;&gt;&gt;24,(16711680&amp;a.duration)&gt;&gt;&gt;16,(65280&amp;a.duration)&gt;&gt;&gt;8,255&amp;a.duration,(4278190080&amp;a.size)&gt;&gt;&gt;24,(16711680&amp;a.size)&gt;&gt;&gt;16,(65280&amp;a.size)&gt;&gt;&gt;8,255&amp;a.size,a.flags.isLeading&lt;&lt;2|a.flags.dependsOn,a.flags.isDependedOn&lt;&lt;6|a.flags.hasRedundancy&lt;&lt;4|a.flags.paddingValue&lt;&lt;1|a.flags.isNonSyncSample,61440&amp;a.flags.degradationPriority,15&amp;a.flags.degradationPriority,(4278190080&amp;a.compositionTimeOffset)&gt;&gt;&gt;24,(16711680&amp;a.compositionTimeOffset)&gt;&gt;&gt;16,(65280&amp;a.compositionTimeOffset)&gt;&gt;&gt;8,255&amp;a.compositionTimeOffset]);return n(w.trun,new Uint8Array(i))},H=function(t,e){var i,r,a,s;for(e+=20+8*(r=t.samples||[]).length,i=z(r,e),s=0;s&lt;r.length;s++)a=r[s],i=i.concat([(4278190080&amp;a.duration)&gt;&gt;&gt;24,(16711680&amp;a.duration)&gt;&gt;&gt;16,(65280&amp;a.duration)&gt;&gt;&gt;8,255&amp;a.duration,(4278190080&amp;a.size)&gt;&gt;&gt;24,(16711680&amp;a.size)&gt;&gt;&gt;16,(65280&amp;a.size)&gt;&gt;&gt;8,255&amp;a.size]);return n(w.trun,new Uint8Array(i))},C=function(t,e){return"audio"===t.type?H(t,e):V(t,e)},t.exports={ftyp:s,mdat:o,moof:c,moov:h,initSegment:function(t){var e,i=s(),n=h(t);return(e=new Uint8Array(i.byteLength+n.byteLength)).set(i),e.set(n,i.byteLength),e}}},"0CPf":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(n=(s=o.next()).done)&amp;&amp;(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,a=t}finally{try{!n&amp;&amp;o.return&amp;&amp;o.return()}finally{if(r)throw a}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();var r,a=i("awF4"),s=(r=a)&amp;&amp;r.__esModule?r:{default:r},o=function(t,e){for(var i=t.cues,n=0;n&lt;i.length;n++){var r=i[n];if(e&gt;=r.adStartTime&amp;&amp;e&lt;=r.adEndTime)return r}return null};e.default={updateAdCues:function(t,e){var i=arguments.length&lt;=2||void 0===arguments[2]?0:arguments[2];if(t.segments)for(var r=i,a=void 0,l=0;l&lt;t.segments.length;l++){var u=t.segments[l];if(a||(a=o(e,r+u.duration/2)),a){if("cueIn"in u){a.endTime=r,a.adEndTime=r,r+=u.duration,a=null;continue}if(r&lt;a.endTime){r+=u.duration;continue}a.endTime+=u.duration}else if("cueOut"in u&amp;&amp;((a=new s.default.VTTCue(r,r+u.duration,u.cueOut)).adStartTime=r,a.adEndTime=r+parseFloat(u.cueOut),e.addCue(a)),"cueOutCont"in u){var c,h,d=u.cueOutCont.split("/").map(parseFloat),p=n(d,2);c=p[0],h=p[1],(a=new s.default.VTTCue(r,r+u.duration,"")).adStartTime=r-c,a.adEndTime=a.adStartTime+h,e.addCue(a)}r+=u.duration}},findAdCue:o},t.exports=e.default},"0dI+":function(t,e,i){"use strict";t.exports=function(){var t=this;this.list=[],this.push=function(t){this.list.push({bytes:t.bytes,dts:t.dts,pts:t.pts,keyFrame:t.keyFrame,metaDataTag:t.metaDataTag})},Object.defineProperty(this,"length",{get:function(){return t.list.length}})}},"0gME":function(t,e){var i={"":!0,up:!0};function n(t){return"number"==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=100}t.exports=function(){var t=100,e=3,r=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=function(t){return"string"==typeof t&amp;&amp;!!i[t.toLowerCase()]&amp;&amp;t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}},"0oVx":function(t,e,i){"use strict";var n=i("aZOi");t.exports=function(t,e,i){var r,a,s,o=new Uint8Array(9),l=new DataView(o.buffer);return t=t||0,e=void 0===e||e,i=void 0===i||i,l.setUint8(0,70),l.setUint8(1,76),l.setUint8(2,86),l.setUint8(3,1),l.setUint8(4,(e?4:0)|(i?1:0)),l.setUint32(5,o.byteLength),t&lt;=0?((a=new Uint8Array(o.byteLength+4)).set(o),a.set([0,0,0,0],o.byteLength),a):((r=new n(n.METADATA_TAG)).pts=r.dts=0,r.writeMetaDataDouble("duration",t),s=r.finalize().length,(a=new Uint8Array(o.byteLength+s)).set(o),a.set(l.byteLength,s),a)}},"0rM/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={}}return n(t,[{key:"on",value:function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"off",value:function(t,e){var i;return!!this.listeners[t]&amp;&amp;(i=this.listeners[t].indexOf(e),this.listeners[t].splice(i,1),i&gt;-1)}},{key:"trigger",value:function(t){var e=void 0,i=void 0,n=void 0,r=void 0;if(e=this.listeners[t])if(2===arguments.length)for(n=e.length,i=0;i&lt;n;++i)e[i].call(this,arguments[1]);else for(r=Array.prototype.slice.call(arguments,1),n=e.length,i=0;i&lt;n;++i)e[i].apply(this,r)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(t){this.on("data",function(e){t.push(e)})}}]),t}();e.default=r,t.exports=e.default},"1Xk4":function(t,e,i){"use strict";var n=i("awF4"),r=i("Rl2i"),a=i("sD9O"),s=i("q+vg");function o(t,e,i){var n=t;return r(e)?(i=e,"string"==typeof t&amp;&amp;(n={uri:t})):n=s(e,{uri:t}),n.callback=i,n}function l(t,e,i){return u(e=o(t,e,i))}function u(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,i=function(i,n,r){e||(e=!0,t.callback(i,n,r))};function n(t){return clearTimeout(c),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,i(t,y)}function r(){if(!o){var e;clearTimeout(c),e=t.useXDR&amp;&amp;void 0===u.status?200:1223===u.status?204:u.status;var n=y,r=null;return 0!==e?(n={body:function(){var t=void 0;if(t=u.response?u.response:u.responseText||function(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&amp;&amp;"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}(u),m)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:d,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&amp;&amp;(n.headers=a(u.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),i(r,n,n.body)}}var s,o,u=t.xhr||null;u||(u=t.cors||t.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var c,h=u.url=t.uri||t.url,d=u.method=t.method||"GET",p=t.body||t.data,f=u.headers=t.headers||{},g=!!t.sync,m=!1,y={body:void 0,headers:{},statusCode:0,method:d,url:h,rawRequest:u};if("json"in t&amp;&amp;!1!==t.json&amp;&amp;(m=!0,f.accept||f.Accept||(f.Accept="application/json"),"GET"!==d&amp;&amp;"HEAD"!==d&amp;&amp;(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),u.onreadystatechange=function(){4===u.readyState&amp;&amp;setTimeout(r,0)},u.onload=r,u.onerror=n,u.onprogress=function(){},u.onabort=function(){o=!0},u.ontimeout=n,u.open(d,h,!g,t.username,t.password),g||(u.withCredentials=!!t.withCredentials),!g&amp;&amp;t.timeout&gt;0&amp;&amp;(c=setTimeout(function(){if(!o){o=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",n(t)}},t.timeout)),u.setRequestHeader)for(s in f)f.hasOwnProperty(s)&amp;&amp;u.setRequestHeader(s,f[s]);else if(t.headers&amp;&amp;!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&amp;&amp;(u.responseType=t.responseType),"beforeSend"in t&amp;&amp;"function"==typeof t.beforeSend&amp;&amp;t.beforeSend(u),u.send(p||null),u}t.exports=l,l.XMLHttpRequest=n.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var i=0;i&lt;t.length;i++)e(t[i])}(["get","put","post","patch","head","delete"],function(t){l["delete"===t?"del":t]=function(e,i,n){return(i=o(e,i,n)).method=t.toUpperCase(),u(i)}})},"1mVh":function(t,e){var i=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function n(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function r(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+(0|n)/1e3}var i=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]&gt;59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}function a(){this.values=i(null)}function s(t,e,i,n){var r=n?t.split(n):[t];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i);if(2===s.length)e(s[0],s[1])}}function o(t,e,i){var o=t;function l(){var e=r(t);if(null===e)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+o);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function u(){t=t.replace(/^\s+/,"")}if(u(),e.startTime=l(),u(),"--\x3e"!==t.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);t=t.substr(3),u(),e.endTime=l(),u(),function(t,e){var n=new a;s(t,function(t,e){switch(t){case"region":for(var r=i.length-1;r&gt;=0;r--)if(i[r].id===e){n.set(t,i[r].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),s=a[0];n.integer(t,s),n.percent(t,s)&amp;&amp;n.set("snapToLines",!1),n.alt(t,s,["auto"]),2===a.length&amp;&amp;n.alt("lineAlign",a[1],["start","middle","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&amp;&amp;n.alt("positionAlign",a[1],["start","middle","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical",""),e.line=n.get("line","auto"),e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align","middle"),e.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}n.prototype=i(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var n=0;n&lt;i.length;++n)if(e===i[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&amp;&amp;this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&amp;&amp;(e=parseFloat(e))&gt;=0&amp;&amp;e&lt;=100)&amp;&amp;(this.set(t,e),!0)}};var l={"&amp;amp;":"&amp;","&amp;lt;":"&lt;","&amp;gt;":"&gt;","&amp;lrm;":"â€Ž","&amp;rlm;":"â€","&amp;nbsp;":"Â&nbsp;"},u={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={v:"title",lang:"lang"},h={rt:"ruby"};function d(t,e){function i(){if(!e)return null;var t,i=e.match(/^([^&lt;]*)(&lt;[^&gt;]*&gt;?)?/);return t=i[1]?i[1]:i[2],e=e.substr(t.length),t}function n(t){return l[t]}function a(t){for(;v=t.match(/&amp;(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(v[0],n);return t}function s(t,e){return!h[e.localName]||h[e.localName]===t.localName}function o(e,i){var n=u[e];if(!n)return null;var r=t.document.createElement(n);r.localName=n;var a=c[e];return a&amp;&amp;i&amp;&amp;(r[a]=i.trim()),r}for(var d,p=t.document.createElement("div"),f=p,g=[];null!==(d=i());)if("&lt;"!==d[0])f.appendChild(t.document.createTextNode(a(d)));else{if("/"===d[1]){g.length&amp;&amp;g[g.length-1]===d.substr(2).replace("&gt;","")&amp;&amp;(g.pop(),f=f.parentNode);continue}var m,y=r(d.substr(1,d.length-2));if(y){m=t.document.createProcessingInstruction("timestamp",y),f.appendChild(m);continue}var v=d.match(/^&lt;([^.\s/0-9&gt;]+)(\.[^\s\\&gt;]+)?([^&gt;\\]+)?(\\?)&gt;?$/);if(!v)continue;if(!(m=o(v[1],v[3])))continue;if(!s(f,m))continue;v[2]&amp;&amp;(m.className=v[2].substr(1).replace("."," ")),g.push(v[1]),f.appendChild(m),f=m}return p}var p=[[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 f(t){for(var e=0;e&lt;p.length;e++){var i=p[e];if(t&gt;=i[0]&amp;&amp;t&lt;=i[1])return!0}return!1}function g(){}function m(t,e,i){var n=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";n&amp;&amp;(r="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),g.call(this),this.cue=e,this.cueDiv=d(t,e.text);var s={color:r,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=t.document.createElement("div"),s={textAlign:"middle"===e.align?"center":e.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},n||(s.direction=function(t){var e=[],i="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var i=e.childNodes.length-1;i&gt;=0;i--)t.push(e.childNodes[i])}function r(t){if(!t||!t.length)return null;var e=t.pop(),i=e.textContent||e.innerText;if(i){var a=i.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):i}return"ruby"===e.tagName?r(t):e.childNodes?(n(t,e),r(t)):void 0}for(n(e,t);i=r(e);)for(var a=0;a&lt;i.length;a++)if(f(i.charCodeAt(a)))return"rtl";return"ltr"}(this.cueDiv),s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var o=0;switch(e.positionAlign){case"start":o=e.position;break;case"middle":o=e.position-e.size/2;break;case"end":o=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(o,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(o,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function y(t){var e,i,n,r,a=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){i=t.div.offsetHeight,n=t.div.offsetWidth,r=t.div.offsetTop;var s=(s=t.div.childNodes)&amp;&amp;(s=s[0])&amp;&amp;s.getClientRects&amp;&amp;s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&amp;&amp;s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||i,this.bottom=t.bottom||r+(t.height||i),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight,a&amp;&amp;!this.lineHeight&amp;&amp;(this.lineHeight=13)}function v(t,e,i,n){var r=new y(e),a=e.cue,s=function(t){if("number"==typeof t.line&amp;&amp;(t.snapToLines||t.line&gt;=0&amp;&amp;t.line&lt;=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,n=0,r=0;r&lt;i.length&amp;&amp;i[r]!==e;r++)"showing"===i[r].mode&amp;&amp;n++;return-1*++n}(a),o=[];if(a.snapToLines){var l;switch(a.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var u=r.lineHeight,c=u*Math.round(s),h=i[l]+u,d=o[0];Math.abs(c)&gt;h&amp;&amp;(c=c&lt;0?-1:1,c*=Math.ceil(h/u)*u),s&lt;0&amp;&amp;(c+=""===a.vertical?i.height:i.width,o=o.reverse()),r.move(d,c)}else{var p=r.lineHeight/i.height*100;switch(a.lineAlign){case"middle":s-=p/2;break;case"end":s-=p}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(s,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(s,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],r=new y(e)}var f=function(t,e){for(var r,a=new y(t),s=1,o=0;o&lt;e.length;o++){for(;t.overlapsOppositeAxis(i,e[o])||t.within(i)&amp;&amp;t.overlapsAny(n);)t.move(e[o]);if(t.within(i))return t;var l=t.intersectPercentage(i);s&gt;l&amp;&amp;(r=new y(t),s=l),t=new y(a)}return r||a}(r,o);e.move(f.toCSSCompatValues(i))}function _(){}g.prototype.applyStyles=function(t,e){for(var i in e=e||this.div,t)t.hasOwnProperty(i)&amp;&amp;(e.style[i]=t[i])},g.prototype.formatStyle=function(t,e){return 0===t?0:t+e},m.prototype=i(g.prototype),m.prototype.constructor=m,y.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},y.prototype.overlaps=function(t){return this.left&lt;t.right&amp;&amp;this.right&gt;t.left&amp;&amp;this.top&lt;t.bottom&amp;&amp;this.bottom&gt;t.top},y.prototype.overlapsAny=function(t){for(var e=0;e&lt;t.length;e++)if(this.overlaps(t[e]))return!0;return!1},y.prototype.within=function(t){return this.top&gt;=t.top&amp;&amp;this.bottom&lt;=t.bottom&amp;&amp;this.left&gt;=t.left&amp;&amp;this.right&lt;=t.right},y.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left&lt;t.left;case"-x":return this.right&gt;t.right;case"+y":return this.top&lt;t.top;case"-y":return this.bottom&gt;t.bottom}},y.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)},y.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}},y.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=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||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||i}},_.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},_.convertCueToDOMTree=function(t,e){return t&amp;&amp;e?d(t,e):null};_.processCues=function(t,e,i){if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(t){for(var e=0;e&lt;t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],a=y.getSimpleBoxPosition(n),s={font:Math.round(.05*a.height*100)/100+"px sans-serif"};!function(){for(var i,o,l=0;l&lt;e.length;l++)o=e[l],i=new m(t,o,s),n.appendChild(i.div),v(0,i,a,r),o.displayState=i.div,r.push(y.getSimpleBoxPosition(i))}()}else for(var o=0;o&lt;e.length;o++)n.appendChild(e[o].displayState)},_.Parser=function(t,e,i){i||(i=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},_.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof n))throw t;this.onparsingerror&amp;&amp;this.onparsingerror(t)},parse:function(t){var e=this;function i(){for(var t=e.buffer,i=0;i&lt;t.length&amp;&amp;"\r"!==t[i]&amp;&amp;"\n"!==t[i];)++i;var n=t.substr(0,i);return"\r"===t[i]&amp;&amp;++i,"\n"===t[i]&amp;&amp;++i,e.buffer=t.substr(i),n}function l(t){t.match(/X-TIMESTAMP-MAP/)?s(t,function(t,i){switch(t){case"X-TIMESTAMP-MAP":n=i,o=new a,s(n,function(t,e){switch(t){case"MPEGT":o.integer(t+"S",e);break;case"LOCA":o.set(t+"L",r(e))}},/[^\d]:/,/,/),e.ontimestampmap&amp;&amp;e.ontimestampmap({MPEGTS:o.get("MPEGTS"),LOCAL:o.get("LOCAL")})}var n,o},/=/):s(t,function(t,i){switch(t){case"Region":!function(t){var i=new a;if(s(t,function(t,e){switch(t){case"id":i.set(t,e);break;case"width":i.percent(t,e);break;case"lines":i.integer(t,e);break;case"regionanchor":case"viewportanchor":var n=e.split(",");if(2!==n.length)break;var r=new a;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;i.set(t+"X",r.get("x")),i.set(t+"Y",r.get("y"));break;case"scroll":i.alt(t,e,["up"])}},/=/,/\s/),i.has("id")){var n=new(e.vttjs.VTTRegion||e.window.VTTRegion);n.width=i.get("width",100),n.lines=i.get("lines",3),n.regionAnchorX=i.get("regionanchorX",0),n.regionAnchorY=i.get("regionanchorY",100),n.viewportAnchorX=i.get("viewportanchorX",0),n.viewportAnchorY=i.get("viewportanchorY",100),n.scroll=i.get("scroll",""),e.onregion&amp;&amp;e.onregion(n),e.regionList.push({id:i.get("id"),region:n})}}(i)}},/:/)}t&amp;&amp;(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var u;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var c=(u=i()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new n(n.Errors.BadSignature);e.state="HEADER"}for(var h=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(h?h=!1:u=i(),e.state){case"HEADER":/:/.test(u)?l(u):u||(e.state="ID");continue;case"NOTE":u||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(u)){e.state="NOTE";break}if(!u)continue;if(e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,""),e.state="CUE",-1===u.indexOf("--\x3e")){e.cue.id=u;continue}case"CUE":try{o(u,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var d=-1!==u.indexOf("--\x3e");if(!u||d&amp;&amp;(h=!0)){e.oncue&amp;&amp;e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&amp;&amp;(e.cue.text+="\n"),e.cue.text+=u;continue;case"BADCUE":u||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&amp;&amp;e.cue&amp;&amp;e.oncue&amp;&amp;e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&amp;&amp;(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new n(n.Errors.BadSignature)}catch(t){this.reportOrThrowError(t)}return this.onflush&amp;&amp;this.onflush(),this}},t.exports=_},"1nIV":function(t,e){var i={"":!0,up:!0};function n(t){return"number"==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=100}t.exports=function(){var t=100,e=3,r=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=function(t){return"string"==typeof t&amp;&amp;!!i[t.toLowerCase()]&amp;&amp;t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}},"2BoW":function(t,e,i){"use strict";var n;n=function(t){var e=t.byteLength,i=0,n=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+n},this.loadWord=function(){var r=t.byteLength-e,a=new Uint8Array(4),s=Math.min(4,e);if(0===s)throw new Error("no bytes available");a.set(t.subarray(r,r+s)),i=new DataView(a.buffer).getUint32(0),n=8*s,e-=s},this.skipBits=function(t){var r;n&gt;t?(i&lt;&lt;=t,n-=t):(t-=n,t-=8*(r=Math.floor(t/8)),e-=r,this.loadWord(),i&lt;&lt;=t,n-=t)},this.readBits=function(t){var r=Math.min(n,t),a=i&gt;&gt;&gt;32-r;return(n-=r)&gt;0?i&lt;&lt;=r:e&gt;0&amp;&amp;this.loadWord(),(r=t-r)&gt;0?a&lt;&lt;r|this.readBits(r):a},this.skipLeadingZeros=function(){var t;for(t=0;t&lt;n;++t)if(0!=(i&amp;2147483648&gt;&gt;&gt;t))return i&lt;&lt;=t,n-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&amp;t?1+t&gt;&gt;&gt;1:-1*(t&gt;&gt;&gt;1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},t.exports=n},3:function(t,e,i){t.exports=i("N1fr")},"33ZF":function(t,e,i){"use strict";var n=i("pl6C"),r=i("yevv").handleRollover,a={};a.ts=i("fleF"),a.aac=i("9ltH");var s=function(t,e,i){for(var n,r,s,o,l=0,u=188,c=!1;u&lt;t.byteLength;)if(71!==t[l]||71!==t[u])l++,u++;else{switch(n=t.subarray(l,u),a.ts.parseType(n,e.pid)){case"pes":r=a.ts.parsePesType(n,e.table),s=a.ts.parsePayloadUnitStartIndicator(n),"audio"===r&amp;&amp;s&amp;&amp;(o=a.ts.parsePesTime(n))&amp;&amp;(o.type="audio",i.audio.push(o),c=!0)}if(c)break;l+=188,u+=188}for(l=(u=t.byteLength)-188,c=!1;l&gt;=0;)if(71!==t[l]||71!==t[u])l--,u--;else{switch(n=t.subarray(l,u),a.ts.parseType(n,e.pid)){case"pes":r=a.ts.parsePesType(n,e.table),s=a.ts.parsePayloadUnitStartIndicator(n),"audio"===r&amp;&amp;s&amp;&amp;(o=a.ts.parsePesTime(n))&amp;&amp;(o.type="audio",i.audio.push(o),c=!0)}if(c)break;l-=188,u-=188}},o=function(t,e,i){for(var n,r,s,o,l,u,c,h=0,d=188,p=!1,f={data:[],size:0};d&lt;t.byteLength;)if(71!==t[h]||71!==t[d])h++,d++;else{switch(n=t.subarray(h,d),a.ts.parseType(n,e.pid)){case"pes":if(r=a.ts.parsePesType(n,e.table),s=a.ts.parsePayloadUnitStartIndicator(n),"video"===r&amp;&amp;(s&amp;&amp;!p&amp;&amp;(o=a.ts.parsePesTime(n))&amp;&amp;(o.type="video",i.video.push(o),p=!0),!i.firstKeyFrame)){if(s&amp;&amp;0!==f.size){for(l=new Uint8Array(f.size),u=0;f.data.length;)c=f.data.shift(),l.set(c,u),u+=c.byteLength;a.ts.videoPacketContainsKeyFrame(l)&amp;&amp;(i.firstKeyFrame=a.ts.parsePesTime(l),i.firstKeyFrame.type="video"),f.size=0}f.data.push(n),f.size+=n.byteLength}}if(p&amp;&amp;i.firstKeyFrame)break;h+=188,d+=188}for(h=(d=t.byteLength)-188,p=!1;h&gt;=0;)if(71!==t[h]||71!==t[d])h--,d--;else{switch(n=t.subarray(h,d),a.ts.parseType(n,e.pid)){case"pes":r=a.ts.parsePesType(n,e.table),s=a.ts.parsePayloadUnitStartIndicator(n),"video"===r&amp;&amp;s&amp;&amp;(o=a.ts.parsePesTime(n))&amp;&amp;(o.type="video",i.video.push(o),p=!0)}if(p)break;h-=188,d-=188}},l=function(t){var e={pid:null,table:null},i={};for(var r in function(t,e){for(var i,n=0,r=188;r&lt;t.byteLength;)if(71!==t[n]||71!==t[r])n++,r++;else{switch(i=t.subarray(n,r),a.ts.parseType(i,e.pid)){case"pat":e.pid||(e.pid=a.ts.parsePat(i));break;case"pmt":e.table||(e.table=a.ts.parsePmt(i))}if(e.pid&amp;&amp;e.table)return;n+=188,r+=188}}(t,e),e.table){if(e.table.hasOwnProperty(r))switch(e.table[r]){case n.H264_STREAM_TYPE:i.video=[],o(t,e,i),0===i.video.length&amp;&amp;delete i.video;break;case n.ADTS_STREAM_TYPE:i.audio=[],s(t,e,i),0===i.audio.length&amp;&amp;delete i.audio}}return i};t.exports={inspect:function(t,e){var i,n;return(n=(i=t)[0]==="I".charCodeAt(0)&amp;&amp;i[1]==="D".charCodeAt(0)&amp;&amp;i[2]==="3".charCodeAt(0)?function(t){for(var e,i=!1,n=0,r=null,s=null,o=0,l=0;t.length-l&gt;=3;){switch(a.aac.parseType(t,l)){case"timed-metadata":if(t.length-l&lt;10){i=!0;break}if((o=a.aac.parseId3TagSize(t,l))&gt;t.length){i=!0;break}null===s&amp;&amp;(e=t.subarray(l,l+o),s=a.aac.parseAacTimestamp(e)),l+=o;break;case"audio":if(t.length-l&lt;7){i=!0;break}if((o=a.aac.parseAdtsSize(t,l))&gt;t.length){i=!0;break}null===r&amp;&amp;(e=t.subarray(l,l+o),r=a.aac.parseSampleRate(e)),n++,l+=o;break;default:l++}if(i)return null}if(null===r||null===s)return null;var u=9e4/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*n*u,pts:s+1024*n*u}]}}(t):l(t))&amp;&amp;(n.audio||n.video)?(function(t,e){if(t.audio&amp;&amp;t.audio.length){var i=e;void 0===i&amp;&amp;(i=t.audio[0].dts),t.audio.forEach(function(t){t.dts=r(t.dts,i),t.pts=r(t.pts,i),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4})}if(t.video&amp;&amp;t.video.length){var n=e;if(void 0===n&amp;&amp;(n=t.video[0].dts),t.video.forEach(function(t){t.dts=r(t.dts,n),t.pts=r(t.pts,n),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4}),t.firstKeyFrame){var a=t.firstKeyFrame;a.dts=r(a.dts,n),a.pts=r(a.pts,n),a.dtsTime=a.dts/9e4,a.ptsTime=a.dts/9e4}}}(n,e),n):null}}},"3VTv":function(t,e,i){"use strict";t.exports=function(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}},"3XM3":function(t,e,i){t.exports={tag:i("aZOi"),Transmuxer:i("wmqr"),getFlvHeader:i("0oVx")}},"3Y2f":function(t,e,i){"use strict";e.pad=i("CvjL"),e.unpad=i("3VTv")},4:function(t,e){},"4cG2":function(t,e,i){"use strict";var n,r,a,s=i("nIbA"),o=i("8Ig8"),l=i("pl6C"),u=i("yevv").TimestampRolloverStream,c=i("pl6C");(n=function(){var t=new Uint8Array(188),e=0;n.prototype.init.call(this),this.push=function(i){var n,r=0,a=188;for(e?((n=new Uint8Array(i.byteLength+e)).set(t.subarray(0,e)),n.set(i,e),e=0):n=i;a&lt;n.byteLength;)71!==n[r]||71!==n[a]?(r++,a++):(this.trigger("data",n.subarray(r,a)),r+=188,a+=188);r&lt;n.byteLength&amp;&amp;(t.set(n.subarray(r),0),e=n.byteLength-r)},this.flush=function(){188===e&amp;&amp;71===t[0]&amp;&amp;(this.trigger("data",t),e=0),this.trigger("done")}}).prototype=new s,(r=function(){var t,e,i,n;r.prototype.init.call(this),n=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,n){var r=0;n.payloadUnitStartIndicator&amp;&amp;(r+=t[r]+1),"pat"===n.type?e(t.subarray(r),n):i(t.subarray(r),n)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],n.pmtPid=(31&amp;t[10])&lt;&lt;8|t[11],e.pmtPid=n.pmtPid},i=function(t,e){var i,r;if(1&amp;t[5]){for(n.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&amp;t[1])&lt;&lt;8|t[2])-4,r=12+((15&amp;t[10])&lt;&lt;8|t[11]);r&lt;i;){var a=t[r],s=(31&amp;t[r+1])&lt;&lt;8|t[r+2];a===l.H264_STREAM_TYPE&amp;&amp;null===n.programMapTable.video?n.programMapTable.video=s:a===l.ADTS_STREAM_TYPE&amp;&amp;null===n.programMapTable.audio?n.programMapTable.audio=s:a===l.METADATA_STREAM_TYPE&amp;&amp;(n.programMapTable["timed-metadata"][s]=a),r+=5+((15&amp;t[r+3])&lt;&lt;8|t[r+4])}e.programMapTable=n.programMapTable}},this.push=function(e){var i={},n=4;if(i.payloadUnitStartIndicator=!!(64&amp;e[1]),i.pid=31&amp;e[1],i.pid&lt;&lt;=8,i.pid|=e[2],(48&amp;e[3])&gt;&gt;&gt;4&gt;1&amp;&amp;(n+=e[n]+1),0===i.pid)i.type="pat",t(e.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",t(e.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,n,i]):this.processPes_(e,n,i)},this.processPes_=function(t,e,i){i.pid===this.programMapTable.video?i.streamType=l.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=l.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=t.subarray(e),this.trigger("data",i)}}).prototype=new s,r.STREAM_TYPES={h264:27,adts:15},(a=function(){var t=this,e={data:[],size:0},i={data:[],size:0},n={data:[],size:0},r=function(e,i,n){var r,a,s=new Uint8Array(e.size),o={type:i},l=0,u=0;if(e.data.length&amp;&amp;!(e.size&lt;9)){for(o.trackId=e.data[0].pid,l=0;l&lt;e.data.length;l++)a=e.data[l],s.set(a.data,u),u+=a.data.byteLength;var c,h,d;c=s,(h=o).packetLength=6+(c[4]&lt;&lt;8|c[5]),h.dataAlignmentIndicator=0!=(4&amp;c[6]),192&amp;(d=c[7])&amp;&amp;(h.pts=(14&amp;c[9])&lt;&lt;27|(255&amp;c[10])&lt;&lt;20|(254&amp;c[11])&lt;&lt;12|(255&amp;c[12])&lt;&lt;5|(254&amp;c[13])&gt;&gt;&gt;3,h.pts*=4,h.pts+=(6&amp;c[13])&gt;&gt;&gt;1,h.dts=h.pts,64&amp;d&amp;&amp;(h.dts=(14&amp;c[14])&lt;&lt;27|(255&amp;c[15])&lt;&lt;20|(254&amp;c[16])&lt;&lt;12|(255&amp;c[17])&lt;&lt;5|(254&amp;c[18])&gt;&gt;&gt;3,h.dts*=4,h.dts+=(6&amp;c[18])&gt;&gt;&gt;1)),h.data=c.subarray(9+c[8]),r="video"===i||o.packetLength&lt;=e.size,(n||r)&amp;&amp;(e.size=0,e.data.length=0),r&amp;&amp;t.trigger("data",o)}};a.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var t,s;switch(a.streamType){case l.H264_STREAM_TYPE:case c.H264_STREAM_TYPE:t=e,s="video";break;case l.ADTS_STREAM_TYPE:t=i,s="audio";break;case l.METADATA_STREAM_TYPE:t=n,s="timed-metadata";break;default:return}a.payloadUnitStartIndicator&amp;&amp;r(t,s,!0),t.data.push(a),t.size+=a.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]},i=a.programMapTable;null!==i.video&amp;&amp;e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.video,codec:"avc",type:"video"}),null!==i.audio&amp;&amp;e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.audio,codec:"adts",type:"audio"}),t.trigger("data",e)}})[a.type]()},this.flush=function(){r(e,"video"),r(i,"audio"),r(n,"timed-metadata"),this.trigger("done")}}).prototype=new s;var h={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:n,TransportParseStream:r,ElementaryStream:a,TimestampRolloverStream:u,CaptionStream:o.CaptionStream,Cea608Stream:o.Cea608Stream,MetadataStream:i("X4yv")};for(var d in l)l.hasOwnProperty(d)&amp;&amp;(h[d]=l[d]);t.exports=h},"4tgR":function(t,e,i){"use strict";var n=i("pP26"),r=function(t,e){var i=1;for(t&gt;e&amp;&amp;(i=-1);Math.abs(e-t)&gt;4294967296;)t+=8589934592*i;return t},a=function(t){var e,i;a.prototype.init.call(this),this.type_=t,this.push=function(t){t.type===this.type_&amp;&amp;(void 0===i&amp;&amp;(i=t.dts),t.dts=r(t.dts,i),t.pts=r(t.pts,i),e=t.dts,this.trigger("data",t))},this.flush=function(){i=e,this.trigger("done")},this.discontinuity=function(){i=void 0,e=void 0}};a.prototype=new n,t.exports={TimestampRolloverStream:a,handleRollover:r}},"5elE":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i("01cO"),a=(n=r)&amp;&amp;n.__esModule?n:{default:n},s=i("iMiW"),o={FAILURE:2,TIMEOUT:-101,ABORTED:-102};e.REQUEST_ERRORS=o;var l=function(t){var e,i,n={};return t.byterange&amp;&amp;(n.Range=(e=t.byterange,i=e.offset+e.length-1,"bytes="+e.offset+"-"+i)),n},u=function(t){t.forEach(function(t){t.abort()})},c=function(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:o.TIMEOUT,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:o.ABORTED,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:o.FAILURE,xhr:e}:null},h=function(t,e,i){var n=[],r=0;return function(a,o){if(a&amp;&amp;(u(t),n.push(a)),(r+=1)===t.length){if(o.endOfAllRequests=Date.now(),n.length&gt;0){var l=function(t){return t.reduce(function(t,e){return e.code&gt;t.code?e:t})}(n);return i(l,o)}return o.encryptedBytes?function(t,e,i){t.addEventListener("message",function n(r){if(r.data.source===e.requestId){t.removeEventListener("message",n);var a=r.data.decrypted;return e.bytes=new Uint8Array(a.bytes,a.byteOffset,a.byteLength),i(null,e)}}),t.postMessage((0,s.createTransferableMessage)({source:e.requestId,encrypted:e.encryptedBytes,key:e.key.bytes,iv:e.key.iv}),[e.encryptedBytes.buffer,e.key.bytes.buffer])}(e,o,i):i(null,o)}}},d=function(t,e){return function(i){var n,r,s;return t.stats=a.default.mergeOptions(t.stats,(r=(n=i).target,(s={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-r.requestTime||0}).bytesReceived=n.loaded,s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3),s)),!t.stats.firstBytesReceivedAt&amp;&amp;t.stats.bytesReceived&amp;&amp;(t.stats.firstBytesReceivedAt=Date.now()),e(i,t)}};e.mediaSegmentRequest=function(t,e,i,n,r,s){var p=[],f=h(p,i,s);if(n.key){var g=t(a.default.mergeOptions(e,{uri:n.key.resolvedUri,responseType:"arraybuffer"}),function(t,e){return function(i,n){var r=n.response,a=c(i,n);if(a)return e(a,t);if(16!==r.byteLength)return e({status:n.status,message:"Invalid HLS key at URL: "+n.uri,code:o.FAILURE,xhr:n},t);var s=new DataView(r);return t.key.bytes=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]),e(null,t)}}(n,f));p.push(g)}if(n.map&amp;&amp;!n.map.bytes){var m=t(a.default.mergeOptions(e,{uri:n.map.resolvedUri,responseType:"arraybuffer",headers:l(n.map)}),function(t,e){return function(i,n){var r=n.response,a=c(i,n);return a?e(a,t):0===r.byteLength?e({status:n.status,message:"Empty HLS segment content at URL: "+n.uri,code:o.FAILURE,xhr:n},t):(t.map.bytes=new Uint8Array(n.response),e(null,t))}}(n,f));p.push(m)}var y=t(a.default.mergeOptions(e,{uri:n.resolvedUri,responseType:"arraybuffer",headers:l(n)}),function(t,e){return function(i,n){var r=n.response,a=c(i,n);return a?e(a,t):0===r.byteLength?e({status:n.status,message:"Empty HLS segment content at URL: "+n.uri,code:o.FAILURE,xhr:n},t):(t.stats=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}}(n),t.key?t.encryptedBytes=new Uint8Array(n.response):t.bytes=new Uint8Array(n.response),e(null,t))}}(n,f));return y.addEventListener("progress",d(n,r)),p.push(y),function(){return u(p)}}},"7+iA":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();function r(t){return t&amp;&amp;t.__esModule?t:{default:t}}var a=r(i("awF4")),s=r(i("Nfci")),o=r(i("01cO")),l=["seeking","seeked","pause","playing","error"],u=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tech_=e.tech,this.seekable=e.seekable,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,e.debug&amp;&amp;(this.logger_=o.default.log.bind(o.default,"playback-watcher -&gt;")),this.logger_("initialize");var n=function(){return i.monitorCurrentTime_()},r=function(){return i.techWaiting_()},s=function(){return i.cancelTimer_()},u=function(){return i.fixesBadSeeks_()};this.tech_.on("seekablechanged",u),this.tech_.on("waiting",r),this.tech_.on(l,s),this.tech_.on("canplay",n),this.dispose=function(){i.logger_("dispose"),i.tech_.off("seekablechanged",u),i.tech_.off("waiting",r),i.tech_.off(l,s),i.tech_.off("canplay",n),i.checkCurrentTimeTimeout_&amp;&amp;a.default.clearTimeout(i.checkCurrentTimeTimeout_),i.cancelTimer_()}}return n(t,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&amp;&amp;a.default.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=a.default.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&amp;&amp;this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&amp;&amp;!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&amp;&amp;(!e.length||t+s.default.SAFE_TIME_DELTA&gt;=e.end(e.length-1)))return this.techWaiting_();this.consecutiveUpdates&gt;=5&amp;&amp;t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&amp;&amp;(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){var t=this.tech_.seeking(),e=this.seekable(),i=this.tech_.currentTime(),n=void 0;t&amp;&amp;this.afterSeekableWindow_(e,i)&amp;&amp;(n=e.end(e.length-1));t&amp;&amp;this.beforeSeekableWindow_(e,i)&amp;&amp;(n=e.start(0)+s.default.SAFE_TIME_DELTA);return void 0!==n&amp;&amp;(this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+s.default.printableRange(e)+". Seeking to "+n+"."),this.tech_.setCurrentTime(n),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=this.tech_.buffered(),i=s.default.findRange(e,t);return i.length&amp;&amp;t+3&lt;=i.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+i.start(0)+" -&gt; "+i.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()&amp;&amp;this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var i=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". Seeking to live point (seekable end) "+i),this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var n=this.tech_.buffered(),r=s.default.findNextRange(n,e);if(this.videoUnderflow_(r,n,e))return this.cancelTimer_(),this.tech_.setCurrentTime(e),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(r.length&gt;0){var a=r.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+a+", seeking to "+r.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,e),!0}return!1}},{key:"afterSeekableWindow_",value:function(t,e){return!!t.length&amp;&amp;e&gt;t.end(t.length-1)+s.default.SAFE_TIME_DELTA}},{key:"beforeSeekableWindow_",value:function(t,e){return!!(t.length&amp;&amp;t.start(0)&gt;0&amp;&amp;e&lt;t.start(0)-s.default.SAFE_TIME_DELTA)}},{key:"videoUnderflow_",value:function(t,e,i){if(0===t.length){var n=this.gapFromVideoUnderflow_(e,i);if(n)return this.logger_("Encountered a gap in video from "+n.start+" to "+n.end+". Seeking to current time "+i),!0}return!1}},{key:"skipTheGap_",value:function(t){var e=this.tech_.buffered(),i=this.tech_.currentTime(),n=s.default.findNextRange(e,i);this.cancelTimer_(),0!==n.length&amp;&amp;i===t&amp;&amp;(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",t,"nextRange start:",n.start(0)),this.tech_.setCurrentTime(n.start(0)+s.default.TIME_FUDGE_FACTOR),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(t,e){for(var i=s.default.findGaps(t),n=0;n&lt;i.length;n++){var r=i.start(n),a=i.end(n);if(e-r&lt;4&amp;&amp;e-r&gt;2)return{start:r,end:a}}return null}},{key:"logger_",value:function(){}}]),t}();e.default=u,t.exports=e.default},"7GJ1":function(t,e,i){"use strict";var n,r,a,s=i("nIbA"),o=i("2BoW");(r=function(){var t,e,i=0;r.prototype.init.call(this),this.push=function(n){var r;for(e?((r=new Uint8Array(e.byteLength+n.data.byteLength)).set(e),r.set(n.data,e.byteLength),e=r):e=n.data;i&lt;e.byteLength-3;i++)if(1===e[i+2]){t=i+5;break}for(;t&lt;e.byteLength;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}i+3!==t-2&amp;&amp;this.trigger("data",e.subarray(i+3,t-2));do{t++}while(1!==e[t]&amp;&amp;t&lt;e.length);i=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(i+3,t-2)),i=t-2,t+=3;break;default:t+=3}e=e.subarray(i),t-=i,i=0},this.flush=function(){e&amp;&amp;e.byteLength&gt;3&amp;&amp;this.trigger("data",e.subarray(i+3)),e=null,i=0,this.trigger("done")}}).prototype=new s,a={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(n=function(){var t,e,i,s,l,u,c,h=new r;n.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&amp;&amp;(e=t.trackId,i=t.pts,s=t.dts,h.push(t))},h.on("data",function(n){var r={trackId:e,pts:i,dts:s,data:n};switch(31&amp;n[0]){case 5:r.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:r.nalUnitType="sei_rbsp",r.escapedRBSP=l(n.subarray(1));break;case 7:r.nalUnitType="seq_parameter_set_rbsp",r.escapedRBSP=l(n.subarray(1)),r.config=u(r.escapedRBSP);break;case 8:r.nalUnitType="pic_parameter_set_rbsp";break;case 9:r.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",r)}),h.on("done",function(){t.trigger("done")}),this.flush=function(){h.flush()},c=function(t,e){var i,n=8,r=8;for(i=0;i&lt;t;i++)0!==r&amp;&amp;(r=(n+e.readExpGolomb()+256)%256),n=0===r?n:r},l=function(t){for(var e,i,n=t.byteLength,r=[],a=1;a&lt;n-2;)0===t[a]&amp;&amp;0===t[a+1]&amp;&amp;3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=n-r.length,i=new Uint8Array(e);var s=0;for(a=0;a&lt;e;s++,a++)s===r[0]&amp;&amp;(s++,r.shift()),i[a]=t[s];return i},u=function(t){var e,i,n,r,s,l,u,h,d,p,f,g,m,y=0,v=0,_=0,b=0,T=1;if(i=(e=new o(t)).readUnsignedByte(),r=e.readUnsignedByte(),n=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),a[i]&amp;&amp;(3===(s=e.readUnsignedExpGolomb())&amp;&amp;e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(f=3!==s?8:12,m=0;m&lt;f;m++)e.readBoolean()&amp;&amp;c(m&lt;6?16:64,e);if(e.skipUnsignedExpGolomb(),0===(l=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===l)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),u=e.readUnsignedExpGolomb(),m=0;m&lt;u;m++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),h=e.readUnsignedExpGolomb(),d=e.readUnsignedExpGolomb(),0===(p=e.readBits(1))&amp;&amp;e.skipBits(1),e.skipBits(1),e.readBoolean()&amp;&amp;(y=e.readUnsignedExpGolomb(),v=e.readUnsignedExpGolomb(),_=e.readUnsignedExpGolomb(),b=e.readUnsignedExpGolomb()),e.readBoolean()&amp;&amp;e.readBoolean()){switch(e.readUnsignedByte()){case 1:g=[1,1];break;case 2:g=[12,11];break;case 3:g=[10,11];break;case 4:g=[16,11];break;case 5:g=[40,33];break;case 6:g=[24,11];break;case 7:g=[20,11];break;case 8:g=[32,11];break;case 9:g=[80,33];break;case 10:g=[18,11];break;case 11:g=[15,11];break;case 12:g=[64,33];break;case 13:g=[160,99];break;case 14:g=[4,3];break;case 15:g=[3,2];break;case 16:g=[2,1];break;case 255:g=[e.readUnsignedByte()&lt;&lt;8|e.readUnsignedByte(),e.readUnsignedByte()&lt;&lt;8|e.readUnsignedByte()]}g&amp;&amp;(T=g[0]/g[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:r,width:Math.ceil((16*(h+1)-2*y-2*v)*T),height:(2-p)*(d+1)*16-2*_-2*b}}}).prototype=new s,t.exports={H264Stream:n,NalByteStream:r}},"7JOd":function(t,e){var i,n=[33,16,5,32,164,27],r=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],a=function(t){for(var e=[];t--;)e.push(0);return e},s={96000:[n,[227,64],a(154),[56]],88200:[n,[231],a(170),[56]],64000:[n,[248,192],a(240),[56]],48000:[n,[255,192],a(268),[55,148,128],a(54),[112]],44100:[n,[255,192],a(268),[55,163,128],a(84),[112]],32000:[n,[255,192],a(268),[55,234],a(226),[112]],24000:[n,[255,192],a(268),[55,255,128],a(268),[111,112],a(126),[224]],16000:[n,[255,192],a(268),[55,255,128],a(268),[111,255],a(269),[223,108],a(195),[1,192]],12000:[r,a(268),[3,127,248],a(268),[6,255,240],a(268),[13,255,224],a(268),[27,253,128],a(259),[56]],11025:[r,a(268),[3,127,248],a(268),[6,255,240],a(268),[13,255,224],a(268),[27,255,192],a(268),[55,175,128],a(108),[112]],8000:[r,a(268),[3,121,16],a(47),[7]]};t.exports=(i=s,Object.keys(i).reduce(function(t,e){return t[e]=new Uint8Array(i[e].reduce(function(t,e){return t.concat(e)},[])),t},{}))},"7zZi":function(t,e,i){var n=arguments[3],r=arguments[4],a=arguments[5],s=JSON.stringify,o=!1;void 0===n&amp;&amp;(o=!0,n=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&amp;&amp;t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=entryModule)},r=i.m);t.exports=function(t,e){var l;l=o?function(t,e){var a,o="string"==typeof e;a=o?{}:[],Object.keys(r).forEach(function(t){r[t]&amp;&amp;(a[t]=r[t].toString())});var l,u=i(e);if(!u||u!==t&amp;&amp;u.default!==t){var c=a[e];a[e]=c.substring(0,c.length-1)+"\n"+t.name+"();\n}"}o?(e=s(e),l="{"+Object.keys(a).map(function(t){return s(t)+":"+a[t]}).join(",")+"}"):l="["+a.join(",")+"]";return"var fn = ("+n.toString().replace("entryModule",e)+")("+l+');\n(typeof fn === "function") &amp;&amp; fn(self);'}(t,e):function(t){for(var e,i=Object.keys(a),o=0;o&lt;i.length;o++){var l=i[o],u=a[l].exports;if(u===t||u&amp;&amp;u.default===t){e=l;break}}if(!e){e=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var c={};for(o=0;o&lt;i.length;o++)c[l=i[o]]=l;r[e]=["function(require,module,exports){"+t+"(self); }",c]}var h=Math.floor(Math.pow(16,8)*Math.random()).toString(16),d={};return d[e]=e,r[h]=["function(require,module,exports){var f = require("+s(e)+");(f.default ? f.default : f)(self);}",d],"("+n+")({"+Object.keys(r).map(function(t){return s(t)+":["+r[t][0]+","+s(r[t][1])+"]"}).join(",")+"},{},["+s(h)+"])"}(t);var u=new Blob([l],{type:"text/javascript"}),c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(u),h=new Worker(c);return h.objectURL=c,h}},"8Ig8":function(t,e,i){"use strict";var n=i("nIbA"),r=i("8KjM"),a=function(){a.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new c(0,0),new c(0,1),new c(1,0),new c(1,1)],this.reset(),this.ccStreams_.forEach(function(t){t.on("data",this.trigger.bind(this,"data")),t.on("done",this.trigger.bind(this,"done"))},this)};a.prototype=new n,a.prototype.push=function(t){var e,i,n;if("sei_rbsp"===t.nalUnitType&amp;&amp;(e=r.parseSei(t.escapedRBSP)).payloadType===r.USER_DATA_REGISTERED_ITU_T_T35&amp;&amp;(i=r.parseUserData(e)))if(t.dts&lt;this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&amp;&amp;this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=r.parseCaptionPackets(t.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==t.dts&amp;&amp;(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},a.prototype.flush=function(){this.captionPackets_.length?(this.captionPackets_.forEach(function(t,e){t.presortIndex=e}),this.captionPackets_.sort(function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts}),this.captionPackets_.forEach(function(t){t.type&lt;2&amp;&amp;this.dispatchCea608Packet(t)},this),this.captionPackets_.length=0,this.ccStreams_.forEach(function(t){t.flush()},this)):this.ccStreams_.forEach(function(t){t.flush()},this)},a.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(t){t.reset()})},a.prototype.dispatchCea608Packet=function(t){this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&amp;&amp;(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&amp;&amp;this.ccStreams_[(t.type&lt;&lt;1)+this.activeCea608Channel_[t.type]].push(t)},a.prototype.setsChannel1Active=function(t){return 4096==(30720&amp;t.ccData)},a.prototype.setsChannel2Active=function(t){return 6144==(30720&amp;t.ccData)};var s={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},o=function(t){return null===t?"":(t=s[t]||t,String.fromCharCode(t))},l=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],u=function(){for(var t=[],e=15;e--;)t.push("");return t},c=function(t,e){c.prototype.init.call(this),this.field_=t||0,this.dataChannel_=e||0,this.name_="CC"+(1+(this.field_&lt;&lt;1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,i,n,r,a;if((e=32639&amp;t.ccData)!==this.lastControlCode_){if(4096==(61440&amp;e)?this.lastControlCode_=e:e!==this.PADDING_&amp;&amp;(this.lastControlCode_=null),n=e&gt;&gt;&gt;8,r=255&amp;e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=u();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=u();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&amp;&amp;(this.flushDisplayed(t.pts),this.displayed_=u()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(n,r))a=o((n=(3&amp;n)&lt;&lt;8)|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=o((n=(3&amp;n)&lt;&lt;8)|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&amp;r)&amp;&amp;this.addFormatting(t.pts,["i"]),1==(1&amp;r)&amp;&amp;this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&amp;r;else if(this.isPAC(n,r)){var s=l.indexOf(7968&amp;e);"rollUp"===this.mode_&amp;&amp;this.setRollUp(t.pts,s),s!==this.row_&amp;&amp;(this.clearFormatting(t.pts),this.row_=s),1&amp;r&amp;&amp;-1===this.formatting_.indexOf("u")&amp;&amp;this.addFormatting(t.pts,["u"]),16==(16&amp;e)&amp;&amp;(this.column_=4*((14&amp;e)&gt;&gt;1)),this.isColorPAC(r)&amp;&amp;14==(14&amp;r)&amp;&amp;this.addFormatting(t.pts,["i"])}else this.isNormalChar(n)&amp;&amp;(0===r&amp;&amp;(r=null),a=o(n),a+=o(r),this[this.mode_](t.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};c.prototype=new n,c.prototype.flushDisplayed=function(t){var e=this.displayed_.map(function(t){return t.trim()}).join("\n").replace(/^\n+|\n+$/g,"");e.length&amp;&amp;this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},c.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=u(),this.nonDisplayed_=u(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},c.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)&lt;&lt;8,this.OFFSET_=23):1===this.dataChannel_&amp;&amp;(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)&lt;&lt;8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},c.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&amp;&amp;e&gt;=48&amp;&amp;e&lt;=63},c.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&amp;&amp;e&gt;=32&amp;&amp;e&lt;=63},c.prototype.isMidRowCode=function(t,e){return t===this.EXT_&amp;&amp;e&gt;=32&amp;&amp;e&lt;=47},c.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&amp;&amp;e&gt;=33&amp;&amp;e&lt;=35},c.prototype.isPAC=function(t,e){return t&gt;=this.BASE_&amp;&amp;t&lt;this.BASE_+8&amp;&amp;e&gt;=64&amp;&amp;e&lt;=127},c.prototype.isColorPAC=function(t){return t&gt;=64&amp;&amp;t&lt;=79||t&gt;=96&amp;&amp;t&lt;=127},c.prototype.isNormalChar=function(t){return t&gt;=32&amp;&amp;t&lt;=127},c.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&amp;&amp;(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=u(),this.displayed_=u()),void 0!==e&amp;&amp;e!==this.row_)for(var i=0;i&lt;this.rollUpRows_;i++)this.displayed_[e-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===e&amp;&amp;(e=this.row_),this.topRow_=e-this.rollUpRows_+1},c.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var i=e.reduce(function(t,e){return t+"&lt;"+e+"&gt;"},"");this[this.mode_](t,i)},c.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce(function(t,e){return t+"&lt;/"+e+"&gt;"},"");this.formatting_=[],this[this.mode_](t,e)}},c.prototype.popOn=function(t,e){var i=this.nonDisplayed_[this.row_];i+=e,this.nonDisplayed_[this.row_]=i},c.prototype.rollUp=function(t,e){var i=this.displayed_[this.row_];i+=e,this.displayed_[this.row_]=i},c.prototype.shiftRowsUp_=function(){var t;for(t=0;t&lt;this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t&lt;15;t++)this.displayed_[t]="";for(t=this.topRow_;t&lt;this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},c.prototype.paintOn=function(t,e){var i=this.displayed_[this.row_];i+=e,this.displayed_[this.row_]=i},t.exports={CaptionStream:a,Cea608Stream:c}},"8KjM":function(t,e,i){"use strict";t.exports={parseSei:function(t){for(var e=0,i={payloadType:-1,payloadSize:0},n=0,r=0;e&lt;t.byteLength&amp;&amp;128!==t[e];){for(;255===t[e];)n+=255,e++;for(n+=t[e++];255===t[e];)r+=255,e++;if(r+=t[e++],!i.payload&amp;&amp;4===n){i.payloadType=n,i.payloadSize=r,i.payload=t.subarray(e,e+r);break}e+=r,n=0,r=0}return i},parseUserData:function(t){return 181!==t.payload[0]?null:49!=(t.payload[1]&lt;&lt;8|t.payload[2])?null:"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])?null:3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)},parseCaptionPackets:function(t,e){var i,n,r,a,s=[];if(!(64&amp;e[0]))return s;for(n=31&amp;e[0],i=0;i&lt;n;i++)a={type:3&amp;e[2+(r=3*i)],pts:t},4&amp;e[r+2]&amp;&amp;(a.ccData=e[r+3]&lt;&lt;8|e[r+4],s.push(a));return s},discardEmulationPreventionBytes:function(t){for(var e,i,n=t.byteLength,r=[],a=1;a&lt;n-2;)0===t[a]&amp;&amp;0===t[a+1]&amp;&amp;3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=n-r.length,i=new Uint8Array(e);var s=0;for(a=0;a&lt;e;s++,a++)s===r[0]&amp;&amp;(s++,r.shift()),i[a]=t[s];return i},USER_DATA_REGISTERED_ITU_T_T35:4}},"96je":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={}}return n(t,[{key:"on",value:function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"off",value:function(t,e){if(!this.listeners[t])return!1;var i=this.listeners[t].indexOf(e);return this.listeners[t].splice(i,1),i&gt;-1}},{key:"trigger",value:function(t){var e=this.listeners[t],i=void 0,n=void 0,r=void 0;if(e)if(2===arguments.length)for(n=e.length,i=0;i&lt;n;++i)e[i].call(this,arguments[1]);else for(r=Array.prototype.slice.call(arguments,1),n=e.length,i=0;i&lt;n;++i)e[i].apply(this,r)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(t){this.on("data",function(e){t.push(e)})}}]),t}();e.default=r},"9Pzn":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("MUtT"),r=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"showModal",value:function(t){var e=$(".Mobile-Header ubNav .Menu");e.hasClass("Show")&amp;&amp;e.removeClass("Show"),$("#global-modals .modal").modal("hide"),$("#global-modals #"+t).modal("show")}},{key:"hideModal",value:function(){$("#global-modals .modal").modal("hide")}},{key:"formFailed",value:function(t,e,i){switch(console.log("responseJSON",t.responseJSON),e.find(".notice").text(""),t.status){case HTTP_UNPROCESSABLE_ENTITY:_.forEach(t.responseJSON,function(t,i){var n=[];_.forEach(t.errors,function(t){n.push(t.message)}),e.find(".notice-"+i).text(n.join(";"))});break;default:i&amp;&amp;i()}}},{key:"requestGet",value:function(t,e,i){$.ajax({url:t,success:function(t){e&amp;&amp;e(t)},error:function(t){console.log("request error",t),i&amp;&amp;i()}})}},{key:"closeMobileAdv",value:function(t){var e=t.closest(".mobile-adv");e.hide();var i="";switch(e.attr("location")){case"center":i=n.cookieKey.mobileAdvCenterShowed;break;case"bottom":i=n.cookieKey.mobileAdvBottomShowed}i.length&amp;&amp;n.CookieService.set(i,"1",21600)}},{key:"resetForm",value:function(e){t.resetFormError(e),t.resetFormValue(e)}},{key:"resetFormError",value:function(t){t.find("small.notice").html("")}},{key:"resetFormValue",value:function(t){t.find("input").val("")}},{key:"showNoticeModal",value:function(e,i){var n=$("#noticeModal");n.find(".title").text(e),n.find(".content").text(i),t.showModal("noticeModal")}}]),t}();e.default=a},"9jeX":function(t,e,i){"use strict";function n(t){return t&amp;&amp;t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i("awF4")),a=n(i("f8ML")),s=function(t){return isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t};e.default={addTextTrackData:function(t,e,i){var n,o=r.default.WebKitDataCue||r.default.VTTCue;e&amp;&amp;e.forEach(function(t){var e=t.stream;this.inbandTextTracks_[e].addCue(new o(t.startTime+this.timestampOffset,t.endTime+this.timestampOffset,t.text))},t),i&amp;&amp;(n=s(t.mediaSource_.duration),i.forEach(function(t){var e=t.cueTime+this.timestampOffset;t.frames.forEach(function(t){var i=new o(e,e,t.value||t.url||t.data||"");i.frame=t,i.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return a.default.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return a.default.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return a.default.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(i),this.metadataTrack_.addCue(i)},this)},t),t.metadataTrack_&amp;&amp;t.metadataTrack_.cues&amp;&amp;t.metadataTrack_.cues.length&amp;&amp;function(){for(var e=t.metadataTrack_.cues,i=[],r=0;r&lt;e.length;r++)e[r]&amp;&amp;i.push(e[r]);var a=i.reduce(function(t,e){var i=t[e.startTime]||[];return i.push(e),t[e.startTime]=i,t},{}),s=Object.keys(a).sort(function(t,e){return Number(t)-Number(e)});s.forEach(function(t,e){var i=a[t],r=Number(s[e+1])||n;i.forEach(function(t){t.endTime=r})})}())},durationOfVideo:s},t.exports=e.default},"9ltH":function(t,e,i){"use strict";var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=function(t){return t[0]&lt;&lt;21|t[1]&lt;&lt;14|t[2]&lt;&lt;7|t[3]};t.exports={parseId3TagSize:function(t,e){var i=t[e+6]&lt;&lt;21|t[e+7]&lt;&lt;14|t[e+8]&lt;&lt;7|t[e+9];return(16&amp;t[e+5])&gt;&gt;4?i+20:i+10},parseAdtsSize:function(t,e){var i=(224&amp;t[e+5])&gt;&gt;5,n=t[e+4]&lt;&lt;3;return 6144&amp;t[e+3]|n|i},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&amp;&amp;t[e+1]==="D".charCodeAt(0)&amp;&amp;t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&amp;t[e]&amp;&amp;240==(240&amp;t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5&lt;t.length;){if(255===t[e]&amp;&amp;240==(246&amp;t[e+1]))return n[(60&amp;t[e+2])&gt;&gt;&gt;2];e++}return null},parseAacTimestamp:function(t){var e,i,n;e=10,64&amp;t[5]&amp;&amp;(e+=4,e+=r(t.subarray(10,14)));do{if((i=r(t.subarray(e+4,e+8)))&lt;1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){n=t.subarray(e+10,e+i+10);for(var a=0;a&lt;n.byteLength;a++)if(0===n[a]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(t,e,i){var n,r="";for(n=e;n&lt;i;n++)r+="%"+("00"+t[n].toString(16)).slice(-2);return r}(n,0,a))){var s=n.subarray(a+1),o=(1&amp;s[3])&lt;&lt;30|s[4]&lt;&lt;22|s[5]&lt;&lt;14|s[6]&lt;&lt;6|s[7]&gt;&gt;&gt;2;return o*=4,o+=3&amp;s[7]}break}}e+=10,e+=i}while(e&lt;t.byteLength);return null}}},B7FF:function(t,e,i){"use strict";var n=function(){this.init=function(){var t={};this.on=function(e,i){t[e]||(t[e]=[]),t[e]=t[e].concat(i)},this.off=function(e,i){var n;return!!t[e]&amp;&amp;(n=t[e].indexOf(i),t[e]=t[e].slice(),t[e].splice(n,1),n&gt;-1)},this.trigger=function(e){var i,n,r,a;if(i=t[e])if(2===arguments.length)for(r=i.length,n=0;n&lt;r;++n)i[n].call(this,arguments[1]);else{for(a=[],n=arguments.length,n=1;n&lt;arguments.length;++n)a.push(arguments[n]);for(r=i.length,n=0;n&lt;r;++n)i[n].apply(this,a)}},this.dispose=function(){t={}}}};n.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),t},n.prototype.push=function(t){this.trigger("data",t)},n.prototype.flush=function(t){this.trigger("done",t)},t.exports=n},BWrl:function(t,e){var i=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function n(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function r(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+(0|n)/1e3}var i=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]&gt;59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}function a(){this.values=i(null)}function s(t,e,i,n){var r=n?t.split(n):[t];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i);if(2===s.length)e(s[0],s[1])}}function o(t,e,i){var o=t;function l(){var e=r(t);if(null===e)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+o);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function u(){t=t.replace(/^\s+/,"")}if(u(),e.startTime=l(),u(),"--\x3e"!==t.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);t=t.substr(3),u(),e.endTime=l(),u(),function(t,e){var n=new a;s(t,function(t,e){switch(t){case"region":for(var r=i.length-1;r&gt;=0;r--)if(i[r].id===e){n.set(t,i[r].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),s=a[0];n.integer(t,s),n.percent(t,s)&amp;&amp;n.set("snapToLines",!1),n.alt(t,s,["auto"]),2===a.length&amp;&amp;n.alt("lineAlign",a[1],["start","middle","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&amp;&amp;n.alt("positionAlign",a[1],["start","middle","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical",""),e.line=n.get("line","auto"),e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align","middle"),e.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}n.prototype=i(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var n=0;n&lt;i.length;++n)if(e===i[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&amp;&amp;this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&amp;&amp;(e=parseFloat(e))&gt;=0&amp;&amp;e&lt;=100)&amp;&amp;(this.set(t,e),!0)}};var l={"&amp;amp;":"&amp;","&amp;lt;":"&lt;","&amp;gt;":"&gt;","&amp;lrm;":"â€Ž","&amp;rlm;":"â€","&amp;nbsp;":"Â&nbsp;"},u={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={v:"title",lang:"lang"},h={rt:"ruby"};function d(t,e){function i(){if(!e)return null;var t,i=e.match(/^([^&lt;]*)(&lt;[^&gt;]*&gt;?)?/);return t=i[1]?i[1]:i[2],e=e.substr(t.length),t}function n(t){return l[t]}function a(t){for(;v=t.match(/&amp;(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(v[0],n);return t}function s(t,e){return!h[e.localName]||h[e.localName]===t.localName}function o(e,i){var n=u[e];if(!n)return null;var r=t.document.createElement(n);r.localName=n;var a=c[e];return a&amp;&amp;i&amp;&amp;(r[a]=i.trim()),r}for(var d,p=t.document.createElement("div"),f=p,g=[];null!==(d=i());)if("&lt;"!==d[0])f.appendChild(t.document.createTextNode(a(d)));else{if("/"===d[1]){g.length&amp;&amp;g[g.length-1]===d.substr(2).replace("&gt;","")&amp;&amp;(g.pop(),f=f.parentNode);continue}var m,y=r(d.substr(1,d.length-2));if(y){m=t.document.createProcessingInstruction("timestamp",y),f.appendChild(m);continue}var v=d.match(/^&lt;([^.\s/0-9&gt;]+)(\.[^\s\\&gt;]+)?([^&gt;\\]+)?(\\?)&gt;?$/);if(!v)continue;if(!(m=o(v[1],v[3])))continue;if(!s(f,m))continue;v[2]&amp;&amp;(m.className=v[2].substr(1).replace("."," ")),g.push(v[1]),f.appendChild(m),f=m}return p}var p=[[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 f(t){for(var e=0;e&lt;p.length;e++){var i=p[e];if(t&gt;=i[0]&amp;&amp;t&lt;=i[1])return!0}return!1}function g(){}function m(t,e,i){var n=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";n&amp;&amp;(r="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),g.call(this),this.cue=e,this.cueDiv=d(t,e.text);var s={color:r,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=t.document.createElement("div"),s={textAlign:"middle"===e.align?"center":e.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},n||(s.direction=function(t){var e=[],i="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var i=e.childNodes.length-1;i&gt;=0;i--)t.push(e.childNodes[i])}function r(t){if(!t||!t.length)return null;var e=t.pop(),i=e.textContent||e.innerText;if(i){var a=i.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):i}return"ruby"===e.tagName?r(t):e.childNodes?(n(t,e),r(t)):void 0}for(n(e,t);i=r(e);)for(var a=0;a&lt;i.length;a++)if(f(i.charCodeAt(a)))return"rtl";return"ltr"}(this.cueDiv),s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var o=0;switch(e.positionAlign){case"start":o=e.position;break;case"middle":o=e.position-e.size/2;break;case"end":o=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(o,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(o,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function y(t){var e,i,n,r,a=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){i=t.div.offsetHeight,n=t.div.offsetWidth,r=t.div.offsetTop;var s=(s=t.div.childNodes)&amp;&amp;(s=s[0])&amp;&amp;s.getClientRects&amp;&amp;s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&amp;&amp;s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||i,this.bottom=t.bottom||r+(t.height||i),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight,a&amp;&amp;!this.lineHeight&amp;&amp;(this.lineHeight=13)}function v(t,e,i,n){var r=new y(e),a=e.cue,s=function(t){if("number"==typeof t.line&amp;&amp;(t.snapToLines||t.line&gt;=0&amp;&amp;t.line&lt;=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,n=0,r=0;r&lt;i.length&amp;&amp;i[r]!==e;r++)"showing"===i[r].mode&amp;&amp;n++;return-1*++n}(a),o=[];if(a.snapToLines){var l;switch(a.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var u=r.lineHeight,c=u*Math.round(s),h=i[l]+u,d=o[0];Math.abs(c)&gt;h&amp;&amp;(c=c&lt;0?-1:1,c*=Math.ceil(h/u)*u),s&lt;0&amp;&amp;(c+=""===a.vertical?i.height:i.width,o=o.reverse()),r.move(d,c)}else{var p=r.lineHeight/i.height*100;switch(a.lineAlign){case"middle":s-=p/2;break;case"end":s-=p}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(s,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(s,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],r=new y(e)}var f=function(t,e){for(var r,a=new y(t),s=1,o=0;o&lt;e.length;o++){for(;t.overlapsOppositeAxis(i,e[o])||t.within(i)&amp;&amp;t.overlapsAny(n);)t.move(e[o]);if(t.within(i))return t;var l=t.intersectPercentage(i);s&gt;l&amp;&amp;(r=new y(t),s=l),t=new y(a)}return r||a}(r,o);e.move(f.toCSSCompatValues(i))}function _(){}g.prototype.applyStyles=function(t,e){for(var i in e=e||this.div,t)t.hasOwnProperty(i)&amp;&amp;(e.style[i]=t[i])},g.prototype.formatStyle=function(t,e){return 0===t?0:t+e},m.prototype=i(g.prototype),m.prototype.constructor=m,y.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},y.prototype.overlaps=function(t){return this.left&lt;t.right&amp;&amp;this.right&gt;t.left&amp;&amp;this.top&lt;t.bottom&amp;&amp;this.bottom&gt;t.top},y.prototype.overlapsAny=function(t){for(var e=0;e&lt;t.length;e++)if(this.overlaps(t[e]))return!0;return!1},y.prototype.within=function(t){return this.top&gt;=t.top&amp;&amp;this.bottom&lt;=t.bottom&amp;&amp;this.left&gt;=t.left&amp;&amp;this.right&lt;=t.right},y.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left&lt;t.left;case"-x":return this.right&gt;t.right;case"+y":return this.top&lt;t.top;case"-y":return this.bottom&gt;t.bottom}},y.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)},y.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}},y.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=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||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||i}},_.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},_.convertCueToDOMTree=function(t,e){return t&amp;&amp;e?d(t,e):null};_.processCues=function(t,e,i){if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(t){for(var e=0;e&lt;t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],a=y.getSimpleBoxPosition(n),s={font:Math.round(.05*a.height*100)/100+"px sans-serif"};!function(){for(var i,o,l=0;l&lt;e.length;l++)o=e[l],i=new m(t,o,s),n.appendChild(i.div),v(0,i,a,r),o.displayState=i.div,r.push(y.getSimpleBoxPosition(i))}()}else for(var o=0;o&lt;e.length;o++)n.appendChild(e[o].displayState)},_.Parser=function(t,e,i){i||(i=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},_.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof n))throw t;this.onparsingerror&amp;&amp;this.onparsingerror(t)},parse:function(t){var e=this;function i(){for(var t=e.buffer,i=0;i&lt;t.length&amp;&amp;"\r"!==t[i]&amp;&amp;"\n"!==t[i];)++i;var n=t.substr(0,i);return"\r"===t[i]&amp;&amp;++i,"\n"===t[i]&amp;&amp;++i,e.buffer=t.substr(i),n}function l(t){t.match(/X-TIMESTAMP-MAP/)?s(t,function(t,i){switch(t){case"X-TIMESTAMP-MAP":n=i,o=new a,s(n,function(t,e){switch(t){case"MPEGT":o.integer(t+"S",e);break;case"LOCA":o.set(t+"L",r(e))}},/[^\d]:/,/,/),e.ontimestampmap&amp;&amp;e.ontimestampmap({MPEGTS:o.get("MPEGTS"),LOCAL:o.get("LOCAL")})}var n,o},/=/):s(t,function(t,i){switch(t){case"Region":!function(t){var i=new a;if(s(t,function(t,e){switch(t){case"id":i.set(t,e);break;case"width":i.percent(t,e);break;case"lines":i.integer(t,e);break;case"regionanchor":case"viewportanchor":var n=e.split(",");if(2!==n.length)break;var r=new a;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;i.set(t+"X",r.get("x")),i.set(t+"Y",r.get("y"));break;case"scroll":i.alt(t,e,["up"])}},/=/,/\s/),i.has("id")){var n=new(e.vttjs.VTTRegion||e.window.VTTRegion);n.width=i.get("width",100),n.lines=i.get("lines",3),n.regionAnchorX=i.get("regionanchorX",0),n.regionAnchorY=i.get("regionanchorY",100),n.viewportAnchorX=i.get("viewportanchorX",0),n.viewportAnchorY=i.get("viewportanchorY",100),n.scroll=i.get("scroll",""),e.onregion&amp;&amp;e.onregion(n),e.regionList.push({id:i.get("id"),region:n})}}(i)}},/:/)}t&amp;&amp;(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var u;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var c=(u=i()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new n(n.Errors.BadSignature);e.state="HEADER"}for(var h=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(h?h=!1:u=i(),e.state){case"HEADER":/:/.test(u)?l(u):u||(e.state="ID");continue;case"NOTE":u||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(u)){e.state="NOTE";break}if(!u)continue;if(e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,""),e.state="CUE",-1===u.indexOf("--\x3e")){e.cue.id=u;continue}case"CUE":try{o(u,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var d=-1!==u.indexOf("--\x3e");if(!u||d&amp;&amp;(h=!0)){e.oncue&amp;&amp;e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&amp;&amp;(e.cue.text+="\n"),e.cue.text+=u;continue;case"BADCUE":u||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&amp;&amp;e.cue&amp;&amp;e.oncue&amp;&amp;e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&amp;&amp;(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new n(n.Errors.BadSignature)}catch(t){this.reportOrThrowError(t)}return this.onflush&amp;&amp;this.onflush(),this}},t.exports=_},BZki:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i("01cO"),a=(n=r)&amp;&amp;n.__esModule?n:{default:n},s={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_)}};e.default=function(t){!function t(e,i){var n=0,r=0,o=a.default.mergeOptions(s,i);e.ready(function(){e.trigger({type:"usage",name:"hls-error-reload-initialized"})});var l=function(){r&amp;&amp;e.currentTime(r)},u=function(t){null!==t&amp;&amp;void 0!==t&amp;&amp;(r=e.duration()!==1/0&amp;&amp;e.currentTime()||0,e.one("loadedmetadata",l),e.src(t),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},c=function(){if(Date.now()-n&lt;1e3*o.errorInterval)e.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(o.getSource&amp;&amp;"function"==typeof o.getSource)return n=Date.now(),o.getSource.call(e,u);a.default.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},h=function t(){e.off("loadedmetadata",l),e.off("error",c),e.off("dispose",t)};e.on("error",c),e.on("dispose",h),e.reloadSourceOnError=function(i){h(),t(e,i)}}(this,t)},t.exports=e.default},BiwK:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i("01cO"),a=(n=r)&amp;&amp;n.__esModule?n:{default:n};e.default=function(){return function t(e,i){e=(0,r.mergeOptions)({timeout:45e3},e);var n=t.beforeRequest||a.default.Hls.xhr.beforeRequest;if(n&amp;&amp;"function"==typeof n){var s=n(e);s&amp;&amp;(e=s)}var o=(0,r.xhr)(e,function(t,e){var n=o.response;!t&amp;&amp;n&amp;&amp;(o.responseTime=Date.now(),o.roundTripTime=o.responseTime-o.requestTime,o.bytesReceived=n.byteLength||n.length,o.bandwidth||(o.bandwidth=Math.floor(o.bytesReceived/o.roundTripTime*8*1e3))),t&amp;&amp;"ETIMEDOUT"===t.code&amp;&amp;(o.timedout=!0),t||o.aborted||200===e.statusCode||206===e.statusCode||0===e.statusCode||(t=new Error("XHR Failed with a response of: "+(o&amp;&amp;(n||o.responseText)))),i(t,o)}),l=o.abort;return o.abort=function(){return o.aborted=!0,l.apply(o,arguments)},o.uri=e.uri,o.requestTime=Date.now(),o}},t.exports=e.default},"C/6V":function(t,e){var i,n=[33,16,5,32,164,27],r=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],a=function(t){for(var e=[];t--;)e.push(0);return e},s={96000:[n,[227,64],a(154),[56]],88200:[n,[231],a(170),[56]],64000:[n,[248,192],a(240),[56]],48000:[n,[255,192],a(268),[55,148,128],a(54),[112]],44100:[n,[255,192],a(268),[55,163,128],a(84),[112]],32000:[n,[255,192],a(268),[55,234],a(226),[112]],24000:[n,[255,192],a(268),[55,255,128],a(268),[111,112],a(126),[224]],16000:[n,[255,192],a(268),[55,255,128],a(268),[111,255],a(269),[223,108],a(195),[1,192]],12000:[r,a(268),[3,127,248],a(268),[6,255,240],a(268),[13,255,224],a(268),[27,253,128],a(259),[56]],11025:[r,a(268),[3,127,248],a(268),[6,255,240],a(268),[13,255,224],a(268),[27,255,192],a(268),[55,175,128],a(108),[112]],8000:[r,a(268),[3,121,16],a(47),[7]]};t.exports=(i=s,Object.keys(i).reduce(function(t,e){return t[e]=new Uint8Array(i[e].reduce(function(t,e){return t.concat(e)},[])),t},{}))},CD7c:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("UrON")),o=a(i("01cO")),l=a(i("awF4")),u=a(i("idpB")),c=i("iMiW"),h=new Uint8Array("\n\n".split("").map(function(t){return t.charCodeAt(0)})),d=function(t){return String.fromCharCode.apply(null,t)},p=function(t){function e(t){var i=arguments.length&lt;=1||void 0===arguments[1]?{}:arguments[1];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,i),this.mediaSource_=null,this.subtitlesTrack_=null}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s["default"]),n(e,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return o.default.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,i=t[t.length-1].startTime;return o.default.createTimeRanges([[e,i]])}},{key:"initSegment",value:function(t){var e=!(arguments.length&lt;=1||void 0===arguments[1])&amp;&amp;arguments[1];if(!t)return null;var i=(0,c.initSegmentId)(t),n=this.initSegments_[i];if(e&amp;&amp;!n&amp;&amp;t.bytes){var r=h.byteLength+t.bytes.byteLength,a=new Uint8Array(r);a.set(t.bytes),a.set(h,t.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:a}}return n||t}},{key:"couldBeginLoading_",value:function(){return this.playlist_&amp;&amp;this.subtitlesTrack_&amp;&amp;!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(t){return void 0===t?this.subtitlesTrack_:(this.subtitlesTrack_=t,"INIT"===this.state&amp;&amp;this.couldBeginLoading_()&amp;&amp;this.init_(),this.subtitlesTrack_)}},{key:"remove",value:function(t,e){(0,u.default)(t,e,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var t=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(e=this.skipEmptySegments_(e)){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){return this.syncController_.one("timestampoffset",function(){t.state="READY",t.paused()||t.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}},{key:"skipEmptySegments_",value:function(t){for(;t&amp;&amp;t.segment.empty;)t=this.generateSegmentInfo_(t.playlist,t.mediaIndex+1,t.startOfSegment+t.duration,t.isSyncRequest);return t}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_&amp;&amp;this.subtitlesTrack_){this.state="APPENDING";var e,i=this.pendingSegment_,n=i.segment;if("function"!=typeof l.default.WebVTT&amp;&amp;this.subtitlesTrack_&amp;&amp;this.subtitlesTrack_.tech_){var r=(e=function(){t.handleSegment_()},t.state="WAITING_ON_VTTJS",t.subtitlesTrack_.tech_.one("vttjsloaded",e),t.subtitlesTrack_.tech_.one("vttjserror",function(){t.subtitlesTrack_.tech_.off("vttjsloaded",e),t.error({message:"Error loading vtt.js"}),t.state="READY",t.pause(),t.trigger("error")}),{v:void 0});if("object"==typeof r)return r.v}n.requested=!0;try{this.parseVTTCues_(i)}catch(t){return this.error({message:t.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(i,this.syncController_.timelines[i.timeline],this.playlist_),i.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");i.byteLength=i.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,i.cues.length&amp;&amp;this.remove(i.cues[0].endTime,i.cues[i.cues.length-1].endTime),i.cues.forEach(function(e){t.subtitlesTrack_.addCue(e)}),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(t){var e=void 0,i=!1;"function"==typeof l.default.TextDecoder?e=new l.default.TextDecoder("utf8"):(e=l.default.WebVTT.StringDecoder(),i=!0);var n=new l.default.WebVTT.Parser(l.default,l.default.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=t.cues.push.bind(t.cues),n.ontimestampmap=function(e){return t.timestampmap=e},n.onparsingerror=function(t){o.default.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var r=t.segment.map.bytes;i&amp;&amp;(r=d(r)),n.parse(r)}var a=t.bytes;i&amp;&amp;(a=d(a)),n.parse(a),n.flush()}},{key:"updateTimeMapping_",value:function(t,e,i){var n=t.segment;if(e)if(t.cues.length){var r=t.timestampmap,a=r.MPEGTS/9e4-r.LOCAL+e.mapping;if(t.cues.forEach(function(t){t.startTime+=a,t.endTime+=a}),!i.syncInfo){var s=t.cues[0].startTime,o=t.cues[t.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+t.mediaIndex,time:Math.min(s,o-n.duration)}}}else n.empty=!0}}]),e}();e.default=p,t.exports=e.default},CJnt:function(t,e){var i="auto",n={"":!0,lr:!0,rl:!0},r={start:!0,middle:!0,end:!0,left:!0,right:!0};function a(t){return"string"==typeof t&amp;&amp;(!!r[t.toLowerCase()]&amp;&amp;t.toLowerCase())}function s(t){for(var e=1;e&lt;arguments.length;e++){var i=arguments[e];for(var n in i)t[n]=i[n]}return t}function o(t,e,r){var o=this,l=/MSIE\s8\.0/.test(navigator.userAgent),u={};l?o=document.createElement("custom"):u.enumerable=!0,o.hasBeenReset=!1;var c="",h=!1,d=t,p=e,f=r,g=null,m="",y=!0,v="auto",_="start",b=50,T="middle",S=50,k="middle";if(Object.defineProperty(o,"id",s({},u,{get:function(){return c},set:function(t){c=""+t}})),Object.defineProperty(o,"pauseOnExit",s({},u,{get:function(){return h},set:function(t){h=!!t}})),Object.defineProperty(o,"startTime",s({},u,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",s({},u,{get:function(){return p},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");p=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",s({},u,{get:function(){return f},set:function(t){f=""+t,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",s({},u,{get:function(){return g},set:function(t){g=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",s({},u,{get:function(){return m},set:function(t){var e=function(t){return"string"==typeof t&amp;&amp;!!n[t.toLowerCase()]&amp;&amp;t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",s({},u,{get:function(){return y},set:function(t){y=!!t,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",s({},u,{get:function(){return v},set:function(t){if("number"!=typeof t&amp;&amp;t!==i)throw new SyntaxError("An invalid number or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",s({},u,{get:function(){return _},set:function(t){var e=a(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",s({},u,{get:function(){return b},set:function(t){if(t&lt;0||t&gt;100)throw new Error("Position must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",s({},u,{get:function(){return T},set:function(t){var e=a(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");T=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",s({},u,{get:function(){return S},set:function(t){if(t&lt;0||t&gt;100)throw new Error("Size must be between 0 and 100.");S=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",s({},u,{get:function(){return k},set:function(t){var e=a(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),o.displayState=void 0,l)return o}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=o},CPRU:function(t,e,i){"use strict";var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=function(t){return t[0]&lt;&lt;21|t[1]&lt;&lt;14|t[2]&lt;&lt;7|t[3]};t.exports={parseId3TagSize:function(t,e){var i=t[e+6]&lt;&lt;21|t[e+7]&lt;&lt;14|t[e+8]&lt;&lt;7|t[e+9];return(16&amp;t[e+5])&gt;&gt;4?i+20:i+10},parseAdtsSize:function(t,e){var i=(224&amp;t[e+5])&gt;&gt;5,n=t[e+4]&lt;&lt;3;return 6144&amp;t[e+3]|n|i},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&amp;&amp;t[e+1]==="D".charCodeAt(0)&amp;&amp;t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&amp;t[e]&amp;&amp;240==(240&amp;t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5&lt;t.length;){if(255===t[e]&amp;&amp;240==(246&amp;t[e+1]))return n[(60&amp;t[e+2])&gt;&gt;&gt;2];e++}return null},parseAacTimestamp:function(t){var e,i,n;e=10,64&amp;t[5]&amp;&amp;(e+=4,e+=r(t.subarray(10,14)));do{if((i=r(t.subarray(e+4,e+8)))&lt;1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){n=t.subarray(e+10,e+i+10);for(var a=0;a&lt;n.byteLength;a++)if(0===n[a]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(t,e,i){var n,r="";for(n=e;n&lt;i;n++)r+="%"+("00"+t[n].toString(16)).slice(-2);return r}(n,0,a))){var s=n.subarray(a+1),o=(1&amp;s[3])&lt;&lt;30|s[4]&lt;&lt;22|s[5]&lt;&lt;14|s[6]&lt;&lt;6|s[7]&gt;&gt;&gt;2;return o*=4,o+=3&amp;s[7]}break}}e+=10,e+=i}while(e&lt;t.byteLength);return null}}},CvjL:function(t,e,i){"use strict";var n;t.exports=function(t){var e=n[t.byteLength%16||0],i=new Uint8Array(t.byteLength+e.length);return i.set(t),i.set(e,t.byteLength),i},n=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]]},DuR2:function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&amp;&amp;(i=window)}t.exports=i},DvOw:function(t,e){var i={"":!0,up:!0};function n(t){return"number"==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=100}t.exports=function(){var t=100,e=3,r=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=function(t){return"string"==typeof t&amp;&amp;!!i[t.toLowerCase()]&amp;&amp;t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}},GD2l:function(t,e){var i,n,r,a,s,o;i=function(t){return 9e4*t},n=function(t,e){return t*e},r=function(t){return t/9e4},a=function(t,e){return t/e},s=function(t,e){return i(a(t,e))},o=function(t,e){return n(r(t),e)},t.exports={secondsToVideoTs:i,secondsToAudioTs:n,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:s,videoTsToAudioTs:o}},GJFR:function(t,e,i){"use strict";var n,r=i("nIbA"),a=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(n=function(){var t;n.prototype.init.call(this),this.push=function(e){var i,n,r,s,o,l,u=0,c=0;if("audio"===e.type)for(t?(s=t,(t=new Uint8Array(s.byteLength+e.data.byteLength)).set(s),t.set(e.data,s.byteLength)):t=e.data;u+5&lt;t.length;)if(255===t[u]&amp;&amp;240==(246&amp;t[u+1])){if(n=2*(1&amp;~t[u+1]),i=(3&amp;t[u+3])&lt;&lt;11|t[u+4]&lt;&lt;3|(224&amp;t[u+5])&gt;&gt;5,l=9e4*(o=1024*(1+(3&amp;t[u+6])))/a[(60&amp;t[u+2])&gt;&gt;&gt;2],r=u+i,t.byteLength&lt;r)return;if(this.trigger("data",{pts:e.pts+c*l,dts:e.dts+c*l,sampleCount:o,audioobjecttype:1+(t[u+2]&gt;&gt;&gt;6&amp;3),channelcount:(1&amp;t[u+2])&lt;&lt;2|(192&amp;t[u+3])&gt;&gt;&gt;6,samplerate:a[(60&amp;t[u+2])&gt;&gt;&gt;2],samplingfrequencyindex:(60&amp;t[u+2])&gt;&gt;&gt;2,samplesize:16,data:t.subarray(u+7+n,r)}),t.byteLength===r)return void(t=void 0);c++,t=t.subarray(r)}else u++},this.flush=function(){this.trigger("done")}}).prototype=new r,t.exports=n},GfXe:function(t,e,i){"use strict";var n,r=i("nIbA");(n=function(){var t=new Uint8Array,e=0;n.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.parseId3TagSize=function(t,e){var i=t[e+6]&lt;&lt;21|t[e+7]&lt;&lt;14|t[e+8]&lt;&lt;7|t[e+9];return(16&amp;t[e+5])&gt;&gt;4?i+20:i+10},this.parseAdtsSize=function(t,e){var i=(224&amp;t[e+5])&gt;&gt;5,n=t[e+4]&lt;&lt;3;return 6144&amp;t[e+3]|n|i},this.push=function(i){var n,r,a,s,o=0,l=0;for(t.length?(s=t.length,(t=new Uint8Array(i.byteLength+s)).set(t.subarray(0,s)),t.set(i,s)):t=i;t.length-l&gt;=3;)if(t[l]!=="I".charCodeAt(0)||t[l+1]!=="D".charCodeAt(0)||t[l+2]!=="3".charCodeAt(0))if(!0&amp;t[l]&amp;&amp;240==(240&amp;t[l+1])){if(t.length-l&lt;7)break;if((o=this.parseAdtsSize(t,l))&gt;t.length)break;a={type:"audio",data:t.subarray(l,l+o),pts:e,dts:e},this.trigger("data",a),l+=o}else l++;else{if(t.length-l&lt;10)break;if((o=this.parseId3TagSize(t,l))&gt;t.length)break;r={type:"timed-metadata",data:t.subarray(l,l+o)},this.trigger("data",r),l+=o}n=t.length-l,t=n&gt;0?t.subarray(l):new Uint8Array}}).prototype=new r,t.exports=n},"I/+Z":function(t,e){t.exports=function(t,e){var i,n=null;try{i=JSON.parse(t,e)}catch(t){n=t}return[n,i]}},J6vC:function(t,e,i){"use strict";function n(t){return t&amp;&amp;t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i("fx5k")),a=n(i("awF4"));e.default=function(t,e){return/^[a-z]+:/i.test(e)?e:(/\/\//i.test(t)||(t=r.default.buildAbsoluteURL(a.default.location.href,t)),r.default.buildAbsoluteURL(t,e))},t.exports=e.default},JA04:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("dwO+")),o=a(i("f8ML")),l=a(i("Ucbi")),u=a(i("KBX6")),c=i("XeuD"),h=function(t){function e(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.sourceBuffers=[],this.readyState="closed",this.on(["sourceopen","webkitsourceopen"],function(e){t.swfObj=s.default.getElementById(e.swfId),t.player_=(0,o.default)(t.swfObj.parentNode),t.tech_=t.swfObj.tech,t.readyState="open",t.tech_.on("seeking",function(){for(var e=t.sourceBuffers.length;e--;)t.sourceBuffers[e].abort()}),t.swfObj&amp;&amp;t.swfObj.vjs_load()})}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o["default"].EventTarget),n(e,[{key:"addSeekableRange_",value:function(){}},{key:"addSourceBuffer",value:function(t){var e=(0,c.parseContentType)(t),i=void 0;if("video/mp2t"!==e.type&amp;&amp;"audio/mp2t"!==e.type)throw new Error("NotSupportedError (Video.js)");return i=new l.default(this),this.sourceBuffers.push(i),i}},{key:"endOfStream",value:function(t){"network"===t?this.tech_.error(2):"decode"===t&amp;&amp;this.tech_.error(3),"ended"!==this.readyState&amp;&amp;(this.readyState="ended",this.swfObj.vjs_endOfStream())}}]),e}();e.default=h;try{Object.defineProperty(h.prototype,"duration",{get:function(){return this.swfObj?this.swfObj.vjs_getProperty("duration"):NaN},set:function(t){var e=void 0,i=this.swfObj.vjs_getProperty("duration");if(this.swfObj.vjs_setProperty("duration",t),t&lt;i)for(e=0;e&lt;this.sourceBuffers.length;e++)this.sourceBuffers[e].remove(t,i);return t}})}catch(t){h.prototype.duration=NaN}for(var d in u.default)h[d]=u.default[d];t.exports=e.default},Jg0P:function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("dwO+")),o=a(i("tsTD")),l=a(i("/N3L")),u=a(i("BiwK")),c=i("Wbje"),h=a(i("iMiW")),d=i("k+z6"),p=a(i("Ro/b")),f=a(i("01cO")),g=i("tBof"),m=a(i("NBAn")),y=a(i("r1zx")),v=a(i("awF4")),_=a(i("7+iA")),b=a(i("BZki")),T=i("rlYp"),S={PlaylistLoader:o.default,Playlist:l.default,Decrypter:c.Decrypter,AsyncStream:c.AsyncStream,decrypt:c.decrypt,utils:h.default,STANDARD_PLAYLIST_SELECTOR:T.lastBandwidthSelector,INITIAL_PLAYLIST_SELECTOR:T.lowestBitrateCompatibleVariantSelector,comparePlaylistBandwidth:T.comparePlaylistBandwidth,comparePlaylistResolution:T.comparePlaylistResolution,xhr:(0,u.default)()};["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach(function(t){Object.defineProperty(S,t,{get:function(){return f.default.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),m.default[t]},set:function(e){f.default.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e&lt;0?f.default.log.warn("value of Hls."+t+" must be greater than or equal to 0"):m.default[t]=e}})});var k=function(t,e){for(var i=e.media(),n=-1,r=0;r&lt;t.length;r++)if(t[r].id===i.uri){n=r;break}t.selectedIndex_=n,t.trigger({selectedIndex:n,type:"change"})};S.canPlaySource=function(){return f.default.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")},S.supportsNativeHls=function(){var t=s.default.createElement("video");if(!f.default.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(t.canPlayType(e))})}(),S.isSupported=function(){return f.default.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var C=f.default.getComponent("Component"),w=function(t){function e(t,i,n){var a=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,i,n.hls),i.options_&amp;&amp;i.options_.playerId){var o=(0,f.default)(i.options_.playerId);o.hasOwnProperty("hls")||Object.defineProperty(o,"hls",{get:function(){return f.default.log.warn("player.hls is deprecated. Use player.tech_.hls instead."),i.trigger({type:"usage",name:"hls-player-access"}),a}})}if(this.tech_=i,this.source_=t,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&amp;&amp;(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");this.on(s.default,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){var e=s.default.fullscreenElement||s.default.webkitFullscreenElement||s.default.mozFullScreenElement||s.default.msFullscreenElement;e&amp;&amp;e.contains(a.tech_.el())&amp;&amp;a.masterPlaylistController_.fastQualityChange_()}),this.on(this.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.masterPlaylistController_&amp;&amp;this.masterPlaylistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,C),n(e,[{key:"setOptions_",value:function(){var t=this;this.options_.withCredentials=this.options_.withCredentials||!1,"number"!=typeof this.options_.blacklistDuration&amp;&amp;(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&amp;&amp;(this.options_.bandwidth=4194304),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&amp;&amp;4194304===this.options_.bandwidth,["withCredentials","bandwidth"].forEach(function(e){void 0!==t.source_[e]&amp;&amp;(t.options_[e]=t.source_[e])}),this.bandwidth=this.options_.bandwidth}},{key:"src",value:function(t){var e=this;t&amp;&amp;(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=S,this.masterPlaylistController_=new g.MasterPlaylistController(this.options_),this.playbackWatcher_=new _.default(f.default.mergeOptions(this.options_,{seekable:function(){return e.seekable()}})),this.masterPlaylistController_.on("error",function(){f.default.players[e.tech_.options_.playerId].error(e.masterPlaylistController_.error)}),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):S.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=S.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t=1/(this.bandwidth||1),e=void 0;return e=this.throughput&gt;0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){f.default.log.error('The "systemBandwidth" property is read-only')}}}),Object.defineProperties(this.stats,{bandwidth:{get:function(){return e.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return e.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return e.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return e.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return e.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return e.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return e.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return e.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.masterPlaylistController_.on("selectedinitialmedia",function(){(0,y.default)(e)}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.tech_.ready(function(){return e.setupQualityLevels_()}),this.tech_.el()&amp;&amp;this.tech_.src(f.default.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var t=this,e=f.default.players[this.tech_.options_.playerId];e&amp;&amp;e.qualityLevels&amp;&amp;(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e,i;e=t.qualityLevels_,(i=t).representations().forEach(function(t){e.addQualityLevel(t)}),k(e,i.playlists)}),this.playlists.on("mediachange",function(){k(t.qualityLevels_,t.playlists)}))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(t){this.masterPlaylistController_.setCurrentTime(t)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&amp;&amp;this.playbackWatcher_.dispose(),this.masterPlaylistController_&amp;&amp;this.masterPlaylistController_.dispose(),this.qualityLevels_&amp;&amp;this.qualityLevels_.dispose(),r(Object.getPrototypeOf(e.prototype),"dispose",this).call(this)}}]),e}(),E=function t(e){return{canHandleSource:function(i){var n=arguments.length&lt;=1||void 0===arguments[1]?{}:arguments[1],r=f.default.mergeOptions(f.default.options,n);return(!r.hls||!r.hls.mode||r.hls.mode===e)&amp;&amp;t.canPlayType(i.type,r)},handleSource:function(t,i){var n=arguments.length&lt;=2||void 0===arguments[2]?{}:arguments[2],r=f.default.mergeOptions(f.default.options,n,{hls:{mode:e}});return"flash"===e&amp;&amp;i.setTimeout(function(){i.trigger("loadstart")},1),i.hls=new w(t,i,r),i.hls.xhr=(0,u.default)(),i.hls.src(t.src),i.hls},canPlayType:function(e){var i=arguments.length&lt;=1||void 0===arguments[1]?{}:arguments[1],n=f.default.mergeOptions(f.default.options,i);return t.canPlayType(e,n)?"maybe":""}}};E.canPlayType=function(t,e){if(f.default.browser.IE_VERSION&amp;&amp;f.default.browser.IE_VERSION&lt;=10)return!1;return!(!e.hls.overrideNative&amp;&amp;S.supportsNativeHls)&amp;&amp;/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i.test(t)},void 0!==f.default.MediaSource&amp;&amp;void 0!==f.default.URL||(f.default.MediaSource=d.MediaSource,f.default.URL=d.URL);var A=f.default.getTech("Flash");d.MediaSource.supportsNativeMediaSources()&amp;&amp;f.default.getTech("Html5").registerSourceHandler(E("html5"),0),v.default.Uint8Array&amp;&amp;A&amp;&amp;A.registerSourceHandler(E("flash")),f.default.HlsHandler=w,f.default.HlsSourceHandler=E,f.default.Hls=S,f.default.use||f.default.registerComponent("Hls",S),f.default.m3u8=p.default,f.default.options.hls=f.default.options.hls||{},f.default.registerPlugin?f.default.registerPlugin("reloadSourceOnError",b.default):f.default.plugin("reloadSourceOnError",b.default),t.exports={Hls:S,HlsHandler:w,HlsSourceHandler:E}},JjQ4:function(t,e,i){"use strict";function n(t){return t&amp;&amp;t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i("01cO")),a=n(i("tsTD")),s=function(){},o=function(t){var e=t.default?"main":"alternative";return t.characteristics&amp;&amp;t.characteristics.indexOf("public.accessibility.describes-video")&gt;=0&amp;&amp;(e="main-desc"),e},l=function(t,e){t.abort(),t.pause(),e&amp;&amp;e.activePlaylistLoader&amp;&amp;(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)};e.stopLoaders=l;var u=function(t,e){e.activePlaylistLoader=t,t.load()};e.startLoaders=u;var c=function(t,e){return function(){var i=e.segmentLoaders,n=i[t],r=i.main,a=e.mediaTypes[t],s=a.activeTrack(),o=a.activeGroup(s),c=a.activePlaylistLoader;l(n,a),o&amp;&amp;(o.playlistLoader?(n.resyncLoader(),u(o.playlistLoader,a)):c&amp;&amp;r.resetEverything())}};e.onGroupChanged=c;var h=function(t,e){return function(){var i=e.segmentLoaders,n=i[t],r=i.main,a=e.mediaTypes[t],s=a.activeTrack(),o=a.activeGroup(s),c=a.activePlaylistLoader;l(n,a),o&amp;&amp;(o.playlistLoader?c!==o.playlistLoader?(n.track&amp;&amp;n.track(s),n.resetEverything(),u(o.playlistLoader,a)):u(o.playlistLoader,a):r.resetEverything())}};e.onTrackChanged=h;var d={AUDIO:function(t,e){return function(){var i=e.segmentLoaders[t],n=e.mediaTypes[t],a=e.blacklistCurrentPlaylist;l(i,n);var s=n.activeTrack(),o=n.activeGroup(),u=(o.filter(function(t){return t.default})[0]||o[0]).id,c=n.tracks[u];if(s!==c){for(var h in r.default.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[h].enabled=n.tracks[h]===c;n.onTrackChanged()}else a({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var i=e.segmentLoaders[t],n=e.mediaTypes[t];r.default.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),l(i,n);var a=n.activeTrack();a&amp;&amp;(a.mode="disabled"),n.onTrackChanged()}}};e.onError=d;var p={AUDIO:function(t,e,i){if(e){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[t];e.on("loadedmetadata",function(){var t=e.media();a.playlist(t,r),(!n.paused()||t.endList&amp;&amp;"none"!==n.preload())&amp;&amp;a.load()}),e.on("loadedplaylist",function(){a.playlist(e.media(),r),n.paused()||a.load()}),e.on("error",d[t](t,i))}},SUBTITLES:function(t,e,i){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[t],s=i.mediaTypes[t];e.on("loadedmetadata",function(){var t=e.media();a.playlist(t,r),a.track(s.activeTrack()),(!n.paused()||t.endList&amp;&amp;"none"!==n.preload())&amp;&amp;a.load()}),e.on("loadedplaylist",function(){a.playlist(e.media(),r),n.paused()||a.load()}),e.on("error",d[t](t,i))}};e.setupListeners=p;var f={AUDIO:function(t,e){var i=e.mode,n=e.hls,s=e.segmentLoaders[t],l=e.requestOptions.withCredentials,u=e.master.mediaGroups,c=e.mediaTypes[t],h=c.groups,f=c.tracks;for(var g in u[t]&amp;&amp;0!==Object.keys(u[t]).length&amp;&amp;"html5"===i||(u[t]={main:{default:{default:!0}}}),u[t])for(var m in h[g]||(h[g]=[]),u[t][g]){var y=u[t][g][m],v=void 0;if(v=y.resolvedUri?new a.default(y.resolvedUri,n,l):null,y=r.default.mergeOptions({id:m,playlistLoader:v},y),p[t](t,y.playlistLoader,e),h[g].push(y),void 0===f[m]){var _=new r.default.AudioTrack({id:m,kind:o(y),enabled:!1,language:y.language,default:y.default,label:m});f[m]=_}}s.on("error",d[t](t,e))},SUBTITLES:function(t,e){var i=e.tech,n=e.hls,s=e.segmentLoaders[t],o=e.requestOptions.withCredentials,l=e.master.mediaGroups,u=e.mediaTypes[t],c=u.groups,h=u.tracks;for(var f in l[t])for(var g in c[f]||(c[f]=[]),l[t][f])if(!l[t][f][g].forced){var m=l[t][f][g];if(m=r.default.mergeOptions({id:g,playlistLoader:new a.default(m.resolvedUri,n,o)},m),p[t](t,m.playlistLoader,e),c[f].push(m),void 0===h[g]){var y=i.addRemoteTextTrack({id:g,kind:"subtitles",enabled:!1,language:m.language,label:g},!1).track;h[g]=y}}s.on("error",d[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var i=e.tech,n=e.master.mediaGroups,a=e.mediaTypes[t],s=a.groups,o=a.tracks;for(var l in n[t])for(var u in s[l]||(s[l]=[]),n[t][l]){var c=n[t][l][u];if(c.instreamId.match(/CC\d/)&amp;&amp;(s[l].push(r.default.mergeOptions({id:u},c)),void 0===o[u])){var h=i.addRemoteTextTrack({id:c.instreamId,kind:"captions",enabled:!1,language:c.language,label:u},!1).track;o[u]=h}}}};e.initialize=f;var g=function(t,e){return function(i){var n=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,a=n.media();if(!a)return null;var s=null;return a.attributes[t]&amp;&amp;(s=r[a.attributes[t]]),s=s||r.main,void 0===i?s:null===i?null:s.filter(function(t){return t.id===i.id})[0]||null}};e.activeGroup=g;var m={AUDIO:function(t,e){return function(){var i=e.mediaTypes[t].tracks;for(var n in i)if(i[n].enabled)return i[n];return null}},SUBTITLES:function(t,e){return function(){var i=e.mediaTypes[t].tracks;for(var n in i)if("showing"===i[n].mode)return i[n];return null}}};e.activeTrack=m;e.setupMediaGroups=function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){f[e](e,t)});var e=t.mediaTypes,i=t.masterPlaylistLoader,n=t.tech,r=t.hls;["AUDIO","SUBTITLES"].forEach(function(i){e[i].activeGroup=g(i,t),e[i].activeTrack=m[i](i,t),e[i].onGroupChanged=c(i,t),e[i].onTrackChanged=h(i,t)});var a=e.AUDIO.activeGroup(),s=(a.filter(function(t){return t.default})[0]||a[0]).id;e.AUDIO.tracks[s].enabled=!0,e.AUDIO.onTrackChanged(),i.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(t){return e[t].onGroupChanged()})});var o=function(){e.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"hls-audio-change"})};for(var l in n.audioTracks().addEventListener("change",o),n.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",function(){n.audioTracks().removeEventListener("change",o),n.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),n.clearTracks("audio"),e.AUDIO.tracks)n.audioTracks().addTrack(e.AUDIO.tracks[l])};e.createMediaTypes=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:s,activeTrack:s,onGroupChanged:s,onTrackChanged:s}}),t}},Jyyp:function(t,e,i){"use strict";var n=i("8KjM").discardEmulationPreventionBytes,r=i("8Ig8").CaptionStream,a=i("/cRm"),s=i("+5d+"),o=function(t,e){for(var i=t,n=0;n&lt;e.length;n++){var r=e[n];if(i&lt;r.size)return r;i-=r.size}return null},l=function(t,e){var i=a.findBox(t,["moof","traf"]),r={},l=[];return a.findBox(t,["mdat"]).forEach(function(t,e){var n=i[e];l.push({mdat:t,traf:n})}),l.forEach(function(t){var i,l=t.mdat,u=t.traf,c=a.findBox(u,["tfhd"]),h=s.parseTfhd(c[0]),d=h.trackId,p=a.findBox(u,["tfdt"]),f=p.length&gt;0?s.parseTfdt(p[0]).baseMediaDecodeTime:0,g=a.findBox(u,["trun"]);e===d&amp;&amp;g.length&gt;0&amp;&amp;(i=function(t,e,i){var r,a,s,l,u=new DataView(t.buffer,t.byteOffset,t.byteLength),c=[];for(a=0;a+4&lt;t.length;a+=s)if(s=u.getUint32(a),a+=4,!(s&lt;=0))switch(31&amp;t[a]){case 6:var h=t.subarray(a+1,a+1+s),d=o(a,e);r={nalUnitType:"sei_rbsp",size:s,data:h,escapedRBSP:n(h),trackId:i},d?(r.pts=d.pts,r.dts=d.dts,l=d):(r.pts=l.pts,r.dts=l.dts),c.push(r)}return c}(l,function(t,e,i){var n=e,r=i.defaultSampleDuration||0,a=i.defaultSampleSize||0,o=i.trackId,l=[];return t.forEach(function(t){var e=s.parseTrun(t).samples;e.forEach(function(t){void 0===t.duration&amp;&amp;(t.duration=r),void 0===t.size&amp;&amp;(t.size=a),t.trackId=o,t.dts=n,void 0===t.compositionTimeOffset&amp;&amp;(t.compositionTimeOffset=0),t.pts=n+t.compositionTimeOffset,n+=t.duration}),l=l.concat(e)}),l}(g,f,h),d),r[d]||(r[d]=[]),r[d]=r[d].concat(i))}),r};t.exports=function(){var t,e,i,n,a,s=!1;this.isInitialized=function(){return s},this.init=function(){t=new r,s=!0,t.on("data",function(t){t.startTime=t.startPts/n,t.endTime=t.endPts/n,a.captions.push(t),a.captionStreams[t.stream]=!0})},this.isNewInit=function(t,e){return!(t&amp;&amp;0===t.length||e&amp;&amp;"object"==typeof e&amp;&amp;0===Object.keys(e).length||i===t[0]&amp;&amp;n===e[i])},this.parse=function(t,r,s){var o;if(!this.isInitialized())return null;if(!r||!s)return null;if(this.isNewInit(r,s))i=r[0],n=s[i];else if(!i||!n)return e.push(t),null;for(;e.length&gt;0;){var u=e.shift();this.parse(u,r,s)}return null!==(o=function(t,e,i){return e?{seiNals:l(t,e)[e],timescale:i}:null}(t,i,n))&amp;&amp;o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),a):null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;t.flush()},this.clearParsedCaptions=function(){a.captions=[],a.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){e=[],i=null,n=null,a?this.clearParsedCaptions():a={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()}},K10q:function(t,e,i){"use strict";var n=i("SP9D"),r=i("4tgR").handleRollover,a={};a.ts=i("XRGv"),a.aac=i("CPRU");var s=function(t,e,i){for(var n,r,s,o,l=0,u=188,c=!1;u&lt;t.byteLength;)if(71!==t[l]||71!==t[u])l++,u++;else{switch(n=t.subarray(l,u),a.ts.parseType(n,e.pid)){case"pes":r=a.ts.parsePesType(n,e.table),s=a.ts.parsePayloadUnitStartIndicator(n),"audio"===r&amp;&amp;s&amp;&amp;(o=a.ts.parsePesTime(n))&amp;&amp;(o.type="audio",i.audio.push(o),c=!0)}if(c)break;l+=188,u+=188}for(l=(u=t.byteLength)-188,c=!1;l&gt;=0;)if(71!==t[l]||71!==t[u])l--,u--;else{switch(n=t.subarray(l,u),a.ts.parseType(n,e.pid)){case"pes":r=a.ts.parsePesType(n,e.table),s=a.ts.parsePayloadUnitStartIndicator(n),"audio"===r&amp;&amp;s&amp;&amp;(o=a.ts.parsePesTime(n))&amp;&amp;(o.type="audio",i.audio.push(o),c=!0)}if(c)break;l-=188,u-=188}},o=function(t,e,i){for(var n,r,s,o,l,u,c,h=0,d=188,p=!1,f={data:[],size:0};d&lt;t.byteLength;)if(71!==t[h]||71!==t[d])h++,d++;else{switch(n=t.subarray(h,d),a.ts.parseType(n,e.pid)){case"pes":if(r=a.ts.parsePesType(n,e.table),s=a.ts.parsePayloadUnitStartIndicator(n),"video"===r&amp;&amp;(s&amp;&amp;!p&amp;&amp;(o=a.ts.parsePesTime(n))&amp;&amp;(o.type="video",i.video.push(o),p=!0),!i.firstKeyFrame)){if(s&amp;&amp;0!==f.size){for(l=new Uint8Array(f.size),u=0;f.data.length;)c=f.data.shift(),l.set(c,u),u+=c.byteLength;a.ts.videoPacketContainsKeyFrame(l)&amp;&amp;(i.firstKeyFrame=a.ts.parsePesTime(l),i.firstKeyFrame.type="video"),f.size=0}f.data.push(n),f.size+=n.byteLength}}if(p&amp;&amp;i.firstKeyFrame)break;h+=188,d+=188}for(h=(d=t.byteLength)-188,p=!1;h&gt;=0;)if(71!==t[h]||71!==t[d])h--,d--;else{switch(n=t.subarray(h,d),a.ts.parseType(n,e.pid)){case"pes":r=a.ts.parsePesType(n,e.table),s=a.ts.parsePayloadUnitStartIndicator(n),"video"===r&amp;&amp;s&amp;&amp;(o=a.ts.parsePesTime(n))&amp;&amp;(o.type="video",i.video.push(o),p=!0)}if(p)break;h-=188,d-=188}},l=function(t){var e={pid:null,table:null},i={};for(var r in function(t,e){for(var i,n=0,r=188;r&lt;t.byteLength;)if(71!==t[n]||71!==t[r])n++,r++;else{switch(i=t.subarray(n,r),a.ts.parseType(i,e.pid)){case"pat":e.pid||(e.pid=a.ts.parsePat(i));break;case"pmt":e.table||(e.table=a.ts.parsePmt(i))}if(e.pid&amp;&amp;e.table)return;n+=188,r+=188}}(t,e),e.table){if(e.table.hasOwnProperty(r))switch(e.table[r]){case n.H264_STREAM_TYPE:i.video=[],o(t,e,i),0===i.video.length&amp;&amp;delete i.video;break;case n.ADTS_STREAM_TYPE:i.audio=[],s(t,e,i),0===i.audio.length&amp;&amp;delete i.audio}}return i};t.exports={inspect:function(t,e){var i,n;return(n=(i=t)[0]==="I".charCodeAt(0)&amp;&amp;i[1]==="D".charCodeAt(0)&amp;&amp;i[2]==="3".charCodeAt(0)?function(t){for(var e,i=!1,n=0,r=null,s=null,o=0,l=0;t.length-l&gt;=3;){switch(a.aac.parseType(t,l)){case"timed-metadata":if(t.length-l&lt;10){i=!0;break}if((o=a.aac.parseId3TagSize(t,l))&gt;t.length){i=!0;break}null===s&amp;&amp;(e=t.subarray(l,l+o),s=a.aac.parseAacTimestamp(e)),l+=o;break;case"audio":if(t.length-l&lt;7){i=!0;break}if((o=a.aac.parseAdtsSize(t,l))&gt;t.length){i=!0;break}null===r&amp;&amp;(e=t.subarray(l,l+o),r=a.aac.parseSampleRate(e)),n++,l+=o;break;default:l++}if(i)return null}if(null===r||null===s)return null;var u=9e4/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*n*u,pts:s+1024*n*u}]}}(t):l(t))&amp;&amp;(n.audio||n.video)?(function(t,e){if(t.audio&amp;&amp;t.audio.length){var i=e;void 0===i&amp;&amp;(i=t.audio[0].dts),t.audio.forEach(function(t){t.dts=r(t.dts,i),t.pts=r(t.pts,i),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4})}if(t.video&amp;&amp;t.video.length){var n=e;if(void 0===n&amp;&amp;(n=t.video[0].dts),t.video.forEach(function(t){t.dts=r(t.dts,n),t.pts=r(t.pts,n),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4}),t.firstKeyFrame){var a=t.firstKeyFrame;a.dts=r(a.dts,n),a.pts=r(a.pts,n),a.dtsTime=a.dts/9e4,a.ptsTime=a.dts/9e4}}}(n,e),n):null}}},KBX6:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={TIME_BETWEEN_CHUNKS:1,BYTES_PER_CHUNK:32768},t.exports=e.default},Kege:function(t,e,i){"use strict";var n,r=i("B7FF"),a=i("j+Zh"),s=function(t,e,i){var n,r="";for(n=e;n&lt;i;n++)r+="%"+("00"+t[n].toString(16)).slice(-2);return r},o=function(t,e,i){return decodeURIComponent(s(t,e,i))},l=function(t){return t[0]&lt;&lt;21|t[1]&lt;&lt;14|t[2]&lt;&lt;7|t[3]},u={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e&lt;t.data.length;e++)if(0===t.data[e]){t.description=o(t.data,1,e),t.value=o(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e&lt;t.data.length;e++)if(0===t.data[e]){t.description=o(t.data,1,e),t.url=o(t.data,e+1,t.data.length);break}},PRIV:function(t){var e,i;for(e=0;e&lt;t.data.length;e++)if(0===t.data[e]){t.owner=(i=t.data,unescape(s(i,0,e)));break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};(n=function(t){var e,i={debug:!(!t||!t.debug),descriptor:t&amp;&amp;t.descriptor},r=0,s=[],o=0;if(n.prototype.init.call(this),this.dispatchType=a.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(e=0;e&lt;i.descriptor.length;e++)this.dispatchType+=("00"+i.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,n,a,c,h;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&amp;&amp;(o=0,s.length=0),0===s.length&amp;&amp;(t.data.length&lt;10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))i.debug&amp;&amp;console.log("Skipping unrecognized metadata packet");else if(s.push(t),o+=t.data.byteLength,1===s.length&amp;&amp;(r=l(t.data.subarray(6,10)),r+=10),!(o&lt;r)){for(e={data:new Uint8Array(r),frames:[],pts:s[0].pts,dts:s[0].dts},h=0;h&lt;r;)e.data.set(s[0].data.subarray(0,r-h),h),h+=s[0].data.byteLength,o-=s[0].data.byteLength,s.shift();n=10,64&amp;e.data[5]&amp;&amp;(n+=4,n+=l(e.data.subarray(10,14)),r-=l(e.data.subarray(16,20)));do{if((a=l(e.data.subarray(n+4,n+8)))&lt;1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((c={id:String.fromCharCode(e.data[n],e.data[n+1],e.data[n+2],e.data[n+3]),data:e.data.subarray(n+10,n+a+10)}).key=c.id,u[c.id]&amp;&amp;(u[c.id](c),"com.apple.streaming.transportStreamTimestamp"===c.owner)){var d=c.data,p=(1&amp;d[3])&lt;&lt;30|d[4]&lt;&lt;22|d[5]&lt;&lt;14|d[6]&lt;&lt;6|d[7]&gt;&gt;&gt;2;p*=4,p+=3&amp;d[7],c.timeStamp=p,void 0===e.pts&amp;&amp;void 0===e.dts&amp;&amp;(e.pts=c.timeStamp,e.dts=c.timeStamp),this.trigger("timestamp",c)}e.frames.push(c),n+=10,n+=a}while(n&lt;r);this.trigger("data",e)}}}).prototype=new r,t.exports=n},KlPZ:function(t,e,i){"use strict";var n,r,a,s,o,l,u,c,h,d,p,f,g,m,y,v,_,b,T,S,k,C,w,E,A,x,O,P,L,I,D,M,R,j,U,N,B,F,H,V,z,W=Math.pow(2,32)-1;!function(){var t;if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in w)w.hasOwnProperty(t)&amp;&amp;(w[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);E=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),x=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),A=new Uint8Array([0,0,0,1]),O=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),P=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),L={video:O,audio:P},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0]),R=new Uint8Array([0,0,0,0,0,0,0,0]),j=R,U=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=R,I=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=function(t){var e,i,n=[],r=0;for(e=1;e&lt;arguments.length;e++)n.push(arguments[e]);for(e=n.length;e--;)r+=n[e].byteLength;for(i=new Uint8Array(r+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(t,4),e=0,r=8;e&lt;n.length;e++)i.set(n[e],r),r+=n[e].byteLength;return i},r=function(){return n(w.dinf,n(w.dref,M))},a=function(t){return n(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype&lt;&lt;3|t.samplingfrequencyindex&gt;&gt;&gt;1,t.samplingfrequencyindex&lt;&lt;7|t.channelcount&lt;&lt;3,6,1,2]))},s=function(){return n(w.ftyp,E,A,E,x)},v=function(t){return n(w.hdlr,L[t])},o=function(t){return n(w.mdat,t)},y=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration&gt;&gt;&gt;24&amp;255,t.duration&gt;&gt;&gt;16&amp;255,t.duration&gt;&gt;&gt;8&amp;255,255&amp;t.duration,85,196,0,0]);return t.samplerate&amp;&amp;(e[12]=t.samplerate&gt;&gt;&gt;24&amp;255,e[13]=t.samplerate&gt;&gt;&gt;16&amp;255,e[14]=t.samplerate&gt;&gt;&gt;8&amp;255,e[15]=255&amp;t.samplerate),n(w.mdhd,e)},m=function(t){return n(w.mdia,y(t),v(t.type),u(t))},l=function(t){return n(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&amp;t)&gt;&gt;24,(16711680&amp;t)&gt;&gt;16,(65280&amp;t)&gt;&gt;8,255&amp;t]))},u=function(t){return n(w.minf,"video"===t.type?n(w.vmhd,I):n(w.smhd,D),r(),b(t))},c=function(t,e){for(var i=[],r=e.length;r--;)i[r]=S(e[r]);return n.apply(null,[w.moof,l(t)].concat(i))},h=function(t){for(var e=t.length,i=[];e--;)i[e]=f(t[e]);return n.apply(null,[w.moov,p(4294967295)].concat(i).concat(d(t)))},d=function(t){for(var e=t.length,i=[];e--;)i[e]=k(t[e]);return n.apply(null,[w.mvex].concat(i))},p=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&amp;t)&gt;&gt;24,(16711680&amp;t)&gt;&gt;16,(65280&amp;t)&gt;&gt;8,255&amp;t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(w.mvhd,e)},_=function(t){var e,i,r=t.samples||[],a=new Uint8Array(4+r.length);for(i=0;i&lt;r.length;i++)e=r[i].flags,a[i+4]=e.dependsOn&lt;&lt;4|e.isDependedOn&lt;&lt;2|e.hasRedundancy;return n(w.sdtp,a)},b=function(t){return n(w.stbl,T(t),n(w.stts,N),n(w.stsc,j),n(w.stsz,U),n(w.stco,R))},T=function(t){return n(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===t.type?B(t):F(t))},B=function(t){var e,i=t.sps||[],r=t.pps||[],a=[],s=[];for(e=0;e&lt;i.length;e++)a.push((65280&amp;i[e].byteLength)&gt;&gt;&gt;8),a.push(255&amp;i[e].byteLength),a=a.concat(Array.prototype.slice.call(i[e]));for(e=0;e&lt;r.length;e++)s.push((65280&amp;r[e].byteLength)&gt;&gt;&gt;8),s.push(255&amp;r[e].byteLength),s=s.concat(Array.prototype.slice.call(r[e]));return n(w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&amp;t.width)&gt;&gt;8,255&amp;t.width,(65280&amp;t.height)&gt;&gt;8,255&amp;t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(w.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([i.length]).concat(a).concat([r.length]).concat(s))),n(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},F=function(t){return n(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&amp;t.channelcount)&gt;&gt;8,255&amp;t.channelcount,(65280&amp;t.samplesize)&gt;&gt;8,255&amp;t.samplesize,0,0,0,0,(65280&amp;t.samplerate)&gt;&gt;8,255&amp;t.samplerate,0,0]),a(t))},g=function(t){var e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&amp;t.id)&gt;&gt;24,(16711680&amp;t.id)&gt;&gt;16,(65280&amp;t.id)&gt;&gt;8,255&amp;t.id,0,0,0,0,(4278190080&amp;t.duration)&gt;&gt;24,(16711680&amp;t.duration)&gt;&gt;16,(65280&amp;t.duration)&gt;&gt;8,255&amp;t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&amp;t.width)&gt;&gt;8,255&amp;t.width,0,0,(65280&amp;t.height)&gt;&gt;8,255&amp;t.height,0,0]);return n(w.tkhd,e)},S=function(t){var e,i,r,a,s,o;return e=n(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&amp;t.id)&gt;&gt;24,(16711680&amp;t.id)&gt;&gt;16,(65280&amp;t.id)&gt;&gt;8,255&amp;t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(t.baseMediaDecodeTime/(W+1)),o=Math.floor(t.baseMediaDecodeTime%(W+1)),i=n(w.tfdt,new Uint8Array([1,0,0,0,s&gt;&gt;&gt;24&amp;255,s&gt;&gt;&gt;16&amp;255,s&gt;&gt;&gt;8&amp;255,255&amp;s,o&gt;&gt;&gt;24&amp;255,o&gt;&gt;&gt;16&amp;255,o&gt;&gt;&gt;8&amp;255,255&amp;o])),92,"audio"===t.type?(r=C(t,92),n(w.traf,e,i,r)):(a=_(t),r=C(t,a.length+92),n(w.traf,e,i,r,a))},f=function(t){return t.duration=t.duration||4294967295,n(w.trak,g(t),m(t))},k=function(t){var e=new Uint8Array([0,0,0,0,(4278190080&amp;t.id)&gt;&gt;24,(16711680&amp;t.id)&gt;&gt;16,(65280&amp;t.id)&gt;&gt;8,255&amp;t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&amp;&amp;(e[e.length-1]=0),n(w.trex,e)},z=function(t,e){var i=0,n=0,r=0,a=0;return t.length&amp;&amp;(void 0!==t[0].duration&amp;&amp;(i=1),void 0!==t[0].size&amp;&amp;(n=2),void 0!==t[0].flags&amp;&amp;(r=4),void 0!==t[0].compositionTimeOffset&amp;&amp;(a=8)),[0,0,i|n|r|a,1,(4278190080&amp;t.length)&gt;&gt;&gt;24,(16711680&amp;t.length)&gt;&gt;&gt;16,(65280&amp;t.length)&gt;&gt;&gt;8,255&amp;t.length,(4278190080&amp;e)&gt;&gt;&gt;24,(16711680&amp;e)&gt;&gt;&gt;16,(65280&amp;e)&gt;&gt;&gt;8,255&amp;e]},V=function(t,e){var i,r,a,s;for(e+=20+16*(r=t.samples||[]).length,i=z(r,e),s=0;s&lt;r.length;s++)a=r[s],i=i.concat([(4278190080&amp;a.duration)&gt;&gt;&gt;24,(16711680&amp;a.duration)&gt;&gt;&gt;16,(65280&amp;a.duration)&gt;&gt;&gt;8,255&amp;a.duration,(4278190080&amp;a.size)&gt;&gt;&gt;24,(16711680&amp;a.size)&gt;&gt;&gt;16,(65280&amp;a.size)&gt;&gt;&gt;8,255&amp;a.size,a.flags.isLeading&lt;&lt;2|a.flags.dependsOn,a.flags.isDependedOn&lt;&lt;6|a.flags.hasRedundancy&lt;&lt;4|a.flags.paddingValue&lt;&lt;1|a.flags.isNonSyncSample,61440&amp;a.flags.degradationPriority,15&amp;a.flags.degradationPriority,(4278190080&amp;a.compositionTimeOffset)&gt;&gt;&gt;24,(16711680&amp;a.compositionTimeOffset)&gt;&gt;&gt;16,(65280&amp;a.compositionTimeOffset)&gt;&gt;&gt;8,255&amp;a.compositionTimeOffset]);return n(w.trun,new Uint8Array(i))},H=function(t,e){var i,r,a,s;for(e+=20+8*(r=t.samples||[]).length,i=z(r,e),s=0;s&lt;r.length;s++)a=r[s],i=i.concat([(4278190080&amp;a.duration)&gt;&gt;&gt;24,(16711680&amp;a.duration)&gt;&gt;&gt;16,(65280&amp;a.duration)&gt;&gt;&gt;8,255&amp;a.duration,(4278190080&amp;a.size)&gt;&gt;&gt;24,(16711680&amp;a.size)&gt;&gt;&gt;16,(65280&amp;a.size)&gt;&gt;&gt;8,255&amp;a.size]);return n(w.trun,new Uint8Array(i))},C=function(t,e){return"audio"===t.type?H(t,e):V(t,e)},t.exports={ftyp:s,mdat:o,moof:c,moov:h,initSegment:function(t){var e,i=s(),n=h(t);return(e=new Uint8Array(i.byteLength+n.byteLength)).set(i),e.set(n,i.byteLength),e}}},MUtT:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"cookieKey",function(){return r}),i.d(e,"CookieService",function(){return a});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();var r={accessToken:"t",mobileAdvCenterShowed:"macs",mobileAdvBottomShowed:"mabs",warningMsgShowed:"wms",locale:"l"},a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,null,[{key:"check",value:function(t){return"undefined"!=typeof document&amp;&amp;(t=encodeURIComponent(t),new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g").test(document.cookie))}},{key:"get",value:function(t){if(this.check(t)){t=encodeURIComponent(t);var e=new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g").exec(document.cookie);return decodeURIComponent(e[1])}return""}},{key:"getAll",value:function(){var t={};if(document.cookie&amp;&amp;""!=document.cookie){var e=document.cookie.split(";"),i=!0,n=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var o=a.value.split("=");o[0]=o[0].replace(/^ /,""),t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}}catch(t){n=!0,r=t}finally{try{!i&amp;&amp;s.return&amp;&amp;s.return()}finally{if(n)throw r}}}return t}},{key:"set",value:function(t,e,i,n,r,a){var s=encodeURIComponent(t)+"="+encodeURIComponent(e)+";";i&amp;&amp;(s+="number"==typeof i?"expires="+new Date((new Date).getTime()+1e3*i).toUTCString()+";":"expires="+i.toUTCString()+";");s+=n?"path="+n+";":"path=/;",r&amp;&amp;(s+="domain="+r+";"),a&amp;&amp;(s+="secure;"),document.cookie=s}},{key:"delete",value:function(t,e,i){this.set(t,"",-1,e,i)}},{key:"deleteAll",value:function(t,e){var i=this.getAll(),n=!0,r=!1,a=void 0;try{for(var s,o=Object.keys(i)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var l=s.value;this.delete(l,t,e)}}catch(t){r=!0,a=t}finally{try{!n&amp;&amp;o.return&amp;&amp;o.return()}finally{if(r)throw a}}}}]),t}()},MjOi:function(t,e){var i=function(t,e){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=e,i.compositionTimeOffset=t.pts-t.dts,i.duration=t.duration,i.size=4*t.length,i.size+=t.byteLength,t.keyFrame&amp;&amp;(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i};t.exports={groupNalsIntoFrames:function(t){var e,i,n=[],r=[];for(n.byteLength=0,e=0;e&lt;t.length;e++)"access_unit_delimiter_rbsp"===(i=t[e]).nalUnitType?(n.length&amp;&amp;(n.duration=i.dts-n.dts,r.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&amp;&amp;(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&amp;&amp;(!n.duration||n.duration&lt;=0)&amp;&amp;(n.duration=r[r.length-1].duration),r.push(n),r},groupFramesIntoGops:function(t){var e,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=t[0].pts,n.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e&lt;t.length;e++)(i=t[e]).keyFrame?(n.length&amp;&amp;(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&amp;&amp;n.duration&lt;=0&amp;&amp;(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},extendFirstKeyFrame:function(t){var e;return!t[0][0].keyFrame&amp;&amp;t.length&gt;1&amp;&amp;(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},generateSampleTable:function(t,e){var n,r,a,s,o,l=e||0,u=[];for(n=0;n&lt;t.length;n++)for(s=t[n],r=0;r&lt;s.length;r++)o=s[r],l+=(a=i(o,l)).size,u.push(a);return u},concatenateNalData:function(t){var e,i,n,r,a,s,o=0,l=t.byteLength,u=t.nalCount,c=new Uint8Array(l+4*u),h=new DataView(c.buffer);for(e=0;e&lt;t.length;e++)for(r=t[e],i=0;i&lt;r.length;i++)for(a=r[i],n=0;n&lt;a.length;n++)s=a[n],h.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c}}},N1fr:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("awF4"),r=i.n(n),a=i("dwO+"),s=i.n(a),o=i("sN1u"),l=i.n(o),u=i("1Xk4"),c=i.n(u),h=i("ciWi"),d=i.n(h),p=i("I/+Z"),f=i.n(p),g=i("fx5k"),m=i.n(g),y=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},v=Object.assign||function(t){for(var e=1;e&lt;arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&amp;&amp;(t[n]=i[n])}return t},_=function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},b=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&amp;&amp;"function"!=typeof e?t:e},T=function(){function t(){y(this,t),this.listeners={}}return t.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},t.prototype.off=function(t,e){if(!this.listeners[t])return!1;var i=this.listeners[t].indexOf(e);return this.listeners[t].splice(i,1),i&gt;-1},t.prototype.trigger=function(t){var e=this.listeners[t],i=void 0,n=void 0,r=void 0;if(e)if(2===arguments.length)for(n=e.length,i=0;i&lt;n;++i)e[i].call(this,arguments[1]);else for(r=Array.prototype.slice.call(arguments,1),n=e.length,i=0;i&lt;n;++i)e[i].apply(this,r)},t.prototype.dispose=function(){this.listeners={}},t.prototype.pipe=function(t){this.on("data",function(e){t.push(e)})},t}(),S=function(t){function e(){y(this,e);var i=b(this,t.call(this));return i.buffer="",i}return _(e,t),e.prototype.push=function(t){var e=void 0;for(this.buffer+=t,e=this.buffer.indexOf("\n");e&gt;-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(T),k=function(t){for(var e=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},n=e.length,r=void 0;n--;)""!==e[n]&amp;&amp;((r=/([^=]*)=(.*)/.exec(e[n]).slice(1))[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),i[r[0]]=r[1]);return i},C=function(t){function e(){y(this,e);var i=b(this,t.call(this));return i.customParsers=[],i}return _(e,t),e.prototype.push=function(t){var e=void 0,i=void 0;if(0!==(t=t.replace(/^[\u0000\s]+|[\u0000\s]+$/g,"")).length)if("#"===t[0]){for(var n=0;n&lt;this.customParsers.length;n++)if(this.customParsers[n].call(this,t))return;if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t))this.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t))return i={type:"tag",tagType:"inf"},e[1]&amp;&amp;(i.duration=parseFloat(e[1])),e[2]&amp;&amp;(i.title=e[2]),void this.trigger("data",i);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"targetduration"},e[1]&amp;&amp;(i.duration=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"totalduration"},e[1]&amp;&amp;(i.duration=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"version"},e[1]&amp;&amp;(i.version=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return i={type:"tag",tagType:"media-sequence"},e[1]&amp;&amp;(i.number=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return i={type:"tag",tagType:"discontinuity-sequence"},e[1]&amp;&amp;(i.number=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t))return i={type:"tag",tagType:"playlist-type"},e[1]&amp;&amp;(i.playlistType=e[1]),void this.trigger("data",i);if(e=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"byterange"},e[1]&amp;&amp;(i.length=parseInt(e[1],10)),e[2]&amp;&amp;(i.offset=parseInt(e[2],10)),void this.trigger("data",i);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t))return i={type:"tag",tagType:"allow-cache"},e[1]&amp;&amp;(i.allowed=!/NO/.test(e[1])),void this.trigger("data",i);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t)){if(i={type:"tag",tagType:"map"},e[1]){var r=k(e[1]);if(r.URI&amp;&amp;(i.uri=r.URI),r.BYTERANGE){var a=r.BYTERANGE.split("@"),s=a[0],o=a[1];i.byterange={},s&amp;&amp;(i.byterange.length=parseInt(s,10)),o&amp;&amp;(i.byterange.offset=parseInt(o,10))}}this.trigger("data",i)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t)){if(i={type:"tag",tagType:"stream-inf"},e[1]){if(i.attributes=k(e[1]),i.attributes.RESOLUTION){var l=i.attributes.RESOLUTION.split("x"),u={};l[0]&amp;&amp;(u.width=parseInt(l[0],10)),l[1]&amp;&amp;(u.height=parseInt(l[1],10)),i.attributes.RESOLUTION=u}i.attributes.BANDWIDTH&amp;&amp;(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["PROGRAM-ID"]&amp;&amp;(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))}this.trigger("data",i)}else{if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t))return i={type:"tag",tagType:"media"},e[1]&amp;&amp;(i.attributes=k(e[1])),void this.trigger("data",i);if(e=/^#EXT-X-ENDLIST/.exec(t))this.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t))this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t))return i={type:"tag",tagType:"program-date-time"},e[1]&amp;&amp;(i.dateTimeString=e[1],i.dateTimeObject=new Date(e[1])),void this.trigger("data",i);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t))return i={type:"tag",tagType:"key"},e[1]&amp;&amp;(i.attributes=k(e[1]),i.attributes.IV&amp;&amp;("0x"===i.attributes.IV.substring(0,2).toLowerCase()&amp;&amp;(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void this.trigger("data",i);if(e=/^#EXT-X-START:?(.*)$/.exec(t))return i={type:"tag",tagType:"start"},e[1]&amp;&amp;(i.attributes=k(e[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),void this.trigger("data",i);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-out-cont"},e[1]?i.data=e[1]:i.data="",void this.trigger("data",i);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-out"},e[1]?i.data=e[1]:i.data="",void this.trigger("data",i);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-in"},e[1]?i.data=e[1]:i.data="",void this.trigger("data",i);this.trigger("data",{type:"tag",data:t.slice(4)})}}}else this.trigger("data",{type:"comment",text:t.slice(1)})}else this.trigger("data",{type:"uri",uri:t})},e.prototype.addParser=function(t){var e=this,i=t.expression,n=t.customType,r=t.dataParser,a=t.segment;"function"!=typeof r&amp;&amp;(r=function(t){return t}),this.customParsers.push(function(t){if(i.exec(t))return e.trigger("data",{type:"custom",data:r(t),customType:n,segment:a}),!0})},e}(T),w=function(t){function e(){y(this,e);var i=b(this,t.call(this));i.lineStream=new S,i.parseStream=new C,i.lineStream.pipe(i.parseStream);var n=i,r=[],a={},s=void 0,o=void 0,l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},u=0;return i.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},i.parseStream.on("data",function(t){var e=void 0,i=void 0;({tag:function(){(({"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&amp;&amp;(a.byterange=e,e.length=t.length,"offset"in t||(this.trigger("info",{message:"defaulting offset to zero"}),t.offset=0)),"offset"in t&amp;&amp;(a.byterange=e,e.offset=t.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),t.duration&gt;0&amp;&amp;(a.duration=t.duration),0===t.duration&amp;&amp;(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=r},key:function(){t.attributes?"NONE"!==t.attributes.METHOD?t.attributes.URI?(t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),o={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&amp;&amp;(o.iv=t.attributes.IV)):this.trigger("warn",{message:"ignoring key declaration without URI"}):o=null:this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,u=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){s={},t.uri&amp;&amp;(s.uri=t.uri),t.byterange&amp;&amp;(s.byterange=t.byterange)},"stream-inf":function(){this.manifest.playlists=r,this.manifest.mediaGroups=this.manifest.mediaGroups||l,t.attributes?(a.attributes||(a.attributes={}),v(a.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,t.attributes&amp;&amp;t.attributes.TYPE&amp;&amp;t.attributes["GROUP-ID"]&amp;&amp;t.attributes.NAME){var n=this.manifest.mediaGroups[t.attributes.TYPE];n[t.attributes["GROUP-ID"]]=n[t.attributes["GROUP-ID"]]||{},e=n[t.attributes["GROUP-ID"]],(i={default:/yes/i.test(t.attributes.DEFAULT)}).default?i.autoselect=!0:i.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&amp;&amp;(i.language=t.attributes.LANGUAGE),t.attributes.URI&amp;&amp;(i.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&amp;&amp;(i.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&amp;&amp;(i.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&amp;&amp;(i.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=i}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){u+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(r.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&amp;&amp;(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),a.dateTimeString=t.dateTimeString,a.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration&lt;0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):this.manifest.targetDuration=t.duration},totalduration:function(){!isFinite(t.duration)||t.duration&lt;0?this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration}):this.manifest.totalDuration=t.duration},start:function(){t.attributes&amp;&amp;!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=t.data},"cue-out-cont":function(){a.cueOutCont=t.data},"cue-in":function(){a.cueIn=t.data}})[t.tagType]||function(){}).call(n)},uri:function(){a.uri=t.uri,r.push(a),!this.manifest.targetDuration||"duration"in a||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),o&amp;&amp;(a.key=o),a.timeline=u,s&amp;&amp;(a.map=s),a={}},comment:function(){},custom:function(){t.segment?(a.custom=a.custom||{},a.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(n)}),i}return _(e,t),e.prototype.push=function(t){this.lineStream.push(t)},e.prototype.end=function(){this.lineStream.push("\n")},e.prototype.addParser=function(t){this.parseStream.addParser(t)},e}(T),E=function(t){var e,i=t.attributes,n=t.segments,r={attributes:(e={NAME:i.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:i.width,height:i.height},CODECS:i.codecs,BANDWIDTH:i.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:n,mediaSequence:n.length?n[0].number:1};return i.contentProtection&amp;&amp;(r.contentProtection=i.contentProtection),r},A="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t},x=function(t){return!!t&amp;&amp;"object"===(void 0===t?"undefined":A(t))},O=function t(){for(var e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];return i.reduce(function(e,i){return Object.keys(i).forEach(function(n){Array.isArray(e[n])&amp;&amp;Array.isArray(i[n])?e[n]=e[n].concat(i[n]):x(e[n])&amp;&amp;x(i[n])?e[n]=t(e[n],i[n]):e[n]=i[n]}),e},{})},P=function(t,e){return/^[a-z]+:/i.test(e)?e:(/\/\//i.test(t)||(t=m.a.buildAbsoluteURL(r.a.location.href,t)),m.a.buildAbsoluteURL(t,e))},L=function(t){var e=t.baseUrl,i=void 0===e?"":e,n=t.source,r=void 0===n?"":n,a=t.range,s=void 0===a?"":a,o={uri:r,resolvedUri:P(i||"",r)};if(s){var l=s.split("-"),u=parseInt(l[0],10),c=parseInt(l[1],10);o.byterange={length:c-u,offset:u}}return o},I=function(t,e,i){var n=t.NOW,r=t.clientOffset,a=t.availabilityStartTime,s=t.timescale,o=void 0===s?1:s,l=t.start,u=void 0===l?0:l,c=t.minimumUpdatePeriod,h=(n+r)/1e3+(void 0===c?0:c)-(a+u);return Math.ceil((h*o-e)/i)},D=function(t,e){for(var i=t.type,n=void 0===i?"static":i,r=t.minimumUpdatePeriod,a=void 0===r?0:r,s=t.media,o=void 0===s?"":s,l=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,h=t.startNumber,d=void 0===h?1:h,p=t.periodIndex,f=[],g=-1,m=0;m&lt;e.length;m++){var y=e[m],v=y.d,_=y.r||0,b=y.t||0;g&lt;0&amp;&amp;(g=b),b&amp;&amp;b&gt;g&amp;&amp;(g=b);var T=void 0;if(_&lt;0){var S=m+1;T=S===e.length?"dynamic"===n&amp;&amp;a&gt;0&amp;&amp;o.indexOf("$Number$")&gt;0?I(t,g,v):(l*c-g)/v:(e[S].t-g)/v}else T=_+1;for(var k=d+f.length+T,C=d+f.length;C&lt;k;)f.push({number:C,duration:v/c,time:g,timeline:p}),g+=v,C++}return f},M=function(t){return t.reduce(function(t,e){return t.concat(e)},[])},R=function(t){if(!t.length)return[];for(var e=[],i=0;i&lt;t.length;i++)e.push(t[i]);return e},j={static:function(t){var e=t.duration,i=t.timescale,n=void 0===i?1:i,r=t.sourceDuration;return{start:0,end:Math.ceil(r/(e/n))}},dynamic:function(t){var e=t.NOW,i=t.clientOffset,n=t.availabilityStartTime,r=t.timescale,a=void 0===r?1:r,s=t.duration,o=t.start,l=void 0===o?0:o,u=t.minimumUpdatePeriod,c=void 0===u?0:u,h=t.timeShiftBufferDepth,d=void 0===h?1/0:h,p=(e+i)/1e3,f=n+l,g=p+c-f,m=Math.ceil(g*a/s),y=Math.floor((p-f-d)*a/s),v=Math.floor((p-f)*a/s);return{start:Math.max(0,y),end:Math.min(m,v)}}},U=function(t){var e=t.type,i=void 0===e?"static":e,n=t.duration,r=t.timescale,a=void 0===r?1:r,s=t.sourceDuration,o=j[i](t),l=function(t,e){for(var i=[],n=t;n&lt;e;n++)i.push(n);return i}(o.start,o.end).map(function(t){return function(e,i){var n=t.duration,r=t.timescale,a=void 0===r?1:r,s=t.periodIndex,o=t.startNumber;return{number:(void 0===o?1:o)+e,duration:n/a,timeline:s,time:i*n}}}(t));if("static"===i){var u=l.length-1;l[u].duration=s-n/a*u}return l},N=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,B=function(t,e){return t.replace(N,function(t){return function(e,i,n,r){if("$$"===e)return"$";if(void 0===t[i])return e;var a=""+t[i];return"RepresentationID"===i?a:(r=n?parseInt(r,10):1,a.length&gt;=r?a:""+new Array(r-a.length+1).join("0")+a)}}(e))},F=function(t,e){var i={RepresentationID:t.id,Bandwidth:t.bandwidth||0},n=t.initialization,r=void 0===n?{sourceURL:"",range:""}:n,a=L({baseUrl:t.baseUrl,source:B(r.sourceURL,i),range:r.range});return function(t,e){return t.duration||e?t.duration?U(t):D(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodIndex}]}(t,e).map(function(e){i.Number=e.number,i.Time=e.time;var n=B(t.media||"",i);return{uri:n,timeline:e.timeline,duration:e.duration,resolvedUri:P(t.baseUrl||"",n),map:a,number:e.number}})},H="INVALID_NUMBER_OF_PERIOD",V="DASH_EMPTY_MANIFEST",z="DASH_INVALID_XML",W="NO_BASE_URL",q="SEGMENT_TIME_UNSPECIFIED",G="UNSUPPORTED_UTC_TIMING_SCHEME",X=function(t,e){var i=t.duration,n=t.segmentUrls,r=void 0===n?[]:n;if(!i&amp;&amp;!e||i&amp;&amp;e)throw new Error(q);var a=r.map(function(e){return function(t,e){var i=t.baseUrl,n=t.initialization,r=void 0===n?{}:n,a=L({baseUrl:i,source:r.sourceURL,range:r.range}),s=L({baseUrl:i,source:e.media,range:e.mediaRange});return s.map=a,s}(t,e)}),s=void 0;return i&amp;&amp;(s=U(t)),e&amp;&amp;(s=D(t,e)),s.map(function(t,e){if(a[e]){var i=a[e];return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i}}).filter(function(t){return t})},Y=function(t){var e=t.baseUrl,i=t.initialization,n=void 0===i?{}:i,r=t.sourceDuration,a=t.timescale,s=void 0===a?1:a,o=t.indexRange,l=void 0===o?"":o,u=t.duration;if(!e)throw new Error(W);var c=L({baseUrl:e,source:n.sourceURL,range:n.range}),h=L({baseUrl:e,source:e,range:l});if(h.map=c,u){var d=U(t);d.length&amp;&amp;(h.duration=d[0].duration,h.timeline=d[0].timeline)}else r&amp;&amp;(h.duration=r/s,h.timeline=0);return h.number=0,[h]},K=function(t){var e=t.attributes,i=t.segmentInfo,n=void 0,r=void 0;if(i.template?(r=F,n=O(e,i.template)):i.base?(r=Y,n=O(e,i.base)):i.list&amp;&amp;(r=X,n=O(e,i.list)),!r)return{attributes:e};var a=r(n,i.timeline);if(n.duration){var s=n,o=s.duration,l=s.timescale,u=void 0===l?1:l;n.duration=o/u}else a.length?n.duration=a.reduce(function(t,e){return Math.max(t,Math.ceil(e.duration))},0):n.duration=0;return{attributes:n,segments:a}},J=function(t,e){return R(t.childNodes).filter(function(t){return t.tagName===e})},Z=function(t){return t.textContent.trim()},Q=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var i=e.slice(1),n=i[0],r=i[1],a=i[2],s=i[3],o=i[4],l=i[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(r||0)+86400*parseFloat(a||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(l||0)},tt={mediaPresentationDuration:function(t){return Q(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&amp;&amp;(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return Q(t)},timeShiftBufferDepth:function(t){return Q(t)},start:function(t){return Q(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?Q(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},et=function(t){return t&amp;&amp;t.attributes?R(t.attributes).reduce(function(t,e){var i=tt[e.name]||tt.DEFAULT;return t[e.name]=i(e.value),t},{}):{}};var it={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},nt=function(t,e){return e.length?M(t.map(function(t){return e.map(function(e){return P(t,Z(e))})})):t},rt=function(t){var e=J(t,"SegmentTemplate")[0],i=J(t,"SegmentList")[0],n=i&amp;&amp;J(i,"SegmentURL").map(function(t){return O({tag:"SegmentURL"},et(t))}),r=J(t,"SegmentBase")[0],a=i||e,s=a&amp;&amp;J(a,"SegmentTimeline")[0],o=i||r||e,l=o&amp;&amp;J(o,"Initialization")[0],u=e&amp;&amp;et(e);u&amp;&amp;l?u.initialization=l&amp;&amp;et(l):u&amp;&amp;u.initialization&amp;&amp;(u.initialization={sourceURL:u.initialization});var c={template:u,timeline:s&amp;&amp;J(s,"S").map(function(t){return et(t)}),list:i&amp;&amp;O(et(i),{segmentUrls:n,initialization:et(l)}),base:r&amp;&amp;O(et(r),{initialization:et(l)})};return Object.keys(c).forEach(function(t){c[t]||delete c[t]}),c},at=function(t){return t.reduce(function(t,e){var i=et(e),n=it[i.schemeIdUri];if(n){t[n]={attributes:i};var a=J(e,"cenc:pssh")[0];if(a){var s=Z(a),o=s&amp;&amp;function(t){for(var e=r.a.atob(t),i=new Uint8Array(e.length),n=0;n&lt;e.length;n++)i[n]=e.charCodeAt(n);return i}(s);t[n].pssh=o}}return t},{})},st=function(t,e,i){return function(n){var r=et(n),a=nt(e,J(n,"BaseURL")),s=J(n,"Role")[0],o={role:et(s)},l=O(t,r,o),u=at(J(n,"ContentProtection"));Object.keys(u).length&amp;&amp;(l=O(l,{contentProtection:u}));var c=rt(n),h=J(n,"Representation"),d=O(i,c);return M(h.map(function(t,e,i){return function(n){var r=J(n,"BaseURL"),a=nt(e,r),s=O(t,et(n)),o=rt(n);return a.map(function(t){return{segmentInfo:O(i,o),attributes:O(s,{baseUrl:t})}})}}(l,a,d)))}},ot=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=e.manifestUri,n=void 0===i?"":i,r=e.NOW,a=void 0===r?Date.now():r,s=e.clientOffset,o=void 0===s?0:s,l=J(t,"Period");if(1!==l.length)throw new Error(H);var u=et(t),c=nt([n],J(t,"BaseURL"));return u.sourceDuration=u.mediaPresentationDuration||0,u.NOW=a,u.clientOffset=o,M(l.map(function(t,e){return function(i,n){var r=nt(e,J(i,"BaseURL")),a=et(i),s=O(t,a,{periodIndex:n}),o=J(i,"AdaptationSet"),l=rt(i);return M(o.map(st(s,r,l)))}}(u,c)))},lt=function(t){if(""===t)throw new Error(V);var e=(new r.a.DOMParser).parseFromString(t,"application/xml"),i=e&amp;&amp;"MPD"===e.documentElement.tagName?e.documentElement:null;if(!i||i&amp;&amp;i.getElementsByTagName("parsererror").length&gt;0)throw new Error(z);return i},ut=function(t,e){return function(t){var e;if(!t.length)return{};var i=t[0].attributes,n=i.sourceDuration,r=i.minimumUpdatePeriod,a=void 0===r?0:r,s=t.filter(function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video"===e.contentType}).map(E),o=t.filter(function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio"===e.contentType}),l=t.filter(function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType}),u={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:n,playlists:s,minimumUpdatePeriod:1e3*a};return o.length&amp;&amp;(u.mediaGroups.AUDIO.audio=o.reduce(function(t,e){var i=e.attributes.role&amp;&amp;e.attributes.role.value||"main",n=e.attributes.lang||"",r="main";return n&amp;&amp;(r=e.attributes.lang+" ("+i+")"),t[r]&amp;&amp;t[r].playlists[0].attributes.BANDWIDTH&gt;e.attributes.bandwidth?t:(t[r]={language:n,autoselect:!0,default:"main"===i,playlists:[function(t){var e,i=t.attributes,n=t.segments,r={attributes:(e={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:n,mediaSequence:n.length?n[0].number:1};return i.contentProtection&amp;&amp;(r.contentProtection=i.contentProtection),r}(e)],uri:""},t)},{})),l.length&amp;&amp;(u.mediaGroups.SUBTITLES.subs=function(t){return t.reduce(function(t,e){var i,n,r,a,s=e.attributes.lang||"text";return t[s]?t:(t[s]={language:s,default:!1,autoselect:!1,playlists:[(i=e,r=i.attributes,a=i.segments,void 0===a&amp;&amp;(a=[{uri:r.baseUrl,timeline:r.periodIndex,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration),{attributes:(n={NAME:r.id,BANDWIDTH:r.bandwidth},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===(r.type||"static"),timeline:r.periodIndex,resolvedUri:r.baseUrl||"",targetDuration:r.duration,segments:a,mediaSequence:a.length?a[0].number:1})],uri:""},t)},{})}(l)),u}(ot(lt(t),e).map(K))},ct=function(t){return function(t){var e=J(t,"UTCTiming")[0];if(!e)return null;var i=et(e);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(G)}return i}(lt(t))},ht=i("/cRm"),dt=i.n(ht),pt=i("fYOu"),ft=i("33ZF"),gt=i.n(ft);var mt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},yt=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),vt=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&amp;&amp;"function"!=typeof e?t:e},_t=function(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]],e=t[0],i=t[1],n=e[4],r=i[4],a=void 0,s=void 0,o=void 0,l=[],u=[],c=void 0,h=void 0,d=void 0,p=void 0,f=void 0;for(a=0;a&lt;256;a++)u[(l[a]=a&lt;&lt;1^283*(a&gt;&gt;7))^a]=a;for(s=o=0;!n[s];s^=c||1,o=u[o]||1)for(d=(d=o^o&lt;&lt;1^o&lt;&lt;2^o&lt;&lt;3^o&lt;&lt;4)&gt;&gt;8^255&amp;d^99,n[s]=d,r[d]=s,f=16843009*l[h=l[c=l[s]]]^65537*h^257*c^16843008*s,p=257*l[d]^16843008*d,a=0;a&lt;4;a++)e[a][s]=p=p&lt;&lt;24^p&gt;&gt;&gt;8,i[a][d]=f=f&lt;&lt;24^f&gt;&gt;&gt;8;for(a=0;a&lt;5;a++)e[a]=e[a].slice(0),i[a]=i[a].slice(0);return t},bt=null,Tt=function(){function t(e){mt(this,t),bt||(bt=_t()),this._tables=[[bt[0][0].slice(),bt[0][1].slice(),bt[0][2].slice(),bt[0][3].slice(),bt[0][4].slice()],[bt[1][0].slice(),bt[1][1].slice(),bt[1][2].slice(),bt[1][3].slice(),bt[1][4].slice()]];var i=void 0,n=void 0,r=void 0,a=void 0,s=void 0,o=this._tables[0][4],l=this._tables[1],u=e.length,c=1;if(4!==u&amp;&amp;6!==u&amp;&amp;8!==u)throw new Error("Invalid aes key size");for(a=e.slice(0),s=[],this._key=[a,s],i=u;i&lt;4*u+28;i++)r=a[i-1],(i%u==0||8===u&amp;&amp;i%u==4)&amp;&amp;(r=o[r&gt;&gt;&gt;24]&lt;&lt;24^o[r&gt;&gt;16&amp;255]&lt;&lt;16^o[r&gt;&gt;8&amp;255]&lt;&lt;8^o[255&amp;r],i%u==0&amp;&amp;(r=r&lt;&lt;8^r&gt;&gt;&gt;24^c&lt;&lt;24,c=c&lt;&lt;1^283*(c&gt;&gt;7))),a[i]=a[i-u]^r;for(n=0;i;n++,i--)r=a[3&amp;n?i:i-4],s[n]=i&lt;=4||n&lt;4?r:l[0][o[r&gt;&gt;&gt;24]]^l[1][o[r&gt;&gt;16&amp;255]]^l[2][o[r&gt;&gt;8&amp;255]]^l[3][o[255&amp;r]]}return t.prototype.decrypt=function(t,e,i,n,r,a){var s=this._key[1],o=t^s[0],l=n^s[1],u=i^s[2],c=e^s[3],h=void 0,d=void 0,p=void 0,f=s.length/4-2,g=void 0,m=4,y=this._tables[1],v=y[0],_=y[1],b=y[2],T=y[3],S=y[4];for(g=0;g&lt;f;g++)h=v[o&gt;&gt;&gt;24]^_[l&gt;&gt;16&amp;255]^b[u&gt;&gt;8&amp;255]^T[255&amp;c]^s[m],d=v[l&gt;&gt;&gt;24]^_[u&gt;&gt;16&amp;255]^b[c&gt;&gt;8&amp;255]^T[255&amp;o]^s[m+1],p=v[u&gt;&gt;&gt;24]^_[c&gt;&gt;16&amp;255]^b[o&gt;&gt;8&amp;255]^T[255&amp;l]^s[m+2],c=v[c&gt;&gt;&gt;24]^_[o&gt;&gt;16&amp;255]^b[l&gt;&gt;8&amp;255]^T[255&amp;u]^s[m+3],m+=4,o=h,l=d,u=p;for(g=0;g&lt;4;g++)r[(3&amp;-g)+a]=S[o&gt;&gt;&gt;24]&lt;&lt;24^S[l&gt;&gt;16&amp;255]&lt;&lt;16^S[u&gt;&gt;8&amp;255]&lt;&lt;8^S[255&amp;c]^s[m++],h=o,o=l,l=u,u=c,c=h},t}(),St=function(){function t(){mt(this,t),this.listeners={}}return t.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},t.prototype.off=function(t,e){if(!this.listeners[t])return!1;var i=this.listeners[t].indexOf(e);return this.listeners[t].splice(i,1),i&gt;-1},t.prototype.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var i=e.length,n=0;n&lt;i;++n)e[n].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=e.length,s=0;s&lt;a;++s)e[s].apply(this,r)},t.prototype.dispose=function(){this.listeners={}},t.prototype.pipe=function(t){this.on("data",function(e){t.push(e)})},t}(),kt=function(t){function e(){mt(this,e);var i=vt(this,t.call(this,St));return i.jobs=[],i.delay=1,i.timeout_=null,i}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},e.prototype.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},e}(St),Ct=function(t){return t&lt;&lt;24|(65280&amp;t)&lt;&lt;8|(16711680&amp;t)&gt;&gt;8|t&gt;&gt;&gt;24},wt=function(t,e,i){var n=new Int32Array(t.buffer,t.byteOffset,t.byteLength&gt;&gt;2),r=new Tt(Array.prototype.slice.call(e)),a=new Uint8Array(t.byteLength),s=new Int32Array(a.buffer),o=void 0,l=void 0,u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0;for(o=i[0],l=i[1],u=i[2],c=i[3],g=0;g&lt;n.length;g+=4)h=Ct(n[g]),d=Ct(n[g+1]),p=Ct(n[g+2]),f=Ct(n[g+3]),r.decrypt(h,d,p,f,s,g),s[g]=Ct(s[g]^o),s[g+1]=Ct(s[g+1]^l),s[g+2]=Ct(s[g+2]^u),s[g+3]=Ct(s[g+3]^c),o=h,l=d,u=p,c=f;return a},Et=function(){function t(e,i,n,r){mt(this,t);var a=t.STEP,s=new Int32Array(e.buffer),o=new Uint8Array(e.byteLength),l=0;for(this.asyncStream_=new kt,this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),i,n,o)),l=a;l&lt;s.length;l+=a)n=new Uint32Array([Ct(s[l-4]),Ct(s[l-3]),Ct(s[l-2]),Ct(s[l-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),i,n,o));this.asyncStream_.push(function(){var t;r(null,(t=o).subarray(0,t.byteLength-t[t.byteLength-1]))})}return t.prototype.decryptChunk_=function(t,e,i,n){return function(){var r=wt(t,e,i);n.set(r,t.byteOffset)}},yt(t,null,[{key:"STEP",get:function(){return 32e3}}]),t}(),At="7.2.2",xt=void 0,Ot="info",Pt=[],Lt=function(t,e){var i=xt.levels[Ot],n=new RegExp("^("+i+")$");if("log"!==t&amp;&amp;e.unshift(t.toUpperCase()+":"),Pt&amp;&amp;Pt.push([].concat(e)),e.unshift("VIDEOJS:"),r.a.console){var a=r.a.console[t];a||"debug"!==t||(a=r.a.console.info||r.a.console.log),a&amp;&amp;i&amp;&amp;n.test(t)&amp;&amp;a[Array.isArray(e)?"apply":"call"](r.a.console,e)}};(xt=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];Lt("log",e)}).levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:Ot},xt.level=function(t){if("string"==typeof t){if(!xt.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');Ot=t}return Ot},xt.history=function(){return Pt?[].concat(Pt):[]},xt.history.clear=function(){Pt&amp;&amp;(Pt.length=0)},xt.history.disable=function(){null!==Pt&amp;&amp;(Pt.length=0,Pt=null)},xt.history.enable=function(){null===Pt&amp;&amp;(Pt=[])},xt.error=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];return Lt("error",e)},xt.warn=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];return Lt("warn",e)},xt.debug=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];return Lt("debug",e)};var It=xt,Dt="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t},Mt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Rt=function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},jt=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&amp;&amp;"function"!=typeof e?t:e},Ut=function(t,e){return t.raw=e,t},Nt=Object.prototype.toString,Bt=function(t){return Vt(t)?Object.keys(t):[]};function Ft(t,e){Bt(t).forEach(function(i){return e(t[i],i)})}function Ht(t){for(var e=arguments.length,i=Array(e&gt;1?e-1:0),n=1;n&lt;e;n++)i[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[t].concat(i)):(i.forEach(function(e){e&amp;&amp;Ft(e,function(e,i){t[i]=e})}),t)}function Vt(t){return!!t&amp;&amp;"object"===(void 0===t?"undefined":Dt(t))}function zt(t){return Vt(t)&amp;&amp;"[object Object]"===Nt.call(t)&amp;&amp;t.constructor===Object}function Wt(t,e){if(!t||!e)return"";if("function"==typeof r.a.getComputedStyle){var i=r.a.getComputedStyle(t);return i?i[e]:""}return""}var qt=Ut(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]);function Gt(t){return"string"==typeof t&amp;&amp;/\S/.test(t)}function Xt(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function Yt(){return s.a===r.a.document}function Kt(t){return Vt(t)&amp;&amp;1===t.nodeType}function $t(){try{return r.a.parent!==r.a.self}catch(t){return!0}}function Jt(t){return function(e,i){if(!Gt(e))return s.a[t](null);Gt(i)&amp;&amp;(i=s.a.querySelector(i));var n=Kt(i)?i:s.a;return n[t]&amp;&amp;n[t](e)}}function Zt(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"div",e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{},n=arguments[3],r=s.a.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var i=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(It.warn(l()(qt,t,i)),r.setAttribute(t,i)):"textContent"===t?Qt(r,i):r[t]=i}),Object.getOwnPropertyNames(i).forEach(function(t){r.setAttribute(t,i[t])}),n&amp;&amp;ve(r,n),r}function Qt(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function te(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function ee(t,e){return Xt(e),t.classList?t.classList.contains(e):(i=e,new RegExp("(^|\\s)"+i+"($|\\s)")).test(t.className);var i}function ie(t,e){return t.classList?t.classList.add(e):ee(t,e)||(t.className=(t.className+" "+e).trim()),t}function ne(t,e){return t.classList?t.classList.remove(e):(Xt(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function re(t,e,i){var n=ee(t,e);if("function"==typeof i&amp;&amp;(i=i(t,e)),"boolean"!=typeof i&amp;&amp;(i=!n),i!==n)return i?ie(t,e):ne(t,e),t}function ae(t,e){Object.getOwnPropertyNames(e).forEach(function(i){var n=e[i];null===n||void 0===n||!1===n?t.removeAttribute(i):t.setAttribute(i,!0===n?"":n)})}function se(t){var e={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&amp;&amp;t.attributes&amp;&amp;t.attributes.length&gt;0)for(var n=t.attributes,r=n.length-1;r&gt;=0;r--){var a=n[r].name,s=n[r].value;"boolean"!=typeof t[a]&amp;&amp;-1===i.indexOf(","+a+",")||(s=null!==s),e[a]=s}return e}function oe(t,e){return t.getAttribute(e)}function le(t,e,i){t.setAttribute(e,i)}function ue(t,e){t.removeAttribute(e)}function ce(){s.a.body.focus(),s.a.onselectstart=function(){return!1}}function he(){s.a.onselectstart=function(){return!0}}function de(t){if(t&amp;&amp;t.getBoundingClientRect&amp;&amp;t.parentNode){var e=t.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(t){void 0!==e[t]&amp;&amp;(i[t]=e[t])}),i.height||(i.height=parseFloat(Wt(t,"height"))),i.width||(i.width=parseFloat(Wt(t,"width"))),i}}function pe(t){var e=void 0;if(t.getBoundingClientRect&amp;&amp;t.parentNode&amp;&amp;(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var i=s.a.documentElement,n=s.a.body,a=i.clientLeft||n.clientLeft||0,o=r.a.pageXOffset||n.scrollLeft,l=e.left+o-a,u=i.clientTop||n.clientTop||0,c=r.a.pageYOffset||n.scrollTop,h=e.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function fe(t,e){var i={},n=pe(t),r=t.offsetWidth,a=t.offsetHeight,s=n.top,o=n.left,l=e.pageY,u=e.pageX;return e.changedTouches&amp;&amp;(u=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-l+a)/a)),i.x=Math.max(0,Math.min(1,(u-o)/r)),i}function ge(t){return Vt(t)&amp;&amp;3===t.nodeType}function me(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function ye(t){return"function"==typeof t&amp;&amp;(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&amp;&amp;(t=t()),Kt(t)||ge(t)?t:"string"==typeof t&amp;&amp;/\S/.test(t)?s.a.createTextNode(t):void 0}).filter(function(t){return t})}function ve(t,e){return ye(e).forEach(function(e){return t.appendChild(e)}),t}function _e(t,e){return ve(me(t),e)}function be(t){return void 0===t.button&amp;&amp;void 0===t.buttons||(0===t.button&amp;&amp;void 0===t.buttons||0===t.button&amp;&amp;1===t.buttons)}var Te=Jt("querySelector"),Se=Jt("querySelectorAll"),ke=Object.freeze({isReal:Yt,isEl:Kt,isInFrame:$t,createEl:Zt,textContent:Qt,prependTo:te,hasClass:ee,addClass:ie,removeClass:ne,toggleClass:re,setAttributes:ae,getAttributes:se,getAttribute:oe,setAttribute:le,removeAttribute:ue,blockTextSelection:ce,unblockTextSelection:he,getBoundingClientRect:de,findPosition:pe,getPointerPosition:fe,isTextNode:ge,emptyEl:me,normalizeContent:ye,appendContent:ve,insertContent:_e,isSingleLeftClick:be,$:Te,$$:Se}),Ce=1;function we(){return Ce++}var Ee={},Ae="vdata"+(new Date).getTime();function xe(t){var e=t[Ae];return e||(e=t[Ae]=we()),Ee[e]||(Ee[e]={}),Ee[e]}function Oe(t){var e=t[Ae];return!!e&amp;&amp;!!Object.getOwnPropertyNames(Ee[e]).length}function Pe(t){var e=t[Ae];if(e){delete Ee[e];try{delete t[Ae]}catch(e){t.removeAttribute?t.removeAttribute(Ae):t[Ae]=null}}}function Le(t,e){var i=xe(t);0===i.handlers[e].length&amp;&amp;(delete i.handlers[e],t.removeEventListener?t.removeEventListener(e,i.dispatcher,!1):t.detachEvent&amp;&amp;t.detachEvent("on"+e,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length&lt;=0&amp;&amp;(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&amp;&amp;Pe(t)}function Ie(t,e,i,n){i.forEach(function(i){t(e,i,n)})}function De(t){function e(){return!0}function i(){return!1}if(!t||!t.isPropagationStopped){var n=t||r.a.event;for(var a in t={},n)"layerX"!==a&amp;&amp;"layerY"!==a&amp;&amp;"keyLocation"!==a&amp;&amp;"webkitMovementX"!==a&amp;&amp;"webkitMovementY"!==a&amp;&amp;("returnValue"===a&amp;&amp;n.preventDefault||(t[a]=n[a]));if(t.target||(t.target=t.srcElement||s.a),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){n.preventDefault&amp;&amp;n.preventDefault(),t.returnValue=!1,n.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){n.stopPropagation&amp;&amp;n.stopPropagation(),t.cancelBubble=!0,n.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=i,t.stopImmediatePropagation=function(){n.stopImmediatePropagation&amp;&amp;n.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=i,null!==t.clientX&amp;&amp;void 0!==t.clientX){var o=s.a.documentElement,l=s.a.body;t.pageX=t.clientX+(o&amp;&amp;o.scrollLeft||l&amp;&amp;l.scrollLeft||0)-(o&amp;&amp;o.clientLeft||l&amp;&amp;l.clientLeft||0),t.pageY=t.clientY+(o&amp;&amp;o.scrollTop||l&amp;&amp;l.scrollTop||0)-(o&amp;&amp;o.clientTop||l&amp;&amp;l.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&amp;&amp;void 0!==t.button&amp;&amp;(t.button=1&amp;t.button?0:4&amp;t.button?1:2&amp;t.button?2:0)}return t}var Me=!1;!function(){try{var t=Object.defineProperty({},"passive",{get:function(){Me=!0}});r.a.addEventListener("test",null,t),r.a.removeEventListener("test",null,t)}catch(t){}}();var Re=["touchstart","touchmove"];function je(t,e,i){if(Array.isArray(e))return Ie(je,t,e,i);var n=xe(t);if(n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),i.guid||(i.guid=we()),n.handlers[e].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,i){if(!n.disabled){e=De(e);var r=n.handlers[e.type];if(r)for(var a=r.slice(0),s=0,o=a.length;s&lt;o&amp;&amp;!e.isImmediatePropagationStopped();s++)try{a[s].call(t,e,i)}catch(t){It.error(t)}}}),1===n.handlers[e].length)if(t.addEventListener){var r=!1;Me&amp;&amp;Re.indexOf(e)&gt;-1&amp;&amp;(r={passive:!0}),t.addEventListener(e,n.dispatcher,r)}else t.attachEvent&amp;&amp;t.attachEvent("on"+e,n.dispatcher)}function Ue(t,e,i){if(Oe(t)){var n=xe(t);if(n.handlers){if(Array.isArray(e))return Ie(Ue,t,e,i);var r=function(t,e){n.handlers[e]=[],Le(t,e)};if(void 0!==e){var a=n.handlers[e];if(a)if(i){if(i.guid)for(var s=0;s&lt;a.length;s++)a[s].guid===i.guid&amp;&amp;a.splice(s--,1);Le(t,e)}else r(t,e)}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&amp;&amp;r(t,o)}}}function Ne(t,e,i){var n=Oe(t)?xe(t):{},r=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=De(e),n.dispatcher&amp;&amp;n.dispatcher.call(t,e,i),r&amp;&amp;!e.isPropagationStopped()&amp;&amp;!0===e.bubbles)Ne.call(null,r,e,i);else if(!r&amp;&amp;!e.defaultPrevented){var a=xe(e.target);e.target[e.type]&amp;&amp;(a.disabled=!0,"function"==typeof e.target[e.type]&amp;&amp;e.target[e.type](),a.disabled=!1)}return!e.defaultPrevented}function Be(t,e,i){if(Array.isArray(e))return Ie(Be,t,e,i);var n=function n(){Ue(t,e,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||we(),je(t,e,n)}var Fe=Object.freeze({fixEvent:De,on:je,off:Ue,trigger:Ne,one:Be}),He=!1,Ve=void 0,ze=function(){if(Yt()&amp;&amp;!1!==Ve.options.autoSetup){var t=Array.prototype.slice.call(s.a.getElementsByTagName("video")),e=Array.prototype.slice.call(s.a.getElementsByTagName("audio")),i=Array.prototype.slice.call(s.a.getElementsByTagName("video-js")),n=t.concat(e,i);if(n&amp;&amp;n.length&gt;0)for(var r=0,a=n.length;r&lt;a;r++){var o=n[r];if(!o||!o.getAttribute){We(1);break}void 0===o.player&amp;&amp;null!==o.getAttribute("data-setup")&amp;&amp;Ve(o)}else He||We(1)}};function We(t,e){e&amp;&amp;(Ve=e),r.a.setTimeout(ze,t)}Yt()&amp;&amp;"complete"===s.a.readyState?He=!0:Be(r.a,"load",function(){He=!0});var qe=function(t){var e=s.a.createElement("style");return e.className=t,e},Ge=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},Xe=function(t,e,i){e.guid||(e.guid=we());var n=function(){return e.apply(t,arguments)};return n.guid=i?i+"_"+e.guid:e.guid,n},Ye=function(t,e){var i=Date.now();return function(){var n=Date.now();n-i&gt;=e&amp;&amp;(t.apply(void 0,arguments),i=n)}},Ke=function(t,e,i){var n=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:r.a,a=void 0,s=function(){var r=this,s=arguments,o=function(){a=null,o=null,i||t.apply(r,s)};!a&amp;&amp;i&amp;&amp;t.apply(r,s),n.clearTimeout(a),a=n.setTimeout(o,e)};return s.cancel=function(){n.clearTimeout(a),a=null},s},$e=function(){};$e.prototype.allowedEvents_={},$e.prototype.on=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},je(this,t,e),this.addEventListener=i},$e.prototype.addEventListener=$e.prototype.on,$e.prototype.off=function(t,e){Ue(this,t,e)},$e.prototype.removeEventListener=$e.prototype.off,$e.prototype.one=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},Be(this,t,e),this.addEventListener=i},$e.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&amp;&amp;(t={type:e}),t=De(t),this.allowedEvents_[e]&amp;&amp;this["on"+e]&amp;&amp;this["on"+e](t),Ne(this,t)},$e.prototype.dispatchEvent=$e.prototype.trigger;var Je=void 0;$e.prototype.queueTrigger=function(t){var e=this;Je||(Je=new Map);var i=t.type||t,n=Je.get(this);n||(n=new Map,Je.set(this,n));var a=n.get(i);n.delete(i),r.a.clearTimeout(a);var s=r.a.setTimeout(function(){0===n.size&amp;&amp;(n=null,Je.delete(e)),e.trigger(t)},0);n.set(i,s)};var Ze=function(t){return t instanceof $e||!!t.eventBusEl_&amp;&amp;["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},Qe=function(t){return"string"==typeof t&amp;&amp;/\S/.test(t)||Array.isArray(t)&amp;&amp;!!t.length},ti=function(t){if(!t.nodeName&amp;&amp;!Ze(t))throw new Error("Invalid target; must be a DOM node or evented object.")},ei=function(t){if(!Qe(t))throw new Error("Invalid event type; must be a non-empty string or array.")},ii=function(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")},ni=function(t,e){var i=e.length&lt;3||e[0]===t||e[0]===t.eventBusEl_,n=void 0,r=void 0,a=void 0;return i?(n=t.eventBusEl_,e.length&gt;=3&amp;&amp;e.shift(),r=e[0],a=e[1]):(n=e[0],r=e[1],a=e[2]),ti(n),ei(r),ii(a),{isTargetingSelf:i,target:n,type:r,listener:a=Xe(t,a)}},ri=function(t,e,i,n){ti(t),t.nodeName?Fe[e](t,i,n):t[e](i,n)},ai={on:function(){for(var t=this,e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];var r=ni(this,i),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(ri(s,"on",o,l),!a){var u=function(){return t.off(s,o,l)};u.guid=l.guid;var c=function(){return t.off("dispose",u)};c.guid=l.guid,ri(this,"on","dispose",u),ri(s,"on","dispose",c)}},one:function(){for(var t=this,e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];var r=ni(this,i),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)ri(s,"one",o,l);else{var u=function e(){for(var i=arguments.length,n=Array(i),r=0;r&lt;i;r++)n[r]=arguments[r];t.off(s,o,e),l.apply(null,n)};u.guid=l.guid,ri(s,"one",o,u)}},off:function(t,e,i){if(!t||Qe(t))Ue(this.eventBusEl_,t,e);else{var n=t,r=e;ti(n),ei(r),ii(i),i=Xe(this,i),this.off("dispose",i),n.nodeName?(Ue(n,r,i),Ue(n,"dispose",i)):Ze(n)&amp;&amp;(n.off(r,i),n.off("dispose",i))}},trigger:function(t,e){return Ne(this.eventBusEl_,t,e)}};function si(t){var e=(arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(e){if(!t[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');t.eventBusEl_=t[e]}else t.eventBusEl_=Zt("span",{className:"vjs-event-bus"});return Ht(t,ai),t.on("dispose",function(){t.off(),r.a.setTimeout(function(){t.eventBusEl_=null},0)}),t}var oi={state:{},setState:function(t){var e=this;"function"==typeof t&amp;&amp;(t=t());var i=void 0;return Ft(t,function(t,n){e.state[n]!==t&amp;&amp;((i=i||{})[n]={from:e.state[n],to:t}),e.state[n]=t}),i&amp;&amp;Ze(this)&amp;&amp;this.trigger({changes:i,type:"statechanged"}),i}};function li(t,e){return Ht(t,oi),t.state=Ht({},t.state,e),"function"==typeof t.handleStateChanged&amp;&amp;Ze(t)&amp;&amp;t.on("statechanged",t.handleStateChanged),t}function ui(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function ci(){for(var t={},e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];return i.forEach(function(e){e&amp;&amp;Ft(e,function(e,i){zt(e)?(zt(t[i])||(t[i]={}),t[i]=ci(t[i],e)):t[i]=e})}),t}var hi=function(){function t(e,i,n){if(Mt(this,t),!e&amp;&amp;this.play?this.player_=e=this:this.player_=e,this.options_=ci({},this.options_),i=this.options_=ci(this.options_,i),this.id_=i.id||i.el&amp;&amp;i.el.id,!this.id_){var r=e&amp;&amp;e.id&amp;&amp;e.id()||"no_player";this.id_=r+"_component_"+we()}this.name_=i.name||null,i.el?this.el_=i.el:!1!==i.createEl&amp;&amp;(this.el_=this.createEl()),!1!==i.evented&amp;&amp;si(this,{eventBusKey:this.el_?"el_":null}),li(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==i.initChildren&amp;&amp;this.initChildren(),this.ready(n),!1!==i.reportTouchActivity&amp;&amp;this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t&gt;=0;t--)this.children_[t].dispose&amp;&amp;this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&amp;&amp;(this.el_.parentNode&amp;&amp;this.el_.parentNode.removeChild(this.el_),Pe(this.el_),this.el_=null),this.player_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return It.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=ci(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,i){return Zt(t,e,i)},t.prototype.localize=function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:t,n=this.player_.language&amp;&amp;this.player_.language(),r=this.player_.languages&amp;&amp;this.player_.languages(),a=r&amp;&amp;r[n],s=n&amp;&amp;n.split("-")[0],o=r&amp;&amp;r[s],l=i;return a&amp;&amp;a[t]?l=a[t]:o&amp;&amp;o[t]&amp;&amp;(l=o[t]),e&amp;&amp;(l=l.replace(/\{(\d+)\}/g,function(t,i){var n=e[i-1],r=n;return void 0===n&amp;&amp;(r=t),r})),l},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){if(t)return t=ui(t),this.childNameIndex_[t]},t.prototype.addChild=function(e){var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,a=void 0;if("string"==typeof e){a=ui(e);var s=i.componentClass||a;i.name=a;var o=t.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,i)}else r=e;if(this.children_.splice(n,0,r),"function"==typeof r.id&amp;&amp;(this.childIndex_[r.id()]=r),(a=a||r.name&amp;&amp;ui(r.name()))&amp;&amp;(this.childNameIndex_[a]=r),"function"==typeof r.el&amp;&amp;r.el()){var l=this.contentEl().children[n]||null;this.contentEl().insertBefore(r.el(),l)}return r},t.prototype.removeChild=function(t){if("string"==typeof t&amp;&amp;(t=this.getChild(t)),t&amp;&amp;this.children_){for(var e=!1,i=this.children_.length-1;i&gt;=0;i--)if(this.children_[i]===t){e=!0,this.children_.splice(i,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var n=t.el();n&amp;&amp;n.parentNode===this.contentEl()&amp;&amp;this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,i=this.options_.children;if(i){var n=this.options_,r=void 0,a=t.getComponent("Tech");(r=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter(function(t){return!r.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var n=void 0,r=void 0;return"string"==typeof t?r=i[n=t]||e.options_[n]||{}:(n=t.name,r=t),{name:n,opts:r}}).filter(function(e){var i=t.getComponent(e.opts.componentClass||ui(e.name));return i&amp;&amp;!a.isTech(i)}).forEach(function(t){var i=t.name,r=t.opts;if(void 0!==n[i]&amp;&amp;(r=n[i]),!1!==r){!0===r&amp;&amp;(r={}),r.playerOptions=e.options_.playerOptions;var a=e.addChild(i,r);a&amp;&amp;(e[i]=a)}})}},t.prototype.buildCSSClass=function(){return""},t.prototype.ready=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&amp;&amp;t.length&gt;0&amp;&amp;t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return Te(t,e||this.contentEl())},t.prototype.$$=function(t,e){return Se(t,e||this.contentEl())},t.prototype.hasClass=function(t){return ee(this.el_,t)},t.prototype.addClass=function(t){ie(this.el_,t)},t.prototype.removeClass=function(t){ne(this.el_,t)},t.prototype.toggleClass=function(t,e){re(this.el_,t,e)},t.prototype.show=function(){this.removeClass("vjs-hidden")},t.prototype.hide=function(){this.addClass("vjs-hidden")},t.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},t.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.prototype.getAttribute=function(t){return oe(this.el_,t)},t.prototype.setAttribute=function(t,e){le(this.el_,t,e)},t.prototype.removeAttribute=function(t){ue(this.el_,t)},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},t.prototype.dimension=function(t,e,i){if(void 0!==e)return null!==e&amp;&amp;e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[t],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+ui(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&amp;&amp;"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof r.a.getComputedStyle){var i=r.a.getComputedStyle(this.el_);e=i.getPropertyValue(t)||i[t]}if(0===(e=parseFloat(e))){var n="offset"+ui(t);e=this.el_[n]}return e},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.focus=function(){this.el_.focus()},t.prototype.blur=function(){this.el_.blur()},t.prototype.emitTapEvents=function(){var t=0,e=null,i=void 0;this.on("touchstart",function(n){1===n.touches.length&amp;&amp;(e={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=(new Date).getTime(),i=!0)}),this.on("touchmove",function(t){if(t.touches.length&gt;1)i=!1;else if(e){var n=t.touches[0].pageX-e.pageX,r=t.touches[0].pageY-e.pageY;Math.sqrt(n*n+r*r)&gt;10&amp;&amp;(i=!1)}});var n=function(){i=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){(e=null,!0===i)&amp;&amp;((new Date).getTime()-t&lt;200&amp;&amp;(n.preventDefault(),this.trigger("tap")))})},t.prototype.enableTouchActivity=function(){if(this.player()&amp;&amp;this.player().reportUserActivity){var t=Xe(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.prototype.setTimeout=function(t,e){var i,n,a=this;return t=Xe(this,t),i=r.a.setTimeout(function(){a.off("dispose",n),t()},e),(n=function(){return a.clearTimeout(i)}).guid="vjs-timeout-"+i,this.on("dispose",n),i},t.prototype.clearTimeout=function(t){r.a.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){var i=this;t=Xe(this,t);var n=r.a.setInterval(t,e),a=function(){return i.clearInterval(n)};return a.guid="vjs-interval-"+n,this.on("dispose",a),n},t.prototype.clearInterval=function(t){r.a.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.prototype.requestAnimationFrame=function(t){var e,i,n=this;return this.supportsRaf_?(t=Xe(this,t),e=r.a.requestAnimationFrame(function(){n.off("dispose",i),t()}),(i=function(){return n.cancelAnimationFrame(e)}).guid="vjs-raf-"+e,this.on("dispose",i),e):this.setTimeout(t,1e3/60)},t.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){r.a.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},t.registerComponent=function(e,i){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var n=t.getComponent("Tech"),r=n&amp;&amp;n.isTech(i),a=t===i||t.prototype.isPrototypeOf(i.prototype);if(r||!a){var s=void 0;throw s=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+s+".")}e=ui(e),t.components_||(t.components_={});var o=t.getComponent("Player");if("Player"===e&amp;&amp;o&amp;&amp;o.players){var l=o.players,u=Object.keys(l);if(l&amp;&amp;u.length&gt;0&amp;&amp;u.map(function(t){return l[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=i,i},t.getComponent=function(e){if(e)return e=ui(e),t.components_&amp;&amp;t.components_[e]?t.components_[e]:void 0},t}();hi.prototype.supportsRaf_="function"==typeof r.a.requestAnimationFrame&amp;&amp;"function"==typeof r.a.cancelAnimationFrame,hi.registerComponent("Component",hi);var di,pi=r.a.navigator&amp;&amp;r.a.navigator.userAgent||"",fi=/AppleWebKit\/([\d.]+)/i.exec(pi),gi=fi?parseFloat(fi.pop()):null,mi=/iPad/i.test(pi),yi=/iPhone/i.test(pi)&amp;&amp;!mi,vi=/iPod/i.test(pi),_i=yi||mi||vi,bi=(di=pi.match(/OS (\d+)_/i))&amp;&amp;di[1]?di[1]:null,Ti=/Android/i.test(pi),Si=function(){var t=pi.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&amp;&amp;parseFloat(t[1]),i=t[2]&amp;&amp;parseFloat(t[2]);return e&amp;&amp;i?parseFloat(t[1]+"."+t[2]):e||null}(),ki=Ti&amp;&amp;Si&lt;5&amp;&amp;gi&lt;537,Ci=/Firefox/i.test(pi),wi=/Edge/i.test(pi),Ei=!wi&amp;&amp;(/Chrome/i.test(pi)||/CriOS/i.test(pi)),Ai=function(){var t=pi.match(/(Chrome|CriOS)\/(\d+)/);return t&amp;&amp;t[2]?parseFloat(t[2]):null}(),xi=function(){var t=/MSIE\s(\d+)\.\d/.exec(pi),e=t&amp;&amp;parseFloat(t[1]);return!e&amp;&amp;/Trident\/7.0/i.test(pi)&amp;&amp;/rv:11.0/.test(pi)&amp;&amp;(e=11),e}(),Oi=/Safari/i.test(pi)&amp;&amp;!Ei&amp;&amp;!Ti&amp;&amp;!wi,Pi=(Oi||_i)&amp;&amp;!Ei,Li=Yt()&amp;&amp;("ontouchstart"in r.a||r.a.navigator.maxTouchPoints||r.a.DocumentTouch&amp;&amp;r.a.document instanceof r.a.DocumentTouch),Ii=Object.freeze({IS_IPAD:mi,IS_IPHONE:yi,IS_IPOD:vi,IS_IOS:_i,IOS_VERSION:bi,IS_ANDROID:Ti,ANDROID_VERSION:Si,IS_NATIVE_ANDROID:ki,IS_FIREFOX:Ci,IS_EDGE:wi,IS_CHROME:Ei,CHROME_VERSION:Ai,IE_VERSION:xi,IS_SAFARI:Oi,IS_ANY_SAFARI:Pi,TOUCH_ENABLED:Li});function Di(t,e,i,n){return function(t,e,i){if("number"!=typeof e||e&lt;0||e&gt;i)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+i+").")}(t,n,i.length-1),i[n][e]}function Mi(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:Di.bind(null,"start",0,t),end:Di.bind(null,"end",1,t)}}function Ri(t,e){return Array.isArray(t)?Mi(t):void 0===t||void 0===e?Mi():Mi([[t,e]])}function ji(t,e){var i=0,n=void 0,r=void 0;if(!e)return 0;t&amp;&amp;t.length||(t=Ri(0,0));for(var a=0;a&lt;t.length;a++)n=t.start(a),(r=t.end(a))&gt;e&amp;&amp;(r=e),i+=r-n;return i/e}for(var Ui={},Ni=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Bi=Ni[0],Fi=void 0,Hi=0;Hi&lt;Ni.length;Hi++)if(Ni[Hi][1]in s.a){Fi=Ni[Hi];break}if(Fi)for(var Vi=0;Vi&lt;Fi.length;Vi++)Ui[Bi[Vi]]=Fi[Vi];function zi(t){if(t instanceof zi)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:Vt(t)&amp;&amp;("number"==typeof t.code&amp;&amp;(this.code=t.code),Ht(this,t)),this.message||(this.message=zi.defaultMessages[this.code]||"")}zi.prototype.code=0,zi.prototype.message="",zi.prototype.status=null,zi.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],zi.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Wi=0;Wi&lt;zi.errorTypes.length;Wi++)zi[zi.errorTypes[Wi]]=Wi,zi.prototype[zi.errorTypes[Wi]]=Wi;function qi(t){return void 0!==t&amp;&amp;null!==t&amp;&amp;"function"==typeof t.then}function Gi(t){qi(t)&amp;&amp;t.then(null,function(t){})}var Xi=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,i,n){return t[i]&amp;&amp;(e[i]=t[i]),e},{cues:t.cues&amp;&amp;Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},Yi=function(t){var e=t.$$("track"),i=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=Xi(t.track);return t.src&amp;&amp;(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===i.indexOf(t)}).map(Xi))},Ki=function(t,e){return t.forEach(function(t){var i=e.addRemoteTextTrack(t).track;!t.src&amp;&amp;t.cues&amp;&amp;t.cues.forEach(function(t){return i.addCue(t)})}),e.textTracks()},$i="vjs-modal-dialog",Ji=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=Zt("div",{className:$i+"-content"},{role:"document"}),r.descEl_=Zt("p",{className:$i+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),Qt(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return $i+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&amp;&amp;this.closeable()&amp;&amp;this.close()},e.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&amp;&amp;(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&amp;&amp;!this.hasBeenFilled_)&amp;&amp;this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&amp;&amp;this.wasPlaying_&amp;&amp;t.pause(),this.closeable()&amp;&amp;this.on(this.el_.ownerDocument,"keydown",Xe(this,this.handleKeyPress)),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},e.prototype.opened=function(t){return"boolean"==typeof t&amp;&amp;this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&amp;&amp;this.options_.pauseOnOpen&amp;&amp;t.play(),this.closeable()&amp;&amp;this.off(this.el_.ownerDocument,"keydown",Xe(this,this.handleKeyPress)),this.hadControls_&amp;&amp;t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&amp;&amp;this.dispose()}},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,i=this.getChild("closeButton");if(e&amp;&amp;!i){var n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close)}!e&amp;&amp;i&amp;&amp;(this.off(i,"close",this.close),this.removeChild(i),i.dispose())}return this.closeable_},e.prototype.fill=function(){this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),i=e.parentNode,n=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(e),this.empty(),_e(e,t),this.trigger("modalfill"),n?i.insertBefore(e,n):i.appendChild(e);var r=this.getChild("closeButton");r&amp;&amp;i.appendChild(r.el_)},e.prototype.empty=function(){this.trigger("beforemodalempty"),me(this.contentEl()),this.trigger("modalempty")},e.prototype.content=function(t){return void 0!==t&amp;&amp;(this.content_=t),this.content_},e.prototype.conditionalFocus_=function(){var t=s.a.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&amp;&amp;(this.previouslyActiveEl_=t,this.focus(),this.on(s.a,"keydown",this.handleKeyDown))},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&amp;&amp;(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(s.a,"keydown",this.handleKeyDown)},e.prototype.handleKeyDown=function(t){if(9===t.which){for(var e=this.focusableEls_(),i=this.el_.querySelector(":focus"),n=void 0,r=0;r&lt;e.length;r++)if(i===e[r]){n=r;break}s.a.activeElement===this.el_&amp;&amp;(n=0),t.shiftKey&amp;&amp;0===n?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||n!==e.length-1||(e[0].focus(),t.preventDefault())}},e.prototype.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(t){return(t instanceof r.a.HTMLAnchorElement||t instanceof r.a.HTMLAreaElement)&amp;&amp;t.hasAttribute("href")||(t instanceof r.a.HTMLInputElement||t instanceof r.a.HTMLSelectElement||t instanceof r.a.HTMLTextAreaElement||t instanceof r.a.HTMLButtonElement)&amp;&amp;!t.hasAttribute("disabled")||t instanceof r.a.HTMLIFrameElement||t instanceof r.a.HTMLObjectElement||t instanceof r.a.HTMLEmbedElement||t.hasAttribute("tabindex")&amp;&amp;-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")})},e}(hi);Ji.prototype.options_={pauseOnOpen:!0,temporary:!0},hi.registerComponent("ModalDialog",Ji);var Zi=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];Mt(this,e);var n=jt(this,t.call(this));n.tracks_=[],Object.defineProperty(n,"length",{get:function(){return this.tracks_.length}});for(var r=0;r&lt;i.length;r++)n.addTrack(i[r]);return n}return Rt(e,t),e.prototype.addTrack=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&amp;&amp;(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack=function(t){for(var e=void 0,i=0,n=this.length;i&lt;n;i++)if(this[i]===t){(e=this[i]).off&amp;&amp;e.off(),this.tracks_.splice(i,1);break}e&amp;&amp;this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,i=0,n=this.length;i&lt;n;i++){var r=this[i];if(r.id===t){e=r;break}}return e},e}($e);for(var Qi in Zi.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Zi.prototype.allowedEvents_)Zi.prototype["on"+Qi]=null;var tn=function(t,e){for(var i=0;i&lt;t.length;i++)Object.keys(t[i]).length&amp;&amp;e.id!==t[i].id&amp;&amp;(t[i].enabled=!1)},en=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];Mt(this,e);for(var n=i.length-1;n&gt;=0;n--)if(i[n].enabled){tn(i,i[n]);break}var r=jt(this,t.call(this,i));return r.changing_=!1,r}return Rt(e,t),e.prototype.addTrack=function(e){var i=this;e.enabled&amp;&amp;tn(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&amp;&amp;e.addEventListener("enabledchange",function(){i.changing_||(i.changing_=!0,tn(i,e),i.changing_=!1,i.trigger("change"))})},e}(Zi),nn=function(t,e){for(var i=0;i&lt;t.length;i++)Object.keys(t[i]).length&amp;&amp;e.id!==t[i].id&amp;&amp;(t[i].selected=!1)},rn=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];Mt(this,e);for(var n=i.length-1;n&gt;=0;n--)if(i[n].selected){nn(i,i[n]);break}var r=jt(this,t.call(this,i));return r.changing_=!1,Object.defineProperty(r,"selectedIndex",{get:function(){for(var t=0;t&lt;this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),r}return Rt(e,t),e.prototype.addTrack=function(e){var i=this;e.selected&amp;&amp;nn(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&amp;&amp;e.addEventListener("selectedchange",function(){i.changing_||(i.changing_=!0,nn(i,e),i.changing_=!1,i.trigger("change"))})},e}(Zi),an=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.addTrack=function(e){t.prototype.addTrack.call(this,e),e.addEventListener("modechange",Xe(this,function(){this.queueTrigger("change")}));-1===["metadata","chapters"].indexOf(e.kind)&amp;&amp;e.addEventListener("modechange",Xe(this,function(){this.trigger("selectedlanguagechange")}))},e}(Zi),sn=function(){function t(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];Mt(this,t),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var i=0,n=e.length;i&lt;n;i++)this.addTrackElement_(e[i])}return t.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&amp;&amp;this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,i=0,n=this.trackElements_.length;i&lt;n;i++)if(t===this.trackElements_[i].track){e=this.trackElements_[i];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,i=this.trackElements_.length;e&lt;i;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}(),on=function(){function t(e){Mt(this,t),t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}return t.prototype.setCues_=function(t){var e=this.length||0,i=0,n=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e&lt;n)for(i=e;i&lt;n;i++)r.call(this,i)},t.prototype.getCueById=function(t){for(var e=null,i=0,n=this.length;i&lt;n;i++){var r=this[i];if(r.id===t){e=r;break}}return e},t}(),ln={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},un={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},cn={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},hn={disabled:"disabled",hidden:"hidden",showing:"showing"},dn=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};Mt(this,e);var n=jt(this,t.call(this)),r={id:i.id||"vjs_track_"+we(),kind:i.kind||"",label:i.label||"",language:i.language||""},a=function(t){Object.defineProperty(n,t,{get:function(){return r[t]},set:function(){}})};for(var s in r)a(s);return n}return Rt(e,t),e}($e),pn=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],i=s.a.createElement("a");i.href=t;var n=""===i.host&amp;&amp;"file:"!==i.protocol,a=void 0;n&amp;&amp;((a=s.a.createElement("div")).innerHTML='&lt;a href="'+t+'"&gt;&lt;/a&gt;',i=a.firstChild,a.setAttribute("style","display:none; position:absolute;"),s.a.body.appendChild(a));for(var o={},l=0;l&lt;e.length;l++)o[e[l]]=i[e[l]];return"http:"===o.protocol&amp;&amp;(o.host=o.host.replace(/:80$/,"")),"https:"===o.protocol&amp;&amp;(o.host=o.host.replace(/:443$/,"")),o.protocol||(o.protocol=r.a.location.protocol),n&amp;&amp;s.a.body.removeChild(a),o},fn=function(t){if(!t.match(/^https?:\/\//)){var e=s.a.createElement("div");e.innerHTML='&lt;a href="'+t+'"&gt;x&lt;/a&gt;',t=e.firstChild.href}return t},gn=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},mn=function(t){var e=r.a.location,i=pn(t);return(":"===i.protocol?e.protocol:i.protocol)+i.host!==e.protocol+e.host},yn=Object.freeze({parseUrl:pn,getAbsoluteURL:fn,getFileExtension:gn,isCrossOrigin:mn}),vn=function(t,e){var i=new r.a.WebVTT.Parser(r.a,r.a.vttjs,r.a.WebVTT.StringDecoder()),n=[];i.oncue=function(t){e.addCue(t)},i.onparsingerror=function(t){n.push(t)},i.onflush=function(){e.trigger({type:"loadeddata",target:e})},i.parse(t),n.length&gt;0&amp;&amp;(r.a.console&amp;&amp;r.a.console.groupCollapsed&amp;&amp;r.a.console.groupCollapsed("Text Track parsing errors for "+e.src),n.forEach(function(t){return It.error(t)}),r.a.console&amp;&amp;r.a.console.groupEnd&amp;&amp;r.a.console.groupEnd()),i.flush()},_n=function(t,e){var i={uri:t},n=mn(t);n&amp;&amp;(i.cors=n),c()(i,Xe(this,function(t,i,n){if(t)return It.error(t,i);if(e.loaded_=!0,"function"!=typeof r.a.WebVTT){if(e.tech_){var a=function(){return vn(n,e)};e.tech_.on("vttjsloaded",a),e.tech_.on("vttjserror",function(){It.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",a)})}}else vn(n,e)}))},bn=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};if(Mt(this,e),!i.tech)throw new Error("A tech was not provided.");var n=ci(i,{kind:cn[i.kind]||"subtitles",language:i.language||i.srclang||""}),r=hn[n.mode]||"disabled",a=n.default;"metadata"!==n.kind&amp;&amp;"chapters"!==n.kind||(r="hidden");var s=jt(this,t.call(this,n));s.tech_=n.tech,s.cues_=[],s.activeCues_=[];var o=new on(s.cues_),l=new on(s.activeCues_),u=!1,c=Xe(s,function(){this.activeCues=this.activeCues,u&amp;&amp;(this.trigger("cuechange"),u=!1)});return"disabled"!==r&amp;&amp;s.tech_.ready(function(){s.tech_.on("timeupdate",c)},!0),Object.defineProperties(s,{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(t){var e=this;hn[t]&amp;&amp;("showing"===(r=t)&amp;&amp;this.tech_.ready(function(){e.tech_.on("timeupdate",c)},!0),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return l;for(var t=this.tech_.currentTime(),e=[],i=0,n=this.cues.length;i&lt;n;i++){var r=this.cues[i];r.startTime&lt;=t&amp;&amp;r.endTime&gt;=t?e.push(r):r.startTime===r.endTime&amp;&amp;r.startTime&lt;=t&amp;&amp;r.startTime+.5&gt;=t&amp;&amp;e.push(r)}if(u=!1,e.length!==this.activeCues_.length)u=!0;else for(var a=0;a&lt;e.length;a++)-1===this.activeCues_.indexOf(e[a])&amp;&amp;(u=!0);return this.activeCues_=e,l.setCues_(this.activeCues_),l},set:function(){}}}),n.src?(s.src=n.src,_n(n.src,s)):s.loaded_=!0,s}return Rt(e,t),e.prototype.addCue=function(t){var e=t;if(r.a.vttjs&amp;&amp;!(t instanceof r.a.vttjs.VTTCue)){for(var i in e=new r.a.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)i in e||(e[i]=t[i]);e.id=t.id,e.originalCue_=t}for(var n=this.tech_.textTracks(),a=0;a&lt;n.length;a++)n[a]!==this&amp;&amp;n[a].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(var e=this.cues_.length;e--;){var i=this.cues_[e];if(i===t||i.originalCue_&amp;&amp;i.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}(dn);bn.prototype.allowedEvents_={cuechange:"cuechange"};var Tn=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};Mt(this,e);var n=ci(i,{kind:un[i.kind]||""}),r=jt(this,t.call(this,n)),a=!1;return Object.defineProperty(r,"enabled",{get:function(){return a},set:function(t){"boolean"==typeof t&amp;&amp;t!==a&amp;&amp;(a=t,this.trigger("enabledchange"))}}),n.enabled&amp;&amp;(r.enabled=n.enabled),r.loaded_=!0,r}return Rt(e,t),e}(dn),Sn=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};Mt(this,e);var n=ci(i,{kind:ln[i.kind]||""}),r=jt(this,t.call(this,n)),a=!1;return Object.defineProperty(r,"selected",{get:function(){return a},set:function(t){"boolean"==typeof t&amp;&amp;t!==a&amp;&amp;(a=t,this.trigger("selectedchange"))}}),n.selected&amp;&amp;(r.selected=n.selected),r}return Rt(e,t),e}(dn),kn=0,Cn=2,wn=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};Mt(this,e);var n=jt(this,t.call(this)),r=void 0,a=new bn(i);return n.kind=a.kind,n.src=a.src,n.srclang=a.language,n.label=a.label,n.default=a.default,Object.defineProperties(n,{readyState:{get:function(){return r}},track:{get:function(){return a}}}),r=kn,a.addEventListener("loadeddata",function(){r=Cn,n.trigger({type:"load",target:n})}),n}return Rt(e,t),e}($e);wn.prototype.allowedEvents_={load:"load"},wn.NONE=kn,wn.LOADING=1,wn.LOADED=Cn,wn.ERROR=3;var En={audio:{ListClass:en,TrackClass:Tn,capitalName:"Audio"},video:{ListClass:rn,TrackClass:Sn,capitalName:"Video"},text:{ListClass:an,TrackClass:bn,capitalName:"Text"}};Object.keys(En).forEach(function(t){En[t].getterName=t+"Tracks",En[t].privateName=t+"Tracks_"});var An={remoteText:{ListClass:an,TrackClass:bn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:sn,TrackClass:wn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},xn=ci(En,An);An.names=Object.keys(An),En.names=Object.keys(En),xn.names=[].concat(An.names).concat(En.names);var On=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:function(){};Mt(this,e),i.reportTouchActivity=!1;var r=jt(this,t.call(this,null,i,n));return r.hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),xn.names.forEach(function(t){var e=xn[t];i&amp;&amp;i[e.getterName]&amp;&amp;(r[e.privateName]=i[e.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===i["native"+t+"Tracks"]&amp;&amp;(r["featuresNative"+t+"Tracks"]=!1)}),!1===i.nativeCaptions||!1===i.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==i.nativeCaptions&amp;&amp;!0!==i.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new xn.text.ListClass,r.initTrackListeners(),i.nativeControlsForTouch||r.emitTapEvents(),r.constructor&amp;&amp;(r.name_=r.constructor.name||"Unknown Tech"),r}return Rt(e,t),e.prototype.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",function(){return e.setTimeout(function(){return e.triggerSourceset(t)},1)}),this.trigger({src:t,type:"sourceset"})},e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Xe(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&amp;&amp;this.trigger("progress"),this.bufferedPercent_=t,1===t&amp;&amp;this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(t){this.duration_=this.duration()},e.prototype.buffered=function(){return Ri(0,0)},e.prototype.bufferedPercent=function(){return ji(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&amp;&amp;this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(En.names),this.manualProgress&amp;&amp;this.manualProgressOff(),this.manualTimeUpdates&amp;&amp;this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var i=e[t+"Tracks"]()||[],n=i.length;n--;){var r=i[n];"text"===t&amp;&amp;e.removeRemoteTextTrack(r),i.removeTrack(r)}})},e.prototype.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var i=t[e];this.removeRemoteTextTrack(i)}},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&amp;&amp;(this.error_=new zi(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?Ri(0,0):Ri()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&amp;&amp;this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTrackListeners=function(){var t=this;En.names.forEach(function(e){var i=En[e],n=function(){t.trigger(e+"trackchange")},r=t[i.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),t.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},e.prototype.addWebVttScript_=function(){var t=this;if(!r.a.WebVTT)if(s.a.body.contains(this.el())){if(!this.options_["vtt.js"]&amp;&amp;zt(d.a)&amp;&amp;Object.keys(d.a).length&gt;0)return void this.trigger("vttjsloaded");var e=s.a.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),r.a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks(),i=this.remoteTextTracks(),n=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return t.trigger("texttrackchange")},s=function(){a();for(var t=0;t&lt;e.length;t++){var i=e[t];i.removeEventListener("cuechange",a),"showing"===i.mode&amp;&amp;i.addEventListener("cuechange",a)}};s(),e.addEventListener("change",s),e.addEventListener("addtrack",s),e.addEventListener("removetrack",s),this.on("dispose",function(){i.off("addtrack",n),i.off("removetrack",r),e.removeEventListener("change",s),e.removeEventListener("addtrack",s),e.removeEventListener("removetrack",s);for(var t=0;t&lt;e.length;t++){e[t].removeEventListener("cuechange",a)}})},e.prototype.addTextTrack=function(t,e,i){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,i,n){var r=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:{},a=t.textTracks();r.kind=e,i&amp;&amp;(r.label=i),n&amp;&amp;(r.language=n),r.tech=t;var s=new xn.text.TrackClass(r);return a.addTrack(s),s}(this,t,e,i)},e.prototype.createRemoteTextTrack=function(t){var e=ci(t,{tech:this});return new An.remoteTextEl.TrackClass(e)},e.prototype.addRemoteTextTrack=function(){var t=this,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},i=arguments[1],n=this.createRemoteTextTrack(e);return!0!==i&amp;&amp;!1!==i&amp;&amp;(It.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==i&amp;&amp;this.ready(function(){return t.autoRemoteTextTracks_.addTrack(n.track)}),n},e.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},e.prototype.getVideoPlaybackQuality=function(){return{}},e.prototype.setPoster=function(){},e.prototype.playsinline=function(){},e.prototype.setPlaysinline=function(){},e.prototype.overrideNativeAudioTracks=function(){},e.prototype.overrideNativeVideoTracks=function(){},e.prototype.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,i){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,i){if(e.techs_||(e.techs_={}),!e.isTech(i))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=ui(t),e.techs_[t]=i,"Tech"!==t&amp;&amp;e.defaultTechOrder_.push(t),i},e.getTech=function(t){if(t)return t=ui(t),e.techs_&amp;&amp;e.techs_[t]?e.techs_[t]:r.a&amp;&amp;r.a.videojs&amp;&amp;r.a.videojs[t]?(It.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),r.a.videojs[t]):void 0},e}(hi);xn.names.forEach(function(t){var e=xn[t];On.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),On.prototype.featuresVolumeControl=!0,On.prototype.featuresMuteControl=!0,On.prototype.featuresFullscreenResize=!1,On.prototype.featuresPlaybackRate=!1,On.prototype.featuresProgressEvents=!1,On.prototype.featuresSourceset=!1,On.prototype.featuresTimeupdateEvents=!1,On.prototype.featuresNativeTextTracks=!1,On.withSourceHandlers=function(t){t.registerSourceHandler=function(e,i){var n=t.sourceHandlers;n||(n=t.sourceHandlers=[]),void 0===i&amp;&amp;(i=n.length),n.splice(i,0,e)},t.canPlayType=function(e){for(var i=t.sourceHandlers||[],n=void 0,r=0;r&lt;i.length;r++)if(n=i[r].canPlayType(e))return n;return""},t.selectSourceHandler=function(e,i){for(var n=t.sourceHandlers||[],r=0;r&lt;n.length;r++)if(n[r].canHandleSource(e,i))return n[r];return null},t.canPlaySource=function(e,i){var n=t.selectSourceHandler(e,i);return n?n.canHandleSource(e,i):""};["seekable","seeking","duration"].forEach(function(t){var e=this[t];"function"==typeof e&amp;&amp;(this[t]=function(){return this.sourceHandler_&amp;&amp;this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var i=t.selectSourceHandler(e,this.options_);i||(t.nativeSourceHandler?i=t.nativeSourceHandler:It.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),i!==t.nativeSourceHandler&amp;&amp;(this.currentSource_=e),this.sourceHandler_=i.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler)},t.prototype.disposeSourceHandler=function(){this.currentSource_&amp;&amp;(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&amp;&amp;(this.sourceHandler_.dispose&amp;&amp;this.sourceHandler_.dispose(),this.sourceHandler_=null)}},hi.registerComponent("Tech",On),On.registerTech("Tech",On),On.defaultTechOrder_=[];var Pn={},Ln={},In={};function Dn(t,e,i){t.setTimeout(function(){return function t(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:[];var n=arguments[2];var r=arguments[3];var a=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:[];var s=arguments.length&gt;5&amp;&amp;void 0!==arguments[5]&amp;&amp;arguments[5];var o=i[0],l=i.slice(1);if("string"==typeof o)t(e,Pn[o],n,r,a,s);else if(o){var u=function(t,e){var i=Ln[t.id()],n=null;if(void 0===i||null===i)return n=e(t),Ln[t.id()]=[[e,n]],n;for(var r=0;r&lt;i.length;r++){var a=i[r],s=a[0],o=a[1];s===e&amp;&amp;(n=o)}null===n&amp;&amp;(n=e(t),i.push([e,n]));return n}(r,o);if(!u.setSource)return a.push(u),t(e,l,n,r,a,s);u.setSource(Ht({},e),function(i,o){if(i)return t(e,l,n,r,a,s);a.push(u),t(o,e.type===o.type?l:Pn[o.type],n,r,a,s)})}else l.length?t(e,l,n,r,a,s):s?n(e,a):t(e,Pn["*"],n,r,a,!0)}(e,Pn[e.type],i,t)},1)}function Mn(t,e,i){var n=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:null,r="call"+ui(i),a=t.reduce(Nn(r),n),s=a===In,o=s?null:e[i](a);return function(t,e,i,n){for(var r=t.length-1;r&gt;=0;r--){var a=t[r];a[e]&amp;&amp;a[e](n,i)}}(t,i,o,s),o}var Rn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},jn={setCurrentTime:1},Un={play:1,pause:1};function Nn(t){return function(e,i){return e===In?In:i[t]?i[t](e):e}}var Bn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Fn=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",e=gn(t);return Bn[e.toLowerCase()]||""};function Hn(t){var e=Fn(t.src);return!t.type&amp;&amp;e&amp;&amp;(t.type=e),t}var Vn=function(t){function e(i,n,r){Mt(this,e);var a=ci({createEl:!1},n),s=jt(this,t.call(this,i,a,r));if(n.playerOptions.sources&amp;&amp;0!==n.playerOptions.sources.length)i.src(n.playerOptions.sources);else for(var o=0,l=n.playerOptions.techOrder;o&lt;l.length;o++){var u=ui(l[o]),c=On.getTech(u);if(u||(c=hi.getComponent(u)),c&amp;&amp;c.isSupported()){i.loadTech_(u);break}}return s}return Rt(e,t),e}(hi);hi.registerComponent("MediaLoader",Vn);var zn=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.emitTapEvents(),r.enable(),r}return Rt(e,t),e.prototype.createEl=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"div",i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};i=Ht({innerHTML:'&lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;',className:this.buildCSSClass(),tabIndex:0},i),"button"===e&amp;&amp;It.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=Ht({role:"button"},n),this.tabIndex_=i.tabIndex;var r=t.prototype.createEl.call(this,e,i,n);return this.createControlTextEl(r),r},e.prototype.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=Zt("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&amp;&amp;t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},e.prototype.controlText=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:this.el();if(void 0===t)return this.controlText_||"Need Text";var i=this.localize(t);this.controlText_=t,Qt(this.controlTextEl_,i),this.nonIconControl||e.setAttribute("title",i)},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&amp;&amp;this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},e.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&amp;&amp;this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},e.prototype.handleClick=function(t){},e.prototype.handleFocus=function(t){je(s.a,"keydown",Xe(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.trigger("click")):t.prototype.handleKeyPress&amp;&amp;t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(t){Ue(s.a,"keydown",Xe(this,this.handleKeyPress))},e}(hi);hi.registerComponent("ClickableComponent",zn);var Wn=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.update(),i.on("posterchange",Xe(r,r.update)),r}return Rt(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){return Zt("div",{className:"vjs-poster",tabIndex:-1})},e.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},e.prototype.setSrc=function(t){var e="";t&amp;&amp;(e='url("'+t+'")'),this.el_.style.backgroundImage=e},e.prototype.handleClick=function(t){this.player_.controls()&amp;&amp;(this.player_.paused()?Gi(this.player_.play()):this.player_.pause())},e}(zn);hi.registerComponent("PosterImage",Wn);var qn={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 Gn(t,e){var i=void 0;if(4===t.length)i=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");i=t.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+e+")"}function Xn(t,e,i){try{t.style[e]=i}catch(t){return}}var Yn=function(t){function e(i,n,r){Mt(this,e);var a=jt(this,t.call(this,i,n,r));return i.on("loadstart",Xe(a,a.toggleDisplay)),i.on("texttrackchange",Xe(a,a.updateDisplay)),i.on("loadstart",Xe(a,a.preselectTrack)),i.ready(Xe(a,function(){if(i.tech_&amp;&amp;i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",Xe(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e&lt;t.length;e++)this.player_.addRemoteTextTrack(t[e],!0);this.preselectTrack()}})),a}return Rt(e,t),e.prototype.preselectTrack=function(){for(var t={captions:1,subtitles:1},e=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage,n=void 0,r=void 0,a=void 0,s=0;s&lt;e.length;s++){var o=e[s];i&amp;&amp;i.enabled&amp;&amp;i.language===o.language?o.kind===i.kind?a=o:a||(a=o):i&amp;&amp;!i.enabled?(a=null,n=null,r=null):o.default&amp;&amp;("descriptions"!==o.kind||n?o.kind in t&amp;&amp;!r&amp;&amp;(r=o):n=o)}a?a.mode="showing":r?r.mode="showing":n&amp;&amp;(n.mode="showing")},e.prototype.toggleDisplay=function(){this.player_.tech_&amp;&amp;this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"==typeof r.a.WebVTT&amp;&amp;r.a.WebVTT.processCues(r.a,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();this.clearDisplay();for(var e=null,i=null,n=t.length;n--;){var r=t[n];"showing"===r.mode&amp;&amp;("descriptions"===r.kind?e=r:i=r)}i?("off"!==this.getAttribute("aria-live")&amp;&amp;this.setAttribute("aria-live","off"),this.updateForTrack(i)):e&amp;&amp;("assertive"!==this.getAttribute("aria-live")&amp;&amp;this.setAttribute("aria-live","assertive"),this.updateForTrack(e))},e.prototype.updateForTrack=function(t){if("function"==typeof r.a.WebVTT&amp;&amp;t.activeCues){for(var e=[],i=0;i&lt;t.activeCues.length;i++)e.push(t.activeCues[i]);if(r.a.WebVTT.processCues(r.a,e,this.el_),this.player_.textTrackSettings)for(var n=this.player_.textTrackSettings.getValues(),a=e.length;a--;){var s=e[a];if(s){var o=s.displayState;if(n.color&amp;&amp;(o.firstChild.style.color=n.color),n.textOpacity&amp;&amp;Xn(o.firstChild,"color",Gn(n.color||"#fff",n.textOpacity)),n.backgroundColor&amp;&amp;(o.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&amp;&amp;Xn(o.firstChild,"backgroundColor",Gn(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&amp;&amp;(n.windowOpacity?Xn(o,"backgroundColor",Gn(n.windowColor,n.windowOpacity)):o.style.backgroundColor=n.windowColor),n.edgeStyle&amp;&amp;("dropshadow"===n.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===n.edgeStyle?o.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===n.edgeStyle?o.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===n.edgeStyle&amp;&amp;(o.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),n.fontPercent&amp;&amp;1!==n.fontPercent){var l=r.a.parseFloat(o.style.fontSize);o.style.fontSize=l*n.fontPercent+"px",o.style.height="auto",o.style.top="auto",o.style.bottom="2px"}n.fontFamily&amp;&amp;"default"!==n.fontFamily&amp;&amp;("small-caps"===n.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=qn[n.fontFamily])}}}},e}(hi);hi.registerComponent("TextTrackDisplay",Yn);var Kn=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),i=this.localize(e?"Audio Player":"Video Player"),n=Zt("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[i])}),r=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(n),r},e}(hi);hi.registerComponent("LoadingSpinner",Kn);var $n=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.createEl=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};e=Ht({innerHTML:'&lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;',className:this.buildCSSClass()},e),i=Ht({type:"button"},i);var n=hi.prototype.createEl.call(this,"button",e,i);return this.createControlTextEl(n),n},e.prototype.addChild=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=this.constructor.name;return It.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),hi.prototype.addChild.call(this,t,e)},e.prototype.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},e.prototype.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},e.prototype.handleKeyPress=function(e){32!==e.which&amp;&amp;13!==e.which&amp;&amp;t.prototype.handleKeyPress.call(this,e)},e}(zn);hi.registerComponent("Button",$n);var Jn=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&amp;&amp;t.clientX&amp;&amp;t.clientY)Gi(e);else{var i=this.player_.getChild("controlBar"),n=i&amp;&amp;i.getChild("playToggle");if(n){var r=function(){return n.focus()};qi(e)?e.then(r,function(){}):this.setTimeout(r,1)}else this.player_.focus()}},e.prototype.handleKeyPress=function(e){this.mouseused_=!1,t.prototype.handleKeyPress.call(this,e)},e.prototype.handleMouseDown=function(t){this.mouseused_=!0},e}($n);Jn.prototype.controlText_="Play Video",hi.registerComponent("BigPlayButton",Jn);var Zn=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.controlText(n&amp;&amp;n.controlText||r.localize("Close")),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},e}($n);hi.registerComponent("CloseButton",Zn);var Qn=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.on(i,"play",r.handlePlay),r.on(i,"pause",r.handlePause),r.on(i,"ended",r.handleEnded),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},e.prototype.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e.prototype.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}($n);Qn.prototype.controlText_="Play",hi.registerComponent("PlayToggle",Qn);var tr=function(t,e){t=t&lt;0?0:t;var i=Math.floor(t%60),n=Math.floor(t/60%60),r=Math.floor(t/3600),a=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&amp;&amp;(r=n=i="-"),(r=r&gt;0||s&gt;0?r+":":"")+(n=((r||a&gt;=10)&amp;&amp;n&lt;10?"0"+n:n)+":")+(i=i&lt;10?"0"+i:i)},er=tr;function ir(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:t;return er(t,e)}var nr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.throttledUpdateContent=Ye(Xe(r,r.updateContent),25),r.on(i,"timeupdate",r.throttledUpdateContent),r}return Rt(e,t),e.prototype.createEl=function(e){var i=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:i+" vjs-time-control vjs-control",innerHTML:'&lt;span class="vjs-control-text"&gt;'+this.localize(this.labelText_)+"Â&nbsp;&lt;/span&gt;"});return this.contentEl_=Zt("span",{className:i+"-display"},{"aria-live":"off"}),this.updateTextNode_(),n.appendChild(this.contentEl_),n},e.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},e.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=s.a.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},e.prototype.formatTime_=function(t){return ir(t)},e.prototype.updateFormattedTime_=function(t){var e=this.formatTime_(t);e!==this.formattedTime_&amp;&amp;(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},e.prototype.updateContent=function(t){},e}(hi);nr.prototype.labelText_="Time",nr.prototype.controlText_="Time",hi.registerComponent("TimeDisplay",nr);var rr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.on(i,"ended",r.handleEnded),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-current-time"},e.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(e)},e.prototype.handleEnded=function(t){this.player_.duration()&amp;&amp;this.updateFormattedTime_(this.player_.duration())},e}(nr);rr.prototype.labelText_="Current Time",rr.prototype.controlText_="Current Time",hi.registerComponent("CurrentTimeDisplay",rr);var ar=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.on(i,"durationchange",r.updateContent),r.on(i,"loadedmetadata",r.throttledUpdateContent),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-duration"},e.prototype.updateContent=function(t){var e=this.player_.duration();e&amp;&amp;this.duration_!==e&amp;&amp;(this.duration_=e,this.updateFormattedTime_(e))},e}(nr);ar.prototype.labelText_="Duration",ar.prototype.controlText_="Duration",hi.registerComponent("DurationDisplay",ar);var sr=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"&lt;div&gt;&lt;span&gt;/&lt;/span&gt;&lt;/div&gt;"})},e}(hi);hi.registerComponent("TimeDivider",sr);var or=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.on(i,"durationchange",r.throttledUpdateContent),r.on(i,"ended",r.handleEnded),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-remaining-time"},e.prototype.formatTime_=function(e){return"-"+t.prototype.formatTime_.call(this,e)},e.prototype.updateContent=function(t){this.player_.duration()&amp;&amp;(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},e.prototype.handleEnded=function(t){this.player_.duration()&amp;&amp;this.updateFormattedTime_(0)},e}(nr);or.prototype.labelText_="Remaining Time",or.prototype.controlText_="Remaining Time",hi.registerComponent("RemainingTimeDisplay",or);var lr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return Rt(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Zt("div",{className:"vjs-live-display",innerHTML:'&lt;span class="vjs-control-text"&gt;'+this.localize("Stream Type")+"Â&nbsp;&lt;/span&gt;"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(hi);hi.registerComponent("LiveDisplay",lr);var ur=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return Rt(e,t),e.prototype.enabled=function(){return this.enabled_},e.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&amp;&amp;this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},e.prototype.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&amp;&amp;this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},e.prototype.createEl=function(e){var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};return i.className=i.className+" vjs-slider",i=Ht({tabIndex:0},i),n=Ht({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),t.prototype.createEl.call(this,e,i,n)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&amp;&amp;t.preventDefault(),"touchstart"!==t.type||Ei||t.preventDefault(),ce(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(t){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;he(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!=t||t&lt;0||t===1/0)&amp;&amp;(t=0);var i=(100*t).toFixed(2)+"%",n=e.el().style;return this.vertical()?n.height=i:n.width=i,t}}},e.prototype.calculateDistance=function(t){var e=fe(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&amp;&amp;39!==t.which||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(hi);hi.registerComponent("Slider",ur);var cr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.partEls_=[],r.on(i,"progress",r.update),r}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'&lt;span class="vjs-control-text"&gt;&lt;span&gt;'+this.localize("Loaded")+"&lt;/span&gt;: 0%&lt;/span&gt;"})},e.prototype.dispose=function(){this.partEls_=null,t.prototype.dispose.call(this)},e.prototype.update=function(t){var e=this.player_.buffered(),i=this.player_.duration(),n=this.player_.bufferedEnd(),r=this.partEls_,a=function(t,e){var i=t/e||0;return 100*(i&gt;=1?1:i)+"%"};this.el_.style.width=a(n,i);for(var s=0;s&lt;e.length;s++){var o=e.start(s),l=e.end(s),u=r[s];u||(u=this.el_.appendChild(Zt()),r[s]=u),u.style.left=a(o,n),u.style.width=a(l-o,n)}for(var c=r.length;c&gt;e.length;c--)this.el_.removeChild(r[c-1]);r.length=e.length},e}(hi);hi.registerComponent("LoadProgressBar",cr);var hr=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},e.prototype.update=function(t,e,i){var n=de(this.el_),r=de(this.player_.el()),a=t.width*e;if(r&amp;&amp;n){var s=t.left-r.left+a,o=t.width-a+(r.right-t.right),l=n.width/2;s&lt;l?l+=l-s:o&lt;l&amp;&amp;(l=o),l&lt;0?l=0:l&gt;n.width&amp;&amp;(l=n.width),this.el_.style.right="-"+l+"px",Qt(this.el_,i)}},e}(hi);hi.registerComponent("TimeTooltip",hr);var dr=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'&lt;span class="vjs-control-text"&gt;&lt;span&gt;'+this.localize("Progress")+"&lt;/span&gt;: 0%&lt;/span&gt;"})},e.prototype.update=function(t,e){var i=this;this.rafId_&amp;&amp;this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var n=ir(i.player_.scrubbing()?i.player_.getCache().currentTime:i.player_.currentTime(),i.player_.duration()),r=i.getChild("timeTooltip");r&amp;&amp;r.update(t,e,n)})},e}(hi);dr.prototype.options_={children:[]},_i||Ti||dr.prototype.options_.children.push("timeTooltip"),hi.registerComponent("PlayProgressBar",dr);var pr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.update=Ye(Xe(r,r.update),25),r}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.update=function(t,e){var i=this;this.rafId_&amp;&amp;this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var n=i.player_.duration(),r=ir(e*n,n);i.el_.style.left=t.width*e+"px",i.getChild("timeTooltip").update(t,e,r)})},e}(hi);pr.prototype.options_={children:["timeTooltip"]},hi.registerComponent("MouseTimeDisplay",pr);var fr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.setEventHandlers_(),r}return Rt(e,t),e.prototype.setEventHandlers_=function(){var t=this;this.update=Ye(Xe(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){t.clearInterval(t.updateInterval),t.updateInterval=t.setInterval(function(){t.requestAnimationFrame(function(){t.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){t.clearInterval(t.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},e.prototype.update_=function(t,e){var i=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ir(t,i),ir(i,i)],"{1} of {2}")),this.bar.update(de(this.el_),e)},e.prototype.update=function(e){var i=t.prototype.update.call(this);return this.update_(this.getCurrentTime_(),i),i},e.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},e.prototype.handleEnded=function(t){this.update_(this.player_.duration(),1)},e.prototype.getPercent=function(){var t=this.getCurrentTime_()/this.player_.duration();return t&gt;=1?1:t||0},e.prototype.handleMouseDown=function(e){be(e)&amp;&amp;(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},e.prototype.handleMouseMove=function(t){if(be(t)){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&amp;&amp;(e-=.1),this.player_.currentTime(e)}},e.prototype.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&amp;&amp;e.show()},e.prototype.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&amp;&amp;e.hide()},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&amp;&amp;e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&amp;&amp;Gi(this.player_.play())},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleAction(e)):t.prototype.handleKeyPress&amp;&amp;t.prototype.handleKeyPress.call(this,e)},e}(ur);fr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},_i||Ti||fr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),fr.prototype.playerEvent="timeupdate",hi.registerComponent("SeekBar",fr);var gr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.handleMouseMove=Ye(Xe(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=Ye(Xe(r,r.handleMouseSeek),25),r.enable(),r}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var i=e.getChild("mouseTimeDisplay"),n=e.el(),r=de(n),a=fe(n,t).x;a&gt;1?a=1:a&lt;0&amp;&amp;(a=0),i&amp;&amp;i.update(r,a)}},e.prototype.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&amp;&amp;e.handleMouseMove(t)},e.prototype.enabled=function(){return this.enabled_},e.prototype.disable=function(){this.children().forEach(function(t){return t.disable&amp;&amp;t.disable()}),this.enabled()&amp;&amp;(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},e.prototype.enable=function(){this.children().forEach(function(t){return t.enable&amp;&amp;t.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument,i=this.getChild("seekBar");i&amp;&amp;i.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument,i=this.getChild("seekBar");i&amp;&amp;i.handleMouseUp(t),this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e}(hi);gr.prototype.options_={children:["seekBar"]},hi.registerComponent("ProgressControl",gr);var mr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.on(i,"fullscreenchange",r.handleFullscreenChange),!1===s.a[Ui.fullscreenEnabled]&amp;&amp;r.disable(),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},e.prototype.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}($n);mr.prototype.controlText_="Fullscreen",hi.registerComponent("FullscreenToggle",mr);var yr=function(t,e){e.tech_&amp;&amp;!e.tech_.featuresVolumeControl&amp;&amp;t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},vr=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'&lt;span class="vjs-control-text"&gt;&lt;/span&gt;'})},e}(hi);hi.registerComponent("VolumeLevel",vr);var _r=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.on("slideractive",r.updateLastVolume_),r.on(i,"volumechange",r.updateARIAAttributes),i.ready(function(){return r.updateARIAAttributes()}),r}return Rt(e,t),e.prototype.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"})},e.prototype.handleMouseDown=function(e){be(e)&amp;&amp;t.prototype.handleMouseDown.call(this,e)},e.prototype.handleMouseMove=function(t){be(t)&amp;&amp;(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},e.prototype.checkMuted=function(){this.player_.muted()&amp;&amp;this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},e.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},e.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&amp;&amp;t.player_.lastVolume_(e)})},e}(ur);_r.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},_r.prototype.playerEvent="volumechange",hi.registerComponent("VolumeBar",_r);var br=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};Mt(this,e),n.vertical=n.vertical||!1,(void 0===n.volumeBar||zt(n.volumeBar))&amp;&amp;(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var r=jt(this,t.call(this,i,n));return yr(r,i),r.throttledHandleMouseMove=Ye(Xe(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")}),r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")}),r}return Rt(e,t),e.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&amp;&amp;(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(hi);br.prototype.options_={children:["volumeBar"]},hi.registerComponent("VolumeControl",br);var Tr=function(t,e){e.tech_&amp;&amp;!e.tech_.featuresMuteControl&amp;&amp;t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},Sr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return Tr(r,i),r.on(i,["loadstart","volumechange"],r.update),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){var e=this.player_.volume(),i=this.player_.lastVolume_();if(0===e){var n=i&lt;.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},e.prototype.update=function(t){this.updateIcon_(),this.updateControlText_()},e.prototype.updateIcon_=function(){var t=this.player_.volume(),e=3;_i&amp;&amp;this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t&lt;.33?e=1:t&lt;.67&amp;&amp;(e=2);for(var i=0;i&lt;4;i++)ne(this.el_,"vjs-vol-"+i);ie(this.el_,"vjs-vol-"+e)},e.prototype.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&amp;&amp;this.controlText(t)},e}($n);Sr.prototype.controlText_="Mute",hi.registerComponent("MuteToggle",Sr);var kr=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};Mt(this,e),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||zt(n.volumeControl))&amp;&amp;(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var r=jt(this,t.call(this,i,n));return r.on(i,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return Rt(e,t),e.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},e.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},e.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&amp;&amp;this.muteToggle.hasClass("vjs-hidden")&amp;&amp;this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&amp;&amp;!this.muteToggle.hasClass("vjs-hidden")&amp;&amp;this.addClass("vjs-mute-toggle-only")},e.prototype.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})},e}(hi);kr.prototype.options_={children:["muteToggle","volumeControl"]},hi.registerComponent("VolumePanel",kr);var Cr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return n&amp;&amp;(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return Rt(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",Xe(this,function(e){this.menuButton_&amp;&amp;(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==t.name()&amp;&amp;this.menuButton_.focus())}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=Zt(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),je(i,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),i},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&amp;&amp;39!==t.which||(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&amp;&amp;(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&amp;&amp;(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:0,e=this.children().slice();e.length&amp;&amp;e[0].className&amp;&amp;/vjs-menu-title/.test(e[0].className)&amp;&amp;e.shift(),e.length&gt;0&amp;&amp;(t&lt;0?t=0:t&gt;=e.length&amp;&amp;(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(hi);hi.registerComponent("Menu",Cr);var wr=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};Mt(this,e);var r=jt(this,t.call(this,i,n));r.menuButton_=new $n(i,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var a=$n.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+a,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return Rt(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&amp;&amp;(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&amp;&amp;this.items.length&lt;=this.hideThreshold_?this.hide():this.show()},e.prototype.createMenu=function(){var t=new Cr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=Zt("li",{className:"vjs-menu-title",innerHTML:ui(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,t.children_.unshift(e),te(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var i=0;i&lt;this.items.length;i++)t.addItem(this.items[i]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},e.prototype.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+$n.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},e.prototype.controlText=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(t,e)},e.prototype.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",Xe(this,function(t){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.focus=function(){this.menuButton_.focus()},e.prototype.blur=function(){this.menuButton_.blur()},e.prototype.handleFocus=function(){je(s.a,"keydown",Xe(this,this.handleKeyPress))},e.prototype.handleBlur=function(){Ue(s.a,"keydown",Xe(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&amp;&amp;this.unpressButton(),9!==t.which&amp;&amp;(t.preventDefault(),this.menuButton_.el_.focus())):38!==t.which&amp;&amp;40!==t.which||this.buttonPressed_||(this.pressButton(),t.preventDefault())},e.prototype.handleSubmenuKeyPress=function(t){27!==t.which&amp;&amp;9!==t.which||(this.buttonPressed_&amp;&amp;this.unpressButton(),9!==t.which&amp;&amp;(t.preventDefault(),this.menuButton_.el_.focus()))},e.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),_i&amp;&amp;$t())return;this.menu.focus()}},e.prototype.unpressButton=function(){this.enabled_&amp;&amp;(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},e.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},e.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(hi);hi.registerComponent("MenuButton",wr);var Er=function(t){function e(i,n){Mt(this,e);var r=n.tracks,a=jt(this,t.call(this,i,n));if(a.items.length&lt;=1&amp;&amp;a.hide(),!r)return jt(a);var s=Xe(a,a.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),a.player_.on("ready",s),a.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)}),a}return Rt(e,t),e}(wr);hi.registerComponent("TrackButton",Er);var Ar=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return Rt(e,t),e.prototype.createEl=function(e,i,n){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",Ht({className:"vjs-menu-item",innerHTML:'&lt;span class="vjs-menu-item-text"&gt;'+this.localize(this.options_.label)+"&lt;/span&gt;",tabIndex:-1},i),n)},e.prototype.handleClick=function(t){this.selected(!0)},e.prototype.selected=function(t){this.selectable&amp;&amp;(t?(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))},e}(zn);hi.registerComponent("MenuItem",Ar);var xr=function(t){function e(i,n){Mt(this,e);var a=n.track,o=i.textTracks();n.label=a.label||a.language||"Unknown",n.selected="showing"===a.mode;var l=jt(this,t.call(this,i,n));l.track=a;var u=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];l.handleTracksChange.apply(l,e)},c=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];l.handleSelectedLanguageChange.apply(l,e)};if(i.on(["loadstart","texttrackchange"],u),o.addEventListener("change",u),o.addEventListener("selectedlanguagechange",c),l.on("dispose",function(){i.off(["loadstart","texttrackchange"],u),o.removeEventListener("change",u),o.removeEventListener("selectedlanguagechange",c)}),void 0===o.onchange){var h=void 0;l.on(["tap","click"],function(){if("object"!==Dt(r.a.Event))try{h=new r.a.Event("change")}catch(t){}h||(h=s.a.createEvent("Event")).initEvent("change",!0,!0),o.dispatchEvent(h)})}return l.handleTracksChange(),l}return Rt(e,t),e.prototype.handleClick=function(e){var i=this.track.kind,n=this.track.kinds,r=this.player_.textTracks();if(n||(n=[i]),t.prototype.handleClick.call(this,e),r)for(var a=0;a&lt;r.length;a++){var s=r[a];s===this.track&amp;&amp;n.indexOf(s.kind)&gt;-1?"showing"!==s.mode&amp;&amp;(s.mode="showing"):"disabled"!==s.mode&amp;&amp;(s.mode="disabled")}},e.prototype.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&amp;&amp;this.selected(e)},e.prototype.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&amp;&amp;e.enabled&amp;&amp;e.language===this.track.language&amp;&amp;e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},e.prototype.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(Ar);hi.registerComponent("TextTrackMenuItem",xr);var Or=function(t){function e(i,n){return Mt(this,e),n.track={player:i,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,jt(this,t.call(this,i,n))}return Rt(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!0,n=0,r=e.length;n&lt;r;n++){var a=e[n];if(this.options_.kinds.indexOf(a.kind)&gt;-1&amp;&amp;"showing"===a.mode){i=!1;break}}i!==this.isSelected_&amp;&amp;this.selected(i)},e.prototype.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),i=!0,n=0,r=e.length;n&lt;r;n++){var a=e[n];if(["captions","descriptions","subtitles"].indexOf(a.kind)&gt;-1&amp;&amp;"showing"===a.mode){i=!1;break}}i&amp;&amp;(this.player_.cache_.selectedLanguage={enabled:!1})},e}(xr);hi.registerComponent("OffTextTrackMenuItem",Or);var Pr=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return Mt(this,e),n.tracks=i.textTracks(),jt(this,t.call(this,i,n))}return Rt(e,t),e.prototype.createItems=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[],e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:xr,i=void 0;this.label_&amp;&amp;(i=this.label_+" off"),t.push(new Or(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r&lt;n.length;r++){var a=n[r];if(this.kinds_.indexOf(a.kind)&gt;-1){var s=new e(this.player_,{track:a,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),t.push(s)}}return t},e}(Er);hi.registerComponent("TextTrackButton",Pr);var Lr=function(t){function e(i,n){Mt(this,e);var r=n.track,a=n.cue,s=i.currentTime();n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime&lt;=s&amp;&amp;s&lt;a.endTime;var o=jt(this,t.call(this,i,n));return o.track=r,o.cue=a,r.addEventListener("cuechange",Xe(o,o.update)),o}return Rt(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(t){var e=this.cue,i=this.player_.currentTime();this.selected(e.startTime&lt;=i&amp;&amp;i&lt;e.endTime)},e}(Ar);hi.registerComponent("ChaptersTrackMenuItem",Lr);var Ir=function(t){function e(i,n,r){return Mt(this,e),jt(this,t.call(this,i,n,r))}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.update=function(e){this.track_&amp;&amp;(!e||"addtrack"!==e.type&amp;&amp;"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},e.prototype.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&amp;&amp;e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&amp;&amp;i.addEventListener("load",this.updateHandler_)}}},e.prototype.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e&gt;=0;e--){var i=t[e];if(i.kind===this.kind_)return i}},e.prototype.getMenuCaption=function(){return this.track_&amp;&amp;this.track_.label?this.track_.label:this.localize(ui(this.kind_))},e.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},e.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var i=0,n=e.length;i&lt;n;i++){var r=e[i],a=new Lr(this.player_,{track:this.track_,cue:r});t.push(a)}return t},e}(Pr);Ir.prototype.kind_="chapters",Ir.prototype.controlText_="Chapters",hi.registerComponent("ChaptersButton",Ir);var Dr=function(t){function e(i,n,r){Mt(this,e);var a=jt(this,t.call(this,i,n,r)),s=i.textTracks(),o=Xe(a,a.handleTracksChange);return s.addEventListener("change",o),a.on("dispose",function(){s.removeEventListener("change",o)}),a}return Rt(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!1,n=0,r=e.length;n&lt;r;n++){var a=e[n];if(a.kind!==this.kind_&amp;&amp;"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Pr);Dr.prototype.kind_="descriptions",Dr.prototype.controlText_="Descriptions",hi.registerComponent("DescriptionsButton",Dr);var Mr=function(t){function e(i,n,r){return Mt(this,e),jt(this,t.call(this,i,n,r))}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Pr);Mr.prototype.kind_="subtitles",Mr.prototype.controlText_="Subtitles",hi.registerComponent("SubtitlesButton",Mr);var Rr=function(t){function e(i,n){Mt(this,e),n.track={player:i,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem";var r=jt(this,t.call(this,i,n));return r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return Rt(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(xr);hi.registerComponent("CaptionSettingsMenuItem",Rr);var jr=function(t){function e(i,n,r){return Mt(this,e),jt(this,t.call(this,i,n,r))}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&amp;&amp;this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Rr(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(Pr);jr.prototype.kind_="captions",jr.prototype.controlText_="Captions",hi.registerComponent("CaptionsButton",jr);var Ur=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.createEl=function(e,i,n){var r='&lt;span class="vjs-menu-item-text"&gt;'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&amp;&amp;(r+='\n        &lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;\n        &lt;span class="vjs-control-text"&gt; '+this.localize("Captions")+"&lt;/span&gt;\n      "),r+="&lt;/span&gt;",t.prototype.createEl.call(this,e,Ht({innerHTML:r},i),n)},e}(xr);hi.registerComponent("SubsCapsMenuItem",Ur);var Nr=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};Mt(this,e);var r=jt(this,t.call(this,i,n));return r.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)&gt;-1&amp;&amp;(r.label_="captions"),r.menuButton_.controlText(ui(r.label_)),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&amp;&amp;this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Rr(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,Ur)},e}(Pr);Nr.prototype.kinds_=["captions","subtitles"],Nr.prototype.controlText_="Subtitles",hi.registerComponent("SubsCapsButton",Nr);var Br=function(t){function e(i,n){Mt(this,e);var r=n.track,a=i.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled;var s=jt(this,t.call(this,i,n));s.track=r,s.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];s.handleTracksChange.apply(s,e)};return a.addEventListener("change",o),s.on("dispose",function(){a.removeEventListener("change",o)}),s}return Rt(e,t),e.prototype.createEl=function(e,i,n){var r='&lt;span class="vjs-menu-item-text"&gt;'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&amp;&amp;(r+='\n        &lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;\n        &lt;span class="vjs-control-text"&gt; '+this.localize("Descriptions")+"&lt;/span&gt;\n      "),r+="&lt;/span&gt;",t.prototype.createEl.call(this,e,Ht({innerHTML:r},i),n)},e.prototype.handleClick=function(e){var i=this.player_.audioTracks();t.prototype.handleClick.call(this,e);for(var n=0;n&lt;i.length;n++){var r=i[n];r.enabled=r===this.track}},e.prototype.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(Ar);hi.registerComponent("AudioTrackMenuItem",Br);var Fr=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return Mt(this,e),n.tracks=i.audioTracks(),jt(this,t.call(this,i,n))}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var e=this.player_.audioTracks(),i=0;i&lt;e.length;i++){var n=e[i];t.push(new Br(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return t},e}(Er);Fr.prototype.controlText_="Audio Track",hi.registerComponent("AudioTrackButton",Fr);var Hr=function(t){function e(i,n){Mt(this,e);var r=n.rate,a=parseFloat(r,10);n.label=r,n.selected=1===a,n.selectable=!0,n.multiSelectable=!1;var s=jt(this,t.call(this,i,n));return s.label=r,s.rate=a,s.on(i,"ratechange",s.update),s}return Rt(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(Ar);Hr.prototype.contentElType="button",hi.registerComponent("PlaybackRateMenuItem",Hr);var Vr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.updateVisibility(),r.updateLabel(),r.on(i,"loadstart",r.updateVisibility),r.on(i,"ratechange",r.updateLabel),r}return Rt(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=Zt("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},e.prototype.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createMenu=function(){var t=new Cr(this.player()),e=this.playbackRates();if(e)for(var i=e.length-1;i&gt;=0;i--)t.addChild(new Hr(this.player(),{rate:e[i]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(t){for(var e=this.player().playbackRate(),i=this.playbackRates(),n=i[0],r=0;r&lt;i.length;r++)if(i[r]&gt;e){n=i[r];break}this.player().playbackRate(n)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&amp;&amp;this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&amp;&amp;this.player().tech_.featuresPlaybackRate&amp;&amp;this.playbackRates()&amp;&amp;this.playbackRates().length&gt;0},e.prototype.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(t){this.playbackRateSupported()&amp;&amp;(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(wr);Vr.prototype.controlText_="Playback Rate",hi.registerComponent("PlaybackRateMenuButton",Vr);var zr=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(hi);hi.registerComponent("Spacer",zr);var Wr=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML="Â&nbsp;",e},e}(zr);hi.registerComponent("CustomControlSpacer",Wr);var qr=function(t){function e(){return Mt(this,e),jt(this,t.apply(this,arguments))}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(hi);qr.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},hi.registerComponent("ControlBar",qr);var Gr=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n));return r.on(i,"error",r.open),r}return Rt(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(Ji);Gr.prototype.options_=ci(Ji.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),hi.registerComponent("ErrorDisplay",Gr);var Xr=["#000","Black"],Yr=["#00F","Blue"],Kr=["#0FF","Cyan"],$r=["#0F0","Green"],Jr=["#F0F","Magenta"],Zr=["#F00","Red"],Qr=["#FFF","White"],ta=["#FF0","Yellow"],ea=["1","Opaque"],ia=["0.5","Semi-Transparent"],na=["0","Transparent"],ra={backgroundColor:{selector:".vjs-bg-color &gt; select",id:"captions-background-color-%s",label:"Color",options:[Xr,Qr,Zr,$r,Yr,ta,Jr,Kr]},backgroundOpacity:{selector:".vjs-bg-opacity &gt; select",id:"captions-background-opacity-%s",label:"Transparency",options:[ea,ia,na]},color:{selector:".vjs-fg-color &gt; select",id:"captions-foreground-color-%s",label:"Color",options:[Qr,Xr,Zr,$r,Yr,ta,Jr,Kr]},edgeStyle:{selector:".vjs-edge-style &gt; select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family &gt; select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent &gt; select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity &gt; select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[ea,ia]},windowColor:{selector:".vjs-window-color &gt; select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity &gt; select",id:"captions-window-opacity-%s",label:"Transparency",options:[na,ia,ea]}};function aa(t,e){if(e&amp;&amp;(t=e(t)),t&amp;&amp;"none"!==t)return t}ra.windowColor.options=ra.backgroundColor.options;var sa=function(t){function e(i,n){Mt(this,e),n.temporary=!1;var r=jt(this,t.call(this,i,n));return r.updateDisplay=Xe(r,r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=Zt("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&amp;&amp;(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.close()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),Ft(ra,function(t){r.on(r.$(t.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&amp;&amp;r.restoreSettings(),r}return Rt(e,t),e.prototype.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},e.prototype.createElSelect_=function(t){var e=this,i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"",n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"label",r=ra[t],a=r.id.replace("%s",this.id_),s=[i,a].join(" ").trim();return["&lt;"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'"&gt;',this.localize(r.label),"&lt;/"+n+"&gt;",'&lt;select aria-labelledby="'+s+'"&gt;'].concat(r.options.map(function(t){var i=a+"-"+t[1].replace(/\W+/g,"");return['&lt;option id="'+i+'" value="'+t[0]+'" ','aria-labelledby="'+s+" "+i+'"&gt;',e.localize(t[1]),"&lt;/option&gt;"].join("")})).concat("&lt;/select&gt;").join("")},e.prototype.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['&lt;fieldset class="vjs-fg-color vjs-track-setting"&gt;','&lt;legend id="'+t+'"&gt;',this.localize("Text"),"&lt;/legend&gt;",this.createElSelect_("color",t),'&lt;span class="vjs-text-opacity vjs-opacity"&gt;',this.createElSelect_("textOpacity",t),"&lt;/span&gt;","&lt;/fieldset&gt;"].join("")},e.prototype.createElBgColor_=function(){var t="captions-background-"+this.id_;return['&lt;fieldset class="vjs-bg-color vjs-track-setting"&gt;','&lt;legend id="'+t+'"&gt;',this.localize("Background"),"&lt;/legend&gt;",this.createElSelect_("backgroundColor",t),'&lt;span class="vjs-bg-opacity vjs-opacity"&gt;',this.createElSelect_("backgroundOpacity",t),"&lt;/span&gt;","&lt;/fieldset&gt;"].join("")},e.prototype.createElWinColor_=function(){var t="captions-window-"+this.id_;return['&lt;fieldset class="vjs-window-color vjs-track-setting"&gt;','&lt;legend id="'+t+'"&gt;',this.localize("Window"),"&lt;/legend&gt;",this.createElSelect_("windowColor",t),'&lt;span class="vjs-window-opacity vjs-opacity"&gt;',this.createElSelect_("windowOpacity",t),"&lt;/span&gt;","&lt;/fieldset&gt;"].join("")},e.prototype.createElColors_=function(){return Zt("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},e.prototype.createElFont_=function(){return Zt("div",{className:"vjs-track-settings-font",innerHTML:['&lt;fieldset class="vjs-font-percent vjs-track-setting"&gt;',this.createElSelect_("fontPercent","","legend"),"&lt;/fieldset&gt;",'&lt;fieldset class="vjs-edge-style vjs-track-setting"&gt;',this.createElSelect_("edgeStyle","","legend"),"&lt;/fieldset&gt;",'&lt;fieldset class="vjs-font-family vjs-track-setting"&gt;',this.createElSelect_("fontFamily","","legend"),"&lt;/fieldset&gt;"].join("")})},e.prototype.createElControls_=function(){var t=this.localize("restore all settings to the default values");return Zt("div",{className:"vjs-track-settings-controls",innerHTML:['&lt;button class="vjs-default-button" title="'+t+'"&gt;',this.localize("Reset"),'&lt;span class="vjs-control-text"&gt; '+t+"&lt;/span&gt;","&lt;/button&gt;",'&lt;button class="vjs-done-button"&gt;'+this.localize("Done")+"&lt;/button&gt;"].join("")})},e.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},e.prototype.label=function(){return this.localize("Caption Settings Dialog")},e.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},e.prototype.buildCSSClass=function(){return t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},e.prototype.getValues=function(){var t=this;return function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:0;return Bt(t).reduce(function(i,n){return e(i,t[n],n)},i)}(ra,function(e,i,n){var r,a,s=(r=t.$(i.selector),a=i.parser,aa(r.options[r.options.selectedIndex].value,a));return void 0!==s&amp;&amp;(e[n]=s),e},{})},e.prototype.setValues=function(t){var e=this;Ft(ra,function(i,n){!function(t,e,i){if(e)for(var n=0;n&lt;t.options.length;n++)if(aa(t.options[n].value,i)===e){t.selectedIndex=n;break}}(e.$(i.selector),t[n],i.parser)})},e.prototype.setDefaults=function(){var t=this;Ft(ra,function(e){var i=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=i})},e.prototype.restoreSettings=function(){var t=void 0;try{t=JSON.parse(r.a.localStorage.getItem("vjs-text-track-settings"))}catch(t){It.warn(t)}t&amp;&amp;this.setValues(t)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?r.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):r.a.localStorage.removeItem("vjs-text-track-settings")}catch(t){It.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&amp;&amp;t.updateDisplay()},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(s.a,"keydown",this.handleKeyDown);var t=this.player_.controlBar,e=t&amp;&amp;t.subsCapsButton,i=t&amp;&amp;t.captionsButton;e?e.focus():i&amp;&amp;i.focus()},e}(Ji);hi.registerComponent("TextTrackSettings",sa);var oa=function(t){function e(i,n){Mt(this,e);var a=n.ResizeObserver||r.a.ResizeObserver;null===n.ResizeObserver&amp;&amp;(a=!1);var s=ci({createEl:!a,reportTouchActivity:!1},n),o=jt(this,t.call(this,i,s));return o.ResizeObserver=n.ResizeObserver||r.a.ResizeObserver,o.loadListener_=null,o.resizeObserver_=null,o.debouncedHandler_=Ke(function(){o.resizeHandler()},100,!1,i),a?(o.resizeObserver_=new o.ResizeObserver(o.debouncedHandler_),o.resizeObserver_.observe(i.el())):(o.loadListener_=function(){o.el_.contentWindow&amp;&amp;je(o.el_.contentWindow,"resize",o.debouncedHandler_),o.off("load",o.loadListener_)},o.on("load",o.loadListener_)),o}return Rt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},e.prototype.resizeHandler=function(){this.player_.trigger("playerresize")},e.prototype.dispose=function(){this.resizeObserver_&amp;&amp;(this.player_.el()&amp;&amp;this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&amp;&amp;this.el_.contentWindow&amp;&amp;Ue(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&amp;&amp;this.off("load",this.loadListener_),this.debouncedHandler_&amp;&amp;this.debouncedHandler_.cancel(),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,t.prototype.dispose.call(this)},e}(hi);hi.registerComponent("ResizeManager",oa);var la=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var i=t.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a&lt;i.length;a++){var s=i[a].src;s&amp;&amp;-1===n.indexOf(s)&amp;&amp;n.push(s)}return!!n.length&amp;&amp;(1===n.length&amp;&amp;(r=n[0]),t.triggerSourceset(r),!0)},ua=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=s.a.createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var i=s.a.createDocumentFragment();e.childNodes.length;)i.appendChild(e.childNodes[0]);return this.innerText="",r.a.Element.prototype.appendChild.call(this,i),this.innerHTML}}),ca=function(t,e){for(var i={},n=0;n&lt;t.length&amp;&amp;!((i=Object.getOwnPropertyDescriptor(t[n],e))&amp;&amp;i.set&amp;&amp;i.get);n++);return i.enumerable=!0,i.configurable=!0,i},ha=function(t){var e=t.el();if(!e.resetSourceWatch_){var i={},n=function(t){return ca([t.el(),r.a.HTMLMediaElement.prototype,r.a.Element.prototype,ua],"innerHTML")}(t),a=function(i){return function(){for(var n=arguments.length,r=Array(n),a=0;a&lt;n;a++)r[a]=arguments[a];var s=i.apply(e,r);return la(t),s}};["append","appendChild","insertAdjacentHTML"].forEach(function(t){e[t]&amp;&amp;(i[t]=e[t],e[t]=a(i[t]))}),Object.defineProperty(e,"innerHTML",ci(n,{set:a(n.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(i).forEach(function(t){e[t]=i[t]}),Object.defineProperty(e,"innerHTML",n)},t.one("sourceset",e.resetSourceWatch_)}},da=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?fn(r.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return r.a.Element.prototype.setAttribute.call(this,"src",t),t}}),pa=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var i=function(t){return ca([t.el(),r.a.HTMLMediaElement.prototype,da],"src")}(t),n=e.setAttribute,a=e.load;Object.defineProperty(e,"src",ci(i,{set:function(n){var r=i.set.call(e,n);return t.triggerSourceset(e.src),r}})),e.setAttribute=function(i,r){var a=n.call(e,i,r);return/src/i.test(i)&amp;&amp;t.triggerSourceset(e.src),a},e.load=function(){var i=a.call(e);return la(t)||(t.triggerSourceset(""),ha(t)),i},e.currentSrc?t.triggerSourceset(e.currentSrc):la(t)||ha(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=a,e.setAttribute=n,Object.defineProperty(e,"src",i),e.resetSourceWatch_&amp;&amp;e.resetSourceWatch_()}}}},fa=Ut(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]),ga=function(t){function e(i,n){Mt(this,e);var r=jt(this,t.call(this,i,n)),a=i.source,s=!1;if(a&amp;&amp;(r.el_.currentSrc!==a.src||i.tag&amp;&amp;3===i.tag.initNetworkState_)?r.setSource(a):r.handleLateInit_(r.el_),i.enableSourceset&amp;&amp;r.setupSourcesetHandling_(),r.el_.hasChildNodes()){for(var o=r.el_.childNodes,u=o.length,c=[];u--;){var h=o[u];"track"===h.nodeName.toLowerCase()&amp;&amp;(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(h),r.remoteTextTracks().addTrack(h.track),r.textTracks().addTrack(h.track),s||r.el_.hasAttribute("crossorigin")||!mn(h.src)||(s=!0)):c.push(h))}for(var d=0;d&lt;c.length;d++)r.el_.removeChild(c[d])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&amp;&amp;s&amp;&amp;It.warn(l()(fa)),r.restoreMetadataTracksInIOSNativePlayer_(),(Li||yi||ki)&amp;&amp;!0===i.nativeControlsForTouch&amp;&amp;r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}return Rt(e,t),e.prototype.dispose=function(){this.el_&amp;&amp;this.el_.resetSourceset_&amp;&amp;this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},e.prototype.setupSourcesetHandling_=function(){pa(this)},e.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var t=this.textTracks(),e=void 0,i=function(){e=[];for(var i=0;i&lt;t.length;i++){var n=t[i];"metadata"===n.kind&amp;&amp;e.push({track:n,storedMode:n.mode})}};i(),t.addEventListener("change",i),this.on("dispose",function(){return t.removeEventListener("change",i)});var n=function i(){for(var n=0;n&lt;e.length;n++){var r=e[n];"disabled"===r.track.mode&amp;&amp;r.track.mode!==r.storedMode&amp;&amp;(r.track.mode=r.storedMode)}t.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",i),t.removeEventListener("change",n),t.addEventListener("change",n)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",i),t.addEventListener("change",i),t.removeEventListener("change",n)})},e.prototype.overrideNative_=function(t,e){var i=this;if(e===this["featuresNative"+t+"Tracks"]){var n=t.toLowerCase();this[n+"TracksListeners_"]&amp;&amp;Object.keys(this[n+"TracksListeners_"]).forEach(function(t){i.el()[n+"Tracks"].removeEventListener(t,i[n+"TracksListeners_"][t])}),this["featuresNative"+t+"Tracks"]=!e,this[n+"TracksListeners_"]=null,this.proxyNativeTracksForType_(n)}},e.prototype.overrideNativeAudioTracks=function(t){this.overrideNative_("Audio",t)},e.prototype.overrideNativeVideoTracks=function(t){this.overrideNative_("Video",t)},e.prototype.proxyNativeTracksForType_=function(t){var e=this,i=En[t],n=this.el()[i.getterName],r=this[i.getterName]();if(this["featuresNative"+i.capitalName+"Tracks"]&amp;&amp;n&amp;&amp;n.addEventListener){var a={change:function(t){r.trigger({type:"change",target:r,currentTarget:r,srcElement:r})},addtrack:function(t){r.addTrack(t.track)},removetrack:function(t){r.removeTrack(t.track)}},s=function(){for(var t=[],e=0;e&lt;r.length;e++){for(var i=!1,a=0;a&lt;n.length;a++)if(n[a]===r[e]){i=!0;break}i||t.push(r[e])}for(;t.length;)r.removeTrack(t.shift())};this[i.getterName+"Listeners_"]=a,Object.keys(a).forEach(function(t){var i=a[t];n.addEventListener(t,i),e.on("dispose",function(e){return n.removeEventListener(t,i)})}),this.on("loadstart",s),this.on("dispose",function(t){return e.off("loadstart",s)})}},e.prototype.proxyNativeTracks_=function(){var t=this;En.names.forEach(function(e){t.proxyNativeTracksForType_(e)})},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&amp;&amp;!this.movingMediaElementInDOM){if(t){var i=t.cloneNode(!0);t.parentNode&amp;&amp;t.parentNode.insertBefore(i,t),e.disposeMediaElement(t),t=i}else{t=s.a.createElement("video");var n=ci({},this.options_.tag&amp;&amp;se(this.options_.tag));Li&amp;&amp;!0===this.options_.nativeControlsForTouch||delete n.controls,ae(t,Ht(n,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&amp;&amp;le(t,"preload",this.options_.preload);for(var r=["loop","muted","playsinline","autoplay"],a=0;a&lt;r.length;a++){var o=r[a],l=this.options_[o];void 0!==l&amp;&amp;(l?le(t,o,o):ue(t,o),t[o]=l)}return t},e.prototype.handleLateInit_=function(t){if(0!==t.networkState&amp;&amp;3!==t.networkState){if(0===t.readyState){var e=!1,i=function(){e=!0};this.on("loadstart",i);var n=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),e||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),t.readyState&gt;=2&amp;&amp;r.push("loadeddata"),t.readyState&gt;=3&amp;&amp;r.push("canplay"),t.readyState&gt;=4&amp;&amp;r.push("canplaythrough"),this.ready(function(){r.forEach(function(t){this.trigger(t)},this)})}},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){It(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){var t=this;if(this.el_.duration===1/0&amp;&amp;Ti&amp;&amp;Ei&amp;&amp;0===this.el_.currentTime){return this.on("timeupdate",function e(){t.el_.currentTime&gt;0&amp;&amp;(t.el_.duration===1/0&amp;&amp;t.trigger("durationchange"),t.off("timeupdate",e))}),NaN}return this.el_.duration||NaN},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},i=function(){"webkitPresentationMode"in this.el_&amp;&amp;"picture-in-picture"!==this.el_.webkitPresentationMode&amp;&amp;(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){t.off("webkitbeginfullscreen",i),t.off("webkitendfullscreen",e)})}},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=r.a.navigator&amp;&amp;r.a.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;t.paused&amp;&amp;t.networkState&lt;=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.addTextTrack=function(e,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,i,n):t.prototype.addTextTrack.call(this,e,i,n)},e.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var i=s.a.createElement("track");return e.kind&amp;&amp;(i.kind=e.kind),e.label&amp;&amp;(i.label=e.label),(e.language||e.srclang)&amp;&amp;(i.srclang=e.language||e.srclang),e.default&amp;&amp;(i.default=e.default),e.id&amp;&amp;(i.id=e.id),e.src&amp;&amp;(i.src=e.src),i},e.prototype.addRemoteTextTrack=function(e,i){var n=t.prototype.addRemoteTextTrack.call(this,e,i);return this.featuresNativeTextTracks&amp;&amp;this.el().appendChild(n),n},e.prototype.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)e!==i[n]&amp;&amp;e!==i[n].track||this.el().removeChild(i[n])},e.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&amp;&amp;void 0!==this.el().webkitDecodedFrameCount&amp;&amp;(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),r.a.performance&amp;&amp;"function"==typeof r.a.performance.now?t.creationTime=r.a.performance.now():r.a.performance&amp;&amp;r.a.performance.timing&amp;&amp;"number"==typeof r.a.performance.timing.navigationStart&amp;&amp;(t.creationTime=r.a.Date.now()-r.a.performance.timing.navigationStart),t},e}(On);if(Yt()){ga.TEST_VID=s.a.createElement("video");var ma=s.a.createElement("track");ma.kind="captions",ma.srclang="en",ma.label="English",ga.TEST_VID.appendChild(ma)}ga.isSupported=function(){try{ga.TEST_VID.volume=.5}catch(t){return!1}return!(!ga.TEST_VID||!ga.TEST_VID.canPlayType)},ga.canPlayType=function(t){return ga.TEST_VID.canPlayType(t)},ga.canPlaySource=function(t,e){return ga.canPlayType(t.type)},ga.canControlVolume=function(){try{var t=ga.TEST_VID.volume;return ga.TEST_VID.volume=t/2+.1,t!==ga.TEST_VID.volume}catch(t){return!1}},ga.canMuteVolume=function(){try{var t=ga.TEST_VID.muted;return ga.TEST_VID.muted=!t,ga.TEST_VID.muted?le(ga.TEST_VID,"muted","muted"):ue(ga.TEST_VID,"muted"),t!==ga.TEST_VID.muted}catch(t){return!1}},ga.canControlPlaybackRate=function(){if(Ti&amp;&amp;Ei&amp;&amp;Ai&lt;58)return!1;try{var t=ga.TEST_VID.playbackRate;return ga.TEST_VID.playbackRate=t/2+.1,t!==ga.TEST_VID.playbackRate}catch(t){return!1}},ga.canOverrideAttributes=function(){try{var t=function(){};Object.defineProperty(s.a.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(s.a.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(s.a.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(s.a.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},ga.supportsNativeTextTracks=function(){return Pi||_i&amp;&amp;Ei},ga.supportsNativeVideoTracks=function(){return!(!ga.TEST_VID||!ga.TEST_VID.videoTracks)},ga.supportsNativeAudioTracks=function(){return!(!ga.TEST_VID||!ga.TEST_VID.audioTracks)},ga.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],ga.prototype.featuresVolumeControl=ga.canControlVolume(),ga.prototype.featuresMuteControl=ga.canMuteVolume(),ga.prototype.featuresPlaybackRate=ga.canControlPlaybackRate(),ga.prototype.featuresSourceset=ga.canOverrideAttributes(),ga.prototype.movingMediaElementInDOM=!_i,ga.prototype.featuresFullscreenResize=!0,ga.prototype.featuresProgressEvents=!0,ga.prototype.featuresTimeupdateEvents=!0,ga.prototype.featuresNativeTextTracks=ga.supportsNativeTextTracks(),ga.prototype.featuresNativeVideoTracks=ga.supportsNativeVideoTracks(),ga.prototype.featuresNativeAudioTracks=ga.supportsNativeAudioTracks();var ya=ga.TEST_VID&amp;&amp;ga.TEST_VID.constructor.prototype.canPlayType,va=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;ga.patchCanPlayType=function(){Si&gt;=4&amp;&amp;!Ci&amp;&amp;!Ei&amp;&amp;(ga.TEST_VID.constructor.prototype.canPlayType=function(t){return t&amp;&amp;va.test(t)?"maybe":ya.call(this,t)})},ga.unpatchCanPlayType=function(){var t=ga.TEST_VID.constructor.prototype.canPlayType;return ga.TEST_VID.constructor.prototype.canPlayType=ya,t},ga.patchCanPlayType(),ga.disposeMediaElement=function(t){if(t){for(t.parentNode&amp;&amp;t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&amp;&amp;function(){try{t.load()}catch(t){}}()}},ga.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),i=e.length;i--;)t.removeChild(e[i]);t.removeAttribute("src"),"function"==typeof t.load&amp;&amp;function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){ga.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){ga.prototype["set"+ui(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){ga.prototype[t]=function(){return this.el_[t]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(t){ga.prototype["set"+ui(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(t){ga.prototype[t]=function(){return this.el_[t]()}}),On.withSourceHandlers(ga),ga.nativeSourceHandler={},ga.nativeSourceHandler.canPlayType=function(t){try{return ga.TEST_VID.canPlayType(t)}catch(t){return""}},ga.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return ga.nativeSourceHandler.canPlayType(t.type);if(t.src){var i=gn(t.src);return ga.nativeSourceHandler.canPlayType("video/"+i)}return""},ga.nativeSourceHandler.handleSource=function(t,e,i){e.setSrc(t.src)},ga.nativeSourceHandler.dispose=function(){},ga.registerSourceHandler(ga.nativeSourceHandler),On.registerTech("Html5",ga);var _a=Ut(["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "],["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "]),ba=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ta={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Sa=function(t){function e(i,n,r){if(Mt(this,e),i.id=i.id||n.id||"vjs_video_"+we(),(n=Ht(e.getTagSettings(i),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if("function"==typeof i.closest){var a=i.closest("[lang]");a&amp;&amp;a.getAttribute&amp;&amp;(n.language=a.getAttribute("lang"))}else for(var s=i;s&amp;&amp;1===s.nodeType;){if(se(s).hasOwnProperty("lang")){n.language=s.getAttribute("lang");break}s=s.parentNode}var o=jt(this,t.call(this,null,n,r));if(o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=i,o.tagAttributes=i&amp;&amp;se(i),o.language(o.options_.language),n.languages){var l={};Object.getOwnPropertyNames(n.languages).forEach(function(t){l[t.toLowerCase()]=n.languages[t]}),o.languages_=l}else o.languages_=e.prototype.options_.languages;o.cache_={},o.poster_=n.poster||"",o.controls_=!!n.controls,o.cache_.lastVolume=1,i.controls=!1,i.removeAttribute("controls"),i.hasAttribute("autoplay")?o.options_.autoplay=!0:o.autoplay(o.options_.autoplay),o.scrubbing_=!1,o.el_=o.createEl(),o.cache_.lastPlaybackRate=o.defaultPlaybackRate(),si(o,{eventBusKey:"el_"});var u=ci(o.options_);if(n.plugins){var c=n.plugins;Object.keys(c).forEach(function(t){if("function"!=typeof this[t])throw new Error('plugin "'+t+'" does not exist');this[t](c[t])},o)}o.options_.playerOptions=u,o.middleware_=[],o.initChildren(),o.isAudio("audio"===i.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&amp;&amp;o.addClass("vjs-audio"),o.flexNotSupported_()&amp;&amp;o.addClass("vjs-no-flex"),_i||o.addClass("vjs-workinghover"),e.players[o.id_]=o;var h=At.split(".")[0];return o.addClass("vjs-v"+h),o.userActive(!0),o.reportUserActivity(),o.one("play",o.listenForUserActivity_),o.on("fullscreenchange",o.handleFullscreenChange_),o.on("stageclick",o.handleStageClick_),o.changingSrc_=!1,o.playWaitingForReady_=!1,o.playOnLoadstart_=null,o}return Rt(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&amp;&amp;this.styleEl_.parentNode&amp;&amp;(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&amp;&amp;this.tag.player&amp;&amp;(this.tag.player=null),this.el_&amp;&amp;this.el_.player&amp;&amp;(this.el_.player=null),this.tech_&amp;&amp;(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&amp;&amp;(this.playerElIngest_=null),this.tag&amp;&amp;(this.tag=null),Ln[this.id()]=null,t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.tag,i=void 0,n=this.playerElIngest_=e.parentNode&amp;&amp;e.parentNode.hasAttribute&amp;&amp;e.parentNode.hasAttribute("data-vjs-player"),a="video-js"===this.tag.tagName.toLowerCase();n?i=this.el_=e.parentNode:a||(i=this.el_=t.prototype.createEl.call(this,"div"));var o=se(e);if(a){for(i=this.el_=e,e=this.tag=s.a.createElement("video");i.children.length;)e.appendChild(i.firstChild);ee(i,"video-js")||ie(i,"video-js"),i.appendChild(e),n=this.playerElIngest_=i,Object.keys(i).forEach(function(t){e[t]=i[t]})}if(e.setAttribute("tabindex","-1"),xi&amp;&amp;e.setAttribute("role","application"),e.removeAttribute("width"),e.removeAttribute("height"),Object.getOwnPropertyNames(o).forEach(function(t){a&amp;&amp;"class"===t||i.setAttribute(t,o[t]),a&amp;&amp;e.setAttribute(t,o[t])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=i.player=this,this.addClass("vjs-paused"),!0!==r.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=qe("vjs-styles-dimensions");var l=Te(".vjs-styles-defaults"),u=Te("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var c=e.getElementsByTagName("a"),h=0;h&lt;c.length;h++){var d=c.item(h);ie(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&amp;&amp;!n&amp;&amp;e.parentNode.insertBefore(i,e),te(e,i),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_=i,i},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var i=t+"_";if(void 0===e)return this[i]||0;if(""===e)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(e);isNaN(n)?It.error('Improper value "'+e+'" supplied for for '+t):(this[i]=n,this.updateStyleEl_())},e.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){if(!0!==r.a.VIDEOJS_NO_DYNAMIC_STYLE){var t=void 0,e=void 0,i=void 0,n=(void 0!==this.aspectRatio_&amp;&amp;"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()&gt;0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),a=n[1]/n[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*a,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),Ge(this.styleEl_,"\n      ."+i+" {\n        width: "+t+"px;\n        height: "+e+"px;\n      }\n\n      ."+i+".vjs-fluid {\n        padding-top: "+100*a+"%;\n      }\n    ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,o="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&amp;&amp;this.tech_.el();l&amp;&amp;(s&gt;=0&amp;&amp;(l.width=s),o&gt;=0&amp;&amp;(l.height=o))}},e.prototype.loadTech_=function(t,e){var i=this;this.tech_&amp;&amp;this.unloadTech_();var n=ui(t),r=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==n&amp;&amp;this.tag&amp;&amp;(On.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a={source:e,autoplay:"string"!=typeof this.autoplay()&amp;&amp;this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+n+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};xn.names.forEach(function(t){var e=xn[t];a[e.getterName]=i[e.privateName]}),Ht(a,this.options_[n]),Ht(a,this.options_[r]),Ht(a,this.options_[t.toLowerCase()]),this.tag&amp;&amp;(a.tag=this.tag),e&amp;&amp;e.src===this.cache_.src&amp;&amp;this.cache_.currentTime&gt;0&amp;&amp;(a.startTime=this.cache_.currentTime);var s=On.getTech(t);if(!s)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new s(a),this.tech_.ready(Xe(this,this.handleTechReady_),!0),Ki(this.textTracksJson_||[],this.tech_),ba.forEach(function(t){i.on(i.tech_,t,i["handleTech"+ui(t)+"_"])}),Object.keys(Ta).forEach(function(t){i.on(i.tech_,t,function(e){0===i.tech_.playbackRate()&amp;&amp;i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+Ta[t]+"_"].bind(i),event:e}):i["handleTech"+Ta[t]+"_"](e)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&amp;&amp;!this.usingNativeControls()&amp;&amp;this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&amp;&amp;this.tag||te(this.tech_.el(),this.el()),this.tag&amp;&amp;(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){var t=this;xn.names.forEach(function(e){var i=xn[e];t[i.privateName]=t[i.getterName]()}),this.textTracksJson_=Yi(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&amp;&amp;(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.prototype.tech=function(t){return void 0===t&amp;&amp;It.warn(l()(_a)),this.tech_},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"dblclick",this.handleTechDoubleClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_),this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)},e.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&amp;&amp;this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},e.prototype.manualAutoplay_=function(t){var e=this;if(this.tech_&amp;&amp;"string"==typeof t){var i=function(){var t=e.muted();e.muted(!0);var i=e.play();if(i&amp;&amp;i.then&amp;&amp;i.catch)return i.catch(function(i){e.muted(t)})},n=void 0;if("any"===t?(n=this.play())&amp;&amp;n.then&amp;&amp;n.catch&amp;&amp;n.catch(function(){return i()}):n="muted"===t?i():this.play(),n&amp;&amp;n.then&amp;&amp;n.catch)return n.then(function(){e.trigger({type:"autoplay-success",autoplay:t})}).catch(function(i){e.trigger({type:"autoplay-failure",autoplay:t})})}},e.prototype.updateSourceCaches_=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",e=t,i="";if("string"!=typeof e&amp;&amp;(e=t.src,i=t.type),!/^blob:/.test(e)){this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&amp;&amp;!i&amp;&amp;(i=function(t,e){if(!e)return"";if(t.cache_.source.src===e&amp;&amp;t.cache_.source.type)return t.cache_.source.type;var i=t.cache_.sources.filter(function(t){return t.src===e});if(i.length)return i[0].type;for(var n=t.$$("source"),r=0;r&lt;n.length;r++){var a=n[r];if(a.type&amp;&amp;a.src&amp;&amp;a.src===e)return a.type}return Fn(e)}(this,e)),this.cache_.source=ci({},t,{src:e,type:i});for(var n=this.cache_.sources.filter(function(t){return t.src&amp;&amp;t.src===e}),r=[],a=this.$$("source"),s=[],o=0;o&lt;a.length;o++){var l=se(a[o]);r.push(l),l.src&amp;&amp;l.src===e&amp;&amp;s.push(l.src)}s.length&amp;&amp;!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e}},e.prototype.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_&amp;&amp;(this.updateSourceCaches_(t.src),!t.src)){this.tech_.one(["sourceset","loadstart"],function t(i){"sourceset"!==i.type&amp;&amp;e.updateSourceCaches_(e.techGet_("currentSrc")),e.tech_.off(["sourceset","loadstart"],t)})}this.trigger({src:t.src,type:"sourceset"})},e.prototype.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&amp;&amp;(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechRateChange_=function(){this.tech_.playbackRate()&gt;0&amp;&amp;0===this.cache_.lastPlaybackRate&amp;&amp;(this.queuedCallbacks_.forEach(function(t){return t.callback(t.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&amp;&amp;(It.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){be(t)&amp;&amp;this.controls_&amp;&amp;(this.paused()?Gi(this.play()):this.pause())},e.prototype.handleTechDoubleClick_=function(t){this.controls_&amp;&amp;(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)})||(this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&amp;&amp;this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&amp;&amp;this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t)},e.prototype.handleTechTextData_=function(){var t=null;arguments.length&gt;1&amp;&amp;(t=arguments[1]),this.trigger("textdata",t)},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){this.ready(function(){if(t in jn)return function(t,e,i,n){return e[i](t.reduce(Nn(i),n))}(this.middleware_,this.tech_,t,e);if(t in Un)return Mn(this.middleware_,this.tech_,t,e);try{this.tech_&amp;&amp;this.tech_[t](e)}catch(t){throw It(t),t}},!0)},e.prototype.techGet_=function(t){if(this.tech_&amp;&amp;this.tech_.isReady_){if(t in Rn)return function(t,e,i){return t.reduceRight(Nn(i),e[i]())}(this.middleware_,this.tech_,t);if(t in Un)return Mn(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw It("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw It("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw It(e),e}}},e.prototype.play=function(){var t=this,e=this.options_.Promise||r.a.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},e.prototype.play_=function(){var t=this,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:Gi;if(this.playOnLoadstart_&amp;&amp;this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&amp;&amp;(this.src()||this.currentSrc()))return void e(this.techGet_("play"));this.playOnLoadstart_=function(){t.playOnLoadstart_=null,e(t.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){t.playWaitingForReady_=!1,e(t.play())})}},e.prototype.pause=function(){this.techCall_("pause")},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.played=function(){return this.techGet_("played")||Ri(0,0)},e.prototype.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.prototype.currentTime=function(t){return void 0!==t?(t&lt;0&amp;&amp;(t=0),void this.techCall_("setCurrentTime",t)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.prototype.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))&lt;0&amp;&amp;(t=1/0),t!==this.cache_.duration&amp;&amp;(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&amp;&amp;t.length||(t=Ri(0,0)),t},e.prototype.bufferedPercent=function(){return ji(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),i=t.end(t.length-1);return i&gt;e&amp;&amp;(i=e),i},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e&gt;0&amp;&amp;this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},e.prototype.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},e.prototype.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){if(void 0===t)return!!this.isFullscreen_;this.isFullscreen_=!!t},e.prototype.requestFullscreen=function(){var t=Ui;this.isFullscreen(!0),t.requestFullscreen?(je(s.a,t.fullscreenchange,Xe(this,function e(i){this.isFullscreen(s.a[t.fullscreenElement]),!1===this.isFullscreen()&amp;&amp;Ue(s.a,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},e.prototype.exitFullscreen=function(){var t=Ui;this.isFullscreen(!1),t.requestFullscreen?s.a[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=s.a.documentElement.style.overflow,je(s.a,"keydown",Xe(this,this.fullWindowOnEscKey)),s.a.documentElement.style.overflow="hidden",ie(s.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&amp;&amp;(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,Ue(s.a,"keydown",this.fullWindowOnEscKey),s.a.documentElement.style.overflow=this.docOrigOverflow,ne(s.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,i=0,n=this.options_.techOrder;i&lt;n.length;i++){var r=n[i],a=On.getTech(r);if(a||(a=hi.getComponent(r)),a){if(a.isSupported()&amp;&amp;(e=a.canPlayType(t)))return e}else It.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e,i=this,n=this.options_.techOrder.map(function(t){return[t,On.getTech(t)]}).filter(function(t){var e=t[0],i=t[1];return i?i.isSupported():(It.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),r=function(t,e,i){var n=void 0;return t.some(function(t){return e.some(function(e){if(n=i(t,e))return!0})}),n},a=function(t,e){var n=t[0];if(t[1].canPlaySource(e,i.options_[n.toLowerCase()]))return{source:e,tech:n}};return(this.options_.sourceOrder?r(t,n,(e=a,function(t,i){return e(i,t)})):r(n,t,a))||!1},e.prototype.src=function(t){var e=this;if(void 0===t)return this.cache_.src||"";var i=function t(e){if(Array.isArray(e)){var i=[];e.forEach(function(e){e=t(e),Array.isArray(e)?i=i.concat(e):Vt(e)&amp;&amp;i.push(e)}),e=i}else e="string"==typeof e&amp;&amp;e.trim()?[Hn({src:e})]:Vt(e)&amp;&amp;"string"==typeof e.src&amp;&amp;e.src&amp;&amp;e.src.trim()?[Hn(e)]:[];return e}(t);i.length?(this.changingSrc_=!0,this.cache_.sources=i,this.updateSourceCaches_(i[0]),Dn(this,i[0],function(t,n){var r,a;if(e.middleware_=n,e.cache_.sources=i,e.updateSourceCaches_(t),e.src_(t))return i.length&gt;1?e.src(i.slice(1)):(e.changingSrc_=!1,e.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void e.triggerReady());r=n,a=e.tech_,r.forEach(function(t){return t.setTech&amp;&amp;t.setTech(a)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},e.prototype.src_=function(t){var e,i,n=this,r=this.selectSource([t]);return!r||(e=r.tech,i=this.techName_,ui(e)!==ui(i)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1},!0),!1))},e.prototype.load=function(){this.techCall_("load")},e.prototype.reset=function(){this.tech_&amp;&amp;this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},e.prototype.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&amp;&amp;e.push(t),this.cache_.sources||e},e.prototype.currentSource=function(){return this.cache_.source||{}},e.prototype.currentSrc=function(){return this.currentSource()&amp;&amp;this.currentSource().src||""},e.prototype.currentType=function(){return this.currentSource()&amp;&amp;this.currentSource().type||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},e.prototype.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e=void 0;"string"==typeof t&amp;&amp;/(any|play|muted)/.test(t)?(this.options_.autoplay=t,this.manualAutoplay_(t),e=!1):this.options_.autoplay=!!t,e=e||this.options_.autoplay,this.tech_&amp;&amp;this.techCall_("setAutoplay",e)},e.prototype.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},e.prototype.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&amp;&amp;(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.prototype.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&amp;&amp;this.tech_&amp;&amp;this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&amp;&amp;(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},e.prototype.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&amp;&amp;(this.controls_=t,this.usingNativeControls()&amp;&amp;this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},e.prototype.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&amp;&amp;(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&amp;&amp;this.errorDisplay.close())):(this.error_=new zi(t),this.addClass("vjs-error"),It.error("(CODE:"+this.error_.code+" "+zi.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},e.prototype.reportUserActivity=function(t){this.userActivity_=!0},e.prototype.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&amp;&amp;this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,i=void 0,n=Xe(this,this.reportUserActivity);this.on("mousedown",function(){n(),this.clearInterval(t),t=this.setInterval(n,250)}),this.on("mousemove",function(t){t.screenX===e&amp;&amp;t.screenY===i||(e=t.screenX,i=t.screenY,n())}),this.on("mouseup",function(e){n(),this.clearInterval(t)}),this.on("keydown",n),this.on("keyup",n);var r=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(r);var t=this.options_.inactivityTimeout;t&lt;=0||(r=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){if(void 0===t)return this.tech_&amp;&amp;this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},e.prototype.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&amp;&amp;this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.prototype.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},e.prototype.addTextTrack=function(t,e,i){if(this.tech_)return this.tech_.addTextTrack(t,e,i)},e.prototype.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},e.prototype.removeRemoteTextTrack=function(){var t=(arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{}).track,e=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(e)},e.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.prototype.videoWidth=function(){return this.tech_&amp;&amp;this.tech_.videoWidth&amp;&amp;this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&amp;&amp;this.tech_.videoHeight&amp;&amp;this.tech_.videoHeight()||0},e.prototype.language=function(t){if(void 0===t)return this.language_;this.language_=String(t).toLowerCase()},e.prototype.languages=function(){return ci(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=ci(this.options_),e=t.tracks;t.tracks=[];for(var i=0;i&lt;e.length;i++){var n=e[i];(n=ci(n)).player=void 0,t.tracks[i]=n}return t},e.prototype.createModal=function(t,e){var i=this;(e=e||{}).content=t||"";var n=new Ji(this,e);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n},e.getTagSettings=function(t){var e={sources:[],tracks:[]},i=se(t),n=i["data-setup"];if(ee(t,"vjs-fluid")&amp;&amp;(i.fluid=!0),null!==n){var r=f()(n||"{}"),a=r[0],s=r[1];a&amp;&amp;It.error(a),Ht(i,s)}if(Ht(e,i),t.hasChildNodes())for(var o=t.childNodes,l=0,u=o.length;l&lt;u;l++){var c=o[l],h=c.nodeName.toLowerCase();"source"===h?e.sources.push(se(c)):"track"===h&amp;&amp;e.tracks.push(se(c))}return e},e.prototype.flexNotSupported_=function(){var t=s.a.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},e}(hi);xn.names.forEach(function(t){var e=xn[t];Sa.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),Sa.players={};var ka=r.a.navigator;Sa.prototype.options_={techOrder:On.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:ka&amp;&amp;(ka.languages&amp;&amp;ka.languages[0]||ka.userLanguage||ka.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(t){Sa.prototype[t]=function(){return this.techGet_(t)}}),ba.forEach(function(t){Sa.prototype["handleTech"+ui(t)+"_"]=function(){return this.trigger(t)}}),hi.registerComponent("Player",Sa);var Ca={},wa=function(t){return Ca.hasOwnProperty(t)},Ea=function(t){return wa(t)?Ca[t]:void 0},Aa=function(t,e){t.activePlugins_=t.activePlugins_||{},t.activePlugins_[e]=!0},xa=function(t,e,i){var n=(i?"before":"")+"pluginsetup";t.trigger(n,e),t.trigger(n+":"+e.name,e)},Oa=function(t,e){return e.prototype.name=t,function(){xa(this,{name:t,plugin:e,instance:null},!0);for(var i=arguments.length,n=Array(i),r=0;r&lt;i;r++)n[r]=arguments[r];var a=new(Function.prototype.bind.apply(e,[null].concat([this].concat(n))));return this[t]=function(){return a},xa(this,a.getEventHash()),a}},Pa=function(){function t(e){if(Mt(this,t),this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,si(this),delete this.trigger,li(this,this.constructor.defaultState),Aa(e,this.name),this.dispose=Xe(this,this.dispose),e.on("dispose",this.dispose)}return t.prototype.version=function(){return this.constructor.VERSION},t.prototype.getEventHash=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},t.prototype.trigger=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return Ne(this.eventBusEl_,t,this.getEventHash(e))},t.prototype.handleStateChanged=function(t){},t.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e.activePlugins_[t]=!1,this.player=this.state=null,e[t]=Oa(t,Ca[t])},t.isBasic=function(e){var i="string"==typeof e?Ea(e):e;return"function"==typeof i&amp;&amp;!t.prototype.isPrototypeOf(i.prototype)},t.registerPlugin=function(e,i){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+(void 0===e?"undefined":Dt(e))+".");if(wa(e))It.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(Sa.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof i)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+(void 0===i?"undefined":Dt(i))+".");return Ca[e]=i,"plugin"!==e&amp;&amp;(t.isBasic(i)?Sa.prototype[e]=function(t,e){var i=function(){xa(this,{name:t,plugin:e,instance:null},!0);var i=e.apply(this,arguments);return Aa(this,t),xa(this,{name:t,plugin:e,instance:i}),i};return Object.keys(e).forEach(function(t){i[t]=e[t]}),i}(e,i):Sa.prototype[e]=Oa(e,i)),i},t.deregisterPlugin=function(t){if("plugin"===t)throw new Error("Cannot de-register base plugin.");wa(t)&amp;&amp;(delete Ca[t],delete Sa.prototype[t])},t.getPlugins=function(){var t=void 0;return(arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:Object.keys(Ca)).forEach(function(e){var i=Ea(e);i&amp;&amp;((t=t||{})[e]=i)}),t},t.getPluginVersion=function(t){var e=Ea(t);return e&amp;&amp;e.VERSION||""},t}();Pa.getPlugin=Ea,Pa.BASE_PLUGIN_NAME="plugin",Pa.registerPlugin("plugin",Pa),Sa.prototype.usingPlugin=function(t){return!!this.activePlugins_&amp;&amp;!0===this.activePlugins_[t]},Sa.prototype.hasPlugin=function(t){return!!wa(t)};var La=function(t){return 0===t.indexOf("#")?t.slice(1):t};function Ia(t,e,i){var n=Ia.getPlayer(t);if(n)return e&amp;&amp;It.warn('Player "'+t+'" is already initialised. Options will not be applied.'),i&amp;&amp;n.ready(i),n;var r="string"==typeof t?Te("#"+La(t)):t;if(!Kt(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");s.a.body.contains(r)||It.warn("The element supplied is not included in the DOM"),e=e||{},Ia.hooks("beforesetup").forEach(function(t){var i=t(r,ci(e));Vt(i)&amp;&amp;!Array.isArray(i)?e=ci(e,i):It.error("please return an object in beforesetup hooks")});var a=hi.getComponent("Player");return n=new a(r,e,i),Ia.hooks("setup").forEach(function(t){return t(n)}),n}if(Ia.hooks_={},Ia.hooks=function(t,e){return Ia.hooks_[t]=Ia.hooks_[t]||[],e&amp;&amp;(Ia.hooks_[t]=Ia.hooks_[t].concat(e)),Ia.hooks_[t]},Ia.hook=function(t,e){Ia.hooks(t,e)},Ia.hookOnce=function(t,e){Ia.hooks(t,[].concat(e).map(function(e){return function i(){return Ia.removeHook(t,i),e.apply(void 0,arguments)}}))},Ia.removeHook=function(t,e){var i=Ia.hooks(t).indexOf(e);return!(i&lt;=-1)&amp;&amp;(Ia.hooks_[t]=Ia.hooks_[t].slice(),Ia.hooks_[t].splice(i,1),!0)},!0!==r.a.VIDEOJS_NO_DYNAMIC_STYLE&amp;&amp;Yt()){var Da=Te(".vjs-styles-defaults");if(!Da){Da=qe("vjs-styles-defaults");var Ma=Te("head");Ma&amp;&amp;Ma.insertBefore(Da,Ma.firstChild),Ge(Da,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}We(1,Ia),Ia.VERSION=At,Ia.options=Sa.prototype.options_,Ia.getPlayers=function(){return Sa.players},Ia.getPlayer=function(t){var e=Sa.players,i=void 0;if("string"==typeof t){var n=La(t),r=e[n];if(r)return r;i=Te("#"+n)}else i=t;if(Kt(i)){var a=i,s=a.player,o=a.playerId;if(s||e[o])return s||e[o]}},Ia.getAllPlayers=function(){return Object.keys(Sa.players).map(function(t){return Sa.players[t]}).filter(Boolean)},Ia.players=Sa.players,Ia.getComponent=hi.getComponent,Ia.registerComponent=function(t,e){On.isTech(e)&amp;&amp;It.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),hi.registerComponent.call(hi,t,e)},Ia.getTech=On.getTech,Ia.registerTech=On.registerTech,Ia.use=function(t,e){Pn[t]=Pn[t]||[],Pn[t].push(e)},Object.defineProperty(Ia,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Ia.middleware,"TERMINATOR",{value:In,writeable:!1,enumerable:!0}),Ia.browser=Ii,Ia.TOUCH_ENABLED=Li,Ia.extend=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=function(){t.apply(this,arguments)},n={};for(var r in"object"===(void 0===e?"undefined":Dt(e))?(e.constructor!==Object.prototype.constructor&amp;&amp;(i=e.constructor),n=e):"function"==typeof e&amp;&amp;(i=e),function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":Dt(e)));t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(t.super_=e)}(i,t),n)n.hasOwnProperty(r)&amp;&amp;(i.prototype[r]=n[r]);return i},Ia.mergeOptions=ci,Ia.bind=Xe,Ia.registerPlugin=Pa.registerPlugin,Ia.deregisterPlugin=Pa.deregisterPlugin,Ia.plugin=function(t,e){return It.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Pa.registerPlugin(t,e)},Ia.getPlugins=Pa.getPlugins,Ia.getPlugin=Pa.getPlugin,Ia.getPluginVersion=Pa.getPluginVersion,Ia.addLanguage=function(t,e){var i;return t=(""+t).toLowerCase(),Ia.options.languages=ci(Ia.options.languages,((i={})[t]=e,i)),Ia.options.languages[t]},Ia.log=It,Ia.createTimeRange=Ia.createTimeRanges=Ri,Ia.formatTime=ir,Ia.setFormatTime=function(t){er=t},Ia.resetFormatTime=function(){er=tr},Ia.parseUrl=pn,Ia.isCrossOrigin=mn,Ia.EventTarget=$e,Ia.on=je,Ia.one=Be,Ia.off=Ue,Ia.trigger=Ne,Ia.xhr=c.a,Ia.TextTrack=bn,Ia.AudioTrack=Tn,Ia.VideoTrack=Sn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(t){Ia[t]=function(){return It.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),ke[t].apply(null,arguments)}}),Ia.computedStyle=Wt,Ia.dom=ke,Ia.url=yn;var Ra=function(t,e){return/^[a-z]+:/i.test(e)?e:(/\/\//i.test(t)||(t=m.a.buildAbsoluteURL(r.a.location.href,t)),m.a.buildAbsoluteURL(t,e))},ja=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Ua=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),Na=function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":Dt(e)));t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},Ba=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":Dt(e))&amp;&amp;"function"!=typeof e?t:e},Fa=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(n=(s=o.next()).done)&amp;&amp;(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,a=t}finally{try{!n&amp;&amp;o.return&amp;&amp;o.return()}finally{if(r)throw a}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ha=Ia.mergeOptions,Va=Ia.EventTarget,za=Ia.log,Wa=function(t,e){["AUDIO","SUBTITLES"].forEach(function(i){for(var n in t.mediaGroups[i])for(var r in t.mediaGroups[i][n]){var a=t.mediaGroups[i][n][r];e(a,i,n,r)}})},qa=function(t,e){var i=Ha(t,{}),n=i.playlists[e.uri];if(!n)return null;if(n.segments&amp;&amp;e.segments&amp;&amp;n.segments.length===e.segments.length&amp;&amp;n.mediaSequence===e.mediaSequence)return null;var r=Ha(n,e);n.segments&amp;&amp;(r.segments=function(t,e,i){var n=e.slice();i=i||0;for(var r=Math.min(t.length,e.length+i),a=i;a&lt;r;a++)n[a-i]=Ha(t[a],n[a-i]);return n}(n.segments,e.segments,e.mediaSequence-n.mediaSequence)),r.segments.forEach(function(t){!function(t,e){t.resolvedUri||(t.resolvedUri=Ra(e,t.uri)),t.key&amp;&amp;!t.key.resolvedUri&amp;&amp;(t.key.resolvedUri=Ra(e,t.key.uri)),t.map&amp;&amp;!t.map.resolvedUri&amp;&amp;(t.map.resolvedUri=Ra(e,t.map.uri))}(t,r.resolvedUri)});for(var a=0;a&lt;i.playlists.length;a++)i.playlists[a].uri===e.uri&amp;&amp;(i.playlists[a]=r);return i.playlists[e.uri]=r,i},Ga=function(t){for(var e=t.playlists.length;e--;){var i=t.playlists[e];t.playlists[i.uri]=i,i.resolvedUri=Ra(t.uri,i.uri),i.id=e,i.attributes||(i.attributes={},za.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}},Xa=function(t){Wa(t,function(e){e.uri&amp;&amp;(e.resolvedUri=Ra(t.uri,e.uri))})},Ya=function(t,e){var i=t.segments[t.segments.length-1];return e&amp;&amp;i&amp;&amp;i.duration?1e3*i.duration:500*(t.targetDuration||10)},Ka=function(t){function e(t,i,n){ja(this,e);var r=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(r.srcUrl=t,r.hls_=i,r.withCredentials=n,!r.srcUrl)throw new Error("A non-empty playlist URL is required");return r.state="HAVE_NOTHING",r.on("mediaupdatetimeout",function(){"HAVE_METADATA"===r.state&amp;&amp;(r.state="HAVE_CURRENT_METADATA",r.request=r.hls_.xhr({uri:Ra(r.master.uri,r.media().uri),withCredentials:r.withCredentials},function(t,e){if(r.request)return t?r.playlistRequestError(r.request,r.media().uri,"HAVE_METADATA"):void r.haveMetadata(r.request,r.media().uri)}))}),r}return Na(e,Va),Ua(e,[{key:"playlistRequestError",value:function(t,e,i){this.request=null,i&amp;&amp;(this.state=i),this.error={playlist:this.master.playlists[e],status:t.status,message:"HLS playlist request error at URL: "+e,responseText:t.responseText,code:t.status&gt;=500?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(t,e){var i=this;this.request=null,this.state="HAVE_METADATA";var n=new w;n.push(t.responseText),n.end(),n.manifest.uri=e,n.manifest.attributes=n.manifest.attributes||{};var a=qa(this.master,n.manifest);this.targetDuration=n.manifest.targetDuration,a?(this.master=a,this.media_=this.master.playlists[n.manifest.uri]):this.trigger("playlistunchanged"),this.media().endList||(r.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=r.a.setTimeout(function(){i.trigger("mediaupdatetimeout")},Ya(this.media(),!!a))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.stopRequest(),r.a.clearTimeout(this.mediaUpdateTimeout)}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"media",value:function(t){var e=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var i=this.state;if("string"==typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}var n=!this.media_||t.uri!==this.media_.uri;if(this.master.playlists[t.uri].endList)return this.request&amp;&amp;(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(n&amp;&amp;(this.trigger("mediachanging"),this.trigger("mediachange")));if(n){if(this.state="SWITCHING_MEDIA",this.request){if(Ra(this.master.uri,t.uri)===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&amp;&amp;this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:Ra(this.master.uri,t.uri),withCredentials:this.withCredentials},function(n,r){if(e.request){if(n)return e.playlistRequestError(e.request,t.uri,i);e.haveMetadata(r,t.uri),"HAVE_MASTER"===i?e.trigger("loadedmetadata"):e.trigger("mediachange")}})}}},{key:"pause",value:function(){this.stopRequest(),r.a.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&amp;&amp;(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&amp;&amp;(this.state="HAVE_METADATA")}},{key:"load",value:function(t){var e=this;r.a.clearTimeout(this.mediaUpdateTimeout);var i=this.media();if(t){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=r.a.setTimeout(function(){return e.load()},n)}else this.started?i&amp;&amp;!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var t=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(e,i){if(t.request){if(t.request=null,e)return t.error={status:i.status,message:"HLS playlist request error at URL: "+t.srcUrl,responseText:i.responseText,code:2},"HAVE_NOTHING"===t.state&amp;&amp;(t.started=!1),t.trigger("error");var n=new w;return n.push(i.responseText),n.end(),t.state="HAVE_MASTER",n.manifest.uri=t.srcUrl,n.manifest.playlists?(t.master=n.manifest,Ga(t.master),Xa(t.master),t.trigger("loadedplaylist"),void(t.request||t.media(n.manifest.playlists[0]))):(t.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:r.a.location.href,playlists:[{uri:t.srcUrl,id:0}]},t.master.playlists[t.srcUrl]=t.master.playlists[0],t.master.playlists[0].resolvedUri=t.srcUrl,t.master.playlists[0].attributes=t.master.playlists[0].attributes||{},t.haveMetadata(i,t.srcUrl),t.trigger("loadedmetadata"))}})}}]),e}(),$a=Ia.createTimeRange,Ja=function(t,e,i){var n,r;return void 0===e&amp;&amp;(e=t.mediaSequence+t.segments.length),e&lt;t.mediaSequence?0:(n=function(t,e){var i=0,n=e-t.mediaSequence,r=t.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(void 0!==(r=t.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=r.duration,void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}}(t,e)).precise?n.result:(r=function(t,e){for(var i=0,n=void 0,r=e-t.mediaSequence;r&lt;t.segments.length;r++){if(void 0!==(n=t.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=n.duration,void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(t,e)).precise?r.result:n.result+i},Za=function(t,e,i){if(!t)return 0;if("number"!=typeof i&amp;&amp;(i=0),void 0===e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return r.a.Infinity}return Ja(t,e,i)},Qa=function(t,e,i){var n=0;if(e&gt;i){var r=[i,e];e=r[0],i=r[1]}if(e&lt;0){for(var a=e;a&lt;Math.min(0,i);a++)n+=t.targetDuration;e=0}for(var s=e;s&lt;i;s++)n+=t.segments[s].duration;return n},ts=function(t){if(!t.segments.length)return 0;for(var e=t.segments.length-1,i=t.segments[e].duration||t.targetDuration,n=i+2*t.targetDuration;e--&amp;&amp;!((i+=t.segments[e].duration)&gt;=n););return Math.max(0,e)},es=function(t,e,i){if(!t||!t.segments)return null;if(t.endList)return Za(t);if(null===e)return null;e=e||0;var n=i?ts(t):t.segments.length;return Ja(t,t.mediaSequence+n,e)},is=function(t){return t-Math.floor(t)==0},ns=function(t,e){if(is(e))return e+.1*t;for(var i=e.toString().split(".")[1].length,n=1;n&lt;=i;n++){var r=Math.pow(10,n),a=e*r;if(is(a)||n===i)return(a+t)/r}},rs=ns.bind(null,1),as=ns.bind(null,-1),ss=function(t){return t.excludeUntil&amp;&amp;t.excludeUntil&gt;Date.now()},os=function(t){return t.excludeUntil&amp;&amp;t.excludeUntil===1/0},ls=function(t){var e=ss(t);return!t.disabled&amp;&amp;!e},us=function(t,e){return e.attributes&amp;&amp;e.attributes[t]},cs=function(t,e){if(1===t.playlists.length)return!0;var i=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter(function(t){return!!ls(t)&amp;&amp;(t.attributes.BANDWIDTH||0)&lt;i}).length},hs={duration:Za,seekable:function(t,e){var i=e||0,n=es(t,e,!0);return null===n?$a():$a(i,n)},safeLiveIndex:ts,getMediaInfoForTime:function(t,e,i,n){var r=void 0,a=void 0,s=t.segments.length,o=e-n;if(o&lt;0){if(i&gt;0)for(r=i-1;r&gt;=0;r--)if(a=t.segments[r],(o+=as(a.duration))&gt;0)return{mediaIndex:r,startTime:n-Qa(t,i,r)};return{mediaIndex:0,startTime:e}}if(i&lt;0){for(r=i;r&lt;0;r++)if((o-=t.targetDuration)&lt;0)return{mediaIndex:0,startTime:e};i=0}for(r=i;r&lt;s;r++)if(a=t.segments[r],(o-=rs(a.duration))&lt;0)return{mediaIndex:r,startTime:n+Qa(t,i,r)};return{mediaIndex:s-1,startTime:e}},isEnabled:ls,isDisabled:function(t){return t.disabled},isBlacklisted:ss,isIncompatible:os,playlistEnd:es,isAes:function(t){for(var e=0;e&lt;t.segments.length;e++)if(t.segments[e].key)return!0;return!1},isFmp4:function(t){for(var e=0;e&lt;t.segments.length;e++)if(t.segments[e].map)return!0;return!1},hasAttribute:us,estimateSegmentRequestTime:function(t,e,i){var n=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:0;return us("BANDWIDTH",i)?(t*i.attributes.BANDWIDTH-8*n)/e:NaN},isLowestEnabledRendition:cs},ds=Ia.xhr,ps=Ia.mergeOptions,fs=function(){return function t(e,i){e=ps({timeout:45e3},e);var n=t.beforeRequest||Ia.Hls.xhr.beforeRequest;if(n&amp;&amp;"function"==typeof n){var r=n(e);r&amp;&amp;(e=r)}var a=ds(e,function(t,e){var n=a.response;!t&amp;&amp;n&amp;&amp;(a.responseTime=Date.now(),a.roundTripTime=a.responseTime-a.requestTime,a.bytesReceived=n.byteLength||n.length,a.bandwidth||(a.bandwidth=Math.floor(a.bytesReceived/a.roundTripTime*8*1e3))),e.headers&amp;&amp;(a.responseHeaders=e.headers),t&amp;&amp;"ETIMEDOUT"===t.code&amp;&amp;(a.timedout=!0),t||a.aborted||200===e.statusCode||206===e.statusCode||0===e.statusCode||(t=new Error("XHR Failed with a response of: "+(a&amp;&amp;(n||a.responseText)))),i(t,a)}),s=a.abort;return a.abort=function(){return a.aborted=!0,s.apply(a,arguments)},a.uri=e.uri,a.requestTime=Date.now(),a}},gs=function(t,e){return t.start(e)+"-"+t.end(e)},ms=function(t,e){var i=t.toString(16);return"00".substring(0,2-i.length)+i+(e%2?" ":"")},ys=function(t){return t&gt;=32&amp;&amp;t&lt;126?String.fromCharCode(t):"."},vs=function(t){var e={};return Object.keys(t).forEach(function(i){var n=t[i];ArrayBuffer.isView(n)?e[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:e[i]=n}),e},_s=function(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},bs=function(t){for(var e=Array.prototype.slice.call(t),i="",n=0;n&lt;e.length/16;n++)i+=e.slice(16*n,16*n+16).map(ms).join("")+" "+e.slice(16*n,16*n+16).map(ys).join("")+"\n";return i},Ts=Object.freeze({createTransferableMessage:vs,initSegmentId:_s,hexDump:bs,tagDump:function(t){var e=t.bytes;return bs(e)},textRanges:function(t){var e="",i=void 0;for(i=0;i&lt;t.length;i++)e+=gs(t,i)+" ";return e}}),Ss=function(t,e){var i=[],n=void 0;if(t&amp;&amp;t.length)for(n=0;n&lt;t.length;n++)e(t.start(n),t.end(n))&amp;&amp;i.push([t.start(n),t.end(n)]);return Ia.createTimeRanges(i)},ks=function(t,e){return Ss(t,function(t,i){return t-1/30&lt;=e&amp;&amp;i+1/30&gt;=e})},Cs=function(t,e){return Ss(t,function(t){return t-1/30&gt;=e})},ws=function(t){var e=[];if(!t||!t.length)return"";for(var i=0;i&lt;t.length;i++)e.push(t.start(i)+" =&gt; "+t.end(i));return e.join(", ")},Es=function(t){for(var e=[],i=0;i&lt;t.length;i++)e.push({start:t.start(i),end:t.end(i)});return e},As=function(t,e,i){var n=void 0,r=void 0;if(i&amp;&amp;i.cues)for(n=i.cues.length;n--;)(r=i.cues[n]).startTime&lt;=e&amp;&amp;r.endTime&gt;=t&amp;&amp;i.removeCue(r)},xs=function(t){return isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t},Os=function(t,e,i){var n=r.a.WebKitDataCue||r.a.VTTCue;if(e&amp;&amp;e.forEach(function(t){var e=t.stream;this.inbandTextTracks_[e].addCue(new n(t.startTime+this.timestampOffset,t.endTime+this.timestampOffset,t.text))},t),i){var a=xs(t.mediaSource_.duration);if(i.forEach(function(t){var e=t.cueTime+this.timestampOffset;t.frames.forEach(function(t){var i=new n(e,e,t.value||t.url||t.data||"");i.frame=t,i.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return Ia.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return Ia.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return Ia.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(i),this.metadataTrack_.addCue(i)},this)},t),t.metadataTrack_&amp;&amp;t.metadataTrack_.cues&amp;&amp;t.metadataTrack_.cues.length){for(var s=t.metadataTrack_.cues,o=[],l=0;l&lt;s.length;l++)s[l]&amp;&amp;o.push(s[l]);var u=o.reduce(function(t,e){var i=t[e.startTime]||[];return i.push(e),t[e.startTime]=i,t},{}),c=Object.keys(u).sort(function(t,e){return Number(t)-Number(e)});c.forEach(function(t,e){var i=u[t],n=Number(c[e+1])||a;i.forEach(function(t){t.endTime=n})})}}},Ps="undefined"!=typeof window?window:{},Ls="undefined"==typeof Symbol?"__target":Symbol(),Is="application/javascript",Ds=Ps.BlobBuilder||Ps.WebKitBlobBuilder||Ps.MozBlobBuilder||Ps.MSBlobBuilder,Ms=Ps.URL||Ps.webkitURL||Ms&amp;&amp;Ms.msURL,Rs=Ps.Worker;function js(t,e){return function(i){var n=this;if(!e)return new Rs(t);if(Rs&amp;&amp;!i){var r=Fs(e.toString().replace(/^function.+?{/,"").slice(0,-1));return this[Ls]=new Rs(r),function(t,e){if(!t||!e)return;var i=t.terminate;t.objURL=e,t.terminate=function(){t.objURL&amp;&amp;Ms.revokeObjectURL(t.objURL),i.call(t)}}(this[Ls],r),this[Ls]}var a={postMessage:function(t){n.onmessage&amp;&amp;setTimeout(function(){n.onmessage({data:t,target:a})})}};e.call(a),this.postMessage=function(t){setTimeout(function(){a.onmessage({data:t,target:n})})},this.isThisThread=!0}}if(Rs){var Us,Ns=Fs("self.onmessage = function () {}"),Bs=new Uint8Array(1);try{(Us=new Rs(Ns)).postMessage(Bs,[Bs.buffer])}catch(t){Rs=null}finally{Ms.revokeObjectURL(Ns),Us&amp;&amp;Us.terminate()}}function Fs(t){try{return Ms.createObjectURL(new Blob([t],{type:Is}))}catch(i){var e=new Ds;return e.append(t),Ms.createObjectURL(e.getBlob(type))}}var Hs=new js("./transmuxer-worker.worker.js",function(t,e){var i=this;!function(){var t,e,n,r,a,s,o,l,u,c,h,d,p,f,g,m,y,v,_,b,T,S,k,C,w,E,A,x,O,P,L,I,D,M,R,j,U,N,B,F,H=Math.pow(2,32)-1;!function(){var t;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in S)S.hasOwnProperty(t)&amp;&amp;(S[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);k=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),w=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),C=new Uint8Array([0,0,0,1]),E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),A=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),x={video:E,audio:A},L=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0]),I=new Uint8Array([0,0,0,0,0,0,0,0]),D=I,M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=I,O=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(t){var e,i,n=[],r=0;for(e=1;e&lt;arguments.length;e++)n.push(arguments[e]);for(e=n.length;e--;)r+=n[e].byteLength;for(i=new Uint8Array(r+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(t,4),e=0,r=8;e&lt;n.length;e++)i.set(n[e],r),r+=n[e].byteLength;return i},e=function(){return t(S.dinf,t(S.dref,L))},n=function(e){return t(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype&lt;&lt;3|e.samplingfrequencyindex&gt;&gt;&gt;1,e.samplingfrequencyindex&lt;&lt;7|e.channelcount&lt;&lt;3,6,1,2]))},g=function(e){return t(S.hdlr,x[e])},f=function(e){var i=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration&gt;&gt;&gt;24&amp;255,e.duration&gt;&gt;&gt;16&amp;255,e.duration&gt;&gt;&gt;8&amp;255,255&amp;e.duration,85,196,0,0]);return e.samplerate&amp;&amp;(i[12]=e.samplerate&gt;&gt;&gt;24&amp;255,i[13]=e.samplerate&gt;&gt;&gt;16&amp;255,i[14]=e.samplerate&gt;&gt;&gt;8&amp;255,i[15]=255&amp;e.samplerate),t(S.mdhd,i)},p=function(e){return t(S.mdia,f(e),g(e.type),s(e))},a=function(e){return t(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&amp;e)&gt;&gt;24,(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e]))},s=function(i){return t(S.minf,"video"===i.type?t(S.vmhd,O):t(S.smhd,P),e(),y(i))},o=function(e,i){for(var n=[],r=i.length;r--;)n[r]=_(i[r]);return t.apply(null,[S.moof,a(e)].concat(n))},l=function(e){for(var i=e.length,n=[];i--;)n[i]=h(e[i]);return t.apply(null,[S.moov,c(4294967295)].concat(n).concat(u(e)))},u=function(e){for(var i=e.length,n=[];i--;)n[i]=b(e[i]);return t.apply(null,[S.mvex].concat(n))},c=function(e){var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&amp;e)&gt;&gt;24,(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(S.mvhd,i)},m=function(e){var i,n,r=e.samples||[],a=new Uint8Array(4+r.length);for(n=0;n&lt;r.length;n++)i=r[n].flags,a[n+4]=i.dependsOn&lt;&lt;4|i.isDependedOn&lt;&lt;2|i.hasRedundancy;return t(S.sdtp,a)},y=function(e){return t(S.stbl,v(e),t(S.stts,R),t(S.stsc,D),t(S.stsz,M),t(S.stco,I))},v=function(e){return t(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?j(e):U(e))},j=function(e){var i,n=e.sps||[],r=e.pps||[],a=[],s=[];for(i=0;i&lt;n.length;i++)a.push((65280&amp;n[i].byteLength)&gt;&gt;&gt;8),a.push(255&amp;n[i].byteLength),a=a.concat(Array.prototype.slice.call(n[i]));for(i=0;i&lt;r.length;i++)s.push((65280&amp;r[i].byteLength)&gt;&gt;&gt;8),s.push(255&amp;r[i].byteLength),s=s.concat(Array.prototype.slice.call(r[i]));return t(S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&amp;e.width)&gt;&gt;8,255&amp;e.width,(65280&amp;e.height)&gt;&gt;8,255&amp;e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(S.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length]).concat(a).concat([r.length]).concat(s))),t(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},U=function(e){return t(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&amp;e.channelcount)&gt;&gt;8,255&amp;e.channelcount,(65280&amp;e.samplesize)&gt;&gt;8,255&amp;e.samplesize,0,0,0,0,(65280&amp;e.samplerate)&gt;&gt;8,255&amp;e.samplerate,0,0]),n(e))},d=function(e){var i=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&amp;e.id)&gt;&gt;24,(16711680&amp;e.id)&gt;&gt;16,(65280&amp;e.id)&gt;&gt;8,255&amp;e.id,0,0,0,0,(4278190080&amp;e.duration)&gt;&gt;24,(16711680&amp;e.duration)&gt;&gt;16,(65280&amp;e.duration)&gt;&gt;8,255&amp;e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&amp;e.width)&gt;&gt;8,255&amp;e.width,0,0,(65280&amp;e.height)&gt;&gt;8,255&amp;e.height,0,0]);return t(S.tkhd,i)},_=function(e){var i,n,r,a,s,o;return i=t(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&amp;e.id)&gt;&gt;24,(16711680&amp;e.id)&gt;&gt;16,(65280&amp;e.id)&gt;&gt;8,255&amp;e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(e.baseMediaDecodeTime/(H+1)),o=Math.floor(e.baseMediaDecodeTime%(H+1)),n=t(S.tfdt,new Uint8Array([1,0,0,0,s&gt;&gt;&gt;24&amp;255,s&gt;&gt;&gt;16&amp;255,s&gt;&gt;&gt;8&amp;255,255&amp;s,o&gt;&gt;&gt;24&amp;255,o&gt;&gt;&gt;16&amp;255,o&gt;&gt;&gt;8&amp;255,255&amp;o])),92,"audio"===e.type?(r=T(e,92),t(S.traf,i,n,r)):(a=m(e),r=T(e,a.length+92),t(S.traf,i,n,r,a))},h=function(e){return e.duration=e.duration||4294967295,t(S.trak,d(e),p(e))},b=function(e){var i=new Uint8Array([0,0,0,0,(4278190080&amp;e.id)&gt;&gt;24,(16711680&amp;e.id)&gt;&gt;16,(65280&amp;e.id)&gt;&gt;8,255&amp;e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&amp;&amp;(i[i.length-1]=0),t(S.trex,i)},F=function(t,e){var i=0,n=0,r=0,a=0;return t.length&amp;&amp;(void 0!==t[0].duration&amp;&amp;(i=1),void 0!==t[0].size&amp;&amp;(n=2),void 0!==t[0].flags&amp;&amp;(r=4),void 0!==t[0].compositionTimeOffset&amp;&amp;(a=8)),[0,0,i|n|r|a,1,(4278190080&amp;t.length)&gt;&gt;&gt;24,(16711680&amp;t.length)&gt;&gt;&gt;16,(65280&amp;t.length)&gt;&gt;&gt;8,255&amp;t.length,(4278190080&amp;e)&gt;&gt;&gt;24,(16711680&amp;e)&gt;&gt;&gt;16,(65280&amp;e)&gt;&gt;&gt;8,255&amp;e]},B=function(e,i){var n,r,a,s;for(i+=20+16*(r=e.samples||[]).length,n=F(r,i),s=0;s&lt;r.length;s++)a=r[s],n=n.concat([(4278190080&amp;a.duration)&gt;&gt;&gt;24,(16711680&amp;a.duration)&gt;&gt;&gt;16,(65280&amp;a.duration)&gt;&gt;&gt;8,255&amp;a.duration,(4278190080&amp;a.size)&gt;&gt;&gt;24,(16711680&amp;a.size)&gt;&gt;&gt;16,(65280&amp;a.size)&gt;&gt;&gt;8,255&amp;a.size,a.flags.isLeading&lt;&lt;2|a.flags.dependsOn,a.flags.isDependedOn&lt;&lt;6|a.flags.hasRedundancy&lt;&lt;4|a.flags.paddingValue&lt;&lt;1|a.flags.isNonSyncSample,61440&amp;a.flags.degradationPriority,15&amp;a.flags.degradationPriority,(4278190080&amp;a.compositionTimeOffset)&gt;&gt;&gt;24,(16711680&amp;a.compositionTimeOffset)&gt;&gt;&gt;16,(65280&amp;a.compositionTimeOffset)&gt;&gt;&gt;8,255&amp;a.compositionTimeOffset]);return t(S.trun,new Uint8Array(n))},N=function(e,i){var n,r,a,s;for(i+=20+8*(r=e.samples||[]).length,n=F(r,i),s=0;s&lt;r.length;s++)a=r[s],n=n.concat([(4278190080&amp;a.duration)&gt;&gt;&gt;24,(16711680&amp;a.duration)&gt;&gt;&gt;16,(65280&amp;a.duration)&gt;&gt;&gt;8,255&amp;a.duration,(4278190080&amp;a.size)&gt;&gt;&gt;24,(16711680&amp;a.size)&gt;&gt;&gt;16,(65280&amp;a.size)&gt;&gt;&gt;8,255&amp;a.size]);return t(S.trun,new Uint8Array(n))},T=function(t,e){return"audio"===t.type?N(t,e):B(t,e)};var V,z,W={ftyp:r=function(){return t(S.ftyp,k,C,k,w)},mdat:function(e){return t(S.mdat,e)},moof:o,moov:l,initSegment:function(t){var e,i=r(),n=l(t);return(e=new Uint8Array(i.byteLength+n.byteLength)).set(i),e.set(n,i.byteLength),e}},q=function(t){return t&gt;&gt;&gt;0},G={findBox:V=function(t,e){var i,n,r,a,s,o=[];if(!e.length)return null;for(i=0;i&lt;t.byteLength;)n=q(t[i]&lt;&lt;24|t[i+1]&lt;&lt;16|t[i+2]&lt;&lt;8|t[i+3]),r=z(t.subarray(i+4,i+8)),a=n&gt;1?i+n:t.byteLength,r===e[0]&amp;&amp;(1===e.length?o.push(t.subarray(i+8,a)):(s=V(t.subarray(i+8,a),e.slice(1))).length&amp;&amp;(o=o.concat(s))),i=a;return o},parseType:z=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),e+=String.fromCharCode(t[2]),e+=String.fromCharCode(t[3])},timescale:function(t){return V(t,["moov","trak"]).reduce(function(t,e){var i,n,r,a,s;return(i=V(e,["tkhd"])[0])?(n=i[0],a=q(i[r=0===n?12:20]&lt;&lt;24|i[r+1]&lt;&lt;16|i[r+2]&lt;&lt;8|i[r+3]),(s=V(e,["mdia","mdhd"])[0])?(r=0===(n=s[0])?12:20,t[a]=q(s[r]&lt;&lt;24|s[r+1]&lt;&lt;16|s[r+2]&lt;&lt;8|s[r+3]),t):null):null},{})},startTime:function(t,e){var i,n,r;return i=V(e,["moof","traf"]),n=[].concat.apply([],i.map(function(e){return V(e,["tfhd"]).map(function(i){var n,r;return n=q(i[4]&lt;&lt;24|i[5]&lt;&lt;16|i[6]&lt;&lt;8|i[7]),r=t[n]||9e4,(V(e,["tfdt"]).map(function(t){var e,i;return e=t[0],i=q(t[4]&lt;&lt;24|t[5]&lt;&lt;16|t[6]&lt;&lt;8|t[7]),1===e&amp;&amp;(i*=Math.pow(2,32),i+=q(t[8]&lt;&lt;24|t[9]&lt;&lt;16|t[10]&lt;&lt;8|t[11])),i})[0]||1/0)/r})})),r=Math.min.apply(null,n),isFinite(r)?r:0},videoTrackIds:function(t){var e=[];return V(t,["moov","trak"]).forEach(function(t){var i=V(t,["mdia","hdlr"]),n=V(t,["tkhd"]);i.forEach(function(t,i){var r,a,s=z(t.subarray(8,12)),o=n[i];"vide"===s&amp;&amp;(a=0===(r=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0)?r.getUint32(12):r.getUint32(20),e.push(a))})}),e}},X=function(){this.init=function(){var t={};this.on=function(e,i){t[e]||(t[e]=[]),t[e]=t[e].concat(i)},this.off=function(e,i){var n;return!!t[e]&amp;&amp;(n=t[e].indexOf(i),t[e]=t[e].slice(),t[e].splice(n,1),n&gt;-1)},this.trigger=function(e){var i,n,r,a;if(i=t[e])if(2===arguments.length)for(r=i.length,n=0;n&lt;r;++n)i[n].call(this,arguments[1]);else{for(a=[],n=arguments.length,n=1;n&lt;arguments.length;++n)a.push(arguments[n]);for(r=i.length,n=0;n&lt;r;++n)i[n].apply(this,a)}},this.dispose=function(){t={}}}};X.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),t},X.prototype.push=function(t){this.trigger("data",t)},X.prototype.flush=function(t){this.trigger("done",t)};var Y=X,K=function(t,e){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=e,i.compositionTimeOffset=t.pts-t.dts,i.duration=t.duration,i.size=4*t.length,i.size+=t.byteLength,t.keyFrame&amp;&amp;(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},$=function(t){var e,i,n=[],r=[];for(n.byteLength=0,e=0;e&lt;t.length;e++)"access_unit_delimiter_rbsp"===(i=t[e]).nalUnitType?(n.length&amp;&amp;(n.duration=i.dts-n.dts,r.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&amp;&amp;(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&amp;&amp;(!n.duration||n.duration&lt;=0)&amp;&amp;(n.duration=r[r.length-1].duration),r.push(n),r},J=function(t){var e,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=t[0].pts,n.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e&lt;t.length;e++)(i=t[e]).keyFrame?(n.length&amp;&amp;(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&amp;&amp;n.duration&lt;=0&amp;&amp;(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},Z=function(t){var e;return!t[0][0].keyFrame&amp;&amp;t.length&gt;1&amp;&amp;(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},Q=function(t,e){var i,n,r,a,s,o=e||0,l=[];for(i=0;i&lt;t.length;i++)for(a=t[i],n=0;n&lt;a.length;n++)s=a[n],o+=(r=K(s,o)).size,l.push(r);return l},tt=function(t){var e,i,n,r,a,s,o=0,l=t.byteLength,u=t.nalCount,c=new Uint8Array(l+4*u),h=new DataView(c.buffer);for(e=0;e&lt;t.length;e++)for(r=t[e],i=0;i&lt;r.length;i++)for(a=r[i],n=0;n&lt;a.length;n++)s=a[n],h.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c},et=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},it=function(t,e){var i,n=t.minSegmentDts;return e||(n-=t.timelineStartInfo.dts),i=t.timelineStartInfo.baseMediaDecodeTime,i+=n,i=Math.max(0,i),"audio"===t.type&amp;&amp;(i*=t.samplerate/9e4,i=Math.floor(i)),i},nt=function(t,e){"number"==typeof e.pts&amp;&amp;(void 0===t.timelineStartInfo.pts&amp;&amp;(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&amp;&amp;(void 0===t.timelineStartInfo.dts&amp;&amp;(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},rt=function(t){for(var e=0,i={payloadType:-1,payloadSize:0},n=0,r=0;e&lt;t.byteLength&amp;&amp;128!==t[e];){for(;255===t[e];)n+=255,e++;for(n+=t[e++];255===t[e];)r+=255,e++;if(r+=t[e++],!i.payload&amp;&amp;4===n){i.payloadType=n,i.payloadSize=r,i.payload=t.subarray(e,e+r);break}e+=r,n=0,r=0}return i},at=function(t){return 181!==t.payload[0]?null:49!=(t.payload[1]&lt;&lt;8|t.payload[2])?null:"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])?null:3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)},st=function(t,e){var i,n,r,a,s=[];if(!(64&amp;e[0]))return s;for(n=31&amp;e[0],i=0;i&lt;n;i++)a={type:3&amp;e[2+(r=3*i)],pts:t},4&amp;e[r+2]&amp;&amp;(a.ccData=e[r+3]&lt;&lt;8|e[r+4],s.push(a));return s},ot=function(t){for(var e,i,n=t.byteLength,r=[],a=1;a&lt;n-2;)0===t[a]&amp;&amp;0===t[a+1]&amp;&amp;3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=n-r.length,i=new Uint8Array(e);var s=0;for(a=0;a&lt;e;s++,a++)s===r[0]&amp;&amp;(s++,r.shift()),i[a]=t[s];return i},lt=4,ut=function t(){t.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new ft(0,0),new ft(0,1),new ft(1,0),new ft(1,1)],this.reset(),this.ccStreams_.forEach(function(t){t.on("data",this.trigger.bind(this,"data")),t.on("done",this.trigger.bind(this,"done"))},this)};(ut.prototype=new Y).push=function(t){var e,i,n;if("sei_rbsp"===t.nalUnitType&amp;&amp;(e=rt(t.escapedRBSP)).payloadType===lt&amp;&amp;(i=at(e)))if(t.dts&lt;this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&amp;&amp;this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=st(t.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==t.dts&amp;&amp;(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},ut.prototype.flush=function(){this.captionPackets_.length?(this.captionPackets_.forEach(function(t,e){t.presortIndex=e}),this.captionPackets_.sort(function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts}),this.captionPackets_.forEach(function(t){t.type&lt;2&amp;&amp;this.dispatchCea608Packet(t)},this),this.captionPackets_.length=0,this.ccStreams_.forEach(function(t){t.flush()},this)):this.ccStreams_.forEach(function(t){t.flush()},this)},ut.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(t){t.reset()})},ut.prototype.dispatchCea608Packet=function(t){this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&amp;&amp;(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&amp;&amp;this.ccStreams_[(t.type&lt;&lt;1)+this.activeCea608Channel_[t.type]].push(t)},ut.prototype.setsChannel1Active=function(t){return 4096==(30720&amp;t.ccData)},ut.prototype.setsChannel2Active=function(t){return 6144==(30720&amp;t.ccData)};var ct={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},ht=function(t){return null===t?"":(t=ct[t]||t,String.fromCharCode(t))},dt=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],pt=function(){for(var t=[],e=15;e--;)t.push("");return t},ft=function t(e,i){t.prototype.init.call(this),this.field_=e||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_&lt;&lt;1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,i,n,r,a;if((e=32639&amp;t.ccData)!==this.lastControlCode_){if(4096==(61440&amp;e)?this.lastControlCode_=e:e!==this.PADDING_&amp;&amp;(this.lastControlCode_=null),n=e&gt;&gt;&gt;8,r=255&amp;e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=pt();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=pt();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&amp;&amp;(this.flushDisplayed(t.pts),this.displayed_=pt()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(n,r))a=ht((n=(3&amp;n)&lt;&lt;8)|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=ht((n=(3&amp;n)&lt;&lt;8)|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&amp;r)&amp;&amp;this.addFormatting(t.pts,["i"]),1==(1&amp;r)&amp;&amp;this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&amp;r;else if(this.isPAC(n,r)){var s=dt.indexOf(7968&amp;e);"rollUp"===this.mode_&amp;&amp;this.setRollUp(t.pts,s),s!==this.row_&amp;&amp;(this.clearFormatting(t.pts),this.row_=s),1&amp;r&amp;&amp;-1===this.formatting_.indexOf("u")&amp;&amp;this.addFormatting(t.pts,["u"]),16==(16&amp;e)&amp;&amp;(this.column_=4*((14&amp;e)&gt;&gt;1)),this.isColorPAC(r)&amp;&amp;14==(14&amp;r)&amp;&amp;this.addFormatting(t.pts,["i"])}else this.isNormalChar(n)&amp;&amp;(0===r&amp;&amp;(r=null),a=ht(n),a+=ht(r),this[this.mode_](t.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};ft.prototype=new Y,ft.prototype.flushDisplayed=function(t){var e=this.displayed_.map(function(t){return t.trim()}).join("\n").replace(/^\n+|\n+$/g,"");e.length&amp;&amp;this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},ft.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=pt(),this.nonDisplayed_=pt(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},ft.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)&lt;&lt;8,this.OFFSET_=23):1===this.dataChannel_&amp;&amp;(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)&lt;&lt;8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},ft.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&amp;&amp;e&gt;=48&amp;&amp;e&lt;=63},ft.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&amp;&amp;e&gt;=32&amp;&amp;e&lt;=63},ft.prototype.isMidRowCode=function(t,e){return t===this.EXT_&amp;&amp;e&gt;=32&amp;&amp;e&lt;=47},ft.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&amp;&amp;e&gt;=33&amp;&amp;e&lt;=35},ft.prototype.isPAC=function(t,e){return t&gt;=this.BASE_&amp;&amp;t&lt;this.BASE_+8&amp;&amp;e&gt;=64&amp;&amp;e&lt;=127},ft.prototype.isColorPAC=function(t){return t&gt;=64&amp;&amp;t&lt;=79||t&gt;=96&amp;&amp;t&lt;=127},ft.prototype.isNormalChar=function(t){return t&gt;=32&amp;&amp;t&lt;=127},ft.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&amp;&amp;(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=pt(),this.displayed_=pt()),void 0!==e&amp;&amp;e!==this.row_)for(var i=0;i&lt;this.rollUpRows_;i++)this.displayed_[e-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===e&amp;&amp;(e=this.row_),this.topRow_=e-this.rollUpRows_+1},ft.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var i=e.reduce(function(t,e){return t+"&lt;"+e+"&gt;"},"");this[this.mode_](t,i)},ft.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce(function(t,e){return t+"&lt;/"+e+"&gt;"},"");this.formatting_=[],this[this.mode_](t,e)}},ft.prototype.popOn=function(t,e){var i=this.nonDisplayed_[this.row_];i+=e,this.nonDisplayed_[this.row_]=i},ft.prototype.rollUp=function(t,e){var i=this.displayed_[this.row_];i+=e,this.displayed_[this.row_]=i},ft.prototype.shiftRowsUp_=function(){var t;for(t=0;t&lt;this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t&lt;15;t++)this.displayed_[t]="";for(t=this.topRow_;t&lt;this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},ft.prototype.paintOn=function(t,e){var i=this.displayed_[this.row_];i+=e,this.displayed_[this.row_]=i};var gt={CaptionStream:ut,Cea608Stream:ft},mt={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},yt=function(t,e){var i=1;for(t&gt;e&amp;&amp;(i=-1);Math.abs(e-t)&gt;4294967296;)t+=8589934592*i;return t},vt=function t(e){var i,n;t.prototype.init.call(this),this.type_=e,this.push=function(t){t.type===this.type_&amp;&amp;(void 0===n&amp;&amp;(n=t.dts),t.dts=yt(t.dts,n),t.pts=yt(t.pts,n),i=t.dts,this.trigger("data",t))},this.flush=function(){n=i,this.trigger("done")},this.discontinuity=function(){n=void 0,i=void 0}};vt.prototype=new Y;var _t,bt=vt,Tt=function(t,e,i){var n,r="";for(n=e;n&lt;i;n++)r+="%"+("00"+t[n].toString(16)).slice(-2);return r},St=function(t,e,i){return decodeURIComponent(Tt(t,e,i))},kt=function(t){return t[0]&lt;&lt;21|t[1]&lt;&lt;14|t[2]&lt;&lt;7|t[3]},Ct={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e&lt;t.data.length;e++)if(0===t.data[e]){t.description=St(t.data,1,e),t.value=St(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e&lt;t.data.length;e++)if(0===t.data[e]){t.description=St(t.data,1,e),t.url=St(t.data,e+1,t.data.length);break}},PRIV:function(t){var e,i;for(e=0;e&lt;t.data.length;e++)if(0===t.data[e]){t.owner=(i=t.data,unescape(Tt(i,0,e)));break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};(_t=function(t){var e,i={debug:!(!t||!t.debug),descriptor:t&amp;&amp;t.descriptor},n=0,r=[],a=0;if(_t.prototype.init.call(this),this.dispatchType=mt.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(e=0;e&lt;i.descriptor.length;e++)this.dispatchType+=("00"+i.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,s,o,l,u;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&amp;&amp;(a=0,r.length=0),0===r.length&amp;&amp;(t.data.length&lt;10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))i.debug&amp;&amp;console.log("Skipping unrecognized metadata packet");else if(r.push(t),a+=t.data.byteLength,1===r.length&amp;&amp;(n=kt(t.data.subarray(6,10)),n+=10),!(a&lt;n)){for(e={data:new Uint8Array(n),frames:[],pts:r[0].pts,dts:r[0].dts},u=0;u&lt;n;)e.data.set(r[0].data.subarray(0,n-u),u),u+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();s=10,64&amp;e.data[5]&amp;&amp;(s+=4,s+=kt(e.data.subarray(10,14)),n-=kt(e.data.subarray(16,20)));do{if((o=kt(e.data.subarray(s+4,s+8)))&lt;1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((l={id:String.fromCharCode(e.data[s],e.data[s+1],e.data[s+2],e.data[s+3]),data:e.data.subarray(s+10,s+o+10)}).key=l.id,Ct[l.id]&amp;&amp;(Ct[l.id](l),"com.apple.streaming.transportStreamTimestamp"===l.owner)){var c=l.data,h=(1&amp;c[3])&lt;&lt;30|c[4]&lt;&lt;22|c[5]&lt;&lt;14|c[6]&lt;&lt;6|c[7]&gt;&gt;&gt;2;h*=4,h+=3&amp;c[7],l.timeStamp=h,void 0===e.pts&amp;&amp;void 0===e.dts&amp;&amp;(e.pts=l.timeStamp,e.dts=l.timeStamp),this.trigger("timestamp",l)}e.frames.push(l),s+=10,s+=o}while(s&lt;n);this.trigger("data",e)}}}).prototype=new Y;var wt,Et,At,xt=_t,Ot=bt;(wt=function(){var t=new Uint8Array(188),e=0;wt.prototype.init.call(this),this.push=function(i){var n,r=0,a=188;for(e?((n=new Uint8Array(i.byteLength+e)).set(t.subarray(0,e)),n.set(i,e),e=0):n=i;a&lt;n.byteLength;)71!==n[r]||71!==n[a]?(r++,a++):(this.trigger("data",n.subarray(r,a)),r+=188,a+=188);r&lt;n.byteLength&amp;&amp;(t.set(n.subarray(r),0),e=n.byteLength-r)},this.flush=function(){188===e&amp;&amp;71===t[0]&amp;&amp;(this.trigger("data",t),e=0),this.trigger("done")}}).prototype=new Y,(Et=function(){var t,e,i,n;Et.prototype.init.call(this),n=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,n){var r=0;n.payloadUnitStartIndicator&amp;&amp;(r+=t[r]+1),"pat"===n.type?e(t.subarray(r),n):i(t.subarray(r),n)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],n.pmtPid=(31&amp;t[10])&lt;&lt;8|t[11],e.pmtPid=n.pmtPid},i=function(t,e){var i,r;if(1&amp;t[5]){for(n.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&amp;t[1])&lt;&lt;8|t[2])-4,r=12+((15&amp;t[10])&lt;&lt;8|t[11]);r&lt;i;){var a=t[r],s=(31&amp;t[r+1])&lt;&lt;8|t[r+2];a===mt.H264_STREAM_TYPE&amp;&amp;null===n.programMapTable.video?n.programMapTable.video=s:a===mt.ADTS_STREAM_TYPE&amp;&amp;null===n.programMapTable.audio?n.programMapTable.audio=s:a===mt.METADATA_STREAM_TYPE&amp;&amp;(n.programMapTable["timed-metadata"][s]=a),r+=5+((15&amp;t[r+3])&lt;&lt;8|t[r+4])}e.programMapTable=n.programMapTable}},this.push=function(e){var i={},n=4;if(i.payloadUnitStartIndicator=!!(64&amp;e[1]),i.pid=31&amp;e[1],i.pid&lt;&lt;=8,i.pid|=e[2],(48&amp;e[3])&gt;&gt;&gt;4&gt;1&amp;&amp;(n+=e[n]+1),0===i.pid)i.type="pat",t(e.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",t(e.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,n,i]):this.processPes_(e,n,i)},this.processPes_=function(t,e,i){i.pid===this.programMapTable.video?i.streamType=mt.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=mt.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=t.subarray(e),this.trigger("data",i)}}).prototype=new Y,Et.STREAM_TYPES={h264:27,adts:15},(At=function(){var t=this,e={data:[],size:0},i={data:[],size:0},n={data:[],size:0},r=function(e,i,n){var r,a,s=new Uint8Array(e.size),o={type:i},l=0,u=0;if(e.data.length&amp;&amp;!(e.size&lt;9)){for(o.trackId=e.data[0].pid,l=0;l&lt;e.data.length;l++)a=e.data[l],s.set(a.data,u),u+=a.data.byteLength;var c,h,d;c=s,(h=o).packetLength=6+(c[4]&lt;&lt;8|c[5]),h.dataAlignmentIndicator=0!=(4&amp;c[6]),192&amp;(d=c[7])&amp;&amp;(h.pts=(14&amp;c[9])&lt;&lt;27|(255&amp;c[10])&lt;&lt;20|(254&amp;c[11])&lt;&lt;12|(255&amp;c[12])&lt;&lt;5|(254&amp;c[13])&gt;&gt;&gt;3,h.pts*=4,h.pts+=(6&amp;c[13])&gt;&gt;&gt;1,h.dts=h.pts,64&amp;d&amp;&amp;(h.dts=(14&amp;c[14])&lt;&lt;27|(255&amp;c[15])&lt;&lt;20|(254&amp;c[16])&lt;&lt;12|(255&amp;c[17])&lt;&lt;5|(254&amp;c[18])&gt;&gt;&gt;3,h.dts*=4,h.dts+=(6&amp;c[18])&gt;&gt;&gt;1)),h.data=c.subarray(9+c[8]),r="video"===i||o.packetLength&lt;=e.size,(n||r)&amp;&amp;(e.size=0,e.data.length=0),r&amp;&amp;t.trigger("data",o)}};At.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var t,s;switch(a.streamType){case mt.H264_STREAM_TYPE:case mt.H264_STREAM_TYPE:t=e,s="video";break;case mt.ADTS_STREAM_TYPE:t=i,s="audio";break;case mt.METADATA_STREAM_TYPE:t=n,s="timed-metadata";break;default:return}a.payloadUnitStartIndicator&amp;&amp;r(t,s,!0),t.data.push(a),t.size+=a.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]},i=a.programMapTable;null!==i.video&amp;&amp;e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.video,codec:"avc",type:"video"}),null!==i.audio&amp;&amp;e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.audio,codec:"adts",type:"audio"}),t.trigger("data",e)}})[a.type]()},this.flush=function(){r(e,"video"),r(i,"audio"),r(n,"timed-metadata"),this.trigger("done")}}).prototype=new Y;var Pt={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:wt,TransportParseStream:Et,ElementaryStream:At,TimestampRolloverStream:Ot,CaptionStream:gt.CaptionStream,Cea608Stream:gt.Cea608Stream,MetadataStream:xt};for(var Lt in mt)mt.hasOwnProperty(Lt)&amp;&amp;(Pt[Lt]=mt[Lt]);var It,Mt=Pt,Rt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(It=function(){var t;It.prototype.init.call(this),this.push=function(e){var i,n,r,a,s,o,l=0,u=0;if("audio"===e.type)for(t?(a=t,(t=new Uint8Array(a.byteLength+e.data.byteLength)).set(a),t.set(e.data,a.byteLength)):t=e.data;l+5&lt;t.length;)if(255===t[l]&amp;&amp;240==(246&amp;t[l+1])){if(n=2*(1&amp;~t[l+1]),i=(3&amp;t[l+3])&lt;&lt;11|t[l+4]&lt;&lt;3|(224&amp;t[l+5])&gt;&gt;5,o=9e4*(s=1024*(1+(3&amp;t[l+6])))/Rt[(60&amp;t[l+2])&gt;&gt;&gt;2],r=l+i,t.byteLength&lt;r)return;if(this.trigger("data",{pts:e.pts+u*o,dts:e.dts+u*o,sampleCount:s,audioobjecttype:1+(t[l+2]&gt;&gt;&gt;6&amp;3),channelcount:(1&amp;t[l+2])&lt;&lt;2|(192&amp;t[l+3])&gt;&gt;&gt;6,samplerate:Rt[(60&amp;t[l+2])&gt;&gt;&gt;2],samplingfrequencyindex:(60&amp;t[l+2])&gt;&gt;&gt;2,samplesize:16,data:t.subarray(l+7+n,r)}),t.byteLength===r)return void(t=void 0);u++,t=t.subarray(r)}else l++},this.flush=function(){this.trigger("done")}}).prototype=new Y;var jt,Ut,Nt,Bt=It,Ft=function(t){var e=t.byteLength,i=0,n=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+n},this.loadWord=function(){var r=t.byteLength-e,a=new Uint8Array(4),s=Math.min(4,e);if(0===s)throw new Error("no bytes available");a.set(t.subarray(r,r+s)),i=new DataView(a.buffer).getUint32(0),n=8*s,e-=s},this.skipBits=function(t){var r;n&gt;t?(i&lt;&lt;=t,n-=t):(t-=n,t-=8*(r=Math.floor(t/8)),e-=r,this.loadWord(),i&lt;&lt;=t,n-=t)},this.readBits=function(t){var r=Math.min(n,t),a=i&gt;&gt;&gt;32-r;return(n-=r)&gt;0?i&lt;&lt;=r:e&gt;0&amp;&amp;this.loadWord(),(r=t-r)&gt;0?a&lt;&lt;r|this.readBits(r):a},this.skipLeadingZeros=function(){var t;for(t=0;t&lt;n;++t)if(0!=(i&amp;2147483648&gt;&gt;&gt;t))return i&lt;&lt;=t,n-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&amp;t?1+t&gt;&gt;&gt;1:-1*(t&gt;&gt;&gt;1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(Ut=function(){var t,e,i=0;Ut.prototype.init.call(this),this.push=function(n){var r;for(e?((r=new Uint8Array(e.byteLength+n.data.byteLength)).set(e),r.set(n.data,e.byteLength),e=r):e=n.data;i&lt;e.byteLength-3;i++)if(1===e[i+2]){t=i+5;break}for(;t&lt;e.byteLength;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}i+3!==t-2&amp;&amp;this.trigger("data",e.subarray(i+3,t-2));do{t++}while(1!==e[t]&amp;&amp;t&lt;e.length);i=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(i+3,t-2)),i=t-2,t+=3;break;default:t+=3}e=e.subarray(i),t-=i,i=0},this.flush=function(){e&amp;&amp;e.byteLength&gt;3&amp;&amp;this.trigger("data",e.subarray(i+3)),e=null,i=0,this.trigger("done")}}).prototype=new Y,Nt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(jt=function(){var t,e,i,n,r,a,s,o=new Ut;jt.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&amp;&amp;(e=t.trackId,i=t.pts,n=t.dts,o.push(t))},o.on("data",function(s){var o={trackId:e,pts:i,dts:n,data:s};switch(31&amp;s[0]){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",o)}),o.on("done",function(){t.trigger("done")}),this.flush=function(){o.flush()},s=function(t,e){var i,n=8,r=8;for(i=0;i&lt;t;i++)0!==r&amp;&amp;(r=(n+e.readExpGolomb()+256)%256),n=0===r?n:r},r=function(t){for(var e,i,n=t.byteLength,r=[],a=1;a&lt;n-2;)0===t[a]&amp;&amp;0===t[a+1]&amp;&amp;3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=n-r.length,i=new Uint8Array(e);var s=0;for(a=0;a&lt;e;s++,a++)s===r[0]&amp;&amp;(s++,r.shift()),i[a]=t[s];return i},a=function(t){var e,i,n,r,a,o,l,u,c,h,d,p,f,g=0,m=0,y=0,v=0,_=1;if(i=(e=new Ft(t)).readUnsignedByte(),r=e.readUnsignedByte(),n=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),Nt[i]&amp;&amp;(3===(a=e.readUnsignedExpGolomb())&amp;&amp;e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(d=3!==a?8:12,f=0;f&lt;d;f++)e.readBoolean()&amp;&amp;s(f&lt;6?16:64,e);if(e.skipUnsignedExpGolomb(),0===(o=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===o)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),l=e.readUnsignedExpGolomb(),f=0;f&lt;l;f++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),u=e.readUnsignedExpGolomb(),c=e.readUnsignedExpGolomb(),0===(h=e.readBits(1))&amp;&amp;e.skipBits(1),e.skipBits(1),e.readBoolean()&amp;&amp;(g=e.readUnsignedExpGolomb(),m=e.readUnsignedExpGolomb(),y=e.readUnsignedExpGolomb(),v=e.readUnsignedExpGolomb()),e.readBoolean()&amp;&amp;e.readBoolean()){switch(e.readUnsignedByte()){case 1:p=[1,1];break;case 2:p=[12,11];break;case 3:p=[10,11];break;case 4:p=[16,11];break;case 5:p=[40,33];break;case 6:p=[24,11];break;case 7:p=[20,11];break;case 8:p=[32,11];break;case 9:p=[80,33];break;case 10:p=[18,11];break;case 11:p=[15,11];break;case 12:p=[64,33];break;case 13:p=[160,99];break;case 14:p=[4,3];break;case 15:p=[3,2];break;case 16:p=[2,1];break;case 255:p=[e.readUnsignedByte()&lt;&lt;8|e.readUnsignedByte(),e.readUnsignedByte()&lt;&lt;8|e.readUnsignedByte()]}p&amp;&amp;(_=p[0]/p[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:r,width:Math.ceil((16*(u+1)-2*g-2*m)*_),height:(2-h)*(c+1)*16-2*y-2*v}}}).prototype=new Y;var Ht,Vt={H264Stream:jt,NalByteStream:Ut};(Ht=function(){var t=new Uint8Array,e=0;Ht.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.parseId3TagSize=function(t,e){var i=t[e+6]&lt;&lt;21|t[e+7]&lt;&lt;14|t[e+8]&lt;&lt;7|t[e+9];return(16&amp;t[e+5])&gt;&gt;4?i+20:i+10},this.parseAdtsSize=function(t,e){var i=(224&amp;t[e+5])&gt;&gt;5,n=t[e+4]&lt;&lt;3;return 6144&amp;t[e+3]|n|i},this.push=function(i){var n,r,a,s,o=0,l=0;for(t.length?(s=t.length,(t=new Uint8Array(i.byteLength+s)).set(t.subarray(0,s)),t.set(i,s)):t=i;t.length-l&gt;=3;)if(t[l]!=="I".charCodeAt(0)||t[l+1]!=="D".charCodeAt(0)||t[l+2]!=="3".charCodeAt(0))if(!0&amp;t[l]&amp;&amp;240==(240&amp;t[l+1])){if(t.length-l&lt;7)break;if((o=this.parseAdtsSize(t,l))&gt;t.length)break;a={type:"audio",data:t.subarray(l,l+o),pts:e,dts:e},this.trigger("data",a),l+=o}else l++;else{if(t.length-l&lt;10)break;if((o=this.parseId3TagSize(t,l))&gt;t.length)break;r={type:"timed-metadata",data:t.subarray(l,l+o)},this.trigger("data",r),l+=o}n=t.length-l,t=n&gt;0?t.subarray(l):new Uint8Array}}).prototype=new Y;var zt,Wt,qt,Gt,Xt,Yt,Kt,$t,Jt,Zt,Qt,te,ee=Ht,ie=[33,16,5,32,164,27],ne=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],re=function(t){for(var e=[];t--;)e.push(0);return e},ae={96000:[ie,[227,64],re(154),[56]],88200:[ie,[231],re(170),[56]],64000:[ie,[248,192],re(240),[56]],48000:[ie,[255,192],re(268),[55,148,128],re(54),[112]],44100:[ie,[255,192],re(268),[55,163,128],re(84),[112]],32000:[ie,[255,192],re(268),[55,234],re(226),[112]],24000:[ie,[255,192],re(268),[55,255,128],re(268),[111,112],re(126),[224]],16000:[ie,[255,192],re(268),[55,255,128],re(268),[111,255],re(269),[223,108],re(195),[1,192]],12000:[ne,re(268),[3,127,248],re(268),[6,255,240],re(268),[13,255,224],re(268),[27,253,128],re(259),[56]],11025:[ne,re(268),[3,127,248],re(268),[6,255,240],re(268),[13,255,224],re(268),[27,255,192],re(268),[55,175,128],re(108),[112]],8000:[ne,re(268),[3,121,16],re(47),[7]]},se=(zt=ae,Object.keys(zt).reduce(function(t,e){return t[e]=new Uint8Array(zt[e].reduce(function(t,e){return t.concat(e)},[])),t},{})),oe=(Wt=function(t){return 9e4*t},qt=function(t,e){return t*e},Gt=function(t){return t/9e4},Xt=function(t,e){return t/e},function(t,e){return Wt(Xt(t,e))}),le=function(t,e){return qt(Gt(t),e)},ue=Vt.H264Stream,ce=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],he=["width","height","profileIdc","levelIdc","profileCompatibility"];Zt=function(t){return t[0]==="I".charCodeAt(0)&amp;&amp;t[1]==="D".charCodeAt(0)&amp;&amp;t[2]==="3".charCodeAt(0)},Qt=function(t,e){var i;if(t.length!==e.length)return!1;for(i=0;i&lt;t.length;i++)if(t[i]!==e[i])return!1;return!0},te=function(t){var e,i=0;for(e=0;e&lt;t.length;e++)i+=t[e].data.byteLength;return i},(Kt=function(t,e){var i=[],n=0,r=0,a=0,s=1/0;e=e||{},Kt.prototype.init.call(this),this.push=function(e){nt(t,e),t&amp;&amp;ce.forEach(function(i){t[i]=e[i]}),i.push(e)},this.setEarliestDts=function(e){r=e-t.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(t){s=t},this.setAudioAppendStart=function(t){a=t},this.flush=function(){var r,a,s,o;0!==i.length?(r=this.trimAdtsFramesByEarliestDts_(i),t.baseMediaDecodeTime=it(t,e.keepOriginalTimestamps),this.prefixWithSilence_(t,r),t.samples=this.generateSampleTable_(r),s=W.mdat(this.concatenateFrameData_(r)),i=[],a=W.moof(n,[t]),o=new Uint8Array(a.byteLength+s.byteLength),n++,o.set(a),o.set(s,a.byteLength),et(t),this.trigger("data",{track:t,boxes:o}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.prefixWithSilence_=function(t,e){var i,n,r,o,l=0,u=0,c=0;if(e.length&amp;&amp;(i=oe(t.baseMediaDecodeTime,t.samplerate),n=Math.ceil(9e4/(t.samplerate/1024)),a&amp;&amp;s&amp;&amp;(l=i-Math.max(a,s),c=(u=Math.floor(l/n))*n),!(u&lt;1||c&gt;45e3))){for((r=se[t.samplerate])||(r=e[0].data),o=0;o&lt;u;o++)e.splice(o,0,{data:r});t.baseMediaDecodeTime-=Math.floor(le(c,t.samplerate))}},this.trimAdtsFramesByEarliestDts_=function(e){return t.minSegmentDts&gt;=r?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts&gt;=r&amp;&amp;(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},this.generateSampleTable_=function(t){var e,i,n=[];for(e=0;e&lt;t.length;e++)i=t[e],n.push({size:i.data.byteLength,duration:1024});return n},this.concatenateFrameData_=function(t){var e,i,n=0,r=new Uint8Array(te(t));for(e=0;e&lt;t.length;e++)i=t[e],r.set(i.data,n),n+=i.data.byteLength;return r}}).prototype=new Y,(Yt=function(t,e){var i,n,r=0,a=[],s=[];e=e||{},Yt.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){nt(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.config,t.sps=[e.data],he.forEach(function(e){t[e]=i[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.data,t.pps=[e.data]),a.push(e)},this.flush=function(){for(var i,n,o,l,u,c;a.length&amp;&amp;"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=$(a),(o=J(i))[0][0].keyFrame||((n=this.getGopForFusion_(a[0],t))?(o.unshift(n),o.byteLength+=n.byteLength,o.nalCount+=n.nalCount,o.pts=n.pts,o.dts=n.dts,o.duration+=n.duration):o=Z(o)),s.length){var h;if(!(h=e.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");et(t),o=h}nt(t,o),t.samples=Q(o),u=W.mdat(tt(o)),t.baseMediaDecodeTime=it(t,e.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}})),this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),l=W.moof(r,[t]),c=new Uint8Array(l.byteLength+u.byteLength),r++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:t,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.resetStream_=function(){et(t),i=void 0,n=void 0},this.getGopForFusion_=function(e){var i,n,r,a,s,o=1/0;for(s=0;s&lt;this.gopCache_.length;s++)r=(a=this.gopCache_[s]).gop,t.pps&amp;&amp;Qt(t.pps[0],a.pps[0])&amp;&amp;t.sps&amp;&amp;Qt(t.sps[0],a.sps[0])&amp;&amp;(r.dts&lt;t.timelineStartInfo.dts||(i=e.dts-r.dts-r.duration)&gt;=-1e4&amp;&amp;i&lt;=45e3&amp;&amp;(!n||o&gt;i)&amp;&amp;(n=a,o=i));return n?n.gop:null},this.alignGopsAtStart_=function(t){var e,i,n,r,a,o,l,u;for(a=t.byteLength,o=t.nalCount,l=t.duration,e=i=0;e&lt;s.length&amp;&amp;i&lt;t.length&amp;&amp;(n=s[e],r=t[i],n.pts!==r.pts);)r.pts&gt;n.pts?e++:(i++,a-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===i?t:i===t.length?null:((u=t.slice(i)).byteLength=a,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(t){var e,i,n,r,a,o,l;for(e=s.length-1,i=t.length-1,a=null,o=!1;e&gt;=0&amp;&amp;i&gt;=0;){if(n=s[e],r=t[i],n.pts===r.pts){o=!0;break}n.pts&gt;r.pts?e--:(e===s.length-1&amp;&amp;(a=i),i--)}if(!o&amp;&amp;null===a)return null;if(0===(l=o?i:a))return t;var u=t.slice(l),c=u.reduce(function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t},{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(t){s=t}}).prototype=new Y,(Jt=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==t.remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Jt.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBoxes.push(t.boxes),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&amp;&amp;(this.videoTrack=t.track),void("audio"===t.track.type&amp;&amp;(this.audioTrack=t.track)))}}).prototype=new Y,Jt.prototype.flush=function(t){var e,i,n,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length&lt;this.numberOfTracks){if("VideoSegmentStream"!==t&amp;&amp;"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks&gt;=this.numberOfTracks&amp;&amp;(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,he.forEach(function(t){s.info[t]=this.videoTrack[t]},this)):this.audioTrack&amp;&amp;(o=this.audioTrack.timelineStartInfo.pts,ce.forEach(function(t){s.info[t]=this.audioTrack[t]},this)),1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,n=W.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),s.data=new Uint8Array(this.pendingBytes),r=0;r&lt;this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r&lt;this.pendingCaptions.length;r++)(e=this.pendingCaptions[r]).startTime=e.startPts-o,e.startTime/=9e4,e.endTime=e.endPts-o,e.endTime/=9e4,s.captionStreams[e.stream]=!0,s.captions.push(e);for(r=0;r&lt;this.pendingMetadata.length;r++)(i=this.pendingMetadata[r]).cueTime=i.pts-o,i.cueTime/=9e4,s.metadata.push(i);s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),this.emittedTracks&gt;=this.numberOfTracks&amp;&amp;(this.trigger("done"),this.emittedTracks=0)},($t=function(t){var e,i,n=this,r=!0;$t.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var e={};this.transmuxPipeline_=e,e.type="aac",e.metadataStream=new Mt.MetadataStream,e.aacStream=new ee,e.audioTimestampRolloverStream=new Mt.TimestampRolloverStream("audio"),e.timedMetadataTimestampRolloverStream=new Mt.TimestampRolloverStream("timed-metadata"),e.adtsStream=new Bt,e.coalesceStream=new Jt(t,e.metadataStream),e.headOfPipeline=e.aacStream,e.aacStream.pipe(e.audioTimestampRolloverStream).pipe(e.adtsStream),e.aacStream.pipe(e.timedMetadataTimestampRolloverStream).pipe(e.metadataStream).pipe(e.coalesceStream),e.metadataStream.on("timestamp",function(t){e.aacStream.setTimestamp(t.timeStamp)}),e.aacStream.on("data",function(r){"timed-metadata"!==r.type||e.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},e.coalesceStream.numberOfTracks++,e.audioSegmentStream=new Kt(i,t),e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream))}),e.coalesceStream.on("data",this.trigger.bind(this,"data")),e.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new Mt.MetadataStream,r.packetStream=new Mt.TransportPacketStream,r.parseStream=new Mt.TransportParseStream,r.elementaryStream=new Mt.ElementaryStream,r.videoTimestampRolloverStream=new Mt.TimestampRolloverStream("video"),r.audioTimestampRolloverStream=new Mt.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Mt.TimestampRolloverStream("timed-metadata"),r.adtsStream=new Bt,r.h264Stream=new ue,r.captionStream=new Mt.CaptionStream,r.coalesceStream=new Jt(t,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream),r.elementaryStream.pipe(r.videoTimestampRolloverStream).pipe(r.h264Stream),r.elementaryStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.elementaryStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)e||"video"!==a.tracks[s].type?i||"audio"!==a.tracks[s].type||((i=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime):(e=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime;e&amp;&amp;!r.videoSegmentStream&amp;&amp;(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Yt(e,t),r.videoSegmentStream.on("timelineStartInfo",function(t){i&amp;&amp;(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts))}),r.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(t){i&amp;&amp;r.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&amp;&amp;!r.audioSegmentStream&amp;&amp;(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Kt(i,t),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream))}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(t){var n=this.transmuxPipeline_;this.baseMediaDecodeTime=t,i&amp;&amp;(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,et(i),i.timelineStartInfo.baseMediaDecodeTime=t,n.audioTimestampRolloverStream&amp;&amp;n.audioTimestampRolloverStream.discontinuity()),e&amp;&amp;(n.videoSegmentStream&amp;&amp;(n.videoSegmentStream.gopCache_=[],n.videoTimestampRolloverStream.discontinuity()),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,et(e),n.captionStream.reset(),e.timelineStartInfo.baseMediaDecodeTime=t),n.timedMetadataTimestampRolloverStream&amp;&amp;n.timedMetadataTimestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){i&amp;&amp;this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.alignGopsWith=function(t){e&amp;&amp;this.transmuxPipeline_.videoSegmentStream&amp;&amp;this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(r){var e=Zt(t);e&amp;&amp;"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&amp;&amp;this.transmuxPipeline_.captionStream.reset()}}).prototype=new Y;var de,pe,fe={Transmuxer:$t,VideoSegmentStream:Yt,AudioSegmentStream:Kt,AUDIO_PROPERTIES:ce,VIDEO_PROPERTIES:he},ge=G.parseType,me=function(t){return new Date(1e3*t-20828448e5)},ye=function(t){return{isLeading:(12&amp;t[0])&gt;&gt;&gt;2,dependsOn:3&amp;t[0],isDependedOn:(192&amp;t[1])&gt;&gt;&gt;6,hasRedundancy:(48&amp;t[1])&gt;&gt;&gt;4,paddingValue:(14&amp;t[1])&gt;&gt;&gt;1,isNonSyncSample:1&amp;t[1],degradationPriority:t[2]&lt;&lt;8|t[3]}},ve={avc1:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{dataReferenceIndex:e.getUint16(6),width:e.getUint16(24),height:e.getUint16(26),horizresolution:e.getUint16(28)+e.getUint16(30)/16,vertresolution:e.getUint16(32)+e.getUint16(34)/16,frameCount:e.getUint16(40),depth:e.getUint16(74),config:de(t.subarray(78,t.byteLength))}},avcC:function(t){var e,i,n,r,a=new DataView(t.buffer,t.byteOffset,t.byteLength),s={configurationVersion:t[0],avcProfileIndication:t[1],profileCompatibility:t[2],avcLevelIndication:t[3],lengthSizeMinusOne:3&amp;t[4],sps:[],pps:[]},o=31&amp;t[5];for(n=6,r=0;r&lt;o;r++)i=a.getUint16(n),n+=2,s.sps.push(new Uint8Array(t.subarray(n,n+i))),n+=i;for(e=t[n],n++,r=0;r&lt;e;r++)i=a.getUint16(n),n+=2,s.pps.push(new Uint8Array(t.subarray(n,n+i))),n+=i;return s},btrt:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{bufferSizeDB:e.getUint32(0),maxBitrate:e.getUint32(4),avgBitrate:e.getUint32(8)}},esds:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),esId:t[6]&lt;&lt;8|t[7],streamPriority:31&amp;t[8],decoderConfig:{objectProfileIndication:t[11],streamType:t[12]&gt;&gt;&gt;2&amp;63,bufferSize:t[13]&lt;&lt;16|t[14]&lt;&lt;8|t[15],maxBitrate:t[16]&lt;&lt;24|t[17]&lt;&lt;16|t[18]&lt;&lt;8|t[19],avgBitrate:t[20]&lt;&lt;24|t[21]&lt;&lt;16|t[22]&lt;&lt;8|t[23],decoderConfigDescriptor:{tag:t[24],length:t[25],audioObjectType:t[26]&gt;&gt;&gt;3&amp;31,samplingFrequencyIndex:(7&amp;t[26])&lt;&lt;1|t[27]&gt;&gt;&gt;7&amp;1,channelConfiguration:t[27]&gt;&gt;&gt;3&amp;15}}}},ftyp:function(t){for(var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i={majorBrand:ge(t.subarray(0,4)),minorVersion:e.getUint32(4),compatibleBrands:[]},n=8;n&lt;t.byteLength;)i.compatibleBrands.push(ge(t.subarray(n,n+4))),n+=4;return i},dinf:function(t){return{boxes:de(t)}},dref:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),dataReferences:de(t.subarray(8))}},hdlr:function(t){var e={version:new DataView(t.buffer,t.byteOffset,t.byteLength).getUint8(0),flags:new Uint8Array(t.subarray(1,4)),handlerType:ge(t.subarray(8,12)),name:""},i=8;for(i=24;i&lt;t.byteLength;i++){if(0===t[i]){i++;break}e.name+=String.fromCharCode(t[i])}return e.name=decodeURIComponent(escape(e.name)),e},mdat:function(t){return{byteLength:t.byteLength,nals:function(t){var e,i,n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=[];for(e=0;e+4&lt;t.length;e+=i)if(i=n.getUint32(e),e+=4,i&lt;=0)r.push("&lt;span style='color:red;'&gt;MALFORMED DATA&lt;/span&gt;");else switch(31&amp;t[e]){case 1:r.push("slice_layer_without_partitioning_rbsp");break;case 5:r.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:r.push("sei_rbsp");break;case 7:r.push("seq_parameter_set_rbsp");break;case 8:r.push("pic_parameter_set_rbsp");break;case 9:r.push("access_unit_delimiter_rbsp");break;default:r.push("UNKNOWN NAL - "+t[e]&amp;31)}return r}(t)}},mdhd:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n=4,r={version:i.getUint8(0),flags:new Uint8Array(t.subarray(1,4)),language:""};return 1===r.version?(n+=4,r.creationTime=me(i.getUint32(n)),n+=8,r.modificationTime=me(i.getUint32(n)),n+=4,r.timescale=i.getUint32(n),n+=8,r.duration=i.getUint32(n)):(r.creationTime=me(i.getUint32(n)),n+=4,r.modificationTime=me(i.getUint32(n)),n+=4,r.timescale=i.getUint32(n),n+=4,r.duration=i.getUint32(n)),n+=4,e=i.getUint16(n),r.language+=String.fromCharCode(96+(e&gt;&gt;10)),r.language+=String.fromCharCode(96+((992&amp;e)&gt;&gt;5)),r.language+=String.fromCharCode(96+(31&amp;e)),r},mdia:function(t){return{boxes:de(t)}},mfhd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),sequenceNumber:t[4]&lt;&lt;24|t[5]&lt;&lt;16|t[6]&lt;&lt;8|t[7]}},minf:function(t){return{boxes:de(t)}},mp4a:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i={dataReferenceIndex:e.getUint16(6),channelcount:e.getUint16(16),samplesize:e.getUint16(18),samplerate:e.getUint16(24)+e.getUint16(26)/65536};return t.byteLength&gt;28&amp;&amp;(i.streamDescriptor=de(t.subarray(28))[0]),i},moof:function(t){return{boxes:de(t)}},moov:function(t){return{boxes:de(t)}},mvex:function(t){return{boxes:de(t)}},mvhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i=4,n={version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4))};return 1===n.version?(i+=4,n.creationTime=me(e.getUint32(i)),i+=8,n.modificationTime=me(e.getUint32(i)),i+=4,n.timescale=e.getUint32(i),i+=8,n.duration=e.getUint32(i)):(n.creationTime=me(e.getUint32(i)),i+=4,n.modificationTime=me(e.getUint32(i)),i+=4,n.timescale=e.getUint32(i),i+=4,n.duration=e.getUint32(i)),i+=4,n.rate=e.getUint16(i)+e.getUint16(i+2)/16,i+=4,n.volume=e.getUint8(i)+e.getUint8(i+1)/8,i+=2,i+=2,i+=8,n.matrix=new Uint32Array(t.subarray(i,i+36)),i+=36,i+=24,n.nextTrackId=e.getUint32(i),n},pdin:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4)),rate:e.getUint32(4),initialDelay:e.getUint32(8)}},sdtp:function(t){var e,i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]};for(e=4;e&lt;t.byteLength;e++)i.samples.push({dependsOn:(48&amp;t[e])&gt;&gt;4,isDependedOn:(12&amp;t[e])&gt;&gt;2,hasRedundancy:3&amp;t[e]});return i},sidx:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8),earliestPresentationTime:i.getUint32(12),firstOffset:i.getUint32(16)},r=i.getUint16(22);for(e=24;r;e+=12,r--)n.references.push({referenceType:(128&amp;t[e])&gt;&gt;&gt;7,referencedSize:2147483647&amp;i.getUint32(e),subsegmentDuration:i.getUint32(e+4),startsWithSap:!!(128&amp;t[e+8]),sapType:(112&amp;t[e+8])&gt;&gt;&gt;4,sapDeltaTime:268435455&amp;i.getUint32(e+8)});return n},smhd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),balance:t[4]+t[5]/256}},stbl:function(t){return{boxes:de(t)}},stco:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),chunkOffsets:[]},r=i.getUint32(4);for(e=8;r;e+=4,r--)n.chunkOffsets.push(i.getUint32(e));return n},stsc:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n=i.getUint32(4),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleToChunks:[]};for(e=8;n;e+=12,n--)r.sampleToChunks.push({firstChunk:i.getUint32(e),samplesPerChunk:i.getUint32(e+4),sampleDescriptionIndex:i.getUint32(e+8)});return r},stsd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleDescriptions:de(t.subarray(8))}},stsz:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleSize:i.getUint32(4),entries:[]};for(e=12;e&lt;t.byteLength;e+=4)n.entries.push(i.getUint32(e));return n},stts:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),timeToSamples:[]},r=i.getUint32(4);for(e=8;r;e+=8,r--)n.timeToSamples.push({sampleCount:i.getUint32(e),sampleDelta:i.getUint32(e+4)});return n},styp:function(t){return ve.ftyp(t)},tfdt:function(t){var e={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:t[4]&lt;&lt;24|t[5]&lt;&lt;16|t[6]&lt;&lt;8|t[7]};return 1===e.version&amp;&amp;(e.baseMediaDecodeTime*=Math.pow(2,32),e.baseMediaDecodeTime+=t[8]&lt;&lt;24|t[9]&lt;&lt;16|t[10]&lt;&lt;8|t[11]),e},tfhd:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:i.getUint32(4)},r=1&amp;n.flags[2],a=2&amp;n.flags[2],s=8&amp;n.flags[2],o=16&amp;n.flags[2],l=32&amp;n.flags[2],u=65536&amp;n.flags[0],c=131072&amp;n.flags[0];return e=8,r&amp;&amp;(e+=4,n.baseDataOffset=i.getUint32(12),e+=4),a&amp;&amp;(n.sampleDescriptionIndex=i.getUint32(e),e+=4),s&amp;&amp;(n.defaultSampleDuration=i.getUint32(e),e+=4),o&amp;&amp;(n.defaultSampleSize=i.getUint32(e),e+=4),l&amp;&amp;(n.defaultSampleFlags=i.getUint32(e)),u&amp;&amp;(n.durationIsEmpty=!0),!r&amp;&amp;c&amp;&amp;(n.baseDataOffsetIsMoof=!0),n},tkhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i=4,n={version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4))};return 1===n.version?(i+=4,n.creationTime=me(e.getUint32(i)),i+=8,n.modificationTime=me(e.getUint32(i)),i+=4,n.trackId=e.getUint32(i),i+=4,i+=8,n.duration=e.getUint32(i)):(n.creationTime=me(e.getUint32(i)),i+=4,n.modificationTime=me(e.getUint32(i)),i+=4,n.trackId=e.getUint32(i),i+=4,i+=4,n.duration=e.getUint32(i)),i+=4,i+=8,n.layer=e.getUint16(i),i+=2,n.alternateGroup=e.getUint16(i),i+=2,n.volume=e.getUint8(i)+e.getUint8(i+1)/8,i+=2,i+=2,n.matrix=new Uint32Array(t.subarray(i,i+36)),i+=36,n.width=e.getUint16(i)+e.getUint16(i+2)/16,i+=4,n.height=e.getUint16(i)+e.getUint16(i+2)/16,n},traf:function(t){return{boxes:de(t)}},trak:function(t){return{boxes:de(t)}},trex:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:e.getUint32(4),defaultSampleDescriptionIndex:e.getUint32(8),defaultSampleDuration:e.getUint32(12),defaultSampleSize:e.getUint32(16),sampleDependsOn:3&amp;t[20],sampleIsDependedOn:(192&amp;t[21])&gt;&gt;6,sampleHasRedundancy:(48&amp;t[21])&gt;&gt;4,samplePaddingValue:(14&amp;t[21])&gt;&gt;1,sampleIsDifferenceSample:!!(1&amp;t[21]),sampleDegradationPriority:e.getUint16(22)}},trun:function(t){var e,i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=1&amp;i.flags[2],a=4&amp;i.flags[2],s=1&amp;i.flags[1],o=2&amp;i.flags[1],l=4&amp;i.flags[1],u=8&amp;i.flags[1],c=n.getUint32(4),h=8;for(r&amp;&amp;(i.dataOffset=n.getInt32(h),h+=4),a&amp;&amp;c&amp;&amp;(e={flags:ye(t.subarray(h,h+4))},h+=4,s&amp;&amp;(e.duration=n.getUint32(h),h+=4),o&amp;&amp;(e.size=n.getUint32(h),h+=4),u&amp;&amp;(e.compositionTimeOffset=n.getUint32(h),h+=4),i.samples.push(e),c--);c--;)e={},s&amp;&amp;(e.duration=n.getUint32(h),h+=4),o&amp;&amp;(e.size=n.getUint32(h),h+=4),l&amp;&amp;(e.flags=ye(t.subarray(h,h+4)),h+=4),u&amp;&amp;(e.compositionTimeOffset=n.getUint32(h),h+=4),i.samples.push(e);return i},"url ":function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4))}},vmhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),graphicsmode:e.getUint16(4),opcolor:new Uint16Array([e.getUint16(6),e.getUint16(8),e.getUint16(10)])}}},_e={inspect:de=function(t){for(var e,i,n,r,a,s=0,o=[],l=new ArrayBuffer(t.length),u=new Uint8Array(l),c=0;c&lt;t.length;++c)u[c]=t[c];for(e=new DataView(l);s&lt;t.byteLength;)i=e.getUint32(s),n=ge(t.subarray(s+4,s+8)),r=i&gt;1?s+i:t.byteLength,(a=(ve[n]||function(t){return{data:t}})(t.subarray(s+8,r))).size=i,a.type=n,o.push(a),s=r;return o},textify:pe=function(t,e){var i;return e=e||0,i=new Array(2*e+1).join(" "),t.map(function(t,n){return i+t.type+"\n"+Object.keys(t).filter(function(t){return"type"!==t&amp;&amp;"boxes"!==t}).map(function(e){var n=i+"  "+e+": ",r=t[e];if(r instanceof Uint8Array||r instanceof Uint32Array){var a=Array.prototype.slice.call(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)).map(function(t){return" "+("00"+t.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return a?1===a.length?n+"&lt;"+a.join("").slice(1)+"&gt;":n+"&lt;\n"+a.map(function(t){return i+"  "+t}).join("\n")+"\n"+i+"  &gt;":n+"&lt;&gt;"}return n+JSON.stringify(r,null,2).split("\n").map(function(t,e){return 0===e?t:i+"  "+t}).join("\n")}).join("\n")+(t.boxes?"\n"+pe(t.boxes,e+1):"")}).join("\n")},parseTfdt:ve.tfdt,parseHdlr:ve.hdlr,parseTfhd:ve.tfhd,parseTrun:ve.trun},be=ot,Te=gt.CaptionStream,Se=function(t,e){for(var i=t,n=0;n&lt;e.length;n++){var r=e[n];if(i&lt;r.size)return r;i-=r.size}return null},ke=function(t,e){var i=G.findBox(t,["moof","traf"]),n={},r=[];return G.findBox(t,["mdat"]).forEach(function(t,e){var n=i[e];r.push({mdat:t,traf:n})}),r.forEach(function(t){var i,r=t.mdat,a=t.traf,s=G.findBox(a,["tfhd"]),o=_e.parseTfhd(s[0]),l=o.trackId,u=G.findBox(a,["tfdt"]),c=u.length&gt;0?_e.parseTfdt(u[0]).baseMediaDecodeTime:0,h=G.findBox(a,["trun"]);e===l&amp;&amp;h.length&gt;0&amp;&amp;(i=function(t,e,i){var n,r,a,s,o=new DataView(t.buffer,t.byteOffset,t.byteLength),l=[];for(r=0;r+4&lt;t.length;r+=a)if(a=o.getUint32(r),r+=4,!(a&lt;=0))switch(31&amp;t[r]){case 6:var u=t.subarray(r+1,r+1+a),c=Se(r,e);n={nalUnitType:"sei_rbsp",size:a,data:u,escapedRBSP:be(u),trackId:i},c?(n.pts=c.pts,n.dts=c.dts,s=c):(n.pts=s.pts,n.dts=s.dts),l.push(n)}return l}(r,function(t,e,i){var n=e,r=i.defaultSampleDuration||0,a=i.defaultSampleSize||0,s=i.trackId,o=[];return t.forEach(function(t){var e=_e.parseTrun(t).samples;e.forEach(function(t){void 0===t.duration&amp;&amp;(t.duration=r),void 0===t.size&amp;&amp;(t.size=a),t.trackId=s,t.dts=n,void 0===t.compositionTimeOffset&amp;&amp;(t.compositionTimeOffset=0),t.pts=n+t.compositionTimeOffset,n+=t.duration}),o=o.concat(e)}),o}(h,c,o),l),n[l]||(n[l]=[]),n[l]=n[l].concat(i))}),n},Ce={generator:W,probe:G,Transmuxer:fe.Transmuxer,AudioSegmentStream:fe.AudioSegmentStream,VideoSegmentStream:fe.VideoSegmentStream,CaptionParser:function(){var t,e,i,n,r,a=!1;this.isInitialized=function(){return a},this.init=function(){t=new Te,a=!0,t.on("data",function(t){t.startTime=t.startPts/n,t.endTime=t.endPts/n,r.captions.push(t),r.captionStreams[t.stream]=!0})},this.isNewInit=function(t,e){return!(t&amp;&amp;0===t.length||e&amp;&amp;"object"===(void 0===e?"undefined":Dt(e))&amp;&amp;0===Object.keys(e).length||i===t[0]&amp;&amp;n===e[i])},this.parse=function(t,a,s){var o;if(!this.isInitialized())return null;if(!a||!s)return null;if(this.isNewInit(a,s))i=a[0],n=s[i];else if(!i||!n)return e.push(t),null;for(;e.length&gt;0;){var l=e.shift();this.parse(l,a,s)}return null!==(o=function(t,e,i){return e?{seiNals:ke(t,e)[e],timescale:i}:null}(t,i,n))&amp;&amp;o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;t.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){e=[],i=null,n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()}},we=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Ee=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),Ae=function(){function t(e,i){we(this,t),this.options=i||{},this.self=e,this.init()}return Ee(t,[{key:"init",value:function(){var t,e;this.transmuxer&amp;&amp;this.transmuxer.dispose(),this.transmuxer=new Ce.Transmuxer(this.options),t=this.self,(e=this.transmuxer).on("data",function(e){var i=e.initSegment;e.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var n=e.data;e.data=n.buffer,t.postMessage({action:"data",segment:e,byteOffset:n.byteOffset,byteLength:n.byteLength},[e.data])}),e.captionStream&amp;&amp;e.captionStream.on("data",function(e){t.postMessage({action:"caption",data:e})}),e.on("done",function(e){t.postMessage({action:"done"})}),e.on("gopInfo",function(e){t.postMessage({action:"gopInfo",gopInfo:e})})}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*e))}},{key:"setAudioAppendStart",value:function(t){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*t.appendStart))}},{key:"flush",value:function(t){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())}}]),t}();new function(t){t.onmessage=function(e){"init"===e.data.action&amp;&amp;e.data.options?this.messageHandlers=new Ae(t,e.data.options):(this.messageHandlers||(this.messageHandlers=new Ae(t)),e.data&amp;&amp;e.data.action&amp;&amp;"init"!==e.data.action&amp;&amp;this.messageHandlers[e.data.action]&amp;&amp;this.messageHandlers[e.data.action](e.data))}}(i)}()}),Vs={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},zs=function(t){return t.map(function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,function(t,e,i){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)})})},Ws=function(){var t,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",i={codecCount:0};return i.codecCount=e.split(",").length,i.codecCount=i.codecCount||2,(t=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(e))&amp;&amp;(i.videoCodec=t[2],i.videoObjectTypeIndicator=t[3]),i.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(e),i.audioProfile=i.audioProfile&amp;&amp;i.audioProfile[2],i},qs=function(t,e,i){return t+"/"+e+'; codecs="'+i.filter(function(t){return!!t}).join(", ")+'"'},Gs=function(t,e){var i=function(t){return t.segments&amp;&amp;t.segments.length&amp;&amp;t.segments[0].map?"mp4":"mp2t"}(e),n=function(t){var e=t.attributes||{};return e.CODECS?Ws(e.CODECS):Vs}(e),r=e.attributes||{},a=!0,s=!1;if(!e)return[];if(t.mediaGroups.AUDIO&amp;&amp;r.AUDIO){var o=t.mediaGroups.AUDIO[r.AUDIO];if(o)for(var l in s=!0,a=!1,o)if(!o[l].uri&amp;&amp;!o[l].playlists){a=!0;break}}s&amp;&amp;!n.audioProfile&amp;&amp;(a||(n.audioProfile=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var i=t.mediaGroups.AUDIO[e];if(!i)return null;for(var n in i){var r=i[n];if(r.default&amp;&amp;r.playlists)return Ws(r.playlists[0].attributes.CODECS).audioProfile}return null}(t,r.AUDIO)),n.audioProfile||(Ia.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),n.audioProfile=Vs.audioProfile));var u={};n.videoCodec&amp;&amp;(u.video=""+n.videoCodec+n.videoObjectTypeIndicator),n.audioProfile&amp;&amp;(u.audio="mp4a.40."+n.audioProfile);var c=qs("audio",i,[u.audio]),h=qs("video",i,[u.video]),d=qs("video",i,[u.video,u.audio]);return s?!a&amp;&amp;u.video?[h,c]:a||u.video?[d,c]:[c,c]:u.video?[d]:[c]},Xs=function(t){return/mp4a\.\d+.\d+/i.test(t)},Ys=function(t){return/avc1\.[\da-f]+/i.test(t)},Ks=function(t,e,i){var n=null,r=null,a=0,s=[],o=[];if(!t&amp;&amp;!e)return Ia.createTimeRange();if(!t)return e.buffered;if(!e)return t.buffered;if(i)return t.buffered;if(0===t.buffered.length&amp;&amp;0===e.buffered.length)return Ia.createTimeRange();for(var l=t.buffered,u=e.buffered,c=l.length;c--;)s.push({time:l.start(c),type:"start"}),s.push({time:l.end(c),type:"end"});for(c=u.length;c--;)s.push({time:u.start(c),type:"start"}),s.push({time:u.end(c),type:"end"});for(s.sort(function(t,e){return t.time-e.time}),c=0;c&lt;s.length;c++)"start"===s[c].type?2===++a&amp;&amp;(n=s[c].time):"end"===s[c].type&amp;&amp;1===--a&amp;&amp;(r=s[c].time),null!==n&amp;&amp;null!==r&amp;&amp;(o.push([n,r]),n=null,r=null);return Ia.createTimeRanges(o)},$s=function(t){function e(t,i){ja(this,e);var n=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ia.EventTarget));n.timestampOffset_=0,n.pendingBuffers_=[],n.bufferUpdating_=!1,n.mediaSource_=t,n.codecs_=i,n.audioCodec_=null,n.videoCodec_=null,n.audioDisabled_=!1,n.appendAudioInitSegment_=!0,n.gopBuffer_=[],n.timeMapping_=0,n.safeAppend_=Ia.browser.IE_VERSION&gt;=11;var r={remux:!1,alignGopsAtEnd:n.safeAppend_};return n.codecs_.forEach(function(t){Xs(t)?n.audioCodec_=t:Ys(t)&amp;&amp;(n.videoCodec_=t)}),n.transmuxer_=new Hs,n.transmuxer_.postMessage({action:"init",options:r}),n.transmuxer_.onmessage=function(t){return"data"===t.data.action?n.data_(t):"done"===t.data.action?n.done_(t):"gopInfo"===t.data.action?n.appendGopInfo_(t):void 0},Object.defineProperty(n,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"==typeof t&amp;&amp;t&gt;=0&amp;&amp;(this.timestampOffset_=t,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t}))}}),Object.defineProperty(n,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(t){this.videoBuffer_&amp;&amp;(this.videoBuffer_.appendWindowStart=t),this.audioBuffer_&amp;&amp;(this.audioBuffer_.appendWindowStart=t)}}),Object.defineProperty(n,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;this.audioBuffer_.updating||this.videoBuffer_&amp;&amp;this.videoBuffer_.updating)}}),Object.defineProperty(n,"buffered",{get:function(){return Ks(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),n}return Na(e,t),Ua(e,[{key:"data_",value:function(t){var e=t.data.segment;e.data=new Uint8Array(e.data,t.data.byteOffset,t.data.byteLength),e.initSegment=new Uint8Array(e.initSegment.data,e.initSegment.byteOffset,e.initSegment.byteLength),function(t,e,i){var n=e.player_;if(i.captions&amp;&amp;i.captions.length)for(var r in t.inbandTextTracks_||(t.inbandTextTracks_={}),i.captionStreams)if(!t.inbandTextTracks_[r]){n.tech_.trigger({type:"usage",name:"hls-608"});var a=n.textTracks().getTrackById(r);t.inbandTextTracks_[r]=a||n.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}i.metadata&amp;&amp;i.metadata.length&amp;&amp;!t.metadataTrack_&amp;&amp;(t.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=i.metadata.dispatchType)}(this,this.mediaSource_,e),this.pendingBuffers_.push(e)}},{key:"done_",value:function(t){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"createRealSourceBuffers_",value:function(){var t=this,e=["audio","video"];e.forEach(function(i){if(t[i+"Codec_"]&amp;&amp;!t[i+"Buffer_"]){var n=null;if(t.mediaSource_[i+"Buffer_"])(n=t.mediaSource_[i+"Buffer_"]).updating=!1;else{var r=i+'/mp4;codecs="'+t[i+"Codec_"]+'"';n=function(t,e){var i=t.addSourceBuffer(e),n=Object.create(null);n.updating=!1,n.realBuffer_=i;var r=function(t){"function"==typeof i[t]?n[t]=function(){return i[t].apply(i,arguments)}:void 0===n[t]&amp;&amp;Object.defineProperty(n,t,{get:function(){return i[t]},set:function(e){return i[t]=e}})};for(var a in i)r(a);return n}(t.mediaSource_.nativeMediaSource_,r),t.mediaSource_[i+"Buffer_"]=n}t[i+"Buffer_"]=n,["update","updatestart","updateend"].forEach(function(r){n.addEventListener(r,function(){if("audio"!==i||!t.audioDisabled_)return"updateend"===r&amp;&amp;(t[i+"Buffer_"].updating=!1),e.every(function(e){return!("audio"!==e||!t.audioDisabled_)||(i===e||!t[e+"Buffer_"]||!t[e+"Buffer_"].updating)})?t.trigger(r):void 0})})}})}},{key:"appendBuffer",value:function(t){if(this.bufferUpdating_=!0,this.audioBuffer_&amp;&amp;this.audioBuffer_.buffered.length){var e=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:e.end(e.length-1)})}this.videoBuffer_&amp;&amp;this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:function(t,e,i){if(void 0===e||null===e||!t.length)return[];var n=Math.ceil(9e4*(e-i+3)),r=void 0;for(r=0;r&lt;t.length&amp;&amp;!(t[r].pts&gt;n);r++);return t.slice(r)}(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(t){this.gopBuffer_=function(t,e,i){if(!e.length)return t;if(i)return e.slice();for(var n=e[0].pts,r=0;r&lt;t.length&amp;&amp;!(t[r].pts&gt;=n);r++);return t.slice(0,r).concat(e)}(this.gopBuffer_,t.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(t,e){if(this.videoBuffer_&amp;&amp;(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(t,e),this.gopBuffer_=function(t,e,i,n){for(var r=Math.ceil(9e4*(e-n)),a=Math.ceil(9e4*(i-n)),s=t.slice(),o=t.length;o--&amp;&amp;!(t[o].pts&lt;=a););if(-1===o)return s;for(var l=o+1;l--&amp;&amp;!(t[l].pts&lt;=r););return l=Math.max(l,0),s.splice(l,o-l+1),s}(this.gopBuffer_,t,e,this.timeMapping_)),!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(t,e)),As(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var i in this.inbandTextTracks_)As(t,e,this.inbandTextTracks_[i])}},{key:"processPendingSegments_",value:function(){var t={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};t=this.pendingBuffers_.reduce(function(t,e){var i=e.type,n=e.data,r=e.initSegment;return t[i].segments.push(n),t[i].bytes+=n.byteLength,t[i].initSegment=r,e.captions&amp;&amp;(t.captions=t.captions.concat(e.captions)),e.info&amp;&amp;(t[i].info=e.info),e.metadata&amp;&amp;(t.metadata=t.metadata.concat(e.metadata)),t},t),this.videoBuffer_||this.audioBuffer_||(0===t.video.bytes&amp;&amp;(this.videoCodec_=null),0===t.audio.bytes&amp;&amp;(this.audioCodec_=null),this.createRealSourceBuffers_()),t.audio.info&amp;&amp;this.mediaSource_.trigger({type:"audioinfo",info:t.audio.info}),t.video.info&amp;&amp;this.mediaSource_.trigger({type:"videoinfo",info:t.video.info}),this.appendAudioInitSegment_&amp;&amp;(!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;(t.audio.segments.unshift(t.audio.initSegment),t.audio.bytes+=t.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var e=!1;this.videoBuffer_&amp;&amp;t.video.bytes?(t.video.segments.unshift(t.video.initSegment),t.video.bytes+=t.video.initSegment.byteLength,this.concatAndAppendSegments_(t.video,this.videoBuffer_),Os(this,t.captions,t.metadata)):!this.videoBuffer_||!this.audioDisabled_&amp;&amp;this.audioBuffer_||(e=!0),!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;this.concatAndAppendSegments_(t.audio,this.audioBuffer_),this.pendingBuffers_.length=0,e&amp;&amp;this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(t,e){var i=0,n=void 0;if(t.bytes){n=new Uint8Array(t.bytes),t.segments.forEach(function(t){n.set(t,i),i+=t.byteLength});try{e.updating=!0,e.appendBuffer(n)}catch(t){this.mediaSource_.player_&amp;&amp;this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:t.message,originalError:t})}}}},{key:"abort",value:function(){this.videoBuffer_&amp;&amp;this.videoBuffer_.abort(),!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;this.audioBuffer_.abort(),this.transmuxer_&amp;&amp;this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),e}(Ia.EventTarget),Js=function(t){function e(){ja(this,e);var t=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),i=void 0;for(i in t.nativeMediaSource_=new r.a.MediaSource,t.nativeMediaSource_)i in e.prototype||"function"!=typeof t.nativeMediaSource_[i]||(t[i]=t.nativeMediaSource_[i].bind(t.nativeMediaSource_));return t.duration_=NaN,Object.defineProperty(t,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(t){this.duration_=t,t===1/0||(this.nativeMediaSource_.duration=t)}}),Object.defineProperty(t,"seekable",{get:function(){return this.duration_===1/0?Ia.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(t,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(t,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),t.sourceBuffers=[],t.activeSourceBuffers_=[],t.updateActiveSourceBuffers_=function(){if(t.activeSourceBuffers_.length=0,1===t.sourceBuffers.length){var e=t.sourceBuffers[0];return e.appendAudioInitSegment_=!0,e.audioDisabled_=!e.audioCodec_,void t.activeSourceBuffers_.push(e)}for(var i=!1,n=!0,r=0;r&lt;t.player_.audioTracks().length;r++){var a=t.player_.audioTracks()[r];if(a.enabled&amp;&amp;"main"!==a.kind){i=!0,n=!1;break}}t.sourceBuffers.forEach(function(e,r){if(e.appendAudioInitSegment_=!0,e.videoCodec_&amp;&amp;e.audioCodec_)e.audioDisabled_=i;else if(e.videoCodec_&amp;&amp;!e.audioCodec_)e.audioDisabled_=!0,n=!1;else if(!e.videoCodec_&amp;&amp;e.audioCodec_&amp;&amp;(e.audioDisabled_=r?n:!n,e.audioDisabled_))return;t.activeSourceBuffers_.push(e)})},t.onPlayerMediachange_=function(){t.sourceBuffers.forEach(function(t){t.appendAudioInitSegment_=!0})},t.onHlsReset_=function(){t.sourceBuffers.forEach(function(t){t.transmuxer_&amp;&amp;t.transmuxer_.postMessage({action:"resetCaptions"})})},t.onHlsSegmentTimeMapping_=function(e){t.sourceBuffers.forEach(function(t){return t.timeMapping_=e.mapping})},["sourceopen","sourceclose","sourceended"].forEach(function(t){this.nativeMediaSource_.addEventListener(t,this.trigger.bind(this))},t),t.on("sourceopen",function(e){var i=s.a.querySelector('[src="'+t.url_+'"]');i&amp;&amp;(t.player_=Ia(i.parentNode),t.player_.tech_.on("hls-reset",t.onHlsReset_),t.player_.tech_.on("hls-segment-time-mapping",t.onHlsSegmentTimeMapping_),t.player_.audioTracks&amp;&amp;t.player_.audioTracks()&amp;&amp;(t.player_.audioTracks().on("change",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("addtrack",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("removetrack",t.updateActiveSourceBuffers_)),t.player_.on("mediachange",t.onPlayerMediachange_))}),t.on("sourceended",function(e){for(var i=xs(t.duration),n=0;n&lt;t.sourceBuffers.length;n++){var r=t.sourceBuffers[n],a=r.metadataTrack_&amp;&amp;r.metadataTrack_.cues;a&amp;&amp;a.length&amp;&amp;(a[a.length-1].endTime=i)}}),t.on("sourceclose",function(t){this.sourceBuffers.forEach(function(t){t.transmuxer_&amp;&amp;t.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_&amp;&amp;(this.player_.audioTracks&amp;&amp;this.player_.audioTracks()&amp;&amp;(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&amp;&amp;(this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))}),t}return Na(e,t),Ua(e,[{key:"addSeekableRange_",value:function(t,e){var i=void 0;if(this.duration!==1/0)throw(i=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity")).name="InvalidStateError",i.code=11,i;(e&gt;this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&amp;&amp;(this.nativeMediaSource_.duration=e)}},{key:"addSourceBuffer",value:function(t){var e=void 0,i=function(t){var e={type:"",parameters:{}},i=t.trim().split(";");return e.type=i.shift().trim(),i.forEach(function(t){var i=t.trim().split("=");if(i.length&gt;1){var n=i[0].replace(/"/g,"").trim(),r=i[1].replace(/"/g,"").trim();e.parameters[n]=r}}),e}(t);if(/^(video|audio)\/mp2t$/i.test(i.type)){var n=[];i.parameters&amp;&amp;i.parameters.codecs&amp;&amp;(n=i.parameters.codecs.split(","),n=(n=zs(n)).filter(function(t){return Xs(t)||Ys(t)})),0===n.length&amp;&amp;(n=["avc1.4d400d","mp4a.40.2"]),e=new $s(this,n),0!==this.sourceBuffers.length&amp;&amp;(this.sourceBuffers[0].createRealSourceBuffers_(),e.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else e=this.nativeMediaSource_.addSourceBuffer(t);return this.sourceBuffers.push(e),e}}]),e}(Ia.EventTarget),Zs=0;Ia.mediaSources={};var Qs=function(t,e){var i=Ia.mediaSources[t];if(!i)throw new Error("Media Source not found (Video.js)");i.trigger({type:"sourceopen",swfId:e})},to=function(){return!!r.a.MediaSource&amp;&amp;!!r.a.MediaSource.isTypeSupported&amp;&amp;r.a.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},eo=function(){if(this.MediaSource={open:Qs,supportsNativeMediaSources:to},to())return new Js;throw new Error("Cannot use create a virtual MediaSource for this video")};eo.open=Qs,eo.supportsNativeMediaSources=to;var io={createObjectURL:function(t){var e=void 0;return t instanceof Js?(e=r.a.URL.createObjectURL(t.nativeMediaSource_),t.url_=e,e):t instanceof Js?(e="blob:vjs-media-source/"+Zs,Zs++,Ia.mediaSources[e]=t,e):(e=r.a.URL.createObjectURL(t),t.url_=e,e)}};Ia.MediaSource=eo,Ia.URL=io;var no=Ia.EventTarget,ro=Ia.mergeOptions,ao=function(t,e){for(var i=ro(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod}),n=0;n&lt;e.playlists.length;n++){var r=qa(i,e.playlists[n]);r&amp;&amp;(i=r)}return Wa(e,function(t,e,n,r){if(t.playlists&amp;&amp;t.playlists.length){var a=t.playlists[0].uri,s=qa(i,t.playlists[0]);s&amp;&amp;((i=s).mediaGroups[e][n][r].playlists[0]=i.playlists[a])}}),i},so=function(t){function e(t,i,n,a){ja(this,e);var s=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(s.hls_=i,s.withCredentials=n,!t)throw new Error("A non-empty playlist URL or playlist is required");return s.on("minimumUpdatePeriod",function(){s.refreshXml_()}),s.on("mediaupdatetimeout",function(){s.refreshMedia_()}),"string"==typeof t?(s.srcUrl=t,s.state="HAVE_NOTHING",Ba(s)):(s.masterPlaylistLoader_=a,s.state="HAVE_METADATA",s.started=!0,s.media(t),r.a.setTimeout(function(){s.trigger("loadedmetadata")},0),s)}return Na(e,no),Ua(e,[{key:"dispose",value:function(){this.stopRequest(),r.a.clearTimeout(this.mediaUpdateTimeout)}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"media",value:function(t){if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var e=this.state;if("string"==typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}var i=!this.media_||t.uri!==this.media_.uri;this.state="HAVE_METADATA",i&amp;&amp;(this.media_&amp;&amp;this.trigger("mediachanging"),this.media_=t,this.refreshMedia_(),"HAVE_MASTER"!==e&amp;&amp;this.trigger("mediachange"))}},{key:"pause",value:function(){this.stopRequest(),"HAVE_NOTHING"===this.state&amp;&amp;(this.started=!1)}},{key:"load",value:function(){this.started?this.trigger("loadedplaylist"):this.start()}},{key:"parseMasterXml",value:function(){var t=ut(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_});t.uri=this.srcUrl;for(var e=0;e&lt;t.playlists.length;e++){var i="placeholder-uri-"+e;t.playlists[e].uri=i,t.playlists[i]=t.playlists[e]}return Wa(t,function(e,i,n,r){if(e.playlists&amp;&amp;e.playlists.length){var a="placeholder-uri-"+i+"-"+n+"-"+r;e.playlists[0].uri=a,t.playlists[a]=e.playlists[0]}}),Ga(t),Xa(t),t}},{key:"start",value:function(){var t=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(e,i){if(t.request){if(t.request=null,e)return t.error={status:i.status,message:"DASH playlist request error at URL: "+t.srcUrl,responseText:i.responseText,code:2},"HAVE_NOTHING"===t.state&amp;&amp;(t.started=!1),t.trigger("error");t.masterXml_=i.responseText,i.responseHeaders&amp;&amp;i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.syncClientServerClock_(t.onClientServerClockSync_.bind(t))}})}},{key:"syncClientServerClock_",value:function(t){var e=this,i=ct(this.masterXml_);return null===i?(this.clientOffset_=this.masterLoaded_-Date.now(),t()):"DIRECT"===i.method?(this.clientOffset_=i.value-Date.now(),t()):void(this.request=this.hls_.xhr({uri:Ra(this.srcUrl,i.value),method:i.method,withCredentials:this.withCredentials},function(n,r){if(e.request){if(n)return e.clientOffset_=e.masterLoaded_-Date.now(),t();var a=void 0;a="HEAD"===i.method?r.responseHeaders&amp;&amp;r.responseHeaders.date?Date.parse(r.responseHeaders.date):e.masterLoaded_:Date.parse(r.responseText),e.clientOffset_=a-Date.now(),t()}}))}},{key:"onClientServerClockSync_",value:function(){var t=this;this.master=this.parseMasterXml(),this.state="HAVE_MASTER",this.trigger("loadedplaylist"),this.media_||this.media(this.master.playlists[0]),r.a.setTimeout(function(){t.trigger("loadedmetadata")},0),this.master.minimumUpdatePeriod&amp;&amp;r.a.setTimeout(function(){t.trigger("minimumUpdatePeriod")},this.master.minimumUpdatePeriod)}},{key:"refreshXml_",value:function(){var t=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(e,i){if(t.request){if(t.request=null,e)return t.error={status:i.status,message:"DASH playlist request error at URL: "+t.srcUrl,responseText:i.responseText,code:2},"HAVE_NOTHING"===t.state&amp;&amp;(t.started=!1),t.trigger("error");t.masterXml_=i.responseText;var n=t.parseMasterXml();t.master=ao(t.master,n),r.a.setTimeout(function(){t.trigger("minimumUpdatePeriod")},t.master.minimumUpdatePeriod)}})}},{key:"refreshMedia_",value:function(){var t=this,e=void 0,i=void 0;this.masterPlaylistLoader_?(e=this.masterPlaylistLoader_.master,i=this.masterPlaylistLoader_.parseMasterXml()):(e=this.master,i=this.parseMasterXml());var n=ao(e,i);n?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=n:this.master=n,this.media_=n.playlists[this.media_.uri]):this.trigger("playlistunchanged"),this.media().endList||(this.mediaUpdateTimeout=r.a.setTimeout(function(){t.trigger("mediaupdatetimeout")},Ya(this.media(),!!n))),this.trigger("loadedplaylist")}}]),e}(),oo=function(t){return Ia.log.debug?Ia.log.debug.bind(Ia,"VHS:",t+" &gt;"):function(){}};function lo(){}var uo=function(){function t(e,i,n,r){ja(this,t),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=e,this.processedAppend_=!1,this.type_=n,this.mimeType_=i,this.logger_=oo("SourceUpdater["+n+"]["+i+"]"),"closed"===e.readyState?e.addEventListener("sourceopen",this.createSourceBuffer_.bind(this,i,r)):this.createSourceBuffer_(i,r)}return Ua(t,[{key:"createSourceBuffer_",value:function(t,e){var i=this;this.sourceBuffer_=this.mediaSource.addSourceBuffer(t),this.logger_("created SourceBuffer"),e&amp;&amp;(e.trigger("sourcebufferadded"),this.mediaSource.sourceBuffers.length&lt;2)?e.on("sourcebufferadded",function(){i.start_()}):this.start_()}},{key:"start_",value:function(){var t=this;this.started_=!0,this.onUpdateendCallback_=function(){var e=t.pendingCallback_;t.pendingCallback_=null,t.logger_("buffered ["+ws(t.buffered())+"]"),e&amp;&amp;e(),t.runCallback_()},this.sourceBuffer_.addEventListener("updateend",this.onUpdateendCallback_),this.runCallback_()}},{key:"abort",value:function(t){var e=this;this.processedAppend_&amp;&amp;this.queueCallback_(function(){e.sourceBuffer_.abort()},t)}},{key:"appendBuffer",value:function(t,e){var i=this;this.processedAppend_=!0,this.queueCallback_(function(){i.sourceBuffer_.appendBuffer(t)},e)}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:Ia.createTimeRanges()}},{key:"remove",value:function(t,e){var i=this,n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:lo;this.processedAppend_&amp;&amp;this.queueCallback_(function(){i.logger_("remove ["+t+" =&gt; "+e+"]"),i.sourceBuffer_.remove(t,e)},n)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||this.pendingCallback_}},{key:"timestampOffset",value:function(t){var e=this;return void 0!==t&amp;&amp;(this.queueCallback_(function(){e.sourceBuffer_.timestampOffset=t}),this.timestampOffset_=t),this.timestampOffset_}},{key:"queueCallback_",value:function(t,e){this.callbacks_.push([t.bind(this),e]),this.runCallback_()}},{key:"runCallback_",value:function(){var t=void 0;!this.updating()&amp;&amp;this.callbacks_.length&amp;&amp;this.started_&amp;&amp;(t=this.callbacks_.shift(),this.pendingCallback_=t[1],t[0]())}},{key:"dispose",value:function(){this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_&amp;&amp;"open"===this.mediaSource.readyState&amp;&amp;this.sourceBuffer_.abort()}}]),t}(),co={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},ho=2,po=-101,fo=-102,go=function(t){var e,i,n={};return t.byterange&amp;&amp;(n.Range=(e=t.byterange,i=e.offset+e.length-1,"bytes="+e.offset+"-"+i)),n},mo=function(t){t.forEach(function(t){t.abort()})},yo=function(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:po,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:fo,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:ho,xhr:e}:null},vo=function(t,e,i){var n=[],r=0;return function(a,s){if(a&amp;&amp;(mo(t),n.push(a)),(r+=1)===t.length){if(s.endOfAllRequests=Date.now(),n.length&gt;0){var o=function(t){return t.reduce(function(t,e){return e.code&gt;t.code?e:t})}(n);return i(o,s)}return s.encryptedBytes?function(t,e,i){t.addEventListener("message",function n(r){if(r.data.source===e.requestId){t.removeEventListener("message",n);var a=r.data.decrypted;return e.bytes=new Uint8Array(a.bytes,a.byteOffset,a.byteLength),i(null,e)}}),t.postMessage(vs({source:e.requestId,encrypted:e.encryptedBytes,key:e.key.bytes,iv:e.key.iv}),[e.encryptedBytes.buffer,e.key.bytes.buffer])}(e,s,i):i(null,s)}}},_o=function(t,e){return function(i){var n,r,a;return t.stats=Ia.mergeOptions(t.stats,(r=(n=i).target,(a={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-r.requestTime||0}).bytesReceived=n.loaded,a.bandwidth=Math.floor(a.bytesReceived/a.roundTripTime*8*1e3),a)),!t.stats.firstBytesReceivedAt&amp;&amp;t.stats.bytesReceived&amp;&amp;(t.stats.firstBytesReceivedAt=Date.now()),e(i,t)}},bo=function(t,e,i,n,r,a,s){var o=[],l=vo(o,i,s);if(r.key){var u=t(Ia.mergeOptions(e,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),function(t,e){return function(i,n){var r=n.response,a=yo(i,n);if(a)return e(a,t);if(16!==r.byteLength)return e({status:n.status,message:"Invalid HLS key at URL: "+n.uri,code:ho,xhr:n},t);var s=new DataView(r);return t.key.bytes=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]),e(null,t)}}(r,l));o.push(u)}if(r.map&amp;&amp;!r.map.bytes){var c=t(Ia.mergeOptions(e,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:go(r.map)}),function(t,e,i){return function(n,r){var a=r.response,s=yo(n,r);return s?i(s,t):0===a.byteLength?i({status:r.status,message:"Empty HLS segment content at URL: "+r.uri,code:ho,xhr:r},t):(t.map.bytes=new Uint8Array(r.response),e.isInitialized()||e.init(),t.map.timescales=dt.a.timescale(t.map.bytes),t.map.videoTrackIds=dt.a.videoTrackIds(t.map.bytes),i(null,t))}}(r,n,l));o.push(c)}var h=t(Ia.mergeOptions(e,{uri:r.resolvedUri,responseType:"arraybuffer",headers:go(r)}),function(t,e,i){return function(n,r){var a=r.response,s=yo(n,r),o=void 0;return s?i(s,t):0===a.byteLength?i({status:r.status,message:"Empty HLS segment content at URL: "+r.uri,code:ho,xhr:r},t):(t.stats=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}}(r),t.key?t.encryptedBytes=new Uint8Array(r.response):t.bytes=new Uint8Array(r.response),t.map&amp;&amp;t.map.bytes&amp;&amp;(e.isInitialized()||e.init(),(o=e.parse(t.bytes,t.map.videoTrackIds,t.map.timescales))&amp;&amp;o.captions&amp;&amp;(t.captionStreams=o.captionStreams,t.fmp4Captions=o.captions)),i(null,t))}}(r,n,l));return h.addEventListener("progress",_o(r,a)),o.push(h),function(){return mo(o)}},To=function(t,e){var i;return t&amp;&amp;(i=r.a.getComputedStyle(t))?i[e]:""},So=function(t,e){var i=t.slice();t.sort(function(t,n){var r=e(t,n);return 0===r?i.indexOf(t)-i.indexOf(n):r})},ko=function(t,e){var i=void 0,n=void 0;return t.attributes.BANDWIDTH&amp;&amp;(i=t.attributes.BANDWIDTH),i=i||r.a.Number.MAX_VALUE,e.attributes.BANDWIDTH&amp;&amp;(n=e.attributes.BANDWIDTH),i-(n=n||r.a.Number.MAX_VALUE)},Co=function(t,e,i){if(!t||!e)return!1;var n=i===t.segments.length;return t.endList&amp;&amp;"open"===e.readyState&amp;&amp;n},wo=function(t){return"number"==typeof t&amp;&amp;isFinite(t)},Eo=function(t){function e(t){ja(this,e);var i=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.hls_=t.hls,i.loaderType_=t.loaderType,i.startingMedia_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.mimeType_=null,i.sourceUpdater_=null,i.xhrOptions_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.captionParser_=new pt.CaptionParser,i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.syncController_.on("syncinfoupdate",function(){return i.trigger("syncinfoupdate")}),i.mediaSource_.addEventListener("sourceopen",function(){return i.ended_=!1}),i.fetchAtBuffer_=!1,i.logger_=oo("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(i,"state",{get:function(){return this.state_},set:function(t){t!==this.state_&amp;&amp;(this.logger_(this.state_+" -&gt; "+t),this.state_=t)}}),i}return Na(e,t),Ua(e,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&amp;&amp;this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_.reset()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&amp;&amp;(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&amp;&amp;this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(t){return void 0!==t&amp;&amp;(this.error_=t),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():Ia.createTimeRanges()}},{key:"initSegment",value:function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];if(!t)return null;var i=_s(t),n=this.initSegments_[i];return e&amp;&amp;!n&amp;&amp;t.bytes&amp;&amp;(this.initSegments_[i]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,timescales:t.timescales,videoTrackIds:t.videoTrackIds}),n||t}},{key:"couldBeginLoading_",value:function(){return this.playlist_&amp;&amp;(this.sourceUpdater_||this.mimeType_&amp;&amp;"INIT"===this.state)&amp;&amp;!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&amp;&amp;this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&amp;&amp;"INIT"!==this.state||(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new uo(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};if(t){var i=this.playlist_,n=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=e,this.hasPlayed_()||(t.syncInfo={mediaSequence:t.mediaSequence,time:0});var r=i?i.id:null;if(this.logger_("playlist update ["+r+" =&gt; "+t.id+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&amp;&amp;this.couldBeginLoading_())return this.init_();if(i&amp;&amp;i.uri===t.uri){var a=t.mediaSequence-i.mediaSequence;this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex&amp;&amp;(this.mediaIndex-=a),n&amp;&amp;(n.mediaIndex-=a,n.mediaIndex&gt;=0&amp;&amp;(n.segment=t.segments[n.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(i,t)}else null!==this.mediaIndex&amp;&amp;this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&amp;&amp;(r.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(t,e){this.mimeType_||(this.mimeType_=t,this.sourceBufferEmitter_=e,"INIT"===this.state&amp;&amp;this.couldBeginLoading_()&amp;&amp;this.init_())}},{key:"resetEverything",value:function(t){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_(),t),this.captionParser_.clearAllCaptions(),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(t,e,i){if(this.sourceUpdater_&amp;&amp;this.sourceUpdater_.remove(t,e,i),As(t,e,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)As(t,e,this.inbandTextTracks_[n])}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&amp;&amp;r.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r.a.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&amp;&amp;this.fillBuffer_(),this.checkBufferTimeout_&amp;&amp;r.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r.a.setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t)Co(this.playlist_,this.mediaSource_,t.mediaIndex)?this.endOfStream():(t.mediaIndex!==this.playlist_.segments.length-1||"ended"!==this.mediaSource_.readyState||this.seeking_())&amp;&amp;((t.timeline!==this.currentTimeline_||null!==t.startOfSegment&amp;&amp;t.startOfSegment&lt;this.sourceUpdater_.timestampOffset())&amp;&amp;(this.syncController_.reset(),t.timestampOffset=t.startOfSegment,this.captionParser_.clearAllCaptions()),this.loadSegment_(t))}}},{key:"checkBuffer_",value:function(t,e,i,n,r,a){var s=0,o=void 0;t.length&amp;&amp;(s=t.end(t.length-1));var l=Math.max(0,s-r);if(!e.segments.length)return null;if(l&gt;=this.goalBufferLength_())return null;if(!n&amp;&amp;l&gt;=1)return null;if(null===a)return i=this.getSyncSegmentCandidate_(e),this.generateSegmentInfo_(e,i,null,!0);if(null!==i){var u=e.segments[i];return o=u&amp;&amp;u.end?u.end:s,this.generateSegmentInfo_(e,i+1,o,!1)}if(this.fetchAtBuffer_){var c=hs.getMediaInfoForTime(e,s,a.segmentIndex,a.time);i=c.mediaIndex,o=c.startTime}else{var h=hs.getMediaInfoForTime(e,r,a.segmentIndex,a.time);i=h.mediaIndex,o=h.startTime}return this.generateSegmentInfo_(e,i,o,!1)}},{key:"getSyncSegmentCandidate_",value:function(t){var e=this;if(-1===this.currentTimeline_)return 0;var i=t.segments.map(function(t,e){return{timeline:t.timeline,segmentIndex:e}}).filter(function(t){return t.timeline===e.currentTimeline_});return i.length?i[Math.min(i.length-1,1)].segmentIndex:Math.max(t.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(t,e,i,n){if(e&lt;0||e&gt;=t.segments.length)return null;var r=t.segments[e];return{requestId:"segment-loader-"+Math.random(),uri:r.resolvedUri,mediaIndex:e,isSyncRequest:n,startOfSegment:i,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:r.timeline,duration:r.duration,segment:r}}},{key:"abortRequestEarly_",value:function(t){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(t.firstBytesReceivedAt||Date.now())&lt;1e3)return!1;var e=this.currentTime_(),i=t.bandwidth,n=this.pendingSegment_.duration,r=hs.estimateSegmentRequestTime(n,i,this.playlist_,t.bytesReceived),a=function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:1;return((t.length?t.end(t.length-1):0)-e)/i}(this.buffered_(),e,this.hls_.tech_.playbackRate())-1;if(r&lt;=a)return!1;var s=function(t){var e=t.master,i=t.currentTime,n=t.bandwidth,r=t.duration,a=t.segmentDuration,s=t.timeUntilRebuffer,o=t.currentTimeline,l=t.syncController,u=e.playlists.filter(function(t){return!hs.isIncompatible(t)}),c=u.filter(hs.isEnabled);c.length||(c=u.filter(function(t){return!hs.isDisabled(t)}));var h=c.filter(hs.hasAttribute.bind(null,"BANDWIDTH")).map(function(t){var e=l.getSyncPoint(t,r,o,i)?1:2;return{playlist:t,rebufferingImpact:hs.estimateSegmentRequestTime(a,n,t)*e-s}}),d=h.filter(function(t){return t.rebufferingImpact&lt;=0});return So(d,function(t,e){return ko(e.playlist,t.playlist)}),d.length?d[0]:(So(h,function(t,e){return t.rebufferingImpact-e.rebufferingImpact}),h[0]||null)}({master:this.hls_.playlists.master,currentTime:e,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a-s.rebufferingImpact,l=.5;return a&lt;=1/30&amp;&amp;(l=1),!s.playlist||s.playlist.uri===this.playlist_.uri||o&lt;l?!1:(this.bandwidth=s.playlist.attributes.BANDWIDTH*co.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(t,e){this.pendingSegment_&amp;&amp;e.requestId===this.pendingSegment_.requestId&amp;&amp;!this.abortRequestEarly_(e.stats)&amp;&amp;this.trigger("progress")}},{key:"loadSegment_",value:function(t){this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),t.abortRequests=bo(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(t),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(t){var e=function(t,e,i){var n=void 0;return n=t.length&amp;&amp;t.start(0)&gt;0&amp;&amp;t.start(0)&lt;e?t.start(0):e-30,Math.min(n,e-i)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);e&gt;0&amp;&amp;this.remove(0,e)}},{key:"createSimplifiedSegmentObj_",value:function(t){var e=t.segment,i={resolvedUri:e.resolvedUri,byterange:e.byterange,requestId:t.requestId};if(e.key){var n=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);i.key={resolvedUri:e.key.resolvedUri,iv:n}}return e.map&amp;&amp;(i.map=this.initSegment(e.map)),i}},{key:"segmentRequestFinished_",value:function(t,e){if(this.mediaRequests+=1,e.stats&amp;&amp;(this.mediaBytesTransferred+=e.stats.bytesReceived,this.mediaTransferDuration+=e.stats.roundTripTime),this.pendingSegment_){if(e.requestId===this.pendingSegment_.requestId){if(t)return this.pendingSegment_=null,this.state="READY",t.code===fo?void(this.mediaRequestsAborted+=1):(this.pause(),t.code===po?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error")));this.bandwidth=e.stats.bandwidth,this.roundTrip=e.stats.roundTripTime,e.map&amp;&amp;(e.map=this.initSegment(e.map,!0)),this.processSegmentResponse_(e)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(t){var e=this.pendingSegment_;e.bytes=t.bytes,t.map&amp;&amp;(e.segment.map.bytes=t.map.bytes),e.endOfAllRequests=t.endOfAllRequests,t.fmp4Captions&amp;&amp;(!function(t,e,i){for(var n in i)if(!t[n]){e.trigger({type:"usage",name:"hls-608"});var r=e.textTracks().getTrackById(n);t[n]=r||e.addRemoteTextTrack({kind:"captions",id:n,label:n},!1).track}}(this.inbandTextTracks_,this.hls_.tech_,t.captionStreams),function(t){var e=t.inbandTextTracks,i=t.captionArray,n=t.timestampOffset;if(i){var r=window.WebKitDataCue||window.VTTCue;i.forEach(function(t){var i=t.stream,a=t.startTime,s=t.endTime;e[i]&amp;&amp;(a+=n,s+=n,e[i].addCue(new r(a,s,t.text)))})}}({inbandTextTracks:this.inbandTextTracks_,captionArray:t.fmp4Captions,timestampOffset:0}),this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_){var e=this.pendingSegment_,i=e.segment,n=this.syncController_.probeSegmentInfo(e);void 0===this.startingMedia_&amp;&amp;n&amp;&amp;(n.containsAudio||n.containsVideo)&amp;&amp;(this.startingMedia_={containsAudio:n.containsAudio,containsVideo:n.containsVideo});var r,a,s,o=(r=this.loaderType_,a=this.startingMedia_,s=n,"main"===r&amp;&amp;a&amp;&amp;s?s.containsAudio||s.containsVideo?a.containsVideo&amp;&amp;!s.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!a.containsVideo&amp;&amp;s.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null);if(o)return this.error({message:o,blacklistDuration:1/0}),void this.trigger("error");if(e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");null!==e.timestampOffset&amp;&amp;e.timestampOffset!==this.sourceUpdater_.timestampOffset()&amp;&amp;(this.sourceUpdater_.timestampOffset(e.timestampOffset),this.trigger("timestampoffset"));var l=this.syncController_.mappingForTimeline(e.timeline);if(null!==l&amp;&amp;this.trigger({type:"segmenttimemapping",mapping:l}),this.state="APPENDING",i.map){var u=_s(i.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==u){var c=this.initSegment(i.map);this.sourceUpdater_.appendBuffer(c.bytes,function(){t.activeInitSegmentId_=u})}}e.byteLength=e.bytes.byteLength,"number"==typeof i.start&amp;&amp;"number"==typeof i.end?this.mediaSecondsLoaded+=i.end-i.start:this.mediaSecondsLoaded+=i.duration,this.logger_(function(t){var e=t.segment,i=e.start,n=e.end,r=t.playlist,a=r.mediaSequence,s=r.id,o=r.segments,l=void 0===o?[]:o,u=t.mediaIndex,c=t.timeline;return["appending ["+u+"] of ["+a+", "+(a+l.length)+"] from playlist ["+s+"]","["+i+" =&gt; "+n+"] in timeline ["+c+"]"].join(" ")}(e)),this.sourceUpdater_.appendBuffer(e.bytes,this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleUpdateEnd_",value:function(){if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_,e=t.segment,i=null!==this.mediaIndex;(this.pendingSegment_=null,this.recordThroughput_(t),this.addSegmentMetadataCue_(t),this.state="READY",this.mediaIndex=t.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate"),e.end&amp;&amp;this.currentTime_()-e.end&gt;3*t.playlist.targetDuration)?this.resetEverything():(i&amp;&amp;this.trigger("bandwidthupdate"),this.trigger("progress"),Co(t.playlist,this.mediaSource_,t.mediaIndex+1)&amp;&amp;this.endOfStream(),this.paused()||this.monitorBuffer_())}},{key:"recordThroughput_",value:function(t){var e=this.throughput.rate,i=Date.now()-t.endOfAllRequests+1,n=Math.floor(t.byteLength/i*8*1e3);this.throughput.rate+=(n-e)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(t){if(this.segmentMetadataTrack_){var e=t.segment,i=e.start,n=e.end;if(wo(i)&amp;&amp;wo(n)){As(i,n,this.segmentMetadataTrack_);var a=r.a.WebKitDataCue||r.a.VTTCue,s={bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.uri,start:i,end:n},o=new a(i,n,JSON.stringify(s));o.value=s,this.segmentMetadataTrack_.addCue(o)}}}}]),e}(Ia.EventTarget),Ao=function(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))},xo=new Uint8Array("\n\n".split("").map(function(t){return t.charCodeAt(0)})),Oo=function(t){function e(t){var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};ja(this,e);var n=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.mediaSource_=null,n.subtitlesTrack_=null,n}return Na(e,Eo),Ua(e,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return Ia.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,i=t[t.length-1].startTime;return Ia.createTimeRanges([[e,i]])}},{key:"initSegment",value:function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];if(!t)return null;var i=_s(t),n=this.initSegments_[i];if(e&amp;&amp;!n&amp;&amp;t.bytes){var r=xo.byteLength+t.bytes.byteLength,a=new Uint8Array(r);a.set(t.bytes),a.set(xo,t.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:a}}return n||t}},{key:"couldBeginLoading_",value:function(){return this.playlist_&amp;&amp;this.subtitlesTrack_&amp;&amp;!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(t){return void 0===t?this.subtitlesTrack_:(this.subtitlesTrack_=t,"INIT"===this.state&amp;&amp;this.couldBeginLoading_()&amp;&amp;this.init_(),this.subtitlesTrack_)}},{key:"remove",value:function(t,e){As(t,e,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var t=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(e=this.skipEmptySegments_(e)){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){return this.syncController_.one("timestampoffset",function(){t.state="READY",t.paused()||t.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}},{key:"skipEmptySegments_",value:function(t){for(;t&amp;&amp;t.segment.empty;)t=this.generateSegmentInfo_(t.playlist,t.mediaIndex+1,t.startOfSegment+t.duration,t.isSyncRequest);return t}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_&amp;&amp;this.subtitlesTrack_){this.state="APPENDING";var e=this.pendingSegment_,i=e.segment;if("function"!=typeof r.a.WebVTT&amp;&amp;this.subtitlesTrack_&amp;&amp;this.subtitlesTrack_.tech_){var n=function(){t.handleSegment_()};return this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",n),void this.subtitlesTrack_.tech_.one("vttjserror",function(){t.subtitlesTrack_.tech_.off("vttjsloaded",n),t.error({message:"Error loading vtt.js"}),t.state="READY",t.pause(),t.trigger("error")})}i.requested=!0;try{this.parseVTTCues_(e)}catch(t){return this.error({message:t.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(e,this.syncController_.timelines[e.timeline],this.playlist_),e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");e.byteLength=e.bytes.byteLength,this.mediaSecondsLoaded+=i.duration,e.cues.length&amp;&amp;this.remove(e.cues[0].endTime,e.cues[e.cues.length-1].endTime),e.cues.forEach(function(e){t.subtitlesTrack_.addCue(e)}),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(t){var e=void 0,i=!1;"function"==typeof r.a.TextDecoder?e=new r.a.TextDecoder("utf8"):(e=r.a.WebVTT.StringDecoder(),i=!0);var n=new r.a.WebVTT.Parser(r.a,r.a.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=t.cues.push.bind(t.cues),n.ontimestampmap=function(e){return t.timestampmap=e},n.onparsingerror=function(t){Ia.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var a=t.segment.map.bytes;i&amp;&amp;(a=Ao(a)),n.parse(a)}var s=t.bytes;i&amp;&amp;(s=Ao(s)),n.parse(s),n.flush()}},{key:"updateTimeMapping_",value:function(t,e,i){var n=t.segment;if(e)if(t.cues.length){var r=t.timestampmap,a=r.MPEGTS/9e4-r.LOCAL+e.mapping;if(t.cues.forEach(function(t){t.startTime+=a,t.endTime+=a}),!i.syncInfo){var s=t.cues[0].startTime,o=t.cues[t.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+t.mediaIndex,time:Math.min(s,o-n.duration)}}}else n.empty=!0}}]),e}(),Po=function(t,e){for(var i=t.cues,n=0;n&lt;i.length;n++){var r=i[n];if(e&gt;=r.adStartTime&amp;&amp;e&lt;=r.adEndTime)return r}return null},Lo=gt.a.inspect,Io=[{name:"VOD",run:function(t,e,i,n,r){if(i!==1/0){return{time:0,segmentIndex:0}}return null}},{name:"ProgramDateTime",run:function(t,e,i,n,r){if(!t.datetimeToDisplayTime)return null;var a=e.segments||[],s=null,o=null;r=r||0;for(var l=0;l&lt;a.length;l++){var u=a[l];if(u.dateTimeObject){var c=u.dateTimeObject.getTime()/1e3+t.datetimeToDisplayTime,h=Math.abs(r-c);if(null!==o&amp;&amp;o&lt;h)break;o=h,s={time:c,segmentIndex:l}}}return s}},{name:"Segment",run:function(t,e,i,n,r){var a=e.segments||[],s=null,o=null;r=r||0;for(var l=0;l&lt;a.length;l++){var u=a[l];if(u.timeline===n&amp;&amp;void 0!==u.start){var c=Math.abs(r-u.start);if(null!==o&amp;&amp;o&lt;c)break;(!s||null===o||o&gt;=c)&amp;&amp;(o=c,s={time:u.start,segmentIndex:l})}}return s}},{name:"Discontinuity",run:function(t,e,i,n,r){var a=null;if(r=r||0,e.discontinuityStarts&amp;&amp;e.discontinuityStarts.length)for(var s=null,o=0;o&lt;e.discontinuityStarts.length;o++){var l=e.discontinuityStarts[o],u=e.discontinuitySequence+o+1,c=t.discontinuities[u];if(c){var h=Math.abs(r-c.time);if(null!==s&amp;&amp;s&lt;h)break;(!a||null===s||s&gt;=h)&amp;&amp;(s=h,a={time:c.time,segmentIndex:l})}}return a}},{name:"Playlist",run:function(t,e,i,n,r){return e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence}:null}}],Do=function(t){function e(){ja(this,e);var t=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.inspectCache_=void 0,t.timelines=[],t.discontinuities=[],t.datetimeToDisplayTime=null,t.logger_=oo("SyncController"),t}return Na(e,t),Ua(e,[{key:"getSyncPoint",value:function(t,e,i,n){var r=this.runStrategies_(t,e,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null}},{key:"getExpiredTime",value:function(t,e){if(!t||!t.segments)return null;var i=this.runStrategies_(t,e,t.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex&gt;0&amp;&amp;(n.time*=-1),Math.abs(n.time+Qa(t,n.segmentIndex,0))}},{key:"runStrategies_",value:function(t,e,i,n){for(var r=[],a=0;a&lt;Io.length;a++){var s=Io[a],o=s.run(this,t,e,i,n);o&amp;&amp;(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}))}return r}},{key:"selectSyncPoint_",value:function(t,e){for(var i=t[0].syncPoint,n=Math.abs(t[0].syncPoint[e.key]-e.value),r=t[0].strategy,a=1;a&lt;t.length;a++){var s=Math.abs(t[a].syncPoint[e.key]-e.value);s&lt;n&amp;&amp;(n=s,i=t[a].syncPoint,r=t[a].strategy)}return this.logger_("syncPoint for ["+e.key+": "+e.value+"] chosen with strategy ["+r+"]: [time:"+i.time+", segmentIndex:"+i.segmentIndex+"]"),i}},{key:"saveExpiredSegmentInfo",value:function(t,e){for(var i=e.mediaSequence-t.mediaSequence-1;i&gt;=0;i--){var n=t.segments[i];if(n&amp;&amp;void 0!==n.start){e.syncInfo={mediaSequence:t.mediaSequence+i,time:n.start},this.logger_("playlist refresh sync: [time:"+e.syncInfo.time+", mediaSequence: "+e.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(t){if(!this.datetimeToDisplayTime&amp;&amp;t.segments&amp;&amp;t.segments.length&amp;&amp;t.segments[0].dateTimeObject){var e=t.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-e}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(t){var e=t.segment,i=t.playlist,n=void 0;return(n=e.map?this.probeMp4Segment_(t):this.probeTsSegment_(t))&amp;&amp;this.calculateSegmentTimeMapping_(t,n)&amp;&amp;(this.saveDiscontinuitySyncInfo_(t),i.syncInfo||(i.syncInfo={mediaSequence:i.mediaSequence+t.mediaIndex,time:e.start})),n}},{key:"probeMp4Segment_",value:function(t){var e=t.segment,i=dt.a.timescale(e.map.bytes),n=dt.a.startTime(i,t.bytes);return null!==t.timestampOffset&amp;&amp;(t.timestampOffset-=n),{start:n,end:n+e.duration}}},{key:"probeTsSegment_",value:function(t){var e=Lo(t.bytes,this.inspectCache_),i=void 0,n=void 0;return e?(e.video&amp;&amp;2===e.video.length?(this.inspectCache_=e.video[1].dts,i=e.video[0].dtsTime,n=e.video[1].dtsTime):e.audio&amp;&amp;2===e.audio.length&amp;&amp;(this.inspectCache_=e.audio[1].dts,i=e.audio[0].dtsTime,n=e.audio[1].dtsTime),{start:i,end:n,containsVideo:e.video&amp;&amp;2===e.video.length,containsAudio:e.audio&amp;&amp;2===e.audio.length}):null}},{key:"timestampOffsetForTimeline",value:function(t){return void 0===this.timelines[t]?null:this.timelines[t].time}},{key:"mappingForTimeline",value:function(t){return void 0===this.timelines[t]?null:this.timelines[t].mapping}},{key:"calculateSegmentTimeMapping_",value:function(t,e){var i=t.segment,n=this.timelines[t.timeline];if(null!==t.timestampOffset)n={time:t.startOfSegment,mapping:t.startOfSegment-e.start},this.timelines[t.timeline]=n,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": [time: "+n.time+"] [mapping: "+n.mapping+"]"),i.start=t.startOfSegment,i.end=e.end+n.mapping;else{if(!n)return!1;i.start=e.start+n.mapping,i.end=e.end+n.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(t){var e=t.playlist,i=t.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(e.discontinuityStarts&amp;&amp;e.discontinuityStarts.length)for(var n=0;n&lt;e.discontinuityStarts.length;n++){var r=e.discontinuityStarts[n],a=e.discontinuitySequence+n+1,s=r-t.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy&gt;o){var l=void 0;l=s&lt;0?i.start-Qa(e,t.mediaIndex,r):i.end+Qa(e,t.mediaIndex+1,r),this.discontinuities[a]={time:l,accuracy:o}}}}}]),e}(Ia.EventTarget),Mo=new js("./decrypter-worker.worker.js",function(t,e){var i=this;!function(){var t=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":Dt(e))&amp;&amp;"function"!=typeof e?t:e},r=function(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]],e=t[0],i=t[1],n=e[4],r=i[4],a=void 0,s=void 0,o=void 0,l=[],u=[],c=void 0,h=void 0,d=void 0,p=void 0,f=void 0;for(a=0;a&lt;256;a++)u[(l[a]=a&lt;&lt;1^283*(a&gt;&gt;7))^a]=a;for(s=o=0;!n[s];s^=c||1,o=u[o]||1)for(d=(d=o^o&lt;&lt;1^o&lt;&lt;2^o&lt;&lt;3^o&lt;&lt;4)&gt;&gt;8^255&amp;d^99,n[s]=d,r[d]=s,f=16843009*l[h=l[c=l[s]]]^65537*h^257*c^16843008*s,p=257*l[d]^16843008*d,a=0;a&lt;4;a++)e[a][s]=p=p&lt;&lt;24^p&gt;&gt;&gt;8,i[a][d]=f=f&lt;&lt;24^f&gt;&gt;&gt;8;for(a=0;a&lt;5;a++)e[a]=e[a].slice(0),i[a]=i[a].slice(0);return t},a=null,s=function(){function e(i){t(this,e),a||(a=r()),this._tables=[[a[0][0].slice(),a[0][1].slice(),a[0][2].slice(),a[0][3].slice(),a[0][4].slice()],[a[1][0].slice(),a[1][1].slice(),a[1][2].slice(),a[1][3].slice(),a[1][4].slice()]];var n=void 0,s=void 0,o=void 0,l=void 0,u=void 0,c=this._tables[0][4],h=this._tables[1],d=i.length,p=1;if(4!==d&amp;&amp;6!==d&amp;&amp;8!==d)throw new Error("Invalid aes key size");for(l=i.slice(0),u=[],this._key=[l,u],n=d;n&lt;4*d+28;n++)o=l[n-1],(n%d==0||8===d&amp;&amp;n%d==4)&amp;&amp;(o=c[o&gt;&gt;&gt;24]&lt;&lt;24^c[o&gt;&gt;16&amp;255]&lt;&lt;16^c[o&gt;&gt;8&amp;255]&lt;&lt;8^c[255&amp;o],n%d==0&amp;&amp;(o=o&lt;&lt;8^o&gt;&gt;&gt;24^p&lt;&lt;24,p=p&lt;&lt;1^283*(p&gt;&gt;7))),l[n]=l[n-d]^o;for(s=0;n;s++,n--)o=l[3&amp;s?n:n-4],u[s]=n&lt;=4||s&lt;4?o:h[0][c[o&gt;&gt;&gt;24]]^h[1][c[o&gt;&gt;16&amp;255]]^h[2][c[o&gt;&gt;8&amp;255]]^h[3][c[255&amp;o]]}return e.prototype.decrypt=function(t,e,i,n,r,a){var s=this._key[1],o=t^s[0],l=n^s[1],u=i^s[2],c=e^s[3],h=void 0,d=void 0,p=void 0,f=s.length/4-2,g=void 0,m=4,y=this._tables[1],v=y[0],_=y[1],b=y[2],T=y[3],S=y[4];for(g=0;g&lt;f;g++)h=v[o&gt;&gt;&gt;24]^_[l&gt;&gt;16&amp;255]^b[u&gt;&gt;8&amp;255]^T[255&amp;c]^s[m],d=v[l&gt;&gt;&gt;24]^_[u&gt;&gt;16&amp;255]^b[c&gt;&gt;8&amp;255]^T[255&amp;o]^s[m+1],p=v[u&gt;&gt;&gt;24]^_[c&gt;&gt;16&amp;255]^b[o&gt;&gt;8&amp;255]^T[255&amp;l]^s[m+2],c=v[c&gt;&gt;&gt;24]^_[o&gt;&gt;16&amp;255]^b[l&gt;&gt;8&amp;255]^T[255&amp;u]^s[m+3],m+=4,o=h,l=d,u=p;for(g=0;g&lt;4;g++)r[(3&amp;-g)+a]=S[o&gt;&gt;&gt;24]&lt;&lt;24^S[l&gt;&gt;16&amp;255]&lt;&lt;16^S[u&gt;&gt;8&amp;255]&lt;&lt;8^S[255&amp;c]^s[m++],h=o,o=l,l=u,u=c,c=h},e}(),o=function(){function e(){t(this,e),this.listeners={}}return e.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.prototype.off=function(t,e){if(!this.listeners[t])return!1;var i=this.listeners[t].indexOf(e);return this.listeners[t].splice(i,1),i&gt;-1},e.prototype.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var i=e.length,n=0;n&lt;i;++n)e[n].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=e.length,s=0;s&lt;a;++s)e[s].apply(this,r)},e.prototype.dispose=function(){this.listeners={}},e.prototype.pipe=function(t){this.on("data",function(e){t.push(e)})},e}(),l=function(e){function i(){t(this,i);var r=n(this,e.call(this,o));return r.jobs=[],r.delay=1,r.timeout_=null,r}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":Dt(e)));t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(i,e),i.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},i.prototype.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},i}(o),u=function(t){return t&lt;&lt;24|(65280&amp;t)&lt;&lt;8|(16711680&amp;t)&gt;&gt;8|t&gt;&gt;&gt;24},c=function(){function i(e,n,r,a){t(this,i);var s=i.STEP,o=new Int32Array(e.buffer),c=new Uint8Array(e.byteLength),h=0;for(this.asyncStream_=new l,this.asyncStream_.push(this.decryptChunk_(o.subarray(h,h+s),n,r,c)),h=s;h&lt;o.length;h+=s)r=new Uint32Array([u(o[h-4]),u(o[h-3]),u(o[h-2]),u(o[h-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(h,h+s),n,r,c));this.asyncStream_.push(function(){var t;a(null,(t=c).subarray(0,t.byteLength-t[t.byteLength-1]))})}return i.prototype.decryptChunk_=function(t,e,i,n){return function(){var r=function(t,e,i){var n=new Int32Array(t.buffer,t.byteOffset,t.byteLength&gt;&gt;2),r=new s(Array.prototype.slice.call(e)),a=new Uint8Array(t.byteLength),o=new Int32Array(a.buffer),l=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,m=void 0,y=void 0;for(l=i[0],c=i[1],h=i[2],d=i[3],y=0;y&lt;n.length;y+=4)p=u(n[y]),f=u(n[y+1]),g=u(n[y+2]),m=u(n[y+3]),r.decrypt(p,f,g,m,o,y),o[y]=u(o[y]^l),o[y+1]=u(o[y+1]^c),o[y+2]=u(o[y+2]^h),o[y+3]=u(o[y+3]^d),l=p,c=f,h=g,d=m;return a}(t,e,i);n.set(r,t.byteOffset)}},e(i,null,[{key:"STEP",get:function(){return 32e3}}]),i}();new function(t){t.onmessage=function(e){var i=e.data,n=new Uint8Array(i.encrypted.bytes,i.encrypted.byteOffset,i.encrypted.byteLength),r=new Uint32Array(i.key.bytes,i.key.byteOffset,i.key.byteLength/4),a=new Uint32Array(i.iv.bytes,i.iv.byteOffset,i.iv.byteLength/4);new c(n,r,a,function(e,n){var r,a;t.postMessage((r={source:i.source,decrypted:n},a={},Object.keys(r).forEach(function(t){var e=r[t];ArrayBuffer.isView(e)?a[t]={bytes:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength}:a[t]=e}),a),[n.buffer])})}}(i)}()}),Ro=function(t){var e=t.default?"main":"alternative";return t.characteristics&amp;&amp;t.characteristics.indexOf("public.accessibility.describes-video")&gt;=0&amp;&amp;(e="main-desc"),e},jo=function(t,e){t.abort(),t.pause(),e&amp;&amp;e.activePlaylistLoader&amp;&amp;(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},Uo=function(t,e){e.activePlaylistLoader=t,t.load()},No={AUDIO:function(t,e){return function(){var i=e.segmentLoaders[t],n=e.mediaTypes[t],r=e.blacklistCurrentPlaylist;jo(i,n);var a=n.activeTrack(),s=n.activeGroup(),o=(s.filter(function(t){return t.default})[0]||s[0]).id,l=n.tracks[o];if(a!==l){for(var u in Ia.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[u].enabled=n.tracks[u]===l;n.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var i=e.segmentLoaders[t],n=e.mediaTypes[t];Ia.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),jo(i,n);var r=n.activeTrack();r&amp;&amp;(r.mode="disabled"),n.onTrackChanged()}}},Bo={AUDIO:function(t,e,i){if(e){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[t];e.on("loadedmetadata",function(){var t=e.media();a.playlist(t,r),(!n.paused()||t.endList&amp;&amp;"none"!==n.preload())&amp;&amp;a.load()}),e.on("loadedplaylist",function(){a.playlist(e.media(),r),n.paused()||a.load()}),e.on("error",No[t](t,i))}},SUBTITLES:function(t,e,i){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[t],s=i.mediaTypes[t];e.on("loadedmetadata",function(){var t=e.media();a.playlist(t,r),a.track(s.activeTrack()),(!n.paused()||t.endList&amp;&amp;"none"!==n.preload())&amp;&amp;a.load()}),e.on("loadedplaylist",function(){a.playlist(e.media(),r),n.paused()||a.load()}),e.on("error",No[t](t,i))}},Fo=function(t,e){return function(i){return i.attributes[t]===e}},Ho=function(t){return function(e){return e.resolvedUri===t}},Vo={AUDIO:function(t,e){var i=e.hls,n=e.sourceType,r=e.segmentLoaders[t],a=e.requestOptions.withCredentials,s=e.master,o=s.mediaGroups,l=s.playlists,u=e.mediaTypes[t],c=u.groups,h=u.tracks,d=e.masterPlaylistLoader;for(var p in o[t]&amp;&amp;0!==Object.keys(o[t]).length||(o[t]={main:{default:{default:!0}}}),o[t]){c[p]||(c[p]=[]);var f=l.filter(Fo(t,p));for(var g in o[t][p]){var m=o[t][p][g];f.filter(Ho(m.resolvedUri)).length&amp;&amp;delete m.resolvedUri;var y=void 0;if(y=m.resolvedUri?new Ka(m.resolvedUri,i,a):m.playlists&amp;&amp;"dash"===n?new so(m.playlists[0],i,a,d):null,m=Ia.mergeOptions({id:g,playlistLoader:y},m),Bo[t](t,m.playlistLoader,e),c[p].push(m),void 0===h[g]){var v=new Ia.AudioTrack({id:g,kind:Ro(m),enabled:!1,language:m.language,default:m.default,label:g});h[g]=v}}}r.on("error",No[t](t,e))},SUBTITLES:function(t,e){var i=e.tech,n=e.hls,r=e.sourceType,a=e.segmentLoaders[t],s=e.requestOptions.withCredentials,o=e.master.mediaGroups,l=e.mediaTypes[t],u=l.groups,c=l.tracks,h=e.masterPlaylistLoader;for(var d in o[t])for(var p in u[d]||(u[d]=[]),o[t][d])if(!o[t][d][p].forced){var f=o[t][d][p],g=void 0;if("hls"===r?g=new Ka(f.resolvedUri,n,s):"dash"===r&amp;&amp;(g=new so(f.playlists[0],n,s,h)),f=Ia.mergeOptions({id:p,playlistLoader:g},f),Bo[t](t,f.playlistLoader,e),u[d].push(f),void 0===c[p]){var m=i.addRemoteTextTrack({id:p,kind:"subtitles",enabled:!1,language:f.language,label:p},!1).track;c[p]=m}}a.on("error",No[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var i=e.tech,n=e.master.mediaGroups,r=e.mediaTypes[t],a=r.groups,s=r.tracks;for(var o in n[t])for(var l in a[o]||(a[o]=[]),n[t][o]){var u=n[t][o][l];if(u.instreamId.match(/CC\d/)&amp;&amp;(a[o].push(Ia.mergeOptions({id:l},u)),void 0===s[l])){var c=i.addRemoteTextTrack({id:u.instreamId,kind:"captions",enabled:!1,language:u.language,label:l},!1).track;s[l]=c}}}},zo={AUDIO:function(t,e){return function(){var i=e.mediaTypes[t].tracks;for(var n in i)if(i[n].enabled)return i[n];return null}},SUBTITLES:function(t,e){return function(){var i=e.mediaTypes[t].tracks;for(var n in i)if("showing"===i[n].mode)return i[n];return null}}},Wo=function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){Vo[e](e,t)});var e=t.mediaTypes,i=t.masterPlaylistLoader,n=t.tech,r=t.hls;["AUDIO","SUBTITLES"].forEach(function(i){e[i].activeGroup=function(t,e){return function(i){var n=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,a=n.media();if(!a)return null;var s=null;return a.attributes[t]&amp;&amp;(s=r[a.attributes[t]]),s=s||r.main,void 0===i?s:null===i?null:s.filter(function(t){return t.id===i.id})[0]||null}}(i,t),e[i].activeTrack=zo[i](i,t),e[i].onGroupChanged=function(t,e){return function(){var i=e.segmentLoaders,n=i[t],r=i.main,a=e.mediaTypes[t],s=a.activeTrack(),o=a.activeGroup(s),l=a.activePlaylistLoader;jo(n,a),o&amp;&amp;(o.playlistLoader?(n.resyncLoader(),Uo(o.playlistLoader,a)):l&amp;&amp;r.resetEverything())}}(i,t),e[i].onTrackChanged=function(t,e){return function(){var i=e.segmentLoaders,n=i[t],r=i.main,a=e.mediaTypes[t],s=a.activeTrack(),o=a.activeGroup(s),l=a.activePlaylistLoader;jo(n,a),o&amp;&amp;(o.playlistLoader?l!==o.playlistLoader?(n.track&amp;&amp;n.track(s),n.resetEverything(),Uo(o.playlistLoader,a)):Uo(o.playlistLoader,a):r.resetEverything())}}(i,t)});var a=e.AUDIO.activeGroup(),s=(a.filter(function(t){return t.default})[0]||a[0]).id;e.AUDIO.tracks[s].enabled=!0,e.AUDIO.onTrackChanged(),i.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(t){return e[t].onGroupChanged()})});var o=function(){e.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"hls-audio-change"})};for(var l in n.audioTracks().addEventListener("change",o),n.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",function(){n.audioTracks().removeEventListener("change",o),n.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),n.clearTracks("audio"),e.AUDIO.tracks)n.audioTracks().addTrack(e.AUDIO.tracks[l])},qo=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:lo,activeTrack:lo,onGroupChanged:lo,onTrackChanged:lo}}),t},Go=void 0,Xo=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],Yo=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},Ko=function(t){function e(t){ja(this,e);var i=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),n=t.url,r=t.withCredentials,a=t.tech,s=t.bandwidth,o=t.externHls,l=t.useCueTags,u=t.blacklistDuration,c=t.enableLowInitialPlaylist,h=t.sourceType,d=t.seekTo;if(!n)throw new Error("A non-empty playlist URL is required");Go=o,i.withCredentials=r,i.tech_=a,i.hls_=a.hls,i.seekTo_=d,i.sourceType_=h,i.useCueTags_=l,i.blacklistDuration=u,i.enableLowInitialPlaylist=c,i.useCueTags_&amp;&amp;(i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues"),i.cueTagsTrack_.inBandMetadataTrackDispatchType=""),i.requestOptions_={withCredentials:i.withCredentials,timeout:null},i.mediaTypes_=qo(),i.mediaSource=new Ia.MediaSource,i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_.bind(i)),i.seekable_=Ia.createTimeRanges(),i.hasPlayed_=function(){return!1},i.syncController_=new Do(t),i.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,i.decrypter_=new Mo,i.inbandTextTracks_={};var p={hls:i.hls_,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function(){return i.seekable()},seeking:function(){return i.tech_.seeking()},duration:function(){return i.mediaSource.duration},hasPlayed:function(){return i.hasPlayed_()},goalBufferLength:function(){return i.goalBufferLength()},bandwidth:s,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_};return i.masterPlaylistLoader_="dash"===i.sourceType_?new so(n,i.hls_,i.withCredentials):new Ka(n,i.hls_,i.withCredentials),i.setupMasterPlaylistLoaderListeners_(),i.mainSegmentLoader_=new Eo(Ia.mergeOptions(p,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),t),i.audioSegmentLoader_=new Eo(Ia.mergeOptions(p,{loaderType:"audio"}),t),i.subtitleSegmentLoader_=new Oo(Ia.mergeOptions(p,{loaderType:"vtt"}),t),i.setupSegmentLoaderListeners_(),Xo.forEach(function(t){i[t+"_"]=Yo.bind(i,t)}),i.logger_=oo("MPC"),i.masterPlaylistLoader_.load(),i}return Na(e,t),Ua(e,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=t.masterPlaylistLoader_.media(),i=1.5*t.masterPlaylistLoader_.targetDuration*1e3;cs(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=i,e.endList&amp;&amp;"none"!==t.tech_.preload()&amp;&amp;(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),Wo({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,hls:t.hls_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e);try{t.setupSourceBuffers_()}catch(e){return Ia.log.warn("Failed to create SourceBuffers",e),t.mediaSource.endOfStream("decode")}t.setupFirstPlay(),t.trigger("selectedinitialmedia")}),this.masterPlaylistLoader_.on("loadedplaylist",function(){var e=t.masterPlaylistLoader_.media();if(!e){t.excludeUnsupportedVariants_();var i=void 0;return t.enableLowInitialPlaylist&amp;&amp;(i=t.selectInitialPlaylist()),i||(i=t.selectPlaylist()),t.initialMedia_=i,void t.masterPlaylistLoader_.media(t.initialMedia_)}if(t.useCueTags_&amp;&amp;t.updateAdCues_(e),t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.updateDuration(),t.tech_.paused()||(t.mainSegmentLoader_.load(),t.audioSegmentLoader_&amp;&amp;t.audioSegmentLoader_.load()),!e.endList){var n=function(){var e=t.seekable();0!==e.length&amp;&amp;t.mediaSource.addSeekableRange_(e.start(0),e.end(0))};if(t.duration()!==1/0){t.tech_.one("durationchange",function e(){t.duration()===1/0?n():t.tech_.one("durationchange",e)})}else n()}}),this.masterPlaylistLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var e=t.masterPlaylistLoader_.media(),i=1.5*t.masterPlaylistLoader_.targetDuration*1e3;cs(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=i,t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=t.masterPlaylistLoader_.media();t.stuckAtPlaylistEnd_(e)&amp;&amp;(t.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),t.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})}},{key:"triggerPresenceUsage_",value:function(t,e){var i=t.mediaGroups||{},n=!0,r=Object.keys(i.AUDIO);for(var a in i.AUDIO)for(var s in i.AUDIO[a]){i.AUDIO[a][s].uri||(n=!1)}n&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(i.SUBTITLES).length&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-webvtt"}),Go.Playlist.isAes(e)&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-aes"}),Go.Playlist.isFmp4(e)&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-fmp4"}),r.length&amp;&amp;Object.keys(i.AUDIO[r[0]]).length&gt;1&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var t=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist(),i=t.masterPlaylistLoader_.media(),n=t.tech_.buffered(),r=n.length?n.end(n.length-1)-t.tech_.currentTime():0,a=t.bufferLowWaterLine();(!i.endList||t.duration()&lt;co.MAX_BUFFER_LOW_WATER_LINE||e.attributes.BANDWIDTH&lt;i.attributes.BANDWIDTH||r&gt;=a)&amp;&amp;t.masterPlaylistLoader_.media(e),t.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("ended",function(){t.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(){t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120)}),this.mainSegmentLoader_.on("reseteverything",function(){t.tech_.trigger("hls-reset")}),this.mainSegmentLoader_.on("segmenttimemapping",function(e){t.tech_.trigger({type:"hls-segment-time-mapping",mapping:e.mapping})}),this.audioSegmentLoader_.on("ended",function(){t.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&amp;&amp;this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&amp;&amp;this.subtitleSegmentLoader_.load()}},{key:"smoothQualityChange_",value:function(){var t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&amp;&amp;(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetLoader())}},{key:"fastQualityChange_",value:function(){var t=this,e=this.selectPlaylist();e!==this.masterPlaylistLoader_.media()&amp;&amp;(this.masterPlaylistLoader_.media(e),this.mainSegmentLoader_.resetEverything(function(){t.tech_.setCurrentTime(t.tech_.currentTime())}))}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&amp;&amp;this.seekTo_(0),this.hasPlayed_()&amp;&amp;this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&amp;&amp;this.tech_.currentTime()&lt;t.start(0)?this.seekTo_(t.end(t.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var t=this,e=this.masterPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_())return!1;if(!e.endList){var i=this.seekable();if(!i.length)return!1;if(Ia.browser.IE_VERSION&amp;&amp;0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){t.trigger("firstplay"),t.seekTo_(i.end(0)),t.hasPlayed_=function(){return!0}}),!1;this.trigger("firstplay"),this.seekTo_(i.end(0))}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(t){return Ia.log.warn("Failed to create Source Buffers",t),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var t=this.tech_.play();void 0!==t&amp;&amp;"function"==typeof t.then&amp;&amp;t.then(null,function(t){})}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var t=this.mainSegmentLoader_.ended_;this.mediaTypes_.AUDIO.activePlaylistLoader&amp;&amp;(t=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?t&amp;&amp;this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),t&amp;&amp;this.mediaSource.endOfStream()}},{key:"stuckAtPlaylistEnd_",value:function(t){if(!this.seekable().length)return!1;var e=this.syncController_.getExpiredTime(t,this.mediaSource.duration);if(null===e)return!1;var i=Go.Playlist.playlistEnd(t,e),n=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return i-n&lt;=.1;var a=r.end(r.length-1);return a-n&lt;=.1&amp;&amp;i-a&lt;=.1}},{key:"blacklistCurrentPlaylist",value:function(){var t,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},i=arguments[1],n=void 0;if(n=e.playlist||this.masterPlaylistLoader_.media(),i=i||e.blacklistDuration||this.blacklistDuration,!n){this.error=e;try{return this.mediaSource.endOfStream("network")}catch(t){return this.trigger("error")}}var r=1===this.masterPlaylistLoader_.master.playlists.filter(ls).length;return r?(Ia.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the final playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(r)):(n.excludeUntil=Date.now()+1e3*i,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),t=this.selectPlaylist(),Ia.log.warn("Problem encountered with the current HLS playlist."+(e.message?" "+e.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(t))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&amp;&amp;this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&amp;&amp;this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(t){var e=ks(this.tech_.buffered(),t);return this.masterPlaylistLoader_&amp;&amp;this.masterPlaylistLoader_.media()&amp;&amp;this.masterPlaylistLoader_.media().segments?e&amp;&amp;e.length?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&amp;&amp;(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&amp;&amp;(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:Go.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var t=void 0,e=void 0;if(this.masterPlaylistLoader_){var i=this.masterPlaylistLoader_.media();if(i){var n=this.syncController_.getExpiredTime(i,this.mediaSource.duration);if(null!==n&amp;&amp;0!==(t=Go.Playlist.seekable(i,n)).length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(i=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(i,this.mediaSource.duration)))return;if(0===(e=Go.Playlist.seekable(i,n)).length)return}e?e.start(0)&gt;t.end(0)||t.start(0)&gt;e.end(0)?this.seekable_=t:this.seekable_=Ia.createTimeRanges([[e.start(0)&gt;t.start(0)?e.start(0):t.start(0),e.end(0)&lt;t.end(0)?e.end(0):t.end(0)]]):this.seekable_=t,this.logger_("seekable updated ["+ws(this.seekable_)+"]"),this.tech_.trigger("seekablechanged")}}}}},{key:"updateDuration",value:function(){var t=this,e=this.mediaSource.duration,i=Go.Playlist.duration(this.masterPlaylistLoader_.media()),n=this.tech_.buffered(),r=function e(){t.mediaSource.duration=i,t.tech_.trigger("durationchange"),t.mediaSource.removeEventListener("sourceopen",e)};n.length&gt;0&amp;&amp;(i=Math.max(i,n.end(n.length-1))),e!==i&amp;&amp;("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",r):r())}},{key:"dispose",value:function(){var t=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach(function(e){var i=t.mediaTypes_[e].groups;for(var n in i)i[n].forEach(function(t){t.playlistLoader&amp;&amp;t.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var t,e=this.masterPlaylistLoader_.media();if(e&amp;&amp;"open"===this.mediaSource.readyState){if((t=Gs(this.masterPlaylistLoader_.master,e)).length&lt;1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+e.resolvedUri,this.mediaSource.endOfStream("decode");this.configureLoaderMimeTypes_(t),this.excludeIncompatibleVariants_(e)}}},{key:"configureLoaderMimeTypes_",value:function(t){var e=t.length&gt;1&amp;&amp;-1===t[0].indexOf(",")&amp;&amp;t[0]!==t[1]?new Ia.EventTarget:null;this.mainSegmentLoader_.mimeType(t[0],e),t[1]&amp;&amp;this.audioSegmentLoader_.mimeType(t[1],e)}},{key:"excludeUnsupportedVariants_",value:function(){this.master().playlists.forEach(function(t){var e;t.attributes.CODECS&amp;&amp;r.a.MediaSource&amp;&amp;r.a.MediaSource.isTypeSupported&amp;&amp;!r.a.MediaSource.isTypeSupported('video/mp4; codecs="'+(e=t.attributes.CODECS,e.replace(/avc1\.(\d+)\.(\d+)/i,function(t){return zs([t])[0]}))+'"')&amp;&amp;(t.excludeUntil=1/0)})}},{key:"excludeIncompatibleVariants_",value:function(t){var e=2,i=null,n=void 0;t.attributes.CODECS&amp;&amp;(n=Ws(t.attributes.CODECS),i=n.videoCodec,e=n.codecCount),this.master().playlists.forEach(function(t){var n={codecCount:2,videoCodec:null};t.attributes.CODECS&amp;&amp;(n=Ws(t.attributes.CODECS)),n.codecCount!==e&amp;&amp;(t.excludeUntil=1/0),n.videoCodec!==i&amp;&amp;(t.excludeUntil=1/0)})}},{key:"updateAdCues_",value:function(t){var e=0,i=this.seekable();i.length&amp;&amp;(e=i.start(0)),function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:0;if(t.segments)for(var n=i,a=void 0,s=0;s&lt;t.segments.length;s++){var o=t.segments[s];if(a||(a=Po(e,n+o.duration/2)),a){if("cueIn"in o){a.endTime=n,a.adEndTime=n,n+=o.duration,a=null;continue}if(n&lt;a.endTime){n+=o.duration;continue}a.endTime+=o.duration}else if("cueOut"in o&amp;&amp;((a=new r.a.VTTCue(n,n+o.duration,o.cueOut)).adStartTime=n,a.adEndTime=n+parseFloat(o.cueOut),e.addCue(a)),"cueOutCont"in o){var l,u,c=o.cueOutCont.split("/").map(parseFloat),h=Fa(c,2);l=h[0],u=h[1],(a=new r.a.VTTCue(n,n+o.duration,"")).adStartTime=n-l,a.adEndTime=a.adStartTime+u,e.addCue(a)}n+=o.duration}}(t,this.cueTagsTrack_,e)}},{key:"goalBufferLength",value:function(){var t=this.tech_.currentTime(),e=co.GOAL_BUFFER_LENGTH,i=co.GOAL_BUFFER_LENGTH_RATE,n=Math.max(e,co.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*i,n)}},{key:"bufferLowWaterLine",value:function(){var t=this.tech_.currentTime(),e=co.BUFFER_LOW_WATER_LINE,i=co.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(e,co.MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*i,n)}}]),e}(Ia.EventTarget),$o=function t(e,i,n){ja(this,t);var r,a,s,o=e.masterPlaylistController_.fastQualityChange_.bind(e.masterPlaylistController_);if(i.attributes.RESOLUTION){var l=i.attributes.RESOLUTION;this.width=l.width,this.height=l.height}this.bandwidth=i.attributes.BANDWIDTH,this.id=n,this.enabled=(r=e.playlists,a=i.uri,s=o,function(t){var e=r.master.playlists[a],i=os(e),n=ls(e);return void 0===t?n:(t?delete e.disabled:e.disabled=!0,t===n||i||(s(),t?r.trigger("renditionenabled"):r.trigger("renditiondisabled")),t)})},Jo=["seeking","seeked","pause","playing","error"],Zo=function(){function t(e){var i=this;ja(this,t),this.tech_=e.tech,this.seekable=e.seekable,this.seekTo=e.seekTo,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=oo("PlaybackWatcher"),this.logger_("initialize");var n=function(){return i.monitorCurrentTime_()},a=function(){return i.techWaiting_()},s=function(){return i.cancelTimer_()},o=function(){return i.fixesBadSeeks_()};this.tech_.on("seekablechanged",o),this.tech_.on("waiting",a),this.tech_.on(Jo,s),this.tech_.on("canplay",n),this.dispose=function(){i.logger_("dispose"),i.tech_.off("seekablechanged",o),i.tech_.off("waiting",a),i.tech_.off(Jo,s),i.tech_.off("canplay",n),i.checkCurrentTimeTimeout_&amp;&amp;r.a.clearTimeout(i.checkCurrentTimeTimeout_),i.cancelTimer_()}}return Ua(t,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&amp;&amp;r.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=r.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&amp;&amp;this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&amp;&amp;!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&amp;&amp;(!e.length||t+.1&gt;=e.end(e.length-1)))return this.techWaiting_();this.consecutiveUpdates&gt;=5&amp;&amp;t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&amp;&amp;(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){var t=this.tech_.seeking(),e=this.seekable(),i=this.tech_.currentTime(),n=void 0;t&amp;&amp;this.afterSeekableWindow_(e,i)&amp;&amp;(n=e.end(e.length-1));t&amp;&amp;this.beforeSeekableWindow_(e,i)&amp;&amp;(n=e.start(0)+.1);return void 0!==n&amp;&amp;(this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+ws(e)+". Seeking to "+n+"."),this.seekTo(n),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=this.tech_.buffered(),i=ks(e,t);return i.length&amp;&amp;t+3&lt;=i.end(0)?(this.cancelTimer_(),this.seekTo(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+i.start(0)+" -&gt; "+i.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()&amp;&amp;this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var i=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". Seeking to live point (seekable end) "+i),this.cancelTimer_(),this.seekTo(i),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var n=this.tech_.buffered(),r=Cs(n,e);if(this.videoUnderflow_(r,n,e))return this.cancelTimer_(),this.seekTo(e),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(r.length&gt;0){var a=r.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+a+", seeking to "+r.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,e),!0}return!1}},{key:"afterSeekableWindow_",value:function(t,e){return!!t.length&amp;&amp;e&gt;t.end(t.length-1)+.1}},{key:"beforeSeekableWindow_",value:function(t,e){return!!(t.length&amp;&amp;t.start(0)&gt;0&amp;&amp;e&lt;t.start(0)-.1)}},{key:"videoUnderflow_",value:function(t,e,i){if(0===t.length){var n=this.gapFromVideoUnderflow_(e,i);if(n)return this.logger_("Encountered a gap in video from "+n.start+" to "+n.end+". Seeking to current time "+i),!0}return!1}},{key:"skipTheGap_",value:function(t){var e=this.tech_.buffered(),i=this.tech_.currentTime(),n=Cs(e,i);this.cancelTimer_(),0!==n.length&amp;&amp;i===t&amp;&amp;(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",t,"nextRange start:",n.start(0)),this.seekTo(n.start(0)+1/30),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(t,e){for(var i=function(t){if(t.length&lt;2)return Ia.createTimeRanges();for(var e=[],i=1;i&lt;t.length;i++){var n=t.end(i-1),r=t.start(i);e.push([n,r])}return Ia.createTimeRanges(e)}(t),n=0;n&lt;i.length;n++){var r=i.start(n),a=i.end(n);if(e-r&lt;4&amp;&amp;e-r&gt;2)return{start:r,end:a}}return null}}]),t}(),Qo={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_)}},tl=function(t){!function t(e,i){var n=0,r=0,a=Ia.mergeOptions(Qo,i);e.ready(function(){e.trigger({type:"usage",name:"hls-error-reload-initialized"})});var s=function(){r&amp;&amp;e.currentTime(r)},o=function(t){null!==t&amp;&amp;void 0!==t&amp;&amp;(r=e.duration()!==1/0&amp;&amp;e.currentTime()||0,e.one("loadedmetadata",s),e.src(t),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},l=function(){if(Date.now()-n&lt;1e3*a.errorInterval)e.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(a.getSource&amp;&amp;"function"==typeof a.getSource)return n=Date.now(),a.getSource.call(e,o);Ia.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},u=function t(){e.off("loadedmetadata",s),e.off("error",l),e.off("dispose",t)};e.on("error",l),e.on("dispose",u),e.reloadSourceOnError=function(i){u(),t(e,i)}}(this,t)};Ia.use("*",function(t){return{setSource:function(t,e){e(null,t)},setCurrentTime:function(e){return t.vhs&amp;&amp;t.currentSource().src===t.vhs.source_.src&amp;&amp;t.vhs.setCurrentTime(e),e}}});var el={PlaylistLoader:Ka,Playlist:hs,Decrypter:Et,AsyncStream:kt,decrypt:wt,utils:Ts,STANDARD_PLAYLIST_SELECTOR:function(){return function(t,e,i,n){var a=t.playlists.map(function(t){var e,i;return e=t.attributes.RESOLUTION&amp;&amp;t.attributes.RESOLUTION.width,i=t.attributes.RESOLUTION&amp;&amp;t.attributes.RESOLUTION.height,{bandwidth:t.attributes.BANDWIDTH||r.a.Number.MAX_VALUE,width:e,height:i,playlist:t}});So(a,function(t,e){return t.bandwidth-e.bandwidth});var s=(a=a.filter(function(t){return!hs.isIncompatible(t.playlist)})).filter(function(t){return hs.isEnabled(t.playlist)});s.length||(s=a.filter(function(t){return!hs.isDisabled(t.playlist)}));var o=s.filter(function(t){return t.bandwidth*co.BANDWIDTH_VARIANCE&lt;e}),l=o[o.length-1],u=o.filter(function(t){return t.bandwidth===l.bandwidth})[0],c=o.filter(function(t){return t.width&amp;&amp;t.height});So(c,function(t,e){return t.width-e.width});var h=c.filter(function(t){return t.width===i&amp;&amp;t.height===n});l=h[h.length-1];var d=h.filter(function(t){return t.bandwidth===l.bandwidth})[0],p=void 0,f=void 0,g=void 0;d||(f=(p=c.filter(function(t){return t.width&gt;i||t.height&gt;n})).filter(function(t){return t.width===p[0].width&amp;&amp;t.height===p[0].height}),l=f[f.length-1],g=f.filter(function(t){return t.bandwidth===l.bandwidth})[0]);var m=g||d||u||s[0]||a[0];return m?m.playlist:null}(this.playlists.master,this.systemBandwidth,parseInt(To(this.tech_.el(),"width"),10),parseInt(To(this.tech_.el(),"height"),10))},INITIAL_PLAYLIST_SELECTOR:function(){var t=this.playlists.master.playlists.filter(hs.isEnabled);return So(t,function(t,e){return ko(t,e)}),t.filter(function(t){return Ws(t.attributes.CODECS).videoCodec})[0]||null},comparePlaylistBandwidth:ko,comparePlaylistResolution:function(t,e){var i=void 0,n=void 0;return t.attributes.RESOLUTION&amp;&amp;t.attributes.RESOLUTION.width&amp;&amp;(i=t.attributes.RESOLUTION.width),i=i||r.a.Number.MAX_VALUE,e.attributes.RESOLUTION&amp;&amp;e.attributes.RESOLUTION.width&amp;&amp;(n=e.attributes.RESOLUTION.width),i===(n=n||r.a.Number.MAX_VALUE)&amp;&amp;t.attributes.BANDWIDTH&amp;&amp;e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:i-n},xhr:fs()};["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach(function(t){Object.defineProperty(el,t,{get:function(){return Ia.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),co[t]},set:function(e){Ia.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e&lt;0?Ia.log.warn("value of Hls."+t+" must be greater than or equal to 0"):co[t]=e}})});var il=function(t){if(/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i.test(t))return"hls";return/^application\/dash\+xml/i.test(t)?"dash":null},nl=function(t,e){for(var i=e.media(),n=-1,r=0;r&lt;t.length;r++)if(t[r].id===i.uri){n=r;break}t.selectedIndex_=n,t.trigger({selectedIndex:n,type:"change"})};el.canPlaySource=function(){return Ia.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var rl=function(t){if("dash"===t.options_.sourceType){var e=Ia.players[t.tech_.options_.playerId];if(e.eme){var i=function(t,e,i){if(!t)return t;var n={};for(var r in t)n[r]={audioContentType:'audio/mp4; codecs="'+i.attributes.CODECS+'"',videoContentType:'video/mp4; codecs="'+e.attributes.CODECS+'"'},e.contentProtection&amp;&amp;e.contentProtection[r]&amp;&amp;e.contentProtection[r].pssh&amp;&amp;(n[r].pssh=e.contentProtection[r].pssh),"string"==typeof t[r]&amp;&amp;(n[r].url=t[r]);return Ia.mergeOptions(t,n)}(t.source_.keySystems,t.playlists.media(),t.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader.media());i&amp;&amp;(e.currentSource().keySystems=i)}}};el.supportsNativeHls=function(){var t=s.a.createElement("video");if(!Ia.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(t.canPlayType(e))})}(),el.supportsNativeDash=!!Ia.getTech("Html5").isSupported()&amp;&amp;/maybe|probably/i.test(s.a.createElement("video").canPlayType("application/dash+xml")),el.supportsTypeNatively=function(t){return"hls"===t?el.supportsNativeHls:"dash"===t&amp;&amp;el.supportsNativeDash},el.isSupported=function(){return Ia.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var al=Ia.getComponent("Component"),sl=function(t){function e(t,i,n){ja(this,e);var r=Ba(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i,n.hls));if(i.options_&amp;&amp;i.options_.playerId){var a=Ia(i.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return Ia.log.warn("player.hls is deprecated. Use player.tech().hls instead."),i.trigger({type:"usage",name:"hls-player-access"}),r}}),a.vhs=r,a.dash=r}if(r.tech_=i,r.source_=t,r.stats={},r.setOptions_(),r.options_.overrideNative&amp;&amp;i.overrideNativeAudioTracks&amp;&amp;i.overrideNativeVideoTracks)i.overrideNativeAudioTracks(!0),i.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&amp;&amp;(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(s.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){var e=s.a.fullscreenElement||s.a.webkitFullscreenElement||s.a.mozFullScreenElement||s.a.msFullscreenElement;e&amp;&amp;e.contains(r.tech_.el())&amp;&amp;r.masterPlaylistController_.smoothQualityChange_()}),r.on(r.tech_,"error",function(){this.masterPlaylistController_&amp;&amp;this.masterPlaylistController_.pauseLoading()}),r.on(r.tech_,"play",r.play),r}return Na(e,al),Ua(e,[{key:"setOptions_",value:function(){var t=this;this.options_.withCredentials=this.options_.withCredentials||!1,"number"!=typeof this.options_.blacklistDuration&amp;&amp;(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&amp;&amp;(this.options_.bandwidth=4194304),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&amp;&amp;4194304===this.options_.bandwidth,["withCredentials","bandwidth"].forEach(function(e){void 0!==t.source_[e]&amp;&amp;(t.options_[e]=t.source_[e])}),this.bandwidth=this.options_.bandwidth}},{key:"src",value:function(t,e){var i=this;t&amp;&amp;(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=el,this.options_.sourceType=il(e),this.options_.seekTo=function(t){i.tech_.setCurrentTime(t),i.setCurrentTime(t)},this.masterPlaylistController_=new Ko(this.options_),this.playbackWatcher_=new Zo(Ia.mergeOptions(this.options_,{seekable:function(){return i.seekable()}})),this.masterPlaylistController_.on("error",function(){Ia.players[i.tech_.options_.playerId].error(i.masterPlaylistController_.error)}),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):el.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=el.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t=1/(this.bandwidth||1),e=void 0;return e=this.throughput&gt;0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){Ia.log.error('The "systemBandwidth" property is read-only')}}}),Object.defineProperties(this.stats,{bandwidth:{get:function(){return i.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return i.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return i.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return i.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return i.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return i.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return i.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return i.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function(){return Es(i.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return i.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return i.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return i.tech_.name_},enumerable:!0},duration:{get:function(){return i.tech_.duration()},enumerable:!0},master:{get:function(){return i.playlists.master},enumerable:!0},playerDimensions:{get:function(){return i.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Es(i.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return i.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t,e;e=(t=i).playlists,t.representations=function(){return e.master.playlists.filter(function(t){return!os(t)}).map(function(e,i){return new $o(t,e,e.uri)})},rl(i)}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.tech_.ready(function(){return i.setupQualityLevels_()}),this.tech_.el()&amp;&amp;this.tech_.src(Ia.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var t=this,e=Ia.players[this.tech_.options_.playerId];e&amp;&amp;e.qualityLevels&amp;&amp;(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e,i;e=t.qualityLevels_,(i=t).representations().forEach(function(t){e.addQualityLevel(t)}),nl(e,i.playlists)}),this.playlists.on("mediachange",function(){nl(t.qualityLevels_,t.playlists)}))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(t){this.masterPlaylistController_.setCurrentTime(t)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&amp;&amp;this.playbackWatcher_.dispose(),this.masterPlaylistController_&amp;&amp;this.masterPlaylistController_.dispose(),this.qualityLevels_&amp;&amp;this.qualityLevels_.dispose(),function t(e,i,n){null===e&amp;&amp;(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var a=Object.getPrototypeOf(e);return null===a?void 0:t(a,i,n)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"dispose",this).call(this)}}]),e}(),ol={name:"videojs-http-streaming",VERSION:"1.2.4",canHandleSource:function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=Ia.mergeOptions(Ia.options,e);return ol.canPlayType(t.type,i)},handleSource:function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{},n=Ia.mergeOptions(Ia.options,i);return e.hls=new sl(t,e,n),e.hls.xhr=fs(),e.hls.src(t.src,t.type),e.hls},canPlayType:function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=Ia.mergeOptions(Ia.options,e).hls.overrideNative,n=il(t);return n&amp;&amp;(!el.supportsTypeNatively(n)||i)?"maybe":""}};void 0!==Ia.MediaSource&amp;&amp;void 0!==Ia.URL||(Ia.MediaSource=eo,Ia.URL=io),eo.supportsNativeMediaSources()&amp;&amp;Ia.getTech("Html5").registerSourceHandler(ol,0),Ia.HlsHandler=sl,Ia.HlsSourceHandler=ol,Ia.Hls=el,Ia.use||Ia.registerComponent("Hls",el),Ia.options.hls=Ia.options.hls||{},Ia.registerPlugin?Ia.registerPlugin("reloadSourceOnError",tl):Ia.plugin("reloadSourceOnError",tl);var ll=Ia,ul=i("TQvf"),cl=i.n(ul),hl=(i("Jg0P"),i("9Pzn"));$(document).ready(function(){!function(){var t=$("#playerAdvLayer");if(!t.length)return;var e=15,i=void 0;t.find(".skip-btn").on("click",function(e){e.stopPropagation(),i&amp;&amp;clearTimeout(i),t.hide()}),function n(){t.find(".skip-time span").text(e),e-- &gt;0?i=setTimeout(n,1e3):t.hide()}()}(),function(){var t=$("#video-play"),e=t.attr("data-src");if(!e.length)return;var i={controls:!0,preload:"auto",poster:t.attr("data-poster")};ll("video-play",i).src({src:e,type:t.attr("data-type")})}(),$("#videoShowPage").on("click",".likeBtn",function(t){var e=$(t.currentTarget);!function(t){if(!t.find("i").hasClass("active")){var e=t.attr("data-id");hl.default.requestGet("/apiLike/"+e,function(e){var i=t.find("i"),n=t.find("span"),r=$("#videoShowPage .dislikeBtn"),a=r.find("i");r.find("span"),a.removeClass("active"),i.addClass("active"),n.text(parseInt(n.text())+1)})}}(e)}).on("click",".dislikeBtn",function(t){var e=$(t.currentTarget);!function(t){if(!t.find("i").hasClass("active")){var e=t.attr("data-id");hl.default.requestGet("/apiDislike/"+e,function(e){var i=t.find("i"),n=t.find("span"),r=$("#videoShowPage .likeBtn"),a=r.find("i");r.find("span"),a.removeClass("active"),i.addClass("active"),n.text(parseInt(n.text())+1)})}}(e)}).on("click",".favoriteBtn",function(t){var e=$(t.currentTarget);e.is("[needAuth]")&amp;&amp;(hl.default.showModal("login-modal"),1)||(e.find("i").hasClass("active")?function(t){var e=t.attr("data-id");hl.default.requestGet("/apiUnFavorite/"+e,function(e){t.find("i").removeClass("active");var i=t.find("span");i.text(Math.max(0,parseInt(i.text())-1))})}(e):function(t){var e=t.attr("data-id");hl.default.requestGet("/apiFavorite/"+e,function(e){t.find("i").addClass("active");var i=t.find("span");i.text(parseInt(i.text())+1)})}(e))}).on("click",".downloadBtn",function(t){console.log("downloadBtn clicked");var e,i=$(t.currentTarget);e=i.attr("data-id"),hl.default.requestGet("/apiDownloadUrl/"+e,function(t){var e=t;window.open(e)})}),new cl.a(".clipboard-btn")})},N7o1:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e&lt;arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&amp;&amp;(t[n]=i[n])}return t},r=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),a=l(i("96je")),s=l(i("Wxwe")),o=l(i("cAwu"));function l(t){return t&amp;&amp;t.__esModule?t:{default:t}}var u=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&amp;&amp;"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));t.lineStream=new s.default,t.parseStream=new o.default,t.lineStream.pipe(t.parseStream);var i=t,r=[],a={},l=void 0,u=void 0,c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},h=0;return t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},t.parseStream.on("data",function(t){var e=void 0,s=void 0;({tag:function(){(({"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&amp;&amp;(a.byterange=e,e.length=t.length,"offset"in t||(this.trigger("info",{message:"defaulting offset to zero"}),t.offset=0)),"offset"in t&amp;&amp;(a.byterange=e,e.offset=t.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),t.duration&gt;0&amp;&amp;(a.duration=t.duration),0===t.duration&amp;&amp;(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=r},key:function(){t.attributes?"NONE"!==t.attributes.METHOD?t.attributes.URI?(t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),u={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&amp;&amp;(u.iv=t.attributes.IV)):this.trigger("warn",{message:"ignoring key declaration without URI"}):u=null:this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,h=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){l={},t.uri&amp;&amp;(l.uri=t.uri),t.byterange&amp;&amp;(l.byterange=t.byterange)},"stream-inf":function(){this.manifest.playlists=r,this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes?(a.attributes||(a.attributes={}),n(a.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes&amp;&amp;t.attributes.TYPE&amp;&amp;t.attributes["GROUP-ID"]&amp;&amp;t.attributes.NAME){var i=this.manifest.mediaGroups[t.attributes.TYPE];i[t.attributes["GROUP-ID"]]=i[t.attributes["GROUP-ID"]]||{},e=i[t.attributes["GROUP-ID"]],(s={default:/yes/i.test(t.attributes.DEFAULT)}).default?s.autoselect=!0:s.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&amp;&amp;(s.language=t.attributes.LANGUAGE),t.attributes.URI&amp;&amp;(s.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&amp;&amp;(s.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&amp;&amp;(s.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&amp;&amp;(s.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=s}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){h+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(r.length)},"program-date-time":function(){this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration&lt;0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):this.manifest.targetDuration=t.duration},totalduration:function(){!isFinite(t.duration)||t.duration&lt;0?this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration}):this.manifest.totalDuration=t.duration},"cue-out":function(){a.cueOut=t.data},"cue-out-cont":function(){a.cueOutCont=t.data},"cue-in":function(){a.cueIn=t.data}})[t.tagType]||function(){}).call(i)},uri:function(){a.uri=t.uri,r.push(a),!this.manifest.targetDuration||"duration"in a||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),u&amp;&amp;(a.key=u),a.timeline=h,l&amp;&amp;(a.map=l),a={}},comment:function(){}})[t.type].call(i)}),t}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a["default"]),r(e,[{key:"push",value:function(t){this.lineStream.push(t)}},{key:"end",value:function(){this.lineStream.push("\n")}}]),e}();e.default=u},NBAn:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},t.exports=e.default},Nfci:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(n=(s=o.next()).done)&amp;&amp;(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,a=t}finally{try{!n&amp;&amp;o.return&amp;&amp;o.return()}finally{if(r)throw a}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();var r,a=i("01cO"),s=(r=a)&amp;&amp;r.__esModule?r:{default:r},o=function(t,e){var i=[],n=void 0;if(t&amp;&amp;t.length)for(n=0;n&lt;t.length;n++)e(t.start(n),t.end(n))&amp;&amp;i.push([t.start(n),t.end(n)]);return s.default.createTimeRanges(i)},l=function(t,e){var i=null,n=null,r=0,a=[],o=[];if(!(t&amp;&amp;t.length&amp;&amp;e&amp;&amp;e.length))return s.default.createTimeRange();for(var l=t.length;l--;)a.push({time:t.start(l),type:"start"}),a.push({time:t.end(l),type:"end"});for(l=e.length;l--;)a.push({time:e.start(l),type:"start"}),a.push({time:e.end(l),type:"end"});for(a.sort(function(t,e){return t.time-e.time}),l=0;l&lt;a.length;l++)"start"===a[l].type?2===++r&amp;&amp;(i=a[l].time):"end"===a[l].type&amp;&amp;1===--r&amp;&amp;(n=a[l].time),null!==i&amp;&amp;null!==n&amp;&amp;(o.push([i,n]),i=null,n=null);return s.default.createTimeRanges(o)};e.default={findRange:function(t,e){return o(t,function(t,i){return t-1/30&lt;=e&amp;&amp;i+1/30&gt;=e})},findNextRange:function(t,e){return o(t,function(t){return t-1/30&gt;=e})},findGaps:function(t){if(t.length&lt;2)return s.default.createTimeRanges();for(var e=[],i=1;i&lt;t.length;i++){var n=t.end(i-1),r=t.start(i);e.push([n,r])}return s.default.createTimeRanges(e)},findSoleUncommonTimeRangesEnd:function(t,e){var i=void 0,n=void 0,r=void 0,a=[],s=[],o=function(t){return t[0]&lt;=r&amp;&amp;t[1]&gt;=r};if(t)for(i=0;i&lt;t.length;i++)n=t.start(i),r=t.end(i),s.push([n,r]);if(e)for(i=0;i&lt;e.length;i++)n=e.start(i),r=e.end(i),s.some(o)||a.push(r);return 1!==a.length?null:a[0]},getSegmentBufferedPercent:function(t,e,i,r){var a,o,u,c,h,d=t+e,p=s.default.createTimeRanges([[t,d]]),f=s.default.createTimeRanges([[(a=t,o=[i,d],u=n(o,2),c=u[0],h=u[1],Math.min(Math.max(c,a),h)),d]]);if(f.start(0)===f.end(0))return 0;var g=function(t,e,i,n){for(var r=e.end(0)-e.start(0),a=r-(t.end(0)-t.start(0)),s=l(t,n),o=l(e,n),u=0,c=0,h=s.length;h--;)u+=s.end(h)-s.start(h),s.start(h)===i&amp;&amp;(u+=a);for(h=o.length;h--;)c+=o.end(h)-o.start(h);return Math.max(u,c)/r*100}(f,p,i,r);return isNaN(g)||g===1/0||g===-1/0?0:g},TIME_FUDGE_FACTOR:1/30,SAFE_TIME_DELTA:.1,printableRange:function(t){var e=[];if(!t||!t.length)return"";for(var i=0;i&lt;t.length;i++)e.push(t.start(i)+" =&gt; "+t.end(i));return e.join(", ")},timeUntilRebuffer:function(t,e){var i=arguments.length&lt;=2||void 0===arguments[2]?1:arguments[2];return((t.length?t.end(t.length-1):0)-e)/i}},t.exports=e.default},"Os+o":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();function r(t){return t&amp;&amp;t.__esModule?t:{default:t}}var a=r(i("awF4")),s=r(i("P8Of")),o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e||{},this.init()}return n(t,[{key:"init",value:function(){var t;this.transmuxer&amp;&amp;this.transmuxer.dispose(),this.transmuxer=new s.default.Transmuxer(this.options),(t=this.transmuxer).on("data",function(t){var e=t.initSegment;t.initSegment={data:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength};var i=t.data;t.data=i.buffer,a.default.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])}),t.captionStream&amp;&amp;t.captionStream.on("data",function(t){a.default.postMessage({action:"caption",data:t})}),t.on("done",function(t){a.default.postMessage({action:"done"})}),t.on("gopInfo",function(t){a.default.postMessage({action:"gopInfo",gopInfo:t})})}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*e))}},{key:"setAudioAppendStart",value:function(t){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*t.appendStart))}},{key:"flush",value:function(t){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())}}]),t}();e.default=function(t){return new function(t){t.onmessage=function(t){"init"===t.data.action&amp;&amp;t.data.options?this.messageHandlers=new o(t.data.options):(this.messageHandlers||(this.messageHandlers=new o),t.data&amp;&amp;t.data.action&amp;&amp;"init"!==t.data.action&amp;&amp;this.messageHandlers[t.data.action]&amp;&amp;this.messageHandlers[t.data.action](t.data))}}(t)},t.exports=e.default},P8Of:function(t,e,i){t.exports={generator:i("KlPZ"),Transmuxer:i("q4KR").Transmuxer,AudioSegmentStream:i("q4KR").AudioSegmentStream,VideoSegmentStream:i("q4KR").VideoSegmentStream}},Pyiu:function(t,e,i){"use strict";var n=i("vRXZ"),r=Object.prototype.toString,a=Object.prototype.hasOwnProperty;t.exports=function(t,e,i){if(!n(e))throw new TypeError("iterator must be a function");var s;arguments.length&gt;=3&amp;&amp;(s=i),"[object Array]"===r.call(t)?function(t,e,i){for(var n=0,r=t.length;n&lt;r;n++)a.call(t,n)&amp;&amp;(null==i?e(t[n],n,t):e.call(i,t[n],n,t))}(t,e,s):"string"==typeof t?function(t,e,i){for(var n=0,r=t.length;n&lt;r;n++)null==i?e(t.charAt(n),n,t):e.call(i,t.charAt(n),n,t)}(t,e,s):function(t,e,i){for(var n in t)a.call(t,n)&amp;&amp;(null==i?e(t[n],n,t):e.call(i,t[n],n,t))}(t,e,s)}},QYuf:function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}},Rl2i:function(t,e){t.exports=function(t){var e=i.call(t);return"[object Function]"===e||"function"==typeof t&amp;&amp;"[object RegExp]"!==e||"undefined"!=typeof window&amp;&amp;(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var i=Object.prototype.toString},"Ro/b":function(t,e,i){"use strict";var n=s(i("Wxwe")),r=s(i("cAwu")),a=s(i("N7o1"));function s(t){return t&amp;&amp;t.__esModule?t:{default:t}}t.exports={LineStream:n.default,ParseStream:r.default,Parser:a.default}},SP9D:function(t,e,i){"use strict";t.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},SxNE:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};var a,s=i("0rM/"),o=(a=s)&amp;&amp;a.__esModule?a:{default:a},l=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,o.default),this.jobs=[],this.delay=1,this.timeout_=null}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o["default"]),n(e,[{key:"processJob_",value:function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}},{key:"push",value:function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}]),e}();e.default=l,t.exports=e.default},TQvf:function(t,e,i){var n;n=function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&amp;&amp;t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=3)}([function(t,e,i){var n,r,a,s;s=function(t,e){"use strict";var i,n=(i=e)&amp;&amp;i.__esModule?i:{default:i};var r="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t};var a=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&amp;&amp;this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&amp;&amp;(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&amp;&amp;(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&amp;&amp;this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&amp;&amp;"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&amp;&amp;t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&amp;&amp;(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s},r=[t,i(7)],void 0===(a="function"==typeof(n=s)?n.apply(e,r):n)||(t.exports=a)},function(t,e,i){var n=i(6),r=i(5);t.exports=function(t,e,i){if(!t&amp;&amp;!e&amp;&amp;!i)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(i))throw new TypeError("Third argument must be a Function");if(n.node(t))return function(t,e,i){return t.addEventListener(e,i),{destroy:function(){t.removeEventListener(e,i)}}}(t,e,i);if(n.nodeList(t))return function(t,e,i){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,i)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,i)})}}}(t,e,i);if(n.string(t))return function(t,e,i){return r(document.body,t,e,i)}(t,e,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){function i(){}i.prototype={on:function(t,e,i){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var n=this;function r(){n.off(t,r),e.apply(i,arguments)}return r._=e,this.on(t,r,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),n=0,r=i.length;n&lt;r;n++)i[n].fn.apply(i[n].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),n=i[t],r=[];if(n&amp;&amp;e)for(var a=0,s=n.length;a&lt;s;a++)n[a].fn!==e&amp;&amp;n[a].fn._!==e&amp;&amp;r.push(n[a]);return r.length?i[t]=r:delete i[t],this}},t.exports=i},function(t,e,i){var n,r,a,s;s=function(t,e,i,n){"use strict";var r=o(e),a=o(i),s=o(n);function o(t){return t&amp;&amp;t.__esModule?t:{default:t}}var l="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t};var u=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();var c=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&amp;&amp;"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.resolveOptions(i),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.default),u(e,[{key:"resolveOptions",value:function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===l(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,s.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&amp;&amp;(this.clipboardAction=null),this.clipboardAction=new r.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return h("action",t)}},{key:"defaultTarget",value:function(t){var e=h("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return h("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&amp;&amp;(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,i=!!document.queryCommandSupported;return e.forEach(function(t){i=i&amp;&amp;!!document.queryCommandSupported(t)}),i}}]),e}();function h(t,e){var i="data-clipboard-"+t;if(e.hasAttribute(i))return e.getAttribute(i)}t.exports=c},r=[t,i(0),i(2),i(1)],void 0===(a="function"==typeof(n=s)?n.apply(e,r):n)||(t.exports=a)},function(t,e){var i=9;if("undefined"!=typeof Element&amp;&amp;!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&amp;&amp;t.nodeType!==i;){if("function"==typeof t.matches&amp;&amp;t.matches(e))return t;t=t.parentNode}}},function(t,e,i){var n=i(4);function r(t,e,i,r,a){var s=function(t,e,i,r){return function(i){i.delegateTarget=n(i.target,e),i.delegateTarget&amp;&amp;r.call(t,i)}}.apply(this,arguments);return t.addEventListener(i,s,a),{destroy:function(){t.removeEventListener(i,s,a)}}}t.exports=function(t,e,i,n,a){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof i?r.bind(null,document).apply(null,arguments):("string"==typeof t&amp;&amp;(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return r(t,e,i,n,a)}))}},function(t,e){e.node=function(t){return void 0!==t&amp;&amp;t instanceof HTMLElement&amp;&amp;1===t.nodeType},e.nodeList=function(t){var i=Object.prototype.toString.call(t);return void 0!==t&amp;&amp;("[object NodeList]"===i||"[object HTMLCollection]"===i)&amp;&amp;"length"in t&amp;&amp;(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var i=t.hasAttribute("readonly");i||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),i||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&amp;&amp;t.focus();var n=window.getSelection(),r=document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r),e=n.toString()}return e}}])},t.exports=n()},UAXZ:function(t,e,i){"use strict";var n=i("B7FF"),r=function(t,e){var i=1;for(t&gt;e&amp;&amp;(i=-1);Math.abs(e-t)&gt;4294967296;)t+=8589934592*i;return t},a=function(t){var e,i;a.prototype.init.call(this),this.type_=t,this.push=function(t){t.type===this.type_&amp;&amp;(void 0===i&amp;&amp;(i=t.dts),t.dts=r(t.dts,i),t.pts=r(t.pts,i),e=t.dts,this.trigger("data",t))},this.flush=function(){i=e,this.trigger("done")},this.discontinuity=function(){i=void 0,e=void 0}};a.prototype=new n,t.exports={TimestampRolloverStream:a,handleRollover:r}},Ucbi:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("awF4")),o=a(i("f8ML")),l=a(i("3XM3")),u=a(i("idpB")),c=a(i("ndah")),h=i("9jeX"),d=a(i("s24F")),p=a(i("7zZi")),f=a(i("KBX6")),g=function(){var t=void 0;try{t="s24F"}catch(t){}return t},m=function(t){s.default.setTimeout(t,f.default.TIME_BETWEEN_CHUNKS)},y=function(){return Math.random().toString(36).slice(2,8)},v=function(t,e){("number"!=typeof e||e&lt;0)&amp;&amp;(e=0);var i=Math.pow(10,e);return Math.round(t*i)/i},_=function(t){function e(t){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);var n;this.chunkSize_=f.default.BYTES_PER_CHUNK,this.buffer_=[],this.bufferSize_=0,this.basePtsOffset_=NaN,this.mediaSource_=t,this.audioBufferEnd_=NaN,this.videoBufferEnd_=NaN,this.updating=!1,this.timestampOffset_=0,n=s.default.btoa(String.fromCharCode.apply(null,Array.prototype.slice.call(l.default.getFlvHeader())));var a=this.mediaSource_.player_.id().replace(/[^a-zA-Z0-9]/g,"_");this.flashEncodedHeaderName_="vjs_flashEncodedHeader_"+a+y(),this.flashEncodedDataName_="vjs_flashEncodedData_"+a+y(),s.default[this.flashEncodedHeaderName_]=function(){return delete s.default[i.flashEncodedHeaderName_],n},this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedHeaderName_),this.transmuxer_=(0,p.default)(d.default,g()),this.transmuxer_.postMessage({action:"init",options:{}}),this.transmuxer_.onmessage=function(t){"data"===t.data.action&amp;&amp;i.receiveBuffer_(t.data.segment)},this.one("updateend",function(){i.mediaSource_.tech_.trigger("loadedmetadata")}),Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"==typeof t&amp;&amp;t&gt;=0&amp;&amp;(this.timestampOffset_=t,this.mediaSource_.swfObj.vjs_discontinuity(),this.basePtsOffset_=NaN,this.audioBufferEnd_=NaN,this.videoBufferEnd_=NaN,this.transmuxer_.postMessage({action:"reset"}))}}),Object.defineProperty(this,"buffered",{get:function(){if(!(this.mediaSource_&amp;&amp;this.mediaSource_.swfObj&amp;&amp;"vjs_getProperty"in this.mediaSource_.swfObj))return o.default.createTimeRange();var t=this.mediaSource_.swfObj.vjs_getProperty("buffered");return t&amp;&amp;t.length&amp;&amp;(t[0][0]=v(t[0][0],3),t[0][1]=v(t[0][1],3)),o.default.createTimeRanges(t)}}),this.mediaSource_.player_.on("seeked",function(){if((0,u.default)(0,1/0,i.metadataTrack_),i.inbandTextTracks_)for(var t in i.inbandTextTracks_)(0,u.default)(0,1/0,i.inbandTextTracks_[t])});var c=this.onHlsReset_.bind(this);this.mediaSource_.player_.tech_.on("hls-reset",c),this.mediaSource_.player_.tech_.hls.on("dispose",function(){i.transmuxer_.terminate(),i.mediaSource_.player_.tech_.off("hls-reset",c)})}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o["default"].EventTarget),n(e,[{key:"appendBuffer",value:function(t){var e=void 0;if(this.updating)throw(e=new Error("SourceBuffer.append() cannot be called while an update is in progress")).name="InvalidStateError",e.code=11,e;this.updating=!0,this.mediaSource_.readyState="open",this.trigger({type:"update"}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"abort",value:function(){this.buffer_=[],this.bufferSize_=0,this.mediaSource_.swfObj.vjs_abort(),this.updating&amp;&amp;(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"remove",value:function(t,e){if((0,u.default)(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var i in this.inbandTextTracks_)(0,u.default)(t,e,this.inbandTextTracks_[i]);this.trigger({type:"update"}),this.trigger({type:"updateend"})}},{key:"receiveBuffer_",value:function(t){var e=this;(0,c.default)(this,this.mediaSource_,t),(0,h.addTextTrackData)(this,t.captions,t.metadata),m(function(){var i=e.convertTagsToData_(t);0===e.buffer_.length&amp;&amp;m(e.processBuffer_.bind(e)),i&amp;&amp;(e.buffer_.push(i),e.bufferSize_+=i.byteLength)})}},{key:"processBuffer_",value:function(){var t=this,e=f.default.BYTES_PER_CHUNK;if(this.buffer_.length){var i=this.buffer_[0].subarray(0,e);i.byteLength&lt;e||this.buffer_[0].byteLength===e?this.buffer_.shift():this.buffer_[0]=this.buffer_[0].subarray(e),this.bufferSize_-=i.byteLength;for(var n=[],r=i.byteLength,a=0;a&lt;r;a++)n.push(String.fromCharCode(i[a]));var o=s.default.btoa(n.join(""));s.default[this.flashEncodedDataName_]=function(){return m(t.processBuffer_.bind(t)),delete s.default[t.flashEncodedDataName_],o},this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedDataName_)}else!1!==this.updating&amp;&amp;(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"convertTagsToData_",value:function(t){var e=0,i=this.mediaSource_.tech_,n=0,r=void 0,a=t.tags.videoTags,s=t.tags.audioTags;if(isNaN(this.basePtsOffset_)&amp;&amp;(a.length||s.length)){var o=a[0]||{pts:1/0},l=s[0]||{pts:1/0};this.basePtsOffset_=Math.min(l.pts,o.pts)}i.seeking()&amp;&amp;(this.videoBufferEnd_=NaN,this.audioBufferEnd_=NaN),isNaN(this.videoBufferEnd_)?(i.buffered().length&amp;&amp;(n=i.buffered().end(0)-this.timestampOffset),i.seeking()&amp;&amp;(n=Math.max(n,i.currentTime()-this.timestampOffset)),n*=1e3,n+=this.basePtsOffset_):n=this.videoBufferEnd_+.1;var u=a.length;if(u&amp;&amp;a[u-1].pts&gt;=n){for(;--u;){var c=a[u];if(!(c.pts&gt;n)&amp;&amp;(c.keyFrame||c.metaDataTag))break}for(;u;){if(!a[u-1].metaDataTag)break;u--}}var h=a.slice(u),d=void 0;for(d=isNaN(this.audioBufferEnd_)?n:this.audioBufferEnd_+.1,h.length&amp;&amp;(d=Math.min(d,h[0].pts)),u=0;u&lt;s.length&amp;&amp;!(s[u].pts&gt;=d);)u++;var p=s.slice(u);p.length&amp;&amp;(this.audioBufferEnd_=p[p.length-1].pts),h.length&amp;&amp;(this.videoBufferEnd_=h[h.length-1].pts);var f=this.getOrderedTags_(h,p);if(0!==f.length){if(f[0].pts&lt;n&amp;&amp;i.seeking()){var g=i.currentTime()-(n-f[0].pts)/1e3;g&lt;1/30&amp;&amp;(g=0);try{this.mediaSource_.swfObj.vjs_adjustCurrentTime(g)}catch(t){}}for(var m=0;m&lt;f.length;m++)e+=f[m].bytes.byteLength;r=new Uint8Array(e);m=0;for(var y=0;m&lt;f.length;m++)r.set(f[m].bytes,y),y+=f[m].bytes.byteLength;return r}}},{key:"getOrderedTags_",value:function(t,e){for(var i=void 0,n=[];t.length||e.length;)i=t.length?e.length&amp;&amp;e[0].dts&lt;t[0].dts?e.shift():t.shift():e.shift(),n.push(i);return n}},{key:"onHlsReset_",value:function(){this.transmuxer_.postMessage({action:"resetCaptions"})}}]),e}();e.default=_,t.exports=e.default},UrON:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("/N3L")),o=a(i("01cO")),l=a(i("rCJg")),u=a(i("NBAn")),c=a(i("awF4")),h=a(i("idpB")),d=i("iMiW"),p=i("5elE"),f=i("Nfci"),g=i("rlYp"),m=function(t,e,i){if(!t||!e)return!1;var n=i===t.segments.length;return t.endList&amp;&amp;"open"===e.readyState&amp;&amp;n},y=function(t){return"number"==typeof t&amp;&amp;isFinite(t)},v=function(t,e,i){return"main"===t&amp;&amp;e&amp;&amp;i?i.containsAudio||i.containsVideo?e.containsVideo&amp;&amp;!i.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.containsVideo&amp;&amp;i.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null};e.illegalMediaSwitch=v;var _=function(t,e,i){var n=void 0;return n=t.length&amp;&amp;t.start(0)&gt;0&amp;&amp;t.start(0)&lt;e?t.start(0):e-30,Math.min(n,e-i)};e.safeBackBufferTrimTime=_;var b=function(t){function e(t){var i=this,n=arguments.length&lt;=1||void 0===arguments[1]?{}:arguments[1];if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");this.state="INIT",this.bandwidth=t.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.hasPlayed_=t.hasPlayed,this.currentTime_=t.currentTime,this.seekable_=t.seekable,this.seeking_=t.seeking,this.duration_=t.duration,this.mediaSource_=t.mediaSource,this.hls_=t.hls,this.loaderType_=t.loaderType,this.startingMedia_=void 0,this.segmentMetadataTrack_=t.segmentMetadataTrack,this.goalBufferLength_=t.goalBufferLength,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.pendingSegment_=null,this.mimeType_=null,this.sourceUpdater_=null,this.xhrOptions_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.decrypter_=t.decrypter,this.syncController_=t.syncController,this.syncPoint_={segmentIndex:0,time:0},this.syncController_.on("syncinfoupdate",function(){return i.trigger("syncinfoupdate")}),this.mediaSource_.addEventListener("sourceopen",function(){return i.ended_=!1}),this.fetchAtBuffer_=!1,n.debug&amp;&amp;(this.logger_=o.default.log.bind(o.default,"segment-loader",this.loaderType_,"-&gt;"))}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o["default"].EventTarget),n(e,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&amp;&amp;this.sourceUpdater_.dispose(),this.resetStats_()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&amp;&amp;(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&amp;&amp;this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(t){return void 0!==t&amp;&amp;(this.error_=t),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():o.default.createTimeRanges()}},{key:"initSegment",value:function(t){var e=!(arguments.length&lt;=1||void 0===arguments[1])&amp;&amp;arguments[1];if(!t)return null;var i=(0,d.initSegmentId)(t),n=this.initSegments_[i];return e&amp;&amp;!n&amp;&amp;t.bytes&amp;&amp;(this.initSegments_[i]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes}),n||t}},{key:"couldBeginLoading_",value:function(){return this.playlist_&amp;&amp;(this.sourceUpdater_||this.mimeType_&amp;&amp;"INIT"===this.state)&amp;&amp;!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&amp;&amp;this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&amp;&amp;"INIT"!==this.state||(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new l.default(this.mediaSource_,this.mimeType_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(t){var e=arguments.length&lt;=1||void 0===arguments[1]?{}:arguments[1];if(t){var i=this.playlist_,n=this.pendingSegment_;if(this.playlist_=t,this.xhrOptions_=e,this.hasPlayed_()||(t.syncInfo={mediaSequence:t.mediaSequence,time:0}),this.trigger("syncinfoupdate"),"INIT"===this.state&amp;&amp;this.couldBeginLoading_())return this.init_();if(i&amp;&amp;i.uri===t.uri){var r=t.mediaSequence-i.mediaSequence;this.logger_("mediaSequenceDiff",r),null!==this.mediaIndex&amp;&amp;(this.mediaIndex-=r),n&amp;&amp;(n.mediaIndex-=r,n.mediaIndex&gt;=0&amp;&amp;(n.segment=t.segments[n.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(i,t)}else null!==this.mediaIndex&amp;&amp;this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&amp;&amp;(c.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(t){this.mimeType_||(this.mimeType_=t,"INIT"===this.state&amp;&amp;this.couldBeginLoading_()&amp;&amp;this.init_())}},{key:"resetEverything",value:function(){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_()),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(t,e){this.sourceUpdater_&amp;&amp;this.sourceUpdater_.remove(t,e),(0,h.default)(t,e,this.segmentMetadataTrack_)}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&amp;&amp;c.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=c.default.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&amp;&amp;this.fillBuffer_(),this.checkBufferTimeout_&amp;&amp;c.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=c.default.setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t)m(this.playlist_,this.mediaSource_,t.mediaIndex)?this.endOfStream():(t.mediaIndex!==this.playlist_.segments.length-1||"ended"!==this.mediaSource_.readyState||this.seeking_())&amp;&amp;((t.timeline!==this.currentTimeline_||null!==t.startOfSegment&amp;&amp;t.startOfSegment&lt;this.sourceUpdater_.timestampOffset())&amp;&amp;(this.syncController_.reset(),t.timestampOffset=t.startOfSegment),this.loadSegment_(t))}}},{key:"checkBuffer_",value:function(t,e,i,n,r,a){var o=0,l=void 0;t.length&amp;&amp;(o=t.end(t.length-1));var u,c=Math.max(0,o-r);if(!e.segments.length)return null;if(c&gt;=this.goalBufferLength_())return null;if(!n&amp;&amp;c&gt;=1)return null;if(this.logger_("checkBuffer_","mediaIndex:",i,"hasPlayed:",n,"currentTime:",r,"syncPoint:",a,"fetchAtBuffer:",this.fetchAtBuffer_,"bufferedTime:",c),null===a)return i=this.getSyncSegmentCandidate_(e),this.logger_("getSync","mediaIndex:",i),this.generateSegmentInfo_(e,i,null,!0);if(null!==i){this.logger_("walkForward","mediaIndex:",i+1);var h=e.segments[i];return l=h&amp;&amp;h.end?h.end:o,this.generateSegmentInfo_(e,i+1,l,!1)}this.fetchAtBuffer_?(i=(u=s.default.getMediaInfoForTime(e,o,a.segmentIndex,a.time)).mediaIndex,l=u.startTime):(i=(u=s.default.getMediaInfoForTime(e,r,a.segmentIndex,a.time)).mediaIndex,l=u.startTime);return this.logger_("getMediaIndexForTime","mediaIndex:",i,"startOfSegment:",l),this.generateSegmentInfo_(e,i,l,!1)}},{key:"getSyncSegmentCandidate_",value:function(t){var e=this;if(-1===this.currentTimeline_)return 0;var i=t.segments.map(function(t,e){return{timeline:t.timeline,segmentIndex:e}}).filter(function(t){return t.timeline===e.currentTimeline_});return i.length?i[Math.min(i.length-1,1)].segmentIndex:Math.max(t.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(t,e,i,n){if(e&lt;0||e&gt;=t.segments.length)return null;var r=t.segments[e];return{requestId:"segment-loader-"+Math.random(),uri:r.resolvedUri,mediaIndex:e,isSyncRequest:n,startOfSegment:i,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:r.timeline,duration:r.duration,segment:r}}},{key:"abortRequestEarly_",value:function(t){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(t.firstBytesReceivedAt||Date.now())&lt;1e3)return!1;var e=this.currentTime_(),i=t.bandwidth,n=this.pendingSegment_.duration,r=s.default.estimateSegmentRequestTime(n,i,this.playlist_,t.bytesReceived),a=(0,f.timeUntilRebuffer)(this.buffered_(),e,this.hls_.tech_.playbackRate())-1;if(r&lt;=a)return!1;var o=(0,g.minRebufferMaxBandwidthSelector)({master:this.hls_.playlists.master,currentTime:e,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var l=r-a-o.rebufferingImpact,c=.5;return a&lt;=f.TIME_FUDGE_FACTOR&amp;&amp;(c=1),!o.playlist||o.playlist.uri===this.playlist_.uri||l&lt;c?!1:(this.bandwidth=o.playlist.attributes.BANDWIDTH*u.default.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(t,e){this.pendingSegment_&amp;&amp;e.requestId===this.pendingSegment_.requestId&amp;&amp;!this.abortRequestEarly_(e.stats)&amp;&amp;this.trigger("progress")}},{key:"loadSegment_",value:function(t){this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),t.abortRequests=(0,p.mediaSegmentRequest)(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.createSimplifiedSegmentObj_(t),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(t){var e=_(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);e&gt;0&amp;&amp;this.remove(0,e)}},{key:"createSimplifiedSegmentObj_",value:function(t){var e=t.segment,i={resolvedUri:e.resolvedUri,byterange:e.byterange,requestId:t.requestId};if(e.key){var n=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);i.key={resolvedUri:e.key.resolvedUri,iv:n}}return e.map&amp;&amp;(i.map=this.initSegment(e.map)),i}},{key:"segmentRequestFinished_",value:function(t,e){if(this.mediaRequests+=1,e.stats&amp;&amp;(this.mediaBytesTransferred+=e.stats.bytesReceived,this.mediaTransferDuration+=e.stats.roundTripTime),this.pendingSegment_){if(e.requestId===this.pendingSegment_.requestId){if(t)return this.pendingSegment_=null,this.state="READY",t.code===p.REQUEST_ERRORS.ABORTED?void(this.mediaRequestsAborted+=1):(this.pause(),t.code===p.REQUEST_ERRORS.TIMEOUT?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error")));this.bandwidth=e.stats.bandwidth,this.roundTrip=e.stats.roundTripTime,e.map&amp;&amp;(e.map=this.initSegment(e.map,!0)),this.processSegmentResponse_(e)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(t){var e=this.pendingSegment_;e.bytes=t.bytes,t.map&amp;&amp;(e.segment.map.bytes=t.map.bytes),e.endOfAllRequests=t.endOfAllRequests,this.handleSegment_()}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_){var e=this.pendingSegment_,i=e.segment,n=this.syncController_.probeSegmentInfo(e);void 0===this.startingMedia_&amp;&amp;n&amp;&amp;(n.containsAudio||n.containsVideo)&amp;&amp;(this.startingMedia_={containsAudio:n.containsAudio,containsVideo:n.containsVideo});var r=v(this.loaderType_,this.startingMedia_,n);if(r)return this.error({message:r,blacklistDuration:1/0}),void this.trigger("error");if(e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");null!==e.timestampOffset&amp;&amp;e.timestampOffset!==this.sourceUpdater_.timestampOffset()&amp;&amp;(this.sourceUpdater_.timestampOffset(e.timestampOffset),this.trigger("timestampoffset"));var a=this.syncController_.mappingForTimeline(e.timeline);null!==a&amp;&amp;this.trigger({type:"segmenttimemapping",mapping:a}),this.state="APPENDING",i.map&amp;&amp;function(){var e=(0,d.initSegmentId)(i.map);if(!t.activeInitSegmentId_||t.activeInitSegmentId_!==e){var n=t.initSegment(i.map);t.sourceUpdater_.appendBuffer(n.bytes,function(){t.activeInitSegmentId_=e})}}(),e.byteLength=e.bytes.byteLength,"number"==typeof i.start&amp;&amp;"number"==typeof i.end?this.mediaSecondsLoaded+=i.end-i.start:this.mediaSecondsLoaded+=i.duration,this.sourceUpdater_.appendBuffer(e.bytes,this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleUpdateEnd_",value:function(){if(this.logger_("handleUpdateEnd_","segmentInfo:",this.pendingSegment_),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_,e=t.segment,i=null!==this.mediaIndex;(this.pendingSegment_=null,this.recordThroughput_(t),this.addSegmentMetadataCue_(t),this.state="READY",this.mediaIndex=t.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate"),e.end&amp;&amp;this.currentTime_()-e.end&gt;3*t.playlist.targetDuration)?this.resetEverything():(i&amp;&amp;this.trigger("bandwidthupdate"),this.trigger("progress"),m(t.playlist,this.mediaSource_,t.mediaIndex+1)&amp;&amp;this.endOfStream(),this.paused()||this.monitorBuffer_())}},{key:"recordThroughput_",value:function(t){var e=this.throughput.rate,i=Date.now()-t.endOfAllRequests+1,n=Math.floor(t.byteLength/i*8*1e3);this.throughput.rate+=(n-e)/++this.throughput.count}},{key:"logger_",value:function(){}},{key:"addSegmentMetadataCue_",value:function(t){if(this.segmentMetadataTrack_){var e=t.segment,i=e.start,n=e.end;if(y(i)&amp;&amp;y(n)){(0,h.default)(i,n,this.segmentMetadataTrack_);var r=c.default.WebKitDataCue||c.default.VTTCue,a={bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.uri,start:i,end:n},s=new r(i,n,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}}}]),e}();e.default=b},Wbje:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i("qbiT"),a=i("SxNE"),s=(n=a)&amp;&amp;n.__esModule?n:{default:n};e.default={decrypt:r.decrypt,Decrypter:r.Decrypter,AsyncStream:s.default},t.exports=e.default},Wxwe:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),a=i("96je"),s=(n=a)&amp;&amp;n.__esModule?n:{default:n};var o=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&amp;&amp;"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.buffer="",t}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s["default"]),r(e,[{key:"push",value:function(t){var e=void 0;for(this.buffer+=t,e=this.buffer.indexOf("\n");e&gt;-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)}}]),e}();e.default=o},X4yv:function(t,e,i){"use strict";var n,r=i("nIbA"),a=i("pl6C"),s=function(t,e,i){var n,r="";for(n=e;n&lt;i;n++)r+="%"+("00"+t[n].toString(16)).slice(-2);return r},o=function(t,e,i){return decodeURIComponent(s(t,e,i))},l=function(t){return t[0]&lt;&lt;21|t[1]&lt;&lt;14|t[2]&lt;&lt;7|t[3]},u={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e&lt;t.data.length;e++)if(0===t.data[e]){t.description=o(t.data,1,e),t.value=o(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e&lt;t.data.length;e++)if(0===t.data[e]){t.description=o(t.data,1,e),t.url=o(t.data,e+1,t.data.length);break}},PRIV:function(t){var e,i;for(e=0;e&lt;t.data.length;e++)if(0===t.data[e]){t.owner=(i=t.data,unescape(s(i,0,e)));break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};(n=function(t){var e,i={debug:!(!t||!t.debug),descriptor:t&amp;&amp;t.descriptor},r=0,s=[],o=0;if(n.prototype.init.call(this),this.dispatchType=a.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(e=0;e&lt;i.descriptor.length;e++)this.dispatchType+=("00"+i.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,n,a,c,h;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&amp;&amp;(o=0,s.length=0),0===s.length&amp;&amp;(t.data.length&lt;10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))i.debug&amp;&amp;console.log("Skipping unrecognized metadata packet");else if(s.push(t),o+=t.data.byteLength,1===s.length&amp;&amp;(r=l(t.data.subarray(6,10)),r+=10),!(o&lt;r)){for(e={data:new Uint8Array(r),frames:[],pts:s[0].pts,dts:s[0].dts},h=0;h&lt;r;)e.data.set(s[0].data.subarray(0,r-h),h),h+=s[0].data.byteLength,o-=s[0].data.byteLength,s.shift();n=10,64&amp;e.data[5]&amp;&amp;(n+=4,n+=l(e.data.subarray(10,14)),r-=l(e.data.subarray(16,20)));do{if((a=l(e.data.subarray(n+4,n+8)))&lt;1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((c={id:String.fromCharCode(e.data[n],e.data[n+1],e.data[n+2],e.data[n+3]),data:e.data.subarray(n+10,n+a+10)}).key=c.id,u[c.id]&amp;&amp;(u[c.id](c),"com.apple.streaming.transportStreamTimestamp"===c.owner)){var d=c.data,p=(1&amp;d[3])&lt;&lt;30|d[4]&lt;&lt;22|d[5]&lt;&lt;14|d[6]&lt;&lt;6|d[7]&gt;&gt;&gt;2;p*=4,p+=3&amp;d[7],c.timeStamp=p,void 0===e.pts&amp;&amp;void 0===e.dts&amp;&amp;(e.pts=c.timeStamp,e.dts=c.timeStamp),this.trigger("timestamp",c)}e.frames.push(c),n+=10,n+=a}while(n&lt;r);this.trigger("data",e)}}}).prototype=new r,t.exports=n},XHP2:function(t,e){t.exports={toUnsigned:function(t){return t&gt;&gt;&gt;0}}},XRGv:function(t,e,i){"use strict";var n=i("SP9D"),r=function(t){var e=31&amp;t[1];return e&lt;&lt;=8,e|=t[2]},a=function(t){return!!(64&amp;t[1])},s=function(t){var e=0;return(48&amp;t[3])&gt;&gt;&gt;4&gt;1&amp;&amp;(e+=t[4]+1),e},o=function(t){switch(t){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}};t.exports={parseType:function(t,e){var i=r(t);return 0===i?"pat":i===e?"pmt":e?"pes":null},parsePat:function(t){var e=a(t),i=4+s(t);return e&amp;&amp;(i+=t[i]+1),(31&amp;t[i+10])&lt;&lt;8|t[i+11]},parsePmt:function(t){var e={},i=a(t),n=4+s(t);if(i&amp;&amp;(n+=t[n]+1),1&amp;t[n+5]){var r;r=3+((15&amp;t[n+1])&lt;&lt;8|t[n+2])-4;for(var o=12+((15&amp;t[n+10])&lt;&lt;8|t[n+11]);o&lt;r;){var l=n+o;e[(31&amp;t[l+1])&lt;&lt;8|t[l+2]]=t[l],o+=5+((15&amp;t[l+3])&lt;&lt;8|t[l+4])}return e}},parsePayloadUnitStartIndicator:a,parsePesType:function(t,e){switch(e[r(t)]){case n.H264_STREAM_TYPE:return"video";case n.ADTS_STREAM_TYPE:return"audio";case n.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!a(t))return null;var e=4+s(t);if(e&gt;=t.byteLength)return null;var i,n=null;return 192&amp;(i=t[e+7])&amp;&amp;((n={}).pts=(14&amp;t[e+9])&lt;&lt;27|(255&amp;t[e+10])&lt;&lt;20|(254&amp;t[e+11])&lt;&lt;12|(255&amp;t[e+12])&lt;&lt;5|(254&amp;t[e+13])&gt;&gt;&gt;3,n.pts*=4,n.pts+=(6&amp;t[e+13])&gt;&gt;&gt;1,n.dts=n.pts,64&amp;i&amp;&amp;(n.dts=(14&amp;t[e+14])&lt;&lt;27|(255&amp;t[e+15])&lt;&lt;20|(254&amp;t[e+16])&lt;&lt;12|(255&amp;t[e+17])&lt;&lt;5|(254&amp;t[e+18])&gt;&gt;&gt;3,n.dts*=4,n.dts+=(6&amp;t[e+18])&gt;&gt;&gt;1)),n},videoPacketContainsKeyFrame:function(t){for(var e=4+s(t),i=t.subarray(e),n=0,r=0,a=!1;r&lt;i.byteLength-3;r++)if(1===i[r+2]){n=r+5;break}for(;n&lt;i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1]){n+=2;break}if(0!==i[n-2]){n++;break}r+3!==n-2&amp;&amp;"slice_layer_without_partitioning_rbsp_idr"===o(31&amp;i[r+3])&amp;&amp;(a=!0);do{n++}while(1!==i[n]&amp;&amp;n&lt;i.length);r=n-2,n+=3;break;case 1:if(0!==i[n-1]||0!==i[n-2]){n+=3;break}"slice_layer_without_partitioning_rbsp_idr"===o(31&amp;i[r+3])&amp;&amp;(a=!0),r=n-2,n+=3;break;default:n+=3}return i=i.subarray(r),n-=r,r=0,i&amp;&amp;i.byteLength&gt;3&amp;&amp;"slice_layer_without_partitioning_rbsp_idr"===o(31&amp;i[r+3])&amp;&amp;(a=!0),a}}},XeuD:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={isAudioCodec:function(t){return/mp4a\.\d+.\d+/i.test(t)},parseContentType:function(t){var e={type:"",parameters:{}},i=t.trim().split(";");return e.type=i.shift().trim(),i.forEach(function(t){var i=t.trim().split("=");if(i.length&gt;1){var n=i[0].replace(/"/g,"").trim(),r=i[1].replace(/"/g,"").trim();e.parameters[n]=r}}),e},isVideoCodec:function(t){return/avc1\.[\da-f]+/i.test(t)},translateLegacyCodecs:function(t){return t.map(function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,function(t,e,i){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)})})}},t.exports=e.default},ZX5X:function(t,e,i){"use strict";var n,r,a,s=i("B7FF"),o=i("gAM3"),l=i("j+Zh"),u=i("UAXZ").TimestampRolloverStream,c=i("j+Zh");(n=function(){var t=new Uint8Array(188),e=0;n.prototype.init.call(this),this.push=function(i){var n,r=0,a=188;for(e?((n=new Uint8Array(i.byteLength+e)).set(t.subarray(0,e)),n.set(i,e),e=0):n=i;a&lt;n.byteLength;)71!==n[r]||71!==n[a]?(r++,a++):(this.trigger("data",n.subarray(r,a)),r+=188,a+=188);r&lt;n.byteLength&amp;&amp;(t.set(n.subarray(r),0),e=n.byteLength-r)},this.flush=function(){188===e&amp;&amp;71===t[0]&amp;&amp;(this.trigger("data",t),e=0),this.trigger("done")}}).prototype=new s,(r=function(){var t,e,i,n;r.prototype.init.call(this),n=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,n){var r=0;n.payloadUnitStartIndicator&amp;&amp;(r+=t[r]+1),"pat"===n.type?e(t.subarray(r),n):i(t.subarray(r),n)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],n.pmtPid=(31&amp;t[10])&lt;&lt;8|t[11],e.pmtPid=n.pmtPid},i=function(t,e){var i,r;if(1&amp;t[5]){for(n.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&amp;t[1])&lt;&lt;8|t[2])-4,r=12+((15&amp;t[10])&lt;&lt;8|t[11]);r&lt;i;){var a=t[r],s=(31&amp;t[r+1])&lt;&lt;8|t[r+2];a===l.H264_STREAM_TYPE&amp;&amp;null===n.programMapTable.video?n.programMapTable.video=s:a===l.ADTS_STREAM_TYPE&amp;&amp;null===n.programMapTable.audio?n.programMapTable.audio=s:a===l.METADATA_STREAM_TYPE&amp;&amp;(n.programMapTable["timed-metadata"][s]=a),r+=5+((15&amp;t[r+3])&lt;&lt;8|t[r+4])}e.programMapTable=n.programMapTable}},this.push=function(e){var i={},n=4;if(i.payloadUnitStartIndicator=!!(64&amp;e[1]),i.pid=31&amp;e[1],i.pid&lt;&lt;=8,i.pid|=e[2],(48&amp;e[3])&gt;&gt;&gt;4&gt;1&amp;&amp;(n+=e[n]+1),0===i.pid)i.type="pat",t(e.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",t(e.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,n,i]):this.processPes_(e,n,i)},this.processPes_=function(t,e,i){i.pid===this.programMapTable.video?i.streamType=l.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=l.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=t.subarray(e),this.trigger("data",i)}}).prototype=new s,r.STREAM_TYPES={h264:27,adts:15},(a=function(){var t=this,e={data:[],size:0},i={data:[],size:0},n={data:[],size:0},r=function(e,i,n){var r,a,s=new Uint8Array(e.size),o={type:i},l=0,u=0;if(e.data.length&amp;&amp;!(e.size&lt;9)){for(o.trackId=e.data[0].pid,l=0;l&lt;e.data.length;l++)a=e.data[l],s.set(a.data,u),u+=a.data.byteLength;var c,h,d;c=s,(h=o).packetLength=6+(c[4]&lt;&lt;8|c[5]),h.dataAlignmentIndicator=0!=(4&amp;c[6]),192&amp;(d=c[7])&amp;&amp;(h.pts=(14&amp;c[9])&lt;&lt;27|(255&amp;c[10])&lt;&lt;20|(254&amp;c[11])&lt;&lt;12|(255&amp;c[12])&lt;&lt;5|(254&amp;c[13])&gt;&gt;&gt;3,h.pts*=4,h.pts+=(6&amp;c[13])&gt;&gt;&gt;1,h.dts=h.pts,64&amp;d&amp;&amp;(h.dts=(14&amp;c[14])&lt;&lt;27|(255&amp;c[15])&lt;&lt;20|(254&amp;c[16])&lt;&lt;12|(255&amp;c[17])&lt;&lt;5|(254&amp;c[18])&gt;&gt;&gt;3,h.dts*=4,h.dts+=(6&amp;c[18])&gt;&gt;&gt;1)),h.data=c.subarray(9+c[8]),r="video"===i||o.packetLength&lt;=e.size,(n||r)&amp;&amp;(e.size=0,e.data.length=0),r&amp;&amp;t.trigger("data",o)}};a.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var t,s;switch(a.streamType){case l.H264_STREAM_TYPE:case c.H264_STREAM_TYPE:t=e,s="video";break;case l.ADTS_STREAM_TYPE:t=i,s="audio";break;case l.METADATA_STREAM_TYPE:t=n,s="timed-metadata";break;default:return}a.payloadUnitStartIndicator&amp;&amp;r(t,s,!0),t.data.push(a),t.size+=a.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]},i=a.programMapTable;null!==i.video&amp;&amp;e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.video,codec:"avc",type:"video"}),null!==i.audio&amp;&amp;e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.audio,codec:"adts",type:"audio"}),t.trigger("data",e)}})[a.type]()},this.flush=function(){r(e,"video"),r(i,"audio"),r(n,"timed-metadata"),this.trigger("done")}}).prototype=new s;var h={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:n,TransportParseStream:r,ElementaryStream:a,TimestampRolloverStream:u,CaptionStream:o.CaptionStream,Cea608Stream:o.Cea608Stream,MetadataStream:i("Kege")};for(var d in l)l.hasOwnProperty(d)&amp;&amp;(h[d]=l[d]);t.exports=h},aZOi:function(t,e,i){"use strict";var n;(n=function(t,e){var i,r=0,a=16384,s=function(t,e){var i,n=t.position+e;n&lt;t.bytes.byteLength||((i=new Uint8Array(2*n)).set(t.bytes.subarray(0,t.position),0),t.bytes=i,t.view=new DataView(t.bytes.buffer))},o=n.widthBytes||new Uint8Array("width".length),l=n.heightBytes||new Uint8Array("height".length),u=n.videocodecidBytes||new Uint8Array("videocodecid".length);if(!n.widthBytes){for(i=0;i&lt;"width".length;i++)o[i]="width".charCodeAt(i);for(i=0;i&lt;"height".length;i++)l[i]="height".charCodeAt(i);for(i=0;i&lt;"videocodecid".length;i++)u[i]="videocodecid".charCodeAt(i);n.widthBytes=o,n.heightBytes=l,n.videocodecidBytes=u}switch(this.keyFrame=!1,t){case n.VIDEO_TAG:this.length=16,a*=6;break;case n.AUDIO_TAG:this.length=13,this.keyFrame=!0;break;case n.METADATA_TAG:this.length=29,this.keyFrame=!0;break;default:throw new Error("Unknown FLV tag type")}this.bytes=new Uint8Array(a),this.view=new DataView(this.bytes.buffer),this.bytes[0]=t,this.position=this.length,this.keyFrame=e,this.pts=0,this.dts=0,this.writeBytes=function(t,e,i){var n,r=e||0;n=r+(i=i||t.byteLength),s(this,i),this.bytes.set(t.subarray(r,n),this.position),this.position+=i,this.length=Math.max(this.length,this.position)},this.writeByte=function(t){s(this,1),this.bytes[this.position]=t,this.position++,this.length=Math.max(this.length,this.position)},this.writeShort=function(t){s(this,2),this.view.setUint16(this.position,t),this.position+=2,this.length=Math.max(this.length,this.position)},this.negIndex=function(t){return this.bytes[this.length-t]},this.nalUnitSize=function(){return 0===r?0:this.length-(r+4)},this.startNalUnit=function(){if(r&gt;0)throw new Error("Attempted to create new NAL wihout closing the old one");r=this.length,this.length+=4,this.position=this.length},this.endNalUnit=function(t){var e,i;this.length===r+4?this.length-=4:r&gt;0&amp;&amp;(e=r+4,i=this.length-e,this.position=r,this.view.setUint32(this.position,i),this.position=this.length,t&amp;&amp;t.push(this.bytes.subarray(e,e+i))),r=0},this.writeMetaDataDouble=function(t,e){var i;if(s(this,2+t.length+9),this.view.setUint16(this.position,t.length),this.position+=2,"width"===t)this.bytes.set(o,this.position),this.position+=5;else if("height"===t)this.bytes.set(l,this.position),this.position+=6;else if("videocodecid"===t)this.bytes.set(u,this.position),this.position+=12;else for(i=0;i&lt;t.length;i++)this.bytes[this.position]=t.charCodeAt(i),this.position++;this.position++,this.view.setFloat64(this.position,e),this.position+=8,this.length=Math.max(this.length,this.position),++r},this.writeMetaDataBoolean=function(t,e){var i;for(s(this,2),this.view.setUint16(this.position,t.length),this.position+=2,i=0;i&lt;t.length;i++)s(this,1),this.bytes[this.position]=t.charCodeAt(i),this.position++;s(this,2),this.view.setUint8(this.position,1),this.position++,this.view.setUint8(this.position,e?1:0),this.position++,this.length=Math.max(this.length,this.position),++r},this.finalize=function(){var t,i;switch(this.bytes[0]){case n.VIDEO_TAG:this.bytes[11]=7|(this.keyFrame||e?16:32),this.bytes[12]=e?0:1,t=this.pts-this.dts,this.bytes[13]=(16711680&amp;t)&gt;&gt;&gt;16,this.bytes[14]=(65280&amp;t)&gt;&gt;&gt;8,this.bytes[15]=(255&amp;t)&gt;&gt;&gt;0;break;case n.AUDIO_TAG:this.bytes[11]=175,this.bytes[12]=e?0:1;break;case n.METADATA_TAG:this.position=11,this.view.setUint8(this.position,2),this.position++,this.view.setUint16(this.position,10),this.position+=2,this.bytes.set([111,110,77,101,116,97,68,97,116,97],this.position),this.position+=10,this.bytes[this.position]=8,this.position++,this.view.setUint32(this.position,r),this.position=this.length,this.bytes.set([0,0,9],this.position),this.position+=3,this.length=this.position}return i=this.length-11,this.bytes[1]=(16711680&amp;i)&gt;&gt;&gt;16,this.bytes[2]=(65280&amp;i)&gt;&gt;&gt;8,this.bytes[3]=(255&amp;i)&gt;&gt;&gt;0,this.bytes[4]=(16711680&amp;this.dts)&gt;&gt;&gt;16,this.bytes[5]=(65280&amp;this.dts)&gt;&gt;&gt;8,this.bytes[6]=(255&amp;this.dts)&gt;&gt;&gt;0,this.bytes[7]=(4278190080&amp;this.dts)&gt;&gt;&gt;24,this.bytes[8]=0,this.bytes[9]=0,this.bytes[10]=0,s(this,4),this.view.setUint32(this.length,this.length),this.length+=4,this.position+=4,this.bytes=this.bytes.subarray(0,this.length),this.frameTime=n.frameTime(this.bytes),this}}).AUDIO_TAG=8,n.VIDEO_TAG=9,n.METADATA_TAG=18,n.isAudioFrame=function(t){return n.AUDIO_TAG===t[0]},n.isVideoFrame=function(t){return n.VIDEO_TAG===t[0]},n.isMetaData=function(t){return n.METADATA_TAG===t[0]},n.isKeyFrame=function(t){return n.isVideoFrame(t)?23===t[11]:!!n.isAudioFrame(t)||!!n.isMetaData(t)},n.frameTime=function(t){var e=t[4]&lt;&lt;16;return e|=t[5]&lt;&lt;8,e|=t[6]&lt;&lt;0,e|=t[7]&lt;&lt;24},t.exports=n},aj7g:function(t,e){var i="auto",n={"":1,lr:1,rl:1},r={start:1,middle:1,end:1,left:1,right:1};function a(t){return"string"==typeof t&amp;&amp;(!!r[t.toLowerCase()]&amp;&amp;t.toLowerCase())}function s(t,e,r){this.hasBeenReset=!1;var s="",o=!1,l=t,u=e,c=r,h=null,d="",p=!0,f="auto",g="start",m=50,y="middle",v=50,_="middle";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(t){s=""+t}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(t){o=!!t}},startTime:{enumerable:!0,get:function(){return l},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");l=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");u=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(t){c=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return h},set:function(t){h=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(t){var e=function(t){return"string"==typeof t&amp;&amp;!!n[t.toLowerCase()]&amp;&amp;t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");d=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(t){p=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(t){if("number"!=typeof t&amp;&amp;t!==i)throw new SyntaxError("An invalid number or illegal string was specified.");f=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=a(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}},position:{enumerable:!0,get:function(){return m},set:function(t){if(t&lt;0||t&gt;100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return y},set:function(t){var e=a(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t&lt;0||t&gt;100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return _},set:function(t){var e=a(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}}}),this.displayState=void 0}s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=s},awF4:function(t,e,i){(function(e){var i;i="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=i}).call(e,i("DuR2"))},cAwu:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(n=(s=o.next()).done)&amp;&amp;(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,a=t}finally{try{!n&amp;&amp;o.return&amp;&amp;o.return()}finally{if(r)throw a}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),s=i("96je"),o=(n=s)&amp;&amp;n.__esModule?n:{default:n};var l=function(t){for(var e=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},n=e.length,r=void 0;n--;)""!==e[n]&amp;&amp;((r=/([^=]*)=(.*)/.exec(e[n]).slice(1))[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),i[r[0]]=r[1]);return i},u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&amp;&amp;"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this))}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o["default"]),a(e,[{key:"push",value:function(t){var e=void 0,i=void 0;if(0!==(t=t.replace(/^[\u0000\s]+|[\u0000\s]+$/g,"")).length)if("#"===t[0])if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t))this.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t))return i={type:"tag",tagType:"inf"},e[1]&amp;&amp;(i.duration=parseFloat(e[1])),e[2]&amp;&amp;(i.title=e[2]),void this.trigger("data",i);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"targetduration"},e[1]&amp;&amp;(i.duration=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"totalduration"},e[1]&amp;&amp;(i.duration=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"version"},e[1]&amp;&amp;(i.version=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return i={type:"tag",tagType:"media-sequence"},e[1]&amp;&amp;(i.number=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return i={type:"tag",tagType:"discontinuity-sequence"},e[1]&amp;&amp;(i.number=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t))return i={type:"tag",tagType:"playlist-type"},e[1]&amp;&amp;(i.playlistType=e[1]),void this.trigger("data",i);if(e=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"byterange"},e[1]&amp;&amp;(i.length=parseInt(e[1],10)),e[2]&amp;&amp;(i.offset=parseInt(e[2],10)),void this.trigger("data",i);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t))return i={type:"tag",tagType:"allow-cache"},e[1]&amp;&amp;(i.allowed=!/NO/.test(e[1])),void this.trigger("data",i);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t)){if(i={type:"tag",tagType:"map"},e[1]){var n=l(e[1]);if(n.URI&amp;&amp;(i.uri=n.URI),n.BYTERANGE){var a=n.BYTERANGE.split("@"),s=r(a,2),o=s[0],u=s[1];i.byterange={},o&amp;&amp;(i.byterange.length=parseInt(o,10)),u&amp;&amp;(i.byterange.offset=parseInt(u,10))}}this.trigger("data",i)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t)){if(i={type:"tag",tagType:"stream-inf"},e[1]){if(i.attributes=l(e[1]),i.attributes.RESOLUTION){var c=i.attributes.RESOLUTION.split("x"),h={};c[0]&amp;&amp;(h.width=parseInt(c[0],10)),c[1]&amp;&amp;(h.height=parseInt(c[1],10)),i.attributes.RESOLUTION=h}i.attributes.BANDWIDTH&amp;&amp;(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["PROGRAM-ID"]&amp;&amp;(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))}this.trigger("data",i)}else{if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t))return i={type:"tag",tagType:"media"},e[1]&amp;&amp;(i.attributes=l(e[1])),void this.trigger("data",i);if(e=/^#EXT-X-ENDLIST/.exec(t))this.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t))this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t))return i={type:"tag",tagType:"program-date-time"},e[1]&amp;&amp;(i.dateTimeString=e[1],i.dateTimeObject=new Date(e[1])),void this.trigger("data",i);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t))return i={type:"tag",tagType:"key"},e[1]&amp;&amp;(i.attributes=l(e[1]),i.attributes.IV&amp;&amp;("0x"===i.attributes.IV.substring(0,2).toLowerCase()&amp;&amp;(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void this.trigger("data",i);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-out-cont"},e[1]?i.data=e[1]:i.data="",void this.trigger("data",i);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-out"},e[1]?i.data=e[1]:i.data="",void this.trigger("data",i);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-in"},e[1]?i.data=e[1]:i.data="",void this.trigger("data",i);this.trigger("data",{type:"tag",data:t.slice(4)})}}}else this.trigger("data",{type:"comment",text:t.slice(1)});else this.trigger("data",{type:"uri",uri:t})}}]),e}();e.default=u},ciWi:function(t,e,i){var n=i("awF4"),r=t.exports={WebVTT:i("dlST"),VTTCue:i("aj7g"),VTTRegion:i("DvOw")};n.vttjs=r,n.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=n.VTTCue,l=n.VTTRegion;r.shim=function(){n.VTTCue=a,n.VTTRegion=s},r.restore=function(){n.VTTCue=o,n.VTTRegion=l},n.VTTCue||r.shim()},dlST:function(t,e){var i=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function n(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function r(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+(0|n)/1e3}var i=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]&gt;59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}function a(){this.values=i(null)}function s(t,e,i,n){var r=n?t.split(n):[t];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i);if(2===s.length)e(s[0],s[1])}}function o(t,e,i){var o=t;function l(){var e=r(t);if(null===e)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+o);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function u(){t=t.replace(/^\s+/,"")}if(u(),e.startTime=l(),u(),"--\x3e"!==t.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);t=t.substr(3),u(),e.endTime=l(),u(),function(t,e){var n=new a;s(t,function(t,e){switch(t){case"region":for(var r=i.length-1;r&gt;=0;r--)if(i[r].id===e){n.set(t,i[r].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),s=a[0];n.integer(t,s),n.percent(t,s)&amp;&amp;n.set("snapToLines",!1),n.alt(t,s,["auto"]),2===a.length&amp;&amp;n.alt("lineAlign",a[1],["start","middle","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&amp;&amp;n.alt("positionAlign",a[1],["start","middle","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical",""),e.line=n.get("line","auto"),e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align","middle"),e.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}n.prototype=i(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var n=0;n&lt;i.length;++n)if(e===i[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&amp;&amp;this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&amp;&amp;(e=parseFloat(e))&gt;=0&amp;&amp;e&lt;=100)&amp;&amp;(this.set(t,e),!0)}};var l={"&amp;amp;":"&amp;","&amp;lt;":"&lt;","&amp;gt;":"&gt;","&amp;lrm;":"â€Ž","&amp;rlm;":"â€","&amp;nbsp;":"Â&nbsp;"},u={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={v:"title",lang:"lang"},h={rt:"ruby"};function d(t,e){function i(){if(!e)return null;var t,i=e.match(/^([^&lt;]*)(&lt;[^&gt;]*&gt;?)?/);return t=i[1]?i[1]:i[2],e=e.substr(t.length),t}function n(t){return l[t]}function a(t){for(;v=t.match(/&amp;(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(v[0],n);return t}function s(t,e){return!h[e.localName]||h[e.localName]===t.localName}function o(e,i){var n=u[e];if(!n)return null;var r=t.document.createElement(n);r.localName=n;var a=c[e];return a&amp;&amp;i&amp;&amp;(r[a]=i.trim()),r}for(var d,p=t.document.createElement("div"),f=p,g=[];null!==(d=i());)if("&lt;"!==d[0])f.appendChild(t.document.createTextNode(a(d)));else{if("/"===d[1]){g.length&amp;&amp;g[g.length-1]===d.substr(2).replace("&gt;","")&amp;&amp;(g.pop(),f=f.parentNode);continue}var m,y=r(d.substr(1,d.length-2));if(y){m=t.document.createProcessingInstruction("timestamp",y),f.appendChild(m);continue}var v=d.match(/^&lt;([^.\s/0-9&gt;]+)(\.[^\s\\&gt;]+)?([^&gt;\\]+)?(\\?)&gt;?$/);if(!v)continue;if(!(m=o(v[1],v[3])))continue;if(!s(f,m))continue;v[2]&amp;&amp;(m.className=v[2].substr(1).replace("."," ")),g.push(v[1]),f.appendChild(m),f=m}return p}var p=[[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 f(t){for(var e=0;e&lt;p.length;e++){var i=p[e];if(t&gt;=i[0]&amp;&amp;t&lt;=i[1])return!0}return!1}function g(){}function m(t,e,i){g.call(this),this.cue=e,this.cueDiv=d(t,e.text);var n={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:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=t.document.createElement("div"),n={direction:function(t){var e=[],i="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var i=e.childNodes.length-1;i&gt;=0;i--)t.push(e.childNodes[i])}function r(t){if(!t||!t.length)return null;var e=t.pop(),i=e.textContent||e.innerText;if(i){var a=i.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):i}return"ruby"===e.tagName?r(t):e.childNodes?(n(t,e),r(t)):void 0}for(n(e,t);i=r(e);)for(var a=0;a&lt;i.length;a++)if(f(i.charCodeAt(a)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var r=0;switch(e.positionAlign){case"start":r=e.position;break;case"middle":r=e.position-e.size/2;break;case"end":r=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function y(t){var e,i,n,r;if(t.div){i=t.div.offsetHeight,n=t.div.offsetWidth,r=t.div.offsetTop;var a=(a=t.div.childNodes)&amp;&amp;(a=a[0])&amp;&amp;a.getClientRects&amp;&amp;a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&amp;&amp;a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||i,this.bottom=t.bottom||r+(t.height||i),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight}function v(t,e,i,n){var r=new y(e),a=e.cue,s=function(t){if("number"==typeof t.line&amp;&amp;(t.snapToLines||t.line&gt;=0&amp;&amp;t.line&lt;=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,n=0,r=0;r&lt;i.length&amp;&amp;i[r]!==e;r++)"showing"===i[r].mode&amp;&amp;n++;return-1*++n}(a),o=[];if(a.snapToLines){var l;switch(a.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var u=r.lineHeight,c=u*Math.round(s),h=i[l]+u,d=o[0];Math.abs(c)&gt;h&amp;&amp;(c=c&lt;0?-1:1,c*=Math.ceil(h/u)*u),s&lt;0&amp;&amp;(c+=""===a.vertical?i.height:i.width,o=o.reverse()),r.move(d,c)}else{var p=r.lineHeight/i.height*100;switch(a.lineAlign){case"middle":s-=p/2;break;case"end":s-=p}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(s,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(s,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],r=new y(e)}var f=function(t,e){for(var r,a=new y(t),s=1,o=0;o&lt;e.length;o++){for(;t.overlapsOppositeAxis(i,e[o])||t.within(i)&amp;&amp;t.overlapsAny(n);)t.move(e[o]);if(t.within(i))return t;var l=t.intersectPercentage(i);s&gt;l&amp;&amp;(r=new y(t),s=l),t=new y(a)}return r||a}(r,o);e.move(f.toCSSCompatValues(i))}function _(){}g.prototype.applyStyles=function(t,e){for(var i in e=e||this.div,t)t.hasOwnProperty(i)&amp;&amp;(e.style[i]=t[i])},g.prototype.formatStyle=function(t,e){return 0===t?0:t+e},m.prototype=i(g.prototype),m.prototype.constructor=m,y.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},y.prototype.overlaps=function(t){return this.left&lt;t.right&amp;&amp;this.right&gt;t.left&amp;&amp;this.top&lt;t.bottom&amp;&amp;this.bottom&gt;t.top},y.prototype.overlapsAny=function(t){for(var e=0;e&lt;t.length;e++)if(this.overlaps(t[e]))return!0;return!1},y.prototype.within=function(t){return this.top&gt;=t.top&amp;&amp;this.bottom&lt;=t.bottom&amp;&amp;this.left&gt;=t.left&amp;&amp;this.right&lt;=t.right},y.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left&lt;t.left;case"-x":return this.right&gt;t.right;case"+y":return this.top&lt;t.top;case"-y":return this.bottom&gt;t.bottom}},y.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)},y.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}},y.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=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||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||i}},_.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},_.convertCueToDOMTree=function(t,e){return t&amp;&amp;e?d(t,e):null};_.processCues=function(t,e,i){if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(t){for(var e=0;e&lt;t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],a=y.getSimpleBoxPosition(n),s={font:Math.round(.05*a.height*100)/100+"px sans-serif"};!function(){for(var i,o,l=0;l&lt;e.length;l++)o=e[l],i=new m(t,o,s),n.appendChild(i.div),v(0,i,a,r),o.displayState=i.div,r.push(y.getSimpleBoxPosition(i))}()}else for(var o=0;o&lt;e.length;o++)n.appendChild(e[o].displayState)},_.Parser=function(t,e,i){i||(i=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},_.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof n))throw t;this.onparsingerror&amp;&amp;this.onparsingerror(t)},parse:function(t){var e=this;function i(){for(var t=e.buffer,i=0;i&lt;t.length&amp;&amp;"\r"!==t[i]&amp;&amp;"\n"!==t[i];)++i;var n=t.substr(0,i);return"\r"===t[i]&amp;&amp;++i,"\n"===t[i]&amp;&amp;++i,e.buffer=t.substr(i),n}function l(t){t.match(/X-TIMESTAMP-MAP/)?s(t,function(t,i){switch(t){case"X-TIMESTAMP-MAP":n=i,o=new a,s(n,function(t,e){switch(t){case"MPEGT":o.integer(t+"S",e);break;case"LOCA":o.set(t+"L",r(e))}},/[^\d]:/,/,/),e.ontimestampmap&amp;&amp;e.ontimestampmap({MPEGTS:o.get("MPEGTS"),LOCAL:o.get("LOCAL")})}var n,o},/=/):s(t,function(t,i){switch(t){case"Region":!function(t){var i=new a;if(s(t,function(t,e){switch(t){case"id":i.set(t,e);break;case"width":i.percent(t,e);break;case"lines":i.integer(t,e);break;case"regionanchor":case"viewportanchor":var n=e.split(",");if(2!==n.length)break;var r=new a;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;i.set(t+"X",r.get("x")),i.set(t+"Y",r.get("y"));break;case"scroll":i.alt(t,e,["up"])}},/=/,/\s/),i.has("id")){var n=new(e.vttjs.VTTRegion||e.window.VTTRegion);n.width=i.get("width",100),n.lines=i.get("lines",3),n.regionAnchorX=i.get("regionanchorX",0),n.regionAnchorY=i.get("regionanchorY",100),n.viewportAnchorX=i.get("viewportanchorX",0),n.viewportAnchorY=i.get("viewportanchorY",100),n.scroll=i.get("scroll",""),e.onregion&amp;&amp;e.onregion(n),e.regionList.push({id:i.get("id"),region:n})}}(i)}},/:/)}t&amp;&amp;(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var u;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var c=(u=i()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new n(n.Errors.BadSignature);e.state="HEADER"}for(var h=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(h?h=!1:u=i(),e.state){case"HEADER":/:/.test(u)?l(u):u||(e.state="ID");continue;case"NOTE":u||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(u)){e.state="NOTE";break}if(!u)continue;if(e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,""),e.state="CUE",-1===u.indexOf("--\x3e")){e.cue.id=u;continue}case"CUE":try{o(u,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var d=-1!==u.indexOf("--\x3e");if(!u||d&amp;&amp;(h=!0)){e.oncue&amp;&amp;e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&amp;&amp;(e.cue.text+="\n"),e.cue.text+=u;continue;case"BADCUE":u||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&amp;&amp;e.cue&amp;&amp;e.oncue&amp;&amp;e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&amp;&amp;(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new n(n.Errors.BadSignature)}catch(t){this.reportOrThrowError(t)}return this.onflush&amp;&amp;this.onflush(),this}},t.exports=_},"dwO+":function(t,e,i){(function(e){var n,r=void 0!==e?e:"undefined"!=typeof window?window:{},a=i(4);"undefined"!=typeof document?n=document:(n=r["__GLOBAL_DOCUMENT_CACHE@4"])||(n=r["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n}).call(e,i("DuR2"))},f8ML:function(t,e,i){function n(t){return t&amp;&amp;"object"==typeof t&amp;&amp;"default"in t?t.default:t}var r,a=n(i("awF4")),s=n(i("dwO+")),o=n(i("sN1u")),l=n(i("I/+Z")),u=n(i("1Xk4")),c=n(i("lT65")),h="6.12.1",d=a.navigator&amp;&amp;a.navigator.userAgent||"",p=/AppleWebKit\/([\d.]+)/i.exec(d),f=p?parseFloat(p.pop()):null,g=/iPad/i.test(d),m=/iPhone/i.test(d)&amp;&amp;!g,y=/iPod/i.test(d),v=m||g||y,_=(r=d.match(/OS (\d+)_/i))&amp;&amp;r[1]?r[1]:null,b=/Android/i.test(d),T=function(){var t=d.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&amp;&amp;parseFloat(t[1]),i=t[2]&amp;&amp;parseFloat(t[2]);return e&amp;&amp;i?parseFloat(t[1]+"."+t[2]):e||null}(),S=b&amp;&amp;/webkit/i.test(d)&amp;&amp;T&lt;2.3,k=b&amp;&amp;T&lt;5&amp;&amp;f&lt;537,C=/Firefox/i.test(d),w=/Edge/i.test(d),E=!w&amp;&amp;(/Chrome/i.test(d)||/CriOS/i.test(d)),A=function(){var t=d.match(/(Chrome|CriOS)\/(\d+)/);return t&amp;&amp;t[2]?parseFloat(t[2]):null}(),x=/MSIE\s8\.0/.test(d),O=function(){var t=/MSIE\s(\d+)\.\d/.exec(d),e=t&amp;&amp;parseFloat(t[1]);return!e&amp;&amp;/Trident\/7.0/i.test(d)&amp;&amp;/rv:11.0/.test(d)&amp;&amp;(e=11),e}(),P=/Safari/i.test(d)&amp;&amp;!E&amp;&amp;!b&amp;&amp;!w,L=(P||v)&amp;&amp;!E,I=et()&amp;&amp;("ontouchstart"in a||a.navigator.maxTouchPoints||a.DocumentTouch&amp;&amp;a.document instanceof a.DocumentTouch),D=et()&amp;&amp;"backgroundSize"in a.document.createElement("video").style,M=(Object.freeze||Object)({IS_IPAD:g,IS_IPHONE:m,IS_IPOD:y,IS_IOS:v,IOS_VERSION:_,IS_ANDROID:b,ANDROID_VERSION:T,IS_OLD_ANDROID:S,IS_NATIVE_ANDROID:k,IS_FIREFOX:C,IS_EDGE:w,IS_CHROME:E,CHROME_VERSION:A,IS_IE8:x,IE_VERSION:O,IS_SAFARI:P,IS_ANY_SAFARI:L,TOUCH_ENABLED:I,BACKGROUND_SIZE_SUPPORTED:D}),R="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t},j=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},U=function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},N=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&amp;&amp;"function"!=typeof e?t:e},B=function(t,e){return t.raw=e,t},F=Object.prototype.toString,H=function(t){return W(t)?Object.keys(t):[]};function V(t,e){H(t).forEach(function(i){return e(t[i],i)})}function z(t){for(var e=arguments.length,i=Array(e&gt;1?e-1:0),n=1;n&lt;e;n++)i[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[t].concat(i)):(i.forEach(function(e){e&amp;&amp;V(e,function(e,i){t[i]=e})}),t)}function W(t){return!!t&amp;&amp;"object"===(void 0===t?"undefined":R(t))}function q(t){return W(t)&amp;&amp;"[object Object]"===F.call(t)&amp;&amp;t.constructor===Object}var G=void 0,X="info",Y=[],K=function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:!!O&amp;&amp;O&lt;11,n=G.levels[X],r=new RegExp("^("+n+")$");if("log"!==t&amp;&amp;e.unshift(t.toUpperCase()+":"),Y&amp;&amp;Y.push([].concat(e)),e.unshift("VIDEOJS:"),a.console){var s=a.console[t];s||"debug"!==t||(s=a.console.info||a.console.log),s&amp;&amp;n&amp;&amp;r.test(t)&amp;&amp;(i&amp;&amp;(e=e.map(function(t){if(W(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(e){return String(t)}return String(t)}).join(" ")),s.apply?s[Array.isArray(e)?"apply":"call"](a.console,e):s(e))}};(G=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];K("log",e)}).levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:X},G.level=function(t){if("string"==typeof t){if(!G.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');X=t}return X},G.history=function(){return Y?[].concat(Y):[]},G.history.clear=function(){Y&amp;&amp;(Y.length=0)},G.history.disable=function(){null!==Y&amp;&amp;(Y.length=0,Y=null)},G.history.enable=function(){null===Y&amp;&amp;(Y=[])},G.error=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];return K("error",e)},G.warn=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];return K("warn",e)},G.debug=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];return K("debug",e)};var $=G;function J(t,e){if(!t||!e)return"";if("function"==typeof a.getComputedStyle){var i=a.getComputedStyle(t);return i?i[e]:""}return t.currentStyle[e]||""}var Z=B(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]);function Q(t){return"string"==typeof t&amp;&amp;/\S/.test(t)}function tt(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function et(){return s===a.document&amp;&amp;void 0!==s.createElement}function it(t){return W(t)&amp;&amp;1===t.nodeType}function nt(){try{return a.parent!==a.self}catch(t){return!0}}function rt(t){return function(e,i){if(!Q(e))return s[t](null);Q(i)&amp;&amp;(i=s.querySelector(i));var n=it(i)?i:s;return n[t]&amp;&amp;n[t](e)}}function at(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"div",e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{},n=arguments[3],r=s.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var i=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?($.warn(o(Z,t,i)),r.setAttribute(t,i)):"textContent"===t?st(r,i):r[t]=i}),Object.getOwnPropertyNames(i).forEach(function(t){r.setAttribute(t,i[t])}),n&amp;&amp;wt(r,n),r}function st(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function ot(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function lt(t,e){return tt(e),t.classList?t.classList.contains(e):(i=e,new RegExp("(^|\\s)"+i+"($|\\s)")).test(t.className);var i}function ut(t,e){return t.classList?t.classList.add(e):lt(t,e)||(t.className=(t.className+" "+e).trim()),t}function ct(t,e){return t.classList?t.classList.remove(e):(tt(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function ht(t,e,i){var n=lt(t,e);if("function"==typeof i&amp;&amp;(i=i(t,e)),"boolean"!=typeof i&amp;&amp;(i=!n),i!==n)return i?ut(t,e):ct(t,e),t}function dt(t,e){Object.getOwnPropertyNames(e).forEach(function(i){var n=e[i];null===n||void 0===n||!1===n?t.removeAttribute(i):t.setAttribute(i,!0===n?"":n)})}function pt(t){var e={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&amp;&amp;t.attributes&amp;&amp;t.attributes.length&gt;0)for(var n=t.attributes,r=n.length-1;r&gt;=0;r--){var a=n[r].name,s=n[r].value;"boolean"!=typeof t[a]&amp;&amp;-1===i.indexOf(","+a+",")||(s=null!==s),e[a]=s}return e}function ft(t,e){return t.getAttribute(e)}function gt(t,e,i){t.setAttribute(e,i)}function mt(t,e){t.removeAttribute(e)}function yt(){s.body.focus(),s.onselectstart=function(){return!1}}function vt(){s.onselectstart=function(){return!0}}function _t(t){if(t&amp;&amp;t.getBoundingClientRect&amp;&amp;t.parentNode){var e=t.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(t){void 0!==e[t]&amp;&amp;(i[t]=e[t])}),i.height||(i.height=parseFloat(J(t,"height"))),i.width||(i.width=parseFloat(J(t,"width"))),i}}function bt(t){var e=void 0;if(t.getBoundingClientRect&amp;&amp;t.parentNode&amp;&amp;(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var i=s.documentElement,n=s.body,r=i.clientLeft||n.clientLeft||0,o=a.pageXOffset||n.scrollLeft,l=e.left+o-r,u=i.clientTop||n.clientTop||0,c=a.pageYOffset||n.scrollTop,h=e.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function Tt(t,e){var i={},n=bt(t),r=t.offsetWidth,a=t.offsetHeight,s=n.top,o=n.left,l=e.pageY,u=e.pageX;return e.changedTouches&amp;&amp;(u=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-l+a)/a)),i.x=Math.max(0,Math.min(1,(u-o)/r)),i}function St(t){return W(t)&amp;&amp;3===t.nodeType}function kt(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Ct(t){return"function"==typeof t&amp;&amp;(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&amp;&amp;(t=t()),it(t)||St(t)?t:"string"==typeof t&amp;&amp;/\S/.test(t)?s.createTextNode(t):void 0}).filter(function(t){return t})}function wt(t,e){return Ct(e).forEach(function(e){return t.appendChild(e)}),t}function Et(t,e){return wt(kt(t),e)}function At(t){return void 0===t.button&amp;&amp;void 0===t.buttons||(0===t.button&amp;&amp;void 0===t.buttons||(9===O||0===t.button&amp;&amp;1===t.buttons))}var xt=rt("querySelector"),Ot=rt("querySelectorAll"),Pt=(Object.freeze||Object)({isReal:et,isEl:it,isInFrame:nt,createEl:at,textContent:st,prependTo:ot,hasClass:lt,addClass:ut,removeClass:ct,toggleClass:ht,setAttributes:dt,getAttributes:pt,getAttribute:ft,setAttribute:gt,removeAttribute:mt,blockTextSelection:yt,unblockTextSelection:vt,getBoundingClientRect:_t,findPosition:bt,getPointerPosition:Tt,isTextNode:St,emptyEl:kt,normalizeContent:Ct,appendContent:wt,insertContent:Et,isSingleLeftClick:At,$:xt,$$:Ot}),Lt=1;function It(){return Lt++}var Dt={},Mt="vdata"+(new Date).getTime();function Rt(t){var e=t[Mt];return e||(e=t[Mt]=It()),Dt[e]||(Dt[e]={}),Dt[e]}function jt(t){var e=t[Mt];return!!e&amp;&amp;!!Object.getOwnPropertyNames(Dt[e]).length}function Ut(t){var e=t[Mt];if(e){delete Dt[e];try{delete t[Mt]}catch(e){t.removeAttribute?t.removeAttribute(Mt):t[Mt]=null}}}function Nt(t,e){var i=Rt(t);0===i.handlers[e].length&amp;&amp;(delete i.handlers[e],t.removeEventListener?t.removeEventListener(e,i.dispatcher,!1):t.detachEvent&amp;&amp;t.detachEvent("on"+e,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length&lt;=0&amp;&amp;(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&amp;&amp;Ut(t)}function Bt(t,e,i,n){i.forEach(function(i){t(e,i,n)})}function Ft(t){function e(){return!0}function i(){return!1}if(!t||!t.isPropagationStopped){var n=t||a.event;for(var r in t={},n)"layerX"!==r&amp;&amp;"layerY"!==r&amp;&amp;"keyLocation"!==r&amp;&amp;"webkitMovementX"!==r&amp;&amp;"webkitMovementY"!==r&amp;&amp;("returnValue"===r&amp;&amp;n.preventDefault||(t[r]=n[r]));if(t.target||(t.target=t.srcElement||s),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){n.preventDefault&amp;&amp;n.preventDefault(),t.returnValue=!1,n.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){n.stopPropagation&amp;&amp;n.stopPropagation(),t.cancelBubble=!0,n.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=i,t.stopImmediatePropagation=function(){n.stopImmediatePropagation&amp;&amp;n.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=i,null!==t.clientX&amp;&amp;void 0!==t.clientX){var o=s.documentElement,l=s.body;t.pageX=t.clientX+(o&amp;&amp;o.scrollLeft||l&amp;&amp;l.scrollLeft||0)-(o&amp;&amp;o.clientLeft||l&amp;&amp;l.clientLeft||0),t.pageY=t.clientY+(o&amp;&amp;o.scrollTop||l&amp;&amp;l.scrollTop||0)-(o&amp;&amp;o.clientTop||l&amp;&amp;l.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&amp;&amp;void 0!==t.button&amp;&amp;(t.button=1&amp;t.button?0:4&amp;t.button?1:2&amp;t.button?2:0)}return t}var Ht=!1;!function(){try{var t=Object.defineProperty({},"passive",{get:function(){Ht=!0}});a.addEventListener("test",null,t),a.removeEventListener("test",null,t)}catch(t){}}();var Vt=["touchstart","touchmove"];function zt(t,e,i){if(Array.isArray(e))return Bt(zt,t,e,i);var n=Rt(t);if(n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),i.guid||(i.guid=It()),n.handlers[e].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,i){if(!n.disabled){e=Ft(e);var r=n.handlers[e.type];if(r)for(var a=r.slice(0),s=0,o=a.length;s&lt;o&amp;&amp;!e.isImmediatePropagationStopped();s++)try{a[s].call(t,e,i)}catch(t){$.error(t)}}}),1===n.handlers[e].length)if(t.addEventListener){var r=!1;Ht&amp;&amp;Vt.indexOf(e)&gt;-1&amp;&amp;(r={passive:!0}),t.addEventListener(e,n.dispatcher,r)}else t.attachEvent&amp;&amp;t.attachEvent("on"+e,n.dispatcher)}function Wt(t,e,i){if(jt(t)){var n=Rt(t);if(n.handlers){if(Array.isArray(e))return Bt(Wt,t,e,i);var r=function(t,e){n.handlers[e]=[],Nt(t,e)};if(void 0!==e){var a=n.handlers[e];if(a)if(i){if(i.guid)for(var s=0;s&lt;a.length;s++)a[s].guid===i.guid&amp;&amp;a.splice(s--,1);Nt(t,e)}else r(t,e)}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&amp;&amp;r(t,o)}}}function qt(t,e,i){var n=jt(t)?Rt(t):{},r=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=Ft(e),n.dispatcher&amp;&amp;n.dispatcher.call(t,e,i),r&amp;&amp;!e.isPropagationStopped()&amp;&amp;!0===e.bubbles)qt.call(null,r,e,i);else if(!r&amp;&amp;!e.defaultPrevented){var a=Rt(e.target);e.target[e.type]&amp;&amp;(a.disabled=!0,"function"==typeof e.target[e.type]&amp;&amp;e.target[e.type](),a.disabled=!1)}return!e.defaultPrevented}function Gt(t,e,i){if(Array.isArray(e))return Bt(Gt,t,e,i);var n=function n(){Wt(t,e,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||It(),zt(t,e,n)}var Xt=(Object.freeze||Object)({fixEvent:Ft,on:zt,off:Wt,trigger:qt,one:Gt}),Yt=!1,Kt=void 0,$t=function(){if(et()&amp;&amp;!1!==Kt.options.autoSetup){var t=s.getElementsByTagName("video"),e=s.getElementsByTagName("audio"),i=s.getElementsByTagName("video-js"),n=[];if(t&amp;&amp;t.length&gt;0)for(var r=0,a=t.length;r&lt;a;r++)n.push(t[r]);if(e&amp;&amp;e.length&gt;0)for(var o=0,l=e.length;o&lt;l;o++)n.push(e[o]);if(i&amp;&amp;i.length&gt;0)for(var u=0,c=i.length;u&lt;c;u++)n.push(i[u]);if(n&amp;&amp;n.length&gt;0)for(var h=0,d=n.length;h&lt;d;h++){var p=n[h];if(!p||!p.getAttribute){Jt(1);break}void 0===p.player&amp;&amp;null!==p.getAttribute("data-setup")&amp;&amp;Kt(p)}else Yt||Jt(1)}};function Jt(t,e){e&amp;&amp;(Kt=e),a.setTimeout($t,t)}et()&amp;&amp;"complete"===s.readyState?Yt=!0:Gt(a,"load",function(){Yt=!0});var Zt=function(t){var e=s.createElement("style");return e.className=t,e},Qt=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},te=function(t,e,i){e.guid||(e.guid=It());var n=function(){return e.apply(t,arguments)};return n.guid=i?i+"_"+e.guid:e.guid,n},ee=function(t,e){var i=Date.now();return function(){var n=Date.now();n-i&gt;=e&amp;&amp;(t.apply(void 0,arguments),i=n)}},ie=function(t,e,i){var n=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:a,r=void 0;return function(){var a=this,s=arguments,o=function(){r=null,o=null,i||t.apply(a,s)};!r&amp;&amp;i&amp;&amp;t.apply(a,s),n.clearTimeout(r),r=n.setTimeout(o,e)}},ne=function(){};ne.prototype.allowedEvents_={},ne.prototype.on=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},zt(this,t,e),this.addEventListener=i},ne.prototype.addEventListener=ne.prototype.on,ne.prototype.off=function(t,e){Wt(this,t,e)},ne.prototype.removeEventListener=ne.prototype.off,ne.prototype.one=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},Gt(this,t,e),this.addEventListener=i},ne.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&amp;&amp;(t={type:e}),t=Ft(t),this.allowedEvents_[e]&amp;&amp;this["on"+e]&amp;&amp;this["on"+e](t),qt(this,t)},ne.prototype.dispatchEvent=ne.prototype.trigger;var re=function(t){return t instanceof ne||!!t.eventBusEl_&amp;&amp;["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},ae=function(t){return"string"==typeof t&amp;&amp;/\S/.test(t)||Array.isArray(t)&amp;&amp;!!t.length},se=function(t){if(!t.nodeName&amp;&amp;!re(t))throw new Error("Invalid target; must be a DOM node or evented object.")},oe=function(t){if(!ae(t))throw new Error("Invalid event type; must be a non-empty string or array.")},le=function(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")},ue=function(t,e){var i=e.length&lt;3||e[0]===t||e[0]===t.eventBusEl_,n=void 0,r=void 0,a=void 0;return i?(n=t.eventBusEl_,e.length&gt;=3&amp;&amp;e.shift(),r=e[0],a=e[1]):(n=e[0],r=e[1],a=e[2]),se(n),oe(r),le(a),{isTargetingSelf:i,target:n,type:r,listener:a=te(t,a)}},ce=function(t,e,i,n){se(t),t.nodeName?Xt[e](t,i,n):t[e](i,n)},he={on:function(){for(var t=this,e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];var r=ue(this,i),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(ce(s,"on",o,l),!a){var u=function(){return t.off(s,o,l)};u.guid=l.guid;var c=function(){return t.off("dispose",u)};c.guid=l.guid,ce(this,"on","dispose",u),ce(s,"on","dispose",c)}},one:function(){for(var t=this,e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];var r=ue(this,i),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)ce(s,"one",o,l);else{var u=function e(){for(var i=arguments.length,n=Array(i),r=0;r&lt;i;r++)n[r]=arguments[r];t.off(s,o,e),l.apply(null,n)};u.guid=l.guid,ce(s,"one",o,u)}},off:function(t,e,i){if(!t||ae(t))Wt(this.eventBusEl_,t,e);else{var n=t,r=e;se(n),oe(r),le(i),i=te(this,i),this.off("dispose",i),n.nodeName?(Wt(n,r,i),Wt(n,"dispose",i)):re(n)&amp;&amp;(n.off(r,i),n.off("dispose",i))}},trigger:function(t,e){return qt(this.eventBusEl_,t,e)}};function de(t){var e=(arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(e){if(!t[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');t.eventBusEl_=t[e]}else t.eventBusEl_=at("span",{className:"vjs-event-bus"});return z(t,he),t.on("dispose",function(){t.off(),a.setTimeout(function(){t.eventBusEl_=null},0)}),t}var pe={state:{},setState:function(t){var e=this;"function"==typeof t&amp;&amp;(t=t());var i=void 0;return V(t,function(t,n){e.state[n]!==t&amp;&amp;((i=i||{})[n]={from:e.state[n],to:t}),e.state[n]=t}),i&amp;&amp;re(this)&amp;&amp;this.trigger({changes:i,type:"statechanged"}),i}};function fe(t,e){return z(t,pe),t.state=z({},t.state,e),"function"==typeof t.handleStateChanged&amp;&amp;re(t)&amp;&amp;t.on("statechanged",t.handleStateChanged),t}function ge(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function me(){for(var t={},e=arguments.length,i=Array(e),n=0;n&lt;e;n++)i[n]=arguments[n];return i.forEach(function(e){e&amp;&amp;V(e,function(e,i){q(e)?(q(t[i])||(t[i]={}),t[i]=me(t[i],e)):t[i]=e})}),t}var ye=function(){function t(e,i,n){if(j(this,t),!e&amp;&amp;this.play?this.player_=e=this:this.player_=e,this.options_=me({},this.options_),i=this.options_=me(this.options_,i),this.id_=i.id||i.el&amp;&amp;i.el.id,!this.id_){var r=e&amp;&amp;e.id&amp;&amp;e.id()||"no_player";this.id_=r+"_component_"+It()}this.name_=i.name||null,i.el?this.el_=i.el:!1!==i.createEl&amp;&amp;(this.el_=this.createEl()),!1!==i.evented&amp;&amp;de(this,{eventBusKey:this.el_?"el_":null}),fe(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==i.initChildren&amp;&amp;this.initChildren(),this.ready(n),!1!==i.reportTouchActivity&amp;&amp;this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t&gt;=0;t--)this.children_[t].dispose&amp;&amp;this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&amp;&amp;(this.el_.parentNode&amp;&amp;this.el_.parentNode.removeChild(this.el_),Ut(this.el_),this.el_=null),this.player_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return $.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=me(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,i){return at(t,e,i)},t.prototype.localize=function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:t,n=this.player_.language&amp;&amp;this.player_.language(),r=this.player_.languages&amp;&amp;this.player_.languages(),a=r&amp;&amp;r[n],s=n&amp;&amp;n.split("-")[0],o=r&amp;&amp;r[s],l=i;return a&amp;&amp;a[t]?l=a[t]:o&amp;&amp;o[t]&amp;&amp;(l=o[t]),e&amp;&amp;(l=l.replace(/\{(\d+)\}/g,function(t,i){var n=e[i-1],r=n;return void 0===n&amp;&amp;(r=t),r})),l},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){if(t)return t=ge(t),this.childNameIndex_[t]},t.prototype.addChild=function(e){var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,a=void 0;if("string"==typeof e){a=ge(e);var s=i.componentClass||a;i.name=a;var o=t.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,i)}else r=e;if(this.children_.splice(n,0,r),"function"==typeof r.id&amp;&amp;(this.childIndex_[r.id()]=r),(a=a||r.name&amp;&amp;ge(r.name()))&amp;&amp;(this.childNameIndex_[a]=r),"function"==typeof r.el&amp;&amp;r.el()){var l=this.contentEl().children[n]||null;this.contentEl().insertBefore(r.el(),l)}return r},t.prototype.removeChild=function(t){if("string"==typeof t&amp;&amp;(t=this.getChild(t)),t&amp;&amp;this.children_){for(var e=!1,i=this.children_.length-1;i&gt;=0;i--)if(this.children_[i]===t){e=!0,this.children_.splice(i,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var n=t.el();n&amp;&amp;n.parentNode===this.contentEl()&amp;&amp;this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,i=this.options_.children;if(i){var n=this.options_,r=void 0,a=t.getComponent("Tech");(r=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter(function(t){return!r.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var n=void 0,r=void 0;return"string"==typeof t?r=i[n=t]||e.options_[n]||{}:(n=t.name,r=t),{name:n,opts:r}}).filter(function(e){var i=t.getComponent(e.opts.componentClass||ge(e.name));return i&amp;&amp;!a.isTech(i)}).forEach(function(t){var i=t.name,r=t.opts;if(void 0!==n[i]&amp;&amp;(r=n[i]),!1!==r){!0===r&amp;&amp;(r={}),r.playerOptions=e.options_.playerOptions;var a=e.addChild(i,r);a&amp;&amp;(e[i]=a)}})}},t.prototype.buildCSSClass=function(){return""},t.prototype.ready=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&amp;&amp;t.length&gt;0&amp;&amp;t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return xt(t,e||this.contentEl())},t.prototype.$$=function(t,e){return Ot(t,e||this.contentEl())},t.prototype.hasClass=function(t){return lt(this.el_,t)},t.prototype.addClass=function(t){ut(this.el_,t)},t.prototype.removeClass=function(t){ct(this.el_,t)},t.prototype.toggleClass=function(t,e){ht(this.el_,t,e)},t.prototype.show=function(){this.removeClass("vjs-hidden")},t.prototype.hide=function(){this.addClass("vjs-hidden")},t.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},t.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.prototype.getAttribute=function(t){return ft(this.el_,t)},t.prototype.setAttribute=function(t,e){gt(this.el_,t,e)},t.prototype.removeAttribute=function(t){mt(this.el_,t)},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},t.prototype.dimension=function(t,e,i){if(void 0!==e)return null!==e&amp;&amp;e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[t],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+ge(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&amp;&amp;"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof a.getComputedStyle){var i=a.getComputedStyle(this.el_);e=i.getPropertyValue(t)||i[t]}if(0===(e=parseFloat(e))){var n="offset"+ge(t);e=this.el_[n]}return e},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.focus=function(){this.el_.focus()},t.prototype.blur=function(){this.el_.blur()},t.prototype.emitTapEvents=function(){var t=0,e=null,i=void 0;this.on("touchstart",function(n){1===n.touches.length&amp;&amp;(e={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=(new Date).getTime(),i=!0)}),this.on("touchmove",function(t){if(t.touches.length&gt;1)i=!1;else if(e){var n=t.touches[0].pageX-e.pageX,r=t.touches[0].pageY-e.pageY;Math.sqrt(n*n+r*r)&gt;10&amp;&amp;(i=!1)}});var n=function(){i=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){(e=null,!0===i)&amp;&amp;((new Date).getTime()-t&lt;200&amp;&amp;(n.preventDefault(),this.trigger("tap")))})},t.prototype.enableTouchActivity=function(){if(this.player()&amp;&amp;this.player().reportUserActivity){var t=te(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.prototype.setTimeout=function(t,e){var i,n,r=this;return t=te(this,t),i=a.setTimeout(function(){r.off("dispose",n),t()},e),(n=function(){return r.clearTimeout(i)}).guid="vjs-timeout-"+i,this.on("dispose",n),i},t.prototype.clearTimeout=function(t){a.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){var i=this;t=te(this,t);var n=a.setInterval(t,e),r=function(){return i.clearInterval(n)};return r.guid="vjs-interval-"+n,this.on("dispose",r),n},t.prototype.clearInterval=function(t){a.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.prototype.requestAnimationFrame=function(t){var e,i,n=this;return this.supportsRaf_?(t=te(this,t),e=a.requestAnimationFrame(function(){n.off("dispose",i),t()}),(i=function(){return n.cancelAnimationFrame(e)}).guid="vjs-raf-"+e,this.on("dispose",i),e):this.setTimeout(t,1e3/60)},t.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){a.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},t.registerComponent=function(e,i){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var n=t.getComponent("Tech"),r=n&amp;&amp;n.isTech(i),a=t===i||t.prototype.isPrototypeOf(i.prototype);if(r||!a){var s=void 0;throw s=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+s+".")}e=ge(e),t.components_||(t.components_={});var o=t.getComponent("Player");if("Player"===e&amp;&amp;o&amp;&amp;o.players){var l=o.players,u=Object.keys(l);if(l&amp;&amp;u.length&gt;0&amp;&amp;u.map(function(t){return l[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=i,i},t.getComponent=function(e){if(e)return e=ge(e),t.components_&amp;&amp;t.components_[e]?t.components_[e]:void 0},t}();function ve(t,e,i,n){return function(t,e,i){if("number"!=typeof e||e&lt;0||e&gt;i)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+i+").")}(t,n,i.length-1),i[n][e]}function _e(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:ve.bind(null,"start",0,t),end:ve.bind(null,"end",1,t)}}function be(t,e){return Array.isArray(t)?_e(t):void 0===t||void 0===e?_e():_e([[t,e]])}function Te(t,e){var i=0,n=void 0,r=void 0;if(!e)return 0;t&amp;&amp;t.length||(t=be(0,0));for(var a=0;a&lt;t.length;a++)n=t.start(a),(r=t.end(a))&gt;e&amp;&amp;(r=e),i+=r-n;return i/e}ye.prototype.supportsRaf_="function"==typeof a.requestAnimationFrame&amp;&amp;"function"==typeof a.cancelAnimationFrame,ye.registerComponent("Component",ye);for(var Se={},ke=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Ce=ke[0],we=void 0,Ee=0;Ee&lt;ke.length;Ee++)if(ke[Ee][1]in s){we=ke[Ee];break}if(we)for(var Ae=0;Ae&lt;we.length;Ae++)Se[Ce[Ae]]=we[Ae];function xe(t){if(t instanceof xe)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:W(t)&amp;&amp;("number"==typeof t.code&amp;&amp;(this.code=t.code),z(this,t)),this.message||(this.message=xe.defaultMessages[this.code]||"")}xe.prototype.code=0,xe.prototype.message="",xe.prototype.status=null,xe.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],xe.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Oe=0;Oe&lt;xe.errorTypes.length;Oe++)xe[xe.errorTypes[Oe]]=Oe,xe.prototype[xe.errorTypes[Oe]]=Oe;function Pe(t){return void 0!==t&amp;&amp;null!==t&amp;&amp;"function"==typeof t.then}function Le(t){Pe(t)&amp;&amp;t.then(null,function(t){})}var Ie=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,i,n){return t[i]&amp;&amp;(e[i]=t[i]),e},{cues:t.cues&amp;&amp;Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},De=function(t){var e=t.$$("track"),i=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=Ie(t.track);return t.src&amp;&amp;(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===i.indexOf(t)}).map(Ie))},Me=function(t,e){return t.forEach(function(t){var i=e.addRemoteTextTrack(t).track;!t.src&amp;&amp;t.cues&amp;&amp;t.cues.forEach(function(t){return i.addCue(t)})}),e.textTracks()},Re="vjs-modal-dialog",je=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=at("div",{className:Re+"-content"},{role:"document"}),r.descEl_=at("p",{className:Re+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),st(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return Re+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&amp;&amp;this.closeable()&amp;&amp;this.close()},e.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&amp;&amp;(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&amp;&amp;!this.hasBeenFilled_)&amp;&amp;this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&amp;&amp;this.wasPlaying_&amp;&amp;t.pause(),this.closeable()&amp;&amp;this.on(this.el_.ownerDocument,"keydown",te(this,this.handleKeyPress)),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},e.prototype.opened=function(t){return"boolean"==typeof t&amp;&amp;this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&amp;&amp;this.options_.pauseOnOpen&amp;&amp;t.play(),this.closeable()&amp;&amp;this.off(this.el_.ownerDocument,"keydown",te(this,this.handleKeyPress)),this.hadControls_&amp;&amp;t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&amp;&amp;this.dispose()}},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,i=this.getChild("closeButton");if(e&amp;&amp;!i){var n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close)}!e&amp;&amp;i&amp;&amp;(this.off(i,"close",this.close),this.removeChild(i),i.dispose())}return this.closeable_},e.prototype.fill=function(){this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),i=e.parentNode,n=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(e),this.empty(),Et(e,t),this.trigger("modalfill"),n?i.insertBefore(e,n):i.appendChild(e);var r=this.getChild("closeButton");r&amp;&amp;i.appendChild(r.el_)},e.prototype.empty=function(){this.trigger("beforemodalempty"),kt(this.contentEl()),this.trigger("modalempty")},e.prototype.content=function(t){return void 0!==t&amp;&amp;(this.content_=t),this.content_},e.prototype.conditionalFocus_=function(){var t=s.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&amp;&amp;(this.previouslyActiveEl_=t,this.focus(),this.on(s,"keydown",this.handleKeyDown))},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&amp;&amp;(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(s,"keydown",this.handleKeyDown)},e.prototype.handleKeyDown=function(t){if(9===t.which){for(var e=this.focusableEls_(),i=this.el_.querySelector(":focus"),n=void 0,r=0;r&lt;e.length;r++)if(i===e[r]){n=r;break}s.activeElement===this.el_&amp;&amp;(n=0),t.shiftKey&amp;&amp;0===n?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||n!==e.length-1||(e[0].focus(),t.preventDefault())}},e.prototype.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(t){return(t instanceof a.HTMLAnchorElement||t instanceof a.HTMLAreaElement)&amp;&amp;t.hasAttribute("href")||(t instanceof a.HTMLInputElement||t instanceof a.HTMLSelectElement||t instanceof a.HTMLTextAreaElement||t instanceof a.HTMLButtonElement)&amp;&amp;!t.hasAttribute("disabled")||t instanceof a.HTMLIFrameElement||t instanceof a.HTMLObjectElement||t instanceof a.HTMLEmbedElement||t.hasAttribute("tabindex")&amp;&amp;-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")})},e}(ye);je.prototype.options_={pauseOnOpen:!0,temporary:!0},ye.registerComponent("ModalDialog",je);var Ue=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[],n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:null;j(this,e);var r=N(this,t.call(this));if(!n&amp;&amp;(n=r,x))for(var a in n=s.createElement("custom"),e.prototype)"constructor"!==a&amp;&amp;(n[a]=e.prototype[a]);n.tracks_=[],Object.defineProperty(n,"length",{get:function(){return this.tracks_.length}});for(var o=0;o&lt;i.length;o++)n.addTrack(i[o]);return N(r,n)}return U(e,t),e.prototype.addTrack=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&amp;&amp;(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack=function(t){for(var e=void 0,i=0,n=this.length;i&lt;n;i++)if(this[i]===t){(e=this[i]).off&amp;&amp;e.off(),this.tracks_.splice(i,1);break}e&amp;&amp;this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,i=0,n=this.length;i&lt;n;i++){var r=this[i];if(r.id===t){e=r;break}}return e},e}(ne);for(var Ne in Ue.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Ue.prototype.allowedEvents_)Ue.prototype["on"+Ne]=null;var Be=function(t,e){for(var i=0;i&lt;t.length;i++)Object.keys(t[i]).length&amp;&amp;e.id!==t[i].id&amp;&amp;(t[i].enabled=!1)},Fe=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];j(this,e);for(var r=void 0,a=n.length-1;a&gt;=0;a--)if(n[a].enabled){Be(n,n[a]);break}if(x){for(var o in r=s.createElement("custom"),Ue.prototype)"constructor"!==o&amp;&amp;(r[o]=Ue.prototype[o]);for(var l in e.prototype)"constructor"!==l&amp;&amp;(r[l]=e.prototype[l])}return(r=i=N(this,t.call(this,n,r))).changing_=!1,N(i,r)}return U(e,t),e.prototype.addTrack=function(e){var i=this;e.enabled&amp;&amp;Be(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&amp;&amp;e.addEventListener("enabledchange",function(){i.changing_||(i.changing_=!0,Be(i,e),i.changing_=!1,i.trigger("change"))})},e}(Ue),He=function(t,e){for(var i=0;i&lt;t.length;i++)Object.keys(t[i]).length&amp;&amp;e.id!==t[i].id&amp;&amp;(t[i].selected=!1)},Ve=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];j(this,e);for(var r=void 0,a=n.length-1;a&gt;=0;a--)if(n[a].selected){He(n,n[a]);break}if(x){for(var o in r=s.createElement("custom"),Ue.prototype)"constructor"!==o&amp;&amp;(r[o]=Ue.prototype[o]);for(var l in e.prototype)"constructor"!==l&amp;&amp;(r[l]=e.prototype[l])}return(r=i=N(this,t.call(this,n,r))).changing_=!1,Object.defineProperty(r,"selectedIndex",{get:function(){for(var t=0;t&lt;this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),N(i,r)}return U(e,t),e.prototype.addTrack=function(e){var i=this;e.selected&amp;&amp;He(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&amp;&amp;e.addEventListener("selectedchange",function(){i.changing_||(i.changing_=!0,He(i,e),i.changing_=!1,i.trigger("change"))})},e}(Ue),ze=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];j(this,e);var r=void 0;if(x){for(var a in r=s.createElement("custom"),Ue.prototype)"constructor"!==a&amp;&amp;(r[a]=Ue.prototype[a]);for(var o in e.prototype)"constructor"!==o&amp;&amp;(r[o]=e.prototype[o])}return i=N(this,t.call(this,n,r)),N(i,r=i)}return U(e,t),e.prototype.addTrack=function(e){t.prototype.addTrack.call(this,e),e.addEventListener("modechange",te(this,function(){this.trigger("change")}));-1===["metadata","chapters"].indexOf(e.kind)&amp;&amp;e.addEventListener("modechange",te(this,function(){this.trigger("selectedlanguagechange")}))},e}(Ue),We=function(){function t(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];j(this,t);var i=this;if(x)for(var n in i=s.createElement("custom"),t.prototype)"constructor"!==n&amp;&amp;(i[n]=t.prototype[n]);i.trackElements_=[],Object.defineProperty(i,"length",{get:function(){return this.trackElements_.length}});for(var r=0,a=e.length;r&lt;a;r++)i.addTrackElement_(e[r]);if(x)return i}return t.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&amp;&amp;this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,i=0,n=this.trackElements_.length;i&lt;n;i++)if(t===this.trackElements_[i].track){e=this.trackElements_[i];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,i=this.trackElements_.length;e&lt;i;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}(),qe=function(){function t(e){j(this,t);var i=this;if(x)for(var n in i=s.createElement("custom"),t.prototype)"constructor"!==n&amp;&amp;(i[n]=t.prototype[n]);if(t.prototype.setCues_.call(i,e),Object.defineProperty(i,"length",{get:function(){return this.length_}}),x)return i}return t.prototype.setCues_=function(t){var e=this.length||0,i=0,n=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e&lt;n)for(i=e;i&lt;n;i++)r.call(this,i)},t.prototype.getCueById=function(t){for(var e=null,i=0,n=this.length;i&lt;n;i++){var r=this[i];if(r.id===t){e=r;break}}return e},t}(),Ge={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Xe={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Ye={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Ke={disabled:"disabled",hidden:"hidden",showing:"showing"},$e=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};j(this,e);var n=N(this,t.call(this)),r=n;if(x)for(var a in r=s.createElement("custom"),e.prototype)"constructor"!==a&amp;&amp;(r[a]=e.prototype[a]);var o={id:i.id||"vjs_track_"+It(),kind:i.kind||"",label:i.label||"",language:i.language||""},l=function(t){Object.defineProperty(r,t,{get:function(){return o[t]},set:function(){}})};for(var u in o)l(u);return N(n,r)}return U(e,t),e}(ne),Je=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],i=s.createElement("a");i.href=t;var n=""===i.host&amp;&amp;"file:"!==i.protocol,r=void 0;n&amp;&amp;((r=s.createElement("div")).innerHTML='&lt;a href="'+t+'"&gt;&lt;/a&gt;',i=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),s.body.appendChild(r));for(var o={},l=0;l&lt;e.length;l++)o[e[l]]=i[e[l]];return"http:"===o.protocol&amp;&amp;(o.host=o.host.replace(/:80$/,"")),"https:"===o.protocol&amp;&amp;(o.host=o.host.replace(/:443$/,"")),o.protocol||(o.protocol=a.location.protocol),n&amp;&amp;s.body.removeChild(r),o},Ze=function(t){if(!t.match(/^https?:\/\//)){var e=s.createElement("div");e.innerHTML='&lt;a href="'+t+'"&gt;x&lt;/a&gt;',t=e.firstChild.href}return t},Qe=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},ti=function(t){var e=a.location,i=Je(t);return(":"===i.protocol?e.protocol:i.protocol)+i.host!==e.protocol+e.host},ei=(Object.freeze||Object)({parseUrl:Je,getAbsoluteURL:Ze,getFileExtension:Qe,isCrossOrigin:ti}),ii=function(t,e){var i=new a.WebVTT.Parser(a,a.vttjs,a.WebVTT.StringDecoder()),n=[];i.oncue=function(t){e.addCue(t)},i.onparsingerror=function(t){n.push(t)},i.onflush=function(){e.trigger({type:"loadeddata",target:e})},i.parse(t),n.length&gt;0&amp;&amp;(a.console&amp;&amp;a.console.groupCollapsed&amp;&amp;a.console.groupCollapsed("Text Track parsing errors for "+e.src),n.forEach(function(t){return $.error(t)}),a.console&amp;&amp;a.console.groupEnd&amp;&amp;a.console.groupEnd()),i.flush()},ni=function(t,e){var i={uri:t},n=ti(t);n&amp;&amp;(i.cors=n),u(i,te(this,function(t,i,n){if(t)return $.error(t,i);if(e.loaded_=!0,"function"!=typeof a.WebVTT){if(e.tech_){var r=function(){return ii(n,e)};e.tech_.on("vttjsloaded",r),e.tech_.on("vttjserror",function(){$.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",r)})}}else ii(n,e)}))},ri=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};if(j(this,e),!n.tech)throw new Error("A tech was not provided.");var r=me(n,{kind:Ye[n.kind]||"subtitles",language:n.language||n.srclang||""}),a=Ke[r.mode]||"disabled",s=r.default;"metadata"!==r.kind&amp;&amp;"chapters"!==r.kind||(a="hidden");var o=i=N(this,t.call(this,r));if(o.tech_=r.tech,x)for(var l in e.prototype)"constructor"!==l&amp;&amp;(o[l]=e.prototype[l]);o.cues_=[],o.activeCues_=[];var u=new qe(o.cues_),c=new qe(o.activeCues_),h=!1,d=te(o,function(){this.activeCues=this.activeCues,h&amp;&amp;(this.trigger("cuechange"),h=!1)});return"disabled"!==a&amp;&amp;o.tech_.ready(function(){o.tech_.on("timeupdate",d)},!0),Object.defineProperty(o,"default",{get:function(){return s},set:function(){}}),Object.defineProperty(o,"mode",{get:function(){return a},set:function(t){var e=this;Ke[t]&amp;&amp;("showing"===(a=t)&amp;&amp;this.tech_.ready(function(){e.tech_.on("timeupdate",d)},!0),this.trigger("modechange"))}}),Object.defineProperty(o,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(o,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return c;for(var t=this.tech_.currentTime(),e=[],i=0,n=this.cues.length;i&lt;n;i++){var r=this.cues[i];r.startTime&lt;=t&amp;&amp;r.endTime&gt;=t?e.push(r):r.startTime===r.endTime&amp;&amp;r.startTime&lt;=t&amp;&amp;r.startTime+.5&gt;=t&amp;&amp;e.push(r)}if(h=!1,e.length!==this.activeCues_.length)h=!0;else for(var a=0;a&lt;e.length;a++)-1===this.activeCues_.indexOf(e[a])&amp;&amp;(h=!0);return this.activeCues_=e,c.setCues_(this.activeCues_),c},set:function(){}}),r.src?(o.src=r.src,ni(r.src,o)):o.loaded_=!0,N(i,o)}return U(e,t),e.prototype.addCue=function(t){var e=t;if(a.vttjs&amp;&amp;!(t instanceof a.vttjs.VTTCue)){for(var i in e=new a.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)i in e||(e[i]=t[i]);e.id=t.id,e.originalCue_=t}for(var n=this.tech_.textTracks(),r=0;r&lt;n.length;r++)n[r]!==this&amp;&amp;n[r].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(var e=this.cues_.length;e--;){var i=this.cues_[e];if(i===t||i.originalCue_&amp;&amp;i.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}($e);ri.prototype.allowedEvents_={cuechange:"cuechange"};var ai=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};j(this,e);var r=me(n,{kind:Xe[n.kind]||""}),a=i=N(this,t.call(this,r)),s=!1;if(x)for(var o in e.prototype)"constructor"!==o&amp;&amp;(a[o]=e.prototype[o]);return Object.defineProperty(a,"enabled",{get:function(){return s},set:function(t){"boolean"==typeof t&amp;&amp;t!==s&amp;&amp;(s=t,this.trigger("enabledchange"))}}),r.enabled&amp;&amp;(a.enabled=r.enabled),a.loaded_=!0,N(i,a)}return U(e,t),e}($e),si=function(t){function e(){var i,n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};j(this,e);var r=me(n,{kind:Ge[n.kind]||""}),a=i=N(this,t.call(this,r)),s=!1;if(x)for(var o in e.prototype)"constructor"!==o&amp;&amp;(a[o]=e.prototype[o]);return Object.defineProperty(a,"selected",{get:function(){return s},set:function(t){"boolean"==typeof t&amp;&amp;t!==s&amp;&amp;(s=t,this.trigger("selectedchange"))}}),r.selected&amp;&amp;(a.selected=r.selected),N(i,a)}return U(e,t),e}($e),oi=0,li=2,ui=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};j(this,e);var n=N(this,t.call(this)),r=void 0,a=n;if(x)for(var o in a=s.createElement("custom"),e.prototype)"constructor"!==o&amp;&amp;(a[o]=e.prototype[o]);var l=new ri(i);return a.kind=l.kind,a.src=l.src,a.srclang=l.language,a.label=l.label,a.default=l.default,Object.defineProperty(a,"readyState",{get:function(){return r}}),Object.defineProperty(a,"track",{get:function(){return l}}),r=oi,l.addEventListener("loadeddata",function(){r=li,a.trigger({type:"load",target:a})}),x?N(n,a):n}return U(e,t),e}(ne);ui.prototype.allowedEvents_={load:"load"},ui.NONE=oi,ui.LOADING=1,ui.LOADED=li,ui.ERROR=3;var ci={audio:{ListClass:Fe,TrackClass:ai,capitalName:"Audio"},video:{ListClass:Ve,TrackClass:si,capitalName:"Video"},text:{ListClass:ze,TrackClass:ri,capitalName:"Text"}};Object.keys(ci).forEach(function(t){ci[t].getterName=t+"Tracks",ci[t].privateName=t+"Tracks_"});var hi={remoteText:{ListClass:ze,TrackClass:ri,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:We,TrackClass:ui,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},di=me(ci,hi);hi.names=Object.keys(hi),ci.names=Object.keys(ci),di.names=[].concat(hi.names).concat(ci.names);var pi=function(t){function e(){var i=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:function(){};j(this,e),i.reportTouchActivity=!1;var r=N(this,t.call(this,null,i,n));return r.hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),di.names.forEach(function(t){var e=di[t];i&amp;&amp;i[e.getterName]&amp;&amp;(r[e.privateName]=i[e.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===i["native"+t+"Tracks"]&amp;&amp;(r["featuresNative"+t+"Tracks"]=!1)}),!1===i.nativeCaptions||!1===i.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==i.nativeCaptions&amp;&amp;!0!==i.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new di.text.ListClass,r.initTrackListeners(),i.nativeControlsForTouch||r.emitTapEvents(),r.constructor&amp;&amp;(r.name_=r.constructor.name||"Unknown Tech"),r}return U(e,t),e.prototype.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",function(){return e.setTimeout(function(){return e.triggerSourceset(t)},1)}),this.trigger({src:t,type:"sourceset"})},e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(te(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&amp;&amp;this.trigger("progress"),this.bufferedPercent_=t,1===t&amp;&amp;this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(t){this.duration_=this.duration()},e.prototype.buffered=function(){return be(0,0)},e.prototype.bufferedPercent=function(){return Te(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&amp;&amp;this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(ci.names),this.manualProgress&amp;&amp;this.manualProgressOff(),this.manualTimeUpdates&amp;&amp;this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var i=e[t+"Tracks"]()||[],n=i.length;n--;){var r=i[n];"text"===t&amp;&amp;e.removeRemoteTextTrack(r),i.removeTrack(r)}})},e.prototype.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var i=t[e];this.removeRemoteTextTrack(i)}},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&amp;&amp;(this.error_=new xe(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?be(0,0):be()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&amp;&amp;this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTrackListeners=function(){var t=this;ci.names.forEach(function(e){var i=ci[e],n=function(){t.trigger(e+"trackchange")},r=t[i.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),t.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},e.prototype.addWebVttScript_=function(){var t=this;if(!a.WebVTT)if(s.body.contains(this.el())){if(!this.options_["vtt.js"]&amp;&amp;q(c)&amp;&amp;Object.keys(c).length&gt;0)return void this.trigger("vttjsloaded");var e=s.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks(),i=this.remoteTextTracks(),n=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return t.trigger("texttrackchange")},s=function(){a();for(var t=0;t&lt;e.length;t++){var i=e[t];i.removeEventListener("cuechange",a),"showing"===i.mode&amp;&amp;i.addEventListener("cuechange",a)}};s(),e.addEventListener("change",s),e.addEventListener("addtrack",s),e.addEventListener("removetrack",s),this.on("dispose",function(){i.off("addtrack",n),i.off("removetrack",r),e.removeEventListener("change",s),e.removeEventListener("addtrack",s),e.removeEventListener("removetrack",s);for(var t=0;t&lt;e.length;t++){e[t].removeEventListener("cuechange",a)}})},e.prototype.addTextTrack=function(t,e,i){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,i,n){var r=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:{},a=t.textTracks();r.kind=e,i&amp;&amp;(r.label=i),n&amp;&amp;(r.language=n),r.tech=t;var s=new di.text.TrackClass(r);return a.addTrack(s),s}(this,t,e,i)},e.prototype.createRemoteTextTrack=function(t){var e=me(t,{tech:this});return new hi.remoteTextEl.TrackClass(e)},e.prototype.addRemoteTextTrack=function(){var t=this,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},i=arguments[1],n=this.createRemoteTextTrack(e);return!0!==i&amp;&amp;!1!==i&amp;&amp;($.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),i=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==i&amp;&amp;this.ready(function(){return t.autoRemoteTextTracks_.addTrack(n.track)}),n},e.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},e.prototype.getVideoPlaybackQuality=function(){return{}},e.prototype.setPoster=function(){},e.prototype.playsinline=function(){},e.prototype.setPlaysinline=function(){},e.prototype.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,i){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,i){if(e.techs_||(e.techs_={}),!e.isTech(i))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=ge(t),e.techs_[t]=i,"Tech"!==t&amp;&amp;e.defaultTechOrder_.push(t),i},e.getTech=function(t){if(t)return t=ge(t),e.techs_&amp;&amp;e.techs_[t]?e.techs_[t]:a&amp;&amp;a.videojs&amp;&amp;a.videojs[t]?($.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),a.videojs[t]):void 0},e}(ye);di.names.forEach(function(t){var e=di[t];pi.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),pi.prototype.featuresVolumeControl=!0,pi.prototype.featuresMuteControl=!0,pi.prototype.featuresFullscreenResize=!1,pi.prototype.featuresPlaybackRate=!1,pi.prototype.featuresProgressEvents=!1,pi.prototype.featuresSourceset=!1,pi.prototype.featuresTimeupdateEvents=!1,pi.prototype.featuresNativeTextTracks=!1,pi.withSourceHandlers=function(t){t.registerSourceHandler=function(e,i){var n=t.sourceHandlers;n||(n=t.sourceHandlers=[]),void 0===i&amp;&amp;(i=n.length),n.splice(i,0,e)},t.canPlayType=function(e){for(var i=t.sourceHandlers||[],n=void 0,r=0;r&lt;i.length;r++)if(n=i[r].canPlayType(e))return n;return""},t.selectSourceHandler=function(e,i){for(var n=t.sourceHandlers||[],r=0;r&lt;n.length;r++)if(n[r].canHandleSource(e,i))return n[r];return null},t.canPlaySource=function(e,i){var n=t.selectSourceHandler(e,i);return n?n.canHandleSource(e,i):""};["seekable","seeking","duration"].forEach(function(t){var e=this[t];"function"==typeof e&amp;&amp;(this[t]=function(){return this.sourceHandler_&amp;&amp;this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var i=t.selectSourceHandler(e,this.options_);i||(t.nativeSourceHandler?i=t.nativeSourceHandler:$.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),i!==t.nativeSourceHandler&amp;&amp;(this.currentSource_=e),this.sourceHandler_=i.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler)},t.prototype.disposeSourceHandler=function(){this.currentSource_&amp;&amp;(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&amp;&amp;(this.sourceHandler_.dispose&amp;&amp;this.sourceHandler_.dispose(),this.sourceHandler_=null)}},ye.registerComponent("Tech",pi),pi.registerTech("Tech",pi),pi.defaultTechOrder_=[];var fi={},gi={},mi={};function yi(t,e,i){t.setTimeout(function(){return function t(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:[];var n=arguments[2];var r=arguments[3];var a=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:[];var s=arguments.length&gt;5&amp;&amp;void 0!==arguments[5]&amp;&amp;arguments[5];var o=i[0],l=i.slice(1);if("string"==typeof o)t(e,fi[o],n,r,a,s);else if(o){var u=function(t,e){var i=gi[t.id()],n=null;if(void 0===i||null===i)return n=e(t),gi[t.id()]=[[e,n]],n;for(var r=0;r&lt;i.length;r++){var a=i[r],s=a[0],o=a[1];s===e&amp;&amp;(n=o)}null===n&amp;&amp;(n=e(t),i.push([e,n]));return n}(r,o);if(!u.setSource)return a.push(u),t(e,l,n,r,a,s);u.setSource(z({},e),function(i,o){if(i)return t(e,l,n,r,a,s);a.push(u),t(o,e.type===o.type?l:fi[o.type],n,r,a,s)})}else l.length?t(e,l,n,r,a,s):s?n(e,a):t(e,fi["*"],n,r,a,!0)}(e,fi[e.type],i,t)},1)}function vi(t,e,i){var n=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:null,r="call"+ge(i),a=t.reduce(Si(r),n),s=a===mi,o=s?null:e[i](a);return function(t,e,i,n){for(var r=t.length-1;r&gt;=0;r--){var a=t[r];a[e]&amp;&amp;a[e](n,i)}}(t,i,o,s),o}var _i={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},bi={setCurrentTime:1},Ti={play:1,pause:1};function Si(t){return function(e,i){return e===mi?mi:i[t]?i[t](e):e}}var ki={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Ci=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",e=Qe(t);return ki[e.toLowerCase()]||""};function wi(t){var e=Ci(t.src);return!t.type&amp;&amp;e&amp;&amp;(t.type=e),t}var Ei=function(t){function e(i,n,r){j(this,e);var a=me({createEl:!1},n),s=N(this,t.call(this,i,a,r));if(n.playerOptions.sources&amp;&amp;0!==n.playerOptions.sources.length)i.src(n.playerOptions.sources);else for(var o=0,l=n.playerOptions.techOrder;o&lt;l.length;o++){var u=ge(l[o]),c=pi.getTech(u);if(u||(c=ye.getComponent(u)),c&amp;&amp;c.isSupported()){i.loadTech_(u);break}}return s}return U(e,t),e}(ye);ye.registerComponent("MediaLoader",Ei);var Ai=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.emitTapEvents(),r.enable(),r}return U(e,t),e.prototype.createEl=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"div",i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};i=z({innerHTML:'&lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;',className:this.buildCSSClass(),tabIndex:0},i),"button"===e&amp;&amp;$.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=z({role:"button"},n),this.tabIndex_=i.tabIndex;var r=t.prototype.createEl.call(this,e,i,n);return this.createControlTextEl(r),r},e.prototype.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=at("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&amp;&amp;t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},e.prototype.controlText=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:this.el();if(void 0===t)return this.controlText_||"Need Text";var i=this.localize(t);this.controlText_=t,st(this.controlTextEl_,i),this.nonIconControl||e.setAttribute("title",i)},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&amp;&amp;this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},e.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&amp;&amp;this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},e.prototype.handleClick=function(t){},e.prototype.handleFocus=function(t){zt(s,"keydown",te(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.trigger("click")):t.prototype.handleKeyPress&amp;&amp;t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(t){Wt(s,"keydown",te(this,this.handleKeyPress))},e}(ye);ye.registerComponent("ClickableComponent",Ai);var xi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.update(),i.on("posterchange",te(r,r.update)),r}return U(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=at("div",{className:"vjs-poster",tabIndex:-1});return D||(this.fallbackImg_=at("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&amp;&amp;(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(t){this.player_.controls()&amp;&amp;(this.player_.paused()?Le(this.player_.play()):this.player_.pause())},e}(Ai);ye.registerComponent("PosterImage",xi);var Oi={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 Pi(t,e){var i=void 0;if(4===t.length)i=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");i=t.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+e+")"}function Li(t,e,i){try{t.style[e]=i}catch(t){return}}var Ii=function(t){function e(i,n,r){j(this,e);var a=N(this,t.call(this,i,n,r));return i.on("loadstart",te(a,a.toggleDisplay)),i.on("texttrackchange",te(a,a.updateDisplay)),i.on("loadstart",te(a,a.preselectTrack)),i.ready(te(a,function(){if(i.tech_&amp;&amp;i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",te(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e&lt;t.length;e++)this.player_.addRemoteTextTrack(t[e],!0);this.preselectTrack()}})),a}return U(e,t),e.prototype.preselectTrack=function(){for(var t={captions:1,subtitles:1},e=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage,n=void 0,r=void 0,a=void 0,s=0;s&lt;e.length;s++){var o=e[s];i&amp;&amp;i.enabled&amp;&amp;i.language===o.language?o.kind===i.kind?a=o:a||(a=o):i&amp;&amp;!i.enabled?(a=null,n=null,r=null):o.default&amp;&amp;("descriptions"!==o.kind||n?o.kind in t&amp;&amp;!r&amp;&amp;(r=o):n=o)}a?a.mode="showing":r?r.mode="showing":n&amp;&amp;(n.mode="showing")},e.prototype.toggleDisplay=function(){this.player_.tech_&amp;&amp;this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"==typeof a.WebVTT&amp;&amp;a.WebVTT.processCues(a,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();this.clearDisplay();for(var e=null,i=null,n=t.length;n--;){var r=t[n];"showing"===r.mode&amp;&amp;("descriptions"===r.kind?e=r:i=r)}i?("off"!==this.getAttribute("aria-live")&amp;&amp;this.setAttribute("aria-live","off"),this.updateForTrack(i)):e&amp;&amp;("assertive"!==this.getAttribute("aria-live")&amp;&amp;this.setAttribute("aria-live","assertive"),this.updateForTrack(e))},e.prototype.updateForTrack=function(t){if("function"==typeof a.WebVTT&amp;&amp;t.activeCues){for(var e=[],i=0;i&lt;t.activeCues.length;i++)e.push(t.activeCues[i]);if(a.WebVTT.processCues(a,e,this.el_),this.player_.textTrackSettings)for(var n=this.player_.textTrackSettings.getValues(),r=e.length;r--;){var s=e[r];if(s){var o=s.displayState;if(n.color&amp;&amp;(o.firstChild.style.color=n.color),n.textOpacity&amp;&amp;Li(o.firstChild,"color",Pi(n.color||"#fff",n.textOpacity)),n.backgroundColor&amp;&amp;(o.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&amp;&amp;Li(o.firstChild,"backgroundColor",Pi(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&amp;&amp;(n.windowOpacity?Li(o,"backgroundColor",Pi(n.windowColor,n.windowOpacity)):o.style.backgroundColor=n.windowColor),n.edgeStyle&amp;&amp;("dropshadow"===n.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===n.edgeStyle?o.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===n.edgeStyle?o.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===n.edgeStyle&amp;&amp;(o.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),n.fontPercent&amp;&amp;1!==n.fontPercent){var l=a.parseFloat(o.style.fontSize);o.style.fontSize=l*n.fontPercent+"px",o.style.height="auto",o.style.top="auto",o.style.bottom="2px"}n.fontFamily&amp;&amp;"default"!==n.fontFamily&amp;&amp;("small-caps"===n.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=Oi[n.fontFamily])}}}},e}(ye);ye.registerComponent("TextTrackDisplay",Ii);var Di=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),i=this.localize(e?"Audio Player":"Video Player"),n=at("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[i])}),r=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(n),r},e}(ye);ye.registerComponent("LoadingSpinner",Di);var Mi=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};e=z({innerHTML:'&lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;',className:this.buildCSSClass()},e),i=z({type:"button"},i);var n=ye.prototype.createEl.call(this,"button",e,i);return this.createControlTextEl(n),n},e.prototype.addChild=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=this.constructor.name;return $.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),ye.prototype.addChild.call(this,t,e)},e.prototype.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},e.prototype.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},e.prototype.handleKeyPress=function(e){32!==e.which&amp;&amp;13!==e.which&amp;&amp;t.prototype.handleKeyPress.call(this,e)},e}(Ai);ye.registerComponent("Button",Mi);var Ri=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&amp;&amp;t.clientX&amp;&amp;t.clientY)Le(e);else{var i=this.player_.getChild("controlBar"),n=i&amp;&amp;i.getChild("playToggle");if(n){var r=function(){return n.focus()};Pe(e)?e.then(r,function(){}):this.setTimeout(r,1)}else this.player_.focus()}},e.prototype.handleKeyPress=function(e){this.mouseused_=!1,t.prototype.handleKeyPress.call(this,e)},e.prototype.handleMouseDown=function(t){this.mouseused_=!0},e}(Mi);Ri.prototype.controlText_="Play Video",ye.registerComponent("BigPlayButton",Ri);var ji=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.controlText(n&amp;&amp;n.controlText||r.localize("Close")),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},e}(Mi);ye.registerComponent("CloseButton",ji);var Ui=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"play",r.handlePlay),r.on(i,"pause",r.handlePause),r.on(i,"ended",r.handleEnded),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},e.prototype.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e.prototype.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}(Mi);Ui.prototype.controlText_="Play",ye.registerComponent("PlayToggle",Ui);var Ni=function(t,e){t=t&lt;0?0:t;var i=Math.floor(t%60),n=Math.floor(t/60%60),r=Math.floor(t/3600),a=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&amp;&amp;(r=n=i="-"),(r=r&gt;0||s&gt;0?r+":":"")+(n=((r||a&gt;=10)&amp;&amp;n&lt;10?"0"+n:n)+":")+(i=i&lt;10?"0"+i:i)},Bi=Ni;var Fi=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:t;return Bi(t,e)},Hi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.throttledUpdateContent=ee(te(r,r.updateContent),25),r.on(i,"timeupdate",r.throttledUpdateContent),r}return U(e,t),e.prototype.createEl=function(e){var i=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:i+" vjs-time-control vjs-control",innerHTML:'&lt;span class="vjs-control-text"&gt;'+this.localize(this.labelText_)+"Â&nbsp;&lt;/span&gt;"});return this.contentEl_=at("span",{className:i+"-display"},{"aria-live":"off"}),this.updateTextNode_(),n.appendChild(this.contentEl_),n},e.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},e.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=s.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},e.prototype.formatTime_=function(t){return Fi(t)},e.prototype.updateFormattedTime_=function(t){var e=this.formatTime_(t);e!==this.formattedTime_&amp;&amp;(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},e.prototype.updateContent=function(t){},e}(ye);Hi.prototype.labelText_="Time",Hi.prototype.controlText_="Time",ye.registerComponent("TimeDisplay",Hi);var Vi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"ended",r.handleEnded),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-current-time"},e.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(e)},e.prototype.handleEnded=function(t){this.player_.duration()&amp;&amp;this.updateFormattedTime_(this.player_.duration())},e}(Hi);Vi.prototype.labelText_="Current Time",Vi.prototype.controlText_="Current Time",ye.registerComponent("CurrentTimeDisplay",Vi);var zi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"durationchange",r.updateContent),r.on(i,"loadedmetadata",r.throttledUpdateContent),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-duration"},e.prototype.updateContent=function(t){var e=this.player_.duration();e&amp;&amp;this.duration_!==e&amp;&amp;(this.duration_=e,this.updateFormattedTime_(e))},e}(Hi);zi.prototype.labelText_="Duration",zi.prototype.controlText_="Duration",ye.registerComponent("DurationDisplay",zi);var Wi=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"&lt;div&gt;&lt;span&gt;/&lt;/span&gt;&lt;/div&gt;"})},e}(ye);ye.registerComponent("TimeDivider",Wi);var qi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"durationchange",r.throttledUpdateContent),r.on(i,"ended",r.handleEnded),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-remaining-time"},e.prototype.formatTime_=function(e){return"-"+t.prototype.formatTime_.call(this,e)},e.prototype.updateContent=function(t){this.player_.duration()&amp;&amp;(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},e.prototype.handleEnded=function(t){this.player_.duration()&amp;&amp;this.updateFormattedTime_(0)},e}(Hi);qi.prototype.labelText_="Remaining Time",qi.prototype.controlText_="Remaining Time",ye.registerComponent("RemainingTimeDisplay",qi);var Gi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return U(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=at("div",{className:"vjs-live-display",innerHTML:'&lt;span class="vjs-control-text"&gt;'+this.localize("Stream Type")+"Â&nbsp;&lt;/span&gt;"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(ye);ye.registerComponent("LiveDisplay",Gi);var Xi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return U(e,t),e.prototype.enabled=function(){return this.enabled_},e.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&amp;&amp;this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},e.prototype.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&amp;&amp;this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},e.prototype.createEl=function(e){var i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};return i.className=i.className+" vjs-slider",i=z({tabIndex:0},i),n=z({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),t.prototype.createEl.call(this,e,i,n)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&amp;&amp;t.preventDefault(),"touchstart"!==t.type||E||t.preventDefault(),yt(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(t){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;vt(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!=t||t&lt;0||t===1/0)&amp;&amp;(t=0);var i=(100*t).toFixed(2)+"%",n=e.el().style;return this.vertical()?n.height=i:n.width=i,t}}},e.prototype.calculateDistance=function(t){var e=Tt(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&amp;&amp;39!==t.which||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(ye);ye.registerComponent("Slider",Xi);var Yi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.partEls_=[],r.on(i,"progress",r.update),r}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'&lt;span class="vjs-control-text"&gt;&lt;span&gt;'+this.localize("Loaded")+"&lt;/span&gt;: 0%&lt;/span&gt;"})},e.prototype.dispose=function(){this.partEls_=null,t.prototype.dispose.call(this)},e.prototype.update=function(t){var e=this.player_.buffered(),i=this.player_.duration(),n=this.player_.bufferedEnd(),r=this.partEls_,a=function(t,e){var i=t/e||0;return 100*(i&gt;=1?1:i)+"%"};this.el_.style.width=a(n,i);for(var s=0;s&lt;e.length;s++){var o=e.start(s),l=e.end(s),u=r[s];u||(u=this.el_.appendChild(at()),r[s]=u),u.style.left=a(o,n),u.style.width=a(l-o,n)}for(var c=r.length;c&gt;e.length;c--)this.el_.removeChild(r[c-1]);r.length=e.length},e}(ye);ye.registerComponent("LoadProgressBar",Yi);var Ki=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},e.prototype.update=function(t,e,i){var n=_t(this.el_),r=_t(this.player_.el()),a=t.width*e;if(r&amp;&amp;n){var s=t.left-r.left+a,o=t.width-a+(r.right-t.right),l=n.width/2;s&lt;l?l+=l-s:o&lt;l&amp;&amp;(l=o),l&lt;0?l=0:l&gt;n.width&amp;&amp;(l=n.width),this.el_.style.right="-"+l+"px",st(this.el_,i)}},e}(ye);ye.registerComponent("TimeTooltip",Ki);var $i=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'&lt;span class="vjs-control-text"&gt;&lt;span&gt;'+this.localize("Progress")+"&lt;/span&gt;: 0%&lt;/span&gt;"})},e.prototype.update=function(t,e){var i=this;this.rafId_&amp;&amp;this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var n=i.player_.scrubbing()?i.player_.getCache().currentTime:i.player_.currentTime(),r=Fi(n,i.player_.duration()),a=i.getChild("timeTooltip");a&amp;&amp;a.update(t,e,r)})},e}(ye);$i.prototype.options_={children:[]},O&amp;&amp;!(O&gt;8)||v||b||$i.prototype.options_.children.push("timeTooltip"),ye.registerComponent("PlayProgressBar",$i);var Ji=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.update=ee(te(r,r.update),25),r}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.update=function(t,e){var i=this;this.rafId_&amp;&amp;this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var n=i.player_.duration(),r=Fi(e*n,n);i.el_.style.left=t.width*e+"px",i.getChild("timeTooltip").update(t,e,r)})},e}(ye);Ji.prototype.options_={children:["timeTooltip"]},ye.registerComponent("MouseTimeDisplay",Ji);var Zi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.setEventHandlers_(),r}return U(e,t),e.prototype.setEventHandlers_=function(){var t=this;this.update=ee(te(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){t.clearInterval(t.updateInterval),t.updateInterval=t.setInterval(function(){t.requestAnimationFrame(function(){t.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){t.clearInterval(t.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},e.prototype.update_=function(t,e){var i=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Fi(t,i),Fi(i,i)],"{1} of {2}")),this.bar.update(_t(this.el_),e)},e.prototype.update=function(e){var i=t.prototype.update.call(this);return this.update_(this.getCurrentTime_(),i),i},e.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},e.prototype.handleEnded=function(t){this.update_(this.player_.duration(),1)},e.prototype.getPercent=function(){var t=this.getCurrentTime_()/this.player_.duration();return t&gt;=1?1:t},e.prototype.handleMouseDown=function(e){At(e)&amp;&amp;(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},e.prototype.handleMouseMove=function(t){if(At(t)){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&amp;&amp;(e-=.1),this.player_.currentTime(e)}},e.prototype.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&amp;&amp;e.show()},e.prototype.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&amp;&amp;e.hide()},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&amp;&amp;e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&amp;&amp;Le(this.player_.play())},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleAction(e)):t.prototype.handleKeyPress&amp;&amp;t.prototype.handleKeyPress.call(this,e)},e}(Xi);Zi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},O&amp;&amp;!(O&gt;8)||v||b||Zi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Zi.prototype.playerEvent="timeupdate",ye.registerComponent("SeekBar",Zi);var Qi=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.handleMouseMove=ee(te(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=ee(te(r,r.handleMouseSeek),25),r.enable(),r}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var i=e.getChild("mouseTimeDisplay"),n=e.el(),r=_t(n),a=Tt(n,t).x;a&gt;1?a=1:a&lt;0&amp;&amp;(a=0),i&amp;&amp;i.update(r,a)}},e.prototype.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&amp;&amp;e.handleMouseMove(t)},e.prototype.enabled=function(){return this.enabled_},e.prototype.disable=function(){this.children().forEach(function(t){return t.disable&amp;&amp;t.disable()}),this.enabled()&amp;&amp;(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},e.prototype.enable=function(){this.children().forEach(function(t){return t.enable&amp;&amp;t.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument,i=this.getChild("seekBar");i&amp;&amp;i.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument,i=this.getChild("seekBar");i&amp;&amp;i.handleMouseUp(t),this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e}(ye);Qi.prototype.options_={children:["seekBar"]},ye.registerComponent("ProgressControl",Qi);var tn=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"fullscreenchange",r.handleFullscreenChange),!1===s[Se.fullscreenEnabled]&amp;&amp;r.disable(),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},e.prototype.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(Mi);tn.prototype.controlText_="Fullscreen",ye.registerComponent("FullscreenToggle",tn);var en=function(t,e){e.tech_&amp;&amp;!e.tech_.featuresVolumeControl&amp;&amp;t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},nn=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'&lt;span class="vjs-control-text"&gt;&lt;/span&gt;'})},e}(ye);ye.registerComponent("VolumeLevel",nn);var rn=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on("slideractive",r.updateLastVolume_),r.on(i,"volumechange",r.updateARIAAttributes),i.ready(function(){return r.updateARIAAttributes()}),r}return U(e,t),e.prototype.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"})},e.prototype.handleMouseDown=function(e){At(e)&amp;&amp;t.prototype.handleMouseDown.call(this,e)},e.prototype.handleMouseMove=function(t){At(t)&amp;&amp;(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},e.prototype.checkMuted=function(){this.player_.muted()&amp;&amp;this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},e.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},e.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&amp;&amp;t.player_.lastVolume_(e)})},e}(Xi);rn.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},rn.prototype.playerEvent="volumechange",ye.registerComponent("VolumeBar",rn);var an=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};j(this,e),n.vertical=n.vertical||!1,(void 0===n.volumeBar||q(n.volumeBar))&amp;&amp;(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var r=N(this,t.call(this,i,n));return en(r,i),r.throttledHandleMouseMove=ee(te(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")}),r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")}),r}return U(e,t),e.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&amp;&amp;(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(ye);an.prototype.options_={children:["volumeBar"]},ye.registerComponent("VolumeControl",an);var sn=function(t,e){e.tech_&amp;&amp;!e.tech_.featuresMuteControl&amp;&amp;t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},on=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return sn(r,i),r.on(i,["loadstart","volumechange"],r.update),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){var e=this.player_.volume(),i=this.player_.lastVolume_();if(0===e){var n=i&lt;.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},e.prototype.update=function(t){this.updateIcon_(),this.updateControlText_()},e.prototype.updateIcon_=function(){var t=this.player_.volume(),e=3;v&amp;&amp;this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t&lt;.33?e=1:t&lt;.67&amp;&amp;(e=2);for(var i=0;i&lt;4;i++)ct(this.el_,"vjs-vol-"+i);ut(this.el_,"vjs-vol-"+e)},e.prototype.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&amp;&amp;this.controlText(t)},e}(Mi);on.prototype.controlText_="Mute",ye.registerComponent("MuteToggle",on);var ln=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};j(this,e),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||q(n.volumeControl))&amp;&amp;(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var r=N(this,t.call(this,i,n));return r.on(i,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return U(e,t),e.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},e.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},e.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&amp;&amp;this.muteToggle.hasClass("vjs-hidden")&amp;&amp;this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&amp;&amp;!this.muteToggle.hasClass("vjs-hidden")&amp;&amp;this.addClass("vjs-mute-toggle-only")},e.prototype.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})},e}(ye);ln.prototype.options_={children:["muteToggle","volumeControl"]},ye.registerComponent("VolumePanel",ln);var un=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return n&amp;&amp;(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return U(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",te(this,function(e){this.menuButton_&amp;&amp;(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==t.name()&amp;&amp;this.menuButton_.focus())}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=at(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),zt(i,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),i},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&amp;&amp;39!==t.which||(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&amp;&amp;(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&amp;&amp;(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:0,e=this.children().slice();e.length&amp;&amp;e[0].className&amp;&amp;/vjs-menu-title/.test(e[0].className)&amp;&amp;e.shift(),e.length&gt;0&amp;&amp;(t&lt;0?t=0:t&gt;=e.length&amp;&amp;(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(ye);ye.registerComponent("Menu",un);var cn=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};j(this,e);var r=N(this,t.call(this,i,n));r.menuButton_=new Mi(i,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var a=Mi.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+a,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return U(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&amp;&amp;(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&amp;&amp;this.items.length&lt;=this.hideThreshold_?this.hide():this.show()},e.prototype.createMenu=function(){var t=new un(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=at("li",{className:"vjs-menu-title",innerHTML:ge(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,t.children_.unshift(e),ot(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var i=0;i&lt;this.items.length;i++)t.addItem(this.items[i]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},e.prototype.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Mi.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},e.prototype.controlText=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(t,e)},e.prototype.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",te(this,function(t){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.focus=function(){this.menuButton_.focus()},e.prototype.blur=function(){this.menuButton_.blur()},e.prototype.handleFocus=function(){zt(s,"keydown",te(this,this.handleKeyPress))},e.prototype.handleBlur=function(){Wt(s,"keydown",te(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&amp;&amp;this.unpressButton(),9!==t.which&amp;&amp;(t.preventDefault(),this.menuButton_.el_.focus())):38!==t.which&amp;&amp;40!==t.which||this.buttonPressed_||(this.pressButton(),t.preventDefault())},e.prototype.handleSubmenuKeyPress=function(t){27!==t.which&amp;&amp;9!==t.which||(this.buttonPressed_&amp;&amp;this.unpressButton(),9!==t.which&amp;&amp;(t.preventDefault(),this.menuButton_.el_.focus()))},e.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),v&amp;&amp;nt())return;this.menu.focus()}},e.prototype.unpressButton=function(){this.enabled_&amp;&amp;(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},e.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},e.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(ye);ye.registerComponent("MenuButton",cn);var hn=function(t){function e(i,n){j(this,e);var r=n.tracks,a=N(this,t.call(this,i,n));if(a.items.length&lt;=1&amp;&amp;a.hide(),!r)return N(a);var s=te(a,a.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),a.player_.on("ready",s),a.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)}),a}return U(e,t),e}(cn);ye.registerComponent("TrackButton",hn);var dn=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return U(e,t),e.prototype.createEl=function(e,i,n){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",z({className:"vjs-menu-item",innerHTML:'&lt;span class="vjs-menu-item-text"&gt;'+this.localize(this.options_.label)+"&lt;/span&gt;",tabIndex:-1},i),n)},e.prototype.handleClick=function(t){this.selected(!0)},e.prototype.selected=function(t){this.selectable&amp;&amp;(t?(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))},e}(Ai);ye.registerComponent("MenuItem",dn);var pn=function(t){function e(i,n){j(this,e);var r=n.track,o=i.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode;var l=N(this,t.call(this,i,n));l.track=r;var u=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];l.handleTracksChange.apply(l,e)},c=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];l.handleSelectedLanguageChange.apply(l,e)};if(i.on(["loadstart","texttrackchange"],u),o.addEventListener("change",u),o.addEventListener("selectedlanguagechange",c),l.on("dispose",function(){i.off(["loadstart","texttrackchange"],u),o.removeEventListener("change",u),o.removeEventListener("selectedlanguagechange",c)}),void 0===o.onchange){var h=void 0;l.on(["tap","click"],function(){if("object"!==R(a.Event))try{h=new a.Event("change")}catch(t){}h||(h=s.createEvent("Event")).initEvent("change",!0,!0),o.dispatchEvent(h)})}return l.handleTracksChange(),l}return U(e,t),e.prototype.handleClick=function(e){var i=this.track.kind,n=this.track.kinds,r=this.player_.textTracks();if(n||(n=[i]),t.prototype.handleClick.call(this,e),r)for(var a=0;a&lt;r.length;a++){var s=r[a];s===this.track&amp;&amp;n.indexOf(s.kind)&gt;-1?"showing"!==s.mode&amp;&amp;(s.mode="showing"):"disabled"!==s.mode&amp;&amp;(s.mode="disabled")}},e.prototype.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&amp;&amp;this.selected(e)},e.prototype.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&amp;&amp;e.enabled&amp;&amp;e.language===this.track.language&amp;&amp;e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},e.prototype.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(dn);ye.registerComponent("TextTrackMenuItem",pn);var fn=function(t){function e(i,n){return j(this,e),n.track={player:i,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,N(this,t.call(this,i,n))}return U(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!0,n=0,r=e.length;n&lt;r;n++){var a=e[n];if(this.options_.kinds.indexOf(a.kind)&gt;-1&amp;&amp;"showing"===a.mode){i=!1;break}}i!==this.isSelected_&amp;&amp;this.selected(i)},e.prototype.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),i=!0,n=0,r=e.length;n&lt;r;n++){var a=e[n];if(["captions","descriptions","subtitles"].indexOf(a.kind)&gt;-1&amp;&amp;"showing"===a.mode){i=!1;break}}i&amp;&amp;(this.player_.cache_.selectedLanguage={enabled:!1})},e}(pn);ye.registerComponent("OffTextTrackMenuItem",fn);var gn=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return j(this,e),n.tracks=i.textTracks(),N(this,t.call(this,i,n))}return U(e,t),e.prototype.createItems=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[],e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:pn,i=void 0;this.label_&amp;&amp;(i=this.label_+" off"),t.push(new fn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r&lt;n.length;r++){var a=n[r];if(this.kinds_.indexOf(a.kind)&gt;-1){var s=new e(this.player_,{track:a,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),t.push(s)}}return t},e}(hn);ye.registerComponent("TextTrackButton",gn);var mn=function(t){function e(i,n){j(this,e);var r=n.track,a=n.cue,s=i.currentTime();n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime&lt;=s&amp;&amp;s&lt;a.endTime;var o=N(this,t.call(this,i,n));return o.track=r,o.cue=a,r.addEventListener("cuechange",te(o,o.update)),o}return U(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(t){var e=this.cue,i=this.player_.currentTime();this.selected(e.startTime&lt;=i&amp;&amp;i&lt;e.endTime)},e}(dn);ye.registerComponent("ChaptersTrackMenuItem",mn);var yn=function(t){function e(i,n,r){return j(this,e),N(this,t.call(this,i,n,r))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.update=function(e){this.track_&amp;&amp;(!e||"addtrack"!==e.type&amp;&amp;"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},e.prototype.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&amp;&amp;e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&amp;&amp;i.addEventListener("load",this.updateHandler_)}}},e.prototype.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e&gt;=0;e--){var i=t[e];if(i.kind===this.kind_)return i}},e.prototype.getMenuCaption=function(){return this.track_&amp;&amp;this.track_.label?this.track_.label:this.localize(ge(this.kind_))},e.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},e.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var i=0,n=e.length;i&lt;n;i++){var r=e[i],a=new mn(this.player_,{track:this.track_,cue:r});t.push(a)}return t},e}(gn);yn.prototype.kind_="chapters",yn.prototype.controlText_="Chapters",ye.registerComponent("ChaptersButton",yn);var vn=function(t){function e(i,n,r){j(this,e);var a=N(this,t.call(this,i,n,r)),s=i.textTracks(),o=te(a,a.handleTracksChange);return s.addEventListener("change",o),a.on("dispose",function(){s.removeEventListener("change",o)}),a}return U(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!1,n=0,r=e.length;n&lt;r;n++){var a=e[n];if(a.kind!==this.kind_&amp;&amp;"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(gn);vn.prototype.kind_="descriptions",vn.prototype.controlText_="Descriptions",ye.registerComponent("DescriptionsButton",vn);var _n=function(t){function e(i,n,r){return j(this,e),N(this,t.call(this,i,n,r))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(gn);_n.prototype.kind_="subtitles",_n.prototype.controlText_="Subtitles",ye.registerComponent("SubtitlesButton",_n);var bn=function(t){function e(i,n){j(this,e),n.track={player:i,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem";var r=N(this,t.call(this,i,n));return r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return U(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(pn);ye.registerComponent("CaptionSettingsMenuItem",bn);var Tn=function(t){function e(i,n,r){return j(this,e),N(this,t.call(this,i,n,r))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&amp;&amp;this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new bn(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(gn);Tn.prototype.kind_="captions",Tn.prototype.controlText_="Captions",ye.registerComponent("CaptionsButton",Tn);var Sn=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(e,i,n){var r='&lt;span class="vjs-menu-item-text"&gt;'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&amp;&amp;(r+='\n        &lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;\n        &lt;span class="vjs-control-text"&gt; '+this.localize("Captions")+"&lt;/span&gt;\n      "),r+="&lt;/span&gt;",t.prototype.createEl.call(this,e,z({innerHTML:r},i),n)},e}(pn);ye.registerComponent("SubsCapsMenuItem",Sn);var kn=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};j(this,e);var r=N(this,t.call(this,i,n));return r.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)&gt;-1&amp;&amp;(r.label_="captions"),r.menuButton_.controlText(ge(r.label_)),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&amp;&amp;this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new bn(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,Sn)},e}(gn);kn.prototype.kinds_=["captions","subtitles"],kn.prototype.controlText_="Subtitles",ye.registerComponent("SubsCapsButton",kn);var Cn=function(t){function e(i,n){j(this,e);var r=n.track,a=i.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled;var s=N(this,t.call(this,i,n));s.track=r,s.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var t=arguments.length,e=Array(t),i=0;i&lt;t;i++)e[i]=arguments[i];s.handleTracksChange.apply(s,e)};return a.addEventListener("change",o),s.on("dispose",function(){a.removeEventListener("change",o)}),s}return U(e,t),e.prototype.createEl=function(e,i,n){var r='&lt;span class="vjs-menu-item-text"&gt;'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&amp;&amp;(r+='\n        &lt;span aria-hidden="true" class="vjs-icon-placeholder"&gt;&lt;/span&gt;\n        &lt;span class="vjs-control-text"&gt; '+this.localize("Descriptions")+"&lt;/span&gt;\n      "),r+="&lt;/span&gt;",t.prototype.createEl.call(this,e,z({innerHTML:r},i),n)},e.prototype.handleClick=function(e){var i=this.player_.audioTracks();t.prototype.handleClick.call(this,e);for(var n=0;n&lt;i.length;n++){var r=i[n];r.enabled=r===this.track}},e.prototype.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(dn);ye.registerComponent("AudioTrackMenuItem",Cn);var wn=function(t){function e(i){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return j(this,e),n.tracks=i.audioTracks(),N(this,t.call(this,i,n))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var e=this.player_.audioTracks(),i=0;i&lt;e.length;i++){var n=e[i];t.push(new Cn(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return t},e}(hn);wn.prototype.controlText_="Audio Track",ye.registerComponent("AudioTrackButton",wn);var En=function(t){function e(i,n){j(this,e);var r=n.rate,a=parseFloat(r,10);n.label=r,n.selected=1===a,n.selectable=!0,n.multiSelectable=!1;var s=N(this,t.call(this,i,n));return s.label=r,s.rate=a,s.on(i,"ratechange",s.update),s}return U(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(dn);En.prototype.contentElType="button",ye.registerComponent("PlaybackRateMenuItem",En);var An=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.updateVisibility(),r.updateLabel(),r.on(i,"loadstart",r.updateVisibility),r.on(i,"ratechange",r.updateLabel),r}return U(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=at("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},e.prototype.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createMenu=function(){var t=new un(this.player()),e=this.playbackRates();if(e)for(var i=e.length-1;i&gt;=0;i--)t.addChild(new En(this.player(),{rate:e[i]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(t){for(var e=this.player().playbackRate(),i=this.playbackRates(),n=i[0],r=0;r&lt;i.length;r++)if(i[r]&gt;e){n=i[r];break}this.player().playbackRate(n)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&amp;&amp;this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&amp;&amp;this.player().tech_.featuresPlaybackRate&amp;&amp;this.playbackRates()&amp;&amp;this.playbackRates().length&gt;0},e.prototype.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(t){this.playbackRateSupported()&amp;&amp;(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(cn);An.prototype.controlText_="Playback Rate",ye.registerComponent("PlaybackRateMenuButton",An);var xn=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(ye);ye.registerComponent("Spacer",xn);var On=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML="Â&nbsp;",e},e}(xn);ye.registerComponent("CustomControlSpacer",On);var Pn=function(t){function e(){return j(this,e),N(this,t.apply(this,arguments))}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(ye);Pn.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},ye.registerComponent("ControlBar",Pn);var Ln=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n));return r.on(i,"error",r.open),r}return U(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(je);Ln.prototype.options_=me(je.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),ye.registerComponent("ErrorDisplay",Ln);var In=["#000","Black"],Dn=["#00F","Blue"],Mn=["#0FF","Cyan"],Rn=["#0F0","Green"],jn=["#F0F","Magenta"],Un=["#F00","Red"],Nn=["#FFF","White"],Bn=["#FF0","Yellow"],Fn=["1","Opaque"],Hn=["0.5","Semi-Transparent"],Vn=["0","Transparent"],zn={backgroundColor:{selector:".vjs-bg-color &gt; select",id:"captions-background-color-%s",label:"Color",options:[In,Nn,Un,Rn,Dn,Bn,jn,Mn]},backgroundOpacity:{selector:".vjs-bg-opacity &gt; select",id:"captions-background-opacity-%s",label:"Transparency",options:[Fn,Hn,Vn]},color:{selector:".vjs-fg-color &gt; select",id:"captions-foreground-color-%s",label:"Color",options:[Nn,In,Un,Rn,Dn,Bn,jn,Mn]},edgeStyle:{selector:".vjs-edge-style &gt; select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family &gt; select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent &gt; select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity &gt; select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Fn,Hn]},windowColor:{selector:".vjs-window-color &gt; select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity &gt; select",id:"captions-window-opacity-%s",label:"Transparency",options:[Vn,Hn,Fn]}};function Wn(t,e){if(e&amp;&amp;(t=e(t)),t&amp;&amp;"none"!==t)return t}zn.windowColor.options=zn.backgroundColor.options;var qn=function(t){function e(i,n){j(this,e),n.temporary=!1;var r=N(this,t.call(this,i,n));return r.updateDisplay=te(r,r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=at("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&amp;&amp;(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.close()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),V(zn,function(t){r.on(r.$(t.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&amp;&amp;r.restoreSettings(),r}return U(e,t),e.prototype.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},e.prototype.createElSelect_=function(t){var e=this,i=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"",n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"label",r=zn[t],a=r.id.replace("%s",this.id_),s=[i,a].join(" ").trim();return["&lt;"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'"&gt;',this.localize(r.label),"&lt;/"+n+"&gt;",'&lt;select aria-labelledby="'+s+'"&gt;'].concat(r.options.map(function(t){var i=a+"-"+t[1].replace(/\W+/g,"");return['&lt;option id="'+i+'" value="'+t[0]+'" ','aria-labelledby="'+s+" "+i+'"&gt;',e.localize(t[1]),"&lt;/option&gt;"].join("")})).concat("&lt;/select&gt;").join("")},e.prototype.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['&lt;fieldset class="vjs-fg-color vjs-track-setting"&gt;','&lt;legend id="'+t+'"&gt;',this.localize("Text"),"&lt;/legend&gt;",this.createElSelect_("color",t),'&lt;span class="vjs-text-opacity vjs-opacity"&gt;',this.createElSelect_("textOpacity",t),"&lt;/span&gt;","&lt;/fieldset&gt;"].join("")},e.prototype.createElBgColor_=function(){var t="captions-background-"+this.id_;return['&lt;fieldset class="vjs-bg-color vjs-track-setting"&gt;','&lt;legend id="'+t+'"&gt;',this.localize("Background"),"&lt;/legend&gt;",this.createElSelect_("backgroundColor",t),'&lt;span class="vjs-bg-opacity vjs-opacity"&gt;',this.createElSelect_("backgroundOpacity",t),"&lt;/span&gt;","&lt;/fieldset&gt;"].join("")},e.prototype.createElWinColor_=function(){var t="captions-window-"+this.id_;return['&lt;fieldset class="vjs-window-color vjs-track-setting"&gt;','&lt;legend id="'+t+'"&gt;',this.localize("Window"),"&lt;/legend&gt;",this.createElSelect_("windowColor",t),'&lt;span class="vjs-window-opacity vjs-opacity"&gt;',this.createElSelect_("windowOpacity",t),"&lt;/span&gt;","&lt;/fieldset&gt;"].join("")},e.prototype.createElColors_=function(){return at("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},e.prototype.createElFont_=function(){return at("div",{className:"vjs-track-settings-font",innerHTML:['&lt;fieldset class="vjs-font-percent vjs-track-setting"&gt;',this.createElSelect_("fontPercent","","legend"),"&lt;/fieldset&gt;",'&lt;fieldset class="vjs-edge-style vjs-track-setting"&gt;',this.createElSelect_("edgeStyle","","legend"),"&lt;/fieldset&gt;",'&lt;fieldset class="vjs-font-family vjs-track-setting"&gt;',this.createElSelect_("fontFamily","","legend"),"&lt;/fieldset&gt;"].join("")})},e.prototype.createElControls_=function(){var t=this.localize("restore all settings to the default values");return at("div",{className:"vjs-track-settings-controls",innerHTML:['&lt;button class="vjs-default-button" title="'+t+'"&gt;',this.localize("Reset"),'&lt;span class="vjs-control-text"&gt; '+t+"&lt;/span&gt;","&lt;/button&gt;",'&lt;button class="vjs-done-button"&gt;'+this.localize("Done")+"&lt;/button&gt;"].join("")})},e.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},e.prototype.label=function(){return this.localize("Caption Settings Dialog")},e.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},e.prototype.buildCSSClass=function(){return t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},e.prototype.getValues=function(){var t=this;return function(t,e){var i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:0;return H(t).reduce(function(i,n){return e(i,t[n],n)},i)}(zn,function(e,i,n){var r,a,s=(r=t.$(i.selector),a=i.parser,Wn(r.options[r.options.selectedIndex].value,a));return void 0!==s&amp;&amp;(e[n]=s),e},{})},e.prototype.setValues=function(t){var e=this;V(zn,function(i,n){!function(t,e,i){if(e)for(var n=0;n&lt;t.options.length;n++)if(Wn(t.options[n].value,i)===e){t.selectedIndex=n;break}}(e.$(i.selector),t[n],i.parser)})},e.prototype.setDefaults=function(){var t=this;V(zn,function(e){var i=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=i})},e.prototype.restoreSettings=function(){var t=void 0;try{t=JSON.parse(a.localStorage.getItem("vjs-text-track-settings"))}catch(t){$.warn(t)}t&amp;&amp;this.setValues(t)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):a.localStorage.removeItem("vjs-text-track-settings")}catch(t){$.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&amp;&amp;t.updateDisplay()},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(s,"keydown",this.handleKeyDown);var t=this.player_.controlBar,e=t&amp;&amp;t.subsCapsButton,i=t&amp;&amp;t.captionsButton;e?e.focus():i&amp;&amp;i.focus()},e}(je);ye.registerComponent("TextTrackSettings",qn);var Gn=function(t){function e(i,n){j(this,e);var r=n.ResizeObserver||a.ResizeObserver;null===n.ResizeObserver&amp;&amp;(r=!1);var s=me({createEl:!r},n),o=N(this,t.call(this,i,s));return o.ResizeObserver=n.ResizeObserver||a.ResizeObserver,o.loadListener_=null,o.resizeObserver_=null,o.debouncedHandler_=ie(function(){o.resizeHandler()},100,!1,i),r?(o.resizeObserver_=new o.ResizeObserver(o.debouncedHandler_),o.resizeObserver_.observe(i.el())):(o.loadListener_=function(){o.el_.contentWindow&amp;&amp;zt(o.el_.contentWindow,"resize",o.debouncedHandler_),o.off("load",o.loadListener_)},o.on("load",o.loadListener_)),o}return U(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},e.prototype.resizeHandler=function(){this.player_.trigger("playerresize")},e.prototype.dispose=function(){this.resizeObserver_&amp;&amp;(this.player_.el()&amp;&amp;this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&amp;&amp;this.el_.contentWindow&amp;&amp;Wt(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&amp;&amp;this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},e}(ye);ye.registerComponent("ResizeManager",Gn);var Xn=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var i=t.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a&lt;i.length;a++){var s=i[a].src;s&amp;&amp;-1===n.indexOf(s)&amp;&amp;n.push(s)}return!!n.length&amp;&amp;(1===n.length&amp;&amp;(r=n[0]),t.triggerSourceset(r),!0)},Yn={};x||(Yn=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=s.createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var i=s.createDocumentFragment();e.childNodes.length;)i.appendChild(e.childNodes[0]);return this.innerText="",a.Element.prototype.appendChild.call(this,i),this.innerHTML}}));var Kn=function(t,e){for(var i={},n=0;n&lt;t.length&amp;&amp;!((i=Object.getOwnPropertyDescriptor(t[n],e))&amp;&amp;i.set&amp;&amp;i.get);n++);return i.enumerable=!0,i.configurable=!0,i},$n=function(t){var e=t.el();if(!e.resetSourceWatch_){var i={},n=function(t){return Kn([t.el(),a.HTMLMediaElement.prototype,a.Element.prototype,Yn],"innerHTML")}(t),r=function(i){return function(){for(var n=arguments.length,r=Array(n),a=0;a&lt;n;a++)r[a]=arguments[a];var s=i.apply(e,r);return Xn(t),s}};["append","appendChild","insertAdjacentHTML"].forEach(function(t){e[t]&amp;&amp;(i[t]=e[t],e[t]=r(i[t]))}),Object.defineProperty(e,"innerHTML",me(n,{set:r(n.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(i).forEach(function(t){e[t]=i[t]}),Object.defineProperty(e,"innerHTML",n)},t.one("sourceset",e.resetSourceWatch_)}},Jn={};x||(Jn=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Ze(a.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return a.Element.prototype.setAttribute.call(this,"src",t),t}}));var Zn=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var i=function(t){return Kn([t.el(),a.HTMLMediaElement.prototype,Jn],"src")}(t),n=e.setAttribute,r=e.load;Object.defineProperty(e,"src",me(i,{set:function(n){var r=i.set.call(e,n);return t.triggerSourceset(e.src),r}})),e.setAttribute=function(i,r){var a=n.call(e,i,r);return/src/i.test(i)&amp;&amp;t.triggerSourceset(e.src),a},e.load=function(){var i=r.call(e);return Xn(t)||(t.triggerSourceset(""),$n(t)),i},e.currentSrc?t.triggerSourceset(e.currentSrc):Xn(t)||$n(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=r,e.setAttribute=n,Object.defineProperty(e,"src",i),e.resetSourceWatch_&amp;&amp;e.resetSourceWatch_()}}}},Qn=B(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]),tr=function(t){function e(i,n){j(this,e);var r=N(this,t.call(this,i,n)),a=i.source,s=!1;if(a&amp;&amp;(r.el_.currentSrc!==a.src||i.tag&amp;&amp;3===i.tag.initNetworkState_)?r.setSource(a):r.handleLateInit_(r.el_),i.enableSourceset&amp;&amp;r.setupSourcesetHandling_(),r.el_.hasChildNodes()){for(var l=r.el_.childNodes,u=l.length,c=[];u--;){var h=l[u];"track"===h.nodeName.toLowerCase()&amp;&amp;(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(h),r.remoteTextTracks().addTrack(h.track),r.textTracks().addTrack(h.track),s||r.el_.hasAttribute("crossorigin")||!ti(h.src)||(s=!0)):c.push(h))}for(var d=0;d&lt;c.length;d++)r.el_.removeChild(c[d])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&amp;&amp;s&amp;&amp;$.warn(o(Qn)),r.restoreMetadataTracksInIOSNativePlayer_(),(I||m||k)&amp;&amp;!0===i.nativeControlsForTouch&amp;&amp;r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}return U(e,t),e.prototype.dispose=function(){this.el_&amp;&amp;this.el_.resetSourceset_&amp;&amp;this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},e.prototype.setupSourcesetHandling_=function(){Zn(this)},e.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var t=this.textTracks(),e=void 0,i=function(){e=[];for(var i=0;i&lt;t.length;i++){var n=t[i];"metadata"===n.kind&amp;&amp;e.push({track:n,storedMode:n.mode})}};i(),t.addEventListener("change",i),this.on("dispose",function(){return t.removeEventListener("change",i)});var n=function i(){for(var n=0;n&lt;e.length;n++){var r=e[n];"disabled"===r.track.mode&amp;&amp;r.track.mode!==r.storedMode&amp;&amp;(r.track.mode=r.storedMode)}t.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",i),t.removeEventListener("change",n),t.addEventListener("change",n)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",i),t.addEventListener("change",i),t.removeEventListener("change",n)})},e.prototype.proxyNativeTracks_=function(){var t=this;ci.names.forEach(function(e){var i=ci[e],n=t.el()[i.getterName],r=t[i.getterName]();if(t["featuresNative"+i.capitalName+"Tracks"]&amp;&amp;n&amp;&amp;n.addEventListener){var a={change:function(t){r.trigger({type:"change",target:r,currentTarget:r,srcElement:r})},addtrack:function(t){r.addTrack(t.track)},removetrack:function(t){r.removeTrack(t.track)}},s=function(){for(var t=[],e=0;e&lt;r.length;e++){for(var i=!1,a=0;a&lt;n.length;a++)if(n[a]===r[e]){i=!0;break}i||t.push(r[e])}for(;t.length;)r.removeTrack(t.shift())};Object.keys(a).forEach(function(e){var i=a[e];n.addEventListener(e,i),t.on("dispose",function(t){return n.removeEventListener(e,i)})}),t.on("loadstart",s),t.on("dispose",function(e){return t.off("loadstart",s)})}})},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&amp;&amp;!this.movingMediaElementInDOM){if(t){var i=t.cloneNode(!0);t.parentNode&amp;&amp;t.parentNode.insertBefore(i,t),e.disposeMediaElement(t),t=i}else{t=s.createElement("video");var n=me({},this.options_.tag&amp;&amp;pt(this.options_.tag));I&amp;&amp;!0===this.options_.nativeControlsForTouch||delete n.controls,dt(t,z(n,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&amp;&amp;gt(t,"preload",this.options_.preload);for(var r=["loop","muted","playsinline","autoplay"],a=0;a&lt;r.length;a++){var o=r[a],l=this.options_[o];void 0!==l&amp;&amp;(l?gt(t,o,o):mt(t,o),t[o]=l)}return t},e.prototype.handleLateInit_=function(t){if(0!==t.networkState&amp;&amp;3!==t.networkState){if(0===t.readyState){var e=!1,i=function(){e=!0};this.on("loadstart",i);var n=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),e||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),t.readyState&gt;=2&amp;&amp;r.push("loadeddata"),t.readyState&gt;=3&amp;&amp;r.push("canplay"),t.readyState&gt;=4&amp;&amp;r.push("canplaythrough"),this.ready(function(){r.forEach(function(t){this.trigger(t)},this)})}},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){$(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){var t=this;if(this.el_.duration===1/0&amp;&amp;b&amp;&amp;E&amp;&amp;0===this.el_.currentTime){return this.on("timeupdate",function e(){t.el_.currentTime&gt;0&amp;&amp;(t.el_.duration===1/0&amp;&amp;t.trigger("durationchange"),t.off("timeupdate",e))}),NaN}return this.el_.duration||NaN},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},i=function(){"webkitPresentationMode"in this.el_&amp;&amp;"picture-in-picture"!==this.el_.webkitPresentationMode&amp;&amp;(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){t.off("webkitbeginfullscreen",i),t.off("webkitendfullscreen",e)})}},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=a.navigator&amp;&amp;a.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;t.paused&amp;&amp;t.networkState&lt;=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.addTextTrack=function(e,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,i,n):t.prototype.addTextTrack.call(this,e,i,n)},e.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var i=s.createElement("track");return e.kind&amp;&amp;(i.kind=e.kind),e.label&amp;&amp;(i.label=e.label),(e.language||e.srclang)&amp;&amp;(i.srclang=e.language||e.srclang),e.default&amp;&amp;(i.default=e.default),e.id&amp;&amp;(i.id=e.id),e.src&amp;&amp;(i.src=e.src),i},e.prototype.addRemoteTextTrack=function(e,i){var n=t.prototype.addRemoteTextTrack.call(this,e,i);return this.featuresNativeTextTracks&amp;&amp;this.el().appendChild(n),n},e.prototype.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)e!==i[n]&amp;&amp;e!==i[n].track||this.el().removeChild(i[n])},e.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&amp;&amp;void 0!==this.el().webkitDecodedFrameCount&amp;&amp;(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),a.performance&amp;&amp;"function"==typeof a.performance.now?t.creationTime=a.performance.now():a.performance&amp;&amp;a.performance.timing&amp;&amp;"number"==typeof a.performance.timing.navigationStart&amp;&amp;(t.creationTime=a.Date.now()-a.performance.timing.navigationStart),t},e}(pi);if(et()){tr.TEST_VID=s.createElement("video");var er=s.createElement("track");er.kind="captions",er.srclang="en",er.label="English",tr.TEST_VID.appendChild(er)}tr.isSupported=function(){try{tr.TEST_VID.volume=.5}catch(t){return!1}return!(!tr.TEST_VID||!tr.TEST_VID.canPlayType)},tr.canPlayType=function(t){return tr.TEST_VID.canPlayType(t)},tr.canPlaySource=function(t,e){return tr.canPlayType(t.type)},tr.canControlVolume=function(){try{var t=tr.TEST_VID.volume;return tr.TEST_VID.volume=t/2+.1,t!==tr.TEST_VID.volume}catch(t){return!1}},tr.canMuteVolume=function(){try{var t=tr.TEST_VID.muted;return tr.TEST_VID.muted=!t,tr.TEST_VID.muted?gt(tr.TEST_VID,"muted","muted"):mt(tr.TEST_VID,"muted"),t!==tr.TEST_VID.muted}catch(t){return!1}},tr.canControlPlaybackRate=function(){if(b&amp;&amp;E&amp;&amp;A&lt;58)return!1;try{var t=tr.TEST_VID.playbackRate;return tr.TEST_VID.playbackRate=t/2+.1,t!==tr.TEST_VID.playbackRate}catch(t){return!1}},tr.canOverrideAttributes=function(){if(x)return!1;try{var t=function(){};Object.defineProperty(s.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(s.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(s.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(s.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},tr.supportsNativeTextTracks=function(){return L||v&amp;&amp;E},tr.supportsNativeVideoTracks=function(){return!(!tr.TEST_VID||!tr.TEST_VID.videoTracks)},tr.supportsNativeAudioTracks=function(){return!(!tr.TEST_VID||!tr.TEST_VID.audioTracks)},tr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],tr.prototype.featuresVolumeControl=tr.canControlVolume(),tr.prototype.featuresMuteControl=tr.canMuteVolume(),tr.prototype.featuresPlaybackRate=tr.canControlPlaybackRate(),tr.prototype.featuresSourceset=tr.canOverrideAttributes(),tr.prototype.movingMediaElementInDOM=!v,tr.prototype.featuresFullscreenResize=!0,tr.prototype.featuresProgressEvents=!0,tr.prototype.featuresTimeupdateEvents=!0,tr.prototype.featuresNativeTextTracks=tr.supportsNativeTextTracks(),tr.prototype.featuresNativeVideoTracks=tr.supportsNativeVideoTracks(),tr.prototype.featuresNativeAudioTracks=tr.supportsNativeAudioTracks();var ir=tr.TEST_VID&amp;&amp;tr.TEST_VID.constructor.prototype.canPlayType,nr=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,rr=/^video\/mp4/i;tr.patchCanPlayType=function(){T&gt;=4&amp;&amp;!C&amp;&amp;!E?tr.TEST_VID.constructor.prototype.canPlayType=function(t){return t&amp;&amp;nr.test(t)?"maybe":ir.call(this,t)}:S&amp;&amp;(tr.TEST_VID.constructor.prototype.canPlayType=function(t){return t&amp;&amp;rr.test(t)?"maybe":ir.call(this,t)})},tr.unpatchCanPlayType=function(){var t=tr.TEST_VID.constructor.prototype.canPlayType;return tr.TEST_VID.constructor.prototype.canPlayType=ir,t},tr.patchCanPlayType(),tr.disposeMediaElement=function(t){if(t){for(t.parentNode&amp;&amp;t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&amp;&amp;function(){try{t.load()}catch(t){}}()}},tr.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),i=e.length;i--;)t.removeChild(e[i]);t.removeAttribute("src"),"function"==typeof t.load&amp;&amp;function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){tr.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){tr.prototype["set"+ge(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){tr.prototype[t]=function(){return this.el_[t]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(t){tr.prototype["set"+ge(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(t){tr.prototype[t]=function(){return this.el_[t]()}}),pi.withSourceHandlers(tr),tr.nativeSourceHandler={},tr.nativeSourceHandler.canPlayType=function(t){try{return tr.TEST_VID.canPlayType(t)}catch(t){return""}},tr.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return tr.nativeSourceHandler.canPlayType(t.type);if(t.src){var i=Qe(t.src);return tr.nativeSourceHandler.canPlayType("video/"+i)}return""},tr.nativeSourceHandler.handleSource=function(t,e,i){e.setSrc(t.src)},tr.nativeSourceHandler.dispose=function(){},tr.registerSourceHandler(tr.nativeSourceHandler),pi.registerTech("Html5",tr);var ar=B(["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "],["\n        Using the tech directly can be dangerous. I hope you know what you're doing.\n        See https://github.com/videojs/video.js/issues/2617 for more info.\n      "]),sr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],or={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},lr=function(t){function e(i,n,r){if(j(this,e),i.id=i.id||n.id||"vjs_video_"+It(),(n=z(e.getTagSettings(i),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if("function"==typeof i.closest){var a=i.closest("[lang]");a&amp;&amp;a.getAttribute&amp;&amp;(n.language=a.getAttribute("lang"))}else for(var s=i;s&amp;&amp;1===s.nodeType;){if(pt(s).hasOwnProperty("lang")){n.language=s.getAttribute("lang");break}s=s.parentNode}var o=N(this,t.call(this,null,n,r));if(o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=i,o.tagAttributes=i&amp;&amp;pt(i),o.language(o.options_.language),n.languages){var l={};Object.getOwnPropertyNames(n.languages).forEach(function(t){l[t.toLowerCase()]=n.languages[t]}),o.languages_=l}else o.languages_=e.prototype.options_.languages;o.cache_={},o.poster_=n.poster||"",o.controls_=!!n.controls,o.cache_.lastVolume=1,i.controls=!1,i.removeAttribute("controls"),i.hasAttribute("autoplay")?o.options_.autoplay=!0:o.autoplay(o.options_.autoplay),o.scrubbing_=!1,o.el_=o.createEl(),o.cache_.lastPlaybackRate=o.defaultPlaybackRate(),de(o,{eventBusKey:"el_"});var u=me(o.options_);if(n.plugins){var c=n.plugins;Object.keys(c).forEach(function(t){if("function"!=typeof this[t])throw new Error('plugin "'+t+'" does not exist');this[t](c[t])},o)}o.options_.playerOptions=u,o.middleware_=[],o.initChildren(),o.isAudio("audio"===i.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&amp;&amp;o.addClass("vjs-audio"),o.flexNotSupported_()&amp;&amp;o.addClass("vjs-no-flex"),v||o.addClass("vjs-workinghover"),e.players[o.id_]=o;var d=h.split(".")[0];return o.addClass("vjs-v"+d),o.userActive(!0),o.reportUserActivity(),o.one("play",o.listenForUserActivity_),o.on("fullscreenchange",o.handleFullscreenChange_),o.on("stageclick",o.handleStageClick_),o.changingSrc_=!1,o.playWaitingForReady_=!1,o.playOnLoadstart_=null,o}return U(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&amp;&amp;this.styleEl_.parentNode&amp;&amp;(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&amp;&amp;this.tag.player&amp;&amp;(this.tag.player=null),this.el_&amp;&amp;this.el_.player&amp;&amp;(this.el_.player=null),this.tech_&amp;&amp;(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&amp;&amp;(this.playerElIngest_=null),this.tag&amp;&amp;(this.tag=null),gi[this.id()]=null,t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.tag,i=void 0,n=this.playerElIngest_=e.parentNode&amp;&amp;e.parentNode.hasAttribute&amp;&amp;e.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();n?i=this.el_=e.parentNode:r||(i=this.el_=t.prototype.createEl.call(this,"div"));var o=pt(e);if(r){for(i=this.el_=e,e=this.tag=s.createElement("video");i.children.length;)e.appendChild(i.firstChild);lt(i,"video-js")||ut(i,"video-js"),i.appendChild(e),n=this.playerElIngest_=i,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach(function(t){void 0!==i[t]&amp;&amp;(e[t]=i[t])})}if(e.setAttribute("tabindex","-1"),O&amp;&amp;e.setAttribute("role","application"),e.removeAttribute("width"),e.removeAttribute("height"),Object.getOwnPropertyNames(o).forEach(function(t){"class"===t?(i.className+=" "+o[t],r&amp;&amp;(e.className+=" "+o[t])):(i.setAttribute(t,o[t]),r&amp;&amp;e.setAttribute(t,o[t]))}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=i.player=this,this.addClass("vjs-paused"),!0!==a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Zt("vjs-styles-dimensions");var l=xt(".vjs-styles-defaults"),u=xt("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var c=e.getElementsByTagName("a"),h=0;h&lt;c.length;h++){var d=c.item(h);ut(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&amp;&amp;!n&amp;&amp;e.parentNode.insertBefore(i,e),ot(e,i),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_=i,i},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var i=t+"_";if(void 0===e)return this[i]||0;if(""===e)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(e);isNaN(n)?$.error('Improper value "'+e+'" supplied for for '+t):(this[i]=n,this.updateStyleEl_())},e.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){if(!0!==a.VIDEOJS_NO_DYNAMIC_STYLE){var t=void 0,e=void 0,i=void 0,n=(void 0!==this.aspectRatio_&amp;&amp;"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()&gt;0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=n[1]/n[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*r,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),Qt(this.styleEl_,"\n      ."+i+" {\n        width: "+t+"px;\n        height: "+e+"px;\n      }\n\n      ."+i+".vjs-fluid {\n        padding-top: "+100*r+"%;\n      }\n    ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,o="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&amp;&amp;this.tech_.el();l&amp;&amp;(s&gt;=0&amp;&amp;(l.width=s),o&gt;=0&amp;&amp;(l.height=o))}},e.prototype.loadTech_=function(t,e){var i=this;this.tech_&amp;&amp;this.unloadTech_();var n=ge(t),r=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==n&amp;&amp;this.tag&amp;&amp;(pi.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a={source:e,autoplay:"string"!=typeof this.autoplay()&amp;&amp;this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+n+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};di.names.forEach(function(t){var e=di[t];a[e.getterName]=i[e.privateName]}),z(a,this.options_[n]),z(a,this.options_[r]),z(a,this.options_[t.toLowerCase()]),this.tag&amp;&amp;(a.tag=this.tag),e&amp;&amp;e.src===this.cache_.src&amp;&amp;this.cache_.currentTime&gt;0&amp;&amp;(a.startTime=this.cache_.currentTime);var s=pi.getTech(t);if(!s)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new s(a),this.tech_.ready(te(this,this.handleTechReady_),!0),Me(this.textTracksJson_||[],this.tech_),sr.forEach(function(t){i.on(i.tech_,t,i["handleTech"+ge(t)+"_"])}),Object.keys(or).forEach(function(t){i.on(i.tech_,t,function(e){0===i.tech_.playbackRate()&amp;&amp;i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+or[t]+"_"].bind(i),event:e}):i["handleTech"+or[t]+"_"](e)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&amp;&amp;!this.usingNativeControls()&amp;&amp;this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&amp;&amp;this.tag||ot(this.tech_.el(),this.el()),this.tag&amp;&amp;(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){var t=this;di.names.forEach(function(e){var i=di[e];t[i.privateName]=t[i.getterName]()}),this.textTracksJson_=De(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&amp;&amp;(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.prototype.tech=function(t){return void 0===t&amp;&amp;$.warn(o(ar)),this.tech_},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&amp;&amp;this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&amp;&amp;this.tag&amp;&amp;this.options_.autoplay&amp;&amp;this.paused())try{delete this.tag.poster}catch(t){$("deleting tag.poster throws in some browsers",t)}},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},e.prototype.manualAutoplay_=function(t){var e=this;if(this.tech_&amp;&amp;"string"==typeof t){var i=function(){var t=e.muted();e.muted(!0);var i=e.play();if(i&amp;&amp;i.then&amp;&amp;i.catch)return i.catch(function(i){e.muted(t)})},n=void 0;if("any"===t?(n=this.play())&amp;&amp;n.then&amp;&amp;n.catch&amp;&amp;n.catch(function(){return i()}):n="muted"===t?i():this.play(),n&amp;&amp;n.then&amp;&amp;n.catch)return n.then(function(){e.trigger({type:"autoplay-success",autoplay:t})}).catch(function(i){e.trigger({type:"autoplay-failure",autoplay:t})})}},e.prototype.updateSourceCaches_=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:"",e=t,i="";if("string"!=typeof e&amp;&amp;(e=t.src,i=t.type),!/^blob:/.test(e)){this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&amp;&amp;!i&amp;&amp;(i=function(t,e){if(!e)return"";if(t.cache_.source.src===e&amp;&amp;t.cache_.source.type)return t.cache_.source.type;var i=t.cache_.sources.filter(function(t){return t.src===e});if(i.length)return i[0].type;for(var n=t.$$("source"),r=0;r&lt;n.length;r++){var a=n[r];if(a.type&amp;&amp;a.src&amp;&amp;a.src===e)return a.type}return Ci(e)}(this,e)),this.cache_.source=me({},t,{src:e,type:i});for(var n=this.cache_.sources.filter(function(t){return t.src&amp;&amp;t.src===e}),r=[],a=this.$$("source"),s=[],o=0;o&lt;a.length;o++){var l=pt(a[o]);r.push(l),l.src&amp;&amp;l.src===e&amp;&amp;s.push(l.src)}s.length&amp;&amp;!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e}},e.prototype.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_&amp;&amp;(this.updateSourceCaches_(t.src),!t.src)){this.tech_.one(["sourceset","loadstart"],function t(i){"sourceset"!==i.type&amp;&amp;e.updateSourceCaches_(e.techGet_("currentSrc")),e.tech_.off(["sourceset","loadstart"],t)})}this.trigger({src:t.src,type:"sourceset"})},e.prototype.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&amp;&amp;(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechRateChange_=function(){this.tech_.playbackRate()&gt;0&amp;&amp;0===this.cache_.lastPlaybackRate&amp;&amp;(this.queuedCallbacks_.forEach(function(t){return t.callback(t.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&amp;&amp;($.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){At(t)&amp;&amp;this.controls_&amp;&amp;(this.paused()?Le(this.play()):this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&amp;&amp;this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&amp;&amp;this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t)},e.prototype.handleTechTextData_=function(){var t=null;arguments.length&gt;1&amp;&amp;(t=arguments[1]),this.trigger("textdata",t)},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){this.ready(function(){if(t in bi)return function(t,e,i,n){return e[i](t.reduce(Si(i),n))}(this.middleware_,this.tech_,t,e);if(t in Ti)return vi(this.middleware_,this.tech_,t,e);try{this.tech_&amp;&amp;this.tech_[t](e)}catch(t){throw $(t),t}},!0)},e.prototype.techGet_=function(t){if(this.tech_&amp;&amp;this.tech_.isReady_){if(t in _i)return function(t,e,i){return t.reduceRight(Si(i),e[i]())}(this.middleware_,this.tech_,t);if(t in Ti)return vi(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw $("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw $("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw $(e),e}}},e.prototype.play=function(){var t=this,e=this.options_.Promise||a.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},e.prototype.play_=function(){var t=this,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:Le;if(this.playOnLoadstart_&amp;&amp;this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&amp;&amp;(this.src()||this.currentSrc()))return void e(this.techGet_("play"));this.playOnLoadstart_=function(){t.playOnLoadstart_=null,e(t.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){t.playWaitingForReady_=!1,e(t.play())})}},e.prototype.pause=function(){this.techCall_("pause")},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.played=function(){return this.techGet_("played")||be(0,0)},e.prototype.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.prototype.currentTime=function(t){return void 0!==t?(t&lt;0&amp;&amp;(t=0),void this.techCall_("setCurrentTime",t)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.prototype.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))&lt;0&amp;&amp;(t=1/0),t!==this.cache_.duration&amp;&amp;(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&amp;&amp;t.length||(t=be(0,0)),t},e.prototype.bufferedPercent=function(){return Te(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),i=t.end(t.length-1);return i&gt;e&amp;&amp;(i=e),i},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e&gt;0&amp;&amp;this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},e.prototype.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},e.prototype.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){if(void 0===t)return!!this.isFullscreen_;this.isFullscreen_=!!t},e.prototype.requestFullscreen=function(){var t=Se;this.isFullscreen(!0),t.requestFullscreen?(zt(s,t.fullscreenchange,te(this,function e(i){this.isFullscreen(s[t.fullscreenElement]),!1===this.isFullscreen()&amp;&amp;Wt(s,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},e.prototype.exitFullscreen=function(){var t=Se;this.isFullscreen(!1),t.requestFullscreen?s[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=s.documentElement.style.overflow,zt(s,"keydown",te(this,this.fullWindowOnEscKey)),s.documentElement.style.overflow="hidden",ut(s.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&amp;&amp;(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,Wt(s,"keydown",this.fullWindowOnEscKey),s.documentElement.style.overflow=this.docOrigOverflow,ct(s.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,i=0,n=this.options_.techOrder;i&lt;n.length;i++){var r=n[i],a=pi.getTech(r);if(a||(a=ye.getComponent(r)),a){if(a.isSupported()&amp;&amp;(e=a.canPlayType(t)))return e}else $.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e,i=this,n=this.options_.techOrder.map(function(t){return[t,pi.getTech(t)]}).filter(function(t){var e=t[0],i=t[1];return i?i.isSupported():($.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),r=function(t,e,i){var n=void 0;return t.some(function(t){return e.some(function(e){if(n=i(t,e))return!0})}),n},a=function(t,e){var n=t[0];if(t[1].canPlaySource(e,i.options_[n.toLowerCase()]))return{source:e,tech:n}};return(this.options_.sourceOrder?r(t,n,(e=a,function(t,i){return e(i,t)})):r(n,t,a))||!1},e.prototype.src=function(t){var e=this;if(void 0===t)return this.cache_.src||"";var i=function t(e){if(Array.isArray(e)){var i=[];e.forEach(function(e){e=t(e),Array.isArray(e)?i=i.concat(e):W(e)&amp;&amp;i.push(e)}),e=i}else e="string"==typeof e&amp;&amp;e.trim()?[wi({src:e})]:W(e)&amp;&amp;"string"==typeof e.src&amp;&amp;e.src&amp;&amp;e.src.trim()?[wi(e)]:[];return e}(t);i.length?(this.changingSrc_=!0,this.cache_.sources=i,this.updateSourceCaches_(i[0]),yi(this,i[0],function(t,n){var r,a;if(e.middleware_=n,e.cache_.sources=i,e.updateSourceCaches_(t),e.src_(t))return i.length&gt;1?e.src(i.slice(1)):(e.changingSrc_=!1,e.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void e.triggerReady());r=n,a=e.tech_,r.forEach(function(t){return t.setTech&amp;&amp;t.setTech(a)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},e.prototype.src_=function(t){var e,i,n=this,r=this.selectSource([t]);return!r||(e=r.tech,i=this.techName_,ge(e)!==ge(i)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1},!0),!1))},e.prototype.load=function(){this.techCall_("load")},e.prototype.reset=function(){this.tech_&amp;&amp;this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},e.prototype.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&amp;&amp;e.push(t),this.cache_.sources||e},e.prototype.currentSource=function(){return this.cache_.source||{}},e.prototype.currentSrc=function(){return this.currentSource()&amp;&amp;this.currentSource().src||""},e.prototype.currentType=function(){return this.currentSource()&amp;&amp;this.currentSource().type||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},e.prototype.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e=void 0;"string"==typeof t&amp;&amp;/(any|play|muted)/.test(t)?(this.options_.autoplay=t,this.manualAutoplay_(t),e=!1):this.options_.autoplay=!!t,e=e||this.options_.autoplay,this.tech_&amp;&amp;this.techCall_("setAutoplay",e)},e.prototype.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},e.prototype.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&amp;&amp;(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.prototype.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&amp;&amp;this.tech_&amp;&amp;this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&amp;&amp;(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},e.prototype.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&amp;&amp;(this.controls_=t,this.usingNativeControls()&amp;&amp;this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},e.prototype.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&amp;&amp;(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&amp;&amp;this.errorDisplay.close())):(this.error_=new xe(t),this.addClass("vjs-error"),$.error("(CODE:"+this.error_.code+" "+xe.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},e.prototype.reportUserActivity=function(t){this.userActivity_=!0},e.prototype.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&amp;&amp;this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,i=void 0,n=te(this,this.reportUserActivity);this.on("mousedown",function(){n(),this.clearInterval(t),t=this.setInterval(n,250)}),this.on("mousemove",function(t){t.screenX===e&amp;&amp;t.screenY===i||(e=t.screenX,i=t.screenY,n())}),this.on("mouseup",function(e){n(),this.clearInterval(t)}),this.on("keydown",n),this.on("keyup",n);var r=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(r);var t=this.options_.inactivityTimeout;t&lt;=0||(r=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){if(void 0===t)return this.tech_&amp;&amp;this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},e.prototype.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&amp;&amp;this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.prototype.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},e.prototype.addTextTrack=function(t,e,i){if(this.tech_)return this.tech_.addTextTrack(t,e,i)},e.prototype.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},e.prototype.removeRemoteTextTrack=function(){var t=(arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{}).track,e=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(e)},e.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.prototype.videoWidth=function(){return this.tech_&amp;&amp;this.tech_.videoWidth&amp;&amp;this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&amp;&amp;this.tech_.videoHeight&amp;&amp;this.tech_.videoHeight()||0},e.prototype.language=function(t){if(void 0===t)return this.language_;this.language_=String(t).toLowerCase()},e.prototype.languages=function(){return me(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=me(this.options_),e=t.tracks;t.tracks=[];for(var i=0;i&lt;e.length;i++){var n=e[i];(n=me(n)).player=void 0,t.tracks[i]=n}return t},e.prototype.createModal=function(t,e){var i=this;(e=e||{}).content=t||"";var n=new je(this,e);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n},e.getTagSettings=function(t){var e={sources:[],tracks:[]},i=pt(t),n=i["data-setup"];if(lt(t,"vjs-fluid")&amp;&amp;(i.fluid=!0),null!==n){var r=l(n||"{}"),a=r[0],s=r[1];a&amp;&amp;$.error(a),z(i,s)}if(z(e,i),t.hasChildNodes())for(var o=t.childNodes,u=0,c=o.length;u&lt;c;u++){var h=o[u],d=h.nodeName.toLowerCase();"source"===d?e.sources.push(pt(h)):"track"===d&amp;&amp;e.tracks.push(pt(h))}return e},e.prototype.flexNotSupported_=function(){var t=s.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},e}(ye);di.names.forEach(function(t){var e=di[t];lr.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),lr.players={};var ur=a.navigator;lr.prototype.options_={techOrder:pi.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:ur&amp;&amp;(ur.languages&amp;&amp;ur.languages[0]||ur.userLanguage||ur.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},x||lr.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach(function(t){lr.prototype[t]=function(){return this.techGet_(t)}}),sr.forEach(function(t){lr.prototype["handleTech"+ge(t)+"_"]=function(){return this.trigger(t)}}),ye.registerComponent("Player",lr);var cr={},hr=function(t){return cr.hasOwnProperty(t)},dr=function(t){return hr(t)?cr[t]:void 0},pr=function(t,e){t.activePlugins_=t.activePlugins_||{},t.activePlugins_[e]=!0},fr=function(t,e,i){var n=(i?"before":"")+"pluginsetup";t.trigger(n,e),t.trigger(n+":"+e.name,e)},gr=function(t,e){return e.prototype.name=t,function(){fr(this,{name:t,plugin:e,instance:null},!0);for(var i=arguments.length,n=Array(i),r=0;r&lt;i;r++)n[r]=arguments[r];var a=new(Function.prototype.bind.apply(e,[null].concat([this].concat(n))));return this[t]=function(){return a},fr(this,a.getEventHash()),a}},mr=function(){function t(e){if(j(this,t),this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,de(this),delete this.trigger,fe(this,this.constructor.defaultState),pr(e,this.name),this.dispose=te(this,this.dispose),e.on("dispose",this.dispose)}return t.prototype.version=function(){return this.constructor.VERSION},t.prototype.getEventHash=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},t.prototype.trigger=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return qt(this.eventBusEl_,t,this.getEventHash(e))},t.prototype.handleStateChanged=function(t){},t.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e.activePlugins_[t]=!1,this.player=this.state=null,e[t]=gr(t,cr[t])},t.isBasic=function(e){var i="string"==typeof e?dr(e):e;return"function"==typeof i&amp;&amp;!t.prototype.isPrototypeOf(i.prototype)},t.registerPlugin=function(e,i){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+(void 0===e?"undefined":R(e))+".");if(hr(e))$.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(lr.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof i)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+(void 0===i?"undefined":R(i))+".");return cr[e]=i,"plugin"!==e&amp;&amp;(t.isBasic(i)?lr.prototype[e]=function(t,e){var i=function(){fr(this,{name:t,plugin:e,instance:null},!0);var i=e.apply(this,arguments);return pr(this,t),fr(this,{name:t,plugin:e,instance:i}),i};return Object.keys(e).forEach(function(t){i[t]=e[t]}),i}(e,i):lr.prototype[e]=gr(e,i)),i},t.deregisterPlugin=function(t){if("plugin"===t)throw new Error("Cannot de-register base plugin.");hr(t)&amp;&amp;(delete cr[t],delete lr.prototype[t])},t.getPlugins=function(){var t=void 0;return(arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:Object.keys(cr)).forEach(function(e){var i=dr(e);i&amp;&amp;((t=t||{})[e]=i)}),t},t.getPluginVersion=function(t){var e=dr(t);return e&amp;&amp;e.VERSION||""},t}();mr.getPlugin=dr,mr.BASE_PLUGIN_NAME="plugin",mr.registerPlugin("plugin",mr),lr.prototype.usingPlugin=function(t){return!!this.activePlugins_&amp;&amp;!0===this.activePlugins_[t]},lr.prototype.hasPlugin=function(t){return!!hr(t)};"undefined"==typeof HTMLVideoElement&amp;&amp;et()&amp;&amp;(s.createElement("video"),s.createElement("audio"),s.createElement("track"),s.createElement("video-js"));var yr=function(t){return 0===t.indexOf("#")?t.slice(1):t};function vr(t,e,i){var n=vr.getPlayer(t);if(n)return e&amp;&amp;$.warn('Player "'+t+'" is already initialised. Options will not be applied.'),i&amp;&amp;n.ready(i),n;var r="string"==typeof t?xt("#"+yr(t)):t;if(!it(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");s.body.contains(r)||$.warn("The element supplied is not included in the DOM"),e=e||{},vr.hooks("beforesetup").forEach(function(t){var i=t(r,me(e));W(i)&amp;&amp;!Array.isArray(i)?e=me(e,i):$.error("please return an object in beforesetup hooks")});var a=ye.getComponent("Player");return n=new a(r,e,i),vr.hooks("setup").forEach(function(t){return t(n)}),n}if(vr.hooks_={},vr.hooks=function(t,e){return vr.hooks_[t]=vr.hooks_[t]||[],e&amp;&amp;(vr.hooks_[t]=vr.hooks_[t].concat(e)),vr.hooks_[t]},vr.hook=function(t,e){vr.hooks(t,e)},vr.hookOnce=function(t,e){vr.hooks(t,[].concat(e).map(function(e){return function i(){return vr.removeHook(t,i),e.apply(void 0,arguments)}}))},vr.removeHook=function(t,e){var i=vr.hooks(t).indexOf(e);return!(i&lt;=-1)&amp;&amp;(vr.hooks_[t]=vr.hooks_[t].slice(),vr.hooks_[t].splice(i,1),!0)},!0!==a.VIDEOJS_NO_DYNAMIC_STYLE&amp;&amp;et()){var _r=xt(".vjs-styles-defaults");if(!_r){_r=Zt("vjs-styles-defaults");var br=xt("head");br&amp;&amp;br.insertBefore(_r,br.firstChild),Qt(_r,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}Jt(1,vr),vr.VERSION=h,vr.options=lr.prototype.options_,vr.getPlayers=function(){return lr.players},vr.getPlayer=function(t){var e=lr.players,i=void 0;if("string"==typeof t){var n=yr(t),r=e[n];if(r)return r;i=xt("#"+n)}else i=t;if(it(i)){var a=i,s=a.player,o=a.playerId;if(s||e[o])return s||e[o]}},vr.getAllPlayers=function(){return Object.keys(lr.players).map(function(t){return lr.players[t]}).filter(Boolean)},vr.players=lr.players,vr.getComponent=ye.getComponent,vr.registerComponent=function(t,e){pi.isTech(e)&amp;&amp;$.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),ye.registerComponent.call(ye,t,e)},vr.getTech=pi.getTech,vr.registerTech=pi.registerTech,vr.use=function(t,e){fi[t]=fi[t]||[],fi[t].push(e)},!x&amp;&amp;Object.defineProperty?(Object.defineProperty(vr,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(vr.middleware,"TERMINATOR",{value:mi,writeable:!1,enumerable:!0})):vr.middleware={TERMINATOR:mi},vr.browser=M,vr.TOUCH_ENABLED=I,vr.extend=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},i=function(){t.apply(this,arguments)},n={};for(var r in"object"===(void 0===e?"undefined":R(e))?(e.constructor!==Object.prototype.constructor&amp;&amp;(i=e.constructor),n=e):"function"==typeof e&amp;&amp;(i=e),function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":R(e)));t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(t.super_=e)}(i,t),n)n.hasOwnProperty(r)&amp;&amp;(i.prototype[r]=n[r]);return i},vr.mergeOptions=me,vr.bind=te,vr.registerPlugin=mr.registerPlugin,vr.deregisterPlugin=mr.deregisterPlugin,vr.plugin=function(t,e){return $.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),mr.registerPlugin(t,e)},vr.getPlugins=mr.getPlugins,vr.getPlugin=mr.getPlugin,vr.getPluginVersion=mr.getPluginVersion,vr.addLanguage=function(t,e){var i;return t=(""+t).toLowerCase(),vr.options.languages=me(vr.options.languages,((i={})[t]=e,i)),vr.options.languages[t]},vr.log=$,vr.createTimeRange=vr.createTimeRanges=be,vr.formatTime=Fi,vr.setFormatTime=function(t){Bi=t},vr.resetFormatTime=function(){Bi=Ni},vr.parseUrl=Je,vr.isCrossOrigin=ti,vr.EventTarget=ne,vr.on=zt,vr.one=Gt,vr.off=Wt,vr.trigger=qt,vr.xhr=u,vr.TextTrack=ri,vr.AudioTrack=ai,vr.VideoTrack=si,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(t){vr[t]=function(){return $.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),Pt[t].apply(null,arguments)}}),vr.computedStyle=J,vr.dom=Pt,vr.url=ei,t.exports=vr},fYOu:function(t,e,i){t.exports={generator:i("020U"),probe:i("/cRm"),Transmuxer:i("nAZl").Transmuxer,AudioSegmentStream:i("nAZl").AudioSegmentStream,VideoSegmentStream:i("nAZl").VideoSegmentStream,CaptionParser:i("Jyyp")}},fleF:function(t,e,i){"use strict";var n=i("pl6C"),r=function(t){var e=31&amp;t[1];return e&lt;&lt;=8,e|=t[2]},a=function(t){return!!(64&amp;t[1])},s=function(t){var e=0;return(48&amp;t[3])&gt;&gt;&gt;4&gt;1&amp;&amp;(e+=t[4]+1),e},o=function(t){switch(t){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}};t.exports={parseType:function(t,e){var i=r(t);return 0===i?"pat":i===e?"pmt":e?"pes":null},parsePat:function(t){var e=a(t),i=4+s(t);return e&amp;&amp;(i+=t[i]+1),(31&amp;t[i+10])&lt;&lt;8|t[i+11]},parsePmt:function(t){var e={},i=a(t),n=4+s(t);if(i&amp;&amp;(n+=t[n]+1),1&amp;t[n+5]){var r;r=3+((15&amp;t[n+1])&lt;&lt;8|t[n+2])-4;for(var o=12+((15&amp;t[n+10])&lt;&lt;8|t[n+11]);o&lt;r;){var l=n+o;e[(31&amp;t[l+1])&lt;&lt;8|t[l+2]]=t[l],o+=5+((15&amp;t[l+3])&lt;&lt;8|t[l+4])}return e}},parsePayloadUnitStartIndicator:a,parsePesType:function(t,e){switch(e[r(t)]){case n.H264_STREAM_TYPE:return"video";case n.ADTS_STREAM_TYPE:return"audio";case n.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!a(t))return null;var e=4+s(t);if(e&gt;=t.byteLength)return null;var i,n=null;return 192&amp;(i=t[e+7])&amp;&amp;((n={}).pts=(14&amp;t[e+9])&lt;&lt;27|(255&amp;t[e+10])&lt;&lt;20|(254&amp;t[e+11])&lt;&lt;12|(255&amp;t[e+12])&lt;&lt;5|(254&amp;t[e+13])&gt;&gt;&gt;3,n.pts*=4,n.pts+=(6&amp;t[e+13])&gt;&gt;&gt;1,n.dts=n.pts,64&amp;i&amp;&amp;(n.dts=(14&amp;t[e+14])&lt;&lt;27|(255&amp;t[e+15])&lt;&lt;20|(254&amp;t[e+16])&lt;&lt;12|(255&amp;t[e+17])&lt;&lt;5|(254&amp;t[e+18])&gt;&gt;&gt;3,n.dts*=4,n.dts+=(6&amp;t[e+18])&gt;&gt;&gt;1)),n},videoPacketContainsKeyFrame:function(t){for(var e=4+s(t),i=t.subarray(e),n=0,r=0,a=!1;r&lt;i.byteLength-3;r++)if(1===i[r+2]){n=r+5;break}for(;n&lt;i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1]){n+=2;break}if(0!==i[n-2]){n++;break}r+3!==n-2&amp;&amp;"slice_layer_without_partitioning_rbsp_idr"===o(31&amp;i[r+3])&amp;&amp;(a=!0);do{n++}while(1!==i[n]&amp;&amp;n&lt;i.length);r=n-2,n+=3;break;case 1:if(0!==i[n-1]||0!==i[n-2]){n+=3;break}"slice_layer_without_partitioning_rbsp_idr"===o(31&amp;i[r+3])&amp;&amp;(a=!0),r=n-2,n+=3;break;default:n+=3}return i=i.subarray(r),n-=r,r=0,i&amp;&amp;i.byteLength&gt;3&amp;&amp;"slice_layer_without_partitioning_rbsp_idr"===o(31&amp;i[r+3])&amp;&amp;(a=!0),a}}},fx5k:function(t,e,i){var n,r,a,s,o;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,r=/^([^\/?#]*)(.*)$/,a=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,o={buildAbsoluteURL:function(t,e,i){if(i=i||{},t=t.trim(),!(e=e.trim())){if(!i.alwaysNormalize)return t;var n=o.parseURL(t);if(!n)throw new Error("Error trying to parse base URL.");return n.path=o.normalizePath(n.path),o.buildURLFromParts(n)}var a=o.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return i.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):e;var s=o.parseURL(t);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&amp;&amp;s.path&amp;&amp;"/"!==s.path[0]){var l=r.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&amp;&amp;!s.path&amp;&amp;(s.path="/");var u={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&amp;&amp;(u.netLoc=s.netLoc,"/"!==a.path[0]))if(a.path){var c=s.path,h=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=o.normalizePath(h)}else u.path=s.path,a.params||(u.params=s.params,a.query||(u.query=s.query));return null===u.path&amp;&amp;(u.path=i.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(u)},parseURL:function(t){var e=n.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(a,"");t.length!==(t=t.replace(s,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=o},gAM3:function(t,e,i){"use strict";var n=i("B7FF"),r=function(){r.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new u(0,0),new u(0,1),new u(1,0),new u(1,1)],this.reset(),this.ccStreams_.forEach(function(t){t.on("data",this.trigger.bind(this,"data")),t.on("done",this.trigger.bind(this,"done"))},this)};r.prototype=new n,r.prototype.push=function(t){var e,i;"sei_rbsp"===t.nalUnitType&amp;&amp;4===(e=function(t){for(var e=0,i={payloadType:-1,payloadSize:0},n=0,r=0;e&lt;t.byteLength&amp;&amp;128!==t[e];){for(;255===t[e];)n+=255,e++;for(n+=t[e++];255===t[e];)r+=255,e++;if(r+=t[e++],!i.payload&amp;&amp;4===n){i.payloadType=n,i.payloadSize=r,i.payload=t.subarray(e,e+r);break}e+=r,n=0,r=0}return i}(t.escapedRBSP)).payloadType&amp;&amp;(i=function(t){return 181!==t.payload[0]?null:49!=(t.payload[1]&lt;&lt;8|t.payload[2])?null:"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])?null:3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)}(e))&amp;&amp;(t.dts&lt;this.latestDts_?this.ignoreNextEqualDts_=!0:t.dts===this.latestDts_&amp;&amp;this.ignoreNextEqualDts_?this.ignoreNextEqualDts_=!1:(this.captionPackets_=this.captionPackets_.concat(function(t,e){var i,n,r,a,s=[];if(!(64&amp;e[0]))return s;for(n=31&amp;e[0],i=0;i&lt;n;i++)a={type:3&amp;e[2+(r=3*i)],pts:t},4&amp;e[r+2]&amp;&amp;(a.ccData=e[r+3]&lt;&lt;8|e[r+4],s.push(a));return s}(t.pts,i)),this.latestDts_=t.dts))},r.prototype.flush=function(){this.captionPackets_.length?(this.captionPackets_.forEach(function(t,e){t.presortIndex=e}),this.captionPackets_.sort(function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts}),this.captionPackets_.forEach(function(t){t.type&lt;2&amp;&amp;this.dispatchCea608Packet(t)},this),this.captionPackets_.length=0,this.ccStreams_.forEach(function(t){t.flush()},this)):this.ccStreams_.forEach(function(t){t.flush()},this)},r.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(t){t.reset()})},r.prototype.dispatchCea608Packet=function(t){this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&amp;&amp;(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&amp;&amp;this.ccStreams_[(t.type&lt;&lt;1)+this.activeCea608Channel_[t.type]].push(t)},r.prototype.setsChannel1Active=function(t){return 4096==(30720&amp;t.ccData)},r.prototype.setsChannel2Active=function(t){return 6144==(30720&amp;t.ccData)};var a={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},s=function(t){return null===t?"":(t=a[t]||t,String.fromCharCode(t))},o=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],l=function(){for(var t=[],e=15;e--;)t.push("");return t},u=function(t,e){u.prototype.init.call(this),this.field_=t||0,this.dataChannel_=e||0,this.name_="CC"+(1+(this.field_&lt;&lt;1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,i,n,r,a;if((e=32639&amp;t.ccData)!==this.lastControlCode_){if(4096==(61440&amp;e)?this.lastControlCode_=e:e!==this.PADDING_&amp;&amp;(this.lastControlCode_=null),n=e&gt;&gt;&gt;8,r=255&amp;e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.topRow_=13,this.mode_="rollUp";else if(e===this.ROLL_UP_3_ROWS_)this.topRow_=12,this.mode_="rollUp";else if(e===this.ROLL_UP_4_ROWS_)this.topRow_=11,this.mode_="rollUp";else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[14]=this.nonDisplayed_[14].slice(0,-1):this.displayed_[14]=this.displayed_[14].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=l();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=l();else if(e===this.RESUME_DIRECT_CAPTIONING_)this.mode_="paintOn";else if(this.isSpecialCharacter(n,r))a=s((n=(3&amp;n)&lt;&lt;8)|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[14]=this.displayed_[14].slice(0,-1),a=s((n=(3&amp;n)&lt;&lt;8)|r),this[this.mode_](t.pts,a),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&amp;r)&amp;&amp;this.addFormatting(t.pts,["i"]),1==(1&amp;r)&amp;&amp;this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&amp;r;else if(this.isPAC(n,r)){var u=o.indexOf(7968&amp;e);u!==this.row_&amp;&amp;(this.clearFormatting(t.pts),this.row_=u),1&amp;r&amp;&amp;-1===this.formatting_.indexOf("u")&amp;&amp;this.addFormatting(t.pts,["u"]),16==(16&amp;e)&amp;&amp;(this.column_=4*((14&amp;e)&gt;&gt;1)),this.isColorPAC(r)&amp;&amp;14==(14&amp;r)&amp;&amp;this.addFormatting(t.pts,["i"])}else this.isNormalChar(n)&amp;&amp;(0===r&amp;&amp;(r=null),a=s(n),a+=s(r),this[this.mode_](t.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};u.prototype=new n,u.prototype.flushDisplayed=function(t){var e=this.displayed_.map(function(t){return t.trim()}).join("\n").replace(/^\n+|\n+$/g,"");e.length&amp;&amp;this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},u.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=l(),this.nonDisplayed_=l(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.formatting_=[]},u.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)&lt;&lt;8,this.OFFSET_=23):1===this.dataChannel_&amp;&amp;(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)&lt;&lt;8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},u.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&amp;&amp;e&gt;=48&amp;&amp;e&lt;=63},u.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&amp;&amp;e&gt;=32&amp;&amp;e&lt;=63},u.prototype.isMidRowCode=function(t,e){return t===this.EXT_&amp;&amp;e&gt;=32&amp;&amp;e&lt;=47},u.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&amp;&amp;e&gt;=33&amp;&amp;e&lt;=35},u.prototype.isPAC=function(t,e){return t&gt;=this.BASE_&amp;&amp;t&lt;this.BASE_+8&amp;&amp;e&gt;=64&amp;&amp;e&lt;=127},u.prototype.isColorPAC=function(t){return t&gt;=64&amp;&amp;t&lt;=79||t&gt;=96&amp;&amp;t&lt;=127},u.prototype.isNormalChar=function(t){return t&gt;=32&amp;&amp;t&lt;=127},u.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var i=e.reduce(function(t,e){return t+"&lt;"+e+"&gt;"},"");this[this.mode_](t,i)},u.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce(function(t,e){return t+"&lt;/"+e+"&gt;"},"");this.formatting_=[],this[this.mode_](t,e)}},u.prototype.popOn=function(t,e){var i=this.nonDisplayed_[this.row_];i+=e,this.nonDisplayed_[this.row_]=i},u.prototype.rollUp=function(t,e){var i=this.displayed_[14];i+=e,this.displayed_[14]=i},u.prototype.shiftRowsUp_=function(){var t;for(t=0;t&lt;this.topRow_;t++)this.displayed_[t]="";for(t=this.topRow_;t&lt;14;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[14]=""},u.prototype.paintOn=function(){},t.exports={CaptionStream:r,Cea608Stream:u}},gY6H:function(t,e,i){"use strict";var n;n=function(t){var e=t.byteLength,i=0,n=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+n},this.loadWord=function(){var r=t.byteLength-e,a=new Uint8Array(4),s=Math.min(4,e);if(0===s)throw new Error("no bytes available");a.set(t.subarray(r,r+s)),i=new DataView(a.buffer).getUint32(0),n=8*s,e-=s},this.skipBits=function(t){var r;n&gt;t?(i&lt;&lt;=t,n-=t):(t-=n,t-=8*(r=Math.floor(t/8)),e-=r,this.loadWord(),i&lt;&lt;=t,n-=t)},this.readBits=function(t){var r=Math.min(n,t),a=i&gt;&gt;&gt;32-r;return(n-=r)&gt;0?i&lt;&lt;=r:e&gt;0&amp;&amp;this.loadWord(),(r=t-r)&gt;0?a&lt;&lt;r|this.readBits(r):a},this.skipLeadingZeros=function(){var t;for(t=0;t&lt;n;++t)if(0!=(i&amp;2147483648&gt;&gt;&gt;t))return i&lt;&lt;=t,n-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&amp;t?1+t&gt;&gt;&gt;1:-1*(t&gt;&gt;&gt;1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},t.exports=n},hfH3:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.parseCodecs=function(){var t,e=arguments.length&lt;=0||void 0===arguments[0]?"":arguments[0],i={codecCount:0};return i.codecCount=e.split(",").length,i.codecCount=i.codecCount||2,(t=/(^|\s|,)+(avc1)([^ ,]*)/i.exec(e))&amp;&amp;(i.videoCodec=t[2],i.videoObjectTypeIndicator=t[3]),i.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(e),i.audioProfile=i.audioProfile&amp;&amp;i.audioProfile[2],i}},iMiW:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return t.start(e)+"-"+t.end(e)},r=function(t,e){var i=t.toString(16);return"00".substring(0,2-i.length)+i+(e%2?" ":"")},a=function(t){return t&gt;=32&amp;&amp;t&lt;126?String.fromCharCode(t):"."},s={hexDump:function(t){for(var e=Array.prototype.slice.call(t),i="",n=0;n&lt;e.length/16;n++)i+=e.slice(16*n,16*n+16).map(r).join("")+" "+e.slice(16*n,16*n+16).map(a).join("")+"\n";return i},tagDump:function(t){return s.hexDump(t.bytes)},textRanges:function(t){var e="",i=void 0;for(i=0;i&lt;t.length;i++)e+=n(t,i)+" ";return e},createTransferableMessage:function(t){var e={};return Object.keys(t).forEach(function(i){var n=t[i];ArrayBuffer.isView(n)?e[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:e[i]=n}),e},initSegmentId:function(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")}};e.default=s,t.exports=e.default},idpB:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,i){var n=void 0,r=void 0;if(i&amp;&amp;i.cues)for(n=i.cues.length;n--;)(r=i.cues[n]).startTime&lt;=e&amp;&amp;r.endTime&gt;=t&amp;&amp;i.removeCue(r)},t.exports=e.default},iuos:function(t,e,i){"use strict";var n=i("B7FF"),r=function(t){this.numberOfTracks=0,this.metadataStream=t.metadataStream,this.videoTags=[],this.audioTags=[],this.videoTrack=null,this.audioTrack=null,this.pendingCaptions=[],this.pendingMetadata=[],this.pendingTracks=0,this.processedTracks=0,r.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):("video"===t.track.type&amp;&amp;(this.videoTrack=t.track,this.videoTags=t.tags,this.pendingTracks++),void("audio"===t.track.type&amp;&amp;(this.audioTrack=t.track,this.audioTags=t.tags,this.pendingTracks++)))}};r.prototype=new n,r.prototype.flush=function(t){var e,i,n,r,a={tags:{},captions:[],captionStreams:{},metadata:[]};if(this.pendingTracks&lt;this.numberOfTracks){if("VideoSegmentStream"!==t&amp;&amp;"AudioSegmentStream"!==t)return;if(0===this.pendingTracks&amp;&amp;(this.processedTracks++,this.processedTracks&lt;this.numberOfTracks))return}if(this.processedTracks+=this.pendingTracks,this.pendingTracks=0,!(this.processedTracks&lt;this.numberOfTracks)){for(this.videoTrack?r=this.videoTrack.timelineStartInfo.pts:this.audioTrack&amp;&amp;(r=this.audioTrack.timelineStartInfo.pts),a.tags.videoTags=this.videoTags,a.tags.audioTags=this.audioTags,n=0;n&lt;this.pendingCaptions.length;n++)(i=this.pendingCaptions[n]).startTime=i.startPts-r,i.startTime/=9e4,i.endTime=i.endPts-r,i.endTime/=9e4,a.captionStreams[i.stream]=!0,a.captions.push(i);for(n=0;n&lt;this.pendingMetadata.length;n++)(e=this.pendingMetadata[n]).cueTime=e.pts-r,e.cueTime/=9e4,a.metadata.push(e);a.metadata.dispatchType=this.metadataStream.dispatchType,this.videoTrack=null,this.audioTrack=null,this.videoTags=[],this.audioTags=[],this.pendingCaptions.length=0,this.pendingMetadata.length=0,this.pendingTracks=0,this.processedTracks=0,this.trigger("data",a),this.trigger("done")}},t.exports=r},"j+Zh":function(t,e,i){"use strict";t.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},"k+z6":function(t,e,i){"use strict";function n(t){return t&amp;&amp;t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i("awF4")),a=n(i("JA04")),s=n(i("s0lu")),o=n(i("f8ML")),l=0,u={mode:"auto"};o.default.mediaSources={};var c=function(t,e){var i=o.default.mediaSources[t];if(!i)throw new Error("Media Source not found (Video.js)");i.trigger({type:"sourceopen",swfId:e})},h=function(){return!!r.default.MediaSource&amp;&amp;!!r.default.MediaSource.isTypeSupported&amp;&amp;r.default.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},d=function(t){var e=o.default.mergeOptions(u,t);if(this.MediaSource={open:c,supportsNativeMediaSources:h},"html5"===e.mode||"auto"===e.mode&amp;&amp;h())return new s.default;if(o.default.getTech("Flash"))return new a.default;throw new Error("Cannot use Flash or Html5 to create a MediaSource for this video")};e.MediaSource=d,d.open=c,d.supportsNativeMediaSources=h;var p={createObjectURL:function(t){var e=void 0;return t instanceof s.default?(e=r.default.URL.createObjectURL(t.nativeMediaSource_),t.url_=e,e):t instanceof a.default?(e="blob:vjs-media-source/"+l,l++,o.default.mediaSources[e]=t,e):(e=r.default.URL.createObjectURL(t),t.url_=e,e)}};e.URL=p,o.default.MediaSource=d,o.default.URL=p},lT65:function(t,e,i){var n=i("awF4"),r=t.exports={WebVTT:i("1mVh"),VTTCue:i("CJnt"),VTTRegion:i("0gME")};n.vttjs=r,n.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=n.VTTCue,l=n.VTTRegion;r.shim=function(){n.VTTCue=a,n.VTTRegion=s},r.restore=function(){n.VTTCue=o,n.VTTRegion=l},n.VTTCue||r.shim()},lamJ:function(t,e){var i,n,r,a,s,o;i=function(t){return 9e4*t},n=function(t,e){return t*e},r=function(t){return t/9e4},a=function(t,e){return t/e},s=function(t,e){return i(a(t,e))},o=function(t,e){return n(r(t),e)},t.exports={secondsToVideoTs:i,secondsToAudioTs:n,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:s,videoTsToAudioTs:o}},nAZl:function(t,e,i){"use strict";var n,r,a,s,o,l,u,c=i("nIbA"),h=i("020U"),d=i("MjOi"),p=i("zGuD"),f=i("4cG2"),g=i("GJFR"),m=i("7GJ1").H264Stream,y=i("GfXe"),v=i("7JOd"),_=i("lamJ"),b=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],T=["width","height","profileIdc","levelIdc","profileCompatibility"];o=function(t){return t[0]==="I".charCodeAt(0)&amp;&amp;t[1]==="D".charCodeAt(0)&amp;&amp;t[2]==="3".charCodeAt(0)},l=function(t,e){var i;if(t.length!==e.length)return!1;for(i=0;i&lt;t.length;i++)if(t[i]!==e[i])return!1;return!0},u=function(t){var e,i=0;for(e=0;e&lt;t.length;e++)i+=t[e].data.byteLength;return i},(r=function(t,e){var i=[],n=0,a=0,s=0,o=1/0;e=e||{},r.prototype.init.call(this),this.push=function(e){p.collectDtsInfo(t,e),t&amp;&amp;b.forEach(function(i){t[i]=e[i]}),i.push(e)},this.setEarliestDts=function(e){a=e-t.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(t){o=t},this.setAudioAppendStart=function(t){s=t},this.flush=function(){var r,a,s,o;0!==i.length?(r=this.trimAdtsFramesByEarliestDts_(i),t.baseMediaDecodeTime=p.calculateTrackBaseMediaDecodeTime(t,e.keepOriginalTimestamps),this.prefixWithSilence_(t,r),t.samples=this.generateSampleTable_(r),s=h.mdat(this.concatenateFrameData_(r)),i=[],a=h.moof(n,[t]),o=new Uint8Array(a.byteLength+s.byteLength),n++,o.set(a),o.set(s,a.byteLength),p.clearDtsInfo(t),this.trigger("data",{track:t,boxes:o}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.prefixWithSilence_=function(t,e){var i,n,r,a,l=0,u=0,c=0;if(e.length&amp;&amp;(i=_.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),n=Math.ceil(9e4/(t.samplerate/1024)),s&amp;&amp;o&amp;&amp;(l=i-Math.max(s,o),c=(u=Math.floor(l/n))*n),!(u&lt;1||c&gt;45e3))){for((r=v[t.samplerate])||(r=e[0].data),a=0;a&lt;u;a++)e.splice(a,0,{data:r});t.baseMediaDecodeTime-=Math.floor(_.videoTsToAudioTs(c,t.samplerate))}},this.trimAdtsFramesByEarliestDts_=function(e){return t.minSegmentDts&gt;=a?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts&gt;=a&amp;&amp;(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},this.generateSampleTable_=function(t){var e,i,n=[];for(e=0;e&lt;t.length;e++)i=t[e],n.push({size:i.data.byteLength,duration:1024});return n},this.concatenateFrameData_=function(t){var e,i,n=0,r=new Uint8Array(u(t));for(e=0;e&lt;t.length;e++)i=t[e],r.set(i.data,n),n+=i.data.byteLength;return r}}).prototype=new c,(n=function(t,e){var i,r,a=0,s=[],o=[];e=e||{},n.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){p.collectDtsInfo(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.config,t.sps=[e.data],T.forEach(function(e){t[e]=i[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||r||(r=e.data,t.pps=[e.data]),s.push(e)},this.flush=function(){for(var i,n,r,l,u,c;s.length&amp;&amp;"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=d.groupNalsIntoFrames(s),(r=d.groupFramesIntoGops(i))[0][0].keyFrame||((n=this.getGopForFusion_(s[0],t))?(r.unshift(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.pts=n.pts,r.dts=n.dts,r.duration+=n.duration):r=d.extendFirstKeyFrame(r)),o.length){var f;if(!(f=e.alignGopsAtEnd?this.alignGopsAtEnd_(r):this.alignGopsAtStart_(r)))return this.gopCache_.unshift({gop:r.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");p.clearDtsInfo(t),r=f}p.collectDtsInfo(t,r),t.samples=d.generateSampleTable(r),u=h.mdat(d.concatenateNalData(r)),t.baseMediaDecodeTime=p.calculateTrackBaseMediaDecodeTime(t,e.keepOriginalTimestamps),this.trigger("processedGopsInfo",r.map(function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}})),this.gopCache_.unshift({gop:r.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),l=h.moof(a,[t]),c=new Uint8Array(l.byteLength+u.byteLength),a++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:t,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.resetStream_=function(){p.clearDtsInfo(t),i=void 0,r=void 0},this.getGopForFusion_=function(e){var i,n,r,a,s,o=1/0;for(s=0;s&lt;this.gopCache_.length;s++)r=(a=this.gopCache_[s]).gop,t.pps&amp;&amp;l(t.pps[0],a.pps[0])&amp;&amp;t.sps&amp;&amp;l(t.sps[0],a.sps[0])&amp;&amp;(r.dts&lt;t.timelineStartInfo.dts||(i=e.dts-r.dts-r.duration)&gt;=-1e4&amp;&amp;i&lt;=45e3&amp;&amp;(!n||o&gt;i)&amp;&amp;(n=a,o=i));return n?n.gop:null},this.alignGopsAtStart_=function(t){var e,i,n,r,a,s,l,u;for(a=t.byteLength,s=t.nalCount,l=t.duration,e=i=0;e&lt;o.length&amp;&amp;i&lt;t.length&amp;&amp;(n=o[e],r=t[i],n.pts!==r.pts);)r.pts&gt;n.pts?e++:(i++,a-=r.byteLength,s-=r.nalCount,l-=r.duration);return 0===i?t:i===t.length?null:((u=t.slice(i)).byteLength=a,u.duration=l,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(t){var e,i,n,r,a,s,l;for(e=o.length-1,i=t.length-1,a=null,s=!1;e&gt;=0&amp;&amp;i&gt;=0;){if(n=o[e],r=t[i],n.pts===r.pts){s=!0;break}n.pts&gt;r.pts?e--:(e===o.length-1&amp;&amp;(a=i),i--)}if(!s&amp;&amp;null===a)return null;if(0===(l=s?i:a))return t;var u=t.slice(l),c=u.reduce(function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t},{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(t){o=t}}).prototype=new c,(s=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==t.remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,s.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBoxes.push(t.boxes),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&amp;&amp;(this.videoTrack=t.track),void("audio"===t.track.type&amp;&amp;(this.audioTrack=t.track)))}}).prototype=new c,s.prototype.flush=function(t){var e,i,n,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length&lt;this.numberOfTracks){if("VideoSegmentStream"!==t&amp;&amp;"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks&gt;=this.numberOfTracks&amp;&amp;(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,T.forEach(function(t){s.info[t]=this.videoTrack[t]},this)):this.audioTrack&amp;&amp;(o=this.audioTrack.timelineStartInfo.pts,b.forEach(function(t){s.info[t]=this.audioTrack[t]},this)),1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,n=h.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),s.data=new Uint8Array(this.pendingBytes),r=0;r&lt;this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r&lt;this.pendingCaptions.length;r++)(e=this.pendingCaptions[r]).startTime=e.startPts-o,e.startTime/=9e4,e.endTime=e.endPts-o,e.endTime/=9e4,s.captionStreams[e.stream]=!0,s.captions.push(e);for(r=0;r&lt;this.pendingMetadata.length;r++)(i=this.pendingMetadata[r]).cueTime=i.pts-o,i.cueTime/=9e4,s.metadata.push(i);s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),this.emittedTracks&gt;=this.numberOfTracks&amp;&amp;(this.trigger("done"),this.emittedTracks=0)},(a=function(t){var e,i,l=this,u=!0;a.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var e={};this.transmuxPipeline_=e,e.type="aac",e.metadataStream=new f.MetadataStream,e.aacStream=new y,e.audioTimestampRolloverStream=new f.TimestampRolloverStream("audio"),e.timedMetadataTimestampRolloverStream=new f.TimestampRolloverStream("timed-metadata"),e.adtsStream=new g,e.coalesceStream=new s(t,e.metadataStream),e.headOfPipeline=e.aacStream,e.aacStream.pipe(e.audioTimestampRolloverStream).pipe(e.adtsStream),e.aacStream.pipe(e.timedMetadataTimestampRolloverStream).pipe(e.metadataStream).pipe(e.coalesceStream),e.metadataStream.on("timestamp",function(t){e.aacStream.setTimestamp(t.timeStamp)}),e.aacStream.on("data",function(n){"timed-metadata"!==n.type||e.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:l.baseMediaDecodeTime},codec:"adts",type:"audio"},e.coalesceStream.numberOfTracks++,e.audioSegmentStream=new r(i,t),e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream))}),e.coalesceStream.on("data",this.trigger.bind(this,"data")),e.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var a={};this.transmuxPipeline_=a,a.type="ts",a.metadataStream=new f.MetadataStream,a.packetStream=new f.TransportPacketStream,a.parseStream=new f.TransportParseStream,a.elementaryStream=new f.ElementaryStream,a.videoTimestampRolloverStream=new f.TimestampRolloverStream("video"),a.audioTimestampRolloverStream=new f.TimestampRolloverStream("audio"),a.timedMetadataTimestampRolloverStream=new f.TimestampRolloverStream("timed-metadata"),a.adtsStream=new g,a.h264Stream=new m,a.captionStream=new f.CaptionStream,a.coalesceStream=new s(t,a.metadataStream),a.headOfPipeline=a.packetStream,a.packetStream.pipe(a.parseStream).pipe(a.elementaryStream),a.elementaryStream.pipe(a.videoTimestampRolloverStream).pipe(a.h264Stream),a.elementaryStream.pipe(a.audioTimestampRolloverStream).pipe(a.adtsStream),a.elementaryStream.pipe(a.timedMetadataTimestampRolloverStream).pipe(a.metadataStream).pipe(a.coalesceStream),a.h264Stream.pipe(a.captionStream).pipe(a.coalesceStream),a.elementaryStream.on("data",function(s){var o;if("metadata"===s.type){for(o=s.tracks.length;o--;)e||"video"!==s.tracks[o].type?i||"audio"!==s.tracks[o].type||((i=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=l.baseMediaDecodeTime):(e=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=l.baseMediaDecodeTime;e&amp;&amp;!a.videoSegmentStream&amp;&amp;(a.coalesceStream.numberOfTracks++,a.videoSegmentStream=new n(e,t),a.videoSegmentStream.on("timelineStartInfo",function(t){i&amp;&amp;(i.timelineStartInfo=t,a.audioSegmentStream.setEarliestDts(t.dts))}),a.videoSegmentStream.on("processedGopsInfo",l.trigger.bind(l,"gopInfo")),a.videoSegmentStream.on("baseMediaDecodeTime",function(t){i&amp;&amp;a.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}),a.h264Stream.pipe(a.videoSegmentStream).pipe(a.coalesceStream)),i&amp;&amp;!a.audioSegmentStream&amp;&amp;(a.coalesceStream.numberOfTracks++,a.audioSegmentStream=new r(i,t),a.adtsStream.pipe(a.audioSegmentStream).pipe(a.coalesceStream))}}),a.coalesceStream.on("data",this.trigger.bind(this,"data")),a.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(t){var n=this.transmuxPipeline_;this.baseMediaDecodeTime=t,i&amp;&amp;(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,p.clearDtsInfo(i),i.timelineStartInfo.baseMediaDecodeTime=t,n.audioTimestampRolloverStream&amp;&amp;n.audioTimestampRolloverStream.discontinuity()),e&amp;&amp;(n.videoSegmentStream&amp;&amp;(n.videoSegmentStream.gopCache_=[],n.videoTimestampRolloverStream.discontinuity()),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,p.clearDtsInfo(e),n.captionStream.reset(),e.timelineStartInfo.baseMediaDecodeTime=t),n.timedMetadataTimestampRolloverStream&amp;&amp;n.timedMetadataTimestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){i&amp;&amp;this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.alignGopsWith=function(t){e&amp;&amp;this.transmuxPipeline_.videoSegmentStream&amp;&amp;this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(u){var e=o(t);e&amp;&amp;"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),u=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){u=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&amp;&amp;this.transmuxPipeline_.captionStream.reset()}}).prototype=new c,t.exports={Transmuxer:a,VideoSegmentStream:n,AudioSegmentStream:r,AUDIO_PROPERTIES:b,VIDEO_PROPERTIES:T}},nIbA:function(t,e,i){"use strict";var n=function(){this.init=function(){var t={};this.on=function(e,i){t[e]||(t[e]=[]),t[e]=t[e].concat(i)},this.off=function(e,i){var n;return!!t[e]&amp;&amp;(n=t[e].indexOf(i),t[e]=t[e].slice(),t[e].splice(n,1),n&gt;-1)},this.trigger=function(e){var i,n,r,a;if(i=t[e])if(2===arguments.length)for(r=i.length,n=0;n&lt;r;++n)i[n].call(this,arguments[1]);else{for(a=[],n=arguments.length,n=1;n&lt;arguments.length;++n)a.push(arguments[n]);for(r=i.length,n=0;n&lt;r;++n)i[n].apply(this,a)}},this.dispose=function(){t={}}}};n.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),t},n.prototype.push=function(t){this.trigger("data",t)},n.prototype.flush=function(t){this.trigger("done",t)},t.exports=n},ndah:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,i){var n=e.player_;if(i.captions&amp;&amp;i.captions.length)for(var r in t.inbandTextTracks_||(t.inbandTextTracks_={}),i.captionStreams)if(!t.inbandTextTracks_[r]){n.tech_.trigger({type:"usage",name:"hls-608"});var a=n.textTracks().getTrackById(r);t.inbandTextTracks_[r]=a||n.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}i.metadata&amp;&amp;i.metadata.length&amp;&amp;!t.metadataTrack_&amp;&amp;(t.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=i.metadata.dispatchType)},t.exports=e.default},oUON:function(t,e,i){"use strict";var n,r,a,s=i("B7FF"),o=i("gY6H");(r=function(){var t,e,i=0;r.prototype.init.call(this),this.push=function(n){var r;for(e?((r=new Uint8Array(e.byteLength+n.data.byteLength)).set(e),r.set(n.data,e.byteLength),e=r):e=n.data;i&lt;e.byteLength-3;i++)if(1===e[i+2]){t=i+5;break}for(;t&lt;e.byteLength;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}i+3!==t-2&amp;&amp;this.trigger("data",e.subarray(i+3,t-2));do{t++}while(1!==e[t]&amp;&amp;t&lt;e.length);i=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(i+3,t-2)),i=t-2,t+=3;break;default:t+=3}e=e.subarray(i),t-=i,i=0},this.flush=function(){e&amp;&amp;e.byteLength&gt;3&amp;&amp;this.trigger("data",e.subarray(i+3)),e=null,i=0,this.trigger("done")}}).prototype=new s,a={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(n=function(){var t,e,i,s,l,u,c,h=new r;n.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&amp;&amp;(e=t.trackId,i=t.pts,s=t.dts,h.push(t))},h.on("data",function(n){var r={trackId:e,pts:i,dts:s,data:n};switch(31&amp;n[0]){case 5:r.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:r.nalUnitType="sei_rbsp",r.escapedRBSP=l(n.subarray(1));break;case 7:r.nalUnitType="seq_parameter_set_rbsp",r.escapedRBSP=l(n.subarray(1)),r.config=u(r.escapedRBSP);break;case 8:r.nalUnitType="pic_parameter_set_rbsp";break;case 9:r.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",r)}),h.on("done",function(){t.trigger("done")}),this.flush=function(){h.flush()},c=function(t,e){var i,n=8,r=8;for(i=0;i&lt;t;i++)0!==r&amp;&amp;(r=(n+e.readExpGolomb()+256)%256),n=0===r?n:r},l=function(t){for(var e,i,n=t.byteLength,r=[],a=1;a&lt;n-2;)0===t[a]&amp;&amp;0===t[a+1]&amp;&amp;3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=n-r.length,i=new Uint8Array(e);var s=0;for(a=0;a&lt;e;s++,a++)s===r[0]&amp;&amp;(s++,r.shift()),i[a]=t[s];return i},u=function(t){var e,i,n,r,s,l,u,h,d,p,f,g,m,y=0,v=0,_=0,b=0,T=1;if(i=(e=new o(t)).readUnsignedByte(),r=e.readUnsignedByte(),n=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),a[i]&amp;&amp;(3===(s=e.readUnsignedExpGolomb())&amp;&amp;e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(f=3!==s?8:12,m=0;m&lt;f;m++)e.readBoolean()&amp;&amp;c(m&lt;6?16:64,e);if(e.skipUnsignedExpGolomb(),0===(l=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===l)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),u=e.readUnsignedExpGolomb(),m=0;m&lt;u;m++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),h=e.readUnsignedExpGolomb(),d=e.readUnsignedExpGolomb(),0===(p=e.readBits(1))&amp;&amp;e.skipBits(1),e.skipBits(1),e.readBoolean()&amp;&amp;(y=e.readUnsignedExpGolomb(),v=e.readUnsignedExpGolomb(),_=e.readUnsignedExpGolomb(),b=e.readUnsignedExpGolomb()),e.readBoolean()&amp;&amp;e.readBoolean()){switch(e.readUnsignedByte()){case 1:g=[1,1];break;case 2:g=[12,11];break;case 3:g=[10,11];break;case 4:g=[16,11];break;case 5:g=[40,33];break;case 6:g=[24,11];break;case 7:g=[20,11];break;case 8:g=[32,11];break;case 9:g=[80,33];break;case 10:g=[18,11];break;case 11:g=[15,11];break;case 12:g=[64,33];break;case 13:g=[160,99];break;case 14:g=[4,3];break;case 15:g=[3,2];break;case 16:g=[2,1];break;case 255:g=[e.readUnsignedByte()&lt;&lt;8|e.readUnsignedByte(),e.readUnsignedByte()&lt;&lt;8|e.readUnsignedByte()]}g&amp;&amp;(T=g[0]/g[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:r,width:Math.ceil((16*(h+1)-2*y-2*v)*T),height:(2-p)*(d+1)*16-2*_-2*b}}}).prototype=new s,t.exports={H264Stream:n,NalByteStream:r}},"oow/":function(t,e,i){var n=i("awF4"),r=t.exports={WebVTT:i("BWrl"),VTTCue:i("u6Fd"),VTTRegion:i("1nIV")};n.vttjs=r,n.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=n.VTTCue,l=n.VTTRegion;r.shim=function(){n.VTTCue=a,n.VTTRegion=s},r.restore=function(){n.VTTCue=o,n.VTTRegion=l},n.VTTCue||r.shim()},pP26:function(t,e,i){"use strict";var n=function(){this.init=function(){var t={};this.on=function(e,i){t[e]||(t[e]=[]),t[e]=t[e].concat(i)},this.off=function(e,i){var n;return!!t[e]&amp;&amp;(n=t[e].indexOf(i),t[e]=t[e].slice(),t[e].splice(n,1),n&gt;-1)},this.trigger=function(e){var i,n,r,a;if(i=t[e])if(2===arguments.length)for(r=i.length,n=0;n&lt;r;++n)i[n].call(this,arguments[1]);else{for(a=[],n=arguments.length,n=1;n&lt;arguments.length;++n)a.push(arguments[n]);for(r=i.length,n=0;n&lt;r;++n)i[n].apply(this,a)}},this.dispose=function(){t={}}}};n.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),t},n.prototype.push=function(t){this.trigger("data",t)},n.prototype.flush=function(t){this.trigger("done",t)},t.exports=n},pl6C:function(t,e,i){"use strict";t.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},"q+vg":function(t,e){t.exports=function(){for(var t={},e=0;e&lt;arguments.length;e++){var n=arguments[e];for(var r in n)i.call(n,r)&amp;&amp;(t[r]=n[r])}return t};var i=Object.prototype.hasOwnProperty},q4KR:function(t,e,i){"use strict";var n,r,a,s,o,l,u,c,h,d,p=i("B7FF"),f=i("KlPZ"),g=i("ZX5X"),m=i("z8xp"),y=i("oUON").H264Stream,v=i("x8aX"),_=i("C/6V"),b=i("GD2l"),T=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],S=["width","height","profileIdc","levelIdc","profileCompatibility"];o=function(t){return t[0]==="I".charCodeAt(0)&amp;&amp;t[1]==="D".charCodeAt(0)&amp;&amp;t[2]==="3".charCodeAt(0)},h=function(t,e){var i;if(t.length!==e.length)return!1;for(i=0;i&lt;t.length;i++)if(t[i]!==e[i])return!1;return!0},d=function(t){var e,i=0;for(e=0;e&lt;t.length;e++)i+=t[e].data.byteLength;return i},(r=function(t){var e=[],i=0,n=0,a=0,s=1/0;r.prototype.init.call(this),this.push=function(i){l(t,i),t&amp;&amp;T.forEach(function(e){t[e]=i[e]}),e.push(i)},this.setEarliestDts=function(e){n=e-t.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(t){s=t},this.setAudioAppendStart=function(t){a=t},this.flush=function(){var n,r,a,s;0!==e.length?(n=this.trimAdtsFramesByEarliestDts_(e),t.baseMediaDecodeTime=c(t),this.prefixWithSilence_(t,n),t.samples=this.generateSampleTable_(n),a=f.mdat(this.concatenateFrameData_(n)),e=[],r=f.moof(i,[t]),s=new Uint8Array(r.byteLength+a.byteLength),i++,s.set(r),s.set(a,r.byteLength),u(t),this.trigger("data",{track:t,boxes:s}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.prefixWithSilence_=function(t,e){var i,n,r,o,l=0,u=0,c=0;if(e.length&amp;&amp;(i=b.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),n=Math.ceil(9e4/(t.samplerate/1024)),a&amp;&amp;s&amp;&amp;(l=i-Math.max(a,s),c=(u=Math.floor(l/n))*n),!(u&lt;1||c&gt;45e3))){for((r=_[t.samplerate])||(r=e[0].data),o=0;o&lt;u;o++)e.splice(o,0,{data:r});t.baseMediaDecodeTime-=Math.floor(b.videoTsToAudioTs(c,t.samplerate))}},this.trimAdtsFramesByEarliestDts_=function(e){return t.minSegmentDts&gt;=n?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts&gt;=n&amp;&amp;(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},this.generateSampleTable_=function(t){var e,i,n=[];for(e=0;e&lt;t.length;e++)i=t[e],n.push({size:i.data.byteLength,duration:1024});return n},this.concatenateFrameData_=function(t){var e,i,n=0,r=new Uint8Array(d(t));for(e=0;e&lt;t.length;e++)i=t[e],r.set(i.data,n),n+=i.data.byteLength;return r}}).prototype=new p,(n=function(t,e){var i,r,a=0,s=[],o=[];e=e||{},n.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){l(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.config,t.sps=[e.data],S.forEach(function(e){t[e]=i[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||r||(r=e.data,t.pps=[e.data]),s.push(e)},this.flush=function(){for(var i,n,r,h,d,p;s.length&amp;&amp;"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=this.groupNalsIntoFrames_(s),(r=this.groupFramesIntoGops_(i))[0][0].keyFrame||((n=this.getGopForFusion_(s[0],t))?(r.unshift(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.pts=n.pts,r.dts=n.dts,r.duration+=n.duration):r=this.extendFirstKeyFrame_(r)),o.length){var g;if(!(g=e.alignGopsAtEnd?this.alignGopsAtEnd_(r):this.alignGopsAtStart_(r)))return this.gopCache_.unshift({gop:r.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");u(t),r=g}l(t,r),t.samples=this.generateSampleTable_(r),d=f.mdat(this.concatenateNalData_(r)),t.baseMediaDecodeTime=c(t),this.trigger("processedGopsInfo",r.map(function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}})),this.gopCache_.unshift({gop:r.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),h=f.moof(a,[t]),p=new Uint8Array(h.byteLength+d.byteLength),a++,p.set(h),p.set(d,h.byteLength),this.trigger("data",{track:t,boxes:p}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.resetStream_=function(){u(t),i=void 0,r=void 0},this.getGopForFusion_=function(e){var i,n,r,a,s,o=1/0;for(s=0;s&lt;this.gopCache_.length;s++)r=(a=this.gopCache_[s]).gop,t.pps&amp;&amp;h(t.pps[0],a.pps[0])&amp;&amp;t.sps&amp;&amp;h(t.sps[0],a.sps[0])&amp;&amp;(r.dts&lt;t.timelineStartInfo.dts||(i=e.dts-r.dts-r.duration)&gt;=-1e4&amp;&amp;i&lt;=45e3&amp;&amp;(!n||o&gt;i)&amp;&amp;(n=a,o=i));return n?n.gop:null},this.extendFirstKeyFrame_=function(t){var e;return!t[0][0].keyFrame&amp;&amp;t.length&gt;1&amp;&amp;(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},this.groupNalsIntoFrames_=function(t){var e,i,n=[],r=[];for(n.byteLength=0,e=0;e&lt;t.length;e++)"access_unit_delimiter_rbsp"===(i=t[e]).nalUnitType?(n.length&amp;&amp;(n.duration=i.dts-n.dts,r.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&amp;&amp;(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&amp;&amp;(!n.duration||n.duration&lt;=0)&amp;&amp;(n.duration=r[r.length-1].duration),r.push(n),r},this.groupFramesIntoGops_=function(t){var e,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=t[0].pts,n.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e&lt;t.length;e++)(i=t[e]).keyFrame?(n.length&amp;&amp;(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&amp;&amp;n.duration&lt;=0&amp;&amp;(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},this.generateSampleTable_=function(t,e){var i,n,r,a,s,o=e||0,l=[];for(i=0;i&lt;t.length;i++)for(a=t[i],n=0;n&lt;a.length;n++)s=a[n],(r={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0}}).dataOffset=o,r.compositionTimeOffset=s.pts-s.dts,r.duration=s.duration,r.size=4*s.length,r.size+=s.byteLength,s.keyFrame&amp;&amp;(r.flags.dependsOn=2),o+=r.size,l.push(r);return l},this.concatenateNalData_=function(t){var e,i,n,r,a,s,o=0,l=t.byteLength,u=t.nalCount,c=new Uint8Array(l+4*u),h=new DataView(c.buffer);for(e=0;e&lt;t.length;e++)for(r=t[e],i=0;i&lt;r.length;i++)for(a=r[i],n=0;n&lt;a.length;n++)s=a[n],h.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c},this.alignGopsAtStart_=function(t){var e,i,n,r,a,s,l,u;for(a=t.byteLength,s=t.nalCount,l=t.duration,e=i=0;e&lt;o.length&amp;&amp;i&lt;t.length&amp;&amp;(n=o[e],r=t[i],n.pts!==r.pts);)r.pts&gt;n.pts?e++:(i++,a-=r.byteLength,s-=r.nalCount,l-=r.duration);return 0===i?t:i===t.length?null:((u=t.slice(i)).byteLength=a,u.duration=l,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(t){var e,i,n,r,a,s,l;for(e=o.length-1,i=t.length-1,a=null,s=!1;e&gt;=0&amp;&amp;i&gt;=0;){if(n=o[e],r=t[i],n.pts===r.pts){s=!0;break}n.pts&gt;r.pts?e--:(e===o.length-1&amp;&amp;(a=i),i--)}if(!s&amp;&amp;null===a)return null;if(0===(l=s?i:a))return t;var u=t.slice(l),c=u.reduce(function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t},{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(t){o=t}}).prototype=new p,l=function(t,e){"number"==typeof e.pts&amp;&amp;(void 0===t.timelineStartInfo.pts&amp;&amp;(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&amp;&amp;(void 0===t.timelineStartInfo.dts&amp;&amp;(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},u=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},c=function(t){var e,i=t.minSegmentDts-t.timelineStartInfo.dts;return e=t.timelineStartInfo.baseMediaDecodeTime,e+=i,e=Math.max(0,e),"audio"===t.type&amp;&amp;(e*=t.samplerate/9e4,e=Math.floor(e)),e},(s=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==t.remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,s.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBoxes.push(t.boxes),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&amp;&amp;(this.videoTrack=t.track),void("audio"===t.track.type&amp;&amp;(this.audioTrack=t.track)))}}).prototype=new p,s.prototype.flush=function(t){var e,i,n,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length&lt;this.numberOfTracks){if("VideoSegmentStream"!==t&amp;&amp;"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks&gt;=this.numberOfTracks&amp;&amp;(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,S.forEach(function(t){s.info[t]=this.videoTrack[t]},this)):this.audioTrack&amp;&amp;(o=this.audioTrack.timelineStartInfo.pts,T.forEach(function(t){s.info[t]=this.audioTrack[t]},this)),1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,n=f.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),s.data=new Uint8Array(this.pendingBytes),r=0;r&lt;this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r&lt;this.pendingCaptions.length;r++)(e=this.pendingCaptions[r]).startTime=e.startPts-o,e.startTime/=9e4,e.endTime=e.endPts-o,e.endTime/=9e4,s.captionStreams[e.stream]=!0,s.captions.push(e);for(r=0;r&lt;this.pendingMetadata.length;r++)(i=this.pendingMetadata[r]).cueTime=i.pts-o,i.cueTime/=9e4,s.metadata.push(i);s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),this.emittedTracks&gt;=this.numberOfTracks&amp;&amp;(this.trigger("done"),this.emittedTracks=0)},(a=function(t){var e,i,l=this,c=!0;a.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var e={};this.transmuxPipeline_=e,e.type="aac",e.metadataStream=new g.MetadataStream,e.aacStream=new v,e.audioTimestampRolloverStream=new g.TimestampRolloverStream("audio"),e.timedMetadataTimestampRolloverStream=new g.TimestampRolloverStream("timed-metadata"),e.adtsStream=new m,e.coalesceStream=new s(t,e.metadataStream),e.headOfPipeline=e.aacStream,e.aacStream.pipe(e.audioTimestampRolloverStream).pipe(e.adtsStream),e.aacStream.pipe(e.timedMetadataTimestampRolloverStream).pipe(e.metadataStream).pipe(e.coalesceStream),e.metadataStream.on("timestamp",function(t){e.aacStream.setTimestamp(t.timeStamp)}),e.aacStream.on("data",function(t){"timed-metadata"!==t.type||e.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:l.baseMediaDecodeTime},codec:"adts",type:"audio"},e.coalesceStream.numberOfTracks++,e.audioSegmentStream=new r(i),e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream))}),e.coalesceStream.on("data",this.trigger.bind(this,"data")),e.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var a={};this.transmuxPipeline_=a,a.type="ts",a.metadataStream=new g.MetadataStream,a.packetStream=new g.TransportPacketStream,a.parseStream=new g.TransportParseStream,a.elementaryStream=new g.ElementaryStream,a.videoTimestampRolloverStream=new g.TimestampRolloverStream("video"),a.audioTimestampRolloverStream=new g.TimestampRolloverStream("audio"),a.timedMetadataTimestampRolloverStream=new g.TimestampRolloverStream("timed-metadata"),a.adtsStream=new m,a.h264Stream=new y,a.captionStream=new g.CaptionStream,a.coalesceStream=new s(t,a.metadataStream),a.headOfPipeline=a.packetStream,a.packetStream.pipe(a.parseStream).pipe(a.elementaryStream),a.elementaryStream.pipe(a.videoTimestampRolloverStream).pipe(a.h264Stream),a.elementaryStream.pipe(a.audioTimestampRolloverStream).pipe(a.adtsStream),a.elementaryStream.pipe(a.timedMetadataTimestampRolloverStream).pipe(a.metadataStream).pipe(a.coalesceStream),a.h264Stream.pipe(a.captionStream).pipe(a.coalesceStream),a.elementaryStream.on("data",function(s){var o;if("metadata"===s.type){for(o=s.tracks.length;o--;)e||"video"!==s.tracks[o].type?i||"audio"!==s.tracks[o].type||((i=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=l.baseMediaDecodeTime):(e=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=l.baseMediaDecodeTime;e&amp;&amp;!a.videoSegmentStream&amp;&amp;(a.coalesceStream.numberOfTracks++,a.videoSegmentStream=new n(e,t),a.videoSegmentStream.on("timelineStartInfo",function(t){i&amp;&amp;(i.timelineStartInfo=t,a.audioSegmentStream.setEarliestDts(t.dts))}),a.videoSegmentStream.on("processedGopsInfo",l.trigger.bind(l,"gopInfo")),a.videoSegmentStream.on("baseMediaDecodeTime",function(t){i&amp;&amp;a.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}),a.h264Stream.pipe(a.videoSegmentStream).pipe(a.coalesceStream)),i&amp;&amp;!a.audioSegmentStream&amp;&amp;(a.coalesceStream.numberOfTracks++,a.audioSegmentStream=new r(i),a.adtsStream.pipe(a.audioSegmentStream).pipe(a.coalesceStream))}}),a.coalesceStream.on("data",this.trigger.bind(this,"data")),a.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(t){var n=this.transmuxPipeline_;this.baseMediaDecodeTime=t,i&amp;&amp;(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,u(i),i.timelineStartInfo.baseMediaDecodeTime=t,n.audioTimestampRolloverStream&amp;&amp;n.audioTimestampRolloverStream.discontinuity()),e&amp;&amp;(n.videoSegmentStream&amp;&amp;(n.videoSegmentStream.gopCache_=[],n.videoTimestampRolloverStream.discontinuity()),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,u(e),n.captionStream.reset(),e.timelineStartInfo.baseMediaDecodeTime=t),n.timedMetadataTimestampRolloverStream&amp;&amp;n.timedMetadataTimestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){i&amp;&amp;this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.alignGopsWith=function(t){e&amp;&amp;this.transmuxPipeline_.videoSegmentStream&amp;&amp;this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(c){var e=o(t);e&amp;&amp;"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),c=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){c=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&amp;&amp;this.transmuxPipeline_.captionStream.reset()}}).prototype=new p,t.exports={Transmuxer:a,VideoSegmentStream:n,AudioSegmentStream:r,AUDIO_PROPERTIES:T,VIDEO_PROPERTIES:S}},qUj2:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("f8ML")),o=a(i("ndah")),l=a(i("idpB")),u=i("9jeX"),c=a(i("7zZi")),h=a(i("Os+o")),d=i("XeuD"),p=function(){var t=void 0;try{t="Os+o"}catch(t){}return t},f=function(t,e,i){if(!e||!t.length)return[];var n=Math.ceil(9e4*(e.currentTime()-i+3)),r=void 0;for(r=0;r&lt;t.length&amp;&amp;!(t[r].pts&gt;n);r++);return t.slice(r)};e.gopsSafeToAlignWith=f;var g=function(t,e,i){if(!e.length)return t;if(i)return e.slice();for(var n=e[0].pts,r=0;r&lt;t.length&amp;&amp;!(t[r].pts&gt;=n);r++);return t.slice(0,r).concat(e)};e.updateGopBuffer=g;var m=function(t,e,i,n){for(var r=Math.ceil(9e4*(e-n)),a=Math.ceil(9e4*(i-n)),s=t.slice(),o=t.length;o--&amp;&amp;!(t[o].pts&lt;=a););if(-1===o)return s;for(var l=o+1;l--&amp;&amp;!(t[l].pts&lt;=r););return l=Math.max(l,0),s.splice(l,o-l+1),s};e.removeGopBuffer=m;var y=function(t){function e(t,i){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,s.default.EventTarget),this.timestampOffset_=0,this.pendingBuffers_=[],this.bufferUpdating_=!1,this.mediaSource_=t,this.codecs_=i,this.audioCodec_=null,this.videoCodec_=null,this.audioDisabled_=!1,this.appendAudioInitSegment_=!0,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=s.default.browser.IE_VERSION&gt;=11;var a={remux:!1,alignGopsAtEnd:this.safeAppend_};this.codecs_.forEach(function(t){(0,d.isAudioCodec)(t)?n.audioCodec_=t:(0,d.isVideoCodec)(t)&amp;&amp;(n.videoCodec_=t)}),this.transmuxer_=(0,c.default)(h.default,p()),this.transmuxer_.postMessage({action:"init",options:a}),this.transmuxer_.onmessage=function(t){return"data"===t.data.action?n.data_(t):"done"===t.data.action?n.done_(t):"gopInfo"===t.data.action?n.appendGopInfo_(t):void 0},Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"==typeof t&amp;&amp;t&gt;=0&amp;&amp;(this.timestampOffset_=t,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t}))}}),Object.defineProperty(this,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(t){this.videoBuffer_&amp;&amp;(this.videoBuffer_.appendWindowStart=t),this.audioBuffer_&amp;&amp;(this.audioBuffer_.appendWindowStart=t)}}),Object.defineProperty(this,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;this.audioBuffer_.updating||this.videoBuffer_&amp;&amp;this.videoBuffer_.updating)}}),Object.defineProperty(this,"buffered",{get:function(){var t=null,e=null,i=0,n=[],r=[];if(!this.videoBuffer_&amp;&amp;!this.audioBuffer_)return s.default.createTimeRange();if(!this.videoBuffer_)return this.audioBuffer_.buffered;if(!this.audioBuffer_)return this.videoBuffer_.buffered;if(this.audioDisabled_)return this.videoBuffer_.buffered;if(0===this.videoBuffer_.buffered.length&amp;&amp;0===this.audioBuffer_.buffered.length)return s.default.createTimeRange();for(var a=this.videoBuffer_.buffered,o=this.audioBuffer_.buffered,l=a.length;l--;)n.push({time:a.start(l),type:"start"}),n.push({time:a.end(l),type:"end"});for(l=o.length;l--;)n.push({time:o.start(l),type:"start"}),n.push({time:o.end(l),type:"end"});for(n.sort(function(t,e){return t.time-e.time}),l=0;l&lt;n.length;l++)"start"===n[l].type?2===++i&amp;&amp;(t=n[l].time):"end"===n[l].type&amp;&amp;1===--i&amp;&amp;(e=n[l].time),null!==t&amp;&amp;null!==e&amp;&amp;(r.push([t,e]),t=null,e=null);return s.default.createTimeRanges(r)}})}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s["default"].EventTarget),n(e,[{key:"data_",value:function(t){var e=t.data.segment;e.data=new Uint8Array(e.data,t.data.byteOffset,t.data.byteLength),e.initSegment=new Uint8Array(e.initSegment.data,e.initSegment.byteOffset,e.initSegment.byteLength),(0,o.default)(this,this.mediaSource_,e),this.pendingBuffers_.push(e)}},{key:"done_",value:function(t){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"createRealSourceBuffers_",value:function(){var t=this,e=["audio","video"];e.forEach(function(i){if(t[i+"Codec_"]&amp;&amp;!t[i+"Buffer_"]){var n=null;if(t.mediaSource_[i+"Buffer_"])(n=t.mediaSource_[i+"Buffer_"]).updating=!1;else{var r=i+'/mp4;codecs="'+t[i+"Codec_"]+'"';n=function(t,e){var i=t.addSourceBuffer(e),n=Object.create(null);n.updating=!1,n.realBuffer_=i;var r=function(t){"function"==typeof i[t]?n[t]=function(){return i[t].apply(i,arguments)}:void 0===n[t]&amp;&amp;Object.defineProperty(n,t,{get:function(){return i[t]},set:function(e){return i[t]=e}})};for(var a in i)r(a);return n}(t.mediaSource_.nativeMediaSource_,r),t.mediaSource_[i+"Buffer_"]=n}t[i+"Buffer_"]=n,["update","updatestart","updateend"].forEach(function(r){n.addEventListener(r,function(){if("audio"!==i||!t.audioDisabled_)return"updateend"===r&amp;&amp;(t[i+"Buffer_"].updating=!1),e.every(function(e){return!("audio"!==e||!t.audioDisabled_)||(i===e||!t[e+"Buffer_"]||!t[e+"Buffer_"].updating)})?t.trigger(r):void 0})})}})}},{key:"appendBuffer",value:function(t){if(this.bufferUpdating_=!0,this.audioBuffer_&amp;&amp;this.audioBuffer_.buffered.length){var e=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:e.end(e.length-1)})}this.videoBuffer_&amp;&amp;this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:f(this.gopBuffer_,this.mediaSource_.player_,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(t){this.gopBuffer_=g(this.gopBuffer_,t.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(t,e){if(this.videoBuffer_&amp;&amp;(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(t,e),this.gopBuffer_=m(this.gopBuffer_,t,e,this.timeMapping_)),!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(t,e)),(0,l.default)(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var i in this.inbandTextTracks_)(0,l.default)(t,e,this.inbandTextTracks_[i])}},{key:"processPendingSegments_",value:function(){var t={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};t=this.pendingBuffers_.reduce(function(t,e){var i=e.type,n=e.data,r=e.initSegment;return t[i].segments.push(n),t[i].bytes+=n.byteLength,t[i].initSegment=r,e.captions&amp;&amp;(t.captions=t.captions.concat(e.captions)),e.info&amp;&amp;(t[i].info=e.info),e.metadata&amp;&amp;(t.metadata=t.metadata.concat(e.metadata)),t},t),this.videoBuffer_||this.audioBuffer_||(0===t.video.bytes&amp;&amp;(this.videoCodec_=null),0===t.audio.bytes&amp;&amp;(this.audioCodec_=null),this.createRealSourceBuffers_()),t.audio.info&amp;&amp;this.mediaSource_.trigger({type:"audioinfo",info:t.audio.info}),t.video.info&amp;&amp;this.mediaSource_.trigger({type:"videoinfo",info:t.video.info}),this.appendAudioInitSegment_&amp;&amp;(!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;(t.audio.segments.unshift(t.audio.initSegment),t.audio.bytes+=t.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var e=!1;this.videoBuffer_&amp;&amp;t.video.bytes?(t.video.segments.unshift(t.video.initSegment),t.video.bytes+=t.video.initSegment.byteLength,this.concatAndAppendSegments_(t.video,this.videoBuffer_),(0,u.addTextTrackData)(this,t.captions,t.metadata)):!this.videoBuffer_||!this.audioDisabled_&amp;&amp;this.audioBuffer_||(e=!0),!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;this.concatAndAppendSegments_(t.audio,this.audioBuffer_),this.pendingBuffers_.length=0,e&amp;&amp;this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(t,e){var i=0,n=void 0;if(t.bytes){n=new Uint8Array(t.bytes),t.segments.forEach(function(t){n.set(t,i),i+=t.byteLength});try{e.updating=!0,e.appendBuffer(n)}catch(t){this.mediaSource_.player_&amp;&amp;this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:t.message,originalError:t})}}}},{key:"abort",value:function(){this.videoBuffer_&amp;&amp;this.videoBuffer_.abort(),!this.audioDisabled_&amp;&amp;this.audioBuffer_&amp;&amp;this.audioBuffer_.abort(),this.transmuxer_&amp;&amp;this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),e}();e.default=y},qbiT:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();function r(t){return t&amp;&amp;t.__esModule?t:{default:t}}var a=r(i("vvXG")),s=r(i("SxNE")),o=i("3Y2f"),l=function(t){return t&lt;&lt;24|(65280&amp;t)&lt;&lt;8|(16711680&amp;t)&gt;&gt;8|t&gt;&gt;&gt;24},u=function(t,e,i){var n=new Int32Array(t.buffer,t.byteOffset,t.byteLength&gt;&gt;2),r=new a.default(Array.prototype.slice.call(e)),s=new Uint8Array(t.byteLength),o=new Int32Array(s.buffer),u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,m=void 0,y=void 0;for(u=i[0],c=i[1],h=i[2],d=i[3],y=0;y&lt;n.length;y+=4)p=l(n[y]),f=l(n[y+1]),g=l(n[y+2]),m=l(n[y+3]),r.decrypt(p,f,g,m,o,y),o[y]=l(o[y]^u),o[y+1]=l(o[y+1]^c),o[y+2]=l(o[y+2]^h),o[y+3]=l(o[y+3]^d),u=p,c=f,h=g,d=m;return s};e.decrypt=u;var c=function(){function t(e,i,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var a=t.STEP,u=new Int32Array(e.buffer),c=new Uint8Array(e.byteLength),h=0;for(this.asyncStream_=new s.default,this.asyncStream_.push(this.decryptChunk_(u.subarray(h,h+a),i,n,c)),h=a;h&lt;u.length;h+=a)n=new Uint32Array([l(u[h-4]),l(u[h-3]),l(u[h-2]),l(u[h-1])]),this.asyncStream_.push(this.decryptChunk_(u.subarray(h,h+a),i,n,c));this.asyncStream_.push(function(){r(null,(0,o.unpad)(c))})}return n(t,[{key:"decryptChunk_",value:function(t,e,i,n){return function(){var r=u(t,e,i);n.set(r,t.byteOffset)}}}],[{key:"STEP",get:function(){return 32e3}}]),t}();e.Decrypter=c,e.default={Decrypter:c,decrypt:u}},r1zx:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("/N3L"),r=function t(e,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var a,s,o,l=e.masterPlaylistController_.fastQualityChange_.bind(e.masterPlaylistController_);if(i.attributes.RESOLUTION){var u=i.attributes.RESOLUTION;this.width=u.width,this.height=u.height}this.bandwidth=i.attributes.BANDWIDTH,this.id=r,this.enabled=(a=e.playlists,s=i.uri,o=l,function(t){var e=a.master.playlists[s],i=(0,n.isIncompatible)(e),r=(0,n.isEnabled)(e);return void 0===t?r:(t?delete e.disabled:e.disabled=!0,t===r||i||(o(),t?a.trigger("renditionenabled"):a.trigger("renditiondisabled")),t)})};e.default=function(t){var e=t.playlists;t.representations=function(){return e.master.playlists.filter(function(t){return!(0,n.isIncompatible)(t)}).map(function(e,i){return new r(t,e,e.uri)})}},t.exports=e.default},rCJg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();var r,a=i("01cO"),s=(r=a)&amp;&amp;r.__esModule?r:{default:r},o=function(){},l=function(){function t(e,i){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(){n.sourceBuffer_=e.addSourceBuffer(i),n.onUpdateendCallback_=function(){var t=n.pendingCallback_;n.pendingCallback_=null,t&amp;&amp;t(),n.runCallback_()},n.sourceBuffer_.addEventListener("updateend",n.onUpdateendCallback_),n.runCallback_()};this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=e,this.processedAppend_=!1,"closed"===e.readyState?e.addEventListener("sourceopen",r):r()}return n(t,[{key:"abort",value:function(t){var e=this;this.processedAppend_&amp;&amp;this.queueCallback_(function(){e.sourceBuffer_.abort()},t)}},{key:"appendBuffer",value:function(t,e){var i=this;this.processedAppend_=!0,this.queueCallback_(function(){i.sourceBuffer_.appendBuffer(t)},e)}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:s.default.createTimeRanges()}},{key:"remove",value:function(t,e){var i=this;this.processedAppend_&amp;&amp;this.queueCallback_(function(){i.sourceBuffer_.remove(t,e)},o)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||this.pendingCallback_}},{key:"timestampOffset",value:function(t){var e=this;return void 0!==t&amp;&amp;(this.queueCallback_(function(){e.sourceBuffer_.timestampOffset=t}),this.timestampOffset_=t),this.timestampOffset_}},{key:"queueCallback_",value:function(t,e){this.callbacks_.push([t.bind(this),e]),this.runCallback_()}},{key:"runCallback_",value:function(){var t=void 0;!this.updating()&amp;&amp;this.callbacks_.length&amp;&amp;(t=this.callbacks_.shift(),this.pendingCallback_=t[1],t[0]())}},{key:"dispose",value:function(){this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_&amp;&amp;"open"===this.mediaSource.readyState&amp;&amp;this.sourceBuffer_.abort()}}]),t}();e.default=l,t.exports=e.default},rlYp:function(t,e,i){"use strict";function n(t){return t&amp;&amp;t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i("NBAn")),a=n(i("/N3L")),s=i("hfH3"),o=function(t,e){var i;return t&amp;&amp;(i=window.getComputedStyle(t))?i[e]:""},l=function(t,e){var i=t.slice();t.sort(function(t,n){var r=e(t,n);return 0===r?i.indexOf(t)-i.indexOf(n):r})},u=function(t,e){var i=void 0,n=void 0;return t.attributes.BANDWIDTH&amp;&amp;(i=t.attributes.BANDWIDTH),i=i||window.Number.MAX_VALUE,e.attributes.BANDWIDTH&amp;&amp;(n=e.attributes.BANDWIDTH),i-(n=n||window.Number.MAX_VALUE)};e.comparePlaylistBandwidth=u;e.comparePlaylistResolution=function(t,e){var i=void 0,n=void 0;return t.attributes.RESOLUTION&amp;&amp;t.attributes.RESOLUTION.width&amp;&amp;(i=t.attributes.RESOLUTION.width),i=i||window.Number.MAX_VALUE,e.attributes.RESOLUTION&amp;&amp;e.attributes.RESOLUTION.width&amp;&amp;(n=e.attributes.RESOLUTION.width),i===(n=n||window.Number.MAX_VALUE)&amp;&amp;t.attributes.BANDWIDTH&amp;&amp;e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:i-n};var c=function(t,e,i,n){var s=t.playlists.map(function(t){var e,i;return e=t.attributes.RESOLUTION&amp;&amp;t.attributes.RESOLUTION.width,i=t.attributes.RESOLUTION&amp;&amp;t.attributes.RESOLUTION.height,{bandwidth:t.attributes.BANDWIDTH||window.Number.MAX_VALUE,width:e,height:i,playlist:t}});l(s,function(t,e){return t.bandwidth-e.bandwidth});var o=(s=s.filter(function(t){return!a.default.isIncompatible(t.playlist)})).filter(function(t){return a.default.isEnabled(t.playlist)});o.length||(o=s.filter(function(t){return!a.default.isDisabled(t.playlist)}));var u=o.filter(function(t){return t.bandwidth*r.default.BANDWIDTH_VARIANCE&lt;e}),c=u[u.length-1],h=u.filter(function(t){return t.bandwidth===c.bandwidth})[0],d=u.filter(function(t){return t.width&amp;&amp;t.height});l(d,function(t,e){return t.width-e.width});var p=d.filter(function(t){return t.width===i&amp;&amp;t.height===n});c=p[p.length-1];var f=p.filter(function(t){return t.bandwidth===c.bandwidth})[0],g=void 0,m=void 0,y=void 0;f||(m=(g=d.filter(function(t){return t.width&gt;i||t.height&gt;n})).filter(function(t){return t.width===g[0].width&amp;&amp;t.height===g[0].height}),c=m[m.length-1],y=m.filter(function(t){return t.bandwidth===c.bandwidth})[0]);var v=y||f||h||o[0]||s[0];return v?v.playlist:null};e.simpleSelector=c;e.lastBandwidthSelector=function(){return c(this.playlists.master,this.systemBandwidth,parseInt(o(this.tech_.el(),"width"),10),parseInt(o(this.tech_.el(),"height"),10))};e.movingAverageBandwidthSelector=function(t){var e=-1;if(t&lt;0||t&gt;1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){return e&lt;0&amp;&amp;(e=this.systemBandwidth),e=t*this.systemBandwidth+(1-t)*e,c(this.playlists.master,e,parseInt(o(this.tech_.el(),"width"),10),parseInt(o(this.tech_.el(),"height"),10))}};e.minRebufferMaxBandwidthSelector=function(t){var e=t.master,i=t.currentTime,n=t.bandwidth,r=t.duration,s=t.segmentDuration,o=t.timeUntilRebuffer,c=t.currentTimeline,h=t.syncController,d=e.playlists.filter(function(t){return!a.default.isIncompatible(t)}),p=d.filter(a.default.isEnabled);p.length||(p=d.filter(function(t){return!a.default.isDisabled(t)}));var f=p.filter(a.default.hasAttribute.bind(null,"BANDWIDTH")).map(function(t){var e=h.getSyncPoint(t,r,c,i)?1:2;return{playlist:t,rebufferingImpact:a.default.estimateSegmentRequestTime(s,n,t)*e-o}}),g=f.filter(function(t){return t.rebufferingImpact&lt;=0});return l(g,function(t,e){return u(e.playlist,t.playlist)}),g.length?g[0]:(l(f,function(t,e){return t.rebufferingImpact-e.rebufferingImpact}),f[0]||null)};e.lowestBitrateCompatibleVariantSelector=function(){var t=this.playlists.master.playlists.filter(a.default.isEnabled);return l(t,function(t,e){return u(t,e)}),t.filter(function(t){return(0,s.parseCodecs)(t.attributes.CODECS).videoCodec})[0]||null}},s0lu:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("awF4")),o=a(i("dwO+")),l=a(i("f8ML")),u=a(i("qUj2")),c=i("9jeX"),h=i("XeuD"),d=function(t){function e(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);var i=void 0;for(i in this.nativeMediaSource_=new s.default.MediaSource,this.nativeMediaSource_)i in e.prototype||"function"!=typeof this.nativeMediaSource_[i]||(this[i]=this.nativeMediaSource_[i].bind(this.nativeMediaSource_));this.duration_=NaN,Object.defineProperty(this,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(t){this.duration_=t,t===1/0||(this.nativeMediaSource_.duration=t)}}),Object.defineProperty(this,"seekable",{get:function(){return this.duration_===1/0?l.default.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(this,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(this,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),this.sourceBuffers=[],this.activeSourceBuffers_=[],this.updateActiveSourceBuffers_=function(){if(t.activeSourceBuffers_.length=0,1===t.sourceBuffers.length){var e=t.sourceBuffers[0];return e.appendAudioInitSegment_=!0,e.audioDisabled_=!e.audioCodec_,void t.activeSourceBuffers_.push(e)}for(var i=!1,n=!0,r=0;r&lt;t.player_.audioTracks().length;r++){var a=t.player_.audioTracks()[r];if(a.enabled&amp;&amp;"main"!==a.kind){i=!0,n=!1;break}}t.sourceBuffers.forEach(function(e){if(e.appendAudioInitSegment_=!0,e.videoCodec_&amp;&amp;e.audioCodec_)e.audioDisabled_=i;else if(e.videoCodec_&amp;&amp;!e.audioCodec_)e.audioDisabled_=!0,n=!1;else if(!e.videoCodec_&amp;&amp;e.audioCodec_&amp;&amp;(e.audioDisabled_=n,n))return;t.activeSourceBuffers_.push(e)})},this.onPlayerMediachange_=function(){t.sourceBuffers.forEach(function(t){t.appendAudioInitSegment_=!0})},this.onHlsReset_=function(){t.sourceBuffers.forEach(function(t){t.transmuxer_&amp;&amp;t.transmuxer_.postMessage({action:"resetCaptions"})})},this.onHlsSegmentTimeMapping_=function(e){t.sourceBuffers.forEach(function(t){return t.timeMapping_=e.mapping})},["sourceopen","sourceclose","sourceended"].forEach(function(t){this.nativeMediaSource_.addEventListener(t,this.trigger.bind(this))},this),this.on("sourceopen",function(e){var i=o.default.querySelector('[src="'+t.url_+'"]');i&amp;&amp;(t.player_=(0,l.default)(i.parentNode),t.player_.tech_.on("hls-reset",t.onHlsReset_),t.player_.tech_.on("hls-segment-time-mapping",t.onHlsSegmentTimeMapping_),t.player_.audioTracks&amp;&amp;t.player_.audioTracks()&amp;&amp;(t.player_.audioTracks().on("change",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("addtrack",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("removetrack",t.updateActiveSourceBuffers_)),t.player_.on("mediachange",t.onPlayerMediachange_))}),this.on("sourceended",function(e){for(var i=(0,c.durationOfVideo)(t.duration),n=0;n&lt;t.sourceBuffers.length;n++){var r=t.sourceBuffers[n],a=r.metadataTrack_&amp;&amp;r.metadataTrack_.cues;a&amp;&amp;a.length&amp;&amp;(a[a.length-1].endTime=i)}}),this.on("sourceclose",function(t){this.sourceBuffers.forEach(function(t){t.transmuxer_&amp;&amp;t.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_&amp;&amp;(this.player_.audioTracks&amp;&amp;this.player_.audioTracks()&amp;&amp;(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&amp;&amp;(this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))})}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,l["default"].EventTarget),n(e,[{key:"addSeekableRange_",value:function(t,e){var i=void 0;if(this.duration!==1/0)throw(i=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity")).name="InvalidStateError",i.code=11,i;(e&gt;this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&amp;&amp;(this.nativeMediaSource_.duration=e)}},{key:"addSourceBuffer",value:function(t){var e=void 0,i=(0,h.parseContentType)(t);if(/^(video|audio)\/mp2t$/i.test(i.type)){var n=[];i.parameters&amp;&amp;i.parameters.codecs&amp;&amp;(n=i.parameters.codecs.split(","),n=(n=(0,h.translateLegacyCodecs)(n)).filter(function(t){return(0,h.isAudioCodec)(t)||(0,h.isVideoCodec)(t)})),0===n.length&amp;&amp;(n=["avc1.4d400d","mp4a.40.2"]),e=new u.default(this,n),0!==this.sourceBuffers.length&amp;&amp;(this.sourceBuffers[0].createRealSourceBuffers_(),e.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else e=this.nativeMediaSource_.addSourceBuffer(t);return this.sourceBuffers.push(e),e}}]),e}();e.default=d,t.exports=e.default},s24F:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();function r(t){return t&amp;&amp;t.__esModule?t:{default:t}}var a=r(i("awF4")),s=r(i("3XM3")),o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e||{},this.init()}return n(t,[{key:"init",value:function(){var t;this.transmuxer&amp;&amp;this.transmuxer.dispose(),this.transmuxer=new s.default.Transmuxer(this.options),(t=this.transmuxer).on("data",function(t){a.default.postMessage({action:"data",segment:t})}),t.on("done",function(t){a.default.postMessage({action:"done"})})}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"flush",value:function(){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}}]),t}();e.default=function(t){return new function(t){t.onmessage=function(t){"init"===t.data.action&amp;&amp;t.data.options?this.messageHandlers=new o(t.data.options):(this.messageHandlers||(this.messageHandlers=new o),t.data&amp;&amp;t.data.action&amp;&amp;"init"!==t.data.action&amp;&amp;this.messageHandlers[t.data.action]&amp;&amp;this.messageHandlers[t.data.action](t.data))}}(t)},t.exports=e.default},sD9O:function(t,e,i){var n=i("QYuf"),r=i("Pyiu");t.exports=function(t){if(!t)return{};var e={};return r(n(t).split("\n"),function(t){var i,r=t.indexOf(":"),a=n(t.slice(0,r)).toLowerCase(),s=n(t.slice(r+1));void 0===e[a]?e[a]=s:(i=e[a],"[object Array]"===Object.prototype.toString.call(i)?e[a].push(s):e[a]=[e[a],s])}),e}},sN1u:function(t,e){function i(t){return t.replace(/\n\r?\s*/g,"")}t.exports=function(t){for(var e="",n=0;n&lt;arguments.length;n++)e+=i(t[n])+(arguments[n+1]||"");return e}},se8y:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i("awF4"),a=(n=r)&amp;&amp;n.__esModule?n:{default:n},s=i("Wbje"),o=i("iMiW");e.default=function(t){return new function(t){t.onmessage=function(t){var e=t.data,i=new Uint8Array(e.encrypted.bytes,e.encrypted.byteOffset,e.encrypted.byteLength),n=new Uint32Array(e.key.bytes,e.key.byteOffset,e.key.byteLength/4),r=new Uint32Array(e.iv.bytes,e.iv.byteOffset,e.iv.byteLength/4);new s.Decrypter(i,n,r,function(t,i){a.default.postMessage((0,o.createTransferableMessage)({source:e.source,decrypted:i}),[i.buffer])})}}(t)},t.exports=e.default},tBof:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("tsTD")),o=i("/N3L"),l=a(i("UrON")),u=a(i("CD7c")),c=a(i("Nfci")),h=a(i("01cO")),d=a(i("0CPf")),p=a(i("xEgg")),f=i("XeuD"),g=a(i("7zZi")),m=a(i("se8y")),y=a(i("NBAn")),v=i("hfH3"),_=i("JjQ4"),b=void 0,T={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},S=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],k=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},C=function(){var t=void 0;try{t="se8y"}catch(t){}return t},w=function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,function(t){return(0,f.translateLegacyCodecs)([t])[0]})};e.mapLegacyAvcCodecs_=w;var E=function(t,e,i){return t+"/"+e+'; codecs="'+i.filter(function(t){return!!t}).join(", ")+'"'},A=function(t,e){var i=function(t){return t.segments&amp;&amp;t.segments.length&amp;&amp;t.segments[0].map?"mp4":"mp2t"}(e),n=function(t){var e=t.attributes||{};return e.CODECS?(0,v.parseCodecs)(e.CODECS):T}(e),r=e.attributes||{},a=!0,s=!1;if(!e)return[];if(t.mediaGroups.AUDIO&amp;&amp;r.AUDIO){var o=t.mediaGroups.AUDIO[r.AUDIO];if(o)for(var l in s=!0,a=!1,o)if(!o[l].uri){a=!0;break}}s&amp;&amp;!n.audioProfile&amp;&amp;(h.default.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),n.audioProfile=T.audioProfile);var u={};n.videoCodec&amp;&amp;(u.video=""+n.videoCodec+n.videoObjectTypeIndicator),n.audioProfile&amp;&amp;(u.audio="mp4a.40."+n.audioProfile);var c=E("audio",i,[u.audio]),d=E("video",i,[u.video]),p=E("video",i,[u.video,u.audio]);return s?!a&amp;&amp;u.video?[d,c]:[p,c]:u.video?[p]:[c]};e.mimeTypesForPlaylist_=A;var x=function(t){function e(t){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);var n=t.url,a=t.withCredentials,o=t.mode,c=t.tech,d=t.bandwidth,f=t.externHls,y=t.useCueTags,v=t.blacklistDuration,T=t.enableLowInitialPlaylist;if(!n)throw new Error("A non-empty playlist URL is required");b=f,this.withCredentials=a,this.tech_=c,this.hls_=c.hls,this.mode_=o,this.useCueTags_=y,this.blacklistDuration=v,this.enableLowInitialPlaylist=T,this.useCueTags_&amp;&amp;(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:this.withCredentials,timeout:null},this.mediaTypes_=(0,_.createMediaTypes)(),this.mediaSource=new h.default.MediaSource({mode:o}),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_.bind(this)),this.seekable_=h.default.createTimeRanges(),this.hasPlayed_=function(){return!1},this.syncController_=new p.default(t),this.segmentMetadataTrack_=c.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=(0,g.default)(m.default,C());var w={hls:this.hls_,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:function(){return i.seekable()},seeking:function(){return i.tech_.seeking()},duration:function(){return i.mediaSource.duration},hasPlayed:function(){return i.hasPlayed_()},goalBufferLength:function(){return i.goalBufferLength()},bandwidth:d,syncController:this.syncController_,decrypter:this.decrypter_};this.masterPlaylistLoader_=new s.default(n,this.hls_,this.withCredentials),this.setupMasterPlaylistLoaderListeners_(),this.mainSegmentLoader_=new l.default(h.default.mergeOptions(w,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),t),this.audioSegmentLoader_=new l.default(h.default.mergeOptions(w,{loaderType:"audio"}),t),this.subtitleSegmentLoader_=new u.default(h.default.mergeOptions(w,{loaderType:"vtt"}),t),this.setupSegmentLoaderListeners_(),S.forEach(function(t){i[t+"_"]=k.bind(i,t)}),this.masterPlaylistLoader_.load()}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,h["default"].EventTarget),n(e,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=t.masterPlaylistLoader_.media(),i=1.5*t.masterPlaylistLoader_.targetDuration*1e3;(0,o.isLowestEnabledRendition)(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=i,e.endList&amp;&amp;"none"!==t.tech_.preload()&amp;&amp;(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),(0,_.setupMediaGroups)({segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,mode:t.mode_,hls:t.hls_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e);try{t.setupSourceBuffers_()}catch(e){return h.default.log.warn("Failed to create SourceBuffers",e),t.mediaSource.endOfStream("decode")}t.setupFirstPlay(),t.trigger("selectedinitialmedia")}),this.masterPlaylistLoader_.on("loadedplaylist",function(){var e,i=t.masterPlaylistLoader_.media();if(!i){var n=void 0;return t.enableLowInitialPlaylist&amp;&amp;(n=t.selectInitialPlaylist()),n||(n=t.selectPlaylist()),t.initialMedia_=n,void t.masterPlaylistLoader_.media(t.initialMedia_)}t.useCueTags_&amp;&amp;t.updateAdCues_(i),t.mainSegmentLoader_.playlist(i,t.requestOptions_),t.updateDuration(),t.tech_.paused()||t.mainSegmentLoader_.load(),i.endList||(e=function(){var e=t.seekable();0!==e.length&amp;&amp;t.mediaSource.addSeekableRange_(e.start(0),e.end(0))},t.duration()!==1/0?t.tech_.one("durationchange",function i(){t.duration()===1/0?e():t.tech_.one("durationchange",i)}):e())}),this.masterPlaylistLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var e=t.masterPlaylistLoader_.media(),i=1.5*t.masterPlaylistLoader_.targetDuration*1e3;(0,o.isLowestEnabledRendition)(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=i,t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=t.masterPlaylistLoader_.media();t.stuckAtPlaylistEnd_(e)&amp;&amp;(t.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),t.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})}},{key:"triggerPresenceUsage_",value:function(t,e){var i=t.mediaGroups||{},n=!0,r=Object.keys(i.AUDIO);for(var a in i.AUDIO)for(var s in i.AUDIO[a]){i.AUDIO[a][s].uri||(n=!1)}n&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(i.SUBTITLES).length&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-webvtt"}),b.Playlist.isAes(e)&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-aes"}),b.Playlist.isFmp4(e)&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-fmp4"}),r.length&amp;&amp;Object.keys(i.AUDIO[r[0]]).length&gt;1&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&amp;&amp;this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var t=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist(),i=t.masterPlaylistLoader_.media(),n=t.tech_.buffered(),r=n.length?n.end(n.length-1)-t.tech_.currentTime():0,a=t.bufferLowWaterLine();(!i.endList||t.duration()&lt;y.default.MAX_BUFFER_LOW_WATER_LINE||e.attributes.BANDWIDTH&lt;i.attributes.BANDWIDTH||r&gt;=a)&amp;&amp;t.masterPlaylistLoader_.media(e),t.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("ended",function(){t.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(){t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120)}),this.mainSegmentLoader_.on("reseteverything",function(){t.tech_.trigger("hls-reset")}),this.mainSegmentLoader_.on("segmenttimemapping",function(e){t.tech_.trigger({type:"hls-segment-time-mapping",mapping:e.mapping})}),this.audioSegmentLoader_.on("ended",function(){t.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&amp;&amp;this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&amp;&amp;this.subtitleSegmentLoader_.load()}},{key:"fastQualityChange_",value:function(){var t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&amp;&amp;(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetLoader())}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&amp;&amp;this.tech_.setCurrentTime(0),this.hasPlayed_()&amp;&amp;this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&amp;&amp;this.tech_.currentTime()&lt;t.start(0)?this.tech_.setCurrentTime(t.end(t.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var t,e=this,i=this.masterPlaylistLoader_.media();if(!i||this.tech_.paused()||this.hasPlayed_())return!1;if(!i.endList){var n=(t=e.seekable()).length?h.default.browser.IE_VERSION&amp;&amp;"html5"===e.mode_&amp;&amp;0===e.tech_.readyState()?(e.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(t.end(0)),e.hasPlayed_=function(){return!0}}),{v:!1}):(e.trigger("firstplay"),void e.tech_.setCurrentTime(t.end(0))):{v:!1};if("object"==typeof n)return n.v}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(t){return h.default.log.warn("Failed to create Source Buffers",t),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var t=this.tech_.play();void 0!==t&amp;&amp;"function"==typeof t.then&amp;&amp;t.then(null,function(t){})}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var t=this.mainSegmentLoader_.ended_;this.mediaTypes_.AUDIO.activePlaylistLoader&amp;&amp;(t=t&amp;&amp;this.audioSegmentLoader_.ended_),t&amp;&amp;this.mediaSource.endOfStream()}},{key:"stuckAtPlaylistEnd_",value:function(t){if(!this.seekable().length)return!1;var e=this.syncController_.getExpiredTime(t,this.mediaSource.duration);if(null===e)return!1;var i=b.Playlist.playlistEnd(t,e),n=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return i-n&lt;=c.default.SAFE_TIME_DELTA;var a=r.end(r.length-1);return a-n&lt;=c.default.SAFE_TIME_DELTA&amp;&amp;i-a&lt;=c.default.SAFE_TIME_DELTA}},{key:"blacklistCurrentPlaylist",value:function(t,e){void 0===t&amp;&amp;(t={});var i,n=void 0;if(n=t.playlist||this.masterPlaylistLoader_.media(),e=e||t.blacklistDuration||this.blacklistDuration,!n){this.error=t;try{return this.mediaSource.endOfStream("network")}catch(t){return this.trigger("error")}}var r=1===this.masterPlaylistLoader_.master.playlists.filter(o.isEnabled).length;return r?(h.default.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the final playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(r)):(n.excludeUntil=Date.now()+1e3*e,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),i=this.selectPlaylist(),h.default.log.warn("Problem encountered with the current HLS playlist."+(t.message?" "+t.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(i))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&amp;&amp;this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&amp;&amp;this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(t){var e=c.default.findRange(this.tech_.buffered(),t);return this.masterPlaylistLoader_&amp;&amp;this.masterPlaylistLoader_.media()&amp;&amp;this.masterPlaylistLoader_.media().segments?e&amp;&amp;e.length&amp;&amp;"flash"!==this.mode_?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&amp;&amp;(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&amp;&amp;(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:b.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var t=void 0,e=void 0;if(this.masterPlaylistLoader_){var i=this.masterPlaylistLoader_.media();if(i){var n=this.syncController_.getExpiredTime(i,this.mediaSource.duration);if(null!==n&amp;&amp;0!==(t=b.Playlist.seekable(i,n)).length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(i=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(i,this.mediaSource.duration)))return;if(0===(e=b.Playlist.seekable(i,n)).length)return}e?e.start(0)&gt;t.end(0)||t.start(0)&gt;e.end(0)?this.seekable_=t:this.seekable_=h.default.createTimeRanges([[e.start(0)&gt;t.start(0)?e.start(0):t.start(0),e.end(0)&lt;t.end(0)?e.end(0):t.end(0)]]):this.seekable_=t,this.tech_.trigger("seekablechanged")}}}}},{key:"updateDuration",value:function(){var t=this,e=this.mediaSource.duration,i=b.Playlist.duration(this.masterPlaylistLoader_.media()),n=this.tech_.buffered(),r=function e(){t.mediaSource.duration=i,t.tech_.trigger("durationchange"),t.mediaSource.removeEventListener("sourceopen",e)};n.length&gt;0&amp;&amp;(i=Math.max(i,n.end(n.length-1))),e!==i&amp;&amp;("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",r):r())}},{key:"dispose",value:function(){var t=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach(function(e){var i=t.mediaTypes_[e].groups;for(var n in i)i[n].forEach(function(t){t.playlistLoader&amp;&amp;t.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var t,e=this.masterPlaylistLoader_.media();if(e&amp;&amp;"open"===this.mediaSource.readyState){if((t=A(this.masterPlaylistLoader_.master,e)).length&lt;1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+e.resolvedUri,this.mediaSource.endOfStream("decode");this.mainSegmentLoader_.mimeType(t[0]),t[1]&amp;&amp;this.audioSegmentLoader_.mimeType(t[1]),this.excludeIncompatibleVariants_(e)}}},{key:"excludeIncompatibleVariants_",value:function(t){var e=this.masterPlaylistLoader_.master,i=2,n=null,r=void 0;t.attributes.CODECS&amp;&amp;(r=(0,v.parseCodecs)(t.attributes.CODECS),n=r.videoCodec,i=r.codecCount),e.playlists.forEach(function(t){var e={codecCount:2,videoCodec:null};if(t.attributes.CODECS){var r=t.attributes.CODECS;e=(0,v.parseCodecs)(r),window.MediaSource&amp;&amp;window.MediaSource.isTypeSupported&amp;&amp;!window.MediaSource.isTypeSupported('video/mp4; codecs="'+w(r)+'"')&amp;&amp;(t.excludeUntil=1/0)}e.codecCount!==i&amp;&amp;(t.excludeUntil=1/0),e.videoCodec!==n&amp;&amp;(t.excludeUntil=1/0)})}},{key:"updateAdCues_",value:function(t){var e=0,i=this.seekable();i.length&amp;&amp;(e=i.start(0)),d.default.updateAdCues(t,this.cueTagsTrack_,e)}},{key:"goalBufferLength",value:function(){var t=this.tech_.currentTime(),e=y.default.GOAL_BUFFER_LENGTH,i=y.default.GOAL_BUFFER_LENGTH_RATE,n=Math.max(e,y.default.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*i,n)}},{key:"bufferLowWaterLine",value:function(){var t=this.tech_.currentTime(),e=y.default.BUFFER_LOW_WATER_LINE,i=y.default.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(e,y.default.MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*i,n)}}]),e}();e.MasterPlaylistController=x},tsTD:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("J6vC")),o=i("01cO"),l=a(i("Ro/b")),u=a(i("awF4")),c=function(t,e,i){var n=e.slice();i=i||0;for(var r=Math.min(t.length,e.length+i),a=i;a&lt;r;a++)n[a-i]=(0,o.mergeOptions)(t[a],n[a-i]);return n};e.updateSegments=c;var h=function(t,e){t.resolvedUri||(t.resolvedUri=(0,s.default)(e,t.uri)),t.key&amp;&amp;!t.key.resolvedUri&amp;&amp;(t.key.resolvedUri=(0,s.default)(e,t.key.uri)),t.map&amp;&amp;!t.map.resolvedUri&amp;&amp;(t.map.resolvedUri=(0,s.default)(e,t.map.uri))};e.resolveSegmentUris=h;var d=function(t,e){var i=(0,o.mergeOptions)(t,{}),n=i.playlists.filter(function(t){return t.uri===e.uri})[0];if(!n)return null;if(n.segments&amp;&amp;e.segments&amp;&amp;n.segments.length===e.segments.length&amp;&amp;n.mediaSequence===e.mediaSequence)return null;var r=(0,o.mergeOptions)(n,e);n.segments&amp;&amp;(r.segments=c(n.segments,e.segments,e.mediaSequence-n.mediaSequence)),r.segments.forEach(function(t){h(t,r.resolvedUri)});for(var a=0;a&lt;i.playlists.length;a++)i.playlists[a].uri===e.uri&amp;&amp;(i.playlists[a]=r);return i.playlists[e.uri]=r,i};e.updateMaster=d;var p=function(t){for(var e=t.playlists.length;e--;){var i=t.playlists[e];t.playlists[i.uri]=i,i.resolvedUri=(0,s.default)(t.uri,i.uri),i.attributes||(i.attributes={},o.log.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}};e.setupMediaPlaylists=p;var f=function(t){["AUDIO","SUBTITLES"].forEach(function(e){for(var i in t.mediaGroups[e])for(var n in t.mediaGroups[e][i]){var r=t.mediaGroups[e][i][n];r.uri&amp;&amp;(r.resolvedUri=(0,s.default)(t.uri,r.uri))}})};e.resolveMediaGroupUris=f;var g=function(t,e){var i=t.segments[t.segments.length-1];return e&amp;&amp;i&amp;&amp;i.duration?1e3*i.duration:500*(t.targetDuration||10)};e.refreshDelay=g;var m=function(t){function e(t,i,n){var a=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.srcUrl=t,this.hls_=i,this.withCredentials=n,!this.srcUrl)throw new Error("A non-empty playlist URL is required");this.state="HAVE_NOTHING",this.on("mediaupdatetimeout",function(){"HAVE_METADATA"===a.state&amp;&amp;(a.state="HAVE_CURRENT_METADATA",a.request=a.hls_.xhr({uri:(0,s.default)(a.master.uri,a.media().uri),withCredentials:a.withCredentials},function(t,e){if(a.request)return t?a.playlistRequestError(a.request,a.media().uri,"HAVE_METADATA"):void a.haveMetadata(a.request,a.media().uri)}))})}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.EventTarget),n(e,[{key:"playlistRequestError",value:function(t,e,i){this.request=null,i&amp;&amp;(this.state=i),this.error={playlist:this.master.playlists[e],status:t.status,message:"HLS playlist request error at URL: "+e,responseText:t.responseText,code:t.status&gt;=500?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(t,e){var i=this;this.request=null,this.state="HAVE_METADATA";var n=new l.default.Parser;n.push(t.responseText),n.end(),n.manifest.uri=e,n.manifest.attributes=n.manifest.attributes||{};var r=d(this.master,n.manifest);this.targetDuration=n.manifest.targetDuration,r?(this.master=r,this.media_=this.master.playlists[n.manifest.uri]):this.trigger("playlistunchanged"),this.media().endList||(u.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=u.default.setTimeout(function(){i.trigger("mediaupdatetimeout")},g(this.media(),!!r))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.stopRequest(),u.default.clearTimeout(this.mediaUpdateTimeout)}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"media",value:function(t){var e=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var i=this.state;if("string"==typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}var n=!this.media_||t.uri!==this.media_.uri;if(this.master.playlists[t.uri].endList)return this.request&amp;&amp;(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(n&amp;&amp;(this.trigger("mediachanging"),this.trigger("mediachange")));if(n){if(this.state="SWITCHING_MEDIA",this.request){if((0,s.default)(this.master.uri,t.uri)===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&amp;&amp;this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:(0,s.default)(this.master.uri,t.uri),withCredentials:this.withCredentials},function(n,r){if(e.request){if(n)return e.playlistRequestError(e.request,t.uri,i);e.haveMetadata(r,t.uri),"HAVE_MASTER"===i?e.trigger("loadedmetadata"):e.trigger("mediachange")}})}}},{key:"pause",value:function(){this.stopRequest(),u.default.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&amp;&amp;(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&amp;&amp;(this.state="HAVE_METADATA")}},{key:"load",value:function(t){var e=this;u.default.clearTimeout(this.mediaUpdateTimeout);var i=this.media();if(t){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=u.default.setTimeout(function(){return e.load()},n)}else this.started?i&amp;&amp;!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var t=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(e,i){if(t.request){if(t.request=null,e)return t.error={status:i.status,message:"HLS playlist request error at URL: "+t.srcUrl,responseText:i.responseText,code:2},"HAVE_NOTHING"===t.state&amp;&amp;(t.started=!1),t.trigger("error");var n=new l.default.Parser;return n.push(i.responseText),n.end(),t.state="HAVE_MASTER",n.manifest.uri=t.srcUrl,n.manifest.playlists?(t.master=n.manifest,p(t.master),f(t.master),t.trigger("loadedplaylist"),void(t.request||t.media(n.manifest.playlists[0]))):(t.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:u.default.location.href,playlists:[{uri:t.srcUrl}]},t.master.playlists[t.srcUrl]=t.master.playlists[0],t.master.playlists[0].resolvedUri=t.srcUrl,t.master.playlists[0].attributes=t.master.playlists[0].attributes||{},t.haveMetadata(i,t.srcUrl),t.trigger("loadedmetadata"))}})}}]),e}();e.default=m},u6Fd:function(t,e){var i="auto",n={"":!0,lr:!0,rl:!0},r={start:!0,middle:!0,end:!0,left:!0,right:!0};function a(t){return"string"==typeof t&amp;&amp;(!!r[t.toLowerCase()]&amp;&amp;t.toLowerCase())}function s(t){for(var e=1;e&lt;arguments.length;e++){var i=arguments[e];for(var n in i)t[n]=i[n]}return t}function o(t,e,r){var o=this,l=/MSIE\s8\.0/.test(navigator.userAgent),u={};l?o=document.createElement("custom"):u.enumerable=!0,o.hasBeenReset=!1;var c="",h=!1,d=t,p=e,f=r,g=null,m="",y=!0,v="auto",_="start",b=50,T="middle",S=50,k="middle";if(Object.defineProperty(o,"id",s({},u,{get:function(){return c},set:function(t){c=""+t}})),Object.defineProperty(o,"pauseOnExit",s({},u,{get:function(){return h},set:function(t){h=!!t}})),Object.defineProperty(o,"startTime",s({},u,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",s({},u,{get:function(){return p},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");p=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",s({},u,{get:function(){return f},set:function(t){f=""+t,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",s({},u,{get:function(){return g},set:function(t){g=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",s({},u,{get:function(){return m},set:function(t){var e=function(t){return"string"==typeof t&amp;&amp;!!n[t.toLowerCase()]&amp;&amp;t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",s({},u,{get:function(){return y},set:function(t){y=!!t,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",s({},u,{get:function(){return v},set:function(t){if("number"!=typeof t&amp;&amp;t!==i)throw new SyntaxError("An invalid number or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",s({},u,{get:function(){return _},set:function(t){var e=a(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",s({},u,{get:function(){return b},set:function(t){if(t&lt;0||t&gt;100)throw new Error("Position must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",s({},u,{get:function(){return T},set:function(t){var e=a(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");T=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",s({},u,{get:function(){return S},set:function(t){if(t&lt;0||t&gt;100)throw new Error("Size must be between 0 and 100.");S=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",s({},u,{get:function(){return k},set:function(t){var e=a(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),o.displayState=void 0,l)return o}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=o},vRXZ:function(t,e,i){"use strict";var n=Function.prototype.toString,r=/^\s*class\b/,a=function(t){try{var e=n.call(t);return r.test(e)}catch(t){return!1}},s=Object.prototype.toString,o="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&amp;&amp;"object"!=typeof t)return!1;if("function"==typeof t&amp;&amp;!t.prototype)return!0;if(o)return function(t){try{return!a(t)&amp;&amp;(n.call(t),!0)}catch(t){return!1}}(t);if(a(t))return!1;var e=s.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},vvXG:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}();var r=function(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]],e=t[0],i=t[1],n=e[4],r=i[4],a=void 0,s=void 0,o=void 0,l=[],u=[],c=void 0,h=void 0,d=void 0,p=void 0,f=void 0;for(a=0;a&lt;256;a++)u[(l[a]=a&lt;&lt;1^283*(a&gt;&gt;7))^a]=a;for(s=o=0;!n[s];s^=c||1,o=u[o]||1)for(d=(d=o^o&lt;&lt;1^o&lt;&lt;2^o&lt;&lt;3^o&lt;&lt;4)&gt;&gt;8^255&amp;d^99,n[s]=d,r[d]=s,f=16843009*l[h=l[c=l[s]]]^65537*h^257*c^16843008*s,p=257*l[d]^16843008*d,a=0;a&lt;4;a++)e[a][s]=p=p&lt;&lt;24^p&gt;&gt;&gt;8,i[a][d]=f=f&lt;&lt;24^f&gt;&gt;&gt;8;for(a=0;a&lt;5;a++)e[a]=e[a].slice(0),i[a]=i[a].slice(0);return t},a=null,s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a||(a=r()),this._tables=[[a[0][0].slice(),a[0][1].slice(),a[0][2].slice(),a[0][3].slice(),a[0][4].slice()],[a[1][0].slice(),a[1][1].slice(),a[1][2].slice(),a[1][3].slice(),a[1][4].slice()]];var i=void 0,n=void 0,s=void 0,o=void 0,l=void 0,u=this._tables[0][4],c=this._tables[1],h=e.length,d=1;if(4!==h&amp;&amp;6!==h&amp;&amp;8!==h)throw new Error("Invalid aes key size");for(o=e.slice(0),l=[],this._key=[o,l],i=h;i&lt;4*h+28;i++)s=o[i-1],(i%h==0||8===h&amp;&amp;i%h==4)&amp;&amp;(s=u[s&gt;&gt;&gt;24]&lt;&lt;24^u[s&gt;&gt;16&amp;255]&lt;&lt;16^u[s&gt;&gt;8&amp;255]&lt;&lt;8^u[255&amp;s],i%h==0&amp;&amp;(s=s&lt;&lt;8^s&gt;&gt;&gt;24^d&lt;&lt;24,d=d&lt;&lt;1^283*(d&gt;&gt;7))),o[i]=o[i-h]^s;for(n=0;i;n++,i--)s=o[3&amp;n?i:i-4],l[n]=i&lt;=4||n&lt;4?s:c[0][u[s&gt;&gt;&gt;24]]^c[1][u[s&gt;&gt;16&amp;255]]^c[2][u[s&gt;&gt;8&amp;255]]^c[3][u[255&amp;s]]}return n(t,[{key:"decrypt",value:function(t,e,i,n,r,a){var s=this._key[1],o=t^s[0],l=n^s[1],u=i^s[2],c=e^s[3],h=void 0,d=void 0,p=void 0,f=s.length/4-2,g=void 0,m=4,y=this._tables[1],v=y[0],_=y[1],b=y[2],T=y[3],S=y[4];for(g=0;g&lt;f;g++)h=v[o&gt;&gt;&gt;24]^_[l&gt;&gt;16&amp;255]^b[u&gt;&gt;8&amp;255]^T[255&amp;c]^s[m],d=v[l&gt;&gt;&gt;24]^_[u&gt;&gt;16&amp;255]^b[c&gt;&gt;8&amp;255]^T[255&amp;o]^s[m+1],p=v[u&gt;&gt;&gt;24]^_[c&gt;&gt;16&amp;255]^b[o&gt;&gt;8&amp;255]^T[255&amp;l]^s[m+2],c=v[c&gt;&gt;&gt;24]^_[o&gt;&gt;16&amp;255]^b[l&gt;&gt;8&amp;255]^T[255&amp;u]^s[m+3],m+=4,o=h,l=d,u=p;for(g=0;g&lt;4;g++)r[(3&amp;-g)+a]=S[o&gt;&gt;&gt;24]&lt;&lt;24^S[l&gt;&gt;16&amp;255]&lt;&lt;16^S[u&gt;&gt;8&amp;255]&lt;&lt;8^S[255&amp;c]^s[m++],h=o,o=l,l=u,u=c,c=h}}]),t}();e.default=s,t.exports=e.default},"wcP+":function(t,e,i){"use strict";var n,r,a,s;n=function(t,e){var i,a,s,o,l,u=[];if(!e.length)return null;for(i=0;i&lt;t.byteLength;)a=t[i]&lt;&lt;24,a|=t[i+1]&lt;&lt;16,a|=t[i+2]&lt;&lt;8,a|=t[i+3],s=r(t.subarray(i+4,i+8)),o=a&gt;1?i+a:t.byteLength,s===e[0]&amp;&amp;(1===e.length?u.push(t.subarray(i+8,o)):(l=n(t.subarray(i+8,o),e.slice(1))).length&amp;&amp;(u=u.concat(l))),i=o;return u},r=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),e+=String.fromCharCode(t[2]),e+=String.fromCharCode(t[3])},a=function(t){return n(t,["moov","trak"]).reduce(function(t,e){var i,r,a,s;return(i=n(e,["tkhd"])[0])?(a=i[r=0===i[0]?12:20]&lt;&lt;24|i[r+1]&lt;&lt;16|i[r+2]&lt;&lt;8|i[r+3],(s=n(e,["mdia","mdhd"])[0])?(r=0===s[0]?12:20,t[a]=s[r]&lt;&lt;24|s[r+1]&lt;&lt;16|s[r+2]&lt;&lt;8|s[r+3],t):null):null},{})},s=function(t,e){var i,r,a;return i=n(e,["moof","traf"]),r=[].concat.apply([],i.map(function(e){return n(e,["tfhd"]).map(function(i){var r,a;return r=i[4]&lt;&lt;24|i[5]&lt;&lt;16|i[6]&lt;&lt;8|i[7],a=t[r]||9e4,(n(e,["tfdt"]).map(function(t){var e,i;return e=t[0],i=t[4]&lt;&lt;24|t[5]&lt;&lt;16|t[6]&lt;&lt;8|t[7],1===e&amp;&amp;(i*=Math.pow(2,32),i+=t[8]&lt;&lt;24|t[9]&lt;&lt;16|t[10]&lt;&lt;8|t[11]),i})[0]||1/0)/a})})),a=Math.min.apply(null,r),isFinite(a)?a:0},t.exports={parseType:r,timescale:a,startTime:s}},wmqr:function(t,e,i){"use strict";var n,r,a,s,o,l,u=i("B7FF"),c=i("aZOi"),h=i("ZX5X"),d=i("z8xp"),p=i("oUON").H264Stream,f=i("iuos"),g=i("0dI+");s=function(t,e){"number"==typeof e.pts&amp;&amp;(void 0===t.timelineStartInfo.pts?t.timelineStartInfo.pts=e.pts:t.timelineStartInfo.pts=Math.min(t.timelineStartInfo.pts,e.pts)),"number"==typeof e.dts&amp;&amp;(void 0===t.timelineStartInfo.dts?t.timelineStartInfo.dts=e.dts:t.timelineStartInfo.dts=Math.min(t.timelineStartInfo.dts,e.dts))},o=function(t,e){var i=new c(c.METADATA_TAG);return i.dts=e,i.pts=e,i.writeMetaDataDouble("videocodecid",7),i.writeMetaDataDouble("width",t.width),i.writeMetaDataDouble("height",t.height),i},l=function(t,e){var i,n=new c(c.VIDEO_TAG,!0);for(n.dts=e,n.pts=e,n.writeByte(1),n.writeByte(t.profileIdc),n.writeByte(t.profileCompatibility),n.writeByte(t.levelIdc),n.writeByte(255),n.writeByte(225),n.writeShort(t.sps[0].length),n.writeBytes(t.sps[0]),n.writeByte(t.pps.length),i=0;i&lt;t.pps.length;++i)n.writeShort(t.pps[i].length),n.writeBytes(t.pps[i]);return n},(a=function(t){var e,i=[],n=[];a.prototype.init.call(this),this.push=function(e){s(t,e),t&amp;&amp;(t.audioobjecttype=e.audioobjecttype,t.channelcount=e.channelcount,t.samplerate=e.samplerate,t.samplingfrequencyindex=e.samplingfrequencyindex,t.samplesize=e.samplesize,t.extraData=t.audioobjecttype&lt;&lt;11|t.samplingfrequencyindex&lt;&lt;7|t.channelcount&lt;&lt;3),e.pts=Math.round(e.pts/90),e.dts=Math.round(e.dts/90),i.push(e)},this.flush=function(){var r,a,s,o=new g;if(0!==i.length){for(s=-1/0;i.length;)r=i.shift(),n.length&amp;&amp;r.pts&gt;=n[0]&amp;&amp;(s=n.shift(),this.writeMetaDataTags(o,s)),(t.extraData!==e||r.pts-s&gt;=1e3)&amp;&amp;(this.writeMetaDataTags(o,r.pts),e=t.extraData,s=r.pts),(a=new c(c.AUDIO_TAG)).pts=r.pts,a.dts=r.dts,a.writeBytes(r.data),o.push(a.finalize());n.length=0,e=null,this.trigger("data",{track:t,tags:o.list}),this.trigger("done","AudioSegmentStream")}else this.trigger("done","AudioSegmentStream")},this.writeMetaDataTags=function(e,i){var n;(n=new c(c.METADATA_TAG)).pts=i,n.dts=i,n.writeMetaDataDouble("audiocodecid",10),n.writeMetaDataBoolean("stereo",2===t.channelcount),n.writeMetaDataDouble("audiosamplerate",t.samplerate),n.writeMetaDataDouble("audiosamplesize",16),e.push(n.finalize()),(n=new c(c.AUDIO_TAG,!0)).pts=i,n.dts=i,n.view.setUint16(n.position,t.extraData),n.position+=2,n.length=Math.max(n.length,n.position),e.push(n.finalize())},this.onVideoKeyFrame=function(t){n.push(t)}}).prototype=new u,(r=function(t){var e,i,n=[];r.prototype.init.call(this),this.finishFrame=function(n,r){if(r){if(e&amp;&amp;t&amp;&amp;t.newMetadata&amp;&amp;(r.keyFrame||0===n.length)){var a=o(e,r.dts).finalize(),s=l(t,r.dts).finalize();a.metaDataTag=s.metaDataTag=!0,n.push(a),n.push(s),t.newMetadata=!1,this.trigger("keyframe",r.dts)}r.endNalUnit(),n.push(r.finalize()),i=null}},this.push=function(e){s(t,e),e.pts=Math.round(e.pts/90),e.dts=Math.round(e.dts/90),n.push(e)},this.flush=function(){for(var r,a=new g;n.length&amp;&amp;"access_unit_delimiter_rbsp"!==n[0].nalUnitType;)n.shift();if(0!==n.length){for(;n.length;)"seq_parameter_set_rbsp"===(r=n.shift()).nalUnitType?(t.newMetadata=!0,e=r.config,t.width=e.width,t.height=e.height,t.sps=[r.data],t.profileIdc=e.profileIdc,t.levelIdc=e.levelIdc,t.profileCompatibility=e.profileCompatibility,i.endNalUnit()):"pic_parameter_set_rbsp"===r.nalUnitType?(t.newMetadata=!0,t.pps=[r.data],i.endNalUnit()):"access_unit_delimiter_rbsp"===r.nalUnitType?(i&amp;&amp;this.finishFrame(a,i),(i=new c(c.VIDEO_TAG)).pts=r.pts,i.dts=r.dts):("slice_layer_without_partitioning_rbsp_idr"===r.nalUnitType&amp;&amp;(i.keyFrame=!0),i.endNalUnit()),i.startNalUnit(),i.writeBytes(r.data);i&amp;&amp;this.finishFrame(a,i),this.trigger("data",{track:t,tags:a.list}),this.trigger("done","VideoSegmentStream")}else this.trigger("done","VideoSegmentStream")}}).prototype=new u,(n=function(t){var e,i,s,o,l,u,c,g,m,y,v,_,b=this;n.prototype.init.call(this),t=t||{},this.metadataStream=new h.MetadataStream,t.metadataStream=this.metadataStream,e=new h.TransportPacketStream,i=new h.TransportParseStream,s=new h.ElementaryStream,o=new h.TimestampRolloverStream("video"),l=new h.TimestampRolloverStream("audio"),u=new h.TimestampRolloverStream("timed-metadata"),c=new d,g=new p,_=new f(t),e.pipe(i).pipe(s),s.pipe(o).pipe(g),s.pipe(l).pipe(c),s.pipe(u).pipe(this.metadataStream).pipe(_),v=new h.CaptionStream,g.pipe(v).pipe(_),s.on("data",function(t){var e,i,n;if("metadata"===t.type){for(e=t.tracks.length;e--;)"video"===t.tracks[e].type?i=t.tracks[e]:"audio"===t.tracks[e].type&amp;&amp;(n=t.tracks[e]);i&amp;&amp;!m&amp;&amp;(_.numberOfTracks++,m=new r(i),g.pipe(m).pipe(_)),n&amp;&amp;!y&amp;&amp;(_.numberOfTracks++,y=new a(n),c.pipe(y).pipe(_),m&amp;&amp;m.on("keyframe",y.onVideoKeyFrame))}}),this.push=function(t){e.push(t)},this.flush=function(){e.flush()},this.resetCaptions=function(){v.reset()},_.on("data",function(t){b.trigger("data",t)}),_.on("done",function(){b.trigger("done")})}).prototype=new u,t.exports=n},x8aX:function(t,e,i){"use strict";var n,r=i("B7FF");(n=function(){var t=new Uint8Array,e=0;n.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.parseId3TagSize=function(t,e){var i=t[e+6]&lt;&lt;21|t[e+7]&lt;&lt;14|t[e+8]&lt;&lt;7|t[e+9];return(16&amp;t[e+5])&gt;&gt;4?i+20:i+10},this.parseAdtsSize=function(t,e){var i=(224&amp;t[e+5])&gt;&gt;5,n=t[e+4]&lt;&lt;3;return 6144&amp;t[e+3]|n|i},this.push=function(i){var n,r,a,s,o=0,l=0;for(t.length?(s=t.length,(t=new Uint8Array(i.byteLength+s)).set(t.subarray(0,s)),t.set(i,s)):t=i;t.length-l&gt;=3;)if(t[l]!=="I".charCodeAt(0)||t[l+1]!=="D".charCodeAt(0)||t[l+2]!=="3".charCodeAt(0))if(!0&amp;t[l]&amp;&amp;240==(240&amp;t[l+1])){if(t.length-l&lt;7)break;if((o=this.parseAdtsSize(t,l))&gt;t.length)break;a={type:"audio",data:t.subarray(l,l+o),pts:e,dts:e},this.trigger("data",a),l+=o}else l++;else{if(t.length-l&lt;10)break;if((o=this.parseId3TagSize(t,l))&gt;t.length)break;r={type:"timed-metadata",data:t.subarray(l,l+o)},this.trigger("data",r),l+=o}n=t.length-l,t=n&gt;0?t.subarray(l):new Uint8Array}}).prototype=new r,t.exports=n},xEgg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i&lt;e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&amp;&amp;t(e.prototype,i),n&amp;&amp;t(e,n),e}}(),r=function(t,e,i){for(var n=!0;n;){var r=t,a=e,s=i;n=!1,null===r&amp;&amp;(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;t=u,e=a,i=s,n=!0,o=u=void 0}};function a(t){return t&amp;&amp;t.__esModule?t:{default:t}}var s=a(i("wcP+")),o=i("K10q"),l=i("/N3L"),u=a(i("01cO")),c=[{name:"VOD",run:function(t,e,i,n,r){if(i!==1/0){return{time:0,segmentIndex:0}}return null}},{name:"ProgramDateTime",run:function(t,e,i,n,r){return t.datetimeToDisplayTime&amp;&amp;e.dateTimeObject?{time:e.dateTimeObject.getTime()/1e3+t.datetimeToDisplayTime,segmentIndex:0}:null}},{name:"Segment",run:function(t,e,i,n,r){var a=e.segments||[],s=null,o=null;r=r||0;for(var l=0;l&lt;a.length;l++){var u=a[l];if(u.timeline===n&amp;&amp;void 0!==u.start){var c=Math.abs(r-u.start);if(null!==o&amp;&amp;o&lt;c)break;(!s||null===o||o&gt;=c)&amp;&amp;(o=c,s={time:u.start,segmentIndex:l})}}return s}},{name:"Discontinuity",run:function(t,e,i,n,r){var a=null;if(r=r||0,e.discontinuityStarts&amp;&amp;e.discontinuityStarts.length)for(var s=null,o=0;o&lt;e.discontinuityStarts.length;o++){var l=e.discontinuityStarts[o],u=e.discontinuitySequence+o+1,c=t.discontinuities[u];if(c){var h=Math.abs(r-c.time);if(null!==s&amp;&amp;s&lt;h)break;(!a||null===s||s&gt;=h)&amp;&amp;(s=h,a={time:c.time,segmentIndex:l})}}return a}},{name:"Playlist",run:function(t,e,i,n,r){return e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence}:null}}];e.syncPointStrategies=c;var h=function(t){function e(){var t=arguments.length&lt;=0||void 0===arguments[0]?{}:arguments[0];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.inspectCache_=void 0,this.timelines=[],this.discontinuities=[],this.datetimeToDisplayTime=null,t.debug&amp;&amp;(this.logger_=u.default.log.bind(u.default,"sync-controller -&gt;"))}return function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;&amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u["default"].EventTarget),n(e,[{key:"getSyncPoint",value:function(t,e,i,n){var r=this.runStrategies_(t,e,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null}},{key:"getExpiredTime",value:function(t,e){if(!t||!t.segments)return null;var i=this.runStrategies_(t,e,t.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex&gt;0&amp;&amp;(n.time*=-1),Math.abs(n.time+(0,l.sumDurations)(t,n.segmentIndex,0))}},{key:"runStrategies_",value:function(t,e,i,n){for(var r=[],a=0;a&lt;c.length;a++){var s=c[a],o=s.run(this,t,e,i,n);o&amp;&amp;(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}),this.logger_("syncPoint found via &lt;"+s.name+"&gt;:",o))}return r}},{key:"selectSyncPoint_",value:function(t,e){for(var i=t[0].syncPoint,n=Math.abs(t[0].syncPoint[e.key]-e.value),r=t[0].strategy,a=1;a&lt;t.length;a++){var s=Math.abs(t[a].syncPoint[e.key]-e.value);s&lt;n&amp;&amp;(n=s,i=t[a].syncPoint,r=t[a].strategy)}return this.logger_("syncPoint with strategy &lt;"+r+"&gt; chosen: ",i),i}},{key:"saveExpiredSegmentInfo",value:function(t,e){for(var i=e.mediaSequence-t.mediaSequence-1;i&gt;=0;i--){var n=t.segments[i];if(n&amp;&amp;void 0!==n.start){e.syncInfo={mediaSequence:t.mediaSequence+i,time:n.start},this.logger_("playlist sync:",e.syncInfo),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(t){if(!this.datetimeToDisplayTime&amp;&amp;t.dateTimeObject){var e=t.dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-e}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(t){var e=t.segment,i=t.playlist,n=void 0;return(n=e.map?this.probeMp4Segment_(t):this.probeTsSegment_(t))&amp;&amp;this.calculateSegmentTimeMapping_(t,n)&amp;&amp;(this.saveDiscontinuitySyncInfo_(t),i.syncInfo||(i.syncInfo={mediaSequence:i.mediaSequence+t.mediaIndex,time:e.start})),n}},{key:"probeMp4Segment_",value:function(t){var e=t.segment,i=s.default.timescale(e.map.bytes),n=s.default.startTime(i,t.bytes);return null!==t.timestampOffset&amp;&amp;(t.timestampOffset-=n),{start:n,end:n+e.duration}}},{key:"probeTsSegment_",value:function(t){var e=(0,o.inspect)(t.bytes,this.inspectCache_),i=void 0,n=void 0;return e?(e.video&amp;&amp;2===e.video.length?(this.inspectCache_=e.video[1].dts,i=e.video[0].dtsTime,n=e.video[1].dtsTime):e.audio&amp;&amp;2===e.audio.length&amp;&amp;(this.inspectCache_=e.audio[1].dts,i=e.audio[0].dtsTime,n=e.audio[1].dtsTime),{start:i,end:n,containsVideo:e.video&amp;&amp;2===e.video.length,containsAudio:e.audio&amp;&amp;2===e.audio.length}):null}},{key:"timestampOffsetForTimeline",value:function(t){return void 0===this.timelines[t]?null:this.timelines[t].time}},{key:"mappingForTimeline",value:function(t){return void 0===this.timelines[t]?null:this.timelines[t].mapping}},{key:"calculateSegmentTimeMapping_",value:function(t,e){var i=t.segment,n=this.timelines[t.timeline];if(null!==t.timestampOffset)this.logger_("tsO:",t.timestampOffset),n={time:t.startOfSegment,mapping:t.startOfSegment-e.start},this.timelines[t.timeline]=n,this.trigger("timestampoffset"),i.start=t.startOfSegment,i.end=e.end+n.mapping;else{if(!n)return!1;i.start=e.start+n.mapping,i.end=e.end+n.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(t){var e=t.playlist,i=t.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(e.discontinuityStarts.length)for(var n=0;n&lt;e.discontinuityStarts.length;n++){var r=e.discontinuityStarts[n],a=e.discontinuitySequence+n+1,s=r-t.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy&gt;o){var u=void 0;u=s&lt;0?i.start-(0,l.sumDurations)(e,t.mediaIndex,r):i.end+(0,l.sumDurations)(e,t.mediaIndex+1,r),this.discontinuities[a]={time:u,accuracy:o}}}}},{key:"logger_",value:function(){}}]),e}();e.default=h},yevv:function(t,e,i){"use strict";var n=i("nIbA"),r=function(t,e){var i=1;for(t&gt;e&amp;&amp;(i=-1);Math.abs(e-t)&gt;4294967296;)t+=8589934592*i;return t},a=function(t){var e,i;a.prototype.init.call(this),this.type_=t,this.push=function(t){t.type===this.type_&amp;&amp;(void 0===i&amp;&amp;(i=t.dts),t.dts=r(t.dts,i),t.pts=r(t.pts,i),e=t.dts,this.trigger("data",t))},this.flush=function(){i=e,this.trigger("done")},this.discontinuity=function(){i=void 0,e=void 0}};a.prototype=new n,t.exports={TimestampRolloverStream:a,handleRollover:r}},z8xp:function(t,e,i){"use strict";var n,r=i("B7FF"),a=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(n=function(){var t;n.prototype.init.call(this),this.push=function(e){var i,n,r,s,o,l,u=0,c=0;if("audio"===e.type)for(t?(s=t,(t=new Uint8Array(s.byteLength+e.data.byteLength)).set(s),t.set(e.data,s.byteLength)):t=e.data;u+5&lt;t.length;)if(255===t[u]&amp;&amp;240==(246&amp;t[u+1])){if(n=2*(1&amp;~t[u+1]),i=(3&amp;t[u+3])&lt;&lt;11|t[u+4]&lt;&lt;3|(224&amp;t[u+5])&gt;&gt;5,l=9e4*(o=1024*(1+(3&amp;t[u+6])))/a[(60&amp;t[u+2])&gt;&gt;&gt;2],r=u+i,t.byteLength&lt;r)return;if(this.trigger("data",{pts:e.pts+c*l,dts:e.dts+c*l,sampleCount:o,audioobjecttype:1+(t[u+2]&gt;&gt;&gt;6&amp;3),channelcount:(1&amp;t[u+2])&lt;&lt;2|(192&amp;t[u+3])&gt;&gt;&gt;6,samplerate:a[(60&amp;t[u+2])&gt;&gt;&gt;2],samplingfrequencyindex:(60&amp;t[u+2])&gt;&gt;&gt;2,samplesize:16,data:t.subarray(u+7+n,r)}),t.byteLength===r)return void(t=void 0);c++,t=t.subarray(r)}else u++},this.flush=function(){this.trigger("done")}}).prototype=new r,t.exports=n},zGuD:function(t,e){t.exports={clearDtsInfo:function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(t,e){var i,n=t.minSegmentDts;return e||(n-=t.timelineStartInfo.dts),i=t.timelineStartInfo.baseMediaDecodeTime,i+=n,i=Math.max(0,i),"audio"===t.type&amp;&amp;(i*=t.samplerate/9e4,i=Math.floor(i)),i},collectDtsInfo:function(t,e){"number"==typeof e.pts&amp;&amp;(void 0===t.timelineStartInfo.pts&amp;&amp;(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&amp;&amp;(void 0===t.timelineStartInfo.dts&amp;&amp;(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))}}}});</pre></body></html>